From 76e5fe5a87d7e60919075f96eee599f3c6255a9f Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Sun, 15 Mar 2020 22:43:46 +0000 Subject: [PATCH] Update vendor yaegashi/msgraph.go to v0.1.2 (2) --- .../msgraph.go/beta/ACLTypeEnum.go | 41 - .../msgraph.go/beta/APIApplicationModel.go | 19 - .../beta/APIServicePrincipalModel.go | 11 - .../beta/AadUserConversationMemberRequest.go | 45 - .../msgraph.go/beta/AccessActionModel.go | 9 - .../msgraph.go/beta/AccessLevelEnum.go | 49 - .../beta/AccessPackageAssignmentModel.go | 37 - .../AccessPackageAssignmentPolicyModel.go | 39 - .../AccessPackageAssignmentPolicyRequest.go | 52 - .../beta/AccessPackageAssignmentRequest.go | 254 - ...essPackageAssignmentRequestObjectAction.go | 35 - ...cessPackageAssignmentRequestObjectModel.go | 33 - ...ssPackageAssignmentRequestObjectRequest.go | 59 - ...ccessPackageAssignmentResourceRoleModel.go | 23 - ...essPackageAssignmentResourceRoleRequest.go | 160 - .../beta/AccessPackageCatalogModel.go | 37 - .../beta/AccessPackageCatalogRequest.go | 421 - .../msgraph.go/beta/AccessPackageModel.go | 35 - .../msgraph.go/beta/AccessPackageRequest.go | 240 - .../beta/AccessPackageResourceModel.go | 33 - .../beta/AccessPackageResourceRequest.go | 233 - ...AccessPackageResourceRequestObjectModel.go | 31 - ...cessPackageResourceRequestObjectRequest.go | 52 - .../beta/AccessPackageResourceRoleModel.go | 19 - .../beta/AccessPackageResourceRoleRequest.go | 45 - .../AccessPackageResourceRoleScopeModel.go | 23 - .../AccessPackageResourceRoleScopeRequest.go | 52 - .../beta/AccessPackageResourceScopeModel.go | 25 - .../beta/AccessPackageResourceScopeRequest.go | 45 - .../beta/AccessPackageSubjectModel.go | 23 - .../beta/AccessPackageSubjectRequest.go | 38 - .../msgraph.go/beta/AccessReviewAction.go | 125 - .../beta/AccessReviewDecisionModel.go | 29 - .../beta/AccessReviewDecisionRequest.go | 38 - .../msgraph.go/beta/AccessReviewModel.go | 39 - .../AccessReviewRecurrenceSettingsModel.go | 17 - .../msgraph.go/beta/AccessReviewRequest.go | 421 - .../beta/AccessReviewReviewerModel.go | 13 - .../beta/AccessReviewReviewerRequest.go | 38 - .../beta/AccessReviewSettingsModel.go | 27 - .../msgraph.go/beta/AccessScopeEnum.go | 25 - .../msgraph.go/beta/AccessTypeEnum.go | 25 - .../msgraph.go/beta/AccountAliasModel.go | 13 - .../msgraph.go/beta/AccountModel.go | 23 - .../msgraph.go/beta/AccountStatusEnum.go | 57 - .../msgraph.go/beta/ActionSourceEnum.go | 41 - .../msgraph.go/beta/ActionStateEnum.go | 65 - ...indowsAutopilotDeploymentProfileRequest.go | 45 - .../msgraph.go/beta/ActivityDomainEnum.go | 41 - .../beta/ActivityHistoryItemModel.go | 29 - .../beta/ActivityHistoryItemRequest.go | 45 - .../beta/ActivityStatisticsModel.go | 21 - .../beta/ActivityStatisticsRequest.go | 38 - .../msgraph.go/beta/ActivityTypeEnum.go | 33 - .../beta/AddContentFooterActionModel.go | 23 - .../beta/AddContentHeaderActionModel.go | 23 - .../msgraph.go/beta/AddFooterModel.go | 13 - .../msgraph.go/beta/AddHeaderModel.go | 13 - .../msgraph.go/beta/AddInModel.go | 15 - .../beta/AddWatermarkActionModel.go | 21 - .../msgraph.go/beta/AddWatermarkModel.go | 11 - .../msgraph.go/beta/AdminConsentStateEnum.go | 33 - .../beta/AdministrativeUnitRequest.go | 327 - ...atorConfiguredDeviceComplianceStateEnum.go | 25 - .../beta/AdvancedBitLockerStateEnum.go | 145 - ...ectionOnboardingDeviceSettingStateModel.go | 35 - ...tionOnboardingDeviceSettingStateRequest.go | 38 - ...atProtectionOnboardingStateSummaryModel.go | 27 - ...ProtectionOnboardingStateSummaryRequest.go | 139 - .../beta/AgedAccountsPayableModel.go | 31 - .../beta/AgedAccountsPayableRequest.go | 38 - .../beta/AgedAccountsReceivableModel.go | 31 - .../beta/AgedAccountsReceivableRequest.go | 38 - .../msgraph.go/beta/AgentStatusEnum.go | 25 - .../beta/AgreementAcceptanceModel.go | 27 - .../beta/AgreementAcceptanceRequest.go | 38 - .../beta/AgreementAcceptanceStateEnum.go | 25 - .../msgraph.go/beta/AgreementFileDataModel.go | 11 - .../msgraph.go/beta/AgreementFileModel.go | 17 - .../msgraph.go/beta/AgreementFileRequest.go | 38 - .../msgraph.go/beta/AgreementModel.go | 15 - .../msgraph.go/beta/AgreementRequest.go | 139 - .../msgraph.go/beta/AlertAction.go | 100 - .../msgraph.go/beta/AlertFeedbackEnum.go | 49 - .../msgraph.go/beta/AlertHistoryStateModel.go | 25 - .../msgraph.go/beta/AlertModel.go | 75 - .../msgraph.go/beta/AlertRequest.go | 38 - .../msgraph.go/beta/AlertSeverityEnum.go | 57 - .../msgraph.go/beta/AlertStatusEnum.go | 57 - .../msgraph.go/beta/AlertTriggerModel.go | 15 - .../msgraph.go/beta/AlignmentEnum.go | 33 - .../beta/AllDevicesAssignmentTargetModel.go | 9 - .../AllLicensedUsersAssignmentTargetModel.go | 9 - .../msgraph.go/beta/AllowedAudiencesEnum.go | 73 - .../beta/AllowedDataLocationInfoModel.go | 9 - .../beta/AllowedDataLocationModel.go | 17 - .../beta/AnalyticsActivityTypeEnum.go | 49 - .../AndroidCertificateProfileBaseModel.go | 23 - .../AndroidCertificateProfileBaseRequest.go | 45 - .../beta/AndroidCompliancePolicyModel.go | 57 - .../beta/AndroidCustomConfigurationModel.go | 11 - ...oidDeviceComplianceLocalActionBaseModel.go | 11 - ...iceComplianceLocalActionLockDeviceModel.go | 9 - ...eLocalActionLockDeviceWithPasscodeModel.go | 13 - ...dDeviceOwnerAppAutoUpdatePolicyTypeEnum.go | 49 - ...ndroidDeviceOwnerBatteryPluggedModeEnum.go | 41 - ...dDeviceOwnerCertificateProfileBaseModel.go | 23 - ...eviceOwnerCertificateProfileBaseRequest.go | 45 - ...AndroidDeviceOwnerCompliancePolicyModel.go | 49 - ...OwnerDefaultAppPermissionPolicyTypeEnum.go | 41 - ...droidDeviceOwnerEnrollmentProfileAction.go | 67 - ...ndroidDeviceOwnerEnrollmentProfileModel.go | 35 - ...roidDeviceOwnerEnrollmentProfileRequest.go | 38 - ...ceOwnerEnterpriseWiFiConfigurationModel.go | 23 - ...OwnerEnterpriseWiFiConfigurationRequest.go | 52 - ...iceOwnerGeneralDeviceConfigurationModel.go | 143 - ...idDeviceOwnerGlobalProxyAutoConfigModel.go | 11 - ...ndroidDeviceOwnerGlobalProxyDirectModel.go | 15 - .../AndroidDeviceOwnerGlobalProxyModel.go | 9 - .../AndroidDeviceOwnerPlayStoreModeEnum.go | 33 - ...roidDeviceOwnerRequiredPasswordTypeEnum.go | 81 - ...dDeviceOwnerScepCertificateProfileModel.go | 27 - ...eviceOwnerScepCertificateProfileRequest.go | 139 - ...dDeviceOwnerSystemUpdateInstallTypeEnum.go | 41 - ...dDeviceOwnerTrustedRootCertificateModel.go | 13 - ...eviceOwnerTrustedRootCertificateRequest.go | 38 - ...oidDeviceOwnerVirtualHomeButtonTypeEnum.go | 33 - ...AndroidDeviceOwnerVpnConfigurationModel.go | 13 - ...droidDeviceOwnerVpnConfigurationRequest.go | 45 - ...ndroidDeviceOwnerWiFiConfigurationModel.go | 23 - .../AndroidDeviceOwnerWiFiSecurityTypeEnum.go | 41 - .../msgraph.go/beta/AndroidEapTypeEnum.go | 33 - ...ndroidEasEmailProfileConfigurationModel.go | 43 - ...roidEasEmailProfileConfigurationRequest.go | 52 - .../beta/AndroidEnrollmentCompanyCodeModel.go | 15 - ...AndroidEnterpriseWiFiConfigurationModel.go | 29 - ...droidEnterpriseWiFiConfigurationRequest.go | 52 - ...kAppConfigurationSchemaItemDataTypeEnum.go | 73 - ...dForWorkAppConfigurationSchemaItemModel.go | 27 - ...droidForWorkAppConfigurationSchemaModel.go | 13 - ...oidForWorkAppConfigurationSchemaRequest.go | 38 - .../msgraph.go/beta/AndroidForWorkAppModel.go | 19 - .../beta/AndroidForWorkBindStatusEnum.go | 41 - ...droidForWorkCertificateProfileBaseModel.go | 23 - ...oidForWorkCertificateProfileBaseRequest.go | 45 - .../AndroidForWorkCompliancePolicyModel.go | 53 - ...dForWorkCrossProfileDataSharingTypeEnum.go | 41 - .../AndroidForWorkCustomConfigurationModel.go | 11 - ...rWorkDefaultAppPermissionPolicyTypeEnum.go | 41 - .../AndroidForWorkEasEmailProfileBaseModel.go | 23 - ...ndroidForWorkEasEmailProfileBaseRequest.go | 45 - .../AndroidForWorkEnrollmentProfileAction.go | 67 - .../AndroidForWorkEnrollmentProfileModel.go | 31 - .../AndroidForWorkEnrollmentProfileRequest.go | 38 - .../AndroidForWorkEnrollmentTargetEnum.go | 41 - ...ForWorkEnterpriseWiFiConfigurationModel.go | 23 - ...rWorkEnterpriseWiFiConfigurationRequest.go | 52 - ...dForWorkGeneralDeviceConfigurationModel.go | 85 - ...ndroidForWorkGmailEasConfigurationModel.go | 9 - ...rWorkImportedPFXCertificateProfileModel.go | 13 - ...orkImportedPFXCertificateProfileRequest.go | 139 - ...droidForWorkMobileAppConfigurationModel.go | 15 - ...oidForWorkNineWorkEasConfigurationModel.go | 15 - ...droidForWorkPkcsCertificateProfileModel.go | 19 - ...oidForWorkPkcsCertificateProfileRequest.go | 139 - .../AndroidForWorkRequiredPasswordTypeEnum.go | 73 - ...droidForWorkScepCertificateProfileModel.go | 27 - ...oidForWorkScepCertificateProfileRequest.go | 139 - .../beta/AndroidForWorkSettingsAction.go | 130 - .../beta/AndroidForWorkSettingsModel.go | 29 - .../beta/AndroidForWorkSettingsRequest.go | 38 - .../beta/AndroidForWorkSyncStatusEnum.go | 57 - ...droidForWorkTrustedRootCertificateModel.go | 13 - ...oidForWorkTrustedRootCertificateRequest.go | 38 - .../AndroidForWorkVpnConfigurationModel.go | 29 - .../AndroidForWorkVpnConfigurationRequest.go | 45 - .../AndroidForWorkVpnConnectionTypeEnum.go | 57 - .../AndroidForWorkWiFiConfigurationModel.go | 19 - .../AndroidGeneralDeviceConfigurationModel.go | 107 - ...droidImportedPFXCertificateProfileModel.go | 13 - ...oidImportedPFXCertificateProfileRequest.go | 139 - .../beta/AndroidKeyguardFeatureEnum.go | 73 - .../msgraph.go/beta/AndroidLobAppModel.go | 21 - .../beta/AndroidManagedAppProtectionAction.go | 100 - .../beta/AndroidManagedAppProtectionModel.go | 55 - .../AndroidManagedAppProtectionRequest.go | 146 - .../AndroidManagedAppRegistrationModel.go | 11 - ...gedAppSafetyNetAppsVerificationTypeEnum.go | 25 - ...edAppSafetyNetDeviceAttestationTypeEnum.go | 33 - ...oidManagedStoreAccountAppSyncStatusEnum.go | 57 - ...ndroidManagedStoreAccountBindStatusEnum.go | 41 - ...ManagedStoreAccountEnrollmentTargetEnum.go | 41 - ...gedStoreAccountEnterpriseSettingsAction.go | 229 - ...agedStoreAccountEnterpriseSettingsModel.go | 33 - ...edStoreAccountEnterpriseSettingsRequest.go | 38 - ...ndroidManagedStoreAppConfigurationModel.go | 17 - ...eAppConfigurationSchemaItemDataTypeEnum.go | 73 - ...gedStoreAppConfigurationSchemaItemModel.go | 31 - ...ManagedStoreAppConfigurationSchemaModel.go | 15 - ...nagedStoreAppConfigurationSchemaRequest.go | 38 - .../beta/AndroidManagedStoreAppModel.go | 25 - .../beta/AndroidManagedStoreWebAppModel.go | 9 - .../AndroidMinimumOperatingSystemModel.go | 37 - .../beta/AndroidMobileAppIdentifierModel.go | 11 - .../beta/AndroidOMACpConfigurationModel.go | 11 - .../beta/AndroidPermissionActionModel.go | 13 - .../beta/AndroidPermissionActionTypeEnum.go | 33 - .../AndroidPkcsCertificateProfileModel.go | 19 - .../AndroidPkcsCertificateProfileRequest.go | 139 - .../beta/AndroidRequiredPasswordTypeEnum.go | 73 - .../AndroidScepCertificateProfileModel.go | 23 - .../AndroidScepCertificateProfileRequest.go | 139 - .../msgraph.go/beta/AndroidStoreAppModel.go | 17 - .../AndroidTrustedRootCertificateModel.go | 13 - .../AndroidTrustedRootCertificateRequest.go | 38 - .../beta/AndroidUsernameSourceEnum.go | 41 - .../beta/AndroidVpnConfigurationModel.go | 29 - .../beta/AndroidVpnConfigurationRequest.go | 45 - .../beta/AndroidVpnConnectionTypeEnum.go | 57 - .../beta/AndroidWiFiConfigurationModel.go | 19 - .../beta/AndroidWiFiSecurityTypeEnum.go | 33 - ...dWorkProfileCertificateProfileBaseModel.go | 23 - ...orkProfileCertificateProfileBaseRequest.go | 45 - ...AndroidWorkProfileCompliancePolicyModel.go | 53 - ...kProfileCrossProfileDataSharingTypeEnum.go | 41 - ...roidWorkProfileCustomConfigurationModel.go | 11 - ...ofileDefaultAppPermissionPolicyTypeEnum.go | 41 - ...roidWorkProfileEasEmailProfileBaseModel.go | 23 - ...idWorkProfileEasEmailProfileBaseRequest.go | 45 - ...ProfileEnterpriseWiFiConfigurationModel.go | 23 - ...ofileEnterpriseWiFiConfigurationRequest.go | 52 - ...kProfileGeneralDeviceConfigurationModel.go | 85 - ...idWorkProfileGmailEasConfigurationModel.go | 9 - ...orkProfileNineWorkEasConfigurationModel.go | 15 - ...dWorkProfilePkcsCertificateProfileModel.go | 19 - ...orkProfilePkcsCertificateProfileRequest.go | 139 - ...roidWorkProfileRequiredPasswordTypeEnum.go | 73 - ...dWorkProfileScepCertificateProfileModel.go | 27 - ...orkProfileScepCertificateProfileRequest.go | 139 - ...dWorkProfileTrustedRootCertificateModel.go | 13 - ...orkProfileTrustedRootCertificateRequest.go | 38 - ...AndroidWorkProfileVpnConfigurationModel.go | 29 - ...droidWorkProfileVpnConfigurationRequest.go | 45 - ...AndroidWorkProfileVpnConnectionTypeEnum.go | 65 - ...ndroidWorkProfileWiFiConfigurationModel.go | 19 - .../msgraph.go/beta/AnniversaryTypeEnum.go | 33 - .../msgraph.go/beta/AppCatalogsModel.go | 11 - .../msgraph.go/beta/AppCatalogsRequest.go | 139 - .../beta/AppConfigurationSettingItemModel.go | 15 - .../beta/AppHostedMediaConfigModel.go | 11 - .../msgraph.go/beta/AppIdentityModel.go | 17 - .../beta/AppInstallControlTypeEnum.go | 49 - .../msgraph.go/beta/AppListItemModel.go | 17 - .../msgraph.go/beta/AppListTypeEnum.go | 33 - .../AppLockerApplicationControlTypeEnum.go | 49 - .../AppLogCollectionDownloadDetailsModel.go | 15 - .../AppLogCollectionRequestObjectAction.go | 36 - .../AppLogCollectionRequestObjectModel.go | 19 - .../AppLogCollectionRequestObjectRequest.go | 38 - .../beta/AppLogDecryptionAlgorithmEnum.go | 17 - .../msgraph.go/beta/AppLogUploadStateEnum.go | 33 - .../msgraph.go/beta/AppManagementLevelEnum.go | 41 - .../msgraph.go/beta/AppRoleAssignmentModel.go | 25 - .../beta/AppRoleAssignmentRequest.go | 38 - .../msgraph.go/beta/AppRoleModel.go | 23 - .../AppVulnerabilityManagedDeviceModel.go | 17 - .../AppVulnerabilityManagedDeviceRequest.go | 38 - .../beta/AppVulnerabilityMobileAppModel.go | 23 - .../beta/AppVulnerabilityMobileAppRequest.go | 38 - .../AppVulnerabilityTaskMitigationTypeEnum.go | 41 - .../beta/AppVulnerabilityTaskModel.go | 29 - .../beta/AppVulnerabilityTaskRequest.go | 233 - ...pleDeviceFeaturesConfigurationBaseModel.go | 11 - .../AppleEnrollmentProfileAssignmentModel.go | 11 - ...AppleEnrollmentProfileAssignmentRequest.go | 38 - .../beta/AppleOwnerTypeEnrollmentTypeModel.go | 13 - .../ApplePushNotificationCertificateModel.go | 25 - ...ApplePushNotificationCertificateRequest.go | 38 - .../beta/AppleSubjectNameFormatEnum.go | 57 - ...pleUserInitiatedEnrollmentProfileAction.go | 37 - ...ppleUserInitiatedEnrollmentProfileModel.go | 29 - ...leUserInitiatedEnrollmentProfileRequest.go | 139 - .../AppleUserInitiatedEnrollmentTypeEnum.go | 33 - .../beta/AppleVpnConfigurationModel.go | 41 - .../beta/AppleVpnConnectionTypeEnum.go | 129 - .../AppleVppTokenTroubleshootingEventModel.go | 11 - .../msgraph.go/beta/ApplicationAction.go | 141 - ...EnforcedRestrictionsSessionControlModel.go | 9 - ...ationGuardBlockClipboardSharingTypeEnum.go | 49 - ...plicationGuardBlockFileTransferTypeEnum.go | 49 - .../ApplicationGuardEnabledOptionsEnum.go | 41 - .../beta/ApplicationIdentityTypeEnum.go | 49 - .../msgraph.go/beta/ApplicationModeEnum.go | 33 - .../msgraph.go/beta/ApplicationModel.go | 65 - .../ApplicationPermissionsRequiredEnum.go | 65 - .../msgraph.go/beta/ApplicationRequest.go | 341 - .../beta/ApplicationServicePrincipalModel.go | 13 - .../ApplicationSignInDetailedSummaryModel.go | 21 - ...ApplicationSignInDetailedSummaryRequest.go | 38 - .../beta/ApplicationSignInSummaryModel.go | 17 - .../beta/ApplicationTemplateAction.go | 38 - .../beta/ApplicationTemplateModel.go | 25 - .../beta/ApplicationTemplateRequest.go | 38 - .../msgraph.go/beta/ApplicationTypeEnum.go | 25 - ...ppliedConditionalAccessPolicyResultEnum.go | 89 - .../msgraph.go/beta/ApprovalStateEnum.go | 49 - .../beta/ApprovalWorkflowProviderRequest.go | 515 - .../msgraph.go/beta/AssignedLabelModel.go | 13 - .../msgraph.go/beta/AssignedLicenseModel.go | 13 - .../msgraph.go/beta/AssignedPlanModel.go | 19 - .../msgraph.go/beta/AssignmentMethodEnum.go | 33 - .../msgraph.go/beta/AttachmentAction.go | 62 - .../msgraph.go/beta/AttachmentItemModel.go | 19 - .../msgraph.go/beta/AttachmentModel.go | 21 - .../msgraph.go/beta/AttachmentRequest.go | 38 - .../msgraph.go/beta/AttachmentTypeEnum.go | 33 - .../beta/AttendeeAvailabilityModel.go | 13 - .../msgraph.go/beta/AttendeeBaseModel.go | 11 - .../msgraph.go/beta/AttendeeModel.go | 13 - .../msgraph.go/beta/AttendeeTypeEnum.go | 33 - .../beta/AttributeDefinitionModel.go | 31 - .../beta/AttributeFlowBehaviorEnum.go | 25 - .../msgraph.go/beta/AttributeFlowTypeEnum.go | 33 - .../AttributeMappingFunctionSchemaModel.go | 11 - .../msgraph.go/beta/AttributeMappingModel.go | 23 - .../AttributeMappingParameterSchemaModel.go | 17 - .../beta/AttributeMappingSourceModel.go | 17 - .../beta/AttributeMappingSourceTypeEnum.go | 33 - .../msgraph.go/beta/AttributeTypeEnum.go | 57 - .../msgraph.go/beta/AudioConferencingModel.go | 17 - .../msgraph.go/beta/AudioModel.go | 41 - .../msgraph.go/beta/AudioRoutingGroupModel.go | 15 - .../beta/AuditActivityInitiatorModel.go | 13 - .../msgraph.go/beta/AuditActorModel.go | 27 - .../msgraph.go/beta/AuditEventModel.go | 33 - .../msgraph.go/beta/AuditEventRequest.go | 38 - .../msgraph.go/beta/AuditLogRootModel.go | 19 - .../msgraph.go/beta/AuditLogRootRequest.go | 515 - .../msgraph.go/beta/AuditPropertyModel.go | 15 - .../msgraph.go/beta/AuditResourceModel.go | 17 - .../msgraph.go/beta/AuthMethodsTypeEnum.go | 113 - .../beta/AuthenticationDetailModel.go | 23 - .../AuthenticationRequirementPolicyModel.go | 13 - .../beta/AutoAdmittedUsersTypeEnum.go | 25 - .../msgraph.go/beta/AutoLabelingModel.go | 13 - ...oRestartNotificationDismissalMethodEnum.go | 33 - .../beta/AutoReviewSettingsModel.go | 11 - .../beta/AutomaticRepliesMailTipsModel.go | 17 - .../beta/AutomaticRepliesSettingModel.go | 21 - .../beta/AutomaticRepliesStatusEnum.go | 33 - .../beta/AutomaticUpdateModeEnum.go | 65 - .../beta/AzureADFeatureUsageModel.go | 17 - .../msgraph.go/beta/AzureADLicenseTypeEnum.go | 57 - .../beta/AzureADLicenseUsageModel.go | 15 - .../beta/AzureADUserFeatureUsageModel.go | 25 - ...DWindowsAutopilotDeploymentProfileModel.go | 9 - .../msgraph.go/beta/BaseItemModel.go | 33 - .../msgraph.go/beta/BaseItemRequest.go | 52 - .../msgraph.go/beta/BaseItemVersionModel.go | 17 - ...mentConditionExpressionOperatorTypeEnum.go | 25 - .../beta/BitLockerEncryptionMethodEnum.go | 41 - .../beta/BitLockerFixedDrivePolicyModel.go | 15 - .../BitLockerRecoveryInformationTypeEnum.go | 25 - .../beta/BitLockerRecoveryOptionsModel.go | 23 - ...tLockerRecoveryPasswordRotationTypeEnum.go | 41 - .../BitLockerRemovableDrivePolicyModel.go | 15 - .../beta/BitLockerSystemDrivePolicyModel.go | 33 - .../msgraph.go/beta/BodyTypeEnum.go | 28 - .../beta/BookingAppointmentAction.go | 37 - .../beta/BookingAppointmentModel.go | 63 - .../beta/BookingAppointmentRequest.go | 38 - .../msgraph.go/beta/BookingBusinessAction.go | 65 - .../msgraph.go/beta/BookingBusinessModel.go | 39 - .../msgraph.go/beta/BookingBusinessRequest.go | 515 - .../msgraph.go/beta/BookingCurrencyModel.go | 11 - .../msgraph.go/beta/BookingCurrencyRequest.go | 38 - .../msgraph.go/beta/BookingCustomerModel.go | 9 - .../msgraph.go/beta/BookingCustomerRequest.go | 38 - .../beta/BookingInvoiceStatusEnum.go | 57 - .../beta/BookingNamedEntityModel.go | 11 - .../msgraph.go/beta/BookingPersonModel.go | 11 - .../msgraph.go/beta/BookingPriceTypeEnum.go | 73 - .../msgraph.go/beta/BookingReminderModel.go | 17 - .../beta/BookingReminderRecipientsEnum.go | 33 - .../beta/BookingSchedulingPolicyModel.go | 21 - .../msgraph.go/beta/BookingServiceModel.go | 35 - .../msgraph.go/beta/BookingServiceRequest.go | 38 - .../beta/BookingStaffMemberModel.go | 19 - .../beta/BookingStaffMemberRequest.go | 38 - .../msgraph.go/beta/BookingStaffRoleEnum.go | 41 - .../msgraph.go/beta/BookingTypeEnum.go | 33 - .../msgraph.go/beta/BookingWorkHoursModel.go | 13 - .../beta/BookingWorkTimeSlotModel.go | 15 - .../msgraph.go/beta/BrowserSyncSettingEnum.go | 33 - .../msgraph.go/beta/BusinessFlowAction.go | 39 - .../msgraph.go/beta/BusinessFlowModel.go | 27 - .../msgraph.go/beta/BusinessFlowRequest.go | 38 - .../beta/BusinessFlowSettingsModel.go | 11 - .../beta/BusinessFlowTemplateModel.go | 11 - .../beta/BusinessFlowTemplateRequest.go | 38 - .../msgraph.go/beta/CalendarAction.go | 106 - .../msgraph.go/beta/CalendarColorEnum.go | 97 - .../msgraph.go/beta/CalendarGroupModel.go | 17 - .../msgraph.go/beta/CalendarGroupRequest.go | 139 - .../msgraph.go/beta/CalendarModel.go | 49 - .../beta/CalendarPermissionModel.go | 19 - .../beta/CalendarPermissionRequest.go | 38 - .../msgraph.go/beta/CalendarRequest.go | 515 - .../msgraph.go/beta/CalendarRoleTypeEnum.go | 73 - .../beta/CalendarSharingActionEnum.go | 41 - .../CalendarSharingActionImportanceEnum.go | 25 - .../beta/CalendarSharingActionTypeEnum.go | 17 - .../beta/CalendarSharingMessageAction.go | 36 - .../beta/CalendarSharingMessageActionModel.go | 15 - .../beta/CalendarSharingMessageModel.go | 17 - .../beta/CalendarSharingMessageRequest.go | 38 - .../msgraph.go/beta/CallAction.go | 513 - .../beta/CallActivityStatisticsModel.go | 13 - .../msgraph.go/beta/CallDirectionEnum.go | 25 - .../msgraph.go/beta/CallDispositionEnum.go | 33 - .../msgraph.go/beta/CallMediaStateModel.go | 11 - .../matterbridge/msgraph.go/beta/CallModel.go | 63 - .../msgraph.go/beta/CallOptionsModel.go | 9 - .../msgraph.go/beta/CallRequest.go | 327 - .../msgraph.go/beta/CallRouteModel.go | 15 - .../msgraph.go/beta/CallStateEnum.go | 97 - .../msgraph.go/beta/CategoryColorEnum.go | 217 - .../beta/CertificateAuthorityModel.go | 21 - .../CertificateBasedAuthConfigurationModel.go | 11 - .../beta/CertificateConnectorSettingModel.go | 23 - .../beta/CertificateDestinationStoreEnum.go | 33 - .../beta/CertificateIssuanceStatesEnum.go | 193 - .../beta/CertificateRevocationStatusEnum.go | 49 - .../msgraph.go/beta/CertificateStatusEnum.go | 25 - .../msgraph.go/beta/CertificateStoreEnum.go | 25 - .../CertificateValidityPeriodScaleEnum.go | 33 - .../msgraph.go/beta/ChangeTypeEnum.go | 33 - .../beta/ChangeUefiSettingsPermissionEnum.go | 25 - .../beta/ChannelMembershipTypeEnum.go | 33 - .../msgraph.go/beta/ChannelRequest.go | 334 - .../msgraph.go/beta/ChassisTypeEnum.go | 81 - .../beta/ChatActivityStatisticsModel.go | 13 - .../msgraph.go/beta/ChatInfoModel.go | 15 - .../ChatMembersNotificationAudienceModel.go | 9 - .../beta/ChatMessageAttachmentModel.go | 21 - .../beta/ChatMessageHostedContentModel.go | 9 - .../beta/ChatMessageHostedContentRequest.go | 38 - .../beta/ChatMessageImportanceEnum.go | 36 - .../beta/ChatMessageMentionModel.go | 15 - .../msgraph.go/beta/ChatMessageModel.go | 49 - ...essagePolicyViolationDlpActionTypesEnum.go | 41 - .../beta/ChatMessagePolicyViolationModel.go | 19 - ...hatMessagePolicyViolationPolicyTipModel.go | 15 - ...ssagePolicyViolationUserActionTypesEnum.go | 33 - ...ePolicyViolationVerdictDetailsTypesEnum.go | 41 - .../beta/ChatMessageReactionModel.go | 17 - .../msgraph.go/beta/ChatMessageRequest.go | 233 - .../msgraph.go/beta/ChatMessageTypeEnum.go | 35 - .../matterbridge/msgraph.go/beta/ChatModel.go | 23 - .../msgraph.go/beta/ChatRequest.go | 327 - .../beta/ClassificationErrorModel.go | 11 - .../beta/ClassificationInnerErrorModel.go | 19 - .../beta/ClassificationJobResponseModel.go | 11 - .../beta/ClassificationResultModel.go | 15 - .../msgraph.go/beta/ClonableTeamPartsEnum.go | 49 - .../beta/CloudAppSecurityProfileModel.go | 45 - .../beta/CloudAppSecurityProfileRequest.go | 38 - .../CloudAppSecuritySessionControlModel.go | 11 - .../CloudAppSecuritySessionControlTypeEnum.go | 33 - .../beta/CloudAppSecurityStateModel.go | 15 - .../beta/CloudCommunicationsAction.go | 100 - .../beta/CloudCommunicationsModel.go | 13 - .../beta/CloudCommunicationsRequest.go | 233 - .../msgraph.go/beta/ColumnDefinitionModel.go | 49 - .../beta/ColumnDefinitionRequest.go | 38 - .../msgraph.go/beta/ColumnLinkModel.go | 11 - .../msgraph.go/beta/ColumnLinkRequest.go | 38 - .../msgraph.go/beta/CommandRequest.go | 45 - .../msgraph.go/beta/CommsApplicationModel.go | 13 - .../beta/CommsApplicationRequest.go | 233 - .../msgraph.go/beta/CommsNotificationModel.go | 13 - .../beta/CommsNotificationsModel.go | 11 - .../msgraph.go/beta/CommsOperationModel.go | 15 - .../msgraph.go/beta/CommsOperationRequest.go | 38 - .../msgraph.go/beta/CompanyDetailModel.go | 21 - .../beta/CompanyInformationModel.go | 35 - .../beta/CompanyInformationRequest.go | 38 - .../msgraph.go/beta/CompanyModel.go | 87 - .../beta/CompanyPortalActionEnum.go | 33 - .../beta/CompanyPortalBlockedActionModel.go | 15 - .../msgraph.go/beta/CompanyRequest.go | 3335 ---- .../beta/ComplianceInformationModel.go | 13 - ...plianceManagementPartnerAssignmentModel.go | 11 - .../beta/ComplianceManagementPartnerModel.go | 33 - .../msgraph.go/beta/ComplianceStateEnum.go | 65 - .../msgraph.go/beta/ComplianceStatusEnum.go | 73 - .../msgraph.go/beta/ComponentEnum.go | 17 - .../ConditionalAccessApplicationsModel.go | 15 - .../beta/ConditionalAccessClientAppEnum.go | 49 - .../ConditionalAccessConditionSetModel.go | 23 - .../beta/ConditionalAccessConditionsEnum.go | 97 - .../ConditionalAccessDevicePlatformEnum.go | 57 - .../ConditionalAccessDeviceStatesModel.go | 13 - .../beta/ConditionalAccessGrantControlEnum.go | 57 - .../ConditionalAccessGrantControlsModel.go | 17 - .../beta/ConditionalAccessLocationsModel.go | 13 - .../beta/ConditionalAccessPlatformsModel.go | 13 - .../beta/ConditionalAccessPolicyModel.go | 27 - .../beta/ConditionalAccessPolicyRequest.go | 38 - .../beta/ConditionalAccessPolicyStateEnum.go | 33 - .../beta/ConditionalAccessRootModel.go | 13 - .../beta/ConditionalAccessRootRequest.go | 233 - .../ConditionalAccessSessionControlModel.go | 11 - .../ConditionalAccessSessionControlsModel.go | 17 - .../beta/ConditionalAccessStatusEnum.go | 41 - .../beta/ConditionalAccessUsersModel.go | 21 - .../beta/ConfigurationManagerActionModel.go | 11 - .../ConfigurationManagerActionTypeEnum.go | 41 - ...rationManagerClientEnabledFeaturesModel.go | 25 - ...figurationManagerClientHealthStateModel.go | 17 - ...figurationManagerClientInformationModel.go | 11 - .../ConfigurationManagerClientStateEnum.go | 57 - .../msgraph.go/beta/ConfigurationModel.go | 11 - .../msgraph.go/beta/ConfigurationUsageEnum.go | 33 - .../beta/ConnectionDirectionEnum.go | 41 - .../beta/ConnectionOperationStatusEnum.go | 41 - .../msgraph.go/beta/ConnectionStatusEnum.go | 57 - .../msgraph.go/beta/ContactFolderModel.go | 23 - .../msgraph.go/beta/ContactFolderRequest.go | 421 - .../msgraph.go/beta/ContactModel.go | 85 - .../beta/ContactRelationshipEnum.go | 73 - .../msgraph.go/beta/ContactRequest.go | 334 - .../msgraph.go/beta/ContentAlignmentEnum.go | 33 - .../beta/ContentClassificationModel.go | 17 - .../msgraph.go/beta/ContentFormatEnum.go | 25 - .../msgraph.go/beta/ContentInfoModel.go | 17 - .../msgraph.go/beta/ContentMetadataModel.go | 9 - .../msgraph.go/beta/ContentPropertiesModel.go | 19 - .../msgraph.go/beta/ContentStateEnum.go | 33 - .../msgraph.go/beta/ContentTypeInfoModel.go | 13 - .../msgraph.go/beta/ContentTypeModel.go | 29 - .../msgraph.go/beta/ContentTypeOrderModel.go | 13 - .../msgraph.go/beta/ContentTypeRequest.go | 139 - .../beta/ConversationIdentityTypeEnum.go | 25 - .../beta/ConversationMemberModel.go | 13 - .../beta/ConversationMemberRequest.go | 38 - .../beta/ConversationMemberRolesModel.go | 9 - .../msgraph.go/beta/ConversationModel.go | 23 - .../msgraph.go/beta/ConversationRequest.go | 139 - .../beta/ConversationThreadAction.go | 37 - .../beta/ConversationThreadModel.go | 29 - .../beta/ConversationThreadRequest.go | 139 - .../beta/CountryNamedLocationModel.go | 13 - .../msgraph.go/beta/CountryRegionModel.go | 19 - .../msgraph.go/beta/CredentialModel.go | 15 - .../CredentialSingleSignOnExtensionModel.go | 19 - .../beta/CredentialUsageSummaryModel.go | 17 - .../CredentialUserRegistrationCountModel.go | 13 - .../CredentialUserRegistrationDetailsModel.go | 23 - .../msgraph.go/beta/CurrencyColumnModel.go | 11 - .../msgraph.go/beta/CurrencyModel.go | 23 - .../msgraph.go/beta/CustomActionModel.go | 13 - .../beta/CustomSubjectAlternativeNameModel.go | 13 - .../msgraph.go/beta/CustomTimeZoneModel.go | 15 - .../msgraph.go/beta/CustomerModel.go | 57 - .../beta/CustomerPaymentJournalModel.go | 25 - .../beta/CustomerPaymentJournalRequest.go | 146 - .../msgraph.go/beta/CustomerPaymentModel.go | 41 - .../msgraph.go/beta/CustomerPaymentRequest.go | 45 - .../msgraph.go/beta/CustomerRequest.go | 167 - .../beta/DataClassificationServiceModel.go | 33 - .../beta/DataClassificationServiceRequest.go | 1173 -- .../beta/DataLossPreventionPolicyAction.go | 42 - .../beta/DataLossPreventionPolicyModel.go | 13 - .../beta/DataLossPreventionPolicyRequest.go | 38 - .../beta/DataPolicyOperationModel.go | 23 - .../beta/DataPolicyOperationRequest.go | 38 - .../beta/DataPolicyOperationStatusEnum.go | 49 - .../beta/DataSharingConsentAction.go | 36 - .../beta/DataSharingConsentModel.go | 23 - .../beta/DataSharingConsentRequest.go | 38 - .../msgraph.go/beta/DataStoreFieldModel.go | 15 - .../msgraph.go/beta/DateTimeColumnModel.go | 13 - .../msgraph.go/beta/DateTimeTimeZoneModel.go | 13 - .../beta/DateTimeTimeZoneTypeModel.go | 11 - .../msgraph.go/beta/DayOfWeekEnum.go | 65 - .../beta/DefaultColumnValueModel.go | 13 - .../DefaultDeviceCompliancePolicyModel.go | 9 - .../beta/DefaultManagedAppProtectionModel.go | 77 - .../DefaultManagedAppProtectionRequest.go | 146 - .../beta/DefenderAttackSurfaceTypeEnum.go | 33 - .../beta/DefenderCloudBlockLevelTypeEnum.go | 41 - .../beta/DefenderMonitorFileActivityEnum.go | 49 - ...efenderPotentiallyUnwantedAppActionEnum.go | 33 - .../DefenderPromptForSampleSubmissionEnum.go | 49 - .../beta/DefenderProtectionTypeEnum.go | 33 - .../msgraph.go/beta/DefenderScanTypeEnum.go | 41 - ...rSecurityCenterITContactDisplayTypeEnum.go | 41 - ...urityCenterNotificationsFromAppTypeEnum.go | 33 - .../DefenderSubmitSamplesConsentTypeEnum.go | 41 - .../beta/DefenderThreatActionEnum.go | 65 - ...legateMeetingMessageDeliveryOptionsEnum.go | 33 - .../msgraph.go/beta/DeleteActionModel.go | 13 - ...rFromSharedAppleDeviceActionResultModel.go | 11 - ...iveryOptimizationBandwidthAbsoluteModel.go | 13 - ...izationBandwidthBusinessHoursLimitModel.go | 17 - ...zationBandwidthHoursWithPercentageModel.go | 13 - .../DeliveryOptimizationBandwidthModel.go | 9 - ...eryOptimizationBandwidthPercentageModel.go | 13 - .../DeliveryOptimizationGroupIDCustomModel.go | 11 - ...iveryOptimizationGroupIDOptionsTypeEnum.go | 49 - .../DeliveryOptimizationGroupIDSourceModel.go | 9 - ...ryOptimizationGroupIDSourceOptionsModel.go | 11 - ...ryOptimizationMaxCacheSizeAbsoluteModel.go | 11 - .../DeliveryOptimizationMaxCacheSizeModel.go | 9 - ...OptimizationMaxCacheSizePercentageModel.go | 11 - ...ationRestrictPeerSelectionByOptionsEnum.go | 25 - .../beta/DepEnrollmentBaseProfileModel.go | 51 - .../beta/DepEnrollmentProfileModel.go | 57 - .../beta/DepIOSEnrollmentProfileModel.go | 47 - .../beta/DepIOSEnrollmentProfileRequest.go | 38 - .../beta/DepMacOSEnrollmentProfileModel.go | 19 - .../beta/DepMacOSEnrollmentProfileRequest.go | 38 - .../beta/DepOnboardingSettingAction.go | 129 - .../beta/DepOnboardingSettingModel.go | 43 - .../beta/DepOnboardingSettingRequest.go | 247 - .../msgraph.go/beta/DepTokenTypeEnum.go | 33 - .../beta/DerivedCredentialProviderTypeEnum.go | 49 - .../msgraph.go/beta/DetectedAppModel.go | 19 - .../msgraph.go/beta/DetectedAppRequest.go | 139 - .../beta/DetectedSensitiveContentModel.go | 21 - .../DetectedSensitiveContentWrapperModel.go | 11 - .../beta/DeviceActionResultModel.go | 19 - ...ndAppManagementAssignedRoleDetailsModel.go | 13 - ...iceAndAppManagementAssignmentSourceEnum.go | 25 - ...ceAndAppManagementAssignmentTargetModel.go | 9 - .../beta/DeviceAndAppManagementDataModel.go | 11 - ...viceAndAppManagementRoleAssignmentModel.go | 13 - ...ceAndAppManagementRoleAssignmentRequest.go | 139 - ...viceAndAppManagementRoleDefinitionModel.go | 9 - .../beta/DeviceAppManagementAction.go | 35 - .../beta/DeviceAppManagementModel.go | 71 - .../beta/DeviceAppManagementRequest.go | 2221 --- .../beta/DeviceAppManagementTaskAction.go | 39 - .../DeviceAppManagementTaskCategoryEnum.go | 25 - .../beta/DeviceAppManagementTaskModel.go | 31 - .../DeviceAppManagementTaskPriorityEnum.go | 33 - .../beta/DeviceAppManagementTaskRequest.go | 38 - .../beta/DeviceAppManagementTaskStatusEnum.go | 49 - .../msgraph.go/beta/DeviceCategoryModel.go | 15 - .../msgraph.go/beta/DeviceCategoryRequest.go | 38 - .../beta/DeviceComplianceActionItemModel.go | 17 - .../beta/DeviceComplianceActionItemRequest.go | 38 - .../beta/DeviceComplianceActionTypeEnum.go | 73 - .../DeviceComplianceDeviceOverviewModel.go | 29 - .../DeviceComplianceDeviceOverviewRequest.go | 38 - .../beta/DeviceComplianceDeviceStatusModel.go | 27 - .../DeviceComplianceDeviceStatusRequest.go | 38 - .../beta/DeviceCompliancePolicyAction.go | 250 - .../DeviceCompliancePolicyAssignmentModel.go | 15 - ...DeviceCompliancePolicyAssignmentRequest.go | 38 - ...CompliancePolicyDeviceStateSummaryModel.go | 27 - ...mpliancePolicyDeviceStateSummaryRequest.go | 38 - ...iceCompliancePolicyGroupAssignmentModel.go | 15 - ...eCompliancePolicyGroupAssignmentRequest.go | 45 - .../beta/DeviceCompliancePolicyModel.go | 37 - ...eviceCompliancePolicyPolicySetItemModel.go | 9 - .../beta/DeviceCompliancePolicyRequest.go | 529 - ...DeviceCompliancePolicySettingStateModel.go | 33 - ...ompliancePolicySettingStateSummaryModel.go | 31 - ...pliancePolicySettingStateSummaryRequest.go | 139 - .../beta/DeviceCompliancePolicyStateModel.go | 25 - .../DeviceCompliancePolicyStateRequest.go | 38 - ...ceComplianceScheduledActionForRuleModel.go | 13 - ...ComplianceScheduledActionForRuleRequest.go | 139 - .../beta/DeviceComplianceSettingStateModel.go | 35 - .../DeviceComplianceSettingStateRequest.go | 38 - .../beta/DeviceComplianceUserOverviewModel.go | 27 - .../DeviceComplianceUserOverviewRequest.go | 38 - .../beta/DeviceComplianceUserStatusModel.go | 21 - .../beta/DeviceComplianceUserStatusRequest.go | 38 - .../beta/DeviceConfigurationAction.go | 358 - .../DeviceConfigurationAssignmentModel.go | 15 - .../DeviceConfigurationAssignmentRequest.go | 38 - ...DeviceConfigurationConflictSummaryModel.go | 15 - ...viceConfigurationConflictSummaryRequest.go | 38 - .../DeviceConfigurationDeviceOverviewModel.go | 29 - ...eviceConfigurationDeviceOverviewRequest.go | 38 - ...iceConfigurationDeviceStateSummaryModel.go | 23 - ...eConfigurationDeviceStateSummaryRequest.go | 38 - .../DeviceConfigurationDeviceStatusModel.go | 27 - .../DeviceConfigurationDeviceStatusRequest.go | 38 - ...DeviceConfigurationGroupAssignmentModel.go | 15 - ...viceConfigurationGroupAssignmentRequest.go | 45 - .../beta/DeviceConfigurationModel.go | 45 - .../DeviceConfigurationPolicySetItemModel.go | 9 - .../beta/DeviceConfigurationRequest.go | 529 - .../DeviceConfigurationSettingStateModel.go | 33 - .../beta/DeviceConfigurationStateModel.go | 25 - .../beta/DeviceConfigurationStateRequest.go | 38 - ...ConfigurationTargetedUserAndDeviceModel.go | 23 - .../DeviceConfigurationUserOverviewModel.go | 27 - .../DeviceConfigurationUserOverviewRequest.go | 38 - ...eviceConfigurationUserStateSummaryModel.go | 23 - ...iceConfigurationUserStateSummaryRequest.go | 38 - .../DeviceConfigurationUserStatusModel.go | 21 - .../DeviceConfigurationUserStatusRequest.go | 38 - .../msgraph.go/beta/DeviceDetailModel.go | 25 - .../DeviceEnrollmentConfigurationAction.go | 172 - .../DeviceEnrollmentConfigurationModel.go | 25 - .../DeviceEnrollmentConfigurationRequest.go | 139 - .../beta/DeviceEnrollmentFailureReasonEnum.go | 105 - ...DeviceEnrollmentLimitConfigurationModel.go | 11 - ...eviceEnrollmentPlatformRestrictionModel.go | 17 - ...tPlatformRestrictionsConfigurationModel.go | 23 - .../beta/DeviceEnrollmentTypeEnum.go | 105 - ...ndowsHelloForBusinessConfigurationModel.go | 35 - .../DeviceExchangeAccessStateSummaryModel.go | 19 - .../msgraph.go/beta/DeviceGeoLocationModel.go | 29 - ...SystemAuthorityCredentialGuardStateEnum.go | 49 - ...lSystemAuthorityCredentialGuardTypeEnum.go | 33 - ...sedSecurityHardwareRequirementStateEnum.go | 49 - ...ardVirtualizationBasedSecurityStateEnum.go | 65 - .../beta/DeviceHealthAttestationStateModel.go | 75 - .../beta/DeviceHealthScriptAction.go | 37 - .../beta/DeviceHealthScriptAssignmentModel.go | 15 - .../DeviceHealthScriptAssignmentRequest.go | 38 - .../DeviceHealthScriptDeviceStateModel.go | 33 - .../DeviceHealthScriptDeviceStateRequest.go | 45 - .../beta/DeviceHealthScriptModel.go | 41 - .../beta/DeviceHealthScriptRequest.go | 240 - .../beta/DeviceHealthScriptRunSummaryModel.go | 29 - .../DeviceHealthScriptRunSummaryRequest.go | 38 - .../beta/DeviceInstallStateModel.go | 27 - .../beta/DeviceInstallStateRequest.go | 38 - .../msgraph.go/beta/DeviceKeyModel.go | 15 - ...ntAbstractComplexSettingDefinitionModel.go | 11 - ...mentAbstractComplexSettingInstanceModel.go | 13 - ...ntAbstractComplexSettingInstanceRequest.go | 139 - .../msgraph.go/beta/DeviceManagementAction.go | 101 - ...agementApplicabilityRuleDeviceModeModel.go | 15 - ...nagementApplicabilityRuleOsEditionModel.go | 15 - ...nagementApplicabilityRuleOsVersionModel.go | 17 - ...viceManagementApplicabilityRuleTypeEnum.go | 25 - .../DeviceManagementAutopilotEventModel.go | 55 - .../DeviceManagementAutopilotEventRequest.go | 38 - ...ceManagementBooleanSettingInstanceModel.go | 11 - ...anagementCachedReportConfigurationModel.go | 25 - ...agementCachedReportConfigurationRequest.go | 38 - ...agementCollectionSettingDefinitionModel.go | 11 - ...anagementCollectionSettingInstanceModel.go | 11 - ...agementCollectionSettingInstanceRequest.go | 139 - .../DeviceManagementComparisonResultEnum.go | 49 - ...ManagementComplexSettingDefinitionModel.go | 11 - ...ceManagementComplexSettingInstanceModel.go | 11 - ...ManagementComplexSettingInstanceRequest.go | 139 - .../beta/DeviceManagementConstraintModel.go | 9 - ...ceManagementDerivedCredentialIssuerEnum.go | 33 - ...ntDerivedCredentialNotificationTypeEnum.go | 33 - ...anagementDerivedCredentialSettingsModel.go | 17 - ...agementDerivedCredentialSettingsRequest.go | 38 - ...eviceManagementDomainJoinConnectorModel.go | 19 - ...iceManagementDomainJoinConnectorRequest.go | 38 - ...eManagementDomainJoinConnectorStateEnum.go | 33 - .../DeviceManagementEnumConstraintModel.go | 11 - .../beta/DeviceManagementEnumValueModel.go | 13 - ...DeviceManagementExchangeAccessLevelEnum.go | 41 - ...DeviceManagementExchangeAccessRuleModel.go | 13 - ...iceManagementExchangeAccessRuleTypeEnum.go | 25 - ...DeviceManagementExchangeAccessStateEnum.go | 49 - ...ManagementExchangeAccessStateReasonEnum.go | 137 - ...DeviceManagementExchangeConnectorAction.go | 37 - .../DeviceManagementExchangeConnectorModel.go | 29 - ...eviceManagementExchangeConnectorRequest.go | 38 - ...ceManagementExchangeConnectorStatusEnum.go | 41 - ...ManagementExchangeConnectorSyncTypeEnum.go | 25 - ...viceManagementExchangeConnectorTypeEnum.go | 41 - ...eviceManagementExchangeDeviceClassModel.go | 13 - ...ManagementExchangeOnPremisesPolicyModel.go | 19 - ...nagementExchangeOnPremisesPolicyRequest.go | 45 - .../beta/DeviceManagementExportJobModel.go | 29 - .../beta/DeviceManagementExportJobRequest.go | 38 - ...ceManagementIntegerSettingInstanceModel.go | 11 - .../beta/DeviceManagementIntentAction.go | 103 - .../DeviceManagementIntentAssignmentModel.go | 11 - ...DeviceManagementIntentAssignmentRequest.go | 38 - ...entIntentDeviceSettingStateSummaryModel.go | 23 - ...tIntentDeviceSettingStateSummaryRequest.go | 38 - .../DeviceManagementIntentDeviceStateModel.go | 23 - ...eviceManagementIntentDeviceStateRequest.go | 38 - ...ManagementIntentDeviceStateSummaryModel.go | 21 - ...nagementIntentDeviceStateSummaryRequest.go | 38 - .../beta/DeviceManagementIntentModel.go | 39 - .../beta/DeviceManagementIntentRequest.go | 623 - ...iceManagementIntentSettingCategoryModel.go | 11 - ...eManagementIntentSettingCategoryRequest.go | 139 - .../DeviceManagementIntentUserStateModel.go | 21 - .../DeviceManagementIntentUserStateRequest.go | 38 - ...ceManagementIntentUserStateSummaryModel.go | 19 - ...ManagementIntentUserStateSummaryRequest.go | 38 - .../msgraph.go/beta/DeviceManagementModel.go | 207 - .../DeviceManagementPartnerAppTypeEnum.go | 33 - .../DeviceManagementPartnerAssignmentModel.go | 11 - .../beta/DeviceManagementPartnerModel.go | 33 - .../beta/DeviceManagementPartnerRequest.go | 38 - .../DeviceManagementPartnerTenantStateEnum.go | 57 - .../DeviceManagementReportFileFormatEnum.go | 25 - .../DeviceManagementReportScheduleModel.go | 35 - .../DeviceManagementReportScheduleRequest.go | 38 - .../beta/DeviceManagementReportStatusEnum.go | 49 - .../beta/DeviceManagementReportsAction.go | 244 - .../beta/DeviceManagementReportsModel.go | 15 - .../beta/DeviceManagementReportsRequest.go | 327 - .../beta/DeviceManagementRequest.go | 6542 ------- ...ManagementScheduledReportRecurrenceEnum.go | 41 - .../beta/DeviceManagementScriptAction.go | 134 - .../DeviceManagementScriptAssignmentModel.go | 11 - ...DeviceManagementScriptAssignmentRequest.go | 38 - .../DeviceManagementScriptDeviceStateModel.go | 23 - ...eviceManagementScriptDeviceStateRequest.go | 45 - ...iceManagementScriptGroupAssignmentModel.go | 11 - ...eManagementScriptGroupAssignmentRequest.go | 38 - .../beta/DeviceManagementScriptModel.go | 41 - ...eviceManagementScriptPolicySetItemModel.go | 9 - .../beta/DeviceManagementScriptRequest.go | 428 - .../DeviceManagementScriptRunSummaryModel.go | 17 - ...DeviceManagementScriptRunSummaryRequest.go | 38 - .../DeviceManagementScriptUserStateModel.go | 17 - .../DeviceManagementScriptUserStateRequest.go | 139 - ...ManagementSettingBooleanConstraintModel.go | 11 - .../DeviceManagementSettingCategoryModel.go | 13 - .../DeviceManagementSettingCategoryRequest.go | 139 - .../DeviceManagementSettingComparisonModel.go | 21 - .../DeviceManagementSettingDefinitionModel.go | 25 - ...eviceManagementSettingDefinitionRequest.go | 38 - .../DeviceManagementSettingDependencyModel.go | 13 - .../DeviceManagementSettingInstanceModel.go | 13 - .../DeviceManagementSettingInstanceRequest.go | 38 - ...ManagementSettingIntegerConstraintModel.go | 13 - ...ceManagementSettingRegexConstraintModel.go | 11 - ...ementSettingStringLengthConstraintModel.go | 13 - ...viceManagementSettingXMLConstraintModel.go | 9 - .../beta/DeviceManagementSettingsModel.go | 25 - ...iceManagementStringSettingInstanceModel.go | 11 - .../DeviceManagementSubscriptionStateEnum.go | 65 - .../beta/DeviceManagementSubscriptionsEnum.go | 57 - .../beta/DeviceManagementTemplateAction.go | 44 - .../beta/DeviceManagementTemplateModel.go | 33 - .../beta/DeviceManagementTemplateRequest.go | 327 - ...eManagementTemplateSettingCategoryModel.go | 11 - ...anagementTemplateSettingCategoryRequest.go | 139 - .../beta/DeviceManagementTemplateTypeEnum.go | 73 - ...agementTroubleshootingErrorDetailsModel.go | 19 - ...gementTroubleshootingErrorResourceModel.go | 13 - ...viceManagementTroubleshootingEventModel.go | 21 - ...ceManagementTroubleshootingEventRequest.go | 38 - ...nagementUserRightsLocalUserOrGroupModel.go | 15 - .../DeviceManagementUserRightsSettingModel.go | 13 - .../DeviceManangementIntentValueTypeEnum.go | 57 - .../msgraph.go/beta/DeviceModel.go | 71 - .../beta/DeviceOperatingSystemSummaryModel.go | 29 - .../msgraph.go/beta/DevicePlatformTypeEnum.go | 81 - .../beta/DeviceProtectionOverviewModel.go | 29 - .../beta/DeviceRegistrationStateEnum.go | 73 - .../msgraph.go/beta/DeviceRequest.go | 609 - .../beta/DeviceRestrictionActionModel.go | 15 - .../beta/DeviceSetupConfigurationModel.go | 21 - .../beta/DeviceThreatProtectionLevelEnum.go | 57 - .../msgraph.go/beta/DeviceTypeEnum.go | 185 - .../msgraph.go/beta/DeviceTypesEnum.go | 185 - .../beta/DiagnosticDataSubmissionModeEnum.go | 49 - .../msgraph.go/beta/DiamondModelEnum.go | 57 - .../msgraph.go/beta/DimensionModel.go | 19 - .../msgraph.go/beta/DimensionRequest.go | 139 - .../msgraph.go/beta/DimensionValueModel.go | 17 - .../msgraph.go/beta/DimensionValueRequest.go | 38 - .../msgraph.go/beta/DirectoryAuditModel.go | 33 - .../msgraph.go/beta/DirectoryAuditRequest.go | 38 - .../beta/DirectoryDefinitionAction.go | 36 - ...irectoryDefinitionDiscoverabilitiesEnum.go | 57 - .../beta/DirectoryDefinitionModel.go | 23 - .../beta/DirectoryDefinitionRequest.go | 38 - .../msgraph.go/beta/DirectoryModel.go | 13 - .../msgraph.go/beta/DirectoryObjectAction.go | 1398 -- .../msgraph.go/beta/DirectoryObjectModel.go | 13 - .../DirectoryObjectPartnerReferenceModel.go | 17 - .../msgraph.go/beta/DirectoryObjectRequest.go | 38 - .../msgraph.go/beta/DirectoryRequest.go | 233 - .../msgraph.go/beta/DirectoryRoleModel.go | 19 - .../msgraph.go/beta/DirectoryRoleRequest.go | 233 - .../beta/DirectoryRoleTemplateModel.go | 13 - .../beta/DirectoryRoleTemplateRequest.go | 38 - .../msgraph.go/beta/DirectorySettingModel.go | 15 - .../beta/DirectorySettingRequest.go | 38 - .../beta/DirectorySettingTemplateModel.go | 15 - .../beta/DirectorySettingTemplateRequest.go | 38 - .../msgraph.go/beta/DiscoverySourceEnum.go | 33 - .../msgraph.go/beta/DiskTypeEnum.go | 33 - .../msgraph.go/beta/DlpActionEnum.go | 33 - .../msgraph.go/beta/DlpActionInfoModel.go | 11 - .../DlpEvaluatePoliciesJobResponseModel.go | 11 - .../DlpEvaluatePoliciesRequestObjectModel.go | 15 - .../beta/DlpEvaluationInputModel.go | 15 - .../DlpEvaluationWindowsDevicesInputModel.go | 13 - .../msgraph.go/beta/DlpNotificationModel.go | 11 - .../beta/DlpPoliciesJobResultModel.go | 11 - .../DlpWindowsDevicesNotificationModel.go | 13 - ...DmaGuardDeviceEnumerationPolicyTypeEnum.go | 33 - .../msgraph.go/beta/DocumentCommentModel.go | 13 - .../beta/DocumentCommentReplyModel.go | 11 - .../beta/DocumentCommentReplyRequest.go | 38 - .../msgraph.go/beta/DocumentCommentRequest.go | 139 - .../msgraph.go/beta/DocumentModel.go | 11 - .../msgraph.go/beta/DocumentRequest.go | 139 - .../msgraph.go/beta/DomainAction.go | 68 - .../beta/DomainDNSCnameRecordModel.go | 11 - .../msgraph.go/beta/DomainDNSMxRecordModel.go | 13 - .../msgraph.go/beta/DomainDNSRecordModel.go | 19 - .../msgraph.go/beta/DomainDNSRecordRequest.go | 38 - .../beta/DomainDNSSrvRecordModel.go | 21 - .../beta/DomainDNSTxtRecordModel.go | 11 - .../beta/DomainDNSUnavailableRecordModel.go | 11 - .../msgraph.go/beta/DomainModel.go | 37 - .../msgraph.go/beta/DomainNameSourceEnum.go | 25 - .../msgraph.go/beta/DomainRegistrantModel.go | 17 - .../msgraph.go/beta/DomainRequest.go | 327 - .../beta/DomainSecurityProfileModel.go | 39 - .../beta/DomainSecurityProfileRequest.go | 38 - .../msgraph.go/beta/DomainStateModel.go | 17 - .../msgraph.go/beta/DriveItemAction.go | 461 - .../msgraph.go/beta/DriveItemModel.go | 75 - .../msgraph.go/beta/DriveItemRequest.go | 637 - .../DriveItemUploadablePropertiesModel.go | 17 - .../msgraph.go/beta/DriveItemVersionAction.go | 35 - .../msgraph.go/beta/DriveItemVersionModel.go | 13 - .../beta/DriveItemVersionRequest.go | 38 - .../msgraph.go/beta/DriveModel.go | 33 - .../msgraph.go/beta/DriveRecipientModel.go | 15 - .../msgraph.go/beta/DriveRequest.go | 529 - .../beta/EapFastConfigurationEnum.go | 41 - .../msgraph.go/beta/EapTypeEnum.go | 57 - .../beta/EasAuthenticationMethodEnum.go | 33 - .../msgraph.go/beta/EasServicesEnum.go | 57 - .../msgraph.go/beta/EdgeCookiePolicyEnum.go | 41 - .../beta/EdgeHomeButtonConfigurationModel.go | 9 - .../beta/EdgeHomeButtonHiddenModel.go | 9 - .../beta/EdgeHomeButtonLoadsStartPageModel.go | 9 - .../beta/EdgeHomeButtonOpensCustomURLModel.go | 11 - .../beta/EdgeHomeButtonOpensNewTabModel.go | 9 - .../beta/EdgeKioskModeRestrictionTypeEnum.go | 49 - .../msgraph.go/beta/EdgeOpenOptionsEnum.go | 49 - .../beta/EdgeSearchEngineBaseModel.go | 9 - .../beta/EdgeSearchEngineCustomModel.go | 11 - .../msgraph.go/beta/EdgeSearchEngineModel.go | 11 - .../beta/EdgeSearchEngineTypeEnum.go | 25 - .../msgraph.go/beta/EdgeTelemetryModeEnum.go | 41 - .../beta/EditionUpgradeLicenseTypeEnum.go | 33 - .../beta/EducationAssignmentAction.go | 36 - .../EducationAssignmentClassRecipientModel.go | 9 - .../beta/EducationAssignmentGradeModel.go | 15 - .../beta/EducationAssignmentGradeTypeModel.go | 9 - .../EducationAssignmentGroupRecipientModel.go | 9 - ...ationAssignmentIndividualRecipientModel.go | 11 - .../beta/EducationAssignmentModel.go | 51 - .../EducationAssignmentPointsGradeModel.go | 11 - ...EducationAssignmentPointsGradeTypeModel.go | 11 - .../beta/EducationAssignmentRecipientModel.go | 9 - .../beta/EducationAssignmentRequest.go | 334 - .../beta/EducationAssignmentResourceModel.go | 13 - .../EducationAssignmentResourceRequest.go | 38 - .../beta/EducationAssignmentStatusEnum.go | 41 - .../msgraph.go/beta/EducationCategoryModel.go | 11 - .../beta/EducationCategoryRequest.go | 38 - .../msgraph.go/beta/EducationClassModel.go | 43 - .../msgraph.go/beta/EducationClassRequest.go | 522 - .../msgraph.go/beta/EducationCourseModel.go | 19 - .../beta/EducationCsvDataProviderModel.go | 11 - .../beta/EducationExcelResourceModel.go | 11 - .../beta/EducationExternalSourceEnum.go | 33 - .../msgraph.go/beta/EducationFeedbackModel.go | 17 - .../beta/EducationFeedbackOutcomeModel.go | 13 - .../beta/EducationFileResourceModel.go | 11 - ...SynchronizationVerificationMessageModel.go | 15 - .../beta/EducationFormResourceModel.go | 19 - .../msgraph.go/beta/EducationGenderEnum.go | 41 - ...ationIdentityCreationConfigurationModel.go | 11 - .../beta/EducationIdentityDomainModel.go | 13 - ...ationIdentityMatchingConfigurationModel.go | 11 - .../EducationIdentityMatchingOptionsModel.go | 17 - ...entitySynchronizationConfigurationModel.go | 9 - .../msgraph.go/beta/EducationItemBodyModel.go | 13 - .../beta/EducationLinkResourceModel.go | 11 - .../beta/EducationMakeCodeResourceModel.go | 13 - .../beta/EducationOnPremisesInfoModel.go | 11 - .../beta/EducationOneNoteResourceModel.go | 13 - .../EducationOneRosterAPIDataProviderModel.go | 21 - .../beta/EducationOrganizationModel.go | 15 - .../msgraph.go/beta/EducationOutcomeModel.go | 15 - .../beta/EducationOutcomeRequest.go | 38 - .../beta/EducationPointsOutcomeModel.go | 13 - .../beta/EducationPowerPointResourceModel.go | 11 - .../EducationPowerSchoolDataProviderModel.go | 23 - .../msgraph.go/beta/EducationResourceModel.go | 21 - .../msgraph.go/beta/EducationRootModel.go | 19 - .../msgraph.go/beta/EducationRootRequest.go | 428 - .../msgraph.go/beta/EducationRubricModel.go | 29 - .../beta/EducationRubricOutcomeModel.go | 17 - .../msgraph.go/beta/EducationRubricRequest.go | 38 - .../msgraph.go/beta/EducationSchoolModel.go | 37 - .../msgraph.go/beta/EducationSchoolRequest.go | 240 - .../msgraph.go/beta/EducationStudentModel.go | 23 - .../beta/EducationSubmissionAction.go | 98 - ...ationSubmissionIndividualRecipientModel.go | 11 - .../beta/EducationSubmissionModel.go | 39 - .../beta/EducationSubmissionRecipientModel.go | 9 - .../beta/EducationSubmissionRequest.go | 327 - .../beta/EducationSubmissionResourceModel.go | 13 - .../EducationSubmissionResourceRequest.go | 38 - .../beta/EducationSubmissionStatusEnum.go | 49 - ...nSynchronizationConnectionSettingsModel.go | 13 - ...cationSynchronizationCustomizationModel.go | 19 - ...nSynchronizationCustomizationsBaseModel.go | 9 - ...ationSynchronizationCustomizationsModel.go | 21 - ...ucationSynchronizationDataProviderModel.go | 9 - .../EducationSynchronizationErrorModel.go | 23 - .../EducationSynchronizationErrorRequest.go | 38 - ...onSynchronizationLicenseAssignmentModel.go | 13 - ...ronizationOAuth1ConnectionSettingsModel.go | 9 - ...lientCredentialsConnectionSettingsModel.go | 13 - .../EducationSynchronizationProfileAction.go | 188 - .../EducationSynchronizationProfileModel.go | 25 - .../EducationSynchronizationProfileRequest.go | 146 - ...ducationSynchronizationProfileStateEnum.go | 57 - ...cationSynchronizationProfileStatusModel.go | 15 - ...tionSynchronizationProfileStatusRequest.go | 38 - .../EducationSynchronizationStatusEnum.go | 65 - .../msgraph.go/beta/EducationTeacherModel.go | 13 - .../msgraph.go/beta/EducationTermModel.go | 19 - .../msgraph.go/beta/EducationUserModel.go | 85 - .../msgraph.go/beta/EducationUserRequest.go | 522 - .../msgraph.go/beta/EducationUserRoleEnum.go | 49 - .../beta/EducationWordResourceModel.go | 11 - .../beta/EducationalActivityDetailModel.go | 27 - .../beta/EducationalActivityModel.go | 21 - .../beta/EmailActivityStatisticsModel.go | 17 - .../beta/EmailActivitySummaryModel.go | 23 - .../beta/EmailActivityUserDetailModel.go | 33 - .../msgraph.go/beta/EmailAddressModel.go | 13 - .../beta/EmailAppUsageAppsUserCountsModel.go | 33 - .../beta/EmailAppUsageUserCountsModel.go | 35 - .../beta/EmailAppUsageUserDetailModel.go | 43 - .../EmailAppUsageVersionsUserCountsModel.go | 25 - .../beta/EmailCertificateTypeEnum.go | 33 - .../EmailFileAssessmentRequestObjectModel.go | 15 - .../msgraph.go/beta/EmailRoleEnum.go | 41 - .../msgraph.go/beta/EmailSyncDurationEnum.go | 65 - .../msgraph.go/beta/EmailSyncScheduleEnum.go | 65 - .../msgraph.go/beta/EmailTypeEnum.go | 49 - .../beta/EmbeddedSIMActivationCodeModel.go | 15 - .../EmbeddedSIMActivationCodePoolAction.go | 100 - ...dedSIMActivationCodePoolAssignmentModel.go | 11 - ...dSIMActivationCodePoolAssignmentRequest.go | 38 - .../EmbeddedSIMActivationCodePoolModel.go | 25 - .../EmbeddedSIMActivationCodePoolRequest.go | 233 - .../beta/EmbeddedSIMDeviceStateModel.go | 27 - .../beta/EmbeddedSIMDeviceStateRequest.go | 38 - .../beta/EmbeddedSIMDeviceStateValueEnum.go | 73 - .../msgraph.go/beta/EmployeeModel.go | 47 - .../msgraph.go/beta/EmployeeRequest.go | 139 - .../msgraph.go/beta/EnablementEnum.go | 33 - .../msgraph.go/beta/EncryptContentModel.go | 11 - .../msgraph.go/beta/EncryptWithEnum.go | 25 - .../beta/EncryptWithTemplateModel.go | 13 - .../beta/EncryptWithUserDefinedRightsModel.go | 15 - .../beta/EncryptionReadinessStateEnum.go | 25 - .../msgraph.go/beta/EncryptionStateEnum.go | 25 - .../msgraph.go/beta/EndpointTypeEnum.go | 49 - .../EnrollmentConfigurationAssignmentModel.go | 15 - ...nrollmentConfigurationAssignmentRequest.go | 38 - .../beta/EnrollmentProfileAction.go | 67 - .../msgraph.go/beta/EnrollmentProfileModel.go | 21 - .../beta/EnrollmentProfileRequest.go | 38 - ...rictionsConfigurationPolicySetItemModel.go | 13 - .../msgraph.go/beta/EnrollmentStateEnum.go | 57 - .../EnrollmentTroubleshootingEventModel.go | 25 - .../beta/EntitlementManagementRequest.go | 891 - .../msgraph.go/beta/EntityModel.go | 11 - .../msgraph.go/beta/EntitySetNamesModel.go | 9 - .../msgraph.go/beta/EntityTypeEnum.go | 49 - .../msgraph.go/beta/EntryExportStatusEnum.go | 49 - .../msgraph.go/beta/EntrySyncOperationEnum.go | 41 - .../msgraph.go/beta/ErrorCodeEnum.go | 41 - .../EvaluateDynamicMembershipResultModel.go | 15 - .../beta/EvaluateLabelJobResponseModel.go | 11 - .../beta/EvaluateLabelJobResultGroupModel.go | 13 - .../beta/EvaluateLabelJobResultModel.go | 15 - ...aluateLabelsAndPoliciesJobResponseModel.go | 11 - .../EvaluateLabelsAndPoliciesResultModel.go | 15 - ...uateSensitivityLabelsRequestObjectModel.go | 13 - .../msgraph.go/beta/EventAction.go | 239 - .../msgraph.go/beta/EventMessageModel.go | 29 - .../msgraph.go/beta/EventMessageRequest.go | 45 - .../beta/EventMessageRequestObjectAction.go | 111 - .../beta/EventMessageRequestObjectModel.go | 19 - .../beta/EventMessageRequestObjectRequest.go | 38 - .../beta/EventMessageResponseModel.go | 13 - .../msgraph.go/beta/EventModel.go | 89 - .../msgraph.go/beta/EventRequest.go | 522 - .../msgraph.go/beta/EventTypeEnum.go | 41 - ...ctMatchClassificationRequestObjectModel.go | 17 - .../ExactMatchClassificationResultModel.go | 13 - .../beta/ExactMatchDataStoreAction.go | 104 - .../beta/ExactMatchDataStoreModel.go | 19 - .../beta/ExactMatchDataStoreRequest.go | 139 - .../msgraph.go/beta/ExactMatchJobBaseModel.go | 21 - .../beta/ExactMatchLookupJobModel.go | 13 - .../beta/ExactMatchLookupJobRequest.go | 139 - .../beta/ExactMatchSessionAction.go | 96 - .../msgraph.go/beta/ExactMatchSessionModel.go | 41 - .../beta/ExactMatchSessionRequest.go | 45 - .../beta/ExactMatchUploadAgentModel.go | 15 - .../beta/ExactMatchUploadAgentRequest.go | 38 - .../msgraph.go/beta/ExchangeIDFormatEnum.go | 49 - .../beta/ExpressionEvaluationDetailsModel.go | 17 - .../beta/ExpressionInputObjectModel.go | 13 - .../msgraph.go/beta/ExtendedKeyUsageModel.go | 13 - .../beta/ExtendedPlacePropertiesModelModel.go | 21 - .../msgraph.go/beta/ExtensionModel.go | 9 - .../msgraph.go/beta/ExtensionPropertyModel.go | 19 - .../beta/ExtensionPropertyRequest.go | 38 - .../msgraph.go/beta/ExtensionRequest.go | 38 - .../beta/ExtensionSchemaPropertyModel.go | 13 - .../beta/ExternalAudienceScopeEnum.go | 33 - .../beta/ExternalConnectionModel.go | 21 - .../beta/ExternalConnectionRequest.go | 240 - .../msgraph.go/beta/ExternalFileModel.go | 29 - .../msgraph.go/beta/ExternalItemModel.go | 15 - .../msgraph.go/beta/ExternalItemRequest.go | 38 - .../msgraph.go/beta/ExternalLinkModel.go | 11 - .../msgraph.go/beta/ExternalModel.go | 11 - .../msgraph.go/beta/ExternalRequest.go | 139 - .../beta/FeatureRolloutPolicyModel.go | 21 - .../beta/FeatureRolloutPolicyRequest.go | 139 - .../msgraph.go/beta/FeatureTypeEnum.go | 33 - .../beta/FeatureUsageDetailModel.go | 21 - .../beta/FileAssessmentRequestObjectModel.go | 13 - .../msgraph.go/beta/FileAttachmentModel.go | 15 - .../FileClassificationRequestObjectModel.go | 13 - .../FileClassificationRequestObjectRequest.go | 38 - .../beta/FileEncryptionInfoModel.go | 23 - .../msgraph.go/beta/FileHashModel.go | 13 - .../msgraph.go/beta/FileHashTypeEnum.go | 73 - .../matterbridge/msgraph.go/beta/FileModel.go | 15 - .../beta/FileSecurityProfileModel.go | 43 - .../beta/FileSecurityProfileRequest.go | 38 - .../msgraph.go/beta/FileSecurityStateModel.go | 17 - .../msgraph.go/beta/FileSystemInfoModel.go | 17 - .../msgraph.go/beta/FileVaultStateEnum.go | 41 - .../msgraph.go/beta/FilterClauseModel.go | 15 - .../msgraph.go/beta/FilterGroupModel.go | 13 - .../msgraph.go/beta/FilterModel.go | 15 - .../msgraph.go/beta/FilterOperandModel.go | 11 - .../beta/FilterOperatorSchemaModel.go | 15 - .../msgraph.go/beta/FinancialsRequest.go | 139 - ...ficateRevocationListCheckMethodTypeEnum.go | 41 - .../FirewallPacketQueueingMethodTypeEnum.go | 49 - ...ewallPreSharedKeyEncodingMethodTypeEnum.go | 33 - .../msgraph.go/beta/FolderModel.go | 13 - .../beta/FolderProtectionTypeEnum.go | 49 - .../msgraph.go/beta/FolderViewModel.go | 15 - .../msgraph.go/beta/FollowupFlagStatusEnum.go | 33 - .../msgraph.go/beta/FreeBusyStatusEnum.go | 57 - .../beta/GeneralLedgerEntryModel.go | 31 - .../beta/GeneralLedgerEntryRequest.go | 45 - .../msgraph.go/beta/GiphyRatingTypeEnum.go | 33 - .../beta/GovernanceCriteriaModel.go | 9 - .../beta/GovernanceNotificationPolicyModel.go | 13 - .../GovernanceNotificationTemplateModel.go | 19 - .../beta/GovernancePermissionModel.go | 15 - .../msgraph.go/beta/GovernancePolicyModel.go | 13 - .../beta/GovernancePolicyTemplateModel.go | 15 - .../beta/GovernancePolicyTemplateRequest.go | 38 - .../beta/GovernanceResourceAction.go | 37 - .../beta/GovernanceResourceModel.go | 33 - .../beta/GovernanceResourceRequest.go | 428 - .../beta/GovernanceRoleAssignmentModel.go | 39 - .../beta/GovernanceRoleAssignmentRequest.go | 66 - ...rnanceRoleAssignmentRequestObjectAction.go | 74 - ...ernanceRoleAssignmentRequestObjectModel.go | 37 - ...nanceRoleAssignmentRequestObjectRequest.go | 59 - ...ernanceRoleAssignmentRequestStatusModel.go | 15 - .../beta/GovernanceRoleDefinitionModel.go | 21 - .../beta/GovernanceRoleDefinitionRequest.go | 52 - .../beta/GovernanceRoleSettingModel.go | 33 - .../beta/GovernanceRoleSettingRequest.go | 52 - .../beta/GovernanceRuleSettingModel.go | 13 - .../beta/GovernanceScheduleModel.go | 19 - .../msgraph.go/beta/GovernanceSubjectModel.go | 17 - .../beta/GovernanceSubjectRequest.go | 38 - .../msgraph.go/beta/GraphServiceRequest.go | 8560 --------- .../msgraph.go/beta/GroupAccessTypeEnum.go | 41 - .../msgraph.go/beta/GroupAction.go | 417 - .../beta/GroupAssignmentTargetModel.go | 11 - .../beta/GroupLifecyclePolicyAction.go | 104 - .../beta/GroupLifecyclePolicyModel.go | 15 - .../beta/GroupLifecyclePolicyRequest.go | 38 - .../GroupMembershipGovernanceCriteriaModel.go | 11 - .../msgraph.go/beta/GroupModel.go | 155 - .../beta/GroupPolicyConfigurationAction.go | 136 - ...GroupPolicyConfigurationAssignmentModel.go | 15 - ...oupPolicyConfigurationAssignmentRequest.go | 38 - .../beta/GroupPolicyConfigurationModel.go | 25 - .../beta/GroupPolicyConfigurationRequest.go | 233 - .../beta/GroupPolicyConfigurationTypeEnum.go | 25 - .../GroupPolicyDefinitionClassTypeEnum.go | 25 - .../beta/GroupPolicyDefinitionFileModel.go | 29 - .../beta/GroupPolicyDefinitionFileRequest.go | 139 - .../beta/GroupPolicyDefinitionModel.go | 29 - .../beta/GroupPolicyDefinitionRequest.go | 146 - .../beta/GroupPolicyDefinitionValueModel.go | 23 - .../beta/GroupPolicyDefinitionValueRequest.go | 146 - .../beta/GroupPolicyMigrationReadinessEnum.go | 49 - .../beta/GroupPolicyMigrationReportAction.go | 38 - .../beta/GroupPolicyMigrationReportModel.go | 37 - .../beta/GroupPolicyMigrationReportRequest.go | 139 - .../beta/GroupPolicyObjectFileModel.go | 13 - .../GroupPolicyPresentationCheckBoxModel.go | 11 - .../GroupPolicyPresentationComboBoxModel.go | 17 - ...upPolicyPresentationDecimalTextBoxModel.go | 21 - ...PolicyPresentationDropdownListItemModel.go | 13 - ...roupPolicyPresentationDropdownListModel.go | 15 - .../GroupPolicyPresentationListBoxModel.go | 13 - ...licyPresentationLongDecimalTextBoxModel.go | 21 - .../beta/GroupPolicyPresentationModel.go | 17 - ...roupPolicyPresentationMultiTextBoxModel.go | 15 - .../beta/GroupPolicyPresentationRequest.go | 45 - .../GroupPolicyPresentationTextBoxModel.go | 15 - .../beta/GroupPolicyPresentationTextModel.go | 9 - ...roupPolicyPresentationValueBooleanModel.go | 11 - ...roupPolicyPresentationValueDecimalModel.go | 11 - .../GroupPolicyPresentationValueListModel.go | 11 - ...PolicyPresentationValueLongDecimalModel.go | 11 - .../beta/GroupPolicyPresentationValueModel.go | 19 - ...upPolicyPresentationValueMultiTextModel.go | 11 - .../GroupPolicyPresentationValueRequest.go | 52 - .../GroupPolicyPresentationValueTextModel.go | 11 - .../beta/GroupPolicySettingMappingModel.go | 43 - .../beta/GroupPolicySettingMappingRequest.go | 38 - .../beta/GroupPolicySettingScopeEnum.go | 33 - .../beta/GroupPolicySettingTypeEnum.go | 33 - .../msgraph.go/beta/GroupPolicyTypeEnum.go | 25 - .../msgraph.go/beta/GroupPrivacyEnum.go | 25 - .../msgraph.go/beta/GroupRequest.go | 2068 --- .../msgraph.go/beta/GroupTypeEnum.go | 33 - .../beta/HardwareInformationModel.go | 55 - .../msgraph.go/beta/HashAlgorithmsEnum.go | 25 - .../msgraph.go/beta/HealthStateEnum.go | 33 - .../beta/HostSecurityProfileModel.go | 47 - .../msgraph.go/beta/HostSecurityStateModel.go | 27 - .../msgraph.go/beta/IOSBookmarkModel.go | 15 - .../beta/IOSCertificateProfileBaseModel.go | 19 - .../beta/IOSCertificateProfileBaseRequest.go | 38 - .../beta/IOSCertificateProfileModel.go | 9 - .../beta/IOSCertificateProfileRequest.go | 38 - .../beta/IOSCompliancePolicyModel.go | 45 - .../beta/IOSCustomConfigurationModel.go | 15 - ...dentialAuthenticationConfigurationModel.go | 11 - ...ntialAuthenticationConfigurationRequest.go | 45 - .../IOSDeviceFeaturesConfigurationModel.go | 33 - .../IOSDeviceFeaturesConfigurationRequest.go | 52 - .../msgraph.go/beta/IOSDeviceTypeModel.go | 13 - .../IOSEasEmailProfileConfigurationModel.go | 61 - .../IOSEasEmailProfileConfigurationRequest.go | 66 - .../beta/IOSEduCertificateSettingsModel.go | 25 - .../beta/IOSEduDeviceConfigurationModel.go | 15 - .../IOSEducationDeviceConfigurationModel.go | 9 - .../IOSEnterpriseWiFiConfigurationModel.go | 31 - .../IOSEnterpriseWiFiConfigurationRequest.go | 153 - .../IOSGeneralDeviceConfigurationModel.go | 359 - .../msgraph.go/beta/IOSHomeScreenAppModel.go | 11 - .../beta/IOSHomeScreenFolderModel.go | 11 - .../beta/IOSHomeScreenFolderPageModel.go | 13 - .../msgraph.go/beta/IOSHomeScreenItemModel.go | 11 - .../msgraph.go/beta/IOSHomeScreenPageModel.go | 13 - .../IOSImportedPFXCertificateProfileModel.go | 13 - ...IOSImportedPFXCertificateProfileRequest.go | 139 - .../IOSKerberosSingleSignOnExtensionModel.go | 9 - .../beta/IOSLobAppAssignmentSettingsModel.go | 13 - .../msgraph.go/beta/IOSLobAppModel.go | 25 - ...OSLobAppProvisioningConfigurationAction.go | 134 - ...rovisioningConfigurationAssignmentModel.go | 11 - ...visioningConfigurationAssignmentRequest.go | 38 - ...IOSLobAppProvisioningConfigurationModel.go | 37 - ...isioningConfigurationPolicySetItemModel.go | 9 - ...SLobAppProvisioningConfigurationRequest.go | 421 - .../beta/IOSManagedAppProtectionAction.go | 100 - .../beta/IOSManagedAppProtectionModel.go | 39 - .../beta/IOSManagedAppProtectionRequest.go | 146 - .../beta/IOSManagedAppRegistrationModel.go | 9 - .../beta/IOSMinimumOperatingSystemModel.go | 21 - .../beta/IOSMobileAppConfigurationModel.go | 13 - .../beta/IOSMobileAppIdentifierModel.go | 11 - .../beta/IOSNetworkUsageRuleModel.go | 15 - .../beta/IOSNotificationAlertTypeEnum.go | 41 - .../beta/IOSNotificationSettingsModel.go | 27 - .../beta/IOSPkcsCertificateProfileModel.go | 19 - .../beta/IOSPkcsCertificateProfileRequest.go | 139 - .../beta/IOSScepCertificateProfileModel.go | 29 - .../beta/IOSScepCertificateProfileRequest.go | 146 - .../beta/IOSSingleSignOnSettingsModel.go | 19 - .../IOSStoreAppAssignmentSettingsModel.go | 13 - .../msgraph.go/beta/IOSStoreAppModel.go | 17 - .../beta/IOSTrustedRootCertificateModel.go | 13 - .../beta/IOSTrustedRootCertificateRequest.go | 38 - .../beta/IOSUpdateConfigurationModel.go | 23 - .../beta/IOSUpdateDeviceStatusModel.go | 35 - .../beta/IOSUpdateDeviceStatusRequest.go | 38 - .../beta/IOSUpdatesInstallStatusEnum.go | 145 - .../beta/IOSVpnConfigurationModel.go | 23 - .../beta/IOSVpnConfigurationRequest.go | 52 - ...OSVpnSecurityAssociationParametersModel.go | 17 - .../msgraph.go/beta/IOSVppAppAction.go | 105 - .../IOSVppAppAssignedDeviceLicenseModel.go | 13 - .../beta/IOSVppAppAssignedLicenseModel.go | 17 - .../beta/IOSVppAppAssignedLicenseRequest.go | 38 - .../beta/IOSVppAppAssignedUserLicenseModel.go | 9 - .../beta/IOSVppAppAssignmentSettingsModel.go | 15 - .../msgraph.go/beta/IOSVppAppModel.go | 37 - .../msgraph.go/beta/IOSVppAppRequest.go | 139 - ...OSVppAppRevokeLicensesActionResultModel.go | 29 - .../beta/IOSVppEBookAssignmentModel.go | 9 - .../msgraph.go/beta/IOSVppEBookModel.go | 27 - .../beta/IOSWallpaperDisplayLocationEnum.go | 41 - .../IOSWebContentFilterAutoFilterModel.go | 13 - .../beta/IOSWebContentFilterBaseModel.go | 9 - ...ontentFilterSpecificWebsitesAccessModel.go | 13 - .../beta/IOSWiFiConfigurationModel.go | 29 - .../msgraph.go/beta/IPCategoryModel.go | 15 - .../msgraph.go/beta/IPNamedLocationModel.go | 13 - .../msgraph.go/beta/IPRangeModel.go | 9 - .../msgraph.go/beta/IPReferenceDataModel.go | 21 - .../msgraph.go/beta/IPSecurityProfileModel.go | 37 - .../msgraph.go/beta/IPv4CidrRangeModel.go | 11 - .../msgraph.go/beta/IPv4RangeModel.go | 13 - .../msgraph.go/beta/IPv6CidrRangeModel.go | 11 - .../msgraph.go/beta/IPv6RangeModel.go | 13 - .../msgraph.go/beta/ITunesPairingModeEnum.go | 33 - .../msgraph.go/beta/IdentityContainerModel.go | 11 - .../beta/IdentityContainerRequest.go | 139 - .../beta/IdentityGovernanceModel.go | 11 - .../beta/IdentityGovernanceRequest.go | 45 - .../msgraph.go/beta/IdentityModel.go | 13 - .../msgraph.go/beta/IdentityProviderModel.go | 17 - .../beta/IdentityProviderRequest.go | 38 - .../msgraph.go/beta/IdentityRiskEventModel.go | 31 - .../beta/IdentityRiskEventRequest.go | 45 - .../msgraph.go/beta/IdentitySetModel.go | 15 - .../msgraph.go/beta/IdentityUserFlowModel.go | 13 - .../beta/IdentityUserFlowRequest.go | 38 - .../msgraph.go/beta/IdentityUserRiskModel.go | 15 - .../msgraph.go/beta/ImageInfoModel.go | 17 - .../msgraph.go/beta/ImageModel.go | 13 - .../msgraph.go/beta/ImportanceEnum.go | 33 - .../beta/ImportedAppleDeviceIdentityAction.go | 102 - .../beta/ImportedAppleDeviceIdentityModel.go | 33 - .../ImportedAppleDeviceIdentityRequest.go | 38 - .../ImportedAppleDeviceIdentityResultModel.go | 11 - .../beta/ImportedDeviceIdentityAction.go | 190 - .../beta/ImportedDeviceIdentityModel.go | 27 - .../beta/ImportedDeviceIdentityRequest.go | 38 - .../beta/ImportedDeviceIdentityResultModel.go | 11 - .../beta/ImportedDeviceIdentityTypeEnum.go | 33 - ...tedWindowsAutopilotDeviceIdentityAction.go | 108 - ...AutopilotDeviceIdentityImportStatusEnum.go | 49 - ...rtedWindowsAutopilotDeviceIdentityModel.go | 25 - ...edWindowsAutopilotDeviceIdentityRequest.go | 38 - ...indowsAutopilotDeviceIdentityStateModel.go | 17 - ...ndowsAutopilotDeviceIdentityUploadModel.go | 17 - ...owsAutopilotDeviceIdentityUploadRequest.go | 139 - ...AutopilotDeviceIdentityUploadStatusEnum.go | 41 - .../beta/InferenceClassificationModel.go | 11 - .../InferenceClassificationOverrideModel.go | 13 - .../InferenceClassificationOverrideRequest.go | 38 - .../beta/InferenceClassificationRequest.go | 139 - .../beta/InferenceClassificationTypeEnum.go | 25 - .../msgraph.go/beta/InferenceDataModel.go | 13 - .../beta/InformationProtectionAction.go | 42 - .../beta/InformationProtectionActionModel.go | 9 - .../InformationProtectionContentLabelModel.go | 17 - .../beta/InformationProtectionLabelAction.go | 315 - .../beta/InformationProtectionLabelModel.go | 21 - .../beta/InformationProtectionLabelRequest.go | 38 - .../beta/InformationProtectionModel.go | 19 - .../beta/InformationProtectionPolicyModel.go | 11 - .../InformationProtectionPolicyRequest.go | 139 - .../beta/InformationProtectionRequest.go | 341 - .../msgraph.go/beta/InitiatorTypeEnum.go | 41 - .../msgraph.go/beta/InkAccessSettingEnum.go | 33 - .../msgraph.go/beta/InsightIdentityModel.go | 15 - .../beta/InsightValueDoubleModel.go | 11 - .../msgraph.go/beta/InsightValueIntModel.go | 11 - .../msgraph.go/beta/InstallIntentEnum.go | 41 - .../msgraph.go/beta/InstallStateEnum.go | 57 - .../msgraph.go/beta/IntendedPurposeEnum.go | 49 - .../InternetExplorerMessageSettingEnum.go | 41 - .../beta/InternetSiteSecurityLevelEnum.go | 41 - .../msgraph.go/beta/IntuneBrandModel.go | 51 - .../beta/IntuneBrandingProfileAction.go | 37 - .../IntuneBrandingProfileAssignmentModel.go | 11 - .../IntuneBrandingProfileAssignmentRequest.go | 38 - .../beta/IntuneBrandingProfileModel.go | 63 - .../beta/IntuneBrandingProfileRequest.go | 139 - .../msgraph.go/beta/InvitationModel.go | 29 - .../beta/InvitationParticipantInfoModel.go | 15 - .../msgraph.go/beta/InvitationRequest.go | 45 - .../beta/IosikEv2VpnConfigurationModel.go | 49 - .../msgraph.go/beta/ItemActionSetModel.go | 29 - .../msgraph.go/beta/ItemActionStatModel.go | 13 - .../msgraph.go/beta/ItemActivityModel.go | 19 - .../msgraph.go/beta/ItemActivityOLDModel.go | 19 - .../msgraph.go/beta/ItemActivityOLDRequest.go | 52 - .../msgraph.go/beta/ItemActivityRequest.go | 45 - .../msgraph.go/beta/ItemActivityStatModel.go | 31 - .../beta/ItemActivityStatRequest.go | 139 - .../beta/ItemActivityTimeSetModel.go | 17 - .../msgraph.go/beta/ItemAnalyticsModel.go | 15 - .../msgraph.go/beta/ItemAnalyticsRequest.go | 153 - .../msgraph.go/beta/ItemAttachmentModel.go | 11 - .../msgraph.go/beta/ItemAttachmentRequest.go | 45 - .../msgraph.go/beta/ItemBodyModel.go | 13 - .../msgraph.go/beta/ItemCategoryModel.go | 17 - .../msgraph.go/beta/ItemCategoryRequest.go | 38 - .../msgraph.go/beta/ItemEmailModel.go | 15 - .../msgraph.go/beta/ItemEmailRequest.go | 38 - .../msgraph.go/beta/ItemFacetModel.go | 23 - .../matterbridge/msgraph.go/beta/ItemModel.go | 45 - .../msgraph.go/beta/ItemPhoneModel.go | 15 - .../msgraph.go/beta/ItemPhoneRequest.go | 38 - .../msgraph.go/beta/ItemPreviewInfoModel.go | 15 - .../msgraph.go/beta/ItemReferenceModel.go | 25 - .../msgraph.go/beta/ItemRequest.go | 146 - .../msgraph.go/beta/JournalAction.go | 35 - .../msgraph.go/beta/JournalLineModel.go | 35 - .../msgraph.go/beta/JournalLineRequest.go | 45 - .../msgraph.go/beta/JournalModel.go | 25 - .../msgraph.go/beta/JournalRequest.go | 146 - .../beta/KeyBooleanValuePairModel.go | 11 - .../msgraph.go/beta/KeyCredentialModel.go | 27 - .../beta/KeyIntegerValuePairModel.go | 11 - .../msgraph.go/beta/KeyRealValuePairModel.go | 11 - .../msgraph.go/beta/KeySizeEnum.go | 25 - .../beta/KeyStorageProviderOptionEnum.go | 41 - .../beta/KeyStringValuePairModel.go | 11 - .../msgraph.go/beta/KeyTypedValuePairModel.go | 11 - .../msgraph.go/beta/KeyUsagesEnum.go | 25 - .../msgraph.go/beta/KeyValueModel.go | 13 - .../msgraph.go/beta/KeyValuePairModel.go | 13 - .../msgraph.go/beta/LabelActionBaseModel.go | 11 - .../msgraph.go/beta/LabelDetailsModel.go | 23 - .../msgraph.go/beta/LabelPolicyModel.go | 13 - .../beta/LanManagerAuthenticationLevelEnum.go | 57 - .../beta/LanguageProficiencyLevelEnum.go | 65 - .../beta/LicenseAssignmentStateModel.go | 19 - .../msgraph.go/beta/LicenseDetailsModel.go | 15 - .../msgraph.go/beta/LicenseInfoDetailModel.go | 17 - .../beta/LicenseProcessingStateModel.go | 11 - .../beta/LicenseUnitsDetailModel.go | 15 - .../msgraph.go/beta/ListInfoModel.go | 15 - .../msgraph.go/beta/ListItemModel.go | 23 - .../msgraph.go/beta/ListItemRequest.go | 254 - .../msgraph.go/beta/ListItemVersionAction.go | 35 - .../msgraph.go/beta/ListItemVersionModel.go | 11 - .../msgraph.go/beta/ListItemVersionRequest.go | 45 - .../matterbridge/msgraph.go/beta/ListModel.go | 29 - .../msgraph.go/beta/ListRequest.go | 522 - ...istratorElevationPromptBehaviorTypeEnum.go | 65 - ...jectOfRemovableMediaAllowedUserTypeEnum.go | 41 - ...nformationDisplayedOnLockScreenTypeEnum.go | 41 - ...onsInformationShownOnLockScreenTypeEnum.go | 41 - ...curityOptionsMinimumSessionSecurityEnum.go | 41 - ...OptionsSmartCardRemovalBehaviorTypeEnum.go | 41 - ...dardUserElevationPromptBehaviorTypeEnum.go | 41 - .../beta/LocationConstraintItemModel.go | 11 - .../beta/LocationConstraintModel.go | 15 - .../beta/LocationManagementConditionModel.go | 9 - .../msgraph.go/beta/LocationModel.go | 25 - .../msgraph.go/beta/LocationTypeEnum.go | 89 - .../beta/LocationUniqueIDTypeEnum.go | 49 - .../msgraph.go/beta/LogLevelEnum.go | 57 - .../msgraph.go/beta/LogonTypeEnum.go | 65 - .../msgraph.go/beta/LookupColumnModel.go | 19 - .../msgraph.go/beta/LookupResultRowModel.go | 11 - .../msgraph.go/beta/LostModeStateEnum.go | 25 - .../beta/MacManagedAppProtectionAction.go | 9 - .../beta/MacManagedAppProtectionModel.go | 9 - .../beta/MacManagedAppProtectionRequest.go | 38 - .../beta/MacOSCertificateProfileBaseModel.go | 19 - .../MacOSCertificateProfileBaseRequest.go | 38 - .../beta/MacOSCompliancePolicyModel.go | 49 - .../beta/MacOSCustomAppConfigurationModel.go | 15 - .../beta/MacOSCustomConfigurationModel.go | 15 - .../MacOSDeviceFeaturesConfigurationModel.go | 51 - ...MacOSDeviceFeaturesConfigurationRequest.go | 45 - ...cOSEndpointProtectionConfigurationModel.go | 39 - .../MacOSEnterpriseWiFiConfigurationModel.go | 25 - ...MacOSEnterpriseWiFiConfigurationRequest.go | 52 - .../beta/MacOSExtensionsConfigurationModel.go | 15 - .../MacOSFileVaultRecoveryKeyTypesEnum.go | 33 - .../beta/MacOSFirewallApplicationModel.go | 13 - .../beta/MacOSGatekeeperAppSourcesEnum.go | 41 - .../MacOSGeneralDeviceConfigurationModel.go | 105 - ...MacOSImportedPFXCertificateProfileModel.go | 13 - ...cOSImportedPFXCertificateProfileRequest.go | 139 - ...MacOSKerberosSingleSignOnExtensionModel.go | 9 - .../beta/MacOSKernelExtensionModel.go | 13 - .../msgraph.go/beta/MacOSLaunchItemModel.go | 13 - .../msgraph.go/beta/MacOSLobAppModel.go | 27 - .../msgraph.go/beta/MacOSLobChildAppModel.go | 15 - .../beta/MacOSMicrosoftEdgeAppModel.go | 9 - .../beta/MacOSMinimumOperatingSystemModel.go | 27 - .../beta/MacOSOfficeSuiteAppModel.go | 9 - .../beta/MacOSPkcsCertificateProfileModel.go | 27 - .../MacOSPkcsCertificateProfileRequest.go | 139 - .../beta/MacOSScepCertificateProfileModel.go | 31 - .../MacOSScepCertificateProfileRequest.go | 146 - .../beta/MacOSTrustedRootCertificateModel.go | 13 - .../MacOSTrustedRootCertificateRequest.go | 38 - .../beta/MacOSVpnConfigurationModel.go | 11 - .../beta/MacOSVpnConfigurationRequest.go | 45 - .../beta/MacOSWiFiConfigurationModel.go | 29 - .../MacOSWiredNetworkConfigurationModel.go | 29 - .../MacOSWiredNetworkConfigurationRequest.go | 52 - .../beta/MacOsVppAppAssignedLicenseModel.go | 17 - .../beta/MacOsVppAppAssignedLicenseRequest.go | 38 - .../MacOsVppAppAssignmentSettingsModel.go | 11 - .../msgraph.go/beta/MacOsVppAppModel.go | 35 - .../msgraph.go/beta/MacOsVppAppRequest.go | 139 - ...OsVppAppRevokeLicensesActionResultModel.go | 29 - .../beta/MailAssessmentRequestObjectModel.go | 15 - .../beta/MailDestinationRoutingReasonEnum.go | 137 - .../msgraph.go/beta/MailFolderAction.go | 71 - .../msgraph.go/beta/MailFolderModel.go | 33 - .../msgraph.go/beta/MailFolderRequest.go | 609 - .../msgraph.go/beta/MailSearchFolderModel.go | 17 - .../msgraph.go/beta/MailTipsErrorModel.go | 13 - .../msgraph.go/beta/MailTipsModel.go | 33 - .../msgraph.go/beta/MailTipsTypeEnum.go | 89 - .../msgraph.go/beta/MailboxSettingsModel.go | 25 - .../beta/MailboxUsageDetailModel.go | 41 - .../beta/MailboxUsageMailboxCountsModel.go | 21 - ...ilboxUsageQuotaStatusMailboxCountsModel.go | 27 - .../beta/MailboxUsageStorageModel.go | 19 - .../msgraph.go/beta/MalwareRiskEventModel.go | 13 - .../msgraph.go/beta/MalwareStateModel.go | 19 - .../ManagedAllDeviceCertificateStateModel.go | 33 - ...ManagedAllDeviceCertificateStateRequest.go | 38 - .../beta/ManagedAndroidLobAppModel.go | 21 - .../beta/ManagedAndroidStoreAppModel.go | 15 - .../beta/ManagedAppAvailabilityEnum.go | 25 - .../ManagedAppClipboardSharingLevelEnum.go | 41 - .../beta/ManagedAppConfigurationModel.go | 11 - .../beta/ManagedAppDataEncryptionTypeEnum.go | 41 - .../beta/ManagedAppDataStorageLocationEnum.go | 33 - .../beta/ManagedAppDataTransferLevelEnum.go | 33 - .../beta/ManagedAppDeviceThreatLevelEnum.go | 49 - .../beta/ManagedAppDiagnosticStatusModel.go | 15 - .../beta/ManagedAppFlaggedReasonEnum.go | 41 - .../msgraph.go/beta/ManagedAppModel.go | 13 - .../ManagedAppNotificationRestrictionEnum.go | 33 - .../beta/ManagedAppOperationModel.go | 19 - .../beta/ManagedAppOperationRequest.go | 38 - .../beta/ManagedAppPinCharacterSetEnum.go | 25 - .../msgraph.go/beta/ManagedAppPolicyAction.go | 37 - .../ManagedAppPolicyDeploymentSummaryModel.go | 21 - ...edAppPolicyDeploymentSummaryPerAppModel.go | 13 - ...anagedAppPolicyDeploymentSummaryRequest.go | 38 - .../msgraph.go/beta/ManagedAppPolicyModel.go | 23 - .../beta/ManagedAppPolicyRequest.go | 38 - .../beta/ManagedAppProtectionAction.go | 37 - .../beta/ManagedAppProtectionModel.go | 85 - .../ManagedAppProtectionPolicySetItemModel.go | 11 - .../beta/ManagedAppProtectionRequest.go | 38 - .../beta/ManagedAppRegistrationModel.go | 49 - .../beta/ManagedAppRegistrationRequest.go | 327 - .../beta/ManagedAppRemediationActionEnum.go | 33 - .../msgraph.go/beta/ManagedAppStatusModel.go | 13 - .../beta/ManagedAppStatusRawModel.go | 13 - .../beta/ManagedAppStatusRequest.go | 38 - .../msgraph.go/beta/ManagedBrowserTypeEnum.go | 25 - .../msgraph.go/beta/ManagedDeviceAction.go | 908 - .../ManagedDeviceCertificateStateModel.go | 59 - .../ManagedDeviceCertificateStateRequest.go | 38 - .../beta/ManagedDeviceCleanupSettingsModel.go | 11 - .../beta/ManagedDeviceEncryptionStateModel.go | 31 - .../ManagedDeviceEncryptionStateRequest.go | 38 - ...nagedDeviceMobileAppConfigurationAction.go | 37 - ...ceMobileAppConfigurationAssignmentModel.go | 11 - ...MobileAppConfigurationAssignmentRequest.go | 38 - ...MobileAppConfigurationDeviceStatusModel.go | 27 - ...bileAppConfigurationDeviceStatusRequest.go | 38 - ...obileAppConfigurationDeviceSummaryModel.go | 29 - ...ileAppConfigurationDeviceSummaryRequest.go | 38 - ...anagedDeviceMobileAppConfigurationModel.go | 35 - ...obileAppConfigurationPolicySetItemModel.go | 9 - ...agedDeviceMobileAppConfigurationRequest.go | 341 - ...dDeviceMobileAppConfigurationStateModel.go | 23 - ...eviceMobileAppConfigurationStateRequest.go | 38 - ...ceMobileAppConfigurationUserStatusModel.go | 21 - ...MobileAppConfigurationUserStatusRequest.go | 38 - ...eMobileAppConfigurationUserSummaryModel.go | 27 - ...obileAppConfigurationUserSummaryRequest.go | 38 - .../msgraph.go/beta/ManagedDeviceModel.go | 165 - ...anagedDeviceModelsAndManufacturersModel.go | 13 - .../beta/ManagedDeviceOverviewModel.go | 25 - .../beta/ManagedDeviceOverviewRequest.go | 38 - .../beta/ManagedDeviceOwnerTypeEnum.go | 33 - ...gedDevicePartnerReportedHealthStateEnum.go | 89 - .../beta/ManagedDeviceRemoteActionEnum.go | 81 - .../beta/ManagedDeviceReportedAppModel.go | 11 - .../msgraph.go/beta/ManagedDeviceRequest.go | 623 - .../msgraph.go/beta/ManagedEBookAction.go | 37 - .../beta/ManagedEBookAssignmentModel.go | 13 - .../beta/ManagedEBookAssignmentRequest.go | 38 - .../beta/ManagedEBookCategoryModel.go | 15 - .../beta/ManagedEBookCategoryRequest.go | 38 - .../msgraph.go/beta/ManagedEBookModel.go | 39 - .../msgraph.go/beta/ManagedEBookRequest.go | 428 - .../msgraph.go/beta/ManagedIOSLobAppModel.go | 25 - .../beta/ManagedIOSStoreAppModel.go | 17 - .../msgraph.go/beta/ManagedMobileAppModel.go | 13 - .../beta/ManagedMobileAppRequest.go | 38 - .../beta/ManagedMobileLobAppModel.go | 17 - .../beta/ManagedMobileLobAppRequest.go | 139 - .../beta/ManagementAgentTypeEnum.go | 105 - ...anagementCertificateWithThumbprintModel.go | 13 - .../ManagementConditionExpressionModel.go | 9 - ...ManagementConditionExpressionModelModel.go | 9 - ...anagementConditionExpressionStringModel.go | 11 - .../beta/ManagementConditionModel.go | 27 - .../beta/ManagementConditionRequest.go | 139 - .../beta/ManagementConditionStatementModel.go | 27 - .../ManagementConditionStatementRequest.go | 139 - .../msgraph.go/beta/ManagementStateEnum.go | 105 - .../msgraph.go/beta/MatchingDlpRuleModel.go | 25 - .../msgraph.go/beta/MatchingLabelModel.go | 29 - .../beta/MdmAppConfigKeyTypeEnum.go | 49 - .../msgraph.go/beta/MdmAuthorityEnum.go | 41 - ...indowsInformationProtectionPolicyAction.go | 100 - ...WindowsInformationProtectionPolicyModel.go | 9 - ...ationProtectionPolicyPolicySetItemModel.go | 9 - ...ndowsInformationProtectionPolicyRequest.go | 38 - .../msgraph.go/beta/MediaConfigModel.go | 11 - .../beta/MediaContentRatingAustraliaModel.go | 13 - .../beta/MediaContentRatingCanadaModel.go | 13 - .../beta/MediaContentRatingFranceModel.go | 13 - .../beta/MediaContentRatingGermanyModel.go | 13 - .../beta/MediaContentRatingIrelandModel.go | 13 - .../beta/MediaContentRatingJapanModel.go | 13 - .../beta/MediaContentRatingNewZealandModel.go | 13 - .../MediaContentRatingUnitedKingdomModel.go | 13 - .../MediaContentRatingUnitedStatesModel.go | 13 - .../msgraph.go/beta/MediaDirectionEnum.go | 41 - .../msgraph.go/beta/MediaInfoModel.go | 13 - .../msgraph.go/beta/MediaPromptModel.go | 13 - .../msgraph.go/beta/MediaStateEnum.go | 33 - .../msgraph.go/beta/MediaStreamModel.go | 19 - .../beta/MeetingActivityStatisticsModel.go | 23 - .../beta/MeetingCapabilitiesEnum.go | 25 - .../msgraph.go/beta/MeetingCapabilityModel.go | 15 - .../msgraph.go/beta/MeetingInfoModel.go | 11 - .../msgraph.go/beta/MeetingMessageTypeEnum.go | 57 - .../beta/MeetingParticipantInfoModel.go | 13 - .../beta/MeetingParticipantsModel.go | 17 - .../beta/MeetingTimeSuggestionModel.go | 23 - .../beta/MeetingTimeSuggestionsResultModel.go | 13 - .../msgraph.go/beta/MentionActionModel.go | 11 - .../msgraph.go/beta/MentionModel.go | 27 - .../msgraph.go/beta/MessageAction.go | 342 - .../msgraph.go/beta/MessageActionFlagEnum.go | 97 - .../msgraph.go/beta/MessageModel.go | 79 - .../msgraph.go/beta/MessageRequest.go | 515 - .../beta/MessageRuleActionsModel.go | 31 - .../msgraph.go/beta/MessageRuleModel.go | 25 - .../beta/MessageRulePredicatesModel.go | 69 - .../msgraph.go/beta/MessageRuleRequest.go | 38 - .../msgraph.go/beta/MetadataActionModel.go | 13 - .../msgraph.go/beta/MetadataEntryModel.go | 13 - .../beta/MeteredConnectionLimitTypeEnum.go | 33 - .../beta/MicrosoftEdgeChannelEnum.go | 33 - ...reForBusinessAppAssignmentSettingsModel.go | 11 - .../beta/MicrosoftStoreForBusinessAppModel.go | 23 - .../MicrosoftStoreForBusinessAppRequest.go | 139 - ...rosoftStoreForBusinessContainedAppModel.go | 11 - ...icrosoftStoreForBusinessLicenseTypeEnum.go | 25 - ...reForBusinessPortalSelectionOptionsEnum.go | 33 - .../msgraph.go/beta/MigrationStatusEnum.go | 41 - .../msgraph.go/beta/MiracastChannelEnum.go | 177 - .../msgraph.go/beta/MobileAppAction.go | 164 - .../beta/MobileAppActionTypeEnum.go | 49 - .../beta/MobileAppAssignmentModel.go | 19 - .../beta/MobileAppAssignmentRequest.go | 38 - .../beta/MobileAppAssignmentSettingsModel.go | 9 - .../msgraph.go/beta/MobileAppCategoryModel.go | 15 - .../beta/MobileAppCategoryRequest.go | 38 - .../beta/MobileAppContentFileAction.go | 67 - .../beta/MobileAppContentFileModel.go | 33 - .../beta/MobileAppContentFileRequest.go | 38 - .../MobileAppContentFileUploadStateEnum.go | 137 - .../msgraph.go/beta/MobileAppContentModel.go | 13 - .../beta/MobileAppContentRequest.go | 233 - .../beta/MobileAppDependencyModel.go | 13 - .../beta/MobileAppDependencyTypeEnum.go | 25 - .../beta/MobileAppIdentifierModel.go | 9 - .../beta/MobileAppInstallStatusModel.go | 37 - .../beta/MobileAppInstallStatusRequest.go | 45 - .../beta/MobileAppInstallSummaryModel.go | 29 - .../beta/MobileAppInstallSummaryRequest.go | 38 - .../beta/MobileAppInstallTimeSettingsModel.go | 17 - .../MobileAppIntentAndStateDetailModel.go | 21 - .../beta/MobileAppIntentAndStateModel.go | 15 - .../beta/MobileAppIntentAndStateRequest.go | 38 - .../msgraph.go/beta/MobileAppIntentEnum.go | 65 - .../msgraph.go/beta/MobileAppModel.go | 57 - .../beta/MobileAppPolicySetItemModel.go | 13 - ...pProvisioningConfigGroupAssignmentModel.go | 11 - ...rovisioningConfigGroupAssignmentRequest.go | 38 - .../beta/MobileAppPublishingStateEnum.go | 33 - .../beta/MobileAppRelationshipModel.go | 13 - .../beta/MobileAppRelationshipRequest.go | 38 - .../beta/MobileAppRelationshipStateModel.go | 27 - .../msgraph.go/beta/MobileAppRequest.go | 522 - .../beta/MobileAppSupportedDeviceTypeModel.go | 15 - ...leshootingAppPolicyCreationHistoryModel.go | 13 - ...eAppTroubleshootingAppStateHistoryModel.go | 15 - ...AppTroubleshootingAppTargetHistoryModel.go | 15 - ...AppTroubleshootingAppUpdateHistoryModel.go | 9 - ...roubleshootingDeviceCheckinHistoryModel.go | 9 - .../MobileAppTroubleshootingEventModel.go | 19 - .../MobileAppTroubleshootingEventRequest.go | 139 - ...obileAppTroubleshootingHistoryItemModel.go | 13 - .../beta/MobileContainedAppModel.go | 9 - .../beta/MobileContainedAppRequest.go | 38 - .../msgraph.go/beta/MobileLobAppModel.go | 17 - .../msgraph.go/beta/MobileLobAppRequest.go | 139 - .../beta/MobileThreatDefenseConnectorModel.go | 41 - .../MobileThreatDefenseConnectorRequest.go | 38 - .../MobileThreatPartnerTenantStateEnum.go | 41 - .../msgraph.go/beta/ModalityEnum.go | 57 - .../msgraph.go/beta/MutabilityEnum.go | 41 - .../beta/MuteParticipantOperationModel.go | 9 - .../beta/MuteParticipantsOperationModel.go | 11 - .../msgraph.go/beta/NdesConnectorModel.go | 17 - .../msgraph.go/beta/NdesConnectorRequest.go | 38 - .../msgraph.go/beta/NdesConnectorStateEnum.go | 33 - .../msgraph.go/beta/NetworkConnectionModel.go | 47 - ...v4ConfigurationManagementConditionModel.go | 19 - ...v6ConfigurationManagementConditionModel.go | 17 - .../msgraph.go/beta/NetworkInterfaceModel.go | 19 - .../beta/NetworkLocationDetailModel.go | 13 - .../beta/NetworkManagementConditionModel.go | 9 - .../beta/NetworkSingleSignOnTypeEnum.go | 33 - .../msgraph.go/beta/NetworkTypeEnum.go | 49 - ...pAuthenticationMethodForEapTtlsTypeEnum.go | 41 - .../NonEapAuthenticationMethodForPeapEnum.go | 25 - .../msgraph.go/beta/NotebookAction.go | 79 - .../msgraph.go/beta/NotebookLinksModel.go | 13 - .../msgraph.go/beta/NotebookModel.go | 25 - .../msgraph.go/beta/NotebookRequest.go | 233 - .../beta/NotificationMessageTemplateAction.go | 35 - .../beta/NotificationMessageTemplateModel.go | 23 - .../NotificationMessageTemplateRequest.go | 139 - .../msgraph.go/beta/NotificationModel.go | 25 - .../msgraph.go/beta/NotificationRequest.go | 38 - ...NotificationTemplateBrandingOptionsEnum.go | 41 - .../msgraph.go/beta/NumberColumnModel.go | 17 - .../msgraph.go/beta/NumberRangeModel.go | 13 - .../msgraph.go/beta/OMASettingBase64Model.go | 13 - .../msgraph.go/beta/OMASettingBooleanModel.go | 11 - .../beta/OMASettingDateTimeModel.go | 13 - .../beta/OMASettingFloatingPointModel.go | 11 - .../msgraph.go/beta/OMASettingIntegerModel.go | 13 - .../msgraph.go/beta/OMASettingModel.go | 15 - .../msgraph.go/beta/OMASettingStringModel.go | 11 - .../beta/OMASettingStringXMLModel.go | 13 - .../msgraph.go/beta/ObjectDefinitionModel.go | 17 - .../msgraph.go/beta/ObjectFlowTypesEnum.go | 41 - .../msgraph.go/beta/ObjectIdentityModel.go | 15 - .../msgraph.go/beta/ObjectMappingModel.go | 25 - .../beta/Office365ActivationCountsModel.go | 25 - .../Office365ActivationsUserCountsModel.go | 21 - .../Office365ActivationsUserDetailModel.go | 19 - .../beta/Office365ActiveUserCountsModel.go | 31 - .../beta/Office365ActiveUserDetailModel.go | 59 - .../Office365GroupsActivityCountsModel.go | 25 - .../Office365GroupsActivityDetailModel.go | 49 - .../Office365GroupsActivityFileCountsModel.go | 21 - ...Office365GroupsActivityGroupCountsModel.go | 21 - .../Office365GroupsActivityStorageModel.go | 21 - .../beta/Office365ServicesUserCountsModel.go | 43 - .../beta/OfficeClientCheckinStatusModel.go | 29 - .../beta/OfficeClientConfigurationAction.go | 134 - ...fficeClientConfigurationAssignmentModel.go | 11 - ...iceClientConfigurationAssignmentRequest.go | 38 - .../beta/OfficeClientConfigurationModel.go | 25 - .../beta/OfficeClientConfigurationRequest.go | 139 - ...fficeConfigurationAssignmentTargetModel.go | 9 - ...ConfigurationGroupAssignmentTargetModel.go | 11 - .../beta/OfficeConfigurationModel.go | 15 - .../beta/OfficeConfigurationRequest.go | 139 - .../beta/OfficeGraphInsightsModel.go | 15 - .../beta/OfficeGraphInsightsRequest.go | 327 - .../msgraph.go/beta/OfficeProductIDEnum.go | 41 - .../msgraph.go/beta/OfficeSuiteAppModel.go | 33 - ...iceSuiteInstallProgressDisplayLevelEnum.go | 25 - .../beta/OfficeUpdateChannelEnum.go | 49 - .../beta/OfficeUserCheckinSummaryModel.go | 13 - .../beta/OnPremisesAgentGroupModel.go | 19 - .../beta/OnPremisesAgentGroupRequest.go | 233 - .../msgraph.go/beta/OnPremisesAgentModel.go | 19 - .../msgraph.go/beta/OnPremisesAgentRequest.go | 139 - ...nPremisesConditionalAccessSettingsModel.go | 17 - ...remisesConditionalAccessSettingsRequest.go | 38 - .../OnPremisesExtensionAttributesModel.go | 39 - .../beta/OnPremisesProvisioningErrorModel.go | 19 - .../beta/OnPremisesPublishingProfileModel.go | 17 - .../OnPremisesPublishingProfileRequest.go | 327 - .../beta/OnPremisesPublishingTypeEnum.go | 65 - .../beta/OneDriveActivityUserDetailModel.go | 33 - .../beta/OneDriveUsageAccountCountsModel.go | 23 - .../beta/OneDriveUsageAccountDetailModel.go | 33 - .../beta/OneDriveUsageFileCountsModel.go | 23 - .../beta/OnenoteEntityBaseModelModel.go | 11 - .../beta/OnenoteEntityHierarchyModelModel.go | 19 - .../OnenoteEntitySchemaObjectModelModel.go | 13 - .../msgraph.go/beta/OnenoteModel.go | 21 - .../beta/OnenoteOperationErrorModel.go | 13 - .../msgraph.go/beta/OnenoteOperationModel.go | 17 - .../beta/OnenoteOperationRequest.go | 38 - .../msgraph.go/beta/OnenotePageAction.go | 76 - .../msgraph.go/beta/OnenotePageModel.go | 33 - .../beta/OnenotePagePreviewLinksModel.go | 11 - .../beta/OnenotePagePreviewModel.go | 13 - .../msgraph.go/beta/OnenotePageRequest.go | 52 - .../beta/OnenotePatchActionTypeEnum.go | 49 - .../beta/OnenotePatchContentCommandModel.go | 17 - .../beta/OnenotePatchInsertPositionEnum.go | 25 - .../msgraph.go/beta/OnenoteRequest.go | 609 - .../msgraph.go/beta/OnenoteResourceModel.go | 13 - .../msgraph.go/beta/OnenoteResourceRequest.go | 38 - .../msgraph.go/beta/OnenoteSectionAction.go | 87 - .../msgraph.go/beta/OnenoteSectionModel.go | 21 - .../msgraph.go/beta/OnenoteSectionRequest.go | 153 - .../beta/OnenoteSourceServiceEnum.go | 41 - .../msgraph.go/beta/OnenoteUserRoleEnum.go | 41 - .../msgraph.go/beta/OnlineMeetingInfoModel.go | 21 - .../msgraph.go/beta/OnlineMeetingModel.go | 43 - .../beta/OnlineMeetingProviderTypeEnum.go | 41 - .../beta/OpenShiftChangeRequestObjectModel.go | 11 - .../OpenShiftChangeRequestObjectRequest.go | 38 - .../msgraph.go/beta/OpenShiftItemModel.go | 11 - .../msgraph.go/beta/OpenShiftModel.go | 15 - .../msgraph.go/beta/OpenShiftRequest.go | 38 - .../msgraph.go/beta/OpenTypeExtensionModel.go | 11 - .../msgraph.go/beta/OperationErrorModel.go | 13 - .../msgraph.go/beta/OperationModel.go | 17 - .../msgraph.go/beta/OperationResultEnum.go | 41 - .../msgraph.go/beta/OperationStatusEnum.go | 41 - .../msgraph.go/beta/OptionalClaimModel.go | 17 - .../msgraph.go/beta/OptionalClaimsModel.go | 15 - .../msgraph.go/beta/OrgContactRequest.go | 334 - .../msgraph.go/beta/OrganizationAction.go | 36 - .../msgraph.go/beta/OrganizationModel.go | 63 - .../msgraph.go/beta/OrganizationRequest.go | 327 - .../msgraph.go/beta/OutlookCategoryModel.go | 13 - .../msgraph.go/beta/OutlookCategoryRequest.go | 38 - .../beta/OutlookGeoCoordinatesModel.go | 19 - .../msgraph.go/beta/OutlookItemModel.go | 19 - .../msgraph.go/beta/OutlookItemRequest.go | 38 - .../msgraph.go/beta/OutlookTaskAction.go | 98 - .../msgraph.go/beta/OutlookTaskFolderModel.go | 23 - .../beta/OutlookTaskFolderRequest.go | 327 - .../msgraph.go/beta/OutlookTaskGroupModel.go | 19 - .../beta/OutlookTaskGroupRequest.go | 139 - .../msgraph.go/beta/OutlookTaskModel.go | 45 - .../msgraph.go/beta/OutlookTaskRequest.go | 327 - .../msgraph.go/beta/OutlookUserModel.go | 17 - .../msgraph.go/beta/OutlookUserRequest.go | 421 - .../msgraph.go/beta/OverrideOptionEnum.go | 41 - .../msgraph.go/beta/OwnerTypeEnum.go | 33 - .../msgraph.go/beta/PageOrientationEnum.go | 25 - .../msgraph.go/beta/ParticipantAction.go | 108 - .../msgraph.go/beta/ParticipantInfoModel.go | 19 - .../msgraph.go/beta/ParticipantModel.go | 21 - .../msgraph.go/beta/ParticipantRequest.go | 38 - .../beta/PasswordCredentialModel.go | 25 - .../msgraph.go/beta/PasswordProfileModel.go | 15 - .../PasswordSingleSignOnCredentialSetModel.go | 13 - .../beta/PayloadRequestObjectModel.go | 9 - .../msgraph.go/beta/PayloadResponseModel.go | 9 - .../msgraph.go/beta/PayloadTypesModel.go | 13 - .../msgraph.go/beta/PaymentMethodModel.go | 17 - .../msgraph.go/beta/PaymentMethodRequest.go | 38 - .../msgraph.go/beta/PaymentTermModel.go | 25 - .../msgraph.go/beta/PaymentTermRequest.go | 38 - .../beta/PendingContentUpdateModel.go | 13 - .../msgraph.go/beta/PendingOperationsModel.go | 11 - .../msgraph.go/beta/PermissionAction.go | 102 - .../beta/PermissionClassificationTypeEnum.go | 41 - .../msgraph.go/beta/PermissionModel.go | 29 - .../msgraph.go/beta/PermissionRequest.go | 38 - .../msgraph.go/beta/PermissionScopeModel.go | 27 - .../beta/PersistentBrowserSessionModeEnum.go | 25 - .../msgraph.go/beta/PersonAnniversaryModel.go | 15 - .../beta/PersonAnniversaryRequest.go | 38 - .../msgraph.go/beta/PersonDataSourceModel.go | 11 - .../msgraph.go/beta/PersonInterestModel.go | 17 - .../msgraph.go/beta/PersonInterestRequest.go | 38 - .../msgraph.go/beta/PersonModel.go | 49 - .../msgraph.go/beta/PersonNameModel.go | 31 - .../msgraph.go/beta/PersonNameRequest.go | 38 - .../beta/PersonOrGroupColumnModel.go | 15 - .../msgraph.go/beta/PersonRelationshipEnum.go | 137 - .../msgraph.go/beta/PersonRequest.go | 38 - .../msgraph.go/beta/PersonWebsiteModel.go | 17 - .../msgraph.go/beta/PersonWebsiteRequest.go | 38 - .../msgraph.go/beta/PhoneTypeEnum.go | 89 - .../msgraph.go/beta/PhysicalAddressModel.go | 23 - .../beta/PhysicalAddressTypeEnum.go | 41 - .../beta/PhysicalOfficeAddressModel.go | 21 - .../msgraph.go/beta/PlaceTypeEnum.go | 49 - .../beta/PlannerAppliedCategoriesModel.go | 9 - ...annerAssignedToTaskBoardTaskFormatModel.go | 13 - ...nerAssignedToTaskBoardTaskFormatRequest.go | 38 - .../msgraph.go/beta/PlannerAssignmentModel.go | 17 - .../beta/PlannerAssignmentsModel.go | 9 - .../msgraph.go/beta/PlannerBucketModel.go | 17 - .../msgraph.go/beta/PlannerBucketRequest.go | 139 - .../PlannerBucketTaskBoardTaskFormatModel.go | 11 - ...PlannerBucketTaskBoardTaskFormatRequest.go | 38 - .../beta/PlannerCategoryDescriptionsModel.go | 21 - .../beta/PlannerChecklistItemModel.go | 21 - .../beta/PlannerChecklistItemsModel.go | 9 - .../msgraph.go/beta/PlannerDeltaModel.go | 9 - .../msgraph.go/beta/PlannerDeltaRequest.go | 38 - .../beta/PlannerExternalReferenceModel.go | 21 - .../beta/PlannerExternalReferencesModel.go | 9 - ...nerFavoritePlanReferenceCollectionModel.go | 9 - .../beta/PlannerFavoritePlanReferenceModel.go | 13 - .../msgraph.go/beta/PlannerGroupModel.go | 11 - .../msgraph.go/beta/PlannerGroupRequest.go | 139 - .../msgraph.go/beta/PlannerModel.go | 15 - .../beta/PlannerOrderHintsByAssigneeModel.go | 9 - .../beta/PlannerPlanContextCollectionModel.go | 9 - ...lannerPlanContextDetailsCollectionModel.go | 9 - .../beta/PlannerPlanContextDetailsModel.go | 11 - .../beta/PlannerPlanContextModel.go | 19 - .../beta/PlannerPlanDetailsModel.go | 15 - .../beta/PlannerPlanDetailsRequest.go | 38 - .../msgraph.go/beta/PlannerPlanModel.go | 27 - .../msgraph.go/beta/PlannerPlanRequest.go | 240 - .../msgraph.go/beta/PlannerPreviewTypeEnum.go | 49 - ...PlannerProgressTaskBoardTaskFormatModel.go | 11 - ...annerProgressTaskBoardTaskFormatRequest.go | 38 - ...annerRecentPlanReferenceCollectionModel.go | 9 - .../beta/PlannerRecentPlanReferenceModel.go | 15 - .../msgraph.go/beta/PlannerRequest.go | 327 - .../beta/PlannerTaskDetailsModel.go | 17 - .../beta/PlannerTaskDetailsRequest.go | 38 - .../msgraph.go/beta/PlannerTaskModel.go | 61 - .../msgraph.go/beta/PlannerTaskRequest.go | 66 - .../msgraph.go/beta/PlannerUserIDsModel.go | 9 - .../msgraph.go/beta/PlannerUserModel.go | 23 - .../msgraph.go/beta/PlannerUserRequest.go | 515 - .../msgraph.go/beta/PlatformEnum.go | 57 - .../beta/PlayPromptCompletionReasonEnum.go | 41 - .../msgraph.go/beta/PolicyModel.go | 23 - .../msgraph.go/beta/PolicyPlatformTypeEnum.go | 81 - .../msgraph.go/beta/PolicyRequest.go | 139 - .../msgraph.go/beta/PolicySetAction.go | 138 - .../beta/PolicySetAssignmentModel.go | 15 - .../beta/PolicySetAssignmentRequest.go | 38 - .../msgraph.go/beta/PolicySetItemModel.go | 27 - .../msgraph.go/beta/PolicySetItemRequest.go | 38 - .../msgraph.go/beta/PolicySetModel.go | 31 - .../msgraph.go/beta/PolicySetRequest.go | 233 - .../msgraph.go/beta/PolicySetStatusEnum.go | 57 - .../msgraph.go/beta/PositionDetailModel.go | 25 - .../msgraph.go/beta/PostAction.go | 71 - .../msgraph.go/beta/PostRequest.go | 522 - .../msgraph.go/beta/PowerActionTypeEnum.go | 49 - .../msgraph.go/beta/PrereleaseFeaturesEnum.go | 41 - .../msgraph.go/beta/PriorityEnum.go | 33 - .../msgraph.go/beta/PrivilegedAccessModel.go | 21 - .../beta/PrivilegedAccessRequest.go | 515 - .../beta/PrivilegedApprovalModel.go | 33 - .../beta/PrivilegedApprovalRequest.go | 52 - .../beta/PrivilegedOperationEventModel.go | 39 - .../beta/PrivilegedOperationEventRequest.go | 38 - .../msgraph.go/beta/PrivilegedRoleAction.go | 75 - .../beta/PrivilegedRoleAssignmentAction.go | 73 - .../beta/PrivilegedRoleAssignmentModel.go | 23 - .../beta/PrivilegedRoleAssignmentRequest.go | 45 - ...ilegedRoleAssignmentRequestObjectAction.go | 36 - ...vilegedRoleAssignmentRequestObjectModel.go | 35 - ...legedRoleAssignmentRequestObjectRequest.go | 45 - .../msgraph.go/beta/PrivilegedRoleModel.go | 17 - .../msgraph.go/beta/PrivilegedRoleRequest.go | 153 - .../beta/PrivilegedRoleSettingsModel.go | 31 - .../beta/PrivilegedRoleSettingsRequest.go | 38 - .../beta/PrivilegedRoleSummaryModel.go | 19 - .../beta/PrivilegedRoleSummaryRequest.go | 38 - .../beta/PrivilegedSignupStatusAction.go | 13 - .../beta/PrivilegedSignupStatusModel.go | 13 - .../beta/PrivilegedSignupStatusRequest.go | 38 - .../beta/ProcessIntegrityLevelEnum.go | 65 - .../msgraph.go/beta/ProfileModel.go | 35 - .../msgraph.go/beta/ProfilePhotoModel.go | 13 - .../msgraph.go/beta/ProfilePhotoRequest.go | 38 - .../msgraph.go/beta/ProfileRequest.go | 1267 -- .../msgraph.go/beta/ProgramControlModel.go | 29 - .../msgraph.go/beta/ProgramControlRequest.go | 45 - .../beta/ProgramControlTypeModel.go | 13 - .../beta/ProgramControlTypeRequest.go | 38 - .../msgraph.go/beta/ProgramModel.go | 15 - .../msgraph.go/beta/ProgramRequest.go | 139 - .../msgraph.go/beta/ProgramResourceModel.go | 11 - .../msgraph.go/beta/PropertyModel.go | 19 - .../beta/PropertyToEvaluateModel.go | 13 - .../msgraph.go/beta/PropertyTypeEnum.go | 81 - .../beta/ProtectAdhocActionModel.go | 9 - .../beta/ProtectByTemplateActionModel.go | 11 - .../beta/ProtectDoNotForwardActionModel.go | 9 - .../msgraph.go/beta/ProtectGroupModel.go | 15 - .../msgraph.go/beta/ProtectSiteModel.go | 11 - .../beta/ProvisionedIdentityModel.go | 17 - .../msgraph.go/beta/ProvisionedPlanModel.go | 15 - .../beta/ProvisioningObjectSummaryModel.go | 41 - .../msgraph.go/beta/ProvisioningResultEnum.go | 41 - .../msgraph.go/beta/ProvisioningStepModel.go | 19 - .../beta/ProvisioningStepTypeEnum.go | 65 - .../beta/ProvisioningSystemDetailsModel.go | 15 - .../beta/PublicClientApplicationModel.go | 11 - .../msgraph.go/beta/PublicErrorDetailModel.go | 15 - .../msgraph.go/beta/PublicErrorModel.go | 19 - .../beta/PublicErrorResponseModel.go | 11 - .../msgraph.go/beta/PublicInnerErrorModel.go | 17 - .../beta/PublishedResourceRequest.go | 139 - .../msgraph.go/beta/PurchaseInvoiceAction.go | 35 - .../beta/PurchaseInvoiceLineModel.go | 57 - .../beta/PurchaseInvoiceLineRequest.go | 52 - .../msgraph.go/beta/PurchaseInvoiceModel.go | 69 - .../msgraph.go/beta/PurchaseInvoiceRequest.go | 153 - .../msgraph.go/beta/QuarantineReasonEnum.go | 65 - .../msgraph.go/beta/RatingAppsTypeEnum.go | 57 - .../beta/RatingAustraliaMoviesTypeEnum.go | 65 - .../beta/RatingAustraliaTelevisionTypeEnum.go | 81 - .../beta/RatingCanadaMoviesTypeEnum.go | 65 - .../beta/RatingCanadaTelevisionTypeEnum.go | 73 - .../beta/RatingFranceMoviesTypeEnum.go | 57 - .../beta/RatingFranceTelevisionTypeEnum.go | 57 - .../beta/RatingGermanyMoviesTypeEnum.go | 65 - .../beta/RatingGermanyTelevisionTypeEnum.go | 65 - .../beta/RatingIrelandMoviesTypeEnum.go | 73 - .../beta/RatingIrelandTelevisionTypeEnum.go | 65 - .../beta/RatingJapanMoviesTypeEnum.go | 57 - .../beta/RatingJapanTelevisionTypeEnum.go | 33 - .../beta/RatingNewZealandMoviesTypeEnum.go | 97 - .../RatingNewZealandTelevisionTypeEnum.go | 49 - .../beta/RatingUnitedKingdomMoviesTypeEnum.go | 81 - .../RatingUnitedKingdomTelevisionTypeEnum.go | 33 - .../beta/RatingUnitedStatesMoviesTypeEnum.go | 65 - .../RatingUnitedStatesTelevisionTypeEnum.go | 73 - .../msgraph.go/beta/RbacApplicationRequest.go | 233 - .../beta/RecentNotebookLinksModel.go | 13 - .../msgraph.go/beta/RecentNotebookModel.go | 19 - .../msgraph.go/beta/RecipientScopeTypeEnum.go | 49 - .../beta/RecordCompletionReasonEnum.go | 81 - .../msgraph.go/beta/RecordingStatusEnum.go | 49 - .../msgraph.go/beta/RecurrencePatternModel.go | 23 - .../beta/RecurrencePatternTypeEnum.go | 57 - .../msgraph.go/beta/RecurrenceRangeModel.go | 21 - .../beta/RecurrenceRangeTypeEnum.go | 33 - .../beta/ReferenceAttachmentPermissionEnum.go | 65 - .../beta/ReferenceAttachmentProviderEnum.go | 41 - .../beta/RegistrationAuthMethodEnum.go | 89 - .../beta/RegistrationStatusTypeEnum.go | 49 - .../msgraph.go/beta/RegistryHiveEnum.go | 81 - .../msgraph.go/beta/RegistryOperationEnum.go | 49 - .../msgraph.go/beta/RegistryValueTypeEnum.go | 113 - .../msgraph.go/beta/RejectReasonEnum.go | 41 - .../msgraph.go/beta/RelatedContactModel.go | 21 - .../msgraph.go/beta/RelatedPersonModel.go | 15 - .../msgraph.go/beta/RemediationStateEnum.go | 49 - .../msgraph.go/beta/RemoteActionAuditModel.go | 29 - .../beta/RemoteActionAuditRequest.go | 38 - .../msgraph.go/beta/RemoteActionEnum.go | 193 - .../RemoteAssistanceOnboardingStatusEnum.go | 33 - .../beta/RemoteAssistancePartnerAction.go | 65 - .../beta/RemoteAssistancePartnerModel.go | 19 - .../beta/RemoteAssistancePartnerRequest.go | 38 - .../msgraph.go/beta/RemoteItemModel.go | 45 - .../beta/RemoteLockActionResultModel.go | 11 - .../beta/RemoveContentFooterActionModel.go | 11 - .../beta/RemoveContentHeaderActionModel.go | 11 - .../beta/RemoveProtectionActionModel.go | 9 - .../beta/RemoveWatermarkActionModel.go | 11 - .../msgraph.go/beta/ReportModel.go | 11 - .../msgraph.go/beta/ReportRootModel.go | 15 - .../msgraph.go/beta/ReportRootRequest.go | 327 - .../msgraph.go/beta/RequestObjectAction.go | 69 - .../msgraph.go/beta/RequestObjectRequest.go | 233 - .../beta/RequiredPasswordTypeEnum.go | 33 - .../beta/RequirementProviderEnum.go | 33 - .../msgraph.go/beta/ResourceAccessModel.go | 13 - .../msgraph.go/beta/ResourceActionModel.go | 13 - .../msgraph.go/beta/ResourceOperationModel.go | 19 - .../beta/ResourceOperationRequest.go | 38 - .../beta/ResourcePermissionModel.go | 13 - .../beta/ResourcePropertiesModelModel.go | 25 - .../msgraph.go/beta/ResourceReferenceModel.go | 15 - .../ResourceSpecificPermissionGrantModel.go | 19 - .../ResourceSpecificPermissionGrantRequest.go | 38 - .../beta/ResourceSpecificPermissionModel.go | 19 - .../beta/ResourceVisualizationModel.go | 25 - .../msgraph.go/beta/ResponseTypeEnum.go | 57 - .../msgraph.go/beta/ResponsiblePolicyModel.go | 13 - .../beta/ResponsibleSensitiveTypeModel.go | 21 - .../beta/RestrictedAppsStateEnum.go | 25 - .../beta/RestrictedAppsViolationModel.go | 27 - .../beta/RestrictedAppsViolationRequest.go | 38 - .../msgraph.go/beta/RestrictedSignInModel.go | 11 - .../beta/RestrictedSignInRequest.go | 38 - .../msgraph.go/beta/RestrictionActionEnum.go | 33 - .../msgraph.go/beta/RestrictionTriggerEnum.go | 65 - .../beta/ResultantAppStateDetailEnum.go | 169 - .../msgraph.go/beta/ResultantAppStateEnum.go | 65 - ...RevokeAppleVppLicensesActionResultModel.go | 13 - .../msgraph.go/beta/RiskDetailEnum.go | 105 - .../msgraph.go/beta/RiskDetectionModel.go | 49 - .../beta/RiskDetectionTimingTypeEnum.go | 49 - .../msgraph.go/beta/RiskEventStatusEnum.go | 73 - .../msgraph.go/beta/RiskEventTypeEnum.go | 129 - .../msgraph.go/beta/RiskLevelEnum.go | 57 - .../msgraph.go/beta/RiskStateEnum.go | 65 - .../msgraph.go/beta/RiskUserActivityModel.go | 13 - .../msgraph.go/beta/RiskyUserAction.go | 15 - .../beta/RiskyUserHistoryItemModel.go | 15 - .../beta/RiskyUserHistoryItemRequest.go | 38 - .../msgraph.go/beta/RiskyUserModel.go | 31 - .../msgraph.go/beta/RiskyUserRequest.go | 139 - .../msgraph.go/beta/RoleAssignmentModel.go | 21 - .../msgraph.go/beta/RoleAssignmentRequest.go | 45 - .../beta/RoleAssignmentScopeTypeEnum.go | 41 - .../msgraph.go/beta/RoleDefinitionModel.go | 25 - .../msgraph.go/beta/RoleDefinitionRequest.go | 139 - .../msgraph.go/beta/RoleManagementModel.go | 11 - .../msgraph.go/beta/RoleManagementRequest.go | 45 - .../RoleMembershipGovernanceCriteriaModel.go | 13 - .../msgraph.go/beta/RolePermissionModel.go | 13 - .../msgraph.go/beta/RoleScopeTagAction.go | 196 - .../beta/RoleScopeTagAutoAssignmentModel.go | 11 - .../beta/RoleScopeTagAutoAssignmentRequest.go | 38 - .../msgraph.go/beta/RoleScopeTagInfoModel.go | 13 - .../msgraph.go/beta/RoleScopeTagModel.go | 17 - .../msgraph.go/beta/RoleScopeTagRequest.go | 139 - .../beta/RoleSuccessStatisticsModel.go | 27 - .../msgraph.go/beta/RoleSummaryStatusEnum.go | 25 - .../msgraph.go/beta/RoomListModel.go | 13 - .../msgraph.go/beta/RoomListRequest.go | 139 - .../matterbridge/msgraph.go/beta/RoomModel.go | 35 - .../msgraph.go/beta/RoomRequest.go | 38 - .../msgraph.go/beta/RoutingModeEnum.go | 25 - .../msgraph.go/beta/RoutingPolicyEnum.go | 57 - .../msgraph.go/beta/RoutingTypeEnum.go | 33 - .../msgraph.go/beta/RubricCriterionModel.go | 11 - .../msgraph.go/beta/RubricLevelModel.go | 17 - .../beta/RubricQualityFeedbackModelModel.go | 13 - .../msgraph.go/beta/RubricQualityModel.go | 19 - .../RubricQualitySelectedColumnModelModel.go | 13 - .../msgraph.go/beta/RuleModeEnum.go | 49 - .../msgraph.go/beta/RunAsAccountTypeEnum.go | 25 - .../msgraph.go/beta/RunStateEnum.go | 57 - .../beta/SafeSearchFilterTypeEnum.go | 33 - .../beta/SalesCreditMemoLineModel.go | 59 - .../beta/SalesCreditMemoLineRequest.go | 52 - .../msgraph.go/beta/SalesCreditMemoModel.go | 75 - .../msgraph.go/beta/SalesCreditMemoRequest.go | 160 - .../msgraph.go/beta/SalesInvoiceAction.go | 155 - .../msgraph.go/beta/SalesInvoiceLineModel.go | 59 - .../beta/SalesInvoiceLineRequest.go | 52 - .../msgraph.go/beta/SalesInvoiceModel.go | 87 - .../msgraph.go/beta/SalesInvoiceRequest.go | 167 - .../msgraph.go/beta/SalesOrderLineModel.go | 67 - .../msgraph.go/beta/SalesOrderLineRequest.go | 52 - .../msgraph.go/beta/SalesOrderModel.go | 81 - .../msgraph.go/beta/SalesOrderRequest.go | 160 - .../msgraph.go/beta/SalesQuoteAction.go | 65 - .../msgraph.go/beta/SalesQuoteLineModel.go | 53 - .../msgraph.go/beta/SalesQuoteLineRequest.go | 52 - .../msgraph.go/beta/SalesQuoteModel.go | 83 - .../msgraph.go/beta/SalesQuoteRequest.go | 167 - .../msgraph.go/beta/ScheduleAction.go | 44 - .../beta/ScheduleChangeRequestActorEnum.go | 49 - .../beta/ScheduleChangeRequestObjectAction.go | 69 - .../beta/ScheduleChangeRequestObjectModel.go | 27 - .../ScheduleChangeRequestObjectRequest.go | 38 - .../beta/ScheduleChangeStateEnum.go | 41 - .../msgraph.go/beta/ScheduleEntityModel.go | 17 - .../beta/ScheduleEntityThemeEnum.go | 113 - .../beta/ScheduleInformationModel.go | 19 - .../msgraph.go/beta/ScheduleItemModel.go | 21 - .../msgraph.go/beta/ScheduleModel.go | 45 - .../msgraph.go/beta/ScheduleRequest.go | 797 - .../msgraph.go/beta/SchemaExtensionModel.go | 19 - .../msgraph.go/beta/SchemaExtensionRequest.go | 38 - .../msgraph.go/beta/SchemaModel.go | 13 - .../msgraph.go/beta/SchemaRequest.go | 38 - ...peOperatorMultiValuedComparisonTypeEnum.go | 25 - .../msgraph.go/beta/ScopeOperatorTypeEnum.go | 25 - .../msgraph.go/beta/ScreenSharingRoleEnum.go | 25 - .../msgraph.go/beta/SearchAction.go | 100 - .../msgraph.go/beta/SearchHitModel.go | 19 - .../beta/SearchHitsContainerModel.go | 15 - .../msgraph.go/beta/SearchModel.go | 9 - .../msgraph.go/beta/SearchQueryModel.go | 11 - .../msgraph.go/beta/SearchQueryStringModel.go | 11 - .../msgraph.go/beta/SearchRequest.go | 38 - .../beta/SearchRequestObjectModel.go | 23 - .../msgraph.go/beta/SearchResponseModel.go | 13 - .../msgraph.go/beta/SearchResultModel.go | 11 - .../msgraph.go/beta/SectionGroupModel.go | 21 - .../msgraph.go/beta/SectionGroupRequest.go | 247 - .../msgraph.go/beta/SectionLinksModel.go | 13 - .../beta/SecureAssessmentAccountTypeEnum.go | 41 - .../beta/SecureBootWithDMATypeEnum.go | 33 - .../beta/SecureScoreControlProfileModel.go | 49 - .../beta/SecureScoreControlProfileRequest.go | 38 - .../SecureScoreControlStateUpdateModel.go | 21 - .../msgraph.go/beta/SecureScoreModel.go | 31 - .../msgraph.go/beta/SecureScoreRequest.go | 38 - .../msgraph.go/beta/SecurityActionAction.go | 35 - .../msgraph.go/beta/SecurityActionModel.go | 39 - .../msgraph.go/beta/SecurityActionRequest.go | 38 - .../beta/SecurityActionStateModel.go | 19 - ...curityBaselineCategoryStateSummaryModel.go | 11 - ...rityBaselineCategoryStateSummaryRequest.go | 38 - .../SecurityBaselineComplianceStateEnum.go | 57 - .../beta/SecurityBaselineDeviceStateModel.go | 21 - .../SecurityBaselineDeviceStateRequest.go | 38 - .../beta/SecurityBaselineSettingStateModel.go | 15 - .../SecurityBaselineSettingStateRequest.go | 38 - .../beta/SecurityBaselineStateModel.go | 15 - .../beta/SecurityBaselineStateRequest.go | 139 - .../beta/SecurityBaselineStateSummaryModel.go | 21 - .../SecurityBaselineStateSummaryRequest.go | 38 - .../beta/SecurityBaselineTemplateModel.go | 15 - .../beta/SecurityBaselineTemplateRequest.go | 240 - .../msgraph.go/beta/SecurityModel.go | 35 - .../beta/SecurityNetworkProtocolEnum.go | 201 - .../beta/SecurityProviderStatusModel.go | 19 - .../msgraph.go/beta/SecurityRequest.go | 1173 -- .../beta/SecurityVendorInformationModel.go | 17 - .../beta/SensitiveContentEvidenceModel.go | 15 - .../beta/SensitiveContentLocationModel.go | 17 - .../msgraph.go/beta/SensitiveTypeModel.go | 21 - .../msgraph.go/beta/SensitivityEnum.go | 41 - .../msgraph.go/beta/SensitivityLabelAction.go | 56 - .../msgraph.go/beta/SensitivityLabelModel.go | 33 - .../beta/SensitivityLabelRequest.go | 139 - .../beta/SensitivityPolicySettingsModel.go | 15 - .../beta/SensitivityPolicySettingsRequest.go | 38 - .../beta/ServiceHostedMediaConfigModel.go | 11 - .../beta/ServiceInformationModel.go | 13 - .../msgraph.go/beta/ServicePlanInfoModel.go | 17 - .../msgraph.go/beta/ServicePrincipalAction.go | 139 - .../msgraph.go/beta/ServicePrincipalModel.go | 75 - .../beta/ServicePrincipalRequest.go | 992 -- .../msgraph.go/beta/ServiceStartTypeEnum.go | 33 - .../msgraph.go/beta/SettingSourceModel.go | 13 - .../beta/SettingStateDeviceSummaryModel.go | 27 - .../beta/SettingTemplateValueModel.go | 17 - .../msgraph.go/beta/SettingValueModel.go | 13 - .../msgraph.go/beta/SetupStatusEnum.go | 73 - .../msgraph.go/beta/ShareActionModel.go | 11 - .../beta/SharePointActivityPagesModel.go | 19 - .../beta/SharePointActivityUserCountsModel.go | 27 - .../beta/SharePointActivityUserDetailModel.go | 35 - .../beta/SharePointSiteUsageDetailModel.go | 41 - .../SharePointSiteUsageFileCountsModel.go | 23 - .../beta/SharePointSiteUsagePagesModel.go | 21 - .../SharePointSiteUsageSiteCountsModel.go | 23 - .../beta/SharedAppleDeviceUserModel.go | 17 - .../msgraph.go/beta/SharedDriveItemModel.go | 25 - .../msgraph.go/beta/SharedDriveItemRequest.go | 181 - .../msgraph.go/beta/SharedInsightModel.go | 21 - .../msgraph.go/beta/SharedInsightRequest.go | 52 - .../msgraph.go/beta/SharedModel.go | 19 - .../SharedPCAccountDeletionPolicyTypeEnum.go | 33 - .../beta/SharedPCAccountManagerPolicyModel.go | 17 - .../beta/SharedPCAllowedAccountTypeEnum.go | 33 - .../beta/SharedPCConfigurationModel.go | 47 - .../msgraph.go/beta/SharingDetailModel.go | 21 - .../msgraph.go/beta/SharingInvitationModel.go | 17 - .../msgraph.go/beta/SharingLinkModel.go | 23 - .../msgraph.go/beta/ShiftActivityModel.go | 23 - .../beta/ShiftChangeRequestObjectModel.go | 19 - .../msgraph.go/beta/ShiftItemModel.go | 15 - .../msgraph.go/beta/ShiftModel.go | 17 - .../msgraph.go/beta/SignInActivityModel.go | 15 - .../beta/SignInAssistantOptionsEnum.go | 25 - .../SignInFrequencySessionControlModel.go | 13 - .../msgraph.go/beta/SignInLocationModel.go | 17 - .../msgraph.go/beta/SignInModel.go | 83 - .../msgraph.go/beta/SignInStatusModel.go | 15 - .../beta/SigninFrequencyTypeEnum.go | 25 - .../beta/SingleSignOnExtensionModel.go | 9 - .../SingleValueLegacyExtendedPropertyModel.go | 11 - .../msgraph.go/beta/SiteAccessTypeEnum.go | 33 - .../msgraph.go/beta/SiteAction.go | 220 - .../beta/SiteActivitySummaryModel.go | 25 - .../msgraph.go/beta/SiteCollectionModel.go | 15 - .../matterbridge/msgraph.go/beta/SiteModel.go | 37 - .../msgraph.go/beta/SitePageAction.go | 35 - .../msgraph.go/beta/SitePageDataModel.go | 9 - .../msgraph.go/beta/SitePageModel.go | 19 - .../msgraph.go/beta/SitePageRequest.go | 38 - .../msgraph.go/beta/SiteRequest.go | 724 - .../msgraph.go/beta/SiteSecurityLevelEnum.go | 57 - .../msgraph.go/beta/SiteUsageStorageModel.go | 21 - .../beta/SkillProficiencyLevelEnum.go | 57 - .../SkypeForBusinessActivityCountsModel.go | 23 - ...SkypeForBusinessActivityUserCountsModel.go | 23 - ...SkypeForBusinessActivityUserDetailModel.go | 81 - ...sDeviceUsageDistributionUserCountsModel.go | 25 - ...peForBusinessDeviceUsageUserCountsModel.go | 27 - ...peForBusinessDeviceUsageUserDetailModel.go | 29 - ...ForBusinessOrganizerActivityCountsModel.go | 29 - ...inessOrganizerActivityMinuteCountsModel.go | 23 - ...usinessOrganizerActivityUserCountsModel.go | 29 - ...rBusinessParticipantActivityCountsModel.go | 27 - ...essParticipantActivityMinuteCountsModel.go | 19 - ...inessParticipantActivityUserCountsModel.go | 27 - ...orBusinessPeerToPeerActivityCountsModel.go | 27 - ...nessPeerToPeerActivityMinuteCountsModel.go | 21 - ...sinessPeerToPeerActivityUserCountsModel.go | 27 - .../msgraph.go/beta/StagedFeatureNameEnum.go | 41 - .../beta/StandardTimeZoneOffsetModel.go | 21 - .../beta/StateManagementSettingEnum.go | 33 - .../msgraph.go/beta/StatusBaseModel.go | 11 - .../msgraph.go/beta/StatusDetailsModel.go | 19 - .../msgraph.go/beta/StatusEnum.go | 49 - ...KeyAttributeMappingSourceValuePairModel.go | 13 - .../beta/StringKeyLongValuePairModel.go | 13 - .../beta/StringKeyObjectValuePairModel.go | 11 - .../beta/StringKeyStringValuePairModel.go | 13 - .../beta/SubjectAlternativeNameTypeEnum.go | 49 - .../msgraph.go/beta/SubjectNameFormatEnum.go | 81 - .../beta/SynchronizationErrorModel.go | 15 - .../beta/SynchronizationJobAction.go | 239 - .../beta/SynchronizationJobModel.go | 19 - .../beta/SynchronizationJobRequest.go | 45 - .../SynchronizationJobRestartCriteriaModel.go | 11 - .../SynchronizationJobRestartScopeEnum.go | 65 - .../msgraph.go/beta/SynchronizationModel.go | 15 - .../beta/SynchronizationProgressModel.go | 19 - .../beta/SynchronizationQuarantineModel.go | 21 - .../msgraph.go/beta/SynchronizationRequest.go | 233 - .../beta/SynchronizationRuleModel.go | 25 - .../beta/SynchronizationScheduleModel.go | 17 - .../beta/SynchronizationScheduleStateEnum.go | 25 - .../beta/SynchronizationSchemaAction.go | 42 - .../beta/SynchronizationSchemaModel.go | 17 - .../beta/SynchronizationSchemaRequest.go | 139 - .../beta/SynchronizationSecretEnum.go | 305 - ...ronizationSecretKeyStringValuePairModel.go | 13 - .../beta/SynchronizationStatusCodeEnum.go | 49 - .../beta/SynchronizationStatusModel.go | 35 - .../beta/SynchronizationTaskExecutionModel.go | 39 - .../SynchronizationTaskExecutionResultEnum.go | 33 - .../beta/SynchronizationTemplateModel.go | 23 - .../beta/SynchronizationTemplateRequest.go | 45 - .../beta/TargetPolicyEndpointsModel.go | 11 - .../msgraph.go/beta/TargetResourceModel.go | 21 - .../TargetedManagedAppConfigurationAction.go | 164 - .../TargetedManagedAppConfigurationModel.go | 19 - ...nagedAppConfigurationPolicySetItemModel.go | 9 - .../TargetedManagedAppConfigurationRequest.go | 240 - ...TargetedManagedAppPolicyAssignmentModel.go | 15 - ...rgetedManagedAppPolicyAssignmentRequest.go | 38 - .../TargetedManagedAppProtectionAction.go | 37 - .../beta/TargetedManagedAppProtectionModel.go | 15 - .../TargetedManagedAppProtectionRequest.go | 139 - .../msgraph.go/beta/TaskStatusEnum.go | 49 - .../msgraph.go/beta/TaxAreaModel.go | 19 - .../msgraph.go/beta/TaxAreaRequest.go | 38 - .../msgraph.go/beta/TaxGroupModel.go | 19 - .../msgraph.go/beta/TaxGroupRequest.go | 38 - .../msgraph.go/beta/TeamAction.go | 109 - .../msgraph.go/beta/TeamClassSettingsModel.go | 11 - .../beta/TeamDiscoverySettingsModel.go | 11 - .../msgraph.go/beta/TeamFunSettingsModel.go | 17 - .../msgraph.go/beta/TeamGuestSettingsModel.go | 13 - .../beta/TeamMemberSettingsModel.go | 21 - .../beta/TeamMessagingSettingsModel.go | 19 - .../matterbridge/msgraph.go/beta/TeamModel.go | 55 - .../msgraph.go/beta/TeamRequest.go | 550 - .../msgraph.go/beta/TeamSpecializationEnum.go | 73 - .../msgraph.go/beta/TeamVisibilityTypeEnum.go | 41 - .../beta/TeamsAppDefinitionModel.go | 15 - .../beta/TeamsAppDefinitionRequest.go | 38 - .../beta/TeamsAppDistributionMethodEnum.go | 41 - .../beta/TeamsAppInstallationAction.go | 35 - .../beta/TeamsAppInstallationModel.go | 13 - .../beta/TeamsAppInstallationRequest.go | 52 - .../msgraph.go/beta/TeamsAppModel.go | 19 - .../msgraph.go/beta/TeamsAppRequest.go | 139 - .../beta/TeamsAsyncOperationModel.go | 27 - .../beta/TeamsAsyncOperationRequest.go | 38 - .../beta/TeamsAsyncOperationStatusEnum.go | 57 - .../beta/TeamsAsyncOperationTypeEnum.go | 57 - .../msgraph.go/beta/TeamsCatalogAppModel.go | 15 - .../msgraph.go/beta/TeamsCatalogAppRequest.go | 38 - ...sDeviceUsageDistributionUserCountsModel.go | 27 - .../beta/TeamsDeviceUsageUserCountsModel.go | 29 - .../beta/TeamsDeviceUsageUserDetailModel.go | 35 - .../beta/TeamsTabConfigurationModel.go | 17 - .../msgraph.go/beta/TeamsTabModel.go | 25 - .../msgraph.go/beta/TeamsTabRequest.go | 45 - .../msgraph.go/beta/TeamsTemplateModel.go | 9 - .../msgraph.go/beta/TeamsTemplateRequest.go | 38 - .../beta/TeamsUserActivityCountsModel.go | 25 - .../beta/TeamsUserActivityUserCountsModel.go | 27 - .../beta/TeamsUserActivityUserDetailModel.go | 35 - .../msgraph.go/beta/TeamworkRequest.go | 139 - .../msgraph.go/beta/TenantSetupInfoRequest.go | 45 - ...TermsAndConditionsAcceptanceStatusModel.go | 19 - ...rmsAndConditionsAcceptanceStatusRequest.go | 45 - .../beta/TermsAndConditionsAssignmentModel.go | 11 - .../TermsAndConditionsAssignmentRequest.go | 38 - .../TermsAndConditionsGroupAssignmentModel.go | 13 - ...ermsAndConditionsGroupAssignmentRequest.go | 45 - .../beta/TermsAndConditionsModel.go | 37 - .../beta/TermsAndConditionsRequest.go | 327 - .../TextClassificationRequestObjectModel.go | 13 - .../msgraph.go/beta/TextColumnModel.go | 19 - .../beta/ThreatAssessmentContentTypeEnum.go | 33 - .../ThreatAssessmentRequestObjectModel.go | 27 - .../ThreatAssessmentRequestObjectRequest.go | 139 - ...hreatAssessmentRequestPivotPropertyEnum.go | 25 - .../beta/ThreatAssessmentRequestSourceEnum.go | 33 - .../ThreatAssessmentRequestsCountModel.go | 17 - .../beta/ThreatAssessmentResultModel.go | 17 - .../beta/ThreatAssessmentResultRequest.go | 38 - .../beta/ThreatAssessmentResultTypeEnum.go | 33 - .../beta/ThreatAssessmentStatusEnum.go | 25 - .../msgraph.go/beta/ThreatCategoryEnum.go | 41 - .../beta/ThreatExpectedAssessmentEnum.go | 25 - .../msgraph.go/beta/ThumbnailModel.go | 19 - .../msgraph.go/beta/ThumbnailSetModel.go | 17 - .../msgraph.go/beta/TiActionEnum.go | 49 - .../msgraph.go/beta/TiIndicatorAction.go | 364 - .../msgraph.go/beta/TiIndicatorModel.go | 127 - .../msgraph.go/beta/TiIndicatorRequest.go | 38 - .../msgraph.go/beta/TimeConstraintModel.go | 13 - .../msgraph.go/beta/TimeOffItemModel.go | 11 - .../msgraph.go/beta/TimeOffModel.go | 15 - .../beta/TimeOffReasonIconTypeEnum.go | 185 - .../msgraph.go/beta/TimeOffReasonModel.go | 15 - .../msgraph.go/beta/TimeOffReasonRequest.go | 38 - .../msgraph.go/beta/TimeOffRequest.go | 38 - .../beta/TimeOffRequestObjectModel.go | 17 - .../beta/TimeOffRequestObjectRequest.go | 38 - .../msgraph.go/beta/TimeSlotModel.go | 13 - .../msgraph.go/beta/TimeZoneBaseModel.go | 11 - .../beta/TimeZoneInformationModel.go | 13 - .../msgraph.go/beta/TimeZoneStandardEnum.go | 25 - .../msgraph.go/beta/TlpLevelEnum.go | 57 - .../msgraph.go/beta/TokenIssuerTypeEnum.go | 33 - .../matterbridge/msgraph.go/beta/ToneEnum.go | 145 - .../msgraph.go/beta/TrendingRequest.go | 45 - .../msgraph.go/beta/TrustFrameworkKeyModel.go | 41 - .../beta/TrustFrameworkKeySetAction.go | 151 - .../beta/TrustFrameworkKeySetModel.go | 11 - .../beta/TrustFrameworkKeySetRequest.go | 38 - .../msgraph.go/beta/TrustFrameworkModel.go | 13 - .../beta/TrustFrameworkPolicyModel.go | 9 - .../beta/TrustFrameworkPolicyRequest.go | 38 - .../msgraph.go/beta/TrustFrameworkRequest.go | 233 - ...mentConditionExpressionOperatorTypeEnum.go | 17 - .../beta/UnifiedRoleAssignmentModel.go | 19 - .../beta/UnifiedRoleAssignmentRequest.go | 52 - .../beta/UnifiedRoleDefinitionModel.go | 25 - .../beta/UnifiedRoleDefinitionRequest.go | 38 - .../beta/UnifiedRolePermissionModel.go | 13 - ...supportedDeviceConfigurationDetailModel.go | 13 - .../UnsupportedDeviceConfigurationModel.go | 13 - .../beta/UpdateClassificationEnum.go | 41 - .../UpdateRecordingStatusOperationModel.go | 9 - .../msgraph.go/beta/UpdateWindowModel.go | 15 - ...indowsDeviceAccountActionParameterModel.go | 21 - .../msgraph.go/beta/UsageAuthMethodEnum.go | 97 - .../msgraph.go/beta/UsedInsightRequest.go | 45 - .../beta/UserAccountInformationModel.go | 17 - .../beta/UserAccountInformationRequest.go | 38 - .../msgraph.go/beta/UserAccountModel.go | 23 - .../beta/UserAccountSecurityTypeEnum.go | 49 - .../msgraph.go/beta/UserAction.go | 564 - .../beta/UserActivationCountsModel.go | 27 - .../msgraph.go/beta/UserActivityModel.go | 42 - .../msgraph.go/beta/UserActivityRequest.go | 139 - .../msgraph.go/beta/UserAnalyticsModel.go | 13 - .../msgraph.go/beta/UserAnalyticsRequest.go | 139 - .../beta/UserAppInstallStatusModel.go | 23 - .../beta/UserAppInstallStatusRequest.go | 146 - .../msgraph.go/beta/UserConfigurationModel.go | 11 - .../beta/UserConfigurationRequest.go | 38 - .../beta/UserCredentialUsageDetailsModel.go | 25 - .../beta/UserCredentialUsageDetailsRequest.go | 38 - .../msgraph.go/beta/UserEmailSourceEnum.go | 25 - .../UserExperienceAnalyticsBaselineModel.go | 21 - .../UserExperienceAnalyticsBaselineRequest.go | 52 - .../UserExperienceAnalyticsCategoryModel.go | 13 - .../UserExperienceAnalyticsCategoryRequest.go | 139 - ...perienceAnalyticsDevicePerformanceModel.go | 35 - ...rienceAnalyticsDevicePerformanceRequest.go | 38 - ...ienceAnalyticsDeviceStartupHistoryModel.go | 31 - ...nceAnalyticsDeviceStartupHistoryRequest.go | 38 - .../UserExperienceAnalyticsHealthStateEnum.go | 41 - .../UserExperienceAnalyticsInsightModel.go | 17 - ...rExperienceAnalyticsInsightSeverityEnum.go | 41 - ...serExperienceAnalyticsInsightValueModel.go | 9 - .../UserExperienceAnalyticsMetricModel.go | 13 - .../UserExperienceAnalyticsMetricRequest.go | 38 - .../UserExperienceAnalyticsOverviewModel.go | 11 - .../UserExperienceAnalyticsOverviewRequest.go | 38 - ...perienceAnalyticsRegressionSummaryModel.go | 15 - ...rienceAnalyticsRegressionSummaryRequest.go | 327 - ...UserExperienceAnalyticsSummarizedByEnum.go | 57 - .../msgraph.go/beta/UserFlowTypeEnum.go | 65 - .../beta/UserGovernanceCriteriaModel.go | 11 - .../msgraph.go/beta/UserIdentityModel.go | 17 - .../msgraph.go/beta/UserIdentityTypeEnum.go | 41 - .../beta/UserInstallStateSummaryModel.go | 19 - .../beta/UserInstallStateSummaryRequest.go | 139 - .../matterbridge/msgraph.go/beta/UserModel.go | 259 - .../beta/UserPFXCertificateModel.go | 35 - .../beta/UserPFXCertificateRequest.go | 38 - .../beta/UserPfxIntendedPurposeEnum.go | 49 - .../beta/UserPfxPaddingSchemeEnum.go | 57 - .../beta/UserRegistrationCountModel.go | 13 - .../msgraph.go/beta/UserRequest.go | 3722 ---- .../msgraph.go/beta/UserRiskLevelEnum.go | 49 - .../beta/UserSecurityProfileModel.go | 31 - .../beta/UserSecurityProfileRequest.go | 38 - .../msgraph.go/beta/UserSecurityStateModel.go | 39 - .../msgraph.go/beta/UserSettingsModel.go | 13 - .../msgraph.go/beta/UserSettingsRequest.go | 38 - .../msgraph.go/beta/UserTeamworkModel.go | 11 - .../msgraph.go/beta/UserTeamworkRequest.go | 139 - .../msgraph.go/beta/UsernameSourceEnum.go | 33 - .../msgraph.go/beta/VendorRequest.go | 160 - .../msgraph.go/beta/VisibilitySettingEnum.go | 33 - .../msgraph.go/beta/VisualInfoModel.go | 21 - .../msgraph.go/beta/VisualPropertiesModel.go | 13 - .../beta/VpnAuthenticationMethodEnum.go | 41 - .../beta/VpnClientAuthenticationTypeEnum.go | 25 - .../msgraph.go/beta/VpnConfigurationModel.go | 19 - .../msgraph.go/beta/VpnDNSRuleModel.go | 19 - .../beta/VpnDeadPeerDetectionRateEnum.go | 41 - .../beta/VpnEncryptionAlgorithmTypeEnum.go | 57 - .../beta/VpnIntegrityAlgorithmTypeEnum.go | 49 - .../msgraph.go/beta/VpnLocalIdentifierEnum.go | 33 - .../VpnOnDemandRuleConnectionActionEnum.go | 41 - ...nOnDemandRuleConnectionDomainActionEnum.go | 25 - .../msgraph.go/beta/VpnOnDemandRuleModel.go | 23 - .../msgraph.go/beta/VpnProviderTypeEnum.go | 33 - .../msgraph.go/beta/VpnProxyServerModel.go | 15 - .../msgraph.go/beta/VpnRouteModel.go | 13 - .../beta/VpnServerCertificateTypeEnum.go | 41 - .../msgraph.go/beta/VpnServerModel.go | 15 - .../beta/VpnTrafficRuleAppTypeEnum.go | 33 - .../msgraph.go/beta/VpnTrafficRuleModel.go | 29 - .../VpnTrafficRuleRoutingPolicyTypeEnum.go | 33 - .../msgraph.go/beta/VppLicensingTypeModel.go | 17 - .../beta/VppTokenAccountTypeEnum.go | 25 - .../msgraph.go/beta/VppTokenAction.go | 68 - .../beta/VppTokenActionFailureReasonEnum.go | 49 - .../beta/VppTokenActionResultModel.go | 19 - .../beta/VppTokenLicenseSummaryModel.go | 19 - .../msgraph.go/beta/VppTokenModel.go | 45 - .../msgraph.go/beta/VppTokenRequest.go | 38 - ...VppTokenRevokeLicensesActionResultModel.go | 15 - .../msgraph.go/beta/VppTokenStateEnum.go | 49 - .../msgraph.go/beta/VppTokenSyncStatusEnum.go | 41 - .../msgraph.go/beta/WatermarkLayoutEnum.go | 25 - .../msgraph.go/beta/WebAccountModel.go | 19 - .../msgraph.go/beta/WebAppModel.go | 13 - .../msgraph.go/beta/WebApplicationModel.go | 19 - .../beta/WebBrowserCookieSettingsEnum.go | 49 - .../msgraph.go/beta/WebPartModel.go | 13 - .../msgraph.go/beta/WebsiteTypeEnum.go | 49 - .../msgraph.go/beta/WeekIndexEnum.go | 49 - .../msgraph.go/beta/WeeklyScheduleEnum.go | 89 - .../WelcomeScreenMeetingInformationEnum.go | 33 - .../beta/WiFiAuthenticationMethodEnum.go | 33 - .../msgraph.go/beta/WiFiProxySettingEnum.go | 33 - .../msgraph.go/beta/WiFiSecurityTypeEnum.go | 57 - .../Win32LobAppAssignmentSettingsModel.go | 15 - .../beta/Win32LobAppDetectionModel.go | 9 - .../beta/Win32LobAppDetectionOperatorEnum.go | 65 - .../Win32LobAppFileSystemDetectionModel.go | 21 - .../Win32LobAppFileSystemDetectionTypeEnum.go | 65 - .../Win32LobAppFileSystemRequirementModel.go | 17 - .../beta/Win32LobAppInstallExperienceModel.go | 13 - .../msgraph.go/beta/Win32LobAppModel.go | 37 - .../beta/Win32LobAppMsiInformationModel.go | 23 - .../beta/Win32LobAppMsiPackageTypeEnum.go | 33 - .../beta/Win32LobAppNotificationEnum.go | 33 - ...n32LobAppPowerShellScriptDetectionModel.go | 15 - ...LobAppPowerShellScriptDetectionTypeEnum.go | 65 - ...2LobAppPowerShellScriptRequirementModel.go | 21 - .../Win32LobAppProductCodeDetectionModel.go | 15 - .../beta/Win32LobAppRegistryDetectionModel.go | 21 - .../Win32LobAppRegistryDetectionTypeEnum.go | 57 - .../Win32LobAppRegistryRequirementModel.go | 17 - .../beta/Win32LobAppRequirementModel.go | 13 - .../beta/Win32LobAppRestartBehaviorEnum.go | 41 - .../beta/Win32LobAppRestartSettingsModel.go | 15 - .../beta/Win32LobAppReturnCodeModel.go | 13 - .../beta/Win32LobAppReturnCodeTypeEnum.go | 49 - .../msgraph.go/beta/Windows10AppTypeEnum.go | 25 - .../Windows10AppsForceUpdateScheduleModel.go | 17 - .../beta/Windows10AppsUpdateRecurrenceEnum.go | 41 - .../beta/Windows10AssociatedAppsModel.go | 13 - .../Windows10CertificateProfileBaseModel.go | 9 - .../beta/Windows10CompliancePolicyModel.go | 71 - .../beta/Windows10CustomConfigurationModel.go | 11 - ...viceFirmwareConfigurationInterfaceModel.go | 23 - .../beta/Windows10DeviceModeTypeEnum.go | 25 - ...dows10EasEmailProfileConfigurationModel.go | 27 - .../beta/Windows10EditionTypeEnum.go | 169 - ...s10EndpointProtectionConfigurationModel.go | 365 - ...ollmentCompletionPageConfigurationModel.go | 29 - ...tionPageConfigurationPolicySetItemModel.go | 11 - ...seModernAppManagementConfigurationModel.go | 11 - .../Windows10GeneralConfigurationModel.go | 569 - .../Windows10GeneralConfigurationRequest.go | 139 - ...ows10ImportedPFXCertificateProfileModel.go | 13 - ...s10ImportedPFXCertificateProfileRequest.go | 139 - .../Windows10MobileCompliancePolicyModel.go | 45 - ...dows10NetworkBoundaryConfigurationModel.go | 11 - .../beta/Windows10NetworkProxyServerModel.go | 15 - ...ndows10PFXImportCertificateProfileModel.go | 11 - .../Windows10PkcsCertificateProfileModel.go | 21 - .../Windows10PkcsCertificateProfileRequest.go | 139 - ...ows10SecureAssessmentConfigurationModel.go | 25 - .../Windows10TeamGeneralConfigurationModel.go | 51 - .../Windows10VpnAuthenticationMethodEnum.go | 33 - .../beta/Windows10VpnConfigurationModel.go | 55 - .../beta/Windows10VpnConfigurationRequest.go | 45 - .../beta/Windows10VpnConnectionTypeEnum.go | 89 - .../beta/Windows10VpnProfileTargetEnum.go | 33 - .../beta/Windows10VpnProxyServerModel.go | 11 - .../Windows81CertificateProfileBaseModel.go | 13 - .../beta/Windows81CompliancePolicyModel.go | 31 - .../Windows81GeneralConfigurationModel.go | 79 - .../Windows81SCEPCertificateProfileModel.go | 27 - .../Windows81SCEPCertificateProfileRequest.go | 146 - .../Windows81TrustedRootCertificateModel.go | 15 - .../Windows81TrustedRootCertificateRequest.go | 38 - .../beta/Windows81VpnConfigurationModel.go | 19 - .../beta/Windows81VpnProxyServerModel.go | 13 - .../Windows81WifiImportConfigurationModel.go | 15 - .../beta/WindowsAppStartLayoutTileSizeEnum.go | 49 - .../WindowsAppXAppAssignmentSettingsModel.go | 11 - .../msgraph.go/beta/WindowsAppXModel.go | 23 - .../beta/WindowsArchitectureEnum.go | 57 - .../beta/WindowsAssignedAccessProfileModel.go | 21 - ...WindowsAutopilotDeploymentProfileAction.go | 132 - ...topilotDeploymentProfileAssignmentModel.go | 15 - ...pilotDeploymentProfileAssignmentRequest.go | 38 - .../WindowsAutopilotDeploymentProfileModel.go | 39 - ...ilotDeploymentProfilePolicySetItemModel.go | 9 - ...indowsAutopilotDeploymentProfileRequest.go | 233 - .../WindowsAutopilotDeploymentStateEnum.go | 49 - .../WindowsAutopilotDeviceIdentityAction.go | 173 - .../WindowsAutopilotDeviceIdentityModel.go | 55 - .../WindowsAutopilotDeviceIdentityRequest.go | 52 - .../beta/WindowsAutopilotDeviceTypeEnum.go | 25 - .../WindowsAutopilotEnrollmentTypeEnum.go | 81 - ...ilotProfileAssignmentDetailedStatusEnum.go | 25 - ...owsAutopilotProfileAssignmentStatusEnum.go | 65 - .../beta/WindowsAutopilotSettingsAction.go | 35 - .../beta/WindowsAutopilotSettingsModel.go | 17 - .../beta/WindowsAutopilotSettingsRequest.go | 38 - .../beta/WindowsAutopilotSyncStatusEnum.go | 41 - .../WindowsCertificateProfileBaseModel.go | 21 - .../WindowsCertificateProfileBaseRequest.go | 38 - ...ancedThreatProtectionConfigurationModel.go | 23 - ...licationControlSupplementalPolicyAction.go | 37 - ...ontrolSupplementalPolicyAssignmentModel.go | 11 - ...trolSupplementalPolicyAssignmentRequest.go | 38 - ...SupplementalPolicyDeploymentStatusModel.go | 31 - ...pplementalPolicyDeploymentStatusRequest.go | 45 - ...upplementalPolicyDeploymentSummaryModel.go | 13 - ...plementalPolicyDeploymentSummaryRequest.go | 38 - ...plicationControlSupplementalPolicyModel.go | 33 - ...icationControlSupplementalPolicyRequest.go | 240 - ...onControlSupplementalPolicyStatusesEnum.go | 49 - .../WindowsDefenderScanActionResultModel.go | 11 - ...dowsDefenderTamperProtectionOptionsEnum.go | 33 - ...sDeliveryOptimizationConfigurationModel.go | 43 - .../WindowsDeliveryOptimizationModeEnum.go | 65 - .../beta/WindowsDeviceADAccountModel.go | 13 - .../beta/WindowsDeviceAccountModel.go | 11 - .../beta/WindowsDeviceAzureADAccountModel.go | 11 - .../beta/WindowsDeviceHealthStateEnum.go | 57 - .../beta/WindowsDeviceMalwareStateModel.go | 33 - .../beta/WindowsDeviceMalwareStateRequest.go | 38 - .../msgraph.go/beta/WindowsDeviceTypeEnum.go | 49 - .../beta/WindowsDeviceUsageTypeEnum.go | 25 - .../WindowsDomainJoinConfigurationModel.go | 19 - .../WindowsDomainJoinConfigurationRequest.go | 139 - ...dowsEnrollmentStatusScreenSettingsModel.go | 23 - .../beta/WindowsFeatureUpdateProfileAction.go | 37 - ...dowsFeatureUpdateProfileAssignmentModel.go | 11 - ...wsFeatureUpdateProfileAssignmentRequest.go | 38 - .../beta/WindowsFeatureUpdateProfileModel.go | 25 - .../WindowsFeatureUpdateProfileRequest.go | 233 - .../WindowsFirewallNetworkProfileModel.go | 55 - .../WindowsFirewallRuleInterfaceTypesEnum.go | 41 - .../beta/WindowsFirewallRuleModel.go | 41 - ...dowsFirewallRuleNetworkProfileTypesEnum.go | 41 - ...owsFirewallRuleTrafficDirectionTypeEnum.go | 33 - ...ndowsHealthMonitoringConfigurationModel.go | 15 - .../beta/WindowsHealthMonitoringScopeEnum.go | 41 - .../WindowsHelloForBusinessPinUsageEnum.go | 33 - ...owsIdentityProtectionConfigurationModel.go | 37 - .../WindowsInformationProtectionAction.go | 37 - ...mationProtectionAppLearningSummaryModel.go | 15 - ...tionProtectionAppLearningSummaryRequest.go | 38 - ...InformationProtectionAppLockerFileModel.go | 17 - ...formationProtectionAppLockerFileRequest.go | 38 - .../WindowsInformationProtectionAppModel.go | 19 - ...nProtectionDataRecoveryCertificateModel.go | 19 - ...owsInformationProtectionDesktopAppModel.go | 15 - ...ationProtectionDeviceRegistrationAction.go | 35 - ...mationProtectionDeviceRegistrationModel.go | 23 - ...tionProtectionDeviceRegistrationRequest.go | 38 - ...formationProtectionEnforcementLevelEnum.go | 41 - ...rmationProtectionIPRangeCollectionModel.go | 13 - .../beta/WindowsInformationProtectionModel.go | 59 - ...onProtectionNetworkLearningSummaryModel.go | 13 - ...ProtectionNetworkLearningSummaryRequest.go | 38 - ...nProtectionPinCharacterRequirementsEnum.go | 33 - ...WindowsInformationProtectionPolicyModel.go | 33 - ...ndowsInformationProtectionPolicyRequest.go | 38 - ...nProtectionProxiedDomainCollectionModel.go | 13 - .../WindowsInformationProtectionRequest.go | 327 - ...mationProtectionResourceCollectionModel.go | 13 - ...ndowsInformationProtectionStoreAppModel.go | 9 - ...owsInformationProtectionWipeActionModel.go | 23 - ...sInformationProtectionWipeActionRequest.go | 38 - .../WindowsKioskActiveDirectoryGroupModel.go | 11 - .../beta/WindowsKioskAppBaseModel.go | 17 - .../beta/WindowsKioskAppConfigurationModel.go | 9 - .../beta/WindowsKioskAppTypeEnum.go | 41 - .../beta/WindowsKioskAutologonModel.go | 9 - .../beta/WindowsKioskAzureADGroupModel.go | 13 - .../beta/WindowsKioskAzureADUserModel.go | 13 - .../beta/WindowsKioskConfigurationModel.go | 29 - .../beta/WindowsKioskDesktopAppModel.go | 15 - .../WindowsKioskForceUpdateScheduleModel.go | 21 - .../beta/WindowsKioskLocalGroupModel.go | 11 - .../beta/WindowsKioskLocalUserModel.go | 11 - .../beta/WindowsKioskMultipleAppsModel.go | 19 - .../beta/WindowsKioskProfileModel.go | 17 - .../beta/WindowsKioskSingleUWPAppModel.go | 11 - .../beta/WindowsKioskUWPAppModel.go | 15 - .../msgraph.go/beta/WindowsKioskUserModel.go | 9 - .../beta/WindowsKioskVisitorModel.go | 9 - .../beta/WindowsMalwareCategoryCountModel.go | 17 - .../beta/WindowsMalwareCategoryEnum.go | 409 - .../WindowsMalwareExecutionStateCountModel.go | 17 - .../beta/WindowsMalwareExecutionStateEnum.go | 49 - .../beta/WindowsMalwareInformationModel.go | 23 - .../beta/WindowsMalwareInformationRequest.go | 139 - .../beta/WindowsMalwareNameCountModel.go | 19 - .../beta/WindowsMalwareOverviewModel.go | 21 - .../beta/WindowsMalwareSeverityEnum.go | 49 - .../beta/WindowsMalwareStateCountModel.go | 17 - .../beta/WindowsMalwareStateEnum.go | 113 - .../beta/WindowsMalwareThreatStateEnum.go | 97 - .../beta/WindowsManagedDeviceModel.go | 9 - .../WindowsManagementAppHealthStateModel.go | 21 - .../WindowsManagementAppHealthStateRequest.go | 38 - .../WindowsManagementAppHealthSummaryModel.go | 15 - .../beta/WindowsManagementAppModel.go | 13 - .../beta/WindowsManagementAppRequest.go | 139 - .../beta/WindowsMicrosoftEdgeAppModel.go | 11 - .../WindowsMinimumOperatingSystemModel.go | 27 - .../msgraph.go/beta/WindowsMobileMSIModel.go | 21 - .../WindowsNetworkIsolationPolicyModel.go | 25 - .../WindowsOfficeClientConfigurationModel.go | 9 - ...sOfficeClientSecurityConfigurationModel.go | 9 - .../beta/WindowsPackageInformationModel.go | 23 - .../beta/WindowsPhone81AppXBundleModel.go | 11 - .../beta/WindowsPhone81AppXModel.go | 25 - ...ndowsPhone81CertificateProfileBaseModel.go | 23 - ...owsPhone81CertificateProfileBaseRequest.go | 38 - .../WindowsPhone81CompliancePolicyModel.go | 31 - .../WindowsPhone81CustomConfigurationModel.go | 11 - ...WindowsPhone81GeneralConfigurationModel.go | 67 - ...one81ImportedPFXCertificateProfileModel.go | 13 - ...e81ImportedPFXCertificateProfileRequest.go | 139 - ...ndowsPhone81SCEPCertificateProfileModel.go | 25 - ...owsPhone81SCEPCertificateProfileRequest.go | 146 - .../beta/WindowsPhone81StoreAppModel.go | 11 - ...ndowsPhone81TrustedRootCertificateModel.go | 13 - ...owsPhone81TrustedRootCertificateRequest.go | 38 - .../WindowsPhone81VpnConfigurationModel.go | 21 - .../WindowsPhone81VpnConfigurationRequest.go | 45 - ...sPhoneEASEmailProfileConfigurationModel.go | 29 - .../msgraph.go/beta/WindowsPhoneXAPModel.go | 15 - ...indowsPrivacyDataAccessControlItemModel.go | 17 - ...dowsPrivacyDataAccessControlItemRequest.go | 38 - .../beta/WindowsPrivacyDataAccessLevelEnum.go | 41 - .../beta/WindowsPrivacyDataCategoryEnum.go | 161 - .../beta/WindowsProtectionStateModel.go | 47 - .../beta/WindowsProtectionStateRequest.go | 139 - .../beta/WindowsSModeConfigurationEnum.go | 33 - .../WindowsSpotlightEnablementSettingsEnum.go | 33 - ...ndowsStartMenuAppListVisibilityTypeEnum.go | 41 - .../beta/WindowsStartMenuModeTypeEnum.go | 33 - .../msgraph.go/beta/WindowsStoreAppModel.go | 11 - ...UniversalAppXAppAssignmentSettingsModel.go | 11 - .../WindowsUniversalAppXContainedAppModel.go | 11 - .../beta/WindowsUniversalAppXModel.go | 27 - .../beta/WindowsUniversalAppXRequest.go | 139 - .../WindowsUpdateActiveHoursInstallModel.go | 15 - ...owsUpdateForBusinessConfigurationAction.go | 65 - ...dowsUpdateForBusinessConfigurationModel.go | 83 - ...wsUpdateForBusinessConfigurationRequest.go | 139 - ...WindowsUpdateForBusinessUpdateWeeksEnum.go | 57 - .../WindowsUpdateInstallScheduleTypeModel.go | 9 - ...dowsUpdateNotificationDisplayOptionEnum.go | 41 - .../WindowsUpdateScheduledInstallModel.go | 15 - .../beta/WindowsUpdateStateModel.go | 29 - .../beta/WindowsUpdateStateRequest.go | 38 - .../beta/WindowsUpdateStatusEnum.go | 41 - .../msgraph.go/beta/WindowsUpdateTypeEnum.go | 57 - .../WindowsUserAccountControlSettingsEnum.go | 49 - .../msgraph.go/beta/WindowsUserTypeEnum.go | 25 - .../beta/WindowsVpnConfigurationModel.go | 15 - .../beta/WindowsVpnConnectionTypeEnum.go | 41 - .../beta/WindowsWifiConfigurationModel.go | 35 - ...dowsWifiEnterpriseEAPConfigurationModel.go | 39 - ...wsWifiEnterpriseEAPConfigurationRequest.go | 146 - .../beta/WiredNetworkInterfaceEnum.go | 65 - .../msgraph.go/beta/WorkbookAction.go | 98 - .../beta/WorkbookApplicationAction.go | 37 - .../beta/WorkbookApplicationModel.go | 11 - .../beta/WorkbookApplicationRequest.go | 38 - .../msgraph.go/beta/WorkbookChartAction.go | 113 - .../beta/WorkbookChartAreaFormatModel.go | 13 - .../beta/WorkbookChartAreaFormatRequest.go | 52 - .../msgraph.go/beta/WorkbookChartAxesModel.go | 15 - .../beta/WorkbookChartAxesRequest.go | 59 - .../beta/WorkbookChartAxisFormatModel.go | 13 - .../beta/WorkbookChartAxisFormatRequest.go | 52 - .../msgraph.go/beta/WorkbookChartAxisModel.go | 27 - .../beta/WorkbookChartAxisRequest.go | 66 - .../beta/WorkbookChartAxisTitleFormatModel.go | 11 - .../WorkbookChartAxisTitleFormatRequest.go | 45 - .../beta/WorkbookChartAxisTitleModel.go | 15 - .../beta/WorkbookChartAxisTitleRequest.go | 45 - .../beta/WorkbookChartDataLabelFormatModel.go | 13 - .../WorkbookChartDataLabelFormatRequest.go | 52 - .../beta/WorkbookChartDataLabelsModel.go | 27 - .../beta/WorkbookChartDataLabelsRequest.go | 45 - .../beta/WorkbookChartFillAction.go | 67 - .../msgraph.go/beta/WorkbookChartFillModel.go | 9 - .../beta/WorkbookChartFillRequest.go | 38 - .../msgraph.go/beta/WorkbookChartFontModel.go | 21 - .../beta/WorkbookChartFontRequest.go | 38 - .../beta/WorkbookChartGridlinesFormatModel.go | 11 - .../WorkbookChartGridlinesFormatRequest.go | 45 - .../beta/WorkbookChartGridlinesModel.go | 13 - .../beta/WorkbookChartGridlinesRequest.go | 45 - .../beta/WorkbookChartLegendFormatModel.go | 13 - .../beta/WorkbookChartLegendFormatRequest.go | 52 - .../beta/WorkbookChartLegendModel.go | 17 - .../beta/WorkbookChartLegendRequest.go | 45 - .../beta/WorkbookChartLineFormatAction.go | 35 - .../beta/WorkbookChartLineFormatModel.go | 11 - .../beta/WorkbookChartLineFormatRequest.go | 38 - .../msgraph.go/beta/WorkbookChartModel.go | 33 - .../beta/WorkbookChartPointFormatModel.go | 11 - .../beta/WorkbookChartPointFormatRequest.go | 45 - .../beta/WorkbookChartPointModel.go | 15 - .../beta/WorkbookChartPointRequest.go | 45 - .../msgraph.go/beta/WorkbookChartRequest.go | 181 - .../beta/WorkbookChartSeriesFormatModel.go | 13 - .../beta/WorkbookChartSeriesFormatRequest.go | 52 - .../beta/WorkbookChartSeriesModel.go | 15 - .../beta/WorkbookChartSeriesRequest.go | 146 - .../beta/WorkbookChartTitleFormatModel.go | 13 - .../beta/WorkbookChartTitleFormatRequest.go | 52 - .../beta/WorkbookChartTitleModel.go | 17 - .../beta/WorkbookChartTitleRequest.go | 45 - .../msgraph.go/beta/WorkbookCommentModel.go | 15 - .../beta/WorkbookCommentReplyModel.go | 13 - .../beta/WorkbookCommentReplyRequest.go | 38 - .../msgraph.go/beta/WorkbookCommentRequest.go | 139 - .../msgraph.go/beta/WorkbookFilterAction.go | 394 - .../beta/WorkbookFilterCriteriaModel.go | 27 - .../beta/WorkbookFilterDatetimeModel.go | 13 - .../msgraph.go/beta/WorkbookFilterModel.go | 11 - .../msgraph.go/beta/WorkbookFilterRequest.go | 38 - .../beta/WorkbookFormatProtectionModel.go | 13 - .../beta/WorkbookFormatProtectionRequest.go | 38 - .../beta/WorkbookFunctionResultModel.go | 15 - .../beta/WorkbookFunctionsAction.go | 12984 -------------- .../msgraph.go/beta/WorkbookFunctionsModel.go | 9 - .../msgraph.go/beta/WorkbookIconModel.go | 13 - .../msgraph.go/beta/WorkbookModel.go | 21 - .../beta/WorkbookNamedItemAction.go | 98 - .../msgraph.go/beta/WorkbookNamedItemModel.go | 25 - .../beta/WorkbookNamedItemRequest.go | 45 - .../beta/WorkbookPivotTableAction.go | 65 - .../beta/WorkbookPivotTableModel.go | 13 - .../beta/WorkbookPivotTableRequest.go | 45 - .../msgraph.go/beta/WorkbookRangeAction.go | 164 - .../beta/WorkbookRangeBorderModel.go | 17 - .../beta/WorkbookRangeBorderRequest.go | 38 - .../beta/WorkbookRangeFillAction.go | 35 - .../msgraph.go/beta/WorkbookRangeFillModel.go | 11 - .../beta/WorkbookRangeFillRequest.go | 38 - .../msgraph.go/beta/WorkbookRangeFontModel.go | 21 - .../beta/WorkbookRangeFontRequest.go | 38 - .../beta/WorkbookRangeFormatAction.go | 65 - .../beta/WorkbookRangeFormatModel.go | 27 - .../beta/WorkbookRangeFormatRequest.go | 160 - .../msgraph.go/beta/WorkbookRangeModel.go | 51 - .../beta/WorkbookRangeReferenceModel.go | 11 - .../msgraph.go/beta/WorkbookRangeRequest.go | 59 - .../beta/WorkbookRangeSortAction.go | 45 - .../msgraph.go/beta/WorkbookRangeSortModel.go | 9 - .../beta/WorkbookRangeSortRequest.go | 38 - .../msgraph.go/beta/WorkbookRangeViewModel.go | 35 - .../beta/WorkbookRangeViewRequest.go | 139 - .../msgraph.go/beta/WorkbookRequest.go | 435 - .../beta/WorkbookSessionInfoModel.go | 13 - .../msgraph.go/beta/WorkbookSortFieldModel.go | 21 - .../msgraph.go/beta/WorkbookTableAction.go | 139 - .../beta/WorkbookTableColumnAction.go | 45 - .../beta/WorkbookTableColumnModel.go | 19 - .../beta/WorkbookTableColumnRequest.go | 45 - .../msgraph.go/beta/WorkbookTableModel.go | 37 - .../msgraph.go/beta/WorkbookTableRequest.go | 247 - .../msgraph.go/beta/WorkbookTableRowAction.go | 43 - .../msgraph.go/beta/WorkbookTableRowModel.go | 15 - .../beta/WorkbookTableRowRequest.go | 38 - .../beta/WorkbookTableSortAction.go | 101 - .../msgraph.go/beta/WorkbookTableSortModel.go | 15 - .../beta/WorkbookTableSortRequest.go | 38 - .../beta/WorkbookWorksheetAction.go | 38 - .../msgraph.go/beta/WorkbookWorksheetModel.go | 25 - .../beta/WorkbookWorksheetProtectionAction.go | 67 - .../beta/WorkbookWorksheetProtectionModel.go | 13 - ...WorkbookWorksheetProtectionOptionsModel.go | 31 - .../WorkbookWorksheetProtectionRequest.go | 38 - .../beta/WorkbookWorksheetRequest.go | 428 - .../WorkforceIntegrationEncryptionModel.go | 13 - ...kforceIntegrationEncryptionProtocolEnum.go | 25 - .../beta/WorkforceIntegrationModel.go | 21 - ...rkforceIntegrationSupportedEntitiesEnum.go | 57 - .../msgraph.go/beta/WorkingHoursModel.go | 19 - .../beta/YammerActivitySummaryModel.go | 23 - .../beta/YammerActivityUserDetailModel.go | 33 - ...rDeviceUsageDistributionUserCountsModel.go | 27 - .../beta/YammerDeviceUsageUserCountsModel.go | 29 - .../beta/YammerDeviceUsageUserDetailModel.go | 37 - .../beta/YammerGroupsActivityCountsModel.go | 23 - .../beta/YammerGroupsActivityDetailModel.go | 35 - .../YammerGroupsActivityGroupCountsModel.go | 21 - .../matterbridge/msgraph.go/jsonx/README.md | 55 - vendor/github.com/rickb777/date/LICENSE | 27 + vendor/github.com/rickb777/date/period/doc.go | 44 + .../github.com/rickb777/date/period/format.go | 128 + .../rickb777/date/period/marshal.go | 32 + .../github.com/rickb777/date/period/parse.go | 152 + .../github.com/rickb777/date/period/period.go | 739 + vendor/github.com/rickb777/plural/.gitignore | 26 + vendor/github.com/rickb777/plural/.travis.yml | 11 + vendor/github.com/rickb777/plural/LICENSE | 27 + vendor/github.com/rickb777/plural/README.md | 28 + .../github.com/rickb777/plural/build+test.sh | 13 + vendor/github.com/rickb777/plural/doc.go | 20 + vendor/github.com/rickb777/plural/plural.go | 203 + vendor/github.com/yaegashi/msgraph.go/LICENSE | 201 + .../yaegashi/msgraph.go/beta/ActionAad.go | 10 + .../yaegashi/msgraph.go/beta/ActionAccess.go | 1688 ++ .../yaegashi/msgraph.go/beta/ActionActive.go | 10 + .../msgraph.go/beta/ActionActivity.go | 10 + .../msgraph.go/beta/ActionAdministrative.go | 318 + .../msgraph.go/beta/ActionAdvanced.go | 114 + .../msgraph.go/beta/ActionAgreement.go | 114 + .../yaegashi/msgraph.go/beta/ActionAlert.go | 9 + .../yaegashi/msgraph.go/beta/ActionAndroid.go | 1265 ++ .../yaegashi/msgraph.go/beta/ActionApp.go | 322 + .../yaegashi/msgraph.go/beta/ActionApple.go | 120 + .../msgraph.go/beta/ActionApplication.go | 368 + .../msgraph.go/beta/ActionApproval.go | 522 + .../msgraph.go/beta/ActionAttachment.go | 9 + .../yaegashi/msgraph.go/beta/ActionAudit.go | 522 + .../yaegashi/msgraph.go/beta/ActionBase.go | 17 + .../yaegashi/msgraph.go/beta/ActionBooking.go | 536 + .../msgraph.go/beta/ActionBusiness.go | 11 + .../msgraph.go/beta/ActionCalendar.go | 640 + .../yaegashi/msgraph.go/beta/ActionCall.go | 454 + .../yaegashi/msgraph.go/beta/ActionChannel.go | 325 + .../yaegashi/msgraph.go/beta/ActionChat.go | 522 + .../yaegashi/msgraph.go/beta/ActionCloud.go | 222 + .../yaegashi/msgraph.go/beta/ActionCommand.go | 10 + .../yaegashi/msgraph.go/beta/ActionComms.go | 216 + .../yaegashi/msgraph.go/beta/ActionCompany.go | 3582 ++++ .../msgraph.go/beta/ActionConditional.go | 216 + .../yaegashi/msgraph.go/beta/ActionContact.go | 733 + .../yaegashi/msgraph.go/beta/ActionContent.go | 114 + .../msgraph.go/beta/ActionConversation.go | 222 + .../msgraph.go/beta/ActionCustomer.go | 258 + .../yaegashi/msgraph.go/beta/ActionData.go | 1250 ++ .../yaegashi/msgraph.go/beta/ActionDefault.go | 121 + .../yaegashi/msgraph.go/beta/ActionDep.go | 250 + .../msgraph.go/beta/ActionDetected.go | 114 + .../yaegashi/msgraph.go/beta/ActionDevice.go | 14358 ++++++++++++++++ .../msgraph.go/beta/ActionDimension.go | 114 + .../msgraph.go/beta/ActionDirectory.go | 480 + .../msgraph.go/beta/ActionDocument.go | 216 + .../yaegashi/msgraph.go/beta/ActionDomain.go | 328 + .../yaegashi/msgraph.go/beta/ActionDrive.go | 1281 ++ .../msgraph.go/beta/ActionEducation.go | 2432 +++ .../msgraph.go/beta/ActionEmbedded.go | 222 + .../msgraph.go/beta/ActionEmployee.go | 114 + .../msgraph.go/beta/ActionEnrollment.go | 13 + .../msgraph.go/beta/ActionEntitlement.go | 930 + .../yaegashi/msgraph.go/beta/ActionEvent.go | 616 + .../yaegashi/msgraph.go/beta/ActionExact.go | 245 + .../msgraph.go/beta/ActionExternal.go | 325 + .../yaegashi/msgraph.go/beta/ActionFeature.go | 114 + .../msgraph.go/beta/ActionFinancials.go | 114 + .../yaegashi/msgraph.go/beta/ActionGeneral.go | 10 + .../msgraph.go/beta/ActionGovernance.go | 526 + .../yaegashi/msgraph.go/beta/ActionGroup.go | 2950 ++++ .../yaegashi/msgraph.go/beta/ActionIOS.go | 1165 ++ .../msgraph.go/beta/ActionIdentity.go | 128 + .../msgraph.go/beta/ActionImported.go | 142 + .../msgraph.go/beta/ActionInference.go | 114 + .../msgraph.go/beta/ActionInformation.go | 474 + .../yaegashi/msgraph.go/beta/ActionIntune.go | 120 + .../msgraph.go/beta/ActionInvitation.go | 10 + .../yaegashi/msgraph.go/beta/ActionItem.go | 367 + .../yaegashi/msgraph.go/beta/ActionJournal.go | 132 + .../yaegashi/msgraph.go/beta/ActionList.go | 765 + .../yaegashi/msgraph.go/beta/ActionMDM.go | 9 + .../yaegashi/msgraph.go/beta/ActionMac.go | 475 + .../yaegashi/msgraph.go/beta/ActionMail.go | 636 + .../yaegashi/msgraph.go/beta/ActionManaged.go | 1963 +++ .../msgraph.go/beta/ActionManagement.go | 216 + .../yaegashi/msgraph.go/beta/ActionMessage.go | 594 + .../msgraph.go/beta/ActionMicrosoft.go | 114 + .../yaegashi/msgraph.go/beta/ActionMobile.go | 972 ++ .../msgraph.go/beta/ActionNotebook.go | 236 + .../msgraph.go/beta/ActionNotification.go | 118 + .../yaegashi/msgraph.go/beta/ActionOffice.go | 536 + .../yaegashi/msgraph.go/beta/ActionOn.go | 624 + .../yaegashi/msgraph.go/beta/ActionOnenote.go | 800 + .../yaegashi/msgraph.go/beta/ActionOrg.go | 325 + .../msgraph.go/beta/ActionOrganization.go | 322 + .../yaegashi/msgraph.go/beta/ActionOutlook.go | 1138 ++ .../msgraph.go/beta/ActionParticipant.go | 25 + .../msgraph.go/beta/ActionPermission.go | 11 + .../yaegashi/msgraph.go/beta/ActionPlanner.go | 1271 ++ .../yaegashi/msgraph.go/beta/ActionPolicy.go | 336 + .../yaegashi/msgraph.go/beta/ActionPost.go | 543 + .../msgraph.go/beta/ActionPrivileged.go | 710 + .../yaegashi/msgraph.go/beta/ActionProfile.go | 1338 ++ .../yaegashi/msgraph.go/beta/ActionProgram.go | 121 + .../msgraph.go/beta/ActionPublished.go | 114 + .../msgraph.go/beta/ActionPurchase.go | 146 + .../yaegashi/msgraph.go/beta/ActionRbac.go | 216 + .../yaegashi/msgraph.go/beta/ActionRemote.go | 11 + .../yaegashi/msgraph.go/beta/ActionReport.go | 318 + .../yaegashi/msgraph.go/beta/ActionRequest.go | 228 + .../yaegashi/msgraph.go/beta/ActionRisky.go | 126 + .../yaegashi/msgraph.go/beta/ActionRole.go | 242 + .../yaegashi/msgraph.go/beta/ActionRoom.go | 114 + .../yaegashi/msgraph.go/beta/ActionSales.go | 602 + .../msgraph.go/beta/ActionSchedule.go | 851 + .../yaegashi/msgraph.go/beta/ActionSearch.go | 9 + .../yaegashi/msgraph.go/beta/ActionSection.go | 230 + .../msgraph.go/beta/ActionSecurity.go | 1553 ++ .../msgraph.go/beta/ActionSensitivity.go | 122 + .../yaegashi/msgraph.go/beta/ActionService.go | 1067 ++ .../yaegashi/msgraph.go/beta/ActionShared.go | 170 + .../yaegashi/msgraph.go/beta/ActionSite.go | 763 + .../msgraph.go/beta/ActionSynchronization.go | 394 + .../msgraph.go/beta/ActionTargeted.go | 349 + .../yaegashi/msgraph.go/beta/ActionTeam.go | 583 + .../yaegashi/msgraph.go/beta/ActionTeams.go | 139 + .../msgraph.go/beta/ActionTeamwork.go | 114 + .../yaegashi/msgraph.go/beta/ActionTenant.go | 10 + .../yaegashi/msgraph.go/beta/ActionTerms.go | 332 + .../yaegashi/msgraph.go/beta/ActionThreat.go | 114 + .../yaegashi/msgraph.go/beta/ActionTi.go | 27 + .../msgraph.go/beta/ActionTrending.go | 10 + .../yaegashi/msgraph.go/beta/ActionTrust.go | 254 + .../yaegashi/msgraph.go/beta/ActionUnified.go | 17 + .../yaegashi/msgraph.go/beta/ActionUsed.go | 10 + .../yaegashi/msgraph.go/beta/ActionUser.go | 5028 ++++++ .../yaegashi/msgraph.go/beta/ActionVPP.go | 13 + .../yaegashi/msgraph.go/beta/ActionVendor.go | 135 + .../yaegashi/msgraph.go/beta/ActionWindows.go | 1981 +++ .../msgraph.go/beta/ActionWindows10.go | 325 + .../msgraph.go/beta/ActionWindows81.go | 121 + .../msgraph.go/beta/ActionWorkbook.go | 5268 ++++++ .../yaegashi/msgraph.go/beta/EnumACL.go | 35 + .../yaegashi/msgraph.go/beta/EnumAccess.go | 84 + .../yaegashi/msgraph.go/beta/EnumAccount.go | 45 + .../yaegashi/msgraph.go/beta/EnumAction.go | 82 + .../yaegashi/msgraph.go/beta/EnumActivity.go | 62 + .../yaegashi/msgraph.go/beta/EnumAdmin.go | 30 + .../msgraph.go/beta/EnumAdministrator.go | 25 + .../yaegashi/msgraph.go/beta/EnumAdvanced.go | 100 + .../yaegashi/msgraph.go/beta/EnumAgent.go | 25 + .../yaegashi/msgraph.go/beta/EnumAgreement.go | 25 + .../yaegashi/msgraph.go/beta/EnumAlert.go | 124 + .../yaegashi/msgraph.go/beta/EnumAlignment.go | 30 + .../yaegashi/msgraph.go/beta/EnumAllowed.go | 55 + .../yaegashi/msgraph.go/beta/EnumAnalytics.go | 40 + .../yaegashi/msgraph.go/beta/EnumAndroid.go | 1224 ++ .../msgraph.go/beta/EnumAnniversary.go | 30 + .../yaegashi/msgraph.go/beta/EnumApp.go | 212 + .../yaegashi/msgraph.go/beta/EnumApple.go | 159 + .../msgraph.go/beta/EnumApplication.go | 242 + .../yaegashi/msgraph.go/beta/EnumApplied.go | 65 + .../yaegashi/msgraph.go/beta/EnumApproval.go | 40 + .../msgraph.go/beta/EnumAssignment.go | 30 + .../msgraph.go/beta/EnumAttachment.go | 30 + .../yaegashi/msgraph.go/beta/EnumAttendee.go | 30 + .../yaegashi/msgraph.go/beta/EnumAttribute.go | 121 + .../yaegashi/msgraph.go/beta/EnumAuth.go | 80 + .../yaegashi/msgraph.go/beta/EnumAuto.go | 52 + .../yaegashi/msgraph.go/beta/EnumAutomatic.go | 77 + .../yaegashi/msgraph.go/beta/EnumAzure.go | 45 + .../yaegashi/msgraph.go/beta/EnumBinary.go | 25 + .../yaegashi/msgraph.go/beta/EnumBit.go | 89 + .../yaegashi/msgraph.go/beta/EnumBody.go | 25 + .../yaegashi/msgraph.go/beta/EnumBooking.go | 183 + .../yaegashi/msgraph.go/beta/EnumBrowser.go | 30 + .../yaegashi/msgraph.go/beta/EnumCalendar.go | 193 + .../yaegashi/msgraph.go/beta/EnumCall.go | 119 + .../yaegashi/msgraph.go/beta/EnumCategory.go | 145 + .../msgraph.go/beta/EnumCertificate.go | 265 + .../yaegashi/msgraph.go/beta/EnumChange.go | 52 + .../yaegashi/msgraph.go/beta/EnumChannel.go | 30 + .../yaegashi/msgraph.go/beta/EnumChassis.go | 60 + .../yaegashi/msgraph.go/beta/EnumChat.go | 148 + .../yaegashi/msgraph.go/beta/EnumClonable.go | 40 + .../yaegashi/msgraph.go/beta/EnumCloud.go | 30 + .../yaegashi/msgraph.go/beta/EnumCompany.go | 30 + .../msgraph.go/beta/EnumCompliance.go | 102 + .../yaegashi/msgraph.go/beta/EnumComponent.go | 20 + .../msgraph.go/beta/EnumConditional.go | 250 + .../msgraph.go/beta/EnumConfiguration.go | 104 + .../msgraph.go/beta/EnumConnection.go | 109 + .../yaegashi/msgraph.go/beta/EnumContact.go | 55 + .../yaegashi/msgraph.go/beta/EnumContent.go | 79 + .../msgraph.go/beta/EnumConversation.go | 25 + .../yaegashi/msgraph.go/beta/EnumDMA.go | 30 + .../yaegashi/msgraph.go/beta/EnumData.go | 40 + .../yaegashi/msgraph.go/beta/EnumDay.go | 50 + .../yaegashi/msgraph.go/beta/EnumDefender.go | 360 + .../yaegashi/msgraph.go/beta/EnumDelegate.go | 30 + .../yaegashi/msgraph.go/beta/EnumDelivery.go | 62 + .../yaegashi/msgraph.go/beta/EnumDep.go | 30 + .../yaegashi/msgraph.go/beta/EnumDerived.go | 40 + .../yaegashi/msgraph.go/beta/EnumDevice.go | 1602 ++ .../msgraph.go/beta/EnumDiagnostic.go | 40 + .../yaegashi/msgraph.go/beta/EnumDiamond.go | 45 + .../yaegashi/msgraph.go/beta/EnumDirectory.go | 45 + .../yaegashi/msgraph.go/beta/EnumDiscovery.go | 30 + .../yaegashi/msgraph.go/beta/EnumDisk.go | 30 + .../yaegashi/msgraph.go/beta/EnumDlp.go | 30 + .../yaegashi/msgraph.go/beta/EnumDomain.go | 25 + .../yaegashi/msgraph.go/beta/EnumEap.go | 77 + .../yaegashi/msgraph.go/beta/EnumEas.go | 72 + .../yaegashi/msgraph.go/beta/EnumEdge.go | 163 + .../yaegashi/msgraph.go/beta/EnumEdition.go | 30 + .../yaegashi/msgraph.go/beta/EnumEducation.go | 257 + .../yaegashi/msgraph.go/beta/EnumEmail.go | 193 + .../yaegashi/msgraph.go/beta/EnumEmbedded.go | 55 + .../msgraph.go/beta/EnumEnablement.go | 30 + .../yaegashi/msgraph.go/beta/EnumEncrypt.go | 25 + .../msgraph.go/beta/EnumEncryption.go | 47 + .../yaegashi/msgraph.go/beta/EnumEndpoint.go | 40 + .../msgraph.go/beta/EnumEnrollment.go | 45 + .../yaegashi/msgraph.go/beta/EnumEntity.go | 40 + .../yaegashi/msgraph.go/beta/EnumEntry.go | 72 + .../yaegashi/msgraph.go/beta/EnumError.go | 35 + .../yaegashi/msgraph.go/beta/EnumEvent.go | 35 + .../yaegashi/msgraph.go/beta/EnumExchange.go | 40 + .../yaegashi/msgraph.go/beta/EnumExternal.go | 30 + .../yaegashi/msgraph.go/beta/EnumFeature.go | 30 + .../yaegashi/msgraph.go/beta/EnumFile.go | 87 + .../yaegashi/msgraph.go/beta/EnumFirewall.go | 99 + .../yaegashi/msgraph.go/beta/EnumFolder.go | 40 + .../yaegashi/msgraph.go/beta/EnumFollowup.go | 30 + .../yaegashi/msgraph.go/beta/EnumFree.go | 45 + .../yaegashi/msgraph.go/beta/EnumGiphy.go | 30 + .../yaegashi/msgraph.go/beta/EnumGroup.go | 241 + .../yaegashi/msgraph.go/beta/EnumHash.go | 25 + .../yaegashi/msgraph.go/beta/EnumHealth.go | 30 + .../yaegashi/msgraph.go/beta/EnumIOS.go | 164 + .../yaegashi/msgraph.go/beta/EnumITunes.go | 30 + .../msgraph.go/beta/EnumImportance.go | 30 + .../yaegashi/msgraph.go/beta/EnumImported.go | 99 + .../yaegashi/msgraph.go/beta/EnumInference.go | 25 + .../yaegashi/msgraph.go/beta/EnumInitiator.go | 35 + .../yaegashi/msgraph.go/beta/EnumInk.go | 30 + .../yaegashi/msgraph.go/beta/EnumInstall.go | 77 + .../yaegashi/msgraph.go/beta/EnumIntended.go | 40 + .../yaegashi/msgraph.go/beta/EnumInternet.go | 67 + .../yaegashi/msgraph.go/beta/EnumKey.go | 79 + .../yaegashi/msgraph.go/beta/EnumLan.go | 45 + .../yaegashi/msgraph.go/beta/EnumLanguage.go | 50 + .../yaegashi/msgraph.go/beta/EnumLocal.go | 242 + .../yaegashi/msgraph.go/beta/EnumLocation.go | 102 + .../yaegashi/msgraph.go/beta/EnumLog.go | 45 + .../yaegashi/msgraph.go/beta/EnumLogon.go | 50 + .../yaegashi/msgraph.go/beta/EnumLost.go | 25 + .../yaegashi/msgraph.go/beta/EnumMDM.go | 72 + .../yaegashi/msgraph.go/beta/EnumMac.go | 62 + .../yaegashi/msgraph.go/beta/EnumMail.go | 157 + .../yaegashi/msgraph.go/beta/EnumManaged.go | 456 + .../msgraph.go/beta/EnumManagement.go | 147 + .../yaegashi/msgraph.go/beta/EnumMedia.go | 62 + .../yaegashi/msgraph.go/beta/EnumMeeting.go | 67 + .../yaegashi/msgraph.go/beta/EnumMessage.go | 70 + .../yaegashi/msgraph.go/beta/EnumMetered.go | 30 + .../yaegashi/msgraph.go/beta/EnumMicrosoft.go | 79 + .../yaegashi/msgraph.go/beta/EnumMigration.go | 35 + .../yaegashi/msgraph.go/beta/EnumMiracast.go | 120 + .../yaegashi/msgraph.go/beta/EnumMobile.go | 260 + .../yaegashi/msgraph.go/beta/EnumModality.go | 45 + .../msgraph.go/beta/EnumMutability.go | 35 + .../yaegashi/msgraph.go/beta/EnumNDES.go | 30 + .../yaegashi/msgraph.go/beta/EnumNetwork.go | 67 + .../yaegashi/msgraph.go/beta/EnumNon.go | 57 + .../msgraph.go/beta/EnumNotification.go | 35 + .../yaegashi/msgraph.go/beta/EnumObject.go | 35 + .../yaegashi/msgraph.go/beta/EnumOffice.go | 94 + .../yaegashi/msgraph.go/beta/EnumOn.go | 50 + .../yaegashi/msgraph.go/beta/EnumOnenote.go | 126 + .../yaegashi/msgraph.go/beta/EnumOnline.go | 35 + .../yaegashi/msgraph.go/beta/EnumOperation.go | 67 + .../yaegashi/msgraph.go/beta/EnumOverride.go | 35 + .../yaegashi/msgraph.go/beta/EnumOwner.go | 30 + .../yaegashi/msgraph.go/beta/EnumPage.go | 25 + .../msgraph.go/beta/EnumPermission.go | 35 + .../msgraph.go/beta/EnumPersistent.go | 25 + .../yaegashi/msgraph.go/beta/EnumPerson.go | 95 + .../yaegashi/msgraph.go/beta/EnumPhone.go | 65 + .../yaegashi/msgraph.go/beta/EnumPhysical.go | 35 + .../yaegashi/msgraph.go/beta/EnumPlace.go | 40 + .../yaegashi/msgraph.go/beta/EnumPlanner.go | 40 + .../yaegashi/msgraph.go/beta/EnumPlatform.go | 45 + .../yaegashi/msgraph.go/beta/EnumPlay.go | 35 + .../yaegashi/msgraph.go/beta/EnumPolicy.go | 102 + .../yaegashi/msgraph.go/beta/EnumPower.go | 40 + .../msgraph.go/beta/EnumPrerelease.go | 35 + .../yaegashi/msgraph.go/beta/EnumPriority.go | 30 + .../yaegashi/msgraph.go/beta/EnumProcess.go | 50 + .../yaegashi/msgraph.go/beta/EnumProperty.go | 60 + .../msgraph.go/beta/EnumProvisioning.go | 82 + .../msgraph.go/beta/EnumQuarantine.go | 50 + .../yaegashi/msgraph.go/beta/EnumRating.go | 881 + .../yaegashi/msgraph.go/beta/EnumRecipient.go | 40 + .../yaegashi/msgraph.go/beta/EnumRecord.go | 60 + .../yaegashi/msgraph.go/beta/EnumRecording.go | 40 + .../msgraph.go/beta/EnumRecurrence.go | 72 + .../yaegashi/msgraph.go/beta/EnumReference.go | 82 + .../msgraph.go/beta/EnumRegistration.go | 102 + .../yaegashi/msgraph.go/beta/EnumRegistry.go | 174 + .../yaegashi/msgraph.go/beta/EnumReject.go | 35 + .../msgraph.go/beta/EnumRemediation.go | 40 + .../yaegashi/msgraph.go/beta/EnumRemote.go | 157 + .../yaegashi/msgraph.go/beta/EnumRequired.go | 30 + .../msgraph.go/beta/EnumRequirement.go | 30 + .../yaegashi/msgraph.go/beta/EnumResponse.go | 45 + .../msgraph.go/beta/EnumRestricted.go | 25 + .../msgraph.go/beta/EnumRestriction.go | 77 + .../yaegashi/msgraph.go/beta/EnumResultant.go | 162 + .../yaegashi/msgraph.go/beta/EnumRisk.go | 340 + .../yaegashi/msgraph.go/beta/EnumRole.go | 57 + .../yaegashi/msgraph.go/beta/EnumRouting.go | 94 + .../yaegashi/msgraph.go/beta/EnumRule.go | 40 + .../yaegashi/msgraph.go/beta/EnumRun.go | 67 + .../yaegashi/msgraph.go/beta/EnumSafe.go | 30 + .../yaegashi/msgraph.go/beta/EnumSchedule.go | 149 + .../yaegashi/msgraph.go/beta/EnumScope.go | 47 + .../yaegashi/msgraph.go/beta/EnumScreen.go | 25 + .../yaegashi/msgraph.go/beta/EnumSecure.go | 62 + .../yaegashi/msgraph.go/beta/EnumSecurity.go | 177 + .../msgraph.go/beta/EnumSensitivity.go | 35 + .../yaegashi/msgraph.go/beta/EnumService.go | 30 + .../yaegashi/msgraph.go/beta/EnumSetup.go | 55 + .../yaegashi/msgraph.go/beta/EnumShared.go | 57 + .../yaegashi/msgraph.go/beta/EnumSign.go | 25 + .../yaegashi/msgraph.go/beta/EnumSignin.go | 25 + .../yaegashi/msgraph.go/beta/EnumSite.go | 72 + .../yaegashi/msgraph.go/beta/EnumSkill.go | 45 + .../yaegashi/msgraph.go/beta/EnumStaged.go | 35 + .../yaegashi/msgraph.go/beta/EnumState.go | 30 + .../yaegashi/msgraph.go/beta/EnumStatus.go | 40 + .../yaegashi/msgraph.go/beta/EnumSubject.go | 97 + .../msgraph.go/beta/EnumSynchronization.go | 333 + .../yaegashi/msgraph.go/beta/EnumTask.go | 40 + .../yaegashi/msgraph.go/beta/EnumTeam.go | 87 + .../yaegashi/msgraph.go/beta/EnumTeams.go | 119 + .../yaegashi/msgraph.go/beta/EnumThreat.go | 182 + .../yaegashi/msgraph.go/beta/EnumTi.go | 40 + .../yaegashi/msgraph.go/beta/EnumTime.go | 147 + .../yaegashi/msgraph.go/beta/EnumTlp.go | 45 + .../yaegashi/msgraph.go/beta/EnumToken.go | 30 + .../yaegashi/msgraph.go/beta/EnumTone.go | 100 + .../yaegashi/msgraph.go/beta/EnumUnary.go | 20 + .../yaegashi/msgraph.go/beta/EnumUpdate.go | 35 + .../yaegashi/msgraph.go/beta/EnumUsage.go | 70 + .../yaegashi/msgraph.go/beta/EnumUser.go | 363 + .../yaegashi/msgraph.go/beta/EnumUsername.go | 30 + .../yaegashi/msgraph.go/beta/EnumVPN.go | 362 + .../yaegashi/msgraph.go/beta/EnumVPP.go | 131 + .../msgraph.go/beta/EnumVisibility.go | 30 + .../yaegashi/msgraph.go/beta/EnumWatermark.go | 25 + .../yaegashi/msgraph.go/beta/EnumWeb.go | 40 + .../yaegashi/msgraph.go/beta/EnumWebsite.go | 40 + .../yaegashi/msgraph.go/beta/EnumWeek.go | 40 + .../yaegashi/msgraph.go/beta/EnumWeekly.go | 65 + .../yaegashi/msgraph.go/beta/EnumWelcome.go | 30 + .../yaegashi/msgraph.go/beta/EnumWiFi.go | 99 + .../yaegashi/msgraph.go/beta/EnumWin32.go | 309 + .../yaegashi/msgraph.go/beta/EnumWindows.go | 1723 ++ .../yaegashi/msgraph.go/beta/EnumWindows10.go | 307 + .../yaegashi/msgraph.go/beta/EnumWired.go | 50 + .../yaegashi/msgraph.go/beta/EnumWorkforce.go | 67 + .../yaegashi/msgraph.go/beta/GraphService.go | 9272 ++++++++++ .../msgraph.go/beta/ModelACL.go} | 0 .../yaegashi/msgraph.go/beta/ModelAPI.go | 27 + .../msgraph.go/beta/ModelAad.go} | 0 .../yaegashi/msgraph.go/beta/ModelAccess.go | 423 + .../yaegashi/msgraph.go/beta/ModelAccount.go | 33 + .../msgraph.go/beta/ModelActive.go} | 0 .../yaegashi/msgraph.go/beta/ModelActivity.go | 45 + .../yaegashi/msgraph.go/beta/ModelAdd.go | 101 + .../msgraph.go/beta/ModelAdmin.go} | 0 .../msgraph.go/beta/ModelAdministrative.go} | 0 .../yaegashi/msgraph.go/beta/ModelAdvanced.go | 59 + .../yaegashi/msgraph.go/beta/ModelAged.go | 55 + .../msgraph.go/beta/ModelAgreement.go | 61 + .../msgraph.go/beta/ModelAir.go} | 0 .../msgraph.go/beta/ModelAlbum.go} | 0 .../yaegashi/msgraph.go/beta/ModelAlert.go | 107 + .../yaegashi/msgraph.go/beta/ModelAll.go | 15 + .../yaegashi/msgraph.go/beta/ModelAllowed.go | 23 + .../msgraph.go/beta/ModelAlternative.go} | 0 .../yaegashi/msgraph.go/beta/ModelAndroid.go | 1741 ++ .../msgraph.go/beta/ModelAnonymous.go} | 0 .../yaegashi/msgraph.go/beta/ModelApp.go | 183 + .../yaegashi/msgraph.go/beta/ModelApple.go | 121 + .../msgraph.go/beta/ModelApplication.go | 133 + .../msgraph.go/beta/ModelApplied.go} | 0 .../msgraph.go/beta/ModelApply.go} | 0 .../msgraph.go/beta/ModelApproval.go} | 0 .../yaegashi/msgraph.go/beta/ModelAssigned.go | 39 + .../msgraph.go/beta/ModelAttachment.go | 37 + .../yaegashi/msgraph.go/beta/ModelAttendee.go | 31 + .../msgraph.go/beta/ModelAttribute.go | 87 + .../yaegashi/msgraph.go/beta/ModelAudio.go | 67 + .../yaegashi/msgraph.go/beta/ModelAudit.go | 109 + .../msgraph.go/beta/ModelAuthentication.go | 33 + .../yaegashi/msgraph.go/beta/ModelAuto.go | 21 + .../msgraph.go/beta/ModelAutomatic.go | 35 + .../msgraph.go/beta/ModelAverage.go} | 0 .../yaegashi/msgraph.go/beta/ModelAzure.go | 53 + .../yaegashi/msgraph.go/beta/ModelBase.go | 45 + .../msgraph.go/beta/ModelBinary.go} | 0 .../yaegashi/msgraph.go/beta/ModelBit.go | 77 + .../msgraph.go/beta/ModelBlock.go} | 0 .../yaegashi/msgraph.go/beta/ModelBooking.go | 221 + .../msgraph.go/beta/ModelBoolean.go} | 0 .../msgraph.go/beta/ModelBulk.go} | 0 .../msgraph.go/beta/ModelBundle.go} | 0 .../yaegashi/msgraph.go/beta/ModelBusiness.go | 43 + .../msgraph.go/beta/ModelCalculated.go} | 0 .../yaegashi/msgraph.go/beta/ModelCalendar.go | 105 + .../yaegashi/msgraph.go/beta/ModelCall.go | 97 + .../msgraph.go/beta/ModelCancel.go} | 0 .../msgraph.go/beta/ModelCart.go} | 0 .../msgraph.go/beta/ModelCertificate.go | 49 + .../msgraph.go/beta/ModelCertification.go} | 0 .../msgraph.go/beta/ModelChange.go} | 0 .../msgraph.go/beta/ModelChannel.go} | 0 .../yaegashi/msgraph.go/beta/ModelChat.go | 169 + .../msgraph.go/beta/ModelChoice.go} | 0 .../msgraph.go/beta/ModelCircular.go} | 0 .../msgraph.go/beta/ModelClassifcation.go} | 0 .../msgraph.go/beta/ModelClassification.go | 47 + .../yaegashi/msgraph.go/beta/ModelCloud.go | 75 + .../yaegashi/msgraph.go/beta/ModelColumn.go | 57 + .../msgraph.go/beta/ModelCommand.go} | 0 .../msgraph.go/beta/ModelComment.go} | 0 .../yaegashi/msgraph.go/beta/ModelComms.go | 43 + .../yaegashi/msgraph.go/beta/ModelCompany.go | 149 + .../msgraph.go/beta/ModelComplex.go} | 0 .../msgraph.go/beta/ModelCompliance.go | 51 + .../msgraph.go/beta/ModelConditional.go | 153 + .../msgraph.go/beta/ModelConfiguration.go | 63 + .../msgraph.go/beta/ModelConnection.go} | 0 .../yaegashi/msgraph.go/beta/ModelContact.go | 105 + .../yaegashi/msgraph.go/beta/ModelContent.go | 99 + .../msgraph.go/beta/ModelContract.go} | 0 .../msgraph.go/beta/ModelControl.go} | 0 .../msgraph.go/beta/ModelConversation.go | 63 + .../msgraph.go/beta/ModelConvert.go} | 0 .../msgraph.go/beta/ModelCopy.go} | 0 .../yaegashi/msgraph.go/beta/ModelCountry.go | 29 + .../msgraph.go/beta/ModelCreate.go} | 0 .../msgraph.go/beta/ModelCredential.go | 75 + .../yaegashi/msgraph.go/beta/ModelCurrency.go | 31 + .../msgraph.go/beta/ModelCurrent.go} | 0 .../yaegashi/msgraph.go/beta/ModelCustom.go | 35 + .../yaegashi/msgraph.go/beta/ModelCustomer.go | 113 + .../msgraph.go/beta/ModelDaily.go} | 0 .../yaegashi/msgraph.go/beta/ModelData.go | 93 + .../yaegashi/msgraph.go/beta/ModelDate.go | 31 + .../msgraph.go/beta/ModelDaylight.go} | 0 .../yaegashi/msgraph.go/beta/ModelDefault.go | 93 + .../msgraph.go/beta/ModelDefender.go} | 0 .../msgraph.go/beta/ModelDelegated.go} | 0 .../yaegashi/msgraph.go/beta/ModelDelete.go | 21 + .../msgraph.go/beta/ModelDeleted.go} | 0 .../yaegashi/msgraph.go/beta/ModelDelivery.go | 97 + .../yaegashi/msgraph.go/beta/ModelDep.go | 205 + .../msgraph.go/beta/ModelDetails.go} | 0 .../yaegashi/msgraph.go/beta/ModelDetected.go | 45 + .../yaegashi/msgraph.go/beta/ModelDevice.go | 2323 +++ .../msgraph.go/beta/ModelDiagnostic.go} | 0 .../msgraph.go/beta/ModelDimension.go | 31 + .../msgraph.go/beta/ModelDirectory.go | 133 + .../msgraph.go/beta/ModelDiscovered.go} | 0 .../yaegashi/msgraph.go/beta/ModelDlp.go | 79 + .../yaegashi/msgraph.go/beta/ModelDocument.go | 29 + .../yaegashi/msgraph.go/beta/ModelDomain.go | 167 + .../msgraph.go/beta/ModelDowngrade.go} | 0 .../yaegashi/msgraph.go/beta/ModelDrive.go | 141 + .../msgraph.go/beta/ModelE.go} | 0 .../msgraph.go/beta/ModelEas.go} | 0 .../yaegashi/msgraph.go/beta/ModelEdge.go | 57 + .../msgraph.go/beta/ModelEdit.go} | 0 .../msgraph.go/beta/ModelEdition.go} | 0 .../msgraph.go/beta/ModelEducation.go | 849 + .../msgraph.go/beta/ModelEducational.go | 43 + .../yaegashi/msgraph.go/beta/ModelEmail.go | 199 + .../yaegashi/msgraph.go/beta/ModelEmbedded.go | 67 + .../yaegashi/msgraph.go/beta/ModelEmployee.go | 47 + .../yaegashi/msgraph.go/beta/ModelEncrypt.go | 33 + .../msgraph.go/beta/ModelEncryption.go} | 0 .../msgraph.go/beta/ModelEndpoint.go} | 0 .../msgraph.go/beta/ModelEnrollment.go | 65 + .../msgraph.go/beta/ModelEnterprise.go} | 0 .../msgraph.go/beta/ModelEntitlement.go} | 0 .../yaegashi/msgraph.go/beta/ModelEntity.go | 17 + .../msgraph.go/beta/ModelError.go} | 0 .../yaegashi/msgraph.go/beta/ModelEvaluate.go | 75 + .../yaegashi/msgraph.go/beta/ModelEvent.go | 141 + .../yaegashi/msgraph.go/beta/ModelExact.go | 115 + .../msgraph.go/beta/ModelExcluded.go} | 0 .../msgraph.go/beta/ModelExclusion.go} | 0 .../msgraph.go/beta/ModelExpression.go | 27 + .../yaegashi/msgraph.go/beta/ModelExtended.go | 31 + .../msgraph.go/beta/ModelExtension.go | 35 + .../yaegashi/msgraph.go/beta/ModelExternal.go | 75 + .../yaegashi/msgraph.go/beta/ModelFeature.go | 39 + .../msgraph.go/beta/ModelField.go} | 0 .../yaegashi/msgraph.go/beta/ModelFile.go | 143 + .../yaegashi/msgraph.go/beta/ModelFilter.go | 57 + .../msgraph.go/beta/ModelFinancials.go} | 0 .../msgraph.go/beta/ModelFlex.go} | 0 .../msgraph.go/beta/ModelFocus.go} | 0 .../yaegashi/msgraph.go/beta/ModelFolder.go | 25 + .../msgraph.go/beta/ModelFollowup.go} | 0 .../msgraph.go/beta/ModelFree.go} | 0 .../yaegashi/msgraph.go/beta/ModelGeneral.go | 31 + .../msgraph.go/beta/ModelGeneric.go} | 0 .../msgraph.go/beta/ModelGeo.go} | 0 .../msgraph.go/beta/ModelGeolocation.go} | 0 .../msgraph.go/beta/ModelGovernance.go | 261 + .../yaegashi/msgraph.go/beta/ModelGroup.go | 555 + .../yaegashi/msgraph.go/beta/ModelHardware.go | 55 + .../msgraph.go/beta/ModelHas.go} | 0 .../msgraph.go/beta/ModelHashes.go} | 0 .../yaegashi/msgraph.go/beta/ModelHost.go | 71 + .../msgraph.go/beta/ModelHourly.go} | 0 .../msgraph.go/beta/ModelHybrid.go} | 0 .../yaegashi/msgraph.go/beta/ModelIOS.go | 1227 ++ .../yaegashi/msgraph.go/beta/ModelIP.go | 83 + .../yaegashi/msgraph.go/beta/ModelIPv4.go | 21 + .../yaegashi/msgraph.go/beta/ModelIPv6.go | 21 + .../yaegashi/msgraph.go/beta/ModelIdentity.go | 103 + .../yaegashi/msgraph.go/beta/ModelImage.go | 27 + .../msgraph.go/beta/ModelImplicit.go} | 0 .../yaegashi/msgraph.go/beta/ModelImported.go | 119 + .../msgraph.go/beta/ModelImpossible.go} | 0 .../msgraph.go/beta/ModelIncoming.go} | 0 .../msgraph.go/beta/ModelIncomplete.go} | 0 .../msgraph.go/beta/ModelInference.go | 31 + .../msgraph.go/beta/ModelInformation.go | 65 + .../msgraph.go/beta/ModelInformational.go} | 0 .../msgraph.go/beta/ModelInitiator.go} | 0 .../msgraph.go/beta/ModelInner.go} | 0 .../yaegashi/msgraph.go/beta/ModelInsight.go | 31 + .../msgraph.go/beta/ModelInstance.go} | 0 .../msgraph.go/beta/ModelInstitution.go} | 0 .../msgraph.go/beta/ModelInternet.go} | 0 .../yaegashi/msgraph.go/beta/ModelIntune.go | 119 + .../msgraph.go/beta/ModelInvitation.go | 41 + .../msgraph.go/beta/ModelInvite.go} | 0 .../msgraph.go/beta/ModelInvited.go} | 0 .../yaegashi/msgraph.go/beta/ModelIosik.go | 49 + .../yaegashi/msgraph.go/beta/ModelItem.go | 267 + .../msgraph.go/beta/ModelJSON.go} | 0 .../msgraph.go/beta/ModelJob.go} | 0 .../yaegashi/msgraph.go/beta/ModelJournal.go | 55 + .../msgraph.go/beta/ModelJustify.go} | 0 .../msgraph.go/beta/ModelKerberos.go} | 0 .../yaegashi/msgraph.go/beta/ModelKey.go | 87 + .../yaegashi/msgraph.go/beta/ModelLabel.go | 41 + .../msgraph.go/beta/ModelLabeling.go} | 0 .../msgraph.go/beta/ModelLanguage.go} | 0 .../msgraph.go/beta/ModelLeaked.go} | 0 .../msgraph.go/beta/ModelLearned.go} | 0 .../yaegashi/msgraph.go/beta/ModelLicense.go | 65 + .../yaegashi/msgraph.go/beta/ModelList.go | 69 + .../msgraph.go/beta/ModelLocale.go} | 0 .../msgraph.go/beta/ModelLocalized.go} | 0 .../msgraph.go/beta/ModelLocate.go} | 0 .../msgraph.go/beta/ModelLocated.go} | 0 .../yaegashi/msgraph.go/beta/ModelLocation.go | 51 + .../msgraph.go/beta/ModelLogged.go} | 0 .../msgraph.go/beta/ModelLogon.go} | 0 .../yaegashi/msgraph.go/beta/ModelLookup.go | 27 + .../yaegashi/msgraph.go/beta/ModelMDM.go | 15 + .../msgraph.go/beta/ModelMFA.go} | 0 .../yaegashi/msgraph.go/beta/ModelMac.go | 633 + .../yaegashi/msgraph.go/beta/ModelMail.go | 99 + .../yaegashi/msgraph.go/beta/ModelMailbox.go | 113 + .../yaegashi/msgraph.go/beta/ModelMalware.go | 29 + .../yaegashi/msgraph.go/beta/ModelManaged.go | 852 + .../msgraph.go/beta/ModelManagement.go | 79 + .../msgraph.go/beta/ModelMark.go} | 0 .../msgraph.go/beta/ModelMatch.go} | 0 .../yaegashi/msgraph.go/beta/ModelMatching.go | 51 + .../yaegashi/msgraph.go/beta/ModelMedia.go | 137 + .../yaegashi/msgraph.go/beta/ModelMeeting.go | 95 + .../msgraph.go/beta/ModelMembership.go} | 0 .../yaegashi/msgraph.go/beta/ModelMention.go | 35 + .../msgraph.go/beta/ModelMentions.go} | 0 .../yaegashi/msgraph.go/beta/ModelMessage.go | 195 + .../yaegashi/msgraph.go/beta/ModelMetadata.go | 23 + .../msgraph.go/beta/ModelMicrosoft.go | 39 + .../msgraph.go/beta/ModelMime.go} | 0 .../yaegashi/msgraph.go/beta/ModelMobile.go | 431 + .../msgraph.go/beta/ModelModified.go} | 0 .../msgraph.go/beta/ModelMove.go} | 0 .../msgraph.go/beta/ModelMulti.go} | 0 .../yaegashi/msgraph.go/beta/ModelMute.go | 17 + .../yaegashi/msgraph.go/beta/ModelNDES.go | 17 + .../msgraph.go/beta/ModelNamed.go} | 0 .../yaegashi/msgraph.go/beta/ModelNetwork.go | 109 + .../yaegashi/msgraph.go/beta/ModelNotebook.go | 35 + .../msgraph.go/beta/ModelNotification.go | 43 + .../msgraph.go/beta/ModelNotify.go} | 0 .../yaegashi/msgraph.go/beta/ModelNumber.go | 27 + .../msgraph.go/beta/ModelOAuth2.go} | 0 .../yaegashi/msgraph.go/beta/ModelOMA.go | 79 + .../yaegashi/msgraph.go/beta/ModelObject.go | 51 + .../yaegashi/msgraph.go/beta/ModelOffice.go | 137 + .../msgraph.go/beta/ModelOffice365.go | 283 + .../yaegashi/msgraph.go/beta/ModelOn.go | 115 + .../yaegashi/msgraph.go/beta/ModelOne.go | 95 + .../yaegashi/msgraph.go/beta/ModelOnenote.go | 165 + .../yaegashi/msgraph.go/beta/ModelOnline.go | 61 + .../yaegashi/msgraph.go/beta/ModelOpen.go | 39 + .../msgraph.go/beta/ModelOpening.go} | 0 .../msgraph.go/beta/ModelOperating.go} | 0 .../msgraph.go/beta/ModelOperation.go | 27 + .../yaegashi/msgraph.go/beta/ModelOptional.go | 29 + .../msgraph.go/beta/ModelOrg.go} | 0 .../msgraph.go/beta/ModelOrganization.go | 63 + .../msgraph.go/beta/ModelOrganizational.go} | 0 .../msgraph.go/beta/ModelOrganizer.go} | 0 .../msgraph.go/beta/ModelOs.go} | 0 .../msgraph.go/beta/ModelOut.go} | 0 .../msgraph.go/beta/ModelOutgoing.go} | 0 .../yaegashi/msgraph.go/beta/ModelOutlook.go | 137 + .../msgraph.go/beta/ModelPackage.go} | 0 .../msgraph.go/beta/ModelPage.go} | 0 .../msgraph.go/beta/ModelParental.go} | 0 .../msgraph.go/beta/ModelParse.go} | 0 .../msgraph.go/beta/ModelParticipant.go | 37 + .../yaegashi/msgraph.go/beta/ModelPassword.go | 47 + .../msgraph.go/beta/ModelPatterned.go} | 0 .../yaegashi/msgraph.go/beta/ModelPayload.go | 25 + .../yaegashi/msgraph.go/beta/ModelPayment.go | 37 + .../yaegashi/msgraph.go/beta/ModelPending.go | 21 + .../msgraph.go/beta/ModelPermission.go | 53 + .../msgraph.go/beta/ModelPersistent.go} | 0 .../yaegashi/msgraph.go/beta/ModelPerson.go | 135 + .../msgraph.go/beta/ModelPhone.go} | 0 .../msgraph.go/beta/ModelPhoto.go} | 0 .../yaegashi/msgraph.go/beta/ModelPhysical.go | 41 + .../msgraph.go/beta/ModelPicture.go} | 0 .../msgraph.go/beta/ModelPlace.go} | 0 .../yaegashi/msgraph.go/beta/ModelPlanner.go | 359 + .../msgraph.go/beta/ModelPlay.go} | 0 .../yaegashi/msgraph.go/beta/ModelPolicy.go | 83 + .../yaegashi/msgraph.go/beta/ModelPosition.go | 23 + .../msgraph.go/beta/ModelPost.go} | 0 .../msgraph.go/beta/ModelPostal.go} | 0 .../msgraph.go/beta/ModelPre.go} | 0 .../msgraph.go/beta/ModelPresence.go} | 0 .../msgraph.go/beta/ModelPrivacy.go} | 0 .../msgraph.go/beta/ModelPrivileged.go | 199 + .../msgraph.go/beta/ModelProcess.go} | 0 .../yaegashi/msgraph.go/beta/ModelProfile.go | 45 + .../yaegashi/msgraph.go/beta/ModelProgram.go | 59 + .../msgraph.go/beta/ModelProject.go} | 0 .../msgraph.go/beta/ModelPrompt.go} | 0 .../msgraph.go/beta/ModelProperties.go} | 0 .../yaegashi/msgraph.go/beta/ModelProperty.go | 29 + .../yaegashi/msgraph.go/beta/ModelProtect.go | 43 + .../msgraph.go/beta/ModelProvider.go} | 0 .../msgraph.go/beta/ModelProvisioned.go | 29 + .../msgraph.go/beta/ModelProvisioning.go | 69 + .../msgraph.go/beta/ModelProxied.go} | 0 .../yaegashi/msgraph.go/beta/ModelPublic.go | 61 + .../msgraph.go/beta/ModelPublication.go} | 0 .../msgraph.go/beta/ModelPublished.go} | 0 .../yaegashi/msgraph.go/beta/ModelPurchase.go | 121 + .../msgraph.go/beta/ModelQuota.go} | 0 .../msgraph.go/beta/ModelRanked.go} | 0 .../msgraph.go/beta/ModelRbac.go} | 0 .../yaegashi/msgraph.go/beta/ModelRecent.go | 29 + .../msgraph.go/beta/ModelRecipient.go} | 0 .../msgraph.go/beta/ModelRecommend.go} | 0 .../msgraph.go/beta/ModelRecord.go} | 0 .../msgraph.go/beta/ModelRecording.go} | 0 .../msgraph.go/beta/ModelRecurrence.go | 39 + .../msgraph.go/beta/ModelReference.go} | 0 .../msgraph.go/beta/ModelReferenced.go} | 0 .../msgraph.go/beta/ModelRegistry.go} | 0 .../yaegashi/msgraph.go/beta/ModelRelated.go | 33 + .../msgraph.go/beta/ModelRelying.go} | 0 .../msgraph.go/beta/ModelReminder.go} | 0 .../yaegashi/msgraph.go/beta/ModelRemote.go | 91 + .../yaegashi/msgraph.go/beta/ModelRemove.go | 33 + .../msgraph.go/beta/ModelRename.go} | 0 .../yaegashi/msgraph.go/beta/ModelReport.go | 23 + .../msgraph.go/beta/ModelReputation.go} | 0 .../msgraph.go/beta/ModelRequest.go} | 0 .../msgraph.go/beta/ModelRequired.go} | 0 .../msgraph.go/beta/ModelReset.go} | 0 .../yaegashi/msgraph.go/beta/ModelResource.go | 137 + .../msgraph.go/beta/ModelResponse.go} | 0 .../msgraph.go/beta/ModelResponsible.go | 31 + .../msgraph.go/beta/ModelRestore.go} | 0 .../msgraph.go/beta/ModelRestricted.go | 35 + .../msgraph.go/beta/ModelResult.go} | 0 .../yaegashi/msgraph.go/beta/ModelRevoke.go | 13 + .../msgraph.go/beta/ModelRgb.go} | 0 .../yaegashi/msgraph.go/beta/ModelRisk.go | 59 + .../yaegashi/msgraph.go/beta/ModelRisky.go | 43 + .../yaegashi/msgraph.go/beta/ModelRole.go | 127 + .../yaegashi/msgraph.go/beta/ModelRoom.go | 45 + .../msgraph.go/beta/ModelRoot.go} | 0 .../msgraph.go/beta/ModelRotate.go} | 0 .../yaegashi/msgraph.go/beta/ModelRubric.go | 61 + .../msgraph.go/beta/ModelRun.go} | 0 .../yaegashi/msgraph.go/beta/ModelSales.go | 531 + .../yaegashi/msgraph.go/beta/ModelSchedule.go | 115 + .../msgraph.go/beta/ModelScheduling.go} | 0 .../yaegashi/msgraph.go/beta/ModelSchema.go | 29 + .../msgraph.go/beta/ModelScoped.go} | 0 .../yaegashi/msgraph.go/beta/ModelSearch.go | 91 + .../yaegashi/msgraph.go/beta/ModelSection.go | 31 + .../yaegashi/msgraph.go/beta/ModelSecure.go | 91 + .../yaegashi/msgraph.go/beta/ModelSecurity.go | 193 + .../msgraph.go/beta/ModelSensitive.go | 47 + .../msgraph.go/beta/ModelSensitivity.go | 45 + .../yaegashi/msgraph.go/beta/ModelService.go | 107 + .../yaegashi/msgraph.go/beta/ModelSetting.go | 61 + .../msgraph.go/beta/ModelSettings.go} | 0 .../yaegashi/msgraph.go/beta/ModelShare.go | 165 + .../yaegashi/msgraph.go/beta/ModelShared.go | 129 + .../msgraph.go/beta/ModelSharepoint.go} | 0 .../yaegashi/msgraph.go/beta/ModelSharing.go | 55 + .../yaegashi/msgraph.go/beta/ModelShift.go | 63 + .../msgraph.go/beta/ModelShipment.go} | 0 .../msgraph.go/beta/ModelSide.go} | 0 .../yaegashi/msgraph.go/beta/ModelSign.go | 129 + .../yaegashi/msgraph.go/beta/ModelSingle.go | 17 + .../yaegashi/msgraph.go/beta/ModelSite.go | 107 + .../msgraph.go/beta/ModelSize.go} | 0 .../msgraph.go/beta/ModelSkill.go} | 0 .../yaegashi/msgraph.go/beta/ModelSkype.go | 365 + .../msgraph.go/beta/ModelSoftware.go} | 0 .../msgraph.go/beta/ModelSpecial.go} | 0 .../yaegashi/msgraph.go/beta/ModelStandard.go | 19 + .../yaegashi/msgraph.go/beta/ModelStatus.go | 27 + .../msgraph.go/beta/ModelStorage.go} | 0 .../yaegashi/msgraph.go/beta/ModelString.go | 41 + .../msgraph.go/beta/ModelSubscribe.go} | 0 .../msgraph.go/beta/ModelSubscribed.go} | 0 .../msgraph.go/beta/ModelSubscription.go} | 0 .../msgraph.go/beta/ModelSuspicious.go} | 0 .../msgraph.go/beta/ModelSwap.go} | 0 .../msgraph.go/beta/ModelSymantec.go} | 0 .../msgraph.go/beta/ModelSynchronization.go | 225 + .../msgraph.go/beta/ModelSystem.go} | 0 .../yaegashi/msgraph.go/beta/ModelTarget.go | 29 + .../yaegashi/msgraph.go/beta/ModelTargeted.go | 49 + .../yaegashi/msgraph.go/beta/ModelTax.go | 33 + .../yaegashi/msgraph.go/beta/ModelTeam.go | 129 + .../yaegashi/msgraph.go/beta/ModelTeams.go | 267 + .../msgraph.go/beta/ModelTeamwork.go} | 0 .../msgraph.go/beta/ModelTelecom.go} | 0 .../msgraph.go/beta/ModelTenant.go} | 0 .../yaegashi/msgraph.go/beta/ModelTerms.go | 69 + .../yaegashi/msgraph.go/beta/ModelText.go | 29 + .../yaegashi/msgraph.go/beta/ModelThreat.go | 51 + .../msgraph.go/beta/ModelThumbnail.go | 33 + .../yaegashi/msgraph.go/beta/ModelTi.go | 127 + .../yaegashi/msgraph.go/beta/ModelTime.go | 87 + .../msgraph.go/beta/ModelToken.go} | 0 .../msgraph.go/beta/ModelTone.go} | 0 .../msgraph.go/beta/ModelTrending.go} | 0 .../yaegashi/msgraph.go/beta/ModelTrust.go | 65 + .../msgraph.go/beta/ModelTyped.go} | 0 .../msgraph.go/beta/ModelURL.go} | 0 .../msgraph.go/beta/ModelUnary.go} | 0 .../msgraph.go/beta/ModelUnfamiliar.go} | 0 .../yaegashi/msgraph.go/beta/ModelUnified.go | 51 + .../msgraph.go/beta/ModelUnit.go} | 0 .../msgraph.go/beta/ModelUnmute.go} | 0 .../msgraph.go/beta/ModelUnsupported.go | 23 + .../yaegashi/msgraph.go/beta/ModelUpdate.go | 37 + .../msgraph.go/beta/ModelUpload.go} | 0 .../msgraph.go/beta/ModelUsage.go} | 0 .../msgraph.go/beta/ModelUsed.go} | 0 .../yaegashi/msgraph.go/beta/ModelUser.go | 698 + .../yaegashi/msgraph.go/beta/ModelVPN.go | 115 + .../yaegashi/msgraph.go/beta/ModelVPP.go | 101 + .../msgraph.go/beta/ModelVariable.go} | 0 .../msgraph.go/beta/ModelVendor.go} | 0 .../msgraph.go/beta/ModelVerified.go} | 0 .../msgraph.go/beta/ModelVersion.go} | 0 .../msgraph.go/beta/ModelVideo.go} | 0 .../yaegashi/msgraph.go/beta/ModelVisual.go | 31 + .../msgraph.go/beta/ModelVulnerability.go} | 0 .../yaegashi/msgraph.go/beta/ModelWeb.go | 55 + .../msgraph.go/beta/ModelWebsite.go} | 0 .../yaegashi/msgraph.go/beta/ModelWin32.go | 223 + .../yaegashi/msgraph.go/beta/ModelWindows.go | 1801 ++ .../msgraph.go/beta/ModelWindows10.go | 1347 ++ .../msgraph.go/beta/ModelWindows81.go | 191 + .../msgraph.go/beta/ModelWork.go} | 0 .../yaegashi/msgraph.go/beta/ModelWorkbook.go | 747 + .../msgraph.go/beta/ModelWorkforce.go | 31 + .../yaegashi/msgraph.go/beta/ModelWorking.go | 17 + .../yaegashi/msgraph.go/beta/ModelYammer.go | 191 + .../msgraph.go/beta/ModelYomi.go} | 0 .../yaegashi/msgraph.go/beta/RequestAad.go | 38 + .../yaegashi/msgraph.go/beta/RequestAccess.go | 630 + .../msgraph.go/beta/RequestAccount.go} | 0 .../yaegashi/msgraph.go/beta/RequestActive.go | 38 + .../msgraph.go/beta/RequestActivity.go | 71 + .../msgraph.go/beta/RequestAdministrative.go | 38 + .../msgraph.go/beta/RequestAdvanced.go | 71 + .../yaegashi/msgraph.go/beta/RequestAged.go | 71 + .../msgraph.go/beta/RequestAgreement.go | 104 + .../yaegashi/msgraph.go/beta/RequestAlert.go | 131 + .../msgraph.go/beta/RequestAllowed.go} | 0 .../msgraph.go/beta/RequestAndroid.go | 1646 ++ .../msgraph.go/beta/RequestAnonymous.go} | 0 .../yaegashi/msgraph.go/beta/RequestApp.go | 230 + .../yaegashi/msgraph.go/beta/RequestApple.go | 130 + .../msgraph.go/beta/RequestApplication.go | 237 + .../msgraph.go/beta/RequestApproval.go | 38 + .../msgraph.go/beta/RequestAttachment.go | 89 + .../msgraph.go/beta/RequestAttribute.go} | 0 .../msgraph.go/beta/RequestAudio.go} | 0 .../yaegashi/msgraph.go/beta/RequestAudit.go | 71 + .../yaegashi/msgraph.go/beta/RequestBase.go | 38 + .../msgraph.go/beta/RequestBooking.go | 281 + .../msgraph.go/beta/RequestBusiness.go | 97 + .../msgraph.go/beta/RequestCalendar.go | 257 + .../yaegashi/msgraph.go/beta/RequestCall.go | 410 + .../msgraph.go/beta/RequestCart.go} | 0 .../msgraph.go/beta/RequestCertificate.go} | 0 .../msgraph.go/beta/RequestChannel.go | 38 + .../yaegashi/msgraph.go/beta/RequestChat.go | 104 + .../yaegashi/msgraph.go/beta/RequestCloud.go | 164 + .../yaegashi/msgraph.go/beta/RequestColumn.go | 71 + .../msgraph.go/beta/RequestCommand.go | 38 + .../yaegashi/msgraph.go/beta/RequestComms.go | 71 + .../msgraph.go/beta/RequestCompany.go | 71 + .../msgraph.go/beta/RequestCompliance.go} | 0 .../msgraph.go/beta/RequestConditional.go | 71 + .../msgraph.go/beta/RequestConnection.go} | 0 .../msgraph.go/beta/RequestContact.go | 71 + .../msgraph.go/beta/RequestContent.go | 38 + .../msgraph.go/beta/RequestContract.go} | 0 .../msgraph.go/beta/RequestConversation.go | 130 + .../msgraph.go/beta/RequestCountry.go} | 0 .../msgraph.go/beta/RequestCredential.go} | 0 .../msgraph.go/beta/RequestCurrency.go} | 0 .../msgraph.go/beta/RequestCustomer.go | 104 + .../yaegashi/msgraph.go/beta/RequestData.go | 191 + .../msgraph.go/beta/RequestDefault.go | 38 + .../yaegashi/msgraph.go/beta/RequestDep.go | 208 + .../msgraph.go/beta/RequestDetected.go | 38 + .../yaegashi/msgraph.go/beta/RequestDevice.go | 3519 ++++ .../msgraph.go/beta/RequestDimension.go | 71 + .../msgraph.go/beta/RequestDirectory.go | 1653 ++ .../msgraph.go/beta/RequestDocument.go | 104 + .../yaegashi/msgraph.go/beta/RequestDomain.go | 157 + .../yaegashi/msgraph.go/beta/RequestDrive.go | 489 + .../msgraph.go/beta/RequestE.go} | 0 .../msgraph.go/beta/RequestEducation.go | 746 + .../msgraph.go/beta/RequestEducational.go} | 0 .../msgraph.go/beta/RequestEmbedded.go | 197 + .../msgraph.go/beta/RequestEmployee.go | 38 + .../msgraph.go/beta/RequestEndpoint.go} | 0 .../msgraph.go/beta/RequestEnrollment.go | 123 + .../msgraph.go/beta/RequestEnterprise.go} | 0 .../msgraph.go/beta/RequestEntitlement.go | 38 + .../msgraph.go/beta/RequestEntity.go} | 0 .../yaegashi/msgraph.go/beta/RequestEvent.go | 364 + .../yaegashi/msgraph.go/beta/RequestExact.go | 309 + .../msgraph.go/beta/RequestExtension.go | 71 + .../msgraph.go/beta/RequestExternal.go | 104 + .../msgraph.go/beta/RequestFeature.go | 38 + .../msgraph.go/beta/RequestField.go} | 0 .../yaegashi/msgraph.go/beta/RequestFile.go | 71 + .../msgraph.go/beta/RequestFilter.go} | 0 .../msgraph.go/beta/RequestFinancials.go | 38 + .../msgraph.go/beta/RequestGeneral.go | 38 + .../msgraph.go/beta/RequestGovernance.go | 315 + .../yaegashi/msgraph.go/beta/RequestGroup.go | 944 + .../msgraph.go/beta/RequestHost.go} | 0 .../yaegashi/msgraph.go/beta/RequestIOS.go | 849 + .../msgraph.go/beta/RequestIP.go} | 0 .../msgraph.go/beta/RequestIdentity.go | 170 + .../msgraph.go/beta/RequestImported.go | 496 + .../msgraph.go/beta/RequestImpossible.go} | 0 .../msgraph.go/beta/RequestInference.go | 71 + .../msgraph.go/beta/RequestInformation.go | 423 + .../yaegashi/msgraph.go/beta/RequestIntune.go | 97 + .../msgraph.go/beta/RequestInvitation.go | 38 + .../yaegashi/msgraph.go/beta/RequestItem.go | 302 + .../msgraph.go/beta/RequestJob.go} | 0 .../msgraph.go/beta/RequestJournal.go | 97 + .../msgraph.go/beta/RequestLanguage.go} | 0 .../msgraph.go/beta/RequestLeaked.go} | 0 .../msgraph.go/beta/RequestLicense.go} | 0 .../yaegashi/msgraph.go/beta/RequestList.go | 130 + .../msgraph.go/beta/RequestLocalized.go} | 0 .../msgraph.go/beta/RequestLookup.go} | 0 .../yaegashi/msgraph.go/beta/RequestMDM.go | 131 + .../yaegashi/msgraph.go/beta/RequestMac.go | 401 + .../yaegashi/msgraph.go/beta/RequestMail.go | 92 + .../msgraph.go/beta/RequestMalware.go} | 0 .../msgraph.go/beta/RequestManaged.go | 1613 ++ .../msgraph.go/beta/RequestManagement.go | 71 + .../msgraph.go/beta/RequestMention.go} | 0 .../msgraph.go/beta/RequestMessage.go | 336 + .../msgraph.go/beta/RequestMicrosoft.go | 38 + .../yaegashi/msgraph.go/beta/RequestMobile.go | 664 + .../msgraph.go/beta/RequestMulti.go} | 0 .../yaegashi/msgraph.go/beta/RequestNDES.go | 38 + .../msgraph.go/beta/RequestNamed.go} | 0 .../msgraph.go/beta/RequestNotebook.go | 92 + .../msgraph.go/beta/RequestNotification.go | 97 + .../msgraph.go/beta/RequestOAuth2.go} | 0 .../yaegashi/msgraph.go/beta/RequestOffice.go | 256 + .../yaegashi/msgraph.go/beta/RequestOn.go | 137 + .../msgraph.go/beta/RequestOnenote.go | 277 + .../msgraph.go/beta/RequestOnline.go} | 0 .../yaegashi/msgraph.go/beta/RequestOpen.go | 71 + .../yaegashi/msgraph.go/beta/RequestOrg.go | 38 + .../msgraph.go/beta/RequestOrganization.go | 65 + .../msgraph.go/beta/RequestOrganizational.go} | 0 .../msgraph.go/beta/RequestOutlook.go | 296 + .../msgraph.go/beta/RequestParticipant.go | 119 + .../msgraph.go/beta/RequestPayload.go} | 0 .../msgraph.go/beta/RequestPayment.go | 71 + .../msgraph.go/beta/RequestPermission.go | 131 + .../yaegashi/msgraph.go/beta/RequestPerson.go | 170 + .../msgraph.go/beta/RequestPicture.go} | 0 .../msgraph.go/beta/RequestPlace.go} | 0 .../msgraph.go/beta/RequestPlanner.go | 401 + .../yaegashi/msgraph.go/beta/RequestPolicy.go | 256 + .../yaegashi/msgraph.go/beta/RequestPost.go | 90 + .../msgraph.go/beta/RequestPresence.go} | 0 .../msgraph.go/beta/RequestPrivileged.go | 437 + .../msgraph.go/beta/RequestProfile.go | 71 + .../msgraph.go/beta/RequestProgram.go | 104 + .../msgraph.go/beta/RequestProject.go} | 0 .../msgraph.go/beta/RequestProvider.go} | 0 .../msgraph.go/beta/RequestProvisioning.go} | 0 .../msgraph.go/beta/RequestPublished.go | 38 + .../msgraph.go/beta/RequestPurchase.go | 97 + .../yaegashi/msgraph.go/beta/RequestRbac.go | 38 + .../yaegashi/msgraph.go/beta/RequestRemote.go | 123 + .../yaegashi/msgraph.go/beta/RequestReport.go | 38 + .../msgraph.go/beta/RequestRequest.go | 90 + .../msgraph.go/beta/RequestResource.go | 71 + .../msgraph.go/beta/RequestRestricted.go | 71 + .../msgraph.go/beta/RequestRisk.go} | 0 .../yaegashi/msgraph.go/beta/RequestRisky.go | 71 + .../yaegashi/msgraph.go/beta/RequestRole.go | 357 + .../yaegashi/msgraph.go/beta/RequestRoom.go | 71 + .../yaegashi/msgraph.go/beta/RequestSales.go | 451 + .../msgraph.go/beta/RequestSchedule.go | 149 + .../msgraph.go/beta/RequestScheduling.go} | 0 .../yaegashi/msgraph.go/beta/RequestSchema.go | 71 + .../msgraph.go/beta/RequestScoped.go} | 0 .../yaegashi/msgraph.go/beta/RequestSearch.go | 131 + .../msgraph.go/beta/RequestSection.go | 38 + .../yaegashi/msgraph.go/beta/RequestSecure.go | 71 + .../msgraph.go/beta/RequestSecurity.go | 295 + .../msgraph.go/beta/RequestSensitive.go} | 0 .../msgraph.go/beta/RequestSensitivity.go | 114 + .../msgraph.go/beta/RequestService.go | 144 + .../msgraph.go/beta/RequestSetting.go} | 0 .../yaegashi/msgraph.go/beta/RequestShared.go | 71 + .../msgraph.go/beta/RequestShift.go} | 0 .../msgraph.go/beta/RequestShipment.go} | 0 .../msgraph.go/beta/RequestSide.go} | 0 .../msgraph.go/beta/RequestSign.go} | 0 .../msgraph.go/beta/RequestSingle.go} | 0 .../yaegashi/msgraph.go/beta/RequestSite.go | 308 + .../msgraph.go/beta/RequestSkill.go} | 0 .../msgraph.go/beta/RequestSoftware.go} | 0 .../msgraph.go/beta/RequestSubscribed.go} | 0 .../msgraph.go/beta/RequestSubscription.go} | 0 .../msgraph.go/beta/RequestSuspicious.go} | 0 .../msgraph.go/beta/RequestSwap.go} | 0 .../msgraph.go/beta/RequestSymantec.go} | 0 .../msgraph.go/beta/RequestSynchronization.go | 346 + .../msgraph.go/beta/RequestTargeted.go | 275 + .../yaegashi/msgraph.go/beta/RequestTax.go | 71 + .../yaegashi/msgraph.go/beta/RequestTeam.go | 116 + .../yaegashi/msgraph.go/beta/RequestTeams.go | 262 + .../msgraph.go/beta/RequestTeamwork.go | 38 + .../msgraph.go/beta/RequestTelecom.go} | 0 .../yaegashi/msgraph.go/beta/RequestTenant.go | 38 + .../yaegashi/msgraph.go/beta/RequestTerms.go | 137 + .../msgraph.go/beta/RequestText.go} | 0 .../yaegashi/msgraph.go/beta/RequestThreat.go | 71 + .../msgraph.go/beta/RequestThumbnail.go} | 0 .../yaegashi/msgraph.go/beta/RequestTi.go | 389 + .../yaegashi/msgraph.go/beta/RequestTime.go | 104 + .../msgraph.go/beta/RequestTrending.go | 38 + .../yaegashi/msgraph.go/beta/RequestTrust.go | 212 + .../msgraph.go/beta/RequestUnfamiliar.go} | 0 .../msgraph.go/beta/RequestUnified.go | 71 + .../msgraph.go/beta/RequestUnit.go} | 0 .../yaegashi/msgraph.go/beta/RequestUsed.go | 38 + .../yaegashi/msgraph.go/beta/RequestUser.go | 1102 ++ .../yaegashi/msgraph.go/beta/RequestVPP.go | 91 + .../yaegashi/msgraph.go/beta/RequestVendor.go | 38 + .../msgraph.go/beta/RequestWeb.go} | 0 .../msgraph.go/beta/RequestWindows.go | 1558 ++ .../msgraph.go/beta/RequestWindows10.go | 137 + .../msgraph.go/beta/RequestWindows81.go | 71 + .../msgraph.go/beta/RequestWork.go} | 0 .../msgraph.go/beta/RequestWorkbook.go | 2680 +++ .../beta/RequestWorkbookFunctions.go} | 0 .../beta/RequestWorkbookFunctionsAbs.go | 32 + .../beta/RequestWorkbookFunctionsAccr.go | 59 + .../beta/RequestWorkbookFunctionsAcos.go | 32 + .../beta/RequestWorkbookFunctionsAcosh.go | 32 + .../beta/RequestWorkbookFunctionsAcot.go | 32 + .../beta/RequestWorkbookFunctionsAcoth.go | 32 + .../beta/RequestWorkbookFunctionsAmor.go | 59 + .../beta/RequestWorkbookFunctionsAnd.go | 32 + .../beta/RequestWorkbookFunctionsArabic.go | 32 + .../beta/RequestWorkbookFunctionsAreas.go | 32 + .../beta/RequestWorkbookFunctionsAsc.go | 32 + .../beta/RequestWorkbookFunctionsAsin.go | 32 + .../beta/RequestWorkbookFunctionsAsinh.go | 32 + .../beta/RequestWorkbookFunctionsAtan.go | 32 + .../beta/RequestWorkbookFunctionsAtan2.go | 32 + .../beta/RequestWorkbookFunctionsAtanh.go | 32 + .../beta/RequestWorkbookFunctionsAve.go | 32 + .../beta/RequestWorkbookFunctionsAverage.go | 113 + .../beta/RequestWorkbookFunctionsBaht.go | 32 + .../beta/RequestWorkbookFunctionsBase.go | 32 + .../beta/RequestWorkbookFunctionsBessel.go | 113 + .../beta/RequestWorkbookFunctionsBeta_.go | 59 + .../beta/RequestWorkbookFunctionsBin2.go | 86 + .../beta/RequestWorkbookFunctionsBinom_.go | 86 + .../beta/RequestWorkbookFunctionsBitand.go | 32 + .../beta/RequestWorkbookFunctionsBitlshift.go | 32 + .../beta/RequestWorkbookFunctionsBitor.go | 32 + .../beta/RequestWorkbookFunctionsBitrshift.go | 32 + .../beta/RequestWorkbookFunctionsBitxor.go | 32 + .../beta/RequestWorkbookFunctionsCeiling_.go | 59 + .../beta/RequestWorkbookFunctionsChar.go | 32 + .../beta/RequestWorkbookFunctionsChi.go | 113 + .../beta/RequestWorkbookFunctionsChoose.go | 32 + .../beta/RequestWorkbookFunctionsClean.go | 32 + .../beta/RequestWorkbookFunctionsCode.go | 32 + .../beta/RequestWorkbookFunctionsColumns.go | 32 + .../beta/RequestWorkbookFunctionsCombin.go | 32 + .../beta/RequestWorkbookFunctionsCombina.go | 32 + .../beta/RequestWorkbookFunctionsComplex.go | 32 + .../RequestWorkbookFunctionsConcatenate.go | 32 + .../RequestWorkbookFunctionsConfidence_.go | 59 + .../beta/RequestWorkbookFunctionsConvert.go | 32 + .../beta/RequestWorkbookFunctionsCos.go | 32 + .../beta/RequestWorkbookFunctionsCosh.go | 32 + .../beta/RequestWorkbookFunctionsCot.go | 32 + .../beta/RequestWorkbookFunctionsCoth.go | 32 + .../beta/RequestWorkbookFunctionsCount.go | 140 + .../beta/RequestWorkbookFunctionsCoup.go | 167 + .../beta/RequestWorkbookFunctionsCsc.go | 32 + .../beta/RequestWorkbookFunctionsCsch.go | 32 + .../beta/RequestWorkbookFunctionsCum.go | 59 + .../beta/RequestWorkbookFunctionsDate.go | 32 + .../beta/RequestWorkbookFunctionsDatevalue.go | 32 + .../beta/RequestWorkbookFunctionsDaverage.go | 32 + .../beta/RequestWorkbookFunctionsDay.go | 32 + .../beta/RequestWorkbookFunctionsDays.go | 32 + .../beta/RequestWorkbookFunctionsDays360.go | 32 + .../beta/RequestWorkbookFunctionsDb.go | 32 + .../beta/RequestWorkbookFunctionsDbcs.go | 32 + .../beta/RequestWorkbookFunctionsDcount.go | 59 + .../beta/RequestWorkbookFunctionsDdb.go | 32 + .../beta/RequestWorkbookFunctionsDec2.go | 86 + .../beta/RequestWorkbookFunctionsDecimal.go | 32 + .../beta/RequestWorkbookFunctionsDegrees.go | 32 + .../beta/RequestWorkbookFunctionsDelta.go | 32 + .../beta/RequestWorkbookFunctionsDev.go | 32 + .../beta/RequestWorkbookFunctionsDget.go | 32 + .../beta/RequestWorkbookFunctionsDisc.go | 32 + .../beta/RequestWorkbookFunctionsDmax.go | 32 + .../beta/RequestWorkbookFunctionsDmin.go | 32 + .../beta/RequestWorkbookFunctionsDollar.go | 86 + .../beta/RequestWorkbookFunctionsDproduct.go | 32 + .../beta/RequestWorkbookFunctionsDst.go | 59 + .../beta/RequestWorkbookFunctionsDsum.go | 32 + .../beta/RequestWorkbookFunctionsDuration.go | 32 + .../beta/RequestWorkbookFunctionsDvar.go | 59 + .../beta/RequestWorkbookFunctionsEcma_.go | 32 + .../beta/RequestWorkbookFunctionsEdate.go | 32 + .../beta/RequestWorkbookFunctionsEffect.go | 32 + .../beta/RequestWorkbookFunctionsEo.go | 32 + .../beta/RequestWorkbookFunctionsErf.go | 86 + .../beta/RequestWorkbookFunctionsErf_.go | 32 + .../beta/RequestWorkbookFunctionsError_.go | 32 + .../beta/RequestWorkbookFunctionsEven.go | 32 + .../beta/RequestWorkbookFunctionsExact.go | 32 + .../beta/RequestWorkbookFunctionsExp.go | 32 + .../beta/RequestWorkbookFunctionsExpon_.go | 32 + .../beta/RequestWorkbookFunctionsF_.go | 113 + .../beta/RequestWorkbookFunctionsFact.go | 59 + .../beta/RequestWorkbookFunctionsFalse.go | 32 + .../beta/RequestWorkbookFunctionsFind.go | 59 + .../beta/RequestWorkbookFunctionsFisher.go | 59 + .../beta/RequestWorkbookFunctionsFixed.go | 32 + .../beta/RequestWorkbookFunctionsFloor_.go | 59 + .../beta/RequestWorkbookFunctionsFv.go | 32 + .../RequestWorkbookFunctionsFvschedule.go | 32 + .../beta/RequestWorkbookFunctionsGamma.go | 86 + .../beta/RequestWorkbookFunctionsGamma_.go | 59 + .../beta/RequestWorkbookFunctionsGauss.go | 32 + .../beta/RequestWorkbookFunctionsGcd.go | 32 + .../beta/RequestWorkbookFunctionsGe.go | 32 + .../beta/RequestWorkbookFunctionsGeo.go | 32 + .../beta/RequestWorkbookFunctionsHar.go | 32 + .../beta/RequestWorkbookFunctionsHex2.go | 86 + .../beta/RequestWorkbookFunctionsHlookup.go | 32 + .../beta/RequestWorkbookFunctionsHour.go | 32 + .../beta/RequestWorkbookFunctionsHyp.go | 32 + .../beta/RequestWorkbookFunctionsHyperlink.go | 32 + .../beta/RequestWorkbookFunctionsIf.go | 32 + .../beta/RequestWorkbookFunctionsIm.go | 653 + .../beta/RequestWorkbookFunctionsImaginary.go | 32 + .../beta/RequestWorkbookFunctionsInt.go | 59 + .../beta/RequestWorkbookFunctionsIpmt.go | 32 + .../beta/RequestWorkbookFunctionsIrr.go | 32 + .../beta/RequestWorkbookFunctionsIs.go | 275 + .../beta/RequestWorkbookFunctionsIso.go | 32 + .../beta/RequestWorkbookFunctionsIso_.go | 32 + .../beta/RequestWorkbookFunctionsIspmt.go | 32 + .../beta/RequestWorkbookFunctionsIsref.go | 32 + .../beta/RequestWorkbookFunctionsKurt.go | 32 + .../beta/RequestWorkbookFunctionsLarge.go | 32 + .../beta/RequestWorkbookFunctionsLcm.go | 32 + .../beta/RequestWorkbookFunctionsLeft.go | 32 + .../beta/RequestWorkbookFunctionsLeftb.go | 32 + .../beta/RequestWorkbookFunctionsLen.go | 32 + .../beta/RequestWorkbookFunctionsLenb.go | 32 + .../beta/RequestWorkbookFunctionsLn.go | 32 + .../beta/RequestWorkbookFunctionsLog.go | 86 + .../beta/RequestWorkbookFunctionsLog10.go | 32 + .../beta/RequestWorkbookFunctionsLookup.go | 32 + .../beta/RequestWorkbookFunctionsLower.go | 32 + .../beta/RequestWorkbookFunctionsMatch.go | 32 + .../beta/RequestWorkbookFunctionsMax.go | 59 + .../beta/RequestWorkbookFunctionsMduration.go | 32 + .../beta/RequestWorkbookFunctionsMedian.go | 32 + .../beta/RequestWorkbookFunctionsMid.go | 32 + .../beta/RequestWorkbookFunctionsMidb.go | 32 + .../beta/RequestWorkbookFunctionsMin.go | 59 + .../beta/RequestWorkbookFunctionsMinute.go | 32 + .../beta/RequestWorkbookFunctionsMirr.go | 32 + .../beta/RequestWorkbookFunctionsMod.go | 32 + .../beta/RequestWorkbookFunctionsMonth.go | 32 + .../beta/RequestWorkbookFunctionsMround.go | 32 + .../beta/RequestWorkbookFunctionsMulti.go | 32 + .../beta/RequestWorkbookFunctionsN.go | 32 + .../beta/RequestWorkbookFunctionsNa.go | 32 + .../beta/RequestWorkbookFunctionsNeg.go | 32 + .../beta/RequestWorkbookFunctionsNetwork.go | 59 + .../beta/RequestWorkbookFunctionsNominal.go | 32 + .../beta/RequestWorkbookFunctionsNorm_.go | 113 + .../beta/RequestWorkbookFunctionsNot.go | 32 + .../beta/RequestWorkbookFunctionsNow.go | 32 + .../beta/RequestWorkbookFunctionsNper.go | 32 + .../beta/RequestWorkbookFunctionsNpv.go | 32 + .../beta/RequestWorkbookFunctionsNumber.go | 32 + .../beta/RequestWorkbookFunctionsOct2.go | 86 + .../beta/RequestWorkbookFunctionsOdd.go | 140 + .../beta/RequestWorkbookFunctionsOr.go | 32 + .../beta/RequestWorkbookFunctionsPduration.go | 32 + .../beta/RequestWorkbookFunctionsPercent.go | 59 + .../RequestWorkbookFunctionsPercentile_.go | 59 + .../beta/RequestWorkbookFunctionsPermut.go | 32 + .../RequestWorkbookFunctionsPermutationa.go | 32 + .../beta/RequestWorkbookFunctionsPhi.go | 32 + .../beta/RequestWorkbookFunctionsPi.go | 32 + .../beta/RequestWorkbookFunctionsPmt.go | 32 + .../beta/RequestWorkbookFunctionsPoisson_.go | 32 + .../beta/RequestWorkbookFunctionsPower.go | 32 + .../beta/RequestWorkbookFunctionsPpmt.go | 32 + .../beta/RequestWorkbookFunctionsPrice.go | 86 + .../beta/RequestWorkbookFunctionsProduct.go | 32 + .../beta/RequestWorkbookFunctionsProper.go | 32 + .../beta/RequestWorkbookFunctionsPv.go | 32 + .../beta/RequestWorkbookFunctionsQuartile_.go | 59 + .../beta/RequestWorkbookFunctionsQuotient.go | 32 + .../beta/RequestWorkbookFunctionsRadians.go | 32 + .../beta/RequestWorkbookFunctionsRand.go | 59 + .../beta/RequestWorkbookFunctionsRank_.go | 59 + .../beta/RequestWorkbookFunctionsRate.go | 32 + .../beta/RequestWorkbookFunctionsReceived.go | 32 + .../beta/RequestWorkbookFunctionsReplace.go | 59 + .../beta/RequestWorkbookFunctionsRept.go | 32 + .../beta/RequestWorkbookFunctionsRight.go | 32 + .../beta/RequestWorkbookFunctionsRightb.go | 32 + .../beta/RequestWorkbookFunctionsRoman.go | 32 + .../beta/RequestWorkbookFunctionsRound.go | 86 + .../beta/RequestWorkbookFunctionsRows.go | 32 + .../beta/RequestWorkbookFunctionsRri.go | 32 + .../beta/RequestWorkbookFunctionsSec.go | 32 + .../beta/RequestWorkbookFunctionsSech.go | 32 + .../beta/RequestWorkbookFunctionsSecond.go | 32 + .../beta/RequestWorkbookFunctionsSeries.go | 32 + .../beta/RequestWorkbookFunctionsSheet.go | 32 + .../beta/RequestWorkbookFunctionsSheets.go | 32 + .../beta/RequestWorkbookFunctionsSign.go | 32 + .../beta/RequestWorkbookFunctionsSin.go | 32 + .../beta/RequestWorkbookFunctionsSinh.go | 32 + .../beta/RequestWorkbookFunctionsSkew.go | 32 + .../beta/RequestWorkbookFunctionsSkew_p.go | 32 + .../beta/RequestWorkbookFunctionsSln.go | 32 + .../beta/RequestWorkbookFunctionsSmall.go | 32 + .../beta/RequestWorkbookFunctionsSqrt.go | 59 + .../beta/RequestWorkbookFunctionsSt.go | 113 + .../RequestWorkbookFunctionsStandardize.go | 32 + .../RequestWorkbookFunctionsSubstitute.go | 32 + .../beta/RequestWorkbookFunctionsSubtotal.go | 32 + .../beta/RequestWorkbookFunctionsSum.go | 113 + .../beta/RequestWorkbookFunctionsSyd.go | 32 + .../beta/RequestWorkbookFunctionsT.go | 32 + .../beta/RequestWorkbookFunctionsT_.go | 140 + .../beta/RequestWorkbookFunctionsTan.go | 32 + .../beta/RequestWorkbookFunctionsTanh.go | 32 + .../beta/RequestWorkbookFunctionsTbill.go | 86 + .../beta/RequestWorkbookFunctionsText.go | 32 + .../beta/RequestWorkbookFunctionsTime.go | 32 + .../beta/RequestWorkbookFunctionsTimevalue.go | 32 + .../beta/RequestWorkbookFunctionsToday.go | 32 + .../beta/RequestWorkbookFunctionsTrim.go | 59 + .../beta/RequestWorkbookFunctionsTrue.go | 32 + .../beta/RequestWorkbookFunctionsTrunc.go | 32 + .../beta/RequestWorkbookFunctionsType.go | 32 + .../beta/RequestWorkbookFunctionsUnichar.go | 32 + .../beta/RequestWorkbookFunctionsUnicode.go | 32 + .../beta/RequestWorkbookFunctionsUpper.go | 32 + .../beta/RequestWorkbookFunctionsUsdollar.go | 32 + .../beta/RequestWorkbookFunctionsValue.go | 32 + .../beta/RequestWorkbookFunctionsVar.go | 59 + .../beta/RequestWorkbookFunctionsVar_.go | 59 + .../beta/RequestWorkbookFunctionsVdb.go | 32 + .../beta/RequestWorkbookFunctionsVlookup.go | 32 + .../beta/RequestWorkbookFunctionsWeek.go | 32 + .../beta/RequestWorkbookFunctionsWeekday.go | 32 + .../beta/RequestWorkbookFunctionsWeibull_.go | 32 + .../beta/RequestWorkbookFunctionsWork.go | 59 + .../beta/RequestWorkbookFunctionsXirr.go | 32 + .../beta/RequestWorkbookFunctionsXnpv.go | 32 + .../beta/RequestWorkbookFunctionsXor.go | 32 + .../beta/RequestWorkbookFunctionsYear.go | 59 + .../beta/RequestWorkbookFunctionsYield.go | 86 + .../beta/RequestWorkbookFunctionsZ_.go | 32 + .../msgraph.go/beta/RequestWorkforce.go} | 0 .../msgraph.go/beta/extensions.go | 0 .../msgraph.go/beta/msgraph.go | 85 +- .../yaegashi/msgraph.go/jsonx/README.md | 55 + .../msgraph.go/jsonx/decode.go | 0 .../msgraph.go/jsonx/encode.go | 0 .../msgraph.go/jsonx/fold.go | 0 .../msgraph.go/jsonx/indent.go | 0 .../msgraph.go/jsonx/scanner.go | 0 .../msgraph.go/jsonx/stream.go | 0 .../msgraph.go/jsonx/tables.go | 0 .../msgraph.go/jsonx/tags.go | 0 vendor/golang.org/x/oauth2/README.md | 13 +- vendor/golang.org/x/oauth2/transport.go | 79 +- 4255 files changed, 191113 insertions(+), 196894 deletions(-) delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AssignedLabelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttachmentItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttachmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttendeeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditPropertyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BaseItemVersionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallRouteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CallStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChassisTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CompanyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContactModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CurrencyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DateTimeColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DayOfWeekEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/DriveRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailRoleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EmployeeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnablementEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtensionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalLinkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FeatureTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FileVaultStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentitySetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImageInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InstallIntentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InvitationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/InvitationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActionSetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemBodyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/JournalLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/JournalLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/JournalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LabelActionBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailFolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailSearchFolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailTipsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ManagementStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MentionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotebookLinksModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotebookModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OrganizationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OrganizationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OrganizationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OverrideOptionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ParticipantInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ParticipantModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PermissionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlatformEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PropertyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ReportRootRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictionActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoomListRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoomModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RuleModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SectionLinksModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ShiftActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ShiftModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SitePageDataModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TaskStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeSlotModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserActivationCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/UsernameSourceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go delete mode 100644 vendor/github.com/matterbridge/msgraph.go/jsonx/README.md create mode 100644 vendor/github.com/rickb777/date/LICENSE create mode 100644 vendor/github.com/rickb777/date/period/doc.go create mode 100644 vendor/github.com/rickb777/date/period/format.go create mode 100644 vendor/github.com/rickb777/date/period/marshal.go create mode 100644 vendor/github.com/rickb777/date/period/parse.go create mode 100644 vendor/github.com/rickb777/date/period/period.go create mode 100644 vendor/github.com/rickb777/plural/.gitignore create mode 100644 vendor/github.com/rickb777/plural/.travis.yml create mode 100644 vendor/github.com/rickb777/plural/LICENSE create mode 100644 vendor/github.com/rickb777/plural/README.md create mode 100644 vendor/github.com/rickb777/plural/build+test.sh create mode 100644 vendor/github.com/rickb777/plural/doc.go create mode 100644 vendor/github.com/rickb777/plural/plural.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/LICENSE create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ACLModel.go => yaegashi/msgraph.go/beta/ModelACL.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go => yaegashi/msgraph.go/beta/ModelAad.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go => yaegashi/msgraph.go/beta/ModelActive.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AdminConsentModel.go => yaegashi/msgraph.go/beta/ModelAdmin.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/AdministrativeUnitModel.go => yaegashi/msgraph.go/beta/ModelAdministrative.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AirPrintDestinationModel.go => yaegashi/msgraph.go/beta/ModelAir.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/AlbumModel.go => yaegashi/msgraph.go/beta/ModelAlbum.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go => yaegashi/msgraph.go/beta/ModelAlternative.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go => yaegashi/msgraph.go/beta/ModelAnonymous.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go => yaegashi/msgraph.go/beta/ModelApplied.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ApplyLabelActionModel.go => yaegashi/msgraph.go/beta/ModelApply.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go => yaegashi/msgraph.go/beta/ModelApproval.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go => yaegashi/msgraph.go/beta/ModelAverage.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go rename vendor/github.com/{matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go => yaegashi/msgraph.go/beta/ModelBinary.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go rename vendor/github.com/{matterbridge/msgraph.go/beta/BlockAccessActionModel.go => yaegashi/msgraph.go/beta/ModelBlock.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go rename vendor/github.com/{matterbridge/msgraph.go/beta/BooleanColumnModel.go => yaegashi/msgraph.go/beta/ModelBoolean.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go => yaegashi/msgraph.go/beta/ModelBulk.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/BundleModel.go => yaegashi/msgraph.go/beta/ModelBundle.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CalculatedColumnModel.go => yaegashi/msgraph.go/beta/ModelCalculated.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go => yaegashi/msgraph.go/beta/ModelCancel.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CartToClassAssociationModel.go => yaegashi/msgraph.go/beta/ModelCart.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CertificationControlModel.go => yaegashi/msgraph.go/beta/ModelCertification.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go => yaegashi/msgraph.go/beta/ModelChange.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ChannelModel.go => yaegashi/msgraph.go/beta/ModelChannel.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ChoiceColumnModel.go => yaegashi/msgraph.go/beta/ModelChoice.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go => yaegashi/msgraph.go/beta/ModelCircular.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go => yaegashi/msgraph.go/beta/ModelClassifcation.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CommandModel.go => yaegashi/msgraph.go/beta/ModelCommand.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CommentActionModel.go => yaegashi/msgraph.go/beta/ModelComment.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go => yaegashi/msgraph.go/beta/ModelComplex.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ConnectionOperationModel.go => yaegashi/msgraph.go/beta/ModelConnection.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ContractModel.go => yaegashi/msgraph.go/beta/ModelContract.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ControlScoreModel.go => yaegashi/msgraph.go/beta/ModelControl.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ConvertIDResultModel.go => yaegashi/msgraph.go/beta/ModelConvert.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CopyNotebookModelModel.go => yaegashi/msgraph.go/beta/ModelCopy.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CreateActionModel.go => yaegashi/msgraph.go/beta/ModelCreate.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CurrentLabelModel.go => yaegashi/msgraph.go/beta/ModelCurrent.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DailyScheduleModel.go => yaegashi/msgraph.go/beta/ModelDaily.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go => yaegashi/msgraph.go/beta/ModelDaylight.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go => yaegashi/msgraph.go/beta/ModelDefender.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go => yaegashi/msgraph.go/beta/ModelDelegated.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DeletedModel.go => yaegashi/msgraph.go/beta/ModelDeleted.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DetailsInfoModel.go => yaegashi/msgraph.go/beta/ModelDetails.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DiagnosticModel.go => yaegashi/msgraph.go/beta/ModelDiagnostic.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go => yaegashi/msgraph.go/beta/ModelDiscovered.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go rename vendor/github.com/{matterbridge/msgraph.go/beta/DowngradeJustificationModel.go => yaegashi/msgraph.go/beta/ModelDowngrade.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go => yaegashi/msgraph.go/beta/ModelE.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go => yaegashi/msgraph.go/beta/ModelEas.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EditActionModel.go => yaegashi/msgraph.go/beta/ModelEdit.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go => yaegashi/msgraph.go/beta/ModelEdition.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go => yaegashi/msgraph.go/beta/ModelEncryption.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/EndpointModel.go => yaegashi/msgraph.go/beta/ModelEndpoint.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go => yaegashi/msgraph.go/beta/ModelEnterprise.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/EntitlementManagementModel.go => yaegashi/msgraph.go/beta/ModelEntitlement.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ErrorDetailModel.go => yaegashi/msgraph.go/beta/ModelError.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ExcludedAppsModel.go => yaegashi/msgraph.go/beta/ModelExcluded.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go => yaegashi/msgraph.go/beta/ModelExclusion.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go rename vendor/github.com/{matterbridge/msgraph.go/beta/FieldValueSetModel.go => yaegashi/msgraph.go/beta/ModelField.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go rename vendor/github.com/{matterbridge/msgraph.go/beta/FinancialsModel.go => yaegashi/msgraph.go/beta/ModelFinancials.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go => yaegashi/msgraph.go/beta/ModelFlex.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go => yaegashi/msgraph.go/beta/ModelFocus.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go rename vendor/github.com/{matterbridge/msgraph.go/beta/FollowupFlagModel.go => yaegashi/msgraph.go/beta/ModelFollowup.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/FreeBusyErrorModel.go => yaegashi/msgraph.go/beta/ModelFree.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go rename vendor/github.com/{matterbridge/msgraph.go/beta/GenericErrorModel.go => yaegashi/msgraph.go/beta/ModelGeneric.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/GeoCoordinatesModel.go => yaegashi/msgraph.go/beta/ModelGeo.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/GeolocationColumnModel.go => yaegashi/msgraph.go/beta/ModelGeolocation.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go rename vendor/github.com/{matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go => yaegashi/msgraph.go/beta/ModelHas.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/HashesModel.go => yaegashi/msgraph.go/beta/ModelHashes.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go rename vendor/github.com/{matterbridge/msgraph.go/beta/HourlyScheduleModel.go => yaegashi/msgraph.go/beta/ModelHourly.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go => yaegashi/msgraph.go/beta/ModelHybrid.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go => yaegashi/msgraph.go/beta/ModelImplicit.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go => yaegashi/msgraph.go/beta/ModelImpossible.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/IncomingContextModel.go => yaegashi/msgraph.go/beta/ModelIncoming.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/IncompleteDataModel.go => yaegashi/msgraph.go/beta/ModelIncomplete.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/InformationalURLModel.go => yaegashi/msgraph.go/beta/ModelInformational.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/InitiatorModel.go => yaegashi/msgraph.go/beta/ModelInitiator.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/InnerErrorDetailModel.go => yaegashi/msgraph.go/beta/ModelInner.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go rename vendor/github.com/{matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go => yaegashi/msgraph.go/beta/ModelInstance.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/InstitutionDataModel.go => yaegashi/msgraph.go/beta/ModelInstitution.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go => yaegashi/msgraph.go/beta/ModelInternet.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go => yaegashi/msgraph.go/beta/ModelInvite.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go => yaegashi/msgraph.go/beta/ModelInvited.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go rename vendor/github.com/{matterbridge/msgraph.go/beta/JSONModel.go => yaegashi/msgraph.go/beta/ModelJSON.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/JobResponseBaseModel.go => yaegashi/msgraph.go/beta/ModelJob.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go rename vendor/github.com/{matterbridge/msgraph.go/beta/JustifyActionModel.go => yaegashi/msgraph.go/beta/ModelJustify.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go => yaegashi/msgraph.go/beta/ModelKerberos.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go rename vendor/github.com/{matterbridge/msgraph.go/beta/LabelingOptionsModel.go => yaegashi/msgraph.go/beta/ModelLabeling.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LanguageProficiencyModel.go => yaegashi/msgraph.go/beta/ModelLanguage.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go => yaegashi/msgraph.go/beta/ModelLeaked.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LearnedLocationModelModel.go => yaegashi/msgraph.go/beta/ModelLearned.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go rename vendor/github.com/{matterbridge/msgraph.go/beta/LocaleInfoModel.go => yaegashi/msgraph.go/beta/ModelLocale.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go => yaegashi/msgraph.go/beta/ModelLocalized.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go => yaegashi/msgraph.go/beta/ModelLocate.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LocatedRiskEventModel.go => yaegashi/msgraph.go/beta/ModelLocated.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/LoggedOnUserModel.go => yaegashi/msgraph.go/beta/ModelLogged.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LogonUserModel.go => yaegashi/msgraph.go/beta/ModelLogon.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MfaDetailModel.go => yaegashi/msgraph.go/beta/ModelMFA.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MarkContentModel.go => yaegashi/msgraph.go/beta/ModelMark.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/MatchLocationModel.go => yaegashi/msgraph.go/beta/ModelMatch.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go => yaegashi/msgraph.go/beta/ModelMembership.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MentionsPreviewModel.go => yaegashi/msgraph.go/beta/ModelMentions.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MimeContentModel.go => yaegashi/msgraph.go/beta/ModelMime.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ModifiedPropertyModel.go => yaegashi/msgraph.go/beta/ModelModified.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/MoveActionModel.go => yaegashi/msgraph.go/beta/ModelMove.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go => yaegashi/msgraph.go/beta/ModelMulti.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go rename vendor/github.com/{matterbridge/msgraph.go/beta/NamedLocationModel.go => yaegashi/msgraph.go/beta/ModelNamed.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go rename vendor/github.com/{matterbridge/msgraph.go/beta/NotifyUserActionModel.go => yaegashi/msgraph.go/beta/ModelNotify.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go => yaegashi/msgraph.go/beta/ModelOAuth2.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go => yaegashi/msgraph.go/beta/ModelOpening.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go => yaegashi/msgraph.go/beta/ModelOperating.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OrgContactModel.go => yaegashi/msgraph.go/beta/ModelOrg.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go => yaegashi/msgraph.go/beta/ModelOrganizational.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go => yaegashi/msgraph.go/beta/ModelOrganizer.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/OsVersionCountModel.go => yaegashi/msgraph.go/beta/ModelOs.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go => yaegashi/msgraph.go/beta/ModelOut.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go => yaegashi/msgraph.go/beta/ModelOutgoing.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PackageModel.go => yaegashi/msgraph.go/beta/ModelPackage.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PageLinksModel.go => yaegashi/msgraph.go/beta/ModelPage.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go => yaegashi/msgraph.go/beta/ModelParental.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go => yaegashi/msgraph.go/beta/ModelParse.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go => yaegashi/msgraph.go/beta/ModelPatterned.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go => yaegashi/msgraph.go/beta/ModelPersistent.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PhoneModel.go => yaegashi/msgraph.go/beta/ModelPhone.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PhotoModel.go => yaegashi/msgraph.go/beta/ModelPhoto.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PictureModel.go => yaegashi/msgraph.go/beta/ModelPicture.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PlaceModel.go => yaegashi/msgraph.go/beta/ModelPlace.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PlayPromptOperationModel.go => yaegashi/msgraph.go/beta/ModelPlay.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PostModel.go => yaegashi/msgraph.go/beta/ModelPost.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PostalAddressTypeModel.go => yaegashi/msgraph.go/beta/ModelPostal.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go => yaegashi/msgraph.go/beta/ModelPre.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PresenceModel.go => yaegashi/msgraph.go/beta/ModelPresence.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PrivacyProfileModel.go => yaegashi/msgraph.go/beta/ModelPrivacy.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ProcessModel.go => yaegashi/msgraph.go/beta/ModelProcess.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ProjectParticipationModel.go => yaegashi/msgraph.go/beta/ModelProject.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PromptModel.go => yaegashi/msgraph.go/beta/ModelPrompt.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PropertiesModel.go => yaegashi/msgraph.go/beta/ModelProperties.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go => yaegashi/msgraph.go/beta/ModelProvider.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ProxiedDomainModel.go => yaegashi/msgraph.go/beta/ModelProxied.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PublicationFacetModel.go => yaegashi/msgraph.go/beta/ModelPublication.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PublishedResourceModel.go => yaegashi/msgraph.go/beta/ModelPublished.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go rename vendor/github.com/{matterbridge/msgraph.go/beta/QuotaModel.go => yaegashi/msgraph.go/beta/ModelQuota.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RankedEmailAddressModel.go => yaegashi/msgraph.go/beta/ModelRanked.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RbacApplicationModel.go => yaegashi/msgraph.go/beta/ModelRbac.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RecipientModel.go => yaegashi/msgraph.go/beta/ModelRecipient.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RecommendLabelActionModel.go => yaegashi/msgraph.go/beta/ModelRecommend.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RecordOperationModel.go => yaegashi/msgraph.go/beta/ModelRecord.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RecordingInfoModel.go => yaegashi/msgraph.go/beta/ModelRecording.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go => yaegashi/msgraph.go/beta/ModelReference.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ReferencedObjectModel.go => yaegashi/msgraph.go/beta/ModelReferenced.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RegistryKeyStateModel.go => yaegashi/msgraph.go/beta/ModelRegistry.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go => yaegashi/msgraph.go/beta/ModelRelying.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ReminderModel.go => yaegashi/msgraph.go/beta/ModelReminder.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RenameActionModel.go => yaegashi/msgraph.go/beta/ModelRename.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ReputationCategoryModel.go => yaegashi/msgraph.go/beta/ModelReputation.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RequestObjectModel.go => yaegashi/msgraph.go/beta/ModelRequest.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go => yaegashi/msgraph.go/beta/ModelRequired.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go => yaegashi/msgraph.go/beta/ModelReset.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ResponseStatusModel.go => yaegashi/msgraph.go/beta/ModelResponse.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RestoreActionModel.go => yaegashi/msgraph.go/beta/ModelRestore.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ResultInfoModel.go => yaegashi/msgraph.go/beta/ModelResult.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RgbColorModel.go => yaegashi/msgraph.go/beta/ModelRgb.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RootModel.go => yaegashi/msgraph.go/beta/ModelRoot.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go => yaegashi/msgraph.go/beta/ModelRotate.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RunScheduleModel.go => yaegashi/msgraph.go/beta/ModelRun.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SchedulingGroupModel.go => yaegashi/msgraph.go/beta/ModelScheduling.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go => yaegashi/msgraph.go/beta/ModelScoped.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SettingsModel.go => yaegashi/msgraph.go/beta/ModelSettings.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SharepointIDsModel.go => yaegashi/msgraph.go/beta/ModelSharepoint.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ShipmentMethodModel.go => yaegashi/msgraph.go/beta/ModelShipment.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SideLoadingKeyModel.go => yaegashi/msgraph.go/beta/ModelSide.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SizeRangeModel.go => yaegashi/msgraph.go/beta/ModelSize.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SkillProficiencyModel.go => yaegashi/msgraph.go/beta/ModelSkill.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go => yaegashi/msgraph.go/beta/ModelSoftware.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SpecialFolderModel.go => yaegashi/msgraph.go/beta/ModelSpecial.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go rename vendor/github.com/{matterbridge/msgraph.go/beta/StoragePlanInformationModel.go => yaegashi/msgraph.go/beta/ModelStorage.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go => yaegashi/msgraph.go/beta/ModelSubscribe.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SubscribedSKUModel.go => yaegashi/msgraph.go/beta/ModelSubscribed.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SubscriptionModel.go => yaegashi/msgraph.go/beta/ModelSubscription.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go => yaegashi/msgraph.go/beta/ModelSuspicious.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go => yaegashi/msgraph.go/beta/ModelSwap.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go => yaegashi/msgraph.go/beta/ModelSymantec.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SystemFacetModel.go => yaegashi/msgraph.go/beta/ModelSystem.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go rename vendor/github.com/{matterbridge/msgraph.go/beta/TeamworkModel.go => yaegashi/msgraph.go/beta/ModelTeamwork.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go => yaegashi/msgraph.go/beta/ModelTelecom.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/TenantSetupInfoModel.go => yaegashi/msgraph.go/beta/ModelTenant.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go rename vendor/github.com/{matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go => yaegashi/msgraph.go/beta/ModelToken.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ToneInfoModel.go => yaegashi/msgraph.go/beta/ModelTone.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/TrendingModel.go => yaegashi/msgraph.go/beta/ModelTrending.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go rename vendor/github.com/{matterbridge/msgraph.go/beta/TypedEmailAddressModel.go => yaegashi/msgraph.go/beta/ModelTyped.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go => yaegashi/msgraph.go/beta/ModelURL.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go => yaegashi/msgraph.go/beta/ModelUnary.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go => yaegashi/msgraph.go/beta/ModelUnfamiliar.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go rename vendor/github.com/{matterbridge/msgraph.go/beta/UnitOfMeasureModel.go => yaegashi/msgraph.go/beta/ModelUnit.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go => yaegashi/msgraph.go/beta/ModelUnmute.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go rename vendor/github.com/{matterbridge/msgraph.go/beta/UploadSessionModel.go => yaegashi/msgraph.go/beta/ModelUpload.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/UsageDetailsModel.go => yaegashi/msgraph.go/beta/ModelUsage.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/UsedInsightModel.go => yaegashi/msgraph.go/beta/ModelUsed.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go rename vendor/github.com/{matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go => yaegashi/msgraph.go/beta/ModelVariable.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/VendorModel.go => yaegashi/msgraph.go/beta/ModelVendor.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/VerifiedDomainModel.go => yaegashi/msgraph.go/beta/ModelVerified.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/VersionActionModel.go => yaegashi/msgraph.go/beta/ModelVersion.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/VideoModel.go => yaegashi/msgraph.go/beta/ModelVideo.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go rename vendor/github.com/{matterbridge/msgraph.go/beta/VulnerabilityStateModel.go => yaegashi/msgraph.go/beta/ModelVulnerability.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WebsiteModel.go => yaegashi/msgraph.go/beta/ModelWebsite.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WorkPositionModel.go => yaegashi/msgraph.go/beta/ModelWork.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go rename vendor/github.com/{matterbridge/msgraph.go/beta/YomiPersonNameModel.go => yaegashi/msgraph.go/beta/ModelYomi.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AccountRequest.go => yaegashi/msgraph.go/beta/RequestAccount.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go => yaegashi/msgraph.go/beta/RequestAllowed.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestAnonymous.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go rename vendor/github.com/{matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go => yaegashi/msgraph.go/beta/RequestAttribute.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go => yaegashi/msgraph.go/beta/RequestAudio.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go => yaegashi/msgraph.go/beta/RequestCart.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go => yaegashi/msgraph.go/beta/RequestCertificate.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go => yaegashi/msgraph.go/beta/RequestCompliance.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ConnectionOperationRequest.go => yaegashi/msgraph.go/beta/RequestConnection.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ContractRequest.go => yaegashi/msgraph.go/beta/RequestContract.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/CountryRegionRequest.go => yaegashi/msgraph.go/beta/RequestCountry.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go => yaegashi/msgraph.go/beta/RequestCredential.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/CurrencyRequest.go => yaegashi/msgraph.go/beta/RequestCurrency.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go => yaegashi/msgraph.go/beta/RequestE.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EducationalActivityRequest.go => yaegashi/msgraph.go/beta/RequestEducational.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EndpointRequest.go => yaegashi/msgraph.go/beta/RequestEndpoint.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go => yaegashi/msgraph.go/beta/RequestEnterprise.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go rename vendor/github.com/{matterbridge/msgraph.go/beta/EntityRequest.go => yaegashi/msgraph.go/beta/RequestEntity.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go rename vendor/github.com/{matterbridge/msgraph.go/beta/FieldValueSetRequest.go => yaegashi/msgraph.go/beta/RequestField.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go rename vendor/github.com/{matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go => yaegashi/msgraph.go/beta/RequestFilter.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go rename vendor/github.com/{matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go => yaegashi/msgraph.go/beta/RequestHost.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go rename vendor/github.com/{matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go => yaegashi/msgraph.go/beta/RequestIP.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestImpossible.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go rename vendor/github.com/{matterbridge/msgraph.go/beta/JobResponseBaseRequest.go => yaegashi/msgraph.go/beta/RequestJob.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go rename vendor/github.com/{matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go => yaegashi/msgraph.go/beta/RequestLanguage.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestLeaked.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LicenseDetailsRequest.go => yaegashi/msgraph.go/beta/RequestLicense.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go rename vendor/github.com/{matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go => yaegashi/msgraph.go/beta/RequestLocalized.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/LookupResultRowRequest.go => yaegashi/msgraph.go/beta/RequestLookup.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestMalware.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MentionRequest.go => yaegashi/msgraph.go/beta/RequestMention.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go rename vendor/github.com/{matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go => yaegashi/msgraph.go/beta/RequestMulti.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go rename vendor/github.com/{matterbridge/msgraph.go/beta/NamedLocationRequest.go => yaegashi/msgraph.go/beta/RequestNamed.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go => yaegashi/msgraph.go/beta/RequestOAuth2.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OnlineMeetingRequest.go => yaegashi/msgraph.go/beta/RequestOnline.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go rename vendor/github.com/{matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go => yaegashi/msgraph.go/beta/RequestOrganizational.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PayloadResponseRequest.go => yaegashi/msgraph.go/beta/RequestPayload.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PictureRequest.go => yaegashi/msgraph.go/beta/RequestPicture.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/PlaceRequest.go => yaegashi/msgraph.go/beta/RequestPlace.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go rename vendor/github.com/{matterbridge/msgraph.go/beta/PresenceRequest.go => yaegashi/msgraph.go/beta/RequestPresence.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ProjectParticipationRequest.go => yaegashi/msgraph.go/beta/RequestProject.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go => yaegashi/msgraph.go/beta/RequestProvider.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go => yaegashi/msgraph.go/beta/RequestProvisioning.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go rename vendor/github.com/{matterbridge/msgraph.go/beta/RiskDetectionRequest.go => yaegashi/msgraph.go/beta/RequestRisk.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SchedulingGroupRequest.go => yaegashi/msgraph.go/beta/RequestScheduling.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go => yaegashi/msgraph.go/beta/RequestScoped.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SensitiveTypeRequest.go => yaegashi/msgraph.go/beta/RequestSensitive.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go => yaegashi/msgraph.go/beta/RequestSetting.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ShiftRequest.go => yaegashi/msgraph.go/beta/RequestShift.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/ShipmentMethodRequest.go => yaegashi/msgraph.go/beta/RequestShipment.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go => yaegashi/msgraph.go/beta/RequestSide.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SignInRequest.go => yaegashi/msgraph.go/beta/RequestSign.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go => yaegashi/msgraph.go/beta/RequestSingle.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go rename vendor/github.com/{matterbridge/msgraph.go/beta/SkillProficiencyRequest.go => yaegashi/msgraph.go/beta/RequestSkill.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go => yaegashi/msgraph.go/beta/RequestSoftware.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SubscribedSKURequest.go => yaegashi/msgraph.go/beta/RequestSubscribed.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SubscriptionRequest.go => yaegashi/msgraph.go/beta/RequestSubscription.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestSuspicious.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go => yaegashi/msgraph.go/beta/RequestSwap.go} (100%) rename vendor/github.com/{matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go => yaegashi/msgraph.go/beta/RequestSymantec.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go rename vendor/github.com/{matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go => yaegashi/msgraph.go/beta/RequestTelecom.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go rename vendor/github.com/{matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go => yaegashi/msgraph.go/beta/RequestText.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go rename vendor/github.com/{matterbridge/msgraph.go/beta/ThumbnailSetRequest.go => yaegashi/msgraph.go/beta/RequestThumbnail.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go rename vendor/github.com/{matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go => yaegashi/msgraph.go/beta/RequestUnfamiliar.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go rename vendor/github.com/{matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go => yaegashi/msgraph.go/beta/RequestUnit.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WebAccountRequest.go => yaegashi/msgraph.go/beta/RequestWeb.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WorkPositionRequest.go => yaegashi/msgraph.go/beta/RequestWork.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go => yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go} (100%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go create mode 100644 vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go rename vendor/github.com/{matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go => yaegashi/msgraph.go/beta/RequestWorkforce.go} (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/beta/extensions.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/beta/msgraph.go (75%) create mode 100644 vendor/github.com/yaegashi/msgraph.go/jsonx/README.md rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/decode.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/encode.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/fold.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/indent.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/scanner.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/stream.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/tables.go (100%) rename vendor/github.com/{matterbridge => yaegashi}/msgraph.go/jsonx/tags.go (100%) diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go deleted file mode 100644 index 8fbbb779..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index c0e379cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 509cb4ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/AadUserConversationMemberRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go deleted file mode 100644 index 336954e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 3edb6007..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 89b0a98e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index f214be9d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index f944844f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 65f23f37..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 58823cd4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go +++ /dev/null @@ -1,254 +0,0 @@ -// 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 deleted file mode 100644 index 8c1edaee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 57aef4f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e9be8160..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index bf4cac48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 5e4b1845..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go +++ /dev/null @@ -1,160 +0,0 @@ -// 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 deleted file mode 100644 index c56d718b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index d41075ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go +++ /dev/null @@ -1,421 +0,0 @@ -// 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 deleted file mode 100644 index 7164d2a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 5b42ccb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index dcd9fb10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 709deb83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 8f2fa971..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 20c75bae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index eebdd213..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 65a6bf90..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 7da8949e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 583e5027..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index e7067bb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 6ca35647..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 2b55bc3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index b1507ab1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fac16218..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go +++ /dev/null @@ -1,125 +0,0 @@ -// 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 deleted file mode 100644 index 5f8f8045..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index df3309c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0c19d40c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index a7663fac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index efa97564..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go +++ /dev/null @@ -1,421 +0,0 @@ -// 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 deleted file mode 100644 index e461bb63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a98827ed..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ac42c59a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 39e7e972..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 7095434b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 93061477..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 535a6e27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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/AccountStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go deleted file mode 100644 index 9f1f8696..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index c086893c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 6ecda429..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go deleted file mode 100644 index 568da822..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 349244fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 78560a89..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 0590acdd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 76e83ae9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 5dcbe600..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4601c1ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9b1d1eec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 982db1ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4e56be3f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7e08b8cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 94cae21d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 869560fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f79de2a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/AdminConsentStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go deleted file mode 100644 index dabb3ceb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/AdministrativeUnitRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go deleted file mode 100644 index b3c4909e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 3823caa0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index fcea170c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go +++ /dev/null @@ -1,145 +0,0 @@ -// 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 deleted file mode 100644 index f42f45e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index d5ef7288..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2f5d464b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index e728cbbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index af0615c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index b31f3be1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1124bef3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 38f5bd81..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 687bf26f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index b82a1b74..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index b84f4e42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 368c4cc8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f238e25a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7e020509..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index dec4ffb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 486d6c47..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b62cc18e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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/AlertAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go deleted file mode 100644 index 68dc1ebd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index a61fedaf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 00914605..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 0e5967c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 393f6e0a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0d823b35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index e49ac7ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 4f8e90a6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e807d71f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9137ae13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6dca3f76..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6d1bcabd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index f716bfee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 81f69264..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/AnalyticsActivityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go deleted file mode 100644 index 77a1510c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 394621f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4e3d2c0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index ee0ebffa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 9ff27033..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidCustomConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1765985a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 95fcbf87..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c87ba7f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b88c2e88..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 3b42ea75..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index a2b0ab72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index dc59494a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index a93ab8db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 47ed7c2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index b180719c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index a342919d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 6699185a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 62cd5053..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index db75b6ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index c8b2efa7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,143 +0,0 @@ -// 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 deleted file mode 100644 index 161b9bb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e3c00276..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index fe5331c9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 143eca86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 17620819..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index dcf97d08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 282c88ab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index cd45254c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 50f68fc3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3738d978..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index eb9ec408..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index c4b58361..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e194310c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 1a3794c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 8c21afaf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index e92316a6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEapTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 2fd73ab8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 1d6b6be8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 026ec221..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 62709875..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 66001365..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 274fac75..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index be79762b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index f8186476..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6683a07c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9abb37f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkAppModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 2a68c111..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkBindStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 7d9ec301..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 996db773..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 94760046..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go +++ /dev/null @@ -1,53 +0,0 @@ -// 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 deleted file mode 100644 index 258a7f77..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3ba4109d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f983621a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 490a4166..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 930a56f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 2d6829b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index e2f05232..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 7a5da684..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a2654248..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ceb7da41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index cb6b47a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index aa6ca0b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 deleted file mode 100644 index 3cff6b20..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index b99f4774..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a8edc1ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 37428013..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b060e774..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 24053c7f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 0fc31420..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 102a8bce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 170d806d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ab2a366d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index ef54c6fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsAction.go +++ /dev/null @@ -1,130 +0,0 @@ -// 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 deleted file mode 100644 index fc349fbe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index b6bcbe4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 80ea37c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index e7c3a687..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ad716073..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2bd96d38..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 436c2955..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 0b58fd42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 8f9af081..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 05348258..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,107 +0,0 @@ -// 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 deleted file mode 100644 index 6b9c8f8f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3decf105..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 9d1262e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidKeyguardFeatureEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index ce4395dd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidLobAppModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index ad2a962e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index eca2ced6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index 42861839..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppProtectionRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index c651b29c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppRegistrationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3af805a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 288df7d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index b22a2a4a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 595f8e46..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2ed00dd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3767ace0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go +++ /dev/null @@ -1,229 +0,0 @@ -// 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 deleted file mode 100644 index 4f8e58c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6bd9cbf4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 65626716..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 5cde3371..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 6af3da5c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 58859468..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index fd1c01a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bf586ffc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreAppModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 7cceffa1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidManagedStoreWebAppModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 595b7c65..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index dbe1239f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidMobileAppIdentifierModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 41a41c51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidOMACpConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 074de608..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7ff34442..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPermissionActionTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7e1e5122..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f6a6801e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index ec5653b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 022032a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index bbaec745..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidScepCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 2152714f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidStoreAppModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index ea587954..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index fb85840f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fefe6d7c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidUsernameSourceEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 78ef6c7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 4584771f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 0a536957..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 58ef1ef7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index ca5cc336..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ee5b474c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index d0342d4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 4b1d55f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go +++ /dev/null @@ -1,53 +0,0 @@ -// 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 deleted file mode 100644 index 4f0e8315..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index fa88fefb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0a595f9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 64fd117f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 7783272a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 1b4ff4e6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index a39fb0c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 340776ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 deleted file mode 100644 index 352a5687..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index e9f1d5d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8960d5a6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 9a949907..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 2bdb20ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 0e414125..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 9504a566..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 54e9a0e1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 4051893f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ea59921f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 6e7e482e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index ce14ab2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2918caf6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index aa51f63d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AnniversaryTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/AppCatalogsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go deleted file mode 100644 index de2b6a34..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 96615182..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppCatalogsRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index efbecc47..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppConfigurationSettingItemModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b79dcd2d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppHostedMediaConfigModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 642f4eb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppIdentityModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 130a51b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppInstallControlTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 2492b397..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppListItemModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 239a3317..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppListTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e965580f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 0b7c0555..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 32f945bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index a6e01f3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index c4cc0c86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b574e246..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 81b27b48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppLogUploadStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 35e7090f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppManagementLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 9343821a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c04e2d2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7c9cf177..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppRoleModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index f0258bef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 8ba3d15c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a0636161..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 29c9205e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3afbdf5e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 07c15dbc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 63c826e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppVulnerabilityTaskRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index aa886d64..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 20709579..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 853a12f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d69fd318..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 94a4f52c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 9db32aa8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplePushNotificationCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a4a9e4d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleSubjectNameFormatEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 8ca623ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 248f3af1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 7f3aa642..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 3df93d28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index b52f03f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConfigurationModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 66a651fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVpnConnectionTypeEnum.go +++ /dev/null @@ -1,129 +0,0 @@ -// 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 deleted file mode 100644 index 2828fa3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b649dcde..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationAction.go +++ /dev/null @@ -1,141 +0,0 @@ -// 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 deleted file mode 100644 index 0d6b0998..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index d11f4030..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a6026e87..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 70f07235..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 16f22df2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationIdentityTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index fe075859..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 301473a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationModel.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 92b5780a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 6aee12a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationRequest.go +++ /dev/null @@ -1,341 +0,0 @@ -// 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 deleted file mode 100644 index 7acb785f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationServicePrincipalModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c5f5e350..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 70e1a2ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d883f038..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationSignInSummaryModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2dcc1cfb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateAction.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8b5e8846..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index cca7a32c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fcb6fce8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApplicationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/AppliedConditionalAccessPolicyResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go deleted file mode 100644 index 6166c312..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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/ApprovalStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go deleted file mode 100644 index a564fb68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/ApprovalWorkflowProviderRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go deleted file mode 100644 index 2281608f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 301701af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLabelModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ba90423e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AssignedLicenseModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1d4ab7fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AssignedPlanModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index d1cd2144..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AssignmentMethodEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 61810ac7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentAction.go +++ /dev/null @@ -1,62 +0,0 @@ -// 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 deleted file mode 100644 index 806a5a51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentItemModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 58048802..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 8e81bdfb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e7f6d07f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttachmentTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index f1bd26ef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeAvailabilityModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f0521818..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index bc2dbf08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5a25f5c9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttendeeTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 0edc2b6e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeDefinitionModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index b7b98c13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowBehaviorEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 8cbeeae7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeFlowTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 930bfd50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/AttributeMappingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go deleted file mode 100644 index 01135c32..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 08f0c05c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingParameterSchemaModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index e51ea712..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index de0294d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingSourceTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6e66658b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index e7d953f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AudioConferencingModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index e111c291..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AudioModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 24c4be9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/AuditActivityInitiatorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go deleted file mode 100644 index 0737c4c0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditActivityInitiatorModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2d0d3782..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditActorModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 82a32d2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6c0a4ef7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditEventRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4eed9213..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index a1d92428..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditLogRootRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 460f71c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditPropertyModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e4bf3268..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuditResourceModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index ab9090bf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuthMethodsTypeEnum.go +++ /dev/null @@ -1,113 +0,0 @@ -// 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 deleted file mode 100644 index dc3c4f95..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationDetailModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 6cfb2578..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AuthenticationRequirementPolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3535fa52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f57b750f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutoLabelingModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8fd1d0d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 1f19df0f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutoReviewSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index c75ba0ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesMailTipsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 42e338e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesSettingModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index b01a4c01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticRepliesStatusEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index f3ce425d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AutomaticUpdateModeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/AzureADFeatureUsageModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go deleted file mode 100644 index a62bb23a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADFeatureUsageModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 27301fd2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index f11c1665..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADLicenseUsageModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8b62e0d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADUserFeatureUsageModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index b1097f67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index cbf96b5b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d7920621..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 022ab4e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BaseItemVersionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/BinaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go deleted file mode 100644 index 0ffef4d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 62639b59..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerEncryptionMethodEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 6fcfc068..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c55bd164..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ad18af69..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryOptionsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 065d1cfe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 00eaddb6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ce647930..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/BodyTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go deleted file mode 100644 index df6c88c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BodyTypeEnum.go +++ /dev/null @@ -1,28 +0,0 @@ -// 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 deleted file mode 100644 index 27fae8e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index b99558e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentModel.go +++ /dev/null @@ -1,63 +0,0 @@ -// 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 deleted file mode 100644 index 3471af50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingAppointmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fcf02978..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index e6ded981..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index b5e86679..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingBusinessRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 4faf328d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 64be54e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCurrencyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 794ffdb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 1bca5e62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingCustomerRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 70cba7a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingInvoiceStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 93db447a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingNamedEntityModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5b5ce664..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingPersonModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 33bb99a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingPriceTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 28ef0b87..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 4cb8c86a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingReminderRecipientsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ec70cdb6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingSchedulingPolicyModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 945f22bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 7d840b08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingServiceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index cbb0980e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f9baf3bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffMemberRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 631718c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingStaffRoleEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index cd66a265..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index cca6b9c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkHoursModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 638b5942..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BookingWorkTimeSlotModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/BrowserSyncSettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go deleted file mode 100644 index 6a6d13f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BrowserSyncSettingEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/BusinessFlowAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go deleted file mode 100644 index 5f7bb3bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowAction.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index a4594cc8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 31e9d49c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0daf3c67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 52ed6b9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b87eaf9f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/BusinessFlowTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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/CalendarAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go deleted file mode 100644 index a86f3e4e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarAction.go +++ /dev/null @@ -1,106 +0,0 @@ -// 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 deleted file mode 100644 index 69e2b393..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarColorEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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 deleted file mode 100644 index 5fb800b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index c29593cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarGroupRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index e47574d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 53368224..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 41a0952c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarPermissionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d3d92121..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 7b744d18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarRoleTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 8f924d03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 8aab1b0c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionImportanceEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 12728061..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingActionTypeEnum.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 7c049f06..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 45f3aca4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageActionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ce8c1fa1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index fc7191dc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CalendarSharingMessageRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 28e0316a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallAction.go +++ /dev/null @@ -1,513 +0,0 @@ -// 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 deleted file mode 100644 index ce73dfb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallActivityStatisticsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2537e2c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallDirectionEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 7422ddb7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallDispositionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 4ede2ae1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallMediaStateModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9b8a598e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallModel.go +++ /dev/null @@ -1,63 +0,0 @@ -// 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 deleted file mode 100644 index 7f3f48cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallOptionsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 22963606..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 14ad2246..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallRouteModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b6f49a08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CallStateEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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/CategoryColorEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go deleted file mode 100644 index f941ceaf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CategoryColorEnum.go +++ /dev/null @@ -1,217 +0,0 @@ -// 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 deleted file mode 100644 index 7b5abd22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateAuthorityModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 5200321e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/CertificateConnectorSettingModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go deleted file mode 100644 index ad5aef62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateConnectorSettingModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index baa56c9e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateDestinationStoreEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index c4b74841..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateIssuanceStatesEnum.go +++ /dev/null @@ -1,193 +0,0 @@ -// 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 deleted file mode 100644 index f7a11375..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateRevocationStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a38e8b4e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStatusEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 877b6af3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateStoreEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 191f8df7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ChangeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go deleted file mode 100644 index 1d91383a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 0237e92a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 63bde192..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChannelMembershipTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ChannelRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go deleted file mode 100644 index 35ac0ba0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChannelRequest.go +++ /dev/null @@ -1,334 +0,0 @@ -// 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 deleted file mode 100644 index 16a43425..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChassisTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 0f3cff90..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatActivityStatisticsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d3f29468..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatInfoModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 056a4108..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMembersNotificationAudienceModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index d52cd5cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageAttachmentModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 48a275c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 8ad616db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageHostedContentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 769ca19e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageImportanceEnum.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 64d2d0a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageMentionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 051c2bd5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 6cdac306..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 129cbdc1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 00856cea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1117d91f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 5b031fb1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3f7bb4e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageReactionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 6fbb30d2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 48a98a6b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatMessageTypeEnum.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 2f96e52d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 27ea08a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ChatRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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/ClassificationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go deleted file mode 100644 index 6f430008..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationErrorModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ed09c201..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationInnerErrorModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 4e84954f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationJobResponseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index fc5ef1a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ClassificationResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8702762f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ClonableTeamPartsEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 6a07b741..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 04a15964..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ead22dbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 94a6f1ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9466ff2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudAppSecurityStateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f70f83c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index 1d0c2913..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 00299dc9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CloudCommunicationsRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 9a745e7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 1b70a22e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnDefinitionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5d4b0ae6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 92837d0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ColumnLinkRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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/CommandRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go deleted file mode 100644 index a3f18a9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommandRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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/CommsApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go deleted file mode 100644 index 553a9e8b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 87cea9bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsApplicationRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 0446e97c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f916100a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsNotificationsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a63ca776..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 536db576..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CommsOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 36ee49e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyDetailModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 35e805de..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index d0658457..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyInformationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 97b3a923..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyModel.go +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index 46712849..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalActionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 257ccba9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyPortalBlockedActionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e09e55db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CompanyRequest.go +++ /dev/null @@ -1,3335 +0,0 @@ -// 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/ComplianceInformationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go deleted file mode 100644 index 9924976b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceInformationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3e1ba9ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 31263f12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ComplianceStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go deleted file mode 100644 index 478e7ab9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 86de83ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceStatusEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 96cfe7a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ComponentEnum.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 9bb17c18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessApplicationsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f0b85f60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessClientAppEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a3dafb7f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionSetModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 08c9dcf7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessConditionsEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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 deleted file mode 100644 index b4366175..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 6f1303cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 52786133..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index d9c23587..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessGrantControlsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index dae883ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessLocationsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1e484277..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPlatformsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index fbad5ea6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 26f3ef1d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 080c00c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 8f3da790..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3bda23a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessRootRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 1c9f6925..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 01ee8291..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessSessionControlsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index c4d7a837..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ca8916be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConditionalAccessUsersModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f19079d2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 596cc4db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 26208bbc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c207ffe8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d5c741b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientInformationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6c11f637..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationManagerClientStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index f5c75301..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7c58ce83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConfigurationUsageEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 46f15793..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionDirectionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/ConnectionOperationStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go deleted file mode 100644 index d6488cb3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 1e28b41f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 61ccbc0f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index e7453529..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContactFolderRequest.go +++ /dev/null @@ -1,421 +0,0 @@ -// 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 deleted file mode 100644 index 56bf922e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContactModel.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 deleted file mode 100644 index 769ef825..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContactRelationshipEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 8ffb7dc2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContactRequest.go +++ /dev/null @@ -1,334 +0,0 @@ -// 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 deleted file mode 100644 index 8a27e451..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentAlignmentEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 67909aad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentClassificationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2bd410b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentFormatEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 83fbca1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentInfoModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 93b21872..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentMetadataModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index bc71d64c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentPropertiesModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 45d4b973..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index f600f4ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeInfoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 0b2e76cc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index dcdb966b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeOrderModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2380040a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ContentTypeRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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/ConversationIdentityTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go deleted file mode 100644 index a20c19d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationIdentityTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f3fde9b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7785f3ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 63746df1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationMemberRolesModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index cff50a02..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 6255c04c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 756eb873..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 1cbeb64f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index cd1ebdeb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ConversationThreadRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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/CountryNamedLocationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go deleted file mode 100644 index 9c8500c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CountryNamedLocationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9a59e86e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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/CredentialModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go deleted file mode 100644 index cc4164f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 6f560e20..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 4a73ecf3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUsageSummaryModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 1d74a5f0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationCountModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 153e690b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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/CurrencyColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go deleted file mode 100644 index c1cb1c53..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyColumnModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7d8aaa59..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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/CustomActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go deleted file mode 100644 index 338d6ebd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomActionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2b91ae09..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomSubjectAlternativeNameModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d8c81fe6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomTimeZoneModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e5f4efc0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerModel.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index b52aefb1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index d3c606f0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentJournalRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index e15bb841..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index db2d49ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerPaymentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 61bc3629..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/CustomerRequest.go +++ /dev/null @@ -1,167 +0,0 @@ -// 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/DataClassificationServiceModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go deleted file mode 100644 index 48234991..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 0ff75578..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataClassificationServiceRequest.go +++ /dev/null @@ -1,1173 +0,0 @@ -// 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 deleted file mode 100644 index 3320b921..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyAction.go +++ /dev/null @@ -1,42 +0,0 @@ -// 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 deleted file mode 100644 index 848c095d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 65db4284..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataLossPreventionPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1cb4477e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 5e443ca0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9dd1bfb6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataPolicyOperationStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index eeb2d520..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 323f6d03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 2f617003..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataSharingConsentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2d7326d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DataStoreFieldModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 97e60cfa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeColumnModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 84e890f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5219d147..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DateTimeTimeZoneTypeModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 310f11c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DayOfWeekEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/DefaultColumnValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go deleted file mode 100644 index b6771b48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultColumnValueModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6959f504..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 34458e68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionModel.go +++ /dev/null @@ -1,77 +0,0 @@ -// 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 deleted file mode 100644 index 103d4320..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefaultManagedAppProtectionRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 0fe2c716..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index fc80296d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/DefenderMonitorFileActivityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go deleted file mode 100644 index 5ace9e98..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderMonitorFileActivityEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index ad431bbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index b2a2d208..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 1479d39a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderProtectionTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 19588595..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderScanTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 5cf5c940..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 9a99bafd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 3a4de7c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 62d2e240..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderThreatActionEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2bfb1b95..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/DeleteActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go deleted file mode 100644 index 47164ec9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeleteActionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3cd94d2c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/DeliveryOptimizationBandwidthAbsoluteModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go deleted file mode 100644 index 6264e3ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 4b7dc4d3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2b7d1ac6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5d7e72da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 107148e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8e5d2001..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 94042652..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 45ab6547..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index a7957541..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ff1e33bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7f1723f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 9eefd0b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index d4ca9d58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 605fad19..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentBaseProfileModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index 54db70b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepEnrollmentProfileModel.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index e4b8ad2d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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 deleted file mode 100644 index 7d8c74b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4f4203ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 5b00e343..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d3fc24be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingAction.go +++ /dev/null @@ -1,129 +0,0 @@ -// 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 deleted file mode 100644 index ea4aabfe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 001a22d5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepOnboardingSettingRequest.go +++ /dev/null @@ -1,247 +0,0 @@ -// 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 deleted file mode 100644 index 3ad5f559..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DepTokenTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 3022db6c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/DetectedAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go deleted file mode 100644 index f1593f6c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 60555fc7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index d6a19c25..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index e2fc47b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3e00ab4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceActionResultModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 3a1928eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2d0a06a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 2493b8ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 57131e29..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementDataModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index bac66fab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d1f82041..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 6c80fd03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 265ff631..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 3b4251eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementModel.go +++ /dev/null @@ -1,71 +0,0 @@ -// 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 -, where is a lowercase two-letter code derived from ISO 639-1 and 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 deleted file mode 100644 index 24d497ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementRequest.go +++ /dev/null @@ -1,2221 +0,0 @@ -// 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 deleted file mode 100644 index 57148226..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskAction.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index c6fc64e6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index fff86b3e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 34cf2d60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e190e5d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7c5ce4c0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 3aa58b42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 0523ac45..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index af4d8a1c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 9133321d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f8faed51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceActionTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 9cd4dfd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 12cfb672..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f1569335..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index d4805d52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d3309fd3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAction.go +++ /dev/null @@ -1,250 +0,0 @@ -// 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 deleted file mode 100644 index 26797c62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d08178fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 41060c50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index c76b6817..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3db43cf0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1ecf815c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index e147b185..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index c0a77006..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6197116e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyRequest.go +++ /dev/null @@ -1,529 +0,0 @@ -// 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 deleted file mode 100644 index 485c65f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7f56178b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 2896f5f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 86d6650c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index fd324d1c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6295c0f0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7f3abab7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 09c2ff4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 07a524af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceSettingStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ac030716..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ef459d35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1adbdec0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 8c81da8c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceComplianceUserStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0c0e788b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAction.go +++ /dev/null @@ -1,358 +0,0 @@ -// 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 deleted file mode 100644 index a70244e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c96cdee5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a6e73272..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index be59d3e7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fbbdd193..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index ccf588b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 13f92c9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 9fc4976e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 764b75b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 2d831375..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 64772f6a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index bd20e038..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index dc0369e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 8e43c98a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c0bf5ecc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationRequest.go +++ /dev/null @@ -1,529 +0,0 @@ -// 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 deleted file mode 100644 index 32dc620e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationSettingStateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e3e4c6f0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 72323c3d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 32b4b408..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 8a5a5293..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 9d603631..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d60d5bb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index bd315803..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2db48021..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 4750918d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fd41b219..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceDetailModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 3e7def8e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go +++ /dev/null @@ -1,172 +0,0 @@ -// 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 deleted file mode 100644 index 1f4d2f07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 3db357fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index f807eace..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index 6938d30a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 4ab86e86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index dcb50c7f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index b597b9d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentTypeEnum.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index 504a2c35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index e53ba177..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 1b7024b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGeoLocationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 4f044482..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 16653fa2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ebb19cbc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index b52a70cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 9817406e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthAttestationStateModel.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 7558b383..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 9adc1b08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 4462aa51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1d7ee1a6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ca40e53d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 62a00f31..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index d6e4aca1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index 43819a58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 3f97bce1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d2095b0d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index afef33fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceInstallStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fd0ae467..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceKeyModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 829342ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a88397e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a9a3c1d6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 98a5e64a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAction.go +++ /dev/null @@ -1,101 +0,0 @@ -// 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 deleted file mode 100644 index 62ea55a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b2dac2b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 74c1fc86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 740364dc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index fb593c4d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index 4b471019..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2641fcac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index bc3480c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f253128b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f9f8da13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 99dee4c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 4ff53978..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 336dafb6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComparisonResultEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index bc29d202..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9f6e3c10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2ba7d82b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 487079df..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementConstraintModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 02fe0238..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 4b00a34a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7aff8ff9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index c6016e3a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4ee7d7ed..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 908b289b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 23669ae8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d90c73cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumConstraintModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 81c6d16b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementEnumValueModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 98a559e7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 18f0059c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ee7514ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 19156f8c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 05e6d673..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go +++ /dev/null @@ -1,137 +0,0 @@ -// 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 deleted file mode 100644 index 7883b0ce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index c0857f8e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index aee34980..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 93b1913b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 358efc6c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index cac15843..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 9a8f232b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b6e26ae4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 2251e7aa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 55d86c67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index a3703a99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementExportJobRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b24e21f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index c66ef2df..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAction.go +++ /dev/null @@ -1,103 +0,0 @@ -// 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 deleted file mode 100644 index 64dc96da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 4d323ea3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b598e24b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 7564570a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ce60722f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 3a4897d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c504f93f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index ce75ca99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 93361b5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index e1af279d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentRequest.go +++ /dev/null @@ -1,623 +0,0 @@ -// 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 deleted file mode 100644 index acbc4a5a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7c2f943f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 6aa7b773..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 8897c7c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c0197aca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index bfaa90b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0d303c16..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementModel.go +++ /dev/null @@ -1,207 +0,0 @@ -// 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 deleted file mode 100644 index 5dfbca1e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 073fe3e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index aebca190..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 250a0a4d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7cb98786..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 03e51714..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index fcd329f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 5fe6e130..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportScheduleRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6591f4e7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index e91994a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsAction.go +++ /dev/null @@ -1,244 +0,0 @@ -// 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 deleted file mode 100644 index adf624b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b7c8c144..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementReportsRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index ad626596..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementRequest.go +++ /dev/null @@ -1,6542 +0,0 @@ -// 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 deleted file mode 100644 index 3ad12449..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 27f01a3f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAction.go +++ /dev/null @@ -1,134 +0,0 @@ -// 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 deleted file mode 100644 index 7bff9864..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 25bd6a67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9ebf4325..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 839154f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index dd547ced..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ad1fb68c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 53e1cf7d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3eb7454b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 9949619c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRequest.go +++ /dev/null @@ -1,428 +0,0 @@ -// 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 deleted file mode 100644 index 686c9574..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 49a1718f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9b18ad5e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2cbfee4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index aaa2c61c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a638dfae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d4a52abf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 4c90f779..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingComparisonModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index c506bb70..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 8ef072f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 99f79db8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingDependencyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ddfc6f5c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9658cdc9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 91092cd8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6e946846..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b1c134e6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e548f871..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index ab44bda1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSettingsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 15bcaa52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 74a56199..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 292c5b0c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 1064e5d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateAction.go +++ /dev/null @@ -1,44 +0,0 @@ -// 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 deleted file mode 100644 index 0cc7ec1b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index a309c1ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 1b55cdbd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8857fcef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 95e0d602..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index df0ac4b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 880b0e67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7922b6a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index a294f0db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b9266960..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 823e5dd0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index cba87a8a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 42de87ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceModel.go +++ /dev/null @@ -1,71 +0,0 @@ -// 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 deleted file mode 100644 index 59f81e8e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 44d1bc22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DevicePlatformTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index efe93189..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceProtectionOverviewModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 6a7c0b28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRegistrationStateEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 8b56fbf0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRequest.go +++ /dev/null @@ -1,609 +0,0 @@ -// 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 deleted file mode 100644 index a5af4498..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceRestrictionActionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9f514fff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceSetupConfigurationModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index db5b610e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index fb910dbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypeEnum.go +++ /dev/null @@ -1,185 +0,0 @@ -// 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 deleted file mode 100644 index 4a40c409..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DeviceTypesEnum.go +++ /dev/null @@ -1,185 +0,0 @@ -// 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 deleted file mode 100644 index fc608934..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/DiamondModelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go deleted file mode 100644 index 5a5f420b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DiamondModelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 51718cd8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index c079b571..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index c06bf42c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 580d2bbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DimensionValueRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index abe9525e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index c12debcc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryAuditRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 11368988..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 71925e51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index bd6de9f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 244154ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryDefinitionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a12eeed2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index da5e8ebf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectAction.go +++ /dev/null @@ -1,1398 +0,0 @@ -// 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 deleted file mode 100644 index 024ca6a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 536b5032..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index db3c9a28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6dc5073a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 152237cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index c59d2a1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 80e22f5e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5746f208..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectoryRoleTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e98c4d19..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c63996e1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8f07bea0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 2b2d6cad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DirectorySettingTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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/DiscoverySourceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go deleted file mode 100644 index 0e035005..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DiscoverySourceEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 60e17594..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DiskTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 4726c7f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 939255ce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpActionInfoModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 780ef0a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e47f7e51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9bbce623..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationInputModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f4b94962..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9d0f31f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpNotificationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9bfe5717..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpPoliciesJobResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a3b3b741..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index aa27ce09..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6f641315..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 928e169e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 442dfb4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentReplyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ee96c9b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentCommentRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 2417f665..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index dbcf817a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DocumentRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index d51198d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainAction.go +++ /dev/null @@ -1,68 +0,0 @@ -// 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 deleted file mode 100644 index ad096d95..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSCnameRecordModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7f4a0f00..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSMxRecordModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 4f616d8c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index d4d05a77..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSRecordRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8ebde677..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSSrvRecordModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 4c8a6940..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSTxtRecordModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3a4fe1a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainDNSUnavailableRecordModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 19583701..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 3c1ce2a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainNameSourceEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 75b30d62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainRegistrantModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2073f920..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index c99d9ffd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index d338a4fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainSecurityProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index deeb8309..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DomainStateModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/DriveItemAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go deleted file mode 100644 index 3bc21497..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemAction.go +++ /dev/null @@ -1,461 +0,0 @@ -// 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 deleted file mode 100644 index ffb553c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemModel.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 8224630b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemRequest.go +++ /dev/null @@ -1,637 +0,0 @@ -// 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 deleted file mode 100644 index 248a0828..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemUploadablePropertiesModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 95778edd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index f66da37a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c2ec7c03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveItemVersionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a1e49d63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 3c1ca6b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveRecipientModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 22081d28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/DriveRequest.go +++ /dev/null @@ -1,529 +0,0 @@ -// 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/EapFastConfigurationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go deleted file mode 100644 index a43dffc3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EapFastConfigurationEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 8af9ed28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EapTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 23c081bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EasAuthenticationMethodEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/EasServicesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go deleted file mode 100644 index adb5b31f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EasServicesEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 77007297..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeCookiePolicyEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index c99f8021..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index ca21318b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonHiddenModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 5514642a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 3640a15a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e07e53b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6344223e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a918dcce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeOpenOptionsEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index d33862b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineBaseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index abed14a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineCustomModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a7dfdd8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 005b55ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeSearchEngineTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index cb830645..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EdgeTelemetryModeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/EditionUpgradeLicenseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go deleted file mode 100644 index cc615fd5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e5ce1dd5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 85fe62cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentClassRecipientModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index a4661d21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 004b41d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGradeTypeModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 38f6511d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 562319dc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 08ae5d18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index ca093263..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 4ed76b5e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8a587f75..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRecipientModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 8d1ad005..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentRequest.go +++ /dev/null @@ -1,334 +0,0 @@ -// 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 deleted file mode 100644 index e44d99f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d455e5db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentResourceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ba8e21bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationAssignmentStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 29ed16b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a6fc0e5a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a00367f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 8802059e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationClassRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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 deleted file mode 100644 index 9e919e48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCourseModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index fca7fc7a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationCsvDataProviderModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 07c65bb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationExcelResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0a1567c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationExternalSourceEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 215a8d39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index acc27d68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFeedbackOutcomeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bb69611d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5c56b6c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b5778640..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationFormResourceModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 130ae11d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationGenderEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index da9d4815..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index fc5dbc86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityDomainModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c6eb6385..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e6565783..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index c2eaa593..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c43d46c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationItemBodyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6058bf94..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationLinkResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 78653869..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationMakeCodeResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d0507396..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOnPremisesInfoModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f1790b93..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneNoteResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 394dc5f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index e4b8fd5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOrganizationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 52040f35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 94c9de4a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationOutcomeRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0dc18a93..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPointsOutcomeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2eda79b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerPointResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9936f216..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index de3688bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationResourceModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index d26d1d5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 1ead70bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRootRequest.go +++ /dev/null @@ -1,428 +0,0 @@ -// 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 deleted file mode 100644 index babf4c4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index d7c55bdc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricOutcomeModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 9ad4028f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationRubricRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3659b707..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 85501b49..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSchoolRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index 948e048f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationStudentModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 5ddb69d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionAction.go +++ /dev/null @@ -1,98 +0,0 @@ -// 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 deleted file mode 100644 index a8b9a8f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f02c8e24..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 2fb17f27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRecipientModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c728169f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 6f8abc54..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 679f4a53..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionResourceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 69dc68b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSubmissionStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 780b3991..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 4c61415c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 058e832f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 36e6dc13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index e3fc548f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationDataProviderModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c9e40e6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 6590bd8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationErrorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a1659c6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a092bbc7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c438bc58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index eda8c082..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileAction.go +++ /dev/null @@ -1,188 +0,0 @@ -// 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 deleted file mode 100644 index 7a0b9d79..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 5f636187..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index d0d934f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 3b94b97b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f2334409..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 48b3f884..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationSynchronizationStatusEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 6550174e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationTeacherModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f20cc8f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationTermModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 3861876e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserModel.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 deleted file mode 100644 index bf517cfc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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 deleted file mode 100644 index e4577d22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationUserRoleEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index c1649254..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationWordResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3c5cda2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityDetailModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index b3e3a7bf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/EmailActivityStatisticsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go deleted file mode 100644 index 45ac2345..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityStatisticsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 0b493a26..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivitySummaryModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index be31280f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailActivityUserDetailModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 02b2216e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAddressModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 32e50815..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 47b550e1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserCountsModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 5bd36e7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageUserDetailModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 67e0f4ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 45d4cdef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailCertificateTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d541c639..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 47ea57ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailRoleEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 895d72ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncDurationEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 22ee3f27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailSyncScheduleEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 6788e39b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmailTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index c7b484be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 47293873..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index 5b6934c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e898780f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 18af5e00..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a88c4084..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 8e8d0d06..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 9dac62fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5f61f42e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index bd44c6fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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 deleted file mode 100644 index d6b2b2e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EmployeeRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 39726fb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnablementEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9194d28e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptContentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e89ade59..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 5a29cf2c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithTemplateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c8c99ee6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 22be9eb2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReadinessStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/EncryptionStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go deleted file mode 100644 index 65d52cea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/EndpointTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go deleted file mode 100644 index ac5c8e41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EndpointTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index e02725db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 041fb9b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a01ff532..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index 852460a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 8e52004d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c098ce01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1f29db2f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index d4154aff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/EntitlementManagementRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go deleted file mode 100644 index d2601fee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementRequest.go +++ /dev/null @@ -1,891 +0,0 @@ -// 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 deleted file mode 100644 index 96c93ceb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntityModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/EntitySetNamesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go deleted file mode 100644 index 64b7fc42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntitySetNamesModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 037283e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntityTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index dc2e7fc4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntryExportStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 07347d89..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EntrySyncOperationEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ea9b0004..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ErrorCodeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/EvaluateDynamicMembershipResultModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go deleted file mode 100644 index d8b94179..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index bbdaa41d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResponseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index bd908895..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index cf3e5411..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelJobResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f7c72f91..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ea9cb4d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 73843983..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 40366c79..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventAction.go +++ /dev/null @@ -1,239 +0,0 @@ -// 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 deleted file mode 100644 index 76176931..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 95dd4c37..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index be1f8af6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectAction.go +++ /dev/null @@ -1,111 +0,0 @@ -// 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 deleted file mode 100644 index acd152ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 16b6b7a7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 48ee9c02..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventMessageResponseModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 17389b48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventModel.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index 5b6cd264..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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 deleted file mode 100644 index 975d327f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/EventTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 933dcd73..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index f5725d1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchClassificationResultModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 67bccbe8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreAction.go +++ /dev/null @@ -1,104 +0,0 @@ -// 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 deleted file mode 100644 index d5a41493..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index a05f516a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchDataStoreRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 4d77efe6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchJobBaseModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 2679612a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2b8bba60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchLookupJobRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index a2f7f71a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionAction.go +++ /dev/null @@ -1,96 +0,0 @@ -// 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 deleted file mode 100644 index 7b110ff2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2e27695d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchSessionRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index c18132ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 45b390a2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExactMatchUploadAgentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3aa5279e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExchangeIDFormatEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/ExpressionEvaluationDetailsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go deleted file mode 100644 index ac17f9f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionEvaluationDetailsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 60108c9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExpressionInputObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 807a8d04..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedKeyUsageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c2b67a17..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 30971fcd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 749b4634..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 346cd271..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionPropertyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6564e995..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5e49b19c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExtensionSchemaPropertyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bf36edd2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalAudienceScopeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 5f0f56ab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 9d76e081..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalConnectionRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index ebf82e1d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalFileModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index d785bd9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 91359fe5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bbf90ed4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalLinkModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0b668b10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5bb6cd4e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ExternalRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 5940567a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index eb21ba70..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureRolloutPolicyRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 40a26a9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 19b77a4c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FeatureUsageDetailModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/FileAssessmentRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go deleted file mode 100644 index 46fe71ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileAssessmentRequestObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 4d4774bf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileAttachmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a0fb98db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d2736da6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileClassificationRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 510a1ef1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileEncryptionInfoModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index f1a6dbb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileHashModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f21c9d73..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileHashTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 5cfe5b17..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f73c3611..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 5e0052d2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a50e2dba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileSecurityStateModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d0c5713a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileSystemInfoModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 7468b91a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FileVaultStateEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index d4229ab9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FilterClauseModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 6c64ae44..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FilterGroupModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f3396bb8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FilterModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b2a6511c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperandModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f60c3a12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/FinancialsRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.go deleted file mode 100644 index 67b0cb83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 51f2c573..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 0c4347ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a6bcc5e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/FolderModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go deleted file mode 100644 index f310c510..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FolderModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d1712fff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FolderProtectionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a799fb94..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FolderViewModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/FollowupFlagStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go deleted file mode 100644 index b47c3d45..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagStatusEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/FreeBusyStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go deleted file mode 100644 index 3f4889ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 7f0b0121..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 95700e05..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GeneralLedgerEntryRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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/GiphyRatingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go deleted file mode 100644 index bdbce185..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GiphyRatingTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 59623596..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceCriteriaModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 5cb8fdda..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationPolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 462a5a6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceNotificationTemplateModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 260395fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePermissionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index cc34f758..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f5a2676e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c8533d51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernancePolicyTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0a401402..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index f074ef2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d87f200b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceResourceRequest.go +++ /dev/null @@ -1,428 +0,0 @@ -// 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 deleted file mode 100644 index 2d276a16..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 149fe4ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequest.go +++ /dev/null @@ -1,66 +0,0 @@ -// 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 deleted file mode 100644 index 0e5cdeae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go +++ /dev/null @@ -1,74 +0,0 @@ -// 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 deleted file mode 100644 index 7ce2492c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index b5f5fb01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index faf3a16a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a3c527cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 9407e678..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleDefinitionRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 286e02cc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 71a71953..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRoleSettingRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index f871f596..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceRuleSettingModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 93767704..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceScheduleModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index d7c0c749..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 6ae2648f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GovernanceSubjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2211ce6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GraphServiceRequest.go +++ /dev/null @@ -1,8560 +0,0 @@ -// 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 deleted file mode 100644 index 1e046e91..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupAccessTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index be991718..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupAction.go +++ /dev/null @@ -1,417 +0,0 @@ -// 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 deleted file mode 100644 index 4d9c88be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupAssignmentTargetModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index d11dd4f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyAction.go +++ /dev/null @@ -1,104 +0,0 @@ -// 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 deleted file mode 100644 index be7e003e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ee936dd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupLifecyclePolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 81a4e9bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 40880082..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupModel.go +++ /dev/null @@ -1,155 +0,0 @@ -// 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 deleted file mode 100644 index c1f9f38b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAction.go +++ /dev/null @@ -1,136 +0,0 @@ -// 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 deleted file mode 100644 index fc7b6801..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e4f4b5e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 80f5b53c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 11e916b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 20e101d2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index bc29f880..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 780a9a3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 3085c955..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 05301122..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 69d1d59d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index cdf88390..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 78539f53..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 7b00c646..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 3bc1b4cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportAction.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5cc081aa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 707e96b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyMigrationReportRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 35b18f52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyObjectFileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a86e0800..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 12a86997..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 4b4a45e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 3dfb939f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c85e4d97..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9b36bffb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6a3556ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 74758ecf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index dc201319..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e4d09d01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index e8074d41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 50cbc2ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationTextModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 8b7f397b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index cbcb2ff8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 019b3000..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueListModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a32ae6e1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index d073a725..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index ec151df7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1517a648..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 4c2a5a21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 85c3e273..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index dce6ddf8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingMappingRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index aa29bb47..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingScopeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 0691eb9a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicySettingTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d7e3f5fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPolicyTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 3cf2cad9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupPrivacyEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f9aca3c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupRequest.go +++ /dev/null @@ -1,2068 +0,0 @@ -// 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 deleted file mode 100644 index 2d0127af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/GroupTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 734d7648..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/HardwareInformationModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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/HashAlgorithmsEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go deleted file mode 100644 index 8fc657f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/HashAlgorithmsEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/HealthStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go deleted file mode 100644 index 4676928e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/HealthStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7b1b3c28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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/HostSecurityStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go deleted file mode 100644 index 64ed9885..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityStateModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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/IOSBookmarkModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go deleted file mode 100644 index 2c630a7a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSBookmarkModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 76bb1a78..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b1dc9224..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileBaseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9ad7fdbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index d97fa04d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCertificateProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 21fa4256..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCompliancePolicyModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 67008d7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSCustomConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 5aa3259e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a1ac2828..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index e100307d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 215621a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 90e17f99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSDeviceTypeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b7132fef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go +++ /dev/null @@ -1,61 +0,0 @@ -// 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 deleted file mode 100644 index b94a0140..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go +++ /dev/null @@ -1,66 +0,0 @@ -// 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 deleted file mode 100644 index 2eb8a137..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduCertificateSettingsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 4619fe1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEduDeviceConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 26d16837..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 7904716f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 75072e7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,153 +0,0 @@ -// 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 deleted file mode 100644 index b6ac9880..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,359 +0,0 @@ -// 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 deleted file mode 100644 index 584d7b20..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0c5cdebb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 84f73289..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenFolderPageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b111931e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8c5170c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSHomeScreenPageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index acced846..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7fa295e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 60523e10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 928d1bee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a430b6a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 2640b02c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go +++ /dev/null @@ -1,134 +0,0 @@ -// 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 deleted file mode 100644 index eb3e36d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index d519cf6a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 78cdc6a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 52e153e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 68d80f22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go +++ /dev/null @@ -1,421 +0,0 @@ -// 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 deleted file mode 100644 index 1676b175..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index ad3f1dd3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 83979855..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppProtectionRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 2e13b300..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSManagedAppRegistrationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c7e9394a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMinimumOperatingSystemModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index cae13420..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppConfigurationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3d90f4f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSMobileAppIdentifierModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3e760e1c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNetworkUsageRuleModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 970486d2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationAlertTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 0d29accb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSNotificationSettingsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 94e97d21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 179ea2bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 59e07b03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index d03f82d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSScepCertificateProfileRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index b214ba3f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSSingleSignOnSettingsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 3f7890f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 68700edd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSStoreAppModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 31b64426..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8dc88046..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8ac45dda..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4b4b5b1c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 535f3b8b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4162ba14..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go +++ /dev/null @@ -1,145 +0,0 @@ -// 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 deleted file mode 100644 index af47f1b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 567f2569..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 5f6da1ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 72e70100..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAction.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index 789398bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 95ecafbe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 3030b0af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index be6b8ab5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index cdacd968..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9570af5a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 06a1ac21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index e7e75d54..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 98b7995f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookAssignmentModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index a851cc6b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSVppEBookModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index bf4b54b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 7dfa4bd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3188ac9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterBaseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 00c3a0a6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8ee8a847..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IOSWiFiConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 3b88a9b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPCategoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b463b02c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPNamedLocationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index cc38506d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPRangeModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 5e6a0e47..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPReferenceDataModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 25dcd297..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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/IPv4CidrRangeModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go deleted file mode 100644 index 7f50b060..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPv4CidrRangeModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 495c0f06..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPv4RangeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 71de48bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPv6CidrRangeModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 552a8862..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IPv6RangeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 59e639c9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ITunesPairingModeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ecc00f16..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 14bda4a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityContainerRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index d6d0ef2d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 06784d32..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityGovernanceRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5cba56a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 72f9d918..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 45cacbc5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityProviderRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d80118ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index a9964b1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityRiskEventRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 1d06013d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentitySetModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f8af2197..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index fb3bebd4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserFlowRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a4d0210d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IdentityUserRiskModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 37dde817..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImageInfoModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 8349e70f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImageModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/ImportanceEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go deleted file mode 100644 index 910018c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportanceEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ba546f13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go +++ /dev/null @@ -1,102 +0,0 @@ -// 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 deleted file mode 100644 index f447cb55..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7c217b29..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f8de8429..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1a56bcdc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityAction.go +++ /dev/null @@ -1,190 +0,0 @@ -// 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 deleted file mode 100644 index 68d79244..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index c391fec0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fc81c4a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1e21e24e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 46894497..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go +++ /dev/null @@ -1,108 +0,0 @@ -// 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 deleted file mode 100644 index c29f75ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index b419a5e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ae3152ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 037d092d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d15e2af3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 5ef9c58b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 8073038b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/InferenceClassificationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go deleted file mode 100644 index 4c3ef14d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7202bf7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 812328d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationOverrideRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 047fe9f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index c682b8f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceClassificationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f4c5e693..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InferenceDataModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3f3079a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionAction.go +++ /dev/null @@ -1,42 +0,0 @@ -// 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 deleted file mode 100644 index 1d629a4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionActionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6106eb08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionContentLabelModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 7c06c7cc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelAction.go +++ /dev/null @@ -1,315 +0,0 @@ -// 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 deleted file mode 100644 index e1f6a8a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index b1f55ba1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionLabelRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f4eeb2ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 0de7c7b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 61f19865..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionPolicyRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 92ec92ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InformationProtectionRequest.go +++ /dev/null @@ -1,341 +0,0 @@ -// 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/InitiatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go deleted file mode 100644 index b57df40e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index d73d088f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InkAccessSettingEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/InsightIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go deleted file mode 100644 index 50e363d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InsightIdentityModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 913ca57d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueDoubleModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9e354f10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InsightValueIntModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b89abc08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InstallIntentEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 8d334cb4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InstallStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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/IntendedPurposeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go deleted file mode 100644 index 37a6036a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntendedPurposeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 67bbdd93..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InternetExplorerMessageSettingEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/InternetSiteSecurityLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go deleted file mode 100644 index 4d9f070e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InternetSiteSecurityLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 13a78b54..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index 7d07e985..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index d27e8777..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index cc88068c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a5aa919b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileModel.go +++ /dev/null @@ -1,63 +0,0 @@ -// 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 deleted file mode 100644 index 92de586f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IntuneBrandingProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index f97d5feb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InvitationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 3cd99e65..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InvitationParticipantInfoModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1636cd09..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/InvitationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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/IosikEv2VpnConfigurationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go deleted file mode 100644 index 038bd70a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/IosikEv2VpnConfigurationModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index f42c996a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionSetModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index ec30c74e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActionStatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ea191202..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index aecfd61a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index ac5877d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityOLDRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 3027b02a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 73bc8873..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 2e3595ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityStatRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 7f59f89a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemActivityTimeSetModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d1e53b6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f430f426..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAnalyticsRequest.go +++ /dev/null @@ -1,153 +0,0 @@ -// 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 deleted file mode 100644 index 23b043fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 87fd32fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemAttachmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9db08b8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemBodyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ddcee146..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 880e760d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 737d583c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 13d1aefd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemEmailRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e98e4267..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemFacetModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index be9e100c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index b3a8a939..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index fca2c79d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemPhoneRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c11ab480..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemPreviewInfoModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8d7a88c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemReferenceModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 996c3dc6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ItemRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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/JournalAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go deleted file mode 100644 index df0bbd66..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/JournalAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 69464022..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 25342524..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/JournalLineRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index dc1a127a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/JournalModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 674f311b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/JournalRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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/KeyBooleanValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go deleted file mode 100644 index 10167bf7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyBooleanValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 77967012..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyCredentialModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 4cd17b48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyIntegerValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index fcbe3cbd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyRealValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index c620297b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeySizeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index b3860f22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyStorageProviderOptionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2254f761..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyStringValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2d1200eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyTypedValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0a58c199..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyUsagesEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a04cb81d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyValueModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 0ba1f721..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/KeyValuePairModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d0b24709..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LabelActionBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b3e5a8a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LabelDetailsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 7f064102..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LabelPolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/LanManagerAuthenticationLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go deleted file mode 100644 index 2c01a91a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 527ed3d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyLevelEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/LicenseAssignmentStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go deleted file mode 100644 index 4be42bf7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseAssignmentStateModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b19356cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/LicenseInfoDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go deleted file mode 100644 index 850ad2f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseInfoDetailModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 89c2f4bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseProcessingStateModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 50ebfcd1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseUnitsDetailModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index bb58a275..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListInfoModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d6ef73cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 2523ab2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemRequest.go +++ /dev/null @@ -1,254 +0,0 @@ -// 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 deleted file mode 100644 index 05ca2676..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 88b6e707..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 62cb0666..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListItemVersionRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index ddf68195..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 710c1cae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ListRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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 deleted file mode 100644 index a4eb2e71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index ad065e26..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2ce32a01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 60f99426..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 0bcfd367..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 8c0c06f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 21db535a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/LocationConstraintItemModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go deleted file mode 100644 index d16886d5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 34903f11..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationConstraintModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 73d57b81..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationManagementConditionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 5cc1acd4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index acb06b71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationTypeEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index 06d14e58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LocationUniqueIDTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 9e9faf2c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LogLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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/LogonTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go deleted file mode 100644 index 8953b6e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LogonTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/LookupColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go deleted file mode 100644 index 42ae43e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LookupColumnModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index d809fc88..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/LostModeStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go deleted file mode 100644 index 999265fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/LostModeStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index df02f2bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionAction.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 60bc8404..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 78ecbd8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacManagedAppProtectionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9c404879..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 01641caf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4d505bff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCompliancePolicyModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index e13fa444..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomAppConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 68fecc71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSCustomConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 09bfb4fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index b4312867..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9e0c8c56..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 81fd37b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 1cadf1af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 2ba806ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSExtensionsConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 03eaf4c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 010146f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSFirewallApplicationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 399fe897..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index db01c028..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index 83a142b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5b0ba0d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 38ca12d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index be447cd1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSKernelExtensionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index dc2a7067..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLaunchItemModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f15ed8db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobAppModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 8d44cb6f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSLobChildAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b8976fc2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index bcb593f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ed43df5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSOfficeSuiteAppModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 575630ab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 3697b025..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 587d56c9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index cb85630a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSScepCertificateProfileRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 66c01832..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 14bb0f5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6abf833c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 69374387..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSVpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9ef11a65..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiFiConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 1622c7be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 8cd6b641..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index b0f6e5fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 9596b4b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 00390557..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index fcc4e6f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 0963bac9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 2443b150..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 8891591f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailAssessmentRequestObjectModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 13d40638..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailDestinationRoutingReasonEnum.go +++ /dev/null @@ -1,137 +0,0 @@ -// 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 deleted file mode 100644 index ab74b5b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderAction.go +++ /dev/null @@ -1,71 +0,0 @@ -// 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 deleted file mode 100644 index b02a988d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 5a7c1c80..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailFolderRequest.go +++ /dev/null @@ -1,609 +0,0 @@ -// 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 deleted file mode 100644 index 0d5518fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailSearchFolderModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 23fa73c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsErrorModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 448b24cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6eab53bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailTipsTypeEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index e0ac85a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxSettingsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 91ada548..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageDetailModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index bd5b7c26..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageMailboxCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index a3a47676..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 6406afa9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MailboxUsageStorageModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 6ee373f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/MalwareStateModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go deleted file mode 100644 index e9622fe6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MalwareStateModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b521470e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 274d0ae9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1016dc01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidLobAppModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f461f96f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAndroidStoreAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 59a3ff20..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppAvailabilityEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 980adf65..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 12762061..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1c25ac40..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 622e068c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index fc03c9d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index eeb6799a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index fb5ef645..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 720d2d1a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 934b49e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7791a0d5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index a57401a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b473cc1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 922c8e7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a42f9623..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index cf66ff07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 3117fc87..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 45e22395..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 61c75b2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index ba349bd1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a04aef21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index daffa6c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionModel.go +++ /dev/null @@ -1,85 +0,0 @@ -// 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 deleted file mode 100644 index cd3b7d35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7d92d6e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppProtectionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3016f093..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 6ac2cef3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRegistrationRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 68350c36..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppRemediationActionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 42c10204..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b0c46afe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRawModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c354fa50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedAppStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bc8b5946..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedBrowserTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 1aa646b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceAction.go +++ /dev/null @@ -1,908 +0,0 @@ -// 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 deleted file mode 100644 index c7190529..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateModel.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index 331bd7a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f5cfe666..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 9084c352..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index be96ae50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b7eba7c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 8e8c873f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5dc907df..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9b6eb017..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index cb559c3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6c0c19b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 45472974..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d3597eb4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 052821cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index f4997a98..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go +++ /dev/null @@ -1,341 +0,0 @@ -// 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 deleted file mode 100644 index 151ad6ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 3f082ec3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5f57355d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 17081be5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b9b82deb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 90d256ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d75b6161..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModel.go +++ /dev/null @@ -1,165 +0,0 @@ -// 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 deleted file mode 100644 index 66dea095..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1845bf0d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 6fe32df3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 18014278..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index eeb258d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index 9b0d5955..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 0847ea79..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceReportedAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 216679bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedDeviceRequest.go +++ /dev/null @@ -1,623 +0,0 @@ -// 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 deleted file mode 100644 index fa697c02..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 70531260..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 357bcedc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 454df9b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index bb76969c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index eb1a2aa4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 04e5a8f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedEBookRequest.go +++ /dev/null @@ -1,428 +0,0 @@ -// 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 deleted file mode 100644 index efc08398..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSLobAppModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 83a5f9ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedIOSStoreAppModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index b1e63219..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ae65085f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileAppRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index db7f55b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index f3def296..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagedMobileLobAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 1adbaeb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementAgentTypeEnum.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index c9ff838d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5e858b72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6021abe8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionModelModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 064ca641..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionExpressionStringModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 16ae23f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 45056a7c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index cf690943..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 82edde02..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementConditionStatementRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 42424f8a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ManagementStateEnum.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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/MatchingDlpRuleModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go deleted file mode 100644 index 7f17dd43..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MatchingDlpRuleModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index b87362e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MatchingLabelModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index f26f202c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index aca7d147..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmAuthorityEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 182fee32..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index ba7e213f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 9c01deee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 71a08ec6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index aa9c4057..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaConfigModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b10a87d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingAustraliaModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index db661dfc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingCanadaModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d6dc5629..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingFranceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5a90266f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingGermanyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index fdb504e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingIrelandModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f136dec7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingJapanModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b2094488..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingNewZealandModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b781a89d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 870fd089..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 79569acf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaDirectionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index c062bd6b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaInfoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2c3b3411..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaPromptModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d8251a21..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9a8a9da9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MediaStreamModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 6954334a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingActivityStatisticsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4fbc9bee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilitiesEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 40950558..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingCapabilityModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b08732e1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingInfoModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1ccc71dc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingMessageTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 8357e5cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantInfoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ef9698b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingParticipantsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 69a35a0c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index acdc1791..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/MentionActionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go deleted file mode 100644 index f9936958..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MentionActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5089df3c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MentionModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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/MessageAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go deleted file mode 100644 index d3d12a39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageAction.go +++ /dev/null @@ -1,342 +0,0 @@ -// 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 deleted file mode 100644 index 3206d744..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageActionFlagEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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 deleted file mode 100644 index ac00292c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageModel.go +++ /dev/null @@ -1,79 +0,0 @@ -// 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 deleted file mode 100644 index 04b19678..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 150ce2b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleActionsModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 5392f037..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c5cae7b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRulePredicatesModel.go +++ /dev/null @@ -1,69 +0,0 @@ -// 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 deleted file mode 100644 index f0f1066a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MessageRuleRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 36858178..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MetadataActionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b6e80e0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MetadataEntryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c0587e2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/MicrosoftEdgeChannelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go deleted file mode 100644 index 5c46695f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftEdgeChannelEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 860eb4e6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f3b2db9a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 14e63d37..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 74faf3a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1920ad84..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c328c2d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 02b2a8a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MigrationStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/MiracastChannelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go deleted file mode 100644 index 04bc2286..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MiracastChannelEnum.go +++ /dev/null @@ -1,177 +0,0 @@ -// 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 deleted file mode 100644 index fe3fda41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAction.go +++ /dev/null @@ -1,164 +0,0 @@ -// 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 deleted file mode 100644 index 03637b97..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppActionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 99823aca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 64071c5a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b6136a13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppAssignmentSettingsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index df61056d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e52d4d8a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a0e29592..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index e1cb4fe4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 403b5edd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 75828707..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go +++ /dev/null @@ -1,137 +0,0 @@ -// 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 deleted file mode 100644 index dfd26d0e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 972e7400..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppContentRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 62becc1d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8edc8ea0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppDependencyTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 197486ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIdentifierModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 295aa5b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index a9915de4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallStatusRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index c3b7b319..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index ea9b33f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9fd877ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 414167b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 6aa47356..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b097833b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentAndStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 27cc5e4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppIntentEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 88e267a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppModel.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index c1acb183..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPolicySetItemModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e014fa9e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ab3ec2eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 10dda2a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppPublishingStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index c1c5c4c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9ca737bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 171cd83f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRelationshipStateModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index da244238..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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 deleted file mode 100644 index 54e7e740..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 79aeb038..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 673c1c0e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 2651534a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 32f4933e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6aced494..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 954c97c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 6ed09ca7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 54bb3b96..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b4576b33..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index bb7b3c68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileContainedAppRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index db3c45ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 378d21ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileLobAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index e2adddb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3eb27afd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3d2fcd27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 0f900e25..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ModalityEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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/MutabilityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go deleted file mode 100644 index 0875fde0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MutabilityEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 1448c723..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantOperationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 8dc6677d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/MuteParticipantsOperationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/NdesConnectorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.go deleted file mode 100644 index 50ce1f3e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index adee5745..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index dca41a2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NdesConnectorStateEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 96f69349..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkConnectionModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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 deleted file mode 100644 index 2ff7d472..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 19a63c9a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index a583932a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkInterfaceModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 8348e6dd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkLocationDetailModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f3012138..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkManagementConditionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 9de28fd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 0a37715b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NetworkTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 6cbdb43f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 4ba6ab99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 9180ec2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookAction.go +++ /dev/null @@ -1,79 +0,0 @@ -// 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 deleted file mode 100644 index 8ede3482..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookLinksModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 22aabd6a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 4234ade4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotebookRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 639588cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index e2b4a374..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index ae9a80ab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationMessageTemplateRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 9166da7d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index cebf668f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1921d035..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/NumberColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go deleted file mode 100644 index a7d4864b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NumberColumnModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 37d7c412..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/NumberRangeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/OMASettingBase64Model.go b/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go deleted file mode 100644 index 196562a7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBase64Model.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a54d6b10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingBooleanModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 69d5e171..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingDateTimeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a90a8abe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingFloatingPointModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5fe6ef58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingIntegerModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 59ae0d25..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 03f929bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 50b44465..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OMASettingStringXMLModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5a6bc8ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectDefinitionModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index ce1f0ed2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectFlowTypesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ef82a2e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectIdentityModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a24b831a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ObjectMappingModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a7ec259a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationCountsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 60a1d0a4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index ebf4b23c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActivationsUserDetailModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 8d9a2a92..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserCountsModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index c8ed2238..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ActiveUserDetailModel.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index ffd5dd0c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityCountsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 667682c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityDetailModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 7993931f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 3178f6f3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0d7c8c02..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365GroupsActivityStorageModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 61094ea7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Office365ServicesUserCountsModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index a1153529..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientCheckinStatusModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index e1707c3c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAction.go +++ /dev/null @@ -1,134 +0,0 @@ -// 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 deleted file mode 100644 index 61627d56..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 543b10ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 60bfc4f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c4b6f6d5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeClientConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 298d3705..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 30c8b6e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0ad9e2f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index cc6b5d4a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index f6aa9491..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 4363ad4a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeGraphInsightsRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 99110963..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeProductIDEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2c1899ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteAppModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 141caf32..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 997e27e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUpdateChannelEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 3d8b71e7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OfficeUserCheckinSummaryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d9b606f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 21455785..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentGroupRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 6831ec96..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f2a67209..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesAgentRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 39879372..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index b53c337a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 110b8f4c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesExtensionAttributesModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 2cc609ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesProvisioningErrorModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 9bcde847..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index bbcb2b72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingProfileRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index c7705826..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnPremisesPublishingTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2708a3c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveActivityUserDetailModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 2effd899..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 9df759c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageAccountDetailModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 267ff2c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OneDriveUsageFileCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 14ec4e9e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityBaseModelModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a7757077..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 709f88e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8a044979..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index cf90c382..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationErrorModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c303c06d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 3d1ef286..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ff8a78a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageAction.go +++ /dev/null @@ -1,76 +0,0 @@ -// 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 deleted file mode 100644 index 1e169e6b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index f5ad2e30..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewLinksModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8012f495..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePagePreviewModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6157d771..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePageRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 1e5b9253..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchActionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 1adddd1a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchContentCommandModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index de5c3c08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenotePatchInsertPositionEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 6fac4f8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteRequest.go +++ /dev/null @@ -1,609 +0,0 @@ -// 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 deleted file mode 100644 index 9d4f1cd8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 613d19b3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteResourceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3e7237cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionAction.go +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index 18faeb7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 56838ad6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSectionRequest.go +++ /dev/null @@ -1,153 +0,0 @@ -// 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 deleted file mode 100644 index accbaa26..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteSourceServiceEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 66fdde82..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnenoteUserRoleEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index a5e41448..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingInfoModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 09e0a0c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 0736597d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/OpenShiftChangeRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go deleted file mode 100644 index 895955b3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1cd46c63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8af612c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 458f061a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e926c5d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenShiftRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5c765c03..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OpenTypeExtensionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/OperationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go deleted file mode 100644 index 37b79fc0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OperationErrorModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 56282904..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OperationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 650a35a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OperationResultEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index aa48d31c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OperationStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 732e45bf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index da1c7c92..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OptionalClaimsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/OrgContactRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go deleted file mode 100644 index 2f1f40f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactRequest.go +++ /dev/null @@ -1,334 +0,0 @@ -// 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 deleted file mode 100644 index 956e56a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index b3ee988a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationModel.go +++ /dev/null @@ -1,63 +0,0 @@ -// 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 deleted file mode 100644 index bdac6b2d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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/OutlookCategoryModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go deleted file mode 100644 index 914b71bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a1686b7f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookCategoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c015db70..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookGeoCoordinatesModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 121b9842..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 0332d379..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e55b650b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskAction.go +++ /dev/null @@ -1,98 +0,0 @@ -// 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 deleted file mode 100644 index c6188504..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index c8211077..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskFolderRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index c279ea99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 64eff5b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskGroupRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index c76ef6b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9386f415..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookTaskRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index eb6f6726..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 755c6755..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OutlookUserRequest.go +++ /dev/null @@ -1,421 +0,0 @@ -// 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 deleted file mode 100644 index 8ad214d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OverrideOptionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ddd7639c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/OwnerTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/PageOrientationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go deleted file mode 100644 index b5a15aa0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PageOrientationEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/ParticipantAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go deleted file mode 100644 index 95eae611..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantAction.go +++ /dev/null @@ -1,108 +0,0 @@ -// 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 deleted file mode 100644 index 37648f4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantInfoModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 35bf6ca7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 79f47844..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ParticipantRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index afc69f01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordCredentialModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index e585397f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordProfileModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 42f52d95..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/PayloadRequestObjectModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go deleted file mode 100644 index b6720106..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadRequestObjectModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 95115624..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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/PayloadTypesModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go deleted file mode 100644 index 9ed23d9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadTypesModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b6f587e0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index f2a3c658..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentMethodRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d3fd3af6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c3e8b4eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PaymentTermRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ee9f6f35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PendingContentUpdateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 850315ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PendingOperationsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f0f383c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionAction.go +++ /dev/null @@ -1,102 +0,0 @@ -// 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 deleted file mode 100644 index bdcc8600..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionClassificationTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 47b12ed6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 38cba0fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6d7eb2af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PermissionScopeModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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/PersistentBrowserSessionModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go deleted file mode 100644 index a05f1613..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionModeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ff48dd8c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 4595aa01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonAnniversaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1a8a40c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonDataSourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 1f7c2ca9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 38b68cf5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonInterestRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9ecbc81f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 7af3a9e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 8300540f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonNameRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 44243448..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonOrGroupColumnModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d3a2cbc7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonRelationshipEnum.go +++ /dev/null @@ -1,137 +0,0 @@ -// 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 deleted file mode 100644 index 3125ebc7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b4493640..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index e081ad3e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PersonWebsiteRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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/PhoneTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go deleted file mode 100644 index 735dbf38..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PhoneTypeEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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/PhysicalAddressModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go deleted file mode 100644 index a19e5276..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 7da1b037..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalAddressTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 88f745da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PhysicalOfficeAddressModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/PlaceTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go deleted file mode 100644 index 9ab1c196..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlaceTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index ce466bd8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAppliedCategoriesModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 0d5e3c5f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9b13b0cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bc991c39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index a8d80044..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerAssignmentsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 66e099cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2ad2e3d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 6b4f46ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 497a3433..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bcef060c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerCategoryDescriptionsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 6f371bc9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index fbdbb0d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerChecklistItemsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index f038c164..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index e8a6b764..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerDeltaRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4bcf51a2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferenceModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index b61417fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerExternalReferencesModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 92c682b4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 3e1d40c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 408bb577..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6b26f8e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerGroupRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 7e751989..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9b389e97..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index a30ddcd0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextCollectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index bde4cfed..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index f3601cb8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextDetailsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5fc6e1a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanContextModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 25d5936f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f68bf289..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanDetailsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9d1328da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 8a0d52a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPlanRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index 4782c785..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerPreviewTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 254cfbd2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2f9b99a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6ee5a020..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index bf35ed91..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRecentPlanReferenceModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1d666b2f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index bb8f8142..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 0999a42f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskDetailsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9fc16b19..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskModel.go +++ /dev/null @@ -1,61 +0,0 @@ -// 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 deleted file mode 100644 index fed430e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerTaskRequest.go +++ /dev/null @@ -1,66 +0,0 @@ -// 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 deleted file mode 100644 index 1853ce12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserIDsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 0d7d79ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 17a765a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlannerUserRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index 72d725e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlatformEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 13762fe9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptCompletionReasonEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/PolicyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go deleted file mode 100644 index ff972708..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicyModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index b5fde1bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicyPlatformTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index fe336da7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicyRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 8f0e9145..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAction.go +++ /dev/null @@ -1,138 +0,0 @@ -// 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 deleted file mode 100644 index f3b19e58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index dcc5577a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c818df15..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 2704a8e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 82ec4a69..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index d4f9adc9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 02651e68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PolicySetStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 589658f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PositionDetailModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 125be755..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PostAction.go +++ /dev/null @@ -1,71 +0,0 @@ -// 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/PostRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.go deleted file mode 100644 index b2de3455..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PostRequest.go +++ /dev/null @@ -1,522 +0,0 @@ -// 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/PowerActionTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go deleted file mode 100644 index 388fe658..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PowerActionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/PrereleaseFeaturesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go deleted file mode 100644 index 6f6baaae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrereleaseFeaturesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/PriorityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go deleted file mode 100644 index 5c323c9a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PriorityEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/PrivilegedAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go deleted file mode 100644 index e82537ab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index cdea628c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedAccessRequest.go +++ /dev/null @@ -1,515 +0,0 @@ -// 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 deleted file mode 100644 index adc1038a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 2a03bf1d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedApprovalRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index c4a80273..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 2ff8fbbc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedOperationEventRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c5c745fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAction.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 662851b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentAction.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index a151a71d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index a52f9513..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index c639566a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go +++ /dev/null @@ -1,36 +0,0 @@ -// 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 deleted file mode 100644 index 523be52b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 5d27da07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index fd66f0bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 51fe960f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleRequest.go +++ /dev/null @@ -1,153 +0,0 @@ -// 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 deleted file mode 100644 index 07aefeca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index a7f94aa1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ea68d4ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index bec977bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedRoleSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fa98ee35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusAction.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 476b1e06..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a5b283ee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PrivilegedSignupStatusRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a5aa8ba5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProcessIntegrityLevelEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/ProfileModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go deleted file mode 100644 index b621d95e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProfileModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index df22c7f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1ea4be6d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProfilePhotoRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ee6e8e85..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProfileRequest.go +++ /dev/null @@ -1,1267 +0,0 @@ -// 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 deleted file mode 100644 index d94bda89..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index a6683bbc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index bfec5517..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a7c2704a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramControlTypeRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bfc6f75c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 2ebd9fd6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index f7948705..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProgramResourceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/PropertyModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go deleted file mode 100644 index d4ae2730..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PropertyModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f8906dca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PropertyToEvaluateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2707b260..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PropertyTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index bfc90339..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectAdhocActionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 0299a417..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectByTemplateActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f94f4057..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectDoNotForwardActionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index c4c7cb14..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectGroupModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 42fd96b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProtectSiteModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/ProvisionedIdentityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go deleted file mode 100644 index dc97ccb8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedIdentityModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 0faa7144..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisionedPlanModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ffb46326..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/ProvisioningResultEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go deleted file mode 100644 index 4a5be3c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningResultEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 1cc0429f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 2d6f7106..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningStepTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 4eb67341..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningSystemDetailsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/PublicClientApplicationModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go deleted file mode 100644 index 6bd8a9ce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublicClientApplicationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8923c930..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorDetailModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 9262b433..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b7bd5c23..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublicErrorResponseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 16bce035..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublicInnerErrorModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/PublishedResourceRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.go deleted file mode 100644 index 43723a60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index d1a67162..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index d989cfab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineModel.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 1b9002e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceLineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 9293da66..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceModel.go +++ /dev/null @@ -1,69 +0,0 @@ -// 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 deleted file mode 100644 index 3c21bb3a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/PurchaseInvoiceRequest.go +++ /dev/null @@ -1,153 +0,0 @@ -// 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 deleted file mode 100644 index da581a9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/QuarantineReasonEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/RatingAppsTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go deleted file mode 100644 index b70954f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingAppsTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index a7e39fb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2823071a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 4a001c6e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 3014ff9b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index ac24c575..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceMoviesTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index bd2cfda2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index b21b1fcd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2a00bec4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 964f4da8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 82b3a391..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index cd8671ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanMoviesTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 84e221b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 88e28c83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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 deleted file mode 100644 index 441cd35d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 7b57cc51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index ad86b8c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ff27f3e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index b0374b35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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/RbacApplicationRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go deleted file mode 100644 index 692fbc7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index e05d467b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookLinksModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 45fe04bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecentNotebookModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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/RecipientScopeTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go deleted file mode 100644 index f1113907..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecipientScopeTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/RecordCompletionReasonEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go deleted file mode 100644 index a3b85adb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecordCompletionReasonEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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/RecordingStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go deleted file mode 100644 index ded52481..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecordingStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 89af15a0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4ac3a432..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrencePatternTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index d7121ea1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 824625c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RecurrenceRangeTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ReferenceAttachmentPermissionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go deleted file mode 100644 index 82caf227..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 2624db26..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentProviderEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/RegistrationAuthMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go deleted file mode 100644 index 18036f96..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationAuthMethodEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index d9df1458..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RegistrationStatusTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index d9e6d54c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryHiveEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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/RegistryOperationEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go deleted file mode 100644 index aab7a2a2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryOperationEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 80eed752..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryValueTypeEnum.go +++ /dev/null @@ -1,113 +0,0 @@ -// 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 deleted file mode 100644 index 2996e689..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RejectReasonEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 71307111..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RelatedContactModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 89d8bb28..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RelatedPersonModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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/RemediationStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go deleted file mode 100644 index c2c2442e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemediationStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/RemoteActionAuditModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go deleted file mode 100644 index 23362e0c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 78e24eb4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionAuditRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ebf83106..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteActionEnum.go +++ /dev/null @@ -1,193 +0,0 @@ -// 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 deleted file mode 100644 index d3307118..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index c22011f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index f4c25b06..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f713cfd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteAssistancePartnerRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d8e0434b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteItemModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5d35b431..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoteLockActionResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5c45fd65..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentFooterActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 44f5a8a8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveContentHeaderActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index eecc9f80..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveProtectionActionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 83a2d99a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RemoveWatermarkActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/ReportModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go deleted file mode 100644 index d514a389..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ReportModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a6db5273..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e0ce0890..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ReportRootRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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/RequestObjectAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go deleted file mode 100644 index e37e70b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectAction.go +++ /dev/null @@ -1,69 +0,0 @@ -// 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/RequestObjectRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go deleted file mode 100644 index 4183b946..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 82bbdffc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RequiredPasswordTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/RequirementProviderEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go deleted file mode 100644 index 0848e87d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RequirementProviderEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ResourceAccessModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go deleted file mode 100644 index 8625c677..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceAccessModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e258fa4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceActionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index de52fa1e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b1b94f07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index dd1aaf61..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePermissionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 55f23dc6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourcePropertiesModelModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ba8e92e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceReferenceModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index eca0b27b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index dcb83ff1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c456bd0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceSpecificPermissionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 55a200c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResourceVisualizationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/ResponseTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go deleted file mode 100644 index 7281cf5d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResponseTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 6c549cfe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResponsiblePolicyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 2c9cf730..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResponsibleSensitiveTypeModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/RestrictedAppsStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go deleted file mode 100644 index 01456d1f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index f1951d18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 1473eee1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedAppsViolationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ff90680b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index c81723fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictedSignInRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b0a8efb6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionActionEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7fc03727..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RestrictionTriggerEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/ResultantAppStateDetailEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go deleted file mode 100644 index 9e37b207..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateDetailEnum.go +++ /dev/null @@ -1,169 +0,0 @@ -// 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 deleted file mode 100644 index a4dae992..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ResultantAppStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index e5fdc888..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/RiskDetailEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go deleted file mode 100644 index 06a8d75e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetailEnum.go +++ /dev/null @@ -1,105 +0,0 @@ -// 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 deleted file mode 100644 index cdf1e979..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/RiskDetectionTimingTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go deleted file mode 100644 index df08d43e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionTimingTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 1ce8f8ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventStatusEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 658c818b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskEventTypeEnum.go +++ /dev/null @@ -1,129 +0,0 @@ -// 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 deleted file mode 100644 index 30456d93..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index bbfbfda5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskStateEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index bb3a3d0e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskUserActivityModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e67694ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserAction.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c5c5e716..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index cb2bfefa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserHistoryItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 42ee78e7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 1a5e2831..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RiskyUserRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index af90ba07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 62f0949b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 63f3ca62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 203794d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index faecc59c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleDefinitionRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index d7f0d20f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f2ccc00f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleManagementRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5c911d39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c6aa4758..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RolePermissionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 78863bfc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAction.go +++ /dev/null @@ -1,196 +0,0 @@ -// 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 deleted file mode 100644 index c2c325de..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 07a40740..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a028619e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagInfoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 08dd2bc2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 93b7de8b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleScopeTagRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 1b5aabcb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleSuccessStatisticsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 5c854b8d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoleSummaryStatusEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index af959b5b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoomListModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f9acb281..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoomListRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 03a2f687..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoomModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 3a777c38..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoomRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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/RoutingModeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go deleted file mode 100644 index fe644d6c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoutingModeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index d0ec9fd8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoutingPolicyEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 2a587760..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RoutingTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 9a7311f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RubricCriterionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2c63ac01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RubricLevelModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 39ef7de7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityFeedbackModelModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 5e087327..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualityModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 0443944c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 004aa202..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RuleModeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index ddb7e2a2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RunAsAccountTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/RunStateEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go deleted file mode 100644 index f25cf15a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/RunStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 946b93f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SafeSearchFilterTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 72625881..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineModel.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index a4b4beac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoLineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 7661783e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoModel.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 26a1b145..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesCreditMemoRequest.go +++ /dev/null @@ -1,160 +0,0 @@ -// 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 deleted file mode 100644 index d033b0c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceAction.go +++ /dev/null @@ -1,155 +0,0 @@ -// 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 deleted file mode 100644 index 05f215c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineModel.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index b239425e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceLineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index a76e578a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceModel.go +++ /dev/null @@ -1,87 +0,0 @@ -// 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 deleted file mode 100644 index d8bc7a50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesInvoiceRequest.go +++ /dev/null @@ -1,167 +0,0 @@ -// 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 deleted file mode 100644 index ad81f625..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineModel.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index e8f2e9e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderLineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 3a4d5856..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderModel.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 8cc16a42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesOrderRequest.go +++ /dev/null @@ -1,160 +0,0 @@ -// 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 deleted file mode 100644 index 2641da0a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index c622a210..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineModel.go +++ /dev/null @@ -1,53 +0,0 @@ -// 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 deleted file mode 100644 index dbcbee20..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteLineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 92040855..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteModel.go +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index 212cc4a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SalesQuoteRequest.go +++ /dev/null @@ -1,167 +0,0 @@ -// 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 deleted file mode 100644 index a625d8d3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleAction.go +++ /dev/null @@ -1,44 +0,0 @@ -// 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 deleted file mode 100644 index b24f321c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestActorEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 147365d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectAction.go +++ /dev/null @@ -1,69 +0,0 @@ -// 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 deleted file mode 100644 index 0910232b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 6504bc2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 81c1b871..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleChangeStateEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 6581ede6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 528a9e1b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleEntityThemeEnum.go +++ /dev/null @@ -1,113 +0,0 @@ -// 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 deleted file mode 100644 index 77c4eb2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleInformationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 649b2bc2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleItemModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0accc93e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 41e02c25..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScheduleRequest.go +++ /dev/null @@ -1,797 +0,0 @@ -// 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/SchemaExtensionModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go deleted file mode 100644 index da711215..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 4d818b8e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SchemaExtensionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index da7ee3db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SchemaModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3356bb60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SchemaRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 43bb4fa2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 2516c9bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScopeOperatorTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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/ScreenSharingRoleEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go deleted file mode 100644 index 32362927..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ScreenSharingRoleEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 9cfafbfe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchAction.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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 deleted file mode 100644 index 4fce75d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 118d3f6d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchHitsContainerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8c67910e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index b0693bbb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 039d6355..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchQueryStringModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6cb8c66f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4fdf557c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchRequestObjectModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 6f598315..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchResponseModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7ebdfe92..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SearchResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 05e2af47..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 6ea95afc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SectionGroupRequest.go +++ /dev/null @@ -1,247 +0,0 @@ -// 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 deleted file mode 100644 index 4b4427fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SectionLinksModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 948b6b7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index ee7a28d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureBootWithDMATypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 632bf170..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileModel.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index b53e8da9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d2acf342..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreControlStateUpdateModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 675a3a00..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 74dcfb9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecureScoreRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 840381ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index da7e1ae0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index e58f8727..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1acd0a42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityActionStateModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index c121a750..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 8c6302f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c6ef69ce..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 7fd1c614..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index a2b113eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4f9dc982..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d7a02e75..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineSettingStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7621e310..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 640e9bd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 18f50bd6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 5f9f605f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 96a2a22f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 84cbe176..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityBaselineTemplateRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index acaa4719..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index fe6bc653..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityNetworkProtocolEnum.go +++ /dev/null @@ -1,201 +0,0 @@ -// 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 deleted file mode 100644 index 47ee0254..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityProviderStatusModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 73d336f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityRequest.go +++ /dev/null @@ -1,1173 +0,0 @@ -// 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 deleted file mode 100644 index 7e7f1c2f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SecurityVendorInformationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 32f72be1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentEvidenceModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a03a0314..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveContentLocationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index f45b4ab8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/SensitivityEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go deleted file mode 100644 index 9f532ca7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index d1179cbe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelAction.go +++ /dev/null @@ -1,56 +0,0 @@ -// 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 deleted file mode 100644 index 3036b8af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 3b0120d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityLabelRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 594b5c79..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1347c3ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SensitivityPolicySettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f228c380..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServiceHostedMediaConfigModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a6883d3b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServiceInformationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8bca1e17..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePlanInfoModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 6718618c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalAction.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 132dbb62..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalModel.go +++ /dev/null @@ -1,75 +0,0 @@ -// 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 deleted file mode 100644 index 948319c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServicePrincipalRequest.go +++ /dev/null @@ -1,992 +0,0 @@ -// 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 deleted file mode 100644 index 08f0cd31..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ServiceStartTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d136884e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SettingSourceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 27a85e76..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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/SettingTemplateValueModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go deleted file mode 100644 index be0e77b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SettingTemplateValueModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 5eb31390..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SettingValueModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/SetupStatusEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go deleted file mode 100644 index 9d80d981..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SetupStatusEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index daaaea45..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ShareActionModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7c11cd37..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityPagesModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b85ae65c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 89f755d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointActivityUserDetailModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 0e7ea2c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageDetailModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 26b20898..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 6e5257c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsagePagesModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index cb80a5db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 9d3e9036..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedAppleDeviceUserModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index eccdd6c0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 23efd9f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedDriveItemRequest.go +++ /dev/null @@ -1,181 +0,0 @@ -// 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 deleted file mode 100644 index 9919f412..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0065f4f4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedInsightRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index add0c749..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index ccadb6db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index ead9f7d3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 2ec0ae8e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 597001c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharedPCConfigurationModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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/SharingDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go deleted file mode 100644 index 11f7737f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharingDetailModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 114d9300..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharingInvitationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 7e68294f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SharingLinkModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 9119998d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftActivityModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 4cedc851..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftChangeRequestObjectModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index c9486d12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftItemModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c6473680..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/SignInActivityModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go deleted file mode 100644 index 199ccc67..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInActivityModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8838651d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInAssistantOptionsEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 0d0452e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInFrequencySessionControlModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 78e5cd48..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInLocationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d351dca0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInModel.go +++ /dev/null @@ -1,83 +0,0 @@ -// 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/SignInStatusModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go deleted file mode 100644 index d465764c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SignInStatusModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 49e5211b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SigninFrequencyTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 269868eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SingleSignOnExtensionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 6107ba5a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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/SiteAccessTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go deleted file mode 100644 index c8c508b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteAccessTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e7384b13..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteAction.go +++ /dev/null @@ -1,220 +0,0 @@ -// 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 deleted file mode 100644 index dfd61016..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteActivitySummaryModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 5e5a7d89..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteCollectionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index aa3f845d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 772557f7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index a3aacb22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageDataModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index d086f204..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 42fd9c42..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SitePageRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 903c7c16..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteRequest.go +++ /dev/null @@ -1,724 +0,0 @@ -// 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 deleted file mode 100644 index 585c0d7a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteSecurityLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index a7b7e1b1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SiteUsageStorageModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/SkillProficiencyLevelEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go deleted file mode 100644 index 60747247..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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/SkypeForBusinessActivityCountsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go deleted file mode 100644 index 6e624580..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 643c4aa5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 5fc685f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index 4545572c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index d2f5c8d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ff242698..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 71e84d14..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index b042a86b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 8bd2343a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index b5fa3ff8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index dd691722..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 54f9c284..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ed2045fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index efdeb3b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index b24c3036..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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/StagedFeatureNameEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go deleted file mode 100644 index 06280b49..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StagedFeatureNameEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index a3bc5cc2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StandardTimeZoneOffsetModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 792b8625..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StateManagementSettingEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 70bb3fd1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StatusBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 56d0342b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StatusDetailsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 5678a333..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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/StringKeyAttributeMappingSourceValuePairModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go deleted file mode 100644 index 02493ed5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e449961f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyLongValuePairModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 920fc605..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyObjectValuePairModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 833d298f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/StringKeyStringValuePairModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e9bd9e07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index bb9a5725..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SubjectNameFormatEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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/SynchronizationErrorModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go deleted file mode 100644 index 645c33f1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationErrorModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f9d36e41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go +++ /dev/null @@ -1,239 +0,0 @@ -// 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 deleted file mode 100644 index 3c018828..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index e805af59..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5b1ef836..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 225deaab..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index af84ca87..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 841ea485..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationProgressModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 523317bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationQuarantineModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f60d9d84..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index cd397621..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationRuleModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 94d81fc5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 4646c96c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationScheduleStateEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 2023d320..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaAction.go +++ /dev/null @@ -1,42 +0,0 @@ -// 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 deleted file mode 100644 index 181e87b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 5c2eb541..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSchemaRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 5ce97939..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretEnum.go +++ /dev/null @@ -1,305 +0,0 @@ -// 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 deleted file mode 100644 index e20e91c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e99bfd22..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusCodeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 8438dc04..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationStatusModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 6a453e9c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index c1f8d40b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 2455343b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 768685bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationTemplateRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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/TargetPolicyEndpointsModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go deleted file mode 100644 index 8b29b97f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetPolicyEndpointsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3e9b15d0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetResourceModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 5ce26e54..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationAction.go +++ /dev/null @@ -1,164 +0,0 @@ -// 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 deleted file mode 100644 index 404acfd7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index a0d57d32..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index f0c68b10..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index 7b355662..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 6f7ccb91..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 70dc8a1b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 15ed5d6b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 80107161..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TargetedManagedAppProtectionRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 9bf968be..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TaskStatusEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index b9ba71bf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 7b1d7e7d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TaxAreaRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c10642df..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 4564f59c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TaxGroupRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 88e9862e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamAction.go +++ /dev/null @@ -1,109 +0,0 @@ -// 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 deleted file mode 100644 index a603d37a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamClassSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 913d9a60..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamDiscoverySettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6efc8cda..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamFunSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d343a43c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamGuestSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 843c0b7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamMemberSettingsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0adb0b4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamMessagingSettingsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index b1a90fc0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index 515aa187..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamRequest.go +++ /dev/null @@ -1,550 +0,0 @@ -// 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 deleted file mode 100644 index 6ee244bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamSpecializationEnum.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 592c139b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamVisibilityTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index d5c6c771..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 1177a74d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDefinitionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 184f3a2f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppDistributionMethodEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 5e67c216..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index fa3e3243..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 29e4a308..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppInstallationRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index eb9c0a83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 1684764c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index b1ed964d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 4a239ca8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f1741240..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index beaf7756..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 136620db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ee72b524..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsCatalogAppRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d57c14ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 2c48258c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index d693c812..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 063948dc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabConfigurationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index d5de3c0a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 8557856c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTabRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 180db147..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 79208af9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsTemplateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 55c1e475..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityCountsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 1b736691..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index ffe9cd61..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamsUserActivityUserDetailModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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/TeamworkRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.go deleted file mode 100644 index 810bd6cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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/TenantSetupInfoRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go deleted file mode 100644 index 294fe792..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9dc62015..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index caab6625..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index e2727c9d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 47f99bc8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 54b49722..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8739b112..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 92a2d7ba..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 8299c044..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TermsAndConditionsRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 4adfaaa4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/TextColumnModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go deleted file mode 100644 index c8d284da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TextColumnModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index a1f72d5d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 72065bf2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 3e5f9058..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 8fb4340f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 8adcd2e2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 320bfa71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index a30099d3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 40f9f6df..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d1b862b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 55b3f148..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatAssessmentStatusEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index d3a2854f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatCategoryEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 471bd828..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThreatExpectedAssessmentEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index db281c1c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 441fa92e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/TiActionEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go deleted file mode 100644 index 10aa74b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TiActionEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 337dc6ea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorAction.go +++ /dev/null @@ -1,364 +0,0 @@ -// 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 deleted file mode 100644 index deb8a11c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorModel.go +++ /dev/null @@ -1,127 +0,0 @@ -// 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 deleted file mode 100644 index 563d9665..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TiIndicatorRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 34876da7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeConstraintModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index acbb9a9d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 76614c69..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 0b44300d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonIconTypeEnum.go +++ /dev/null @@ -1,185 +0,0 @@ -// 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 deleted file mode 100644 index 5ba669e4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 8baa5c95..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffReasonRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7f5c8862..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bc727be6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index f41541f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeOffRequestObjectRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fc54d99f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeSlotModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 0bf69046..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneBaseModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7295be71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneInformationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8b433178..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TimeZoneStandardEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 0bd21839..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TlpLevelEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 75ba556a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TokenIssuerTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/ToneEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go deleted file mode 100644 index 1af29b07..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/ToneEnum.go +++ /dev/null @@ -1,145 +0,0 @@ -// 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/TrendingRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go deleted file mode 100644 index 22148260..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrendingRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index be5403fe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeyModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 7a46b522..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go +++ /dev/null @@ -1,151 +0,0 @@ -// 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 deleted file mode 100644 index da6ef35f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e98ae8a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 919b6315..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 27d394b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 683bd14d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e8104c2f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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/UnaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go deleted file mode 100644 index bc2d162d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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/UnifiedRoleAssignmentModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go deleted file mode 100644 index 14306bb9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 53b3576d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleAssignmentRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 22d03a8f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ae46286c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRoleDefinitionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e5f5b58b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnifiedRolePermissionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/UnsupportedDeviceConfigurationDetailModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go deleted file mode 100644 index b4952488..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8d8b1041..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 623db438..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateClassificationEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 59a98b50..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateRecordingStatusOperationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 14ea4577..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d4fad2c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/UsageAuthMethodEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go deleted file mode 100644 index 1a5d212e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UsageAuthMethodEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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/UsedInsightRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go deleted file mode 100644 index c9967c4c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index ee564f11..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 31a5de92..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountInformationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 660b0756..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 53c210a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAccountSecurityTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index be2e8068..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAction.go +++ /dev/null @@ -1,564 +0,0 @@ -// 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 deleted file mode 100644 index 25396b57..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserActivationCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index be1deda2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityModel.go +++ /dev/null @@ -1,42 +0,0 @@ -// 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 deleted file mode 100644 index 77180051..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserActivityRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 3cbdd322..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f5117650..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAnalyticsRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 24ccb4b8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 95827d09..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserAppInstallStatusRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 9e089df4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6f321ffe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserConfigurationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 7eb87d0f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index dbe65ec4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserCredentialUsageDetailsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 0763aa18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserEmailSourceEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 04fb4838..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 1cf023e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index b9eacdd1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index c66f2dfd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index a540b6b0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 570333c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bd5438cd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 4c54dad1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f48586c3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 6c9657fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index b6bc5962..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 9e5ce7de..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 3d975361..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1859d91b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 2975d1c4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index feb52084..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index bb589447..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a0f14237..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index 8ecb5586..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index a0e6efb8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserFlowTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 22f227eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserGovernanceCriteriaModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 3c72aa4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index da42f5e3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserIdentityTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 1af64d51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 15a9f36f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserInstallStateSummaryRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 794f09bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserModel.go +++ /dev/null @@ -1,259 +0,0 @@ -// 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 deleted file mode 100644 index 0c86a981..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 708c2d72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserPFXCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6d2515cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxIntendedPurposeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 4e135367..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserPfxPaddingSchemeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 84463e1b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserRegistrationCountModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 55de896d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserRequest.go +++ /dev/null @@ -1,3722 +0,0 @@ -// 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 deleted file mode 100644 index d0ea360a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserRiskLevelEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 6c31a390..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index d0e2f3d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityProfileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 130563b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserSecurityStateModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 3c9fdfee..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6c587857..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index aefba4a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5f8f7488..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UserTeamworkRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 5b6f6520..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/UsernameSourceEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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/VendorRequest.go b/vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go deleted file mode 100644 index ca83e934..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VendorRequest.go +++ /dev/null @@ -1,160 +0,0 @@ -// 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/VisibilitySettingEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go deleted file mode 100644 index 924cd51b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VisibilitySettingEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index a299cc86..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VisualInfoModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 262acf40..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VisualPropertiesModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6334ed63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnAuthenticationMethodEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 60304699..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 97fec24d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 553aac66..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnDNSRuleModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 62a5a302..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 7b373238..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 6b023123..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 5225519f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnLocalIdentifierEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index b6e1d2a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 3edeba99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 278ab256..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnOnDemandRuleModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 7d2602ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnProviderTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index d0d38510..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnProxyServerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 592f4245..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnRouteModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8c83565a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerCertificateTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 1490f3ef..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnServerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 81362a51..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7eff2928..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 3619d052..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 87012462..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppLicensingTypeModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 90861c08..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAccountTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 3b9090c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenAction.go +++ /dev/null @@ -1,68 +0,0 @@ -// 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 deleted file mode 100644 index d895a369..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionFailureReasonEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index c70460a7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenActionResultModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 383e2f37..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenLicenseSummaryModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 37eac0da..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 31577ff9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 6b9c454f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index fbcfe115..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a2cdf4d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/VppTokenSyncStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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/WatermarkLayoutEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go deleted file mode 100644 index 611e9fe5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WatermarkLayoutEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 1b9dfa43..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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/WebAppModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go deleted file mode 100644 index f394abf0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebAppModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index df993dbf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebApplicationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index af397fbe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebBrowserCookieSettingsEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index f982cc0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebPartModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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/WebsiteTypeEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go deleted file mode 100644 index a3b4031c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index a2ef1b2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WeekIndexEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index bca8ce54..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WeeklyScheduleEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index f9f944d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index fe442f4b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiAuthenticationMethodEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 80095ffa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiProxySettingEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 326c5b4e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WiFiSecurityTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 34c2b332..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 50c140cb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 0748dfe1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index e6c676d8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index afbc368b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 1f257d99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 0e00a6ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppInstallExperienceModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 45c04807..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 3d131494..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiInformationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index f7659882..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 518a7c30..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppNotificationEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index acd74644..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index eb775d39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 4eff638b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f385f93a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d17304db..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0a7256aa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 2fd4f450..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index cc786285..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRequirementModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 02d83512..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 75460735..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppRestartSettingsModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d49ebc33..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bbd5b18e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 405a390b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index c4e2ef99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 3c930ef3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 2d24a658..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10AssociatedAppsModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index e7440ddb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CertificateProfileBaseModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 04b9cb8c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CompliancePolicyModel.go +++ /dev/null @@ -1,71 +0,0 @@ -// 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 deleted file mode 100644 index 34bc2c72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10CustomConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 713e6777..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index a7f29e41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10DeviceModeTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 39400da1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index b928218f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EditionTypeEnum.go +++ /dev/null @@ -1,169 +0,0 @@ -// 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 deleted file mode 100644 index 37f97ebc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go +++ /dev/null @@ -1,365 +0,0 @@ -// 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 deleted file mode 100644 index c0238ffe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index e24be4a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 555e3697..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 0312f9c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationModel.go +++ /dev/null @@ -1,569 +0,0 @@ -// 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 deleted file mode 100644 index 9734f0fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10GeneralConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 24ce8545..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 74b63097..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 09f34b27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index be92cb68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f5998218..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10NetworkProxyServerModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 [“:”] - 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 deleted file mode 100644 index 5f7b25bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index de0ae75c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index d7e6df66..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 52c87b88..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 6a276d89..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index 83ef1230..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 6a889b17..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index 10394f7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index c3c4666f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go +++ /dev/null @@ -1,89 +0,0 @@ -// 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 deleted file mode 100644 index 18f4f3eb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProfileTargetEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 78a9a3fa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows10VpnProxyServerModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6e112de2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CertificateProfileBaseModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6c81b9ec..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81CompliancePolicyModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 37af954b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81GeneralConfigurationModel.go +++ /dev/null @@ -1,79 +0,0 @@ -// 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 deleted file mode 100644 index 63da2caa..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 1d514611..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 4c661bb3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 33fefe81..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 993abb49..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f2e34c15..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81VpnProxyServerModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 9baea10f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/Windows81WifiImportConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f6274a3c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 30d54d0d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 17d108c7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAppXModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index bccbebd0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsArchitectureEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index f8288fb1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAssignedAccessProfileModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 813c5923..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go +++ /dev/null @@ -1,132 +0,0 @@ -// 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 deleted file mode 100644 index 2c022070..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 2754f1c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index c1ffaa35..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index dd68ba58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 3148395e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 1326caf1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 543a5196..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go +++ /dev/null @@ -1,173 +0,0 @@ -// 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 deleted file mode 100644 index 025e9656..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index d7b1d5fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 53c72303..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a5ffe76a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go +++ /dev/null @@ -1,81 +0,0 @@ -// 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 deleted file mode 100644 index f3548a43..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index b227e4fc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index bbc90da4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index fc8b6147..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 8b6d9a74..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSettingsRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 13e8bd63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 8e179650..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 5d2297a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index cecbe4c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 73300e1e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index b101bb76..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 363d787a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fc6ebb09..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 8efa95fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index ec2ef953..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 6401b50d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 55b64856..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 7d428e4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go +++ /dev/null @@ -1,240 +0,0 @@ -// 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 deleted file mode 100644 index 80d73cbe..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 977c5ab2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderScanActionResultModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e9b8d7f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 797b7571..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index 5609257f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 560e20c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceADAccountModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 0783b85b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAccountModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e0510423..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index c40cac11..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceHealthStateEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index ec8b2dbd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 617c8206..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 9bb6952c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceTypeEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index c5646d5d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a8022d4e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index f00c1a72..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 28eb4ff0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 972e706d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 5b2de77c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 176e015a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8cbe30bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index ce9463ca..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go +++ /dev/null @@ -1,233 +0,0 @@ -// 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 deleted file mode 100644 index 0202693c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go +++ /dev/null @@ -1,55 +0,0 @@ -// 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 deleted file mode 100644 index 936af125..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index fe6a9a17..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleModel.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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:
  • "*" indicates any local address. If present, this must be the only token included.
  • 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.
  • A valid IPv6 address.
  • An IPv4 address range in the format of "start address - end address" with no spaces included.
  • An IPv6 address range in the format of "start address - end address" with no spaces included.
- 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:
  • "*" indicates any remote address. If present, this must be the only token included.
  • "Defaultgateway"
  • "DHCP"
  • "DNS"
  • "WINS"
  • "Intranet" (supported on Windows versions 1809+)
  • "RmtIntranet" (supported on Windows versions 1809+)
  • "Internet" (supported on Windows versions 1809+)
  • "Ply2Renders" (supported on Windows versions 1809+)
  • "LocalSubnet" indicates any local address on the local subnet.
  • 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.
  • A valid IPv6 address.
  • An IPv4 address range in the format of "start address - end address" with no spaces included.
  • An IPv6 address range in the format of "start address - end address" with no spaces included.
- 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 deleted file mode 100644 index 3aec0916..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleNetworkProfileTypesEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 7202feb3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsFirewallRuleTrafficDirectionTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 556f6235..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index e2293e74..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHealthMonitoringScopeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 4c89e684..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsHelloForBusinessPinUsageEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index bdd0e84f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsIdentityProtectionConfigurationModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index f88b0404..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index a47f398e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 61d1c137..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLearningSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index baf4a292..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index ff35c986..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppLockerFileRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index ec849505..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionAppModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 6f20d9d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDataRecoveryCertificateModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 0d437c68..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDesktopAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index faa761bd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 1e682e63..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index f89bf688..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionDeviceRegistrationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fa741cb7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionEnforcementLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 85bf59d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionIPRangeCollectionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index ee2f7e8b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionModel.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index 7acc44b3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 7b4dacd6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionNetworkLearningSummaryRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index b2679ccc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPinCharacterRequirementsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 535bd112..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index dbca0b71..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionPolicyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 131a22a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionProxiedDomainCollectionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index f4505689..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionRequest.go +++ /dev/null @@ -1,327 +0,0 @@ -// 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 deleted file mode 100644 index d1f568e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionResourceCollectionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index d4861f0a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionStoreAppModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index cbda4829..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 01c94f01..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsInformationProtectionWipeActionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 8686512e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskActiveDirectoryGroupModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 818d303d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppBaseModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 14b028e8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 888c249d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAppTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 0272a681..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAutologonModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 96596805..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADGroupModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 273684f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskAzureADUserModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index adbf6991..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 06c58b0b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskDesktopAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 7226e0f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskForceUpdateScheduleModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 0d6b839c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalGroupModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 7a616a69..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskLocalUserModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 788a6b2a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskMultipleAppsModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index eb37a2b6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskProfileModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 843ae34d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskSingleUWPAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index a9b4cbde..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUWPAppModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index f2abce52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskUserModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 78f9373a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsKioskVisitorModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index a7e52370..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryCountModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 4b1244c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareCategoryEnum.go +++ /dev/null @@ -1,409 +0,0 @@ -// 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 deleted file mode 100644 index cac8563c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateCountModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 7536bfcc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareExecutionStateEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index b03f44b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 23d9275a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareInformationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index bd9d1dc9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareNameCountModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 06668b58..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareOverviewModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 45005c53..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareSeverityEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index fc022d82..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateCountModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 58e74fb7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareStateEnum.go +++ /dev/null @@ -1,113 +0,0 @@ -// 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 deleted file mode 100644 index c7f2969e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMalwareThreatStateEnum.go +++ /dev/null @@ -1,97 +0,0 @@ -// 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 deleted file mode 100644 index 84a7226f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagedDeviceModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index f977254c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index b64aa1c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 54137153..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppHealthSummaryModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index a70ed7f2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bc12f745..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsManagementAppRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index fe505a38..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMicrosoftEdgeAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 64076d25..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMinimumOperatingSystemModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 3306e140..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsMobileMSIModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index f06e431f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsNetworkIsolationPolicyModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 012e0eb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 816bbf6d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsOfficeClientSecurityConfigurationModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 82291085..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPackageInformationModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index 1c089c7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXBundleModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6b3608a9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81AppXModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index a0695328..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index deb274f0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CertificateProfileBaseRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 207c0682..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CompliancePolicyModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 6f996c90..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81CustomConfigurationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index b4e28853..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81GeneralConfigurationModel.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index 8bd9b129..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index cb51ac4d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81ImportedPFXCertificateProfileRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 1e3b9346..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 7d16cd11..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81SCEPCertificateProfileRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 13575476..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81StoreAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index e74a29a5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 3f4dff7d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81TrustedRootCertificateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 56056f5d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 84fdf723..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhone81VpnConfigurationRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index deb0c745..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneEASEmailProfileConfigurationModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 88aa0b33..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPhoneXAPModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index d6bda5e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index a5bb9d7e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessControlItemRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 99315c4d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataAccessLevelEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 5b187018..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsPrivacyDataCategoryEnum.go +++ /dev/null @@ -1,161 +0,0 @@ -// 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 deleted file mode 100644 index e4b9dcae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateModel.go +++ /dev/null @@ -1,47 +0,0 @@ -// 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 deleted file mode 100644 index 4f0be4f9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsProtectionStateRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index ceab9da5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSModeConfigurationEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 210c4e45..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsSpotlightEnablementSettingsEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index b065a9fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuAppListVisibilityTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index e70bdaed..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStartMenuModeTypeEnum.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index 585d7ce4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsStoreAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index ab770b52..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXAppAssignmentSettingsModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index edf29760..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXContainedAppModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2ac9c0c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 1c0a821c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUniversalAppXRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index a09777ae..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateActiveHoursInstallModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 487d11bb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index 6d54fc7d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationModel.go +++ /dev/null @@ -1,83 +0,0 @@ -// 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 deleted file mode 100644 index 6816c951..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessConfigurationRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 4b42a1f5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateForBusinessUpdateWeeksEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index c42822af..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateInstallScheduleTypeModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index cd3eeae3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateNotificationDisplayOptionEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 02e8c3c8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateScheduledInstallModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index b720f200..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index a93ca36c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStateRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 18770800..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateStatusEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index 88dc0ed3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUpdateTypeEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index b1cc51ed..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserAccountControlSettingsEnum.go +++ /dev/null @@ -1,49 +0,0 @@ -// 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 deleted file mode 100644 index 95986f18..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsUserTypeEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 2a260ecb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConfigurationModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 6adc9c7b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsVpnConnectionTypeEnum.go +++ /dev/null @@ -1,41 +0,0 @@ -// 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 deleted file mode 100644 index a4d3f0cf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiConfigurationModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 4ba2944c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationModel.go +++ /dev/null @@ -1,39 +0,0 @@ -// 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 deleted file mode 100644 index 206ad285..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WindowsWifiEnterpriseEAPConfigurationRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 0aabd74c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WiredNetworkInterfaceEnum.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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/WorkbookAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go deleted file mode 100644 index 28f431b5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookAction.go +++ /dev/null @@ -1,98 +0,0 @@ -// 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 deleted file mode 100644 index a36c3e9a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationAction.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index 1908de39..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index f9cfe23d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookApplicationRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f12ff1b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAction.go +++ /dev/null @@ -1,113 +0,0 @@ -// 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 deleted file mode 100644 index c6a7657d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index da75cbb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAreaFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 9d655ad0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 73779598..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxesRequest.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index 0614068d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 288a9113..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index a71544c1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 68e377e6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisRequest.go +++ /dev/null @@ -1,66 +0,0 @@ -// 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 deleted file mode 100644 index b39849c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 73fa4557..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleFormatRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 4b59a843..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 836918fd..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartAxisTitleRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index b621b845..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index b02afad8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index b2394b9e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 66448ddb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartDataLabelsRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5a6b480b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index 3e9454a3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 1a6552c2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFillRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 617a998c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index d46b3ee4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartFontRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 30d49e12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index d0b1fc41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesFormatRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 91caf135..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1a44dea1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartGridlinesRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index e6688e5e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 558be0d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index ccf49a83..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 53a68809..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLegendRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 5718b8b9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index d6568e76..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 22449593..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartLineFormatRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index d8ce317c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index da0fa9c6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 550b74ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointFormatRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 0d691a5c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index c1de3cfb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartPointRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index b4db72e5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartRequest.go +++ /dev/null @@ -1,181 +0,0 @@ -// 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 deleted file mode 100644 index 714eedfb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 8587379d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index 96bcd5d1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 30057e12..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartSeriesRequest.go +++ /dev/null @@ -1,146 +0,0 @@ -// 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 deleted file mode 100644 index 6ec0cf99..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index a266a3c5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleFormatRequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// 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 deleted file mode 100644 index c713d570..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 217b00bc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookChartTitleRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 4e2dc9ff..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index ac9a0027..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 51742262..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentReplyRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 208e0816..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookCommentRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 2076d80b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterAction.go +++ /dev/null @@ -1,394 +0,0 @@ -// 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 deleted file mode 100644 index d2e9cd41..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterCriteriaModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 47ba0eb0..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterDatetimeModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bb147bcb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 2d2fc03e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFilterRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 5dadd608..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 53c5baeb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFormatProtectionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 3a0e82d7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionResultModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 5860c3b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsAction.go +++ /dev/null @@ -1,12984 +0,0 @@ -// 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 deleted file mode 100644 index 85913f2b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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/WorkbookIconModel.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go deleted file mode 100644 index 0321e0ad..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookIconModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index bb427ee6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 21b74eb4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemAction.go +++ /dev/null @@ -1,98 +0,0 @@ -// 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 deleted file mode 100644 index fe0f2049..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 163bb35a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookNamedItemRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 110f3933..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index f2df4cf7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index fb8a6fdf..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookPivotTableRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 9596beea..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeAction.go +++ /dev/null @@ -1,164 +0,0 @@ -// 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 deleted file mode 100644 index 4ba5b027..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderModel.go +++ /dev/null @@ -1,17 +0,0 @@ -// 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 deleted file mode 100644 index 4bf1d49b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeBorderRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 094646e9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillAction.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 078e37f6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 6abb94fb..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFillRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index fe2e3376..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 61027fb1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFontRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index e46ebbd3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatAction.go +++ /dev/null @@ -1,65 +0,0 @@ -// 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 deleted file mode 100644 index d358d62e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 482483a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeFormatRequest.go +++ /dev/null @@ -1,160 +0,0 @@ -// 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 deleted file mode 100644 index 87063697..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeModel.go +++ /dev/null @@ -1,51 +0,0 @@ -// 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 deleted file mode 100644 index cebbed53..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeReferenceModel.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 deleted file mode 100644 index 5e07b8ac..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeRequest.go +++ /dev/null @@ -1,59 +0,0 @@ -// 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 deleted file mode 100644 index f7f31af5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortAction.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 32ed69a1..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortModel.go +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index e19b462e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeSortRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 1896ddfc..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 64ad3d45..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRangeViewRequest.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index 10c1563e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookRequest.go +++ /dev/null @@ -1,435 +0,0 @@ -// 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 deleted file mode 100644 index 003598b7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSessionInfoModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 1f84f206..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookSortFieldModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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 deleted file mode 100644 index 8eee0f5b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableAction.go +++ /dev/null @@ -1,139 +0,0 @@ -// 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 deleted file mode 100644 index cba8469e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnAction.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index c483f24d..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 4b661448..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableColumnRequest.go +++ /dev/null @@ -1,45 +0,0 @@ -// 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 deleted file mode 100644 index 68469df6..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index ddf04cd4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRequest.go +++ /dev/null @@ -1,247 +0,0 @@ -// 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 deleted file mode 100644 index 0dd6a39a..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowAction.go +++ /dev/null @@ -1,43 +0,0 @@ -// 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 deleted file mode 100644 index b2cf1164..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 055ee6f8..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableRowRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index f976da4f..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortAction.go +++ /dev/null @@ -1,101 +0,0 @@ -// 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 deleted file mode 100644 index f4a6b56b..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortModel.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 54852de7..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookTableSortRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 44d09970..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetAction.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index a064eaa4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetModel.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 16e8abb5..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionAction.go +++ /dev/null @@ -1,67 +0,0 @@ -// 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 deleted file mode 100644 index 2e21e686..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 527f0627..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionOptionsModel.go +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 1854e203..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetProtectionRequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 deleted file mode 100644 index 4e7f848e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookWorksheetRequest.go +++ /dev/null @@ -1,428 +0,0 @@ -// 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 deleted file mode 100644 index 179b998c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionModel.go +++ /dev/null @@ -1,13 +0,0 @@ -// 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 deleted file mode 100644 index 0640739e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationEncryptionProtocolEnum.go +++ /dev/null @@ -1,25 +0,0 @@ -// 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 deleted file mode 100644 index 1b8f5c96..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/WorkforceIntegrationSupportedEntitiesEnum.go b/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go deleted file mode 100644 index ddd851b2..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationSupportedEntitiesEnum.go +++ /dev/null @@ -1,57 +0,0 @@ -// 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 deleted file mode 100644 index 33fea50c..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/WorkingHoursModel.go +++ /dev/null @@ -1,19 +0,0 @@ -// 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 deleted file mode 100644 index 49720766..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivitySummaryModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index a5fa5e2e..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerActivityUserDetailModel.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 deleted file mode 100644 index e58f2dc3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageDistributionUserCountsModel.go +++ /dev/null @@ -1,27 +0,0 @@ -// 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 deleted file mode 100644 index 7d0c95d9..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserCountsModel.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 deleted file mode 100644 index 261ba3d4..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerDeviceUsageUserDetailModel.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 deleted file mode 100644 index fcc9da27..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityCountsModel.go +++ /dev/null @@ -1,23 +0,0 @@ -// 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 deleted file mode 100644 index c456bcf3..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityDetailModel.go +++ /dev/null @@ -1,35 +0,0 @@ -// 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 deleted file mode 100644 index 0a2ee237..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/beta/YammerGroupsActivityGroupCountsModel.go +++ /dev/null @@ -1,21 +0,0 @@ -// 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/jsonx/README.md b/vendor/github.com/matterbridge/msgraph.go/jsonx/README.md deleted file mode 100644 index 949df339..00000000 --- a/vendor/github.com/matterbridge/msgraph.go/jsonx/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# 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/rickb777/date/LICENSE b/vendor/github.com/rickb777/date/LICENSE new file mode 100644 index 00000000..b0280bc6 --- /dev/null +++ b/vendor/github.com/rickb777/date/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2015 The Go Authors & Rick Beton. 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 Google Inc. 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 +OWNER 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/rickb777/date/period/doc.go b/vendor/github.com/rickb777/date/period/doc.go new file mode 100644 index 00000000..c8a57b4a --- /dev/null +++ b/vendor/github.com/rickb777/date/period/doc.go @@ -0,0 +1,44 @@ +// Copyright 2016 Rick Beton. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package period provides functionality for periods of time using ISO-8601 conventions. +// This deals with years, months, weeks/days, hours, minutes and seconds. +// +// Because of the vagaries of calendar systems, the meaning of year lengths, month lengths +// and even day lengths depends on context. So a period is not necessarily a fixed duration +// of time in terms of seconds. +// +// See https://en.wikipedia.org/wiki/ISO_8601#Durations +// +// Example representations: +// +// * "P2Y" is two years; +// +// * "P6M" is six months; +// +// * "P4D" is four days; +// +// * "P1W" is one week (seven days); +// +// * "PT3H" is three hours. +// +// * "PT20M" is twenty minutes. +// +// * "PT30S" is thirty seconds. +// +// These can be combined, for example: +// +// * "P3Y6M4W1D" is three years, 6 months, 4 weeks and one day. +// +// * "P2DT12H" is 2 days and 12 hours. +// +// Also, decimal fractions are supported to one decimal place. To comply with +// the standard, only the last non-zero component is allowed to have a fraction. +// For example +// +// * "P2.5Y" is 2.5 years. +// +// * "PT12M7.5S" is 12 minutes and 7.5 seconds. +// +package period diff --git a/vendor/github.com/rickb777/date/period/format.go b/vendor/github.com/rickb777/date/period/format.go new file mode 100644 index 00000000..32cb6a83 --- /dev/null +++ b/vendor/github.com/rickb777/date/period/format.go @@ -0,0 +1,128 @@ +// Copyright 2015 Rick Beton. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package period + +import ( + "bytes" + "fmt" + "strings" + + "github.com/rickb777/plural" +) + +// Format converts the period to human-readable form using the default localisation. +func (period Period) Format() string { + return period.FormatWithPeriodNames(PeriodYearNames, PeriodMonthNames, PeriodWeekNames, PeriodDayNames, PeriodHourNames, PeriodMinuteNames, PeriodSecondNames) +} + +// FormatWithPeriodNames converts the period to human-readable form in a localisable way. +func (period Period) FormatWithPeriodNames(yearNames, monthNames, weekNames, dayNames, hourNames, minNames, secNames plural.Plurals) string { + period = period.Abs() + + parts := make([]string, 0) + parts = appendNonBlank(parts, yearNames.FormatFloat(absFloat10(period.years))) + parts = appendNonBlank(parts, monthNames.FormatFloat(absFloat10(period.months))) + + if period.days > 0 || (period.IsZero()) { + if len(weekNames) > 0 { + weeks := period.days / 70 + mdays := period.days % 70 + //fmt.Printf("%v %#v - %d %d\n", period, period, weeks, mdays) + if weeks > 0 { + parts = appendNonBlank(parts, weekNames.FormatInt(int(weeks))) + } + if mdays > 0 || weeks == 0 { + parts = appendNonBlank(parts, dayNames.FormatFloat(absFloat10(mdays))) + } + } else { + parts = appendNonBlank(parts, dayNames.FormatFloat(absFloat10(period.days))) + } + } + parts = appendNonBlank(parts, hourNames.FormatFloat(absFloat10(period.hours))) + parts = appendNonBlank(parts, minNames.FormatFloat(absFloat10(period.minutes))) + parts = appendNonBlank(parts, secNames.FormatFloat(absFloat10(period.seconds))) + + return strings.Join(parts, ", ") +} + +func appendNonBlank(parts []string, s string) []string { + if s == "" { + return parts + } + return append(parts, s) +} + +// PeriodDayNames provides the English default format names for the days part of the period. +// This is a sequence of plurals where the first match is used, otherwise the last one is used. +// The last one must include a "%v" placeholder for the number. +var PeriodDayNames = plural.FromZero("%v days", "%v day", "%v days") + +// PeriodWeekNames is as for PeriodDayNames but for weeks. +var PeriodWeekNames = plural.FromZero("", "%v week", "%v weeks") + +// PeriodMonthNames is as for PeriodDayNames but for months. +var PeriodMonthNames = plural.FromZero("", "%v month", "%v months") + +// PeriodYearNames is as for PeriodDayNames but for years. +var PeriodYearNames = plural.FromZero("", "%v year", "%v years") + +// PeriodHourNames is as for PeriodDayNames but for hours. +var PeriodHourNames = plural.FromZero("", "%v hour", "%v hours") + +// PeriodMinuteNames is as for PeriodDayNames but for minutes. +var PeriodMinuteNames = plural.FromZero("", "%v minute", "%v minutes") + +// PeriodSecondNames is as for PeriodDayNames but for seconds. +var PeriodSecondNames = plural.FromZero("", "%v second", "%v seconds") + +// String converts the period to ISO-8601 form. +func (period Period) String() string { + if period.IsZero() { + return "P0D" + } + + buf := &bytes.Buffer{} + if period.Sign() < 0 { + buf.WriteByte('-') + } + + buf.WriteByte('P') + + if period.years != 0 { + fmt.Fprintf(buf, "%gY", absFloat10(period.years)) + } + if period.months != 0 { + fmt.Fprintf(buf, "%gM", absFloat10(period.months)) + } + if period.days != 0 { + if period.days%70 == 0 { + fmt.Fprintf(buf, "%gW", absFloat10(period.days/7)) + } else { + fmt.Fprintf(buf, "%gD", absFloat10(period.days)) + } + } + if period.hours != 0 || period.minutes != 0 || period.seconds != 0 { + buf.WriteByte('T') + } + if period.hours != 0 { + fmt.Fprintf(buf, "%gH", absFloat10(period.hours)) + } + if period.minutes != 0 { + fmt.Fprintf(buf, "%gM", absFloat10(period.minutes)) + } + if period.seconds != 0 { + fmt.Fprintf(buf, "%gS", absFloat10(period.seconds)) + } + + return buf.String() +} + +func absFloat10(v int16) float32 { + f := float32(v) / 10 + if v < 0 { + return -f + } + return f +} diff --git a/vendor/github.com/rickb777/date/period/marshal.go b/vendor/github.com/rickb777/date/period/marshal.go new file mode 100644 index 00000000..c87ad5f6 --- /dev/null +++ b/vendor/github.com/rickb777/date/period/marshal.go @@ -0,0 +1,32 @@ +// Copyright 2015 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 period + +// MarshalBinary implements the encoding.BinaryMarshaler interface. +// This also provides support for gob encoding. +func (period Period) MarshalBinary() ([]byte, error) { + // binary method would take more space in many cases, so we simply use text + return period.MarshalText() +} + +// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface. +// This also provides support for gob encoding. +func (period *Period) UnmarshalBinary(data []byte) error { + return period.UnmarshalText(data) +} + +// MarshalText implements the encoding.TextMarshaler interface for Periods. +func (period Period) MarshalText() ([]byte, error) { + return []byte(period.String()), nil +} + +// UnmarshalText implements the encoding.TextUnmarshaler interface for Periods. +func (period *Period) UnmarshalText(data []byte) (err error) { + u, err := Parse(string(data)) + if err == nil { + *period = u + } + return err +} diff --git a/vendor/github.com/rickb777/date/period/parse.go b/vendor/github.com/rickb777/date/period/parse.go new file mode 100644 index 00000000..30b3a693 --- /dev/null +++ b/vendor/github.com/rickb777/date/period/parse.go @@ -0,0 +1,152 @@ +// Copyright 2015 Rick Beton. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package period + +import ( + "fmt" + "strconv" + "strings" +) + +// MustParse is as per Parse except that it panics if the string cannot be parsed. +// This is intended for setup code; don't use it for user inputs. +func MustParse(value string) Period { + d, err := Parse(value) + if err != nil { + panic(err) + } + return d +} + +// Parse parses strings that specify periods using ISO-8601 rules. +// +// In addition, a plus or minus sign can precede the period, e.g. "-P10D" +// +// The value is normalised, e.g. multiple of 12 months become years so "P24M" +// is the same as "P2Y". However, this is done without loss of precision, so +// for example whole numbers of days do not contribute to the months tally +// because the number of days per month is variable. +// +// The zero value can be represented in several ways: all of the following +// are equivalent: "P0Y", "P0M", "P0W", "P0D", "PT0H", PT0M", PT0S", and "P0". +// The canonical zero is "P0D". +func Parse(period string) (Period, error) { + if period == "" { + return Period{}, fmt.Errorf("cannot parse a blank string as a period") + } + + if period == "P0" { + return Period{}, nil + } + + result := period64{} + pcopy := period + if pcopy[0] == '-' { + result.neg = true + pcopy = pcopy[1:] + } else if pcopy[0] == '+' { + pcopy = pcopy[1:] + } + + if pcopy[0] != 'P' { + return Period{}, fmt.Errorf("expected 'P' period mark at the start: %s", period) + } + pcopy = pcopy[1:] + + st := parseState{period, pcopy, false, nil} + t := strings.IndexByte(pcopy, 'T') + if t >= 0 { + st.pcopy = pcopy[t+1:] + + result.hours, st = parseField(st, 'H') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'H' marker: %s", period) + } + + result.minutes, st = parseField(st, 'M') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'M' marker: %s", period) + } + + result.seconds, st = parseField(st, 'S') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'S' marker: %s", period) + } + + st.pcopy = pcopy[:t] + } + + result.years, st = parseField(st, 'Y') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'Y' marker: %s", period) + } + + result.months, st = parseField(st, 'M') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'M' marker: %s", period) + } + + weeks, st := parseField(st, 'W') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'W' marker: %s", period) + } + + days, st := parseField(st, 'D') + if st.err != nil { + return Period{}, fmt.Errorf("expected a number before the 'D' marker: %s", period) + } + + result.days = weeks*7 + days + //fmt.Printf("%#v\n", st) + + if !st.ok { + return Period{}, fmt.Errorf("expected 'Y', 'M', 'W', 'D', 'H', 'M', or 'S' marker: %s", period) + } + + return result.normalise64(true).toPeriod(), nil +} + +type parseState struct { + period, pcopy string + ok bool + err error +} + +func parseField(st parseState, mark byte) (int64, parseState) { + //fmt.Printf("%c %#v\n", mark, st) + r := int64(0) + m := strings.IndexByte(st.pcopy, mark) + if m > 0 { + r, st.err = parseDecimalFixedPoint(st.pcopy[:m], st.period) + if st.err != nil { + return 0, st + } + st.pcopy = st.pcopy[m+1:] + st.ok = true + } + return r, st +} + +// Fixed-point three decimal places +func parseDecimalFixedPoint(s, original string) (int64, error) { + //was := s + dec := strings.IndexByte(s, '.') + if dec < 0 { + dec = strings.IndexByte(s, ',') + } + + if dec >= 0 { + dp := len(s) - dec + if dp > 1 { + s = s[:dec] + s[dec+1:dec+2] + } else { + s = s[:dec] + s[dec+1:] + "0" + } + } else { + s = s + "0" + } + + return strconv.ParseInt(s, 10, 64) +} diff --git a/vendor/github.com/rickb777/date/period/period.go b/vendor/github.com/rickb777/date/period/period.go new file mode 100644 index 00000000..604dbfc1 --- /dev/null +++ b/vendor/github.com/rickb777/date/period/period.go @@ -0,0 +1,739 @@ +// Copyright 2015 Rick Beton. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package period + +import ( + "fmt" + "time" +) + +const daysPerYearE4 int64 = 3652425 // 365.2425 days by the Gregorian rule +const daysPerMonthE4 int64 = 304375 // 30.4375 days per month +const daysPerMonthE6 int64 = 30436875 // 30.436875 days per month + +const oneE4 int64 = 10000 +const oneE5 int64 = 100000 +const oneE6 int64 = 1000000 +const oneE7 int64 = 10000000 + +const hundredMs = 100 * time.Millisecond + +// reminder: int64 overflow is after 9,223,372,036,854,775,807 (math.MaxInt64) + +// Period holds a period of time and provides conversion to/from ISO-8601 representations. +// Therefore there are six fields: years, months, days, hours, minutes, and seconds. +// +// In the ISO representation, decimal fractions are supported, although only the last non-zero +// component is allowed to have a fraction according to the Standard. For example "P2.5Y" +// is 2.5 years. +// +// However, in this implementation, the precision is limited to one decimal place only, by +// means of integers with fixed point arithmetic. (This avoids using float32 in the struct, +// so there are no problems testing equality using ==.) +// +// The implementation limits the range of possible values to ± 2^16 / 10 in each field. +// Note in particular that the range of years is limited to approximately ± 3276. +// +// The concept of weeks exists in string representations of periods, but otherwise weeks +// are unimportant. The period contains a number of days from which the number of weeks can +// be calculated when needed. +// +// Note that although fractional weeks can be parsed, they will never be returned via String(). +// This is because the number of weeks is always inferred from the number of days. +// +type Period struct { + years, months, days, hours, minutes, seconds int16 +} + +// NewYMD creates a simple period without any fractional parts. The fields are initialised verbatim +// without any normalisation; e.g. 12 months will not become 1 year. Use the Normalise method if you +// need to. +// +// All the parameters must have the same sign (otherwise a panic occurs). +func NewYMD(years, months, days int) Period { + return New(years, months, days, 0, 0, 0) +} + +// NewHMS creates a simple period without any fractional parts. The fields are initialised verbatim +// without any normalisation; e.g. 120 seconds will not become 2 minutes. Use the Normalise method +// if you need to. +// +// All the parameters must have the same sign (otherwise a panic occurs). +func NewHMS(hours, minutes, seconds int) Period { + return New(0, 0, 0, hours, minutes, seconds) +} + +// New creates a simple period without any fractional parts. The fields are initialised verbatim +// without any normalisation; e.g. 120 seconds will not become 2 minutes. Use the Normalise method +// if you need to. +// +// All the parameters must have the same sign (otherwise a panic occurs). +func New(years, months, days, hours, minutes, seconds int) Period { + if (years >= 0 && months >= 0 && days >= 0 && hours >= 0 && minutes >= 0 && seconds >= 0) || + (years <= 0 && months <= 0 && days <= 0 && hours <= 0 && minutes <= 0 && seconds <= 0) { + return Period{ + int16(years) * 10, int16(months) * 10, int16(days) * 10, + int16(hours) * 10, int16(minutes) * 10, int16(seconds) * 10, + } + } + panic(fmt.Sprintf("Periods must have homogeneous signs; got P%dY%dM%dDT%dH%dM%dS", + years, months, days, hours, minutes, seconds)) +} + +// TODO NewFloat + +// NewOf converts a time duration to a Period, and also indicates whether the conversion is precise. +// Any time duration that spans more than ± 3276 hours will be approximated by assuming that there +// are 24 hours per day, 30.4375 per month and 365.2425 days per year. +func NewOf(duration time.Duration) (p Period, precise bool) { + var sign int16 = 1 + d := duration + if duration < 0 { + sign = -1 + d = -duration + } + + sign10 := sign * 10 + + totalHours := int64(d / time.Hour) + + // check for 16-bit overflow - occurs near the 4.5 month mark + if totalHours < 3277 { + // simple HMS case + minutes := d % time.Hour / time.Minute + seconds := d % time.Minute / hundredMs + return Period{0, 0, 0, sign10 * int16(totalHours), sign10 * int16(minutes), sign * int16(seconds)}, true + } + + totalDays := totalHours / 24 // ignoring daylight savings adjustments + + if totalDays < 3277 { + hours := totalHours - totalDays*24 + minutes := d % time.Hour / time.Minute + seconds := d % time.Minute / hundredMs + return Period{0, 0, sign10 * int16(totalDays), sign10 * int16(hours), sign10 * int16(minutes), sign * int16(seconds)}, false + } + + // TODO it is uncertain whether this is too imprecise and should be improved + years := (oneE4 * totalDays) / daysPerYearE4 + months := ((oneE4 * totalDays) / daysPerMonthE4) - (12 * years) + hours := totalHours - totalDays*24 + totalDays = ((totalDays * oneE4) - (daysPerMonthE4 * months) - (daysPerYearE4 * years)) / oneE4 + return Period{sign10 * int16(years), sign10 * int16(months), sign10 * int16(totalDays), sign10 * int16(hours), 0, 0}, false +} + +// Between converts the span between two times to a period. Based on the Gregorian conversion +// algorithms of `time.Time`, the resultant period is precise. +// +// The result is not normalised; for time differences less than 3276 days, it will contain zero in the +// years and months fields but the number of days may be up to 3275; this reduces errors arising from +// the variable lengths of months. For larger time differences, greater than 3276 days, the months and +// years fields are used as well. +// +// Remember that the resultant period does not retain any knowledge of the calendar, so any subsequent +// computations applied to the period can only be precise if they concern either the date (year, month, +// day) part, or the clock (hour, minute, second) part, but not both. +func Between(t1, t2 time.Time) (p Period) { + if t1.Location() != t2.Location() { + t2 = t2.In(t1.Location()) + } + + sign := 1 + if t2.Before(t1) { + t1, t2, sign = t2, t1, -1 + } + + year, month, day, hour, min, sec, hundredth := daysDiff(t1, t2) + + if sign < 0 { + p = New(-year, -month, -day, -hour, -min, -sec) + p.seconds -= int16(hundredth) + } else { + p = New(year, month, day, hour, min, sec) + p.seconds += int16(hundredth) + } + return +} + +func daysDiff(t1, t2 time.Time) (year, month, day, hour, min, sec, hundredth int) { + duration := t2.Sub(t1) + + hh1, mm1, ss1 := t1.Clock() + hh2, mm2, ss2 := t2.Clock() + + day = int(duration / (24 * time.Hour)) + + hour = int(hh2 - hh1) + min = int(mm2 - mm1) + sec = int(ss2 - ss1) + hundredth = (t2.Nanosecond() - t1.Nanosecond()) / 100000000 + + // Normalize negative values + if sec < 0 { + sec += 60 + min-- + } + + if min < 0 { + min += 60 + hour-- + } + + if hour < 0 { + hour += 24 + // no need to reduce day - it's calculated differently. + } + + // test 16bit storage limit (with 1 fixed decimal place) + if day > 3276 { + y1, m1, d1 := t1.Date() + y2, m2, d2 := t2.Date() + year = y2 - y1 + month = int(m2 - m1) + day = d2 - d1 + } + + return +} + +// IsZero returns true if applied to a zero-length period. +func (period Period) IsZero() bool { + return period == Period{} +} + +// IsPositive returns true if any field is greater than zero. By design, this also implies that +// all the other fields are greater than or equal to zero. +func (period Period) IsPositive() bool { + return period.years > 0 || period.months > 0 || period.days > 0 || + period.hours > 0 || period.minutes > 0 || period.seconds > 0 +} + +// IsNegative returns true if any field is negative. By design, this also implies that +// all the other fields are negative or zero. +func (period Period) IsNegative() bool { + return period.years < 0 || period.months < 0 || period.days < 0 || + period.hours < 0 || period.minutes < 0 || period.seconds < 0 +} + +// Sign returns +1 for positive periods and -1 for negative periods. If the period is zero, it returns zero. +func (period Period) Sign() int { + if period.IsZero() { + return 0 + } + if period.IsNegative() { + return -1 + } + return 1 +} + +// OnlyYMD returns a new Period with only the year, month and day fields. The hour, +// minute and second fields are zeroed. +func (period Period) OnlyYMD() Period { + return Period{period.years, period.months, period.days, 0, 0, 0} +} + +// OnlyHMS returns a new Period with only the hour, minute and second fields. The year, +// month and day fields are zeroed. +func (period Period) OnlyHMS() Period { + return Period{0, 0, 0, period.hours, period.minutes, period.seconds} +} + +// Abs converts a negative period to a positive one. +func (period Period) Abs() Period { + return Period{absInt16(period.years), absInt16(period.months), absInt16(period.days), + absInt16(period.hours), absInt16(period.minutes), absInt16(period.seconds)} +} + +func absInt16(v int16) int16 { + if v < 0 { + return -v + } + return v +} + +// Negate changes the sign of the period. +func (period Period) Negate() Period { + return Period{-period.years, -period.months, -period.days, -period.hours, -period.minutes, -period.seconds} +} + +// Add adds two periods together. Use this method along with Negate in order to subtract periods. +// +// The result is not normalised and may overflow arithmetically (to make this unlikely, use Normalise on +// the inputs before adding them). +func (period Period) Add(that Period) Period { + return Period{ + period.years + that.years, + period.months + that.months, + period.days + that.days, + period.hours + that.hours, + period.minutes + that.minutes, + period.seconds + that.seconds, + } +} + +// Scale a period by a multiplication factor. Obviously, this can both enlarge and shrink it, +// and change the sign if negative. The result is normalised. +// +// Bear in mind that the internal representation is limited by fixed-point arithmetic with one +// decimal place; each field is only int16. +// +// Known issue: scaling by a large reduction factor (i.e. much less than one) doesn't work properly. +func (period Period) Scale(factor float32) Period { + + if -0.5 < factor && factor < 0.5 { + d, pr1 := period.Duration() + mul := float64(d) * float64(factor) + p2, pr2 := NewOf(time.Duration(mul)) + return p2.Normalise(pr1 && pr2) + } + + y := int64(float32(period.years) * factor) + m := int64(float32(period.months) * factor) + d := int64(float32(period.days) * factor) + hh := int64(float32(period.hours) * factor) + mm := int64(float32(period.minutes) * factor) + ss := int64(float32(period.seconds) * factor) + + return (&period64{y, m, d, hh, mm, ss, false}).normalise64(true).toPeriod() +} + +// Years gets the whole number of years in the period. +// The result is the number of years and does not include any other field. +func (period Period) Years() int { + return int(period.YearsFloat()) +} + +// YearsFloat gets the number of years in the period, including a fraction if any is present. +// The result is the number of years and does not include any other field. +func (period Period) YearsFloat() float32 { + return float32(period.years) / 10 +} + +// Months gets the whole number of months in the period. +// The result is the number of months and does not include any other field. +// +// Note that after normalisation, whole multiple of 12 months are added to +// the number of years, so the number of months will be reduced correspondingly. +func (period Period) Months() int { + return int(period.MonthsFloat()) +} + +// MonthsFloat gets the number of months in the period. +// The result is the number of months and does not include any other field. +// +// Note that after normalisation, whole multiple of 12 months are added to +// the number of years, so the number of months will be reduced correspondingly. +func (period Period) MonthsFloat() float32 { + return float32(period.months) / 10 +} + +// Days gets the whole number of days in the period. This includes the implied +// number of weeks but does not include any other field. +func (period Period) Days() int { + return int(period.DaysFloat()) +} + +// DaysFloat gets the number of days in the period. This includes the implied +// number of weeks but does not include any other field. +func (period Period) DaysFloat() float32 { + return float32(period.days) / 10 +} + +// Weeks calculates the number of whole weeks from the number of days. If the result +// would contain a fraction, it is truncated. +// The result is the number of weeks and does not include any other field. +// +// Note that weeks are synthetic: they are internally represented using days. +// See ModuloDays(), which returns the number of days excluding whole weeks. +func (period Period) Weeks() int { + return int(period.days) / 70 +} + +// WeeksFloat calculates the number of weeks from the number of days. +// The result is the number of weeks and does not include any other field. +func (period Period) WeeksFloat() float32 { + return float32(period.days) / 70 +} + +// ModuloDays calculates the whole number of days remaining after the whole number of weeks +// has been excluded. +func (period Period) ModuloDays() int { + days := absInt16(period.days) % 70 + f := int(days / 10) + if period.days < 0 { + return -f + } + return f +} + +// Hours gets the whole number of hours in the period. +// The result is the number of hours and does not include any other field. +func (period Period) Hours() int { + return int(period.HoursFloat()) +} + +// HoursFloat gets the number of hours in the period. +// The result is the number of hours and does not include any other field. +func (period Period) HoursFloat() float32 { + return float32(period.hours) / 10 +} + +// Minutes gets the whole number of minutes in the period. +// The result is the number of minutes and does not include any other field. +// +// Note that after normalisation, whole multiple of 60 minutes are added to +// the number of hours, so the number of minutes will be reduced correspondingly. +func (period Period) Minutes() int { + return int(period.MinutesFloat()) +} + +// MinutesFloat gets the number of minutes in the period. +// The result is the number of minutes and does not include any other field. +// +// Note that after normalisation, whole multiple of 60 minutes are added to +// the number of hours, so the number of minutes will be reduced correspondingly. +func (period Period) MinutesFloat() float32 { + return float32(period.minutes) / 10 +} + +// Seconds gets the whole number of seconds in the period. +// The result is the number of seconds and does not include any other field. +// +// Note that after normalisation, whole multiple of 60 seconds are added to +// the number of minutes, so the number of seconds will be reduced correspondingly. +func (period Period) Seconds() int { + return int(period.SecondsFloat()) +} + +// SecondsFloat gets the number of seconds in the period. +// The result is the number of seconds and does not include any other field. +// +// Note that after normalisation, whole multiple of 60 seconds are added to +// the number of minutes, so the number of seconds will be reduced correspondingly. +func (period Period) SecondsFloat() float32 { + return float32(period.seconds) / 10 +} + +// AddTo adds the period to a time, returning the result. +// A flag is also returned that is true when the conversion was precise and false otherwise. +// +// When the period specifies hours, minutes and seconds only, the result is precise. +// Also, when the period specifies whole years, months and days (i.e. without fractions), the +// result is precise. However, when years, months or days contains fractions, the result +// is only an approximation (it assumes that all days are 24 hours and every year is 365.2425 days). +func (period Period) AddTo(t time.Time) (time.Time, bool) { + wholeYears := (period.years % 10) == 0 + wholeMonths := (period.months % 10) == 0 + wholeDays := (period.days % 10) == 0 + + if wholeYears && wholeMonths && wholeDays { + // in this case, time.AddDate provides an exact solution + stE3 := totalSecondsE3(period) + t1 := t.AddDate(int(period.years/10), int(period.months/10), int(period.days/10)) + return t1.Add(stE3 * time.Millisecond), true + } + + d, precise := period.Duration() + return t.Add(d), precise +} + +// DurationApprox converts a period to the equivalent duration in nanoseconds. +// When the period specifies hours, minutes and seconds only, the result is precise. +// however, when the period specifies years, months and days, it is impossible to be precise +// because the result may depend on knowing date and timezone information, so the duration +// is estimated on the basis of a year being 365.2425 days and a month being +// 1/12 of a that; days are all assumed to be 24 hours long. +func (period Period) DurationApprox() time.Duration { + d, _ := period.Duration() + return d +} + +// Duration converts a period to the equivalent duration in nanoseconds. +// A flag is also returned that is true when the conversion was precise and false otherwise. +// +// When the period specifies hours, minutes and seconds only, the result is precise. +// however, when the period specifies years, months and days, it is impossible to be precise +// because the result may depend on knowing date and timezone information, so the duration +// is estimated on the basis of a year being 365.2425 days and a month being +// 1/12 of a that; days are all assumed to be 24 hours long. +func (period Period) Duration() (time.Duration, bool) { + // remember that the fields are all fixed-point 1E1 + tdE6 := time.Duration(totalDaysApproxE7(period) * 8640) + stE3 := totalSecondsE3(period) + return tdE6*time.Microsecond + stE3*time.Millisecond, tdE6 == 0 +} + +func totalSecondsE3(period Period) time.Duration { + // remember that the fields are all fixed-point 1E1 + // and these are divided by 1E1 + hhE3 := time.Duration(period.hours) * 360000 + mmE3 := time.Duration(period.minutes) * 6000 + ssE3 := time.Duration(period.seconds) * 100 + return hhE3 + mmE3 + ssE3 +} + +func totalDaysApproxE7(period Period) int64 { + // remember that the fields are all fixed-point 1E1 + ydE6 := int64(period.years) * (daysPerYearE4 * 100) + mdE6 := int64(period.months) * daysPerMonthE6 + ddE6 := int64(period.days) * oneE6 + return ydE6 + mdE6 + ddE6 +} + +// TotalDaysApprox gets the approximate total number of days in the period. The approximation assumes +// a year is 365.2425 days and a month is 1/12 of that. Whole multiples of 24 hours are also included +// in the calculation. +func (period Period) TotalDaysApprox() int { + pn := period.Normalise(false) + tdE6 := totalDaysApproxE7(pn) + hE6 := (int64(pn.hours) * oneE6) / 24 + return int((tdE6 + hE6) / oneE7) +} + +// TotalMonthsApprox gets the approximate total number of months in the period. The days component +// is included by approximation, assuming a year is 365.2425 days and a month is 1/12 of that. +// Whole multiples of 24 hours are also included in the calculation. +func (period Period) TotalMonthsApprox() int { + pn := period.Normalise(false) + mE1 := int64(pn.years)*12 + int64(pn.months) + hE1 := int64(pn.hours) / 24 + dE1 := ((int64(pn.days) + hE1) * oneE6) / daysPerMonthE6 + return int((mE1 + dE1) / 10) +} + +// Normalise attempts to simplify the fields. It operates in either precise or imprecise mode. +// +// Because the number of hours per day is imprecise (due to daylight savings etc), and because +// the number of days per month is variable in the Gregorian calendar, there is a reluctance +// to transfer time too or from the days element. To give control over this, there are two modes. +// +// In precise mode: +// Multiples of 60 seconds become minutes. +// Multiples of 60 minutes become hours. +// Multiples of 12 months become years. +// +// Additionally, in imprecise mode: +// Multiples of 24 hours become days. +// Multiples of approx. 30.4 days become months. +// +// Note that leap seconds are disregarded: every minute is assumed to have 60 seconds. +func (period Period) Normalise(precise bool) Period { + const limit = 32670 - (32670 / 60) + + // can we use a quicker algorithm for HHMMSS with int16 arithmetic? + if period.years == 0 && period.months == 0 && + (!precise || period.days == 0) && + period.hours > -limit && period.hours < limit { + + return period.normaliseHHMMSS(precise) + } + + // can we use a quicker algorithm for YYMM with int16 arithmetic? + if (period.years != 0 || period.months != 0) && //period.months%10 == 0 && + period.days == 0 && period.hours == 0 && period.minutes == 0 && period.seconds == 0 { + + return period.normaliseYYMM() + } + + // do things the no-nonsense way using int64 arithmetic + return period.toPeriod64().normalise64(precise).toPeriod() +} + +func (period Period) normaliseHHMMSS(precise bool) Period { + s := period.Sign() + ap := period.Abs() + + // remember that the fields are all fixed-point 1E1 + ap.minutes += (ap.seconds / 600) * 10 + ap.seconds = ap.seconds % 600 + + ap.hours += (ap.minutes / 600) * 10 + ap.minutes = ap.minutes % 600 + + // up to 36 hours stays as hours + if !precise && ap.hours > 360 { + ap.days += (ap.hours / 240) * 10 + ap.hours = ap.hours % 240 + } + + d10 := ap.days % 10 + if d10 != 0 && (ap.hours != 0 || ap.minutes != 0 || ap.seconds != 0) { + ap.hours += d10 * 24 + ap.days -= d10 + } + + hh10 := ap.hours % 10 + if hh10 != 0 { + ap.minutes += hh10 * 60 + ap.hours -= hh10 + } + + mm10 := ap.minutes % 10 + if mm10 != 0 { + ap.seconds += mm10 * 60 + ap.minutes -= mm10 + } + + if s < 0 { + return ap.Negate() + } + return ap +} + +func (period Period) normaliseYYMM() Period { + s := period.Sign() + ap := period.Abs() + + // remember that the fields are all fixed-point 1E1 + if ap.months > 129 { + ap.years += (ap.months / 120) * 10 + ap.months = ap.months % 120 + } + + y10 := ap.years % 10 + if y10 != 0 && (ap.years < 10 || ap.months != 0) { + ap.months += y10 * 12 + ap.years -= y10 + } + + if s < 0 { + return ap.Negate() + } + return ap +} + +//------------------------------------------------------------------------------------------------- + +// used for stages in arithmetic +type period64 struct { + years, months, days, hours, minutes, seconds int64 + neg bool +} + +func (period Period) toPeriod64() *period64 { + return &period64{ + int64(period.years), int64(period.months), int64(period.days), + int64(period.hours), int64(period.minutes), int64(period.seconds), + false, + } +} + +func (p *period64) toPeriod() Period { + if p.neg { + return Period{ + int16(-p.years), int16(-p.months), int16(-p.days), + int16(-p.hours), int16(-p.minutes), int16(-p.seconds), + } + } + + return Period{ + int16(p.years), int16(p.months), int16(p.days), + int16(p.hours), int16(p.minutes), int16(p.seconds), + } +} + +func (p *period64) normalise64(precise bool) *period64 { + return p.abs().rippleUp(precise).moveFractionToRight() +} + +func (p *period64) abs() *period64 { + + if !p.neg { + if p.years < 0 { + p.years = -p.years + p.neg = true + } + + if p.months < 0 { + p.months = -p.months + p.neg = true + } + + if p.days < 0 { + p.days = -p.days + p.neg = true + } + + if p.hours < 0 { + p.hours = -p.hours + p.neg = true + } + + if p.minutes < 0 { + p.minutes = -p.minutes + p.neg = true + } + + if p.seconds < 0 { + p.seconds = -p.seconds + p.neg = true + } + } + return p +} + +func (p *period64) rippleUp(precise bool) *period64 { + // remember that the fields are all fixed-point 1E1 + + p.minutes = p.minutes + (p.seconds/600)*10 + p.seconds = p.seconds % 600 + + p.hours = p.hours + (p.minutes/600)*10 + p.minutes = p.minutes % 600 + + // 32670-(32670/60)-(32670/3600) = 32760 - 546 - 9.1 = 32204.9 + if !precise || p.hours > 32204 { + p.days += (p.hours / 240) * 10 + p.hours = p.hours % 240 + } + + if !precise || p.days > 32760 { + dE6 := p.days * oneE6 + p.months += dE6 / daysPerMonthE6 + p.days = (dE6 % daysPerMonthE6) / oneE6 + } + + p.years = p.years + (p.months/120)*10 + p.months = p.months % 120 + + return p +} + +// moveFractionToRight applies the rule that only the smallest field is permitted to have a decimal fraction. +func (p *period64) moveFractionToRight() *period64 { + // remember that the fields are all fixed-point 1E1 + + y10 := p.years % 10 + if y10 != 0 && (p.months != 0 || p.days != 0 || p.hours != 0 || p.minutes != 0 || p.seconds != 0) { + p.months += y10 * 12 + p.years = (p.years / 10) * 10 + } + + m10 := p.months % 10 + if m10 != 0 && (p.days != 0 || p.hours != 0 || p.minutes != 0 || p.seconds != 0) { + p.days += (m10 * daysPerMonthE6) / oneE6 + p.months = (p.months / 10) * 10 + } + + d10 := p.days % 10 + if d10 != 0 && (p.hours != 0 || p.minutes != 0 || p.seconds != 0) { + p.hours += d10 * 24 + p.days = (p.days / 10) * 10 + } + + hh10 := p.hours % 10 + if hh10 != 0 && (p.minutes != 0 || p.seconds != 0) { + p.minutes += hh10 * 60 + p.hours = (p.hours / 10) * 10 + } + + mm10 := p.minutes % 10 + if mm10 != 0 && p.seconds != 0 { + p.seconds += mm10 * 60 + p.minutes = (p.minutes / 10) * 10 + } + + return p +} diff --git a/vendor/github.com/rickb777/plural/.gitignore b/vendor/github.com/rickb777/plural/.gitignore new file mode 100644 index 00000000..49ef8df4 --- /dev/null +++ b/vendor/github.com/rickb777/plural/.gitignore @@ -0,0 +1,26 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj/ +_test/ +vendor/ + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof +*.out diff --git a/vendor/github.com/rickb777/plural/.travis.yml b/vendor/github.com/rickb777/plural/.travis.yml new file mode 100644 index 00000000..70996d4b --- /dev/null +++ b/vendor/github.com/rickb777/plural/.travis.yml @@ -0,0 +1,11 @@ +language: go + +go: + - tip + +install: + - go get -t -v . + - go get github.com/mattn/goveralls + +script: + - ./build+test.sh diff --git a/vendor/github.com/rickb777/plural/LICENSE b/vendor/github.com/rickb777/plural/LICENSE new file mode 100644 index 00000000..4faeca51 --- /dev/null +++ b/vendor/github.com/rickb777/plural/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2016, Rick Beton +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 plural 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/rickb777/plural/README.md b/vendor/github.com/rickb777/plural/README.md new file mode 100644 index 00000000..b73bc256 --- /dev/null +++ b/vendor/github.com/rickb777/plural/README.md @@ -0,0 +1,28 @@ +# plural - Simple Go API for Pluralisation. + +[![GoDoc](https://img.shields.io/badge/api-Godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/rickb777/plural) +[![Build Status](https://travis-ci.org/rickb777/plural.svg?branch=master)](https://travis-ci.org/rickb777/plural) +[![Coverage Status](https://coveralls.io/repos/github/rickb777/plural/badge.svg?branch=master&service=github)](https://coveralls.io/github/rickb777/plural?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/rickb777/plural)](https://goreportcard.com/report/github.com/rickb777/plural) +[![Issues](https://img.shields.io/github/issues/rickb777/plural.svg)](https://github.com/rickb777/plural/issues) + +Package plural provides simple support for localising plurals in a flexible range of different styles. + +There are considerable differences around the world in the way plurals are handled. This is a simple +but competent API for catering with these differences when presenting to people formatted text with numbers. + +This package is able to format **countable things** and **continuous values**. It can handle integers +and floating point numbers equally and this allows you to decide to what extent each is appropriate. + +For example, `2 cars` might weigh `1.6 tonnes`; both categories are covered. + +This API is deliberately simple; it doesn't address the full gamut of internationalisation. If that's +what you need, you should consider products such as https://github.com/nicksnyder/go-i18n instead. + +## Installation + + go get -u github.com/rickb777/plural + +## Status + +This library has been in reliable production use for some time. Versioning follows the well-known semantic version pattern. diff --git a/vendor/github.com/rickb777/plural/build+test.sh b/vendor/github.com/rickb777/plural/build+test.sh new file mode 100644 index 00000000..d4a38342 --- /dev/null +++ b/vendor/github.com/rickb777/plural/build+test.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e +cd $(dirname $0) +PATH=$HOME/gopath/bin:$GOPATH/bin:$PATH + +if ! type -p goveralls; then + echo go get github.com/mattn/goveralls + go get github.com/mattn/goveralls +fi + +echo date... +go test -v -covermode=count -coverprofile=date.out . +go tool cover -func=date.out +[ -z "$COVERALLS_TOKEN" ] || goveralls -coverprofile=date.out -service=travis-ci -repotoken $COVERALLS_TOKEN diff --git a/vendor/github.com/rickb777/plural/doc.go b/vendor/github.com/rickb777/plural/doc.go new file mode 100644 index 00000000..90adf6b5 --- /dev/null +++ b/vendor/github.com/rickb777/plural/doc.go @@ -0,0 +1,20 @@ +// Copyright 2016 Rick Beton. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package plural provides simple support for localising plurals in a flexible range of different styles. +// +// There are considerable differences around the world in the way plurals are handled. This is +// a simple but competent API for catering with these differences when presenting to people formatted text with numbers. +// +// This package is able to format countable things and continuous values. It can handle integers +// and floating point numbers equally and this allows you to decide to what extent each is appropriate. +// +// For example, "2 cars" might weigh "1.6 tonnes"; both categories are covered. +// +// This API is deliberately simple; it doesn't address the full gamut of internationalisation. If that's +// what you need, you should consider products such as https://github.com/nicksnyder/go-i18n instead. +// +// Please see the examples and associated api documentation. +// +package plural diff --git a/vendor/github.com/rickb777/plural/plural.go b/vendor/github.com/rickb777/plural/plural.go new file mode 100644 index 00000000..794a433f --- /dev/null +++ b/vendor/github.com/rickb777/plural/plural.go @@ -0,0 +1,203 @@ +package plural + +import ( + "fmt" + "strings" +) + +// Case is the inner element of this API and describes one case. When the number to be described +// matches the number here, the corresponding format string will be used. If the format string +// includes '%', then fmt.Sprintf will be used. Otherwise the format string will be returned verbatim. +type Case struct { + Number int + Format string +} + +// Plurals provides a list of plural cases in the order they will be searched. +// For plurals of continuous ranges (e.g. weight), the cases must be in ascending number order. +// For plurals of discrete ranges (i.e. integers), the cases can be in any order you require, +// but will conventionally be in ascending number order. +// If no match is found, the last case will be used. +type Plurals []Case + +// Format searches through the plural cases for the first match. If none is found, the last +// case is used. The value passed in can be any number type, or pointer to a number type, except +// complex numbers are not supported. The value will be converted to an int in order to +// find the first case that matches. +// The only possible error arises if value has a type that is not numeric. +// It panics if 'plurals' is empty. +func (plurals Plurals) Format(value interface{}) (string, error) { + switch x := value.(type) { + case int: + return plurals.FormatInt(x), nil + case int8: + return plurals.FormatInt(int(x)), nil + case int16: + return plurals.FormatInt(int(x)), nil + case int32: + return plurals.FormatInt(int(x)), nil + case int64: + return plurals.FormatInt(int(x)), nil + case uint8: + return plurals.FormatInt(int(x)), nil + case uint16: + return plurals.FormatInt(int(x)), nil + case uint32: + return plurals.FormatInt(int(x)), nil + case uint64: + return plurals.FormatInt(int(x)), nil + case float32: + return plurals.FormatFloat(x), nil + case float64: + return plurals.FormatFloat(float32(x)), nil + + case *int: + return plurals.FormatInt(*x), nil + case *int8: + return plurals.FormatInt(int(*x)), nil + case *int16: + return plurals.FormatInt(int(*x)), nil + case *int32: + return plurals.FormatInt(int(*x)), nil + case *int64: + return plurals.FormatInt(int(*x)), nil + case *uint: + return plurals.FormatInt(int(*x)), nil + case *uint8: + return plurals.FormatInt(int(*x)), nil + case *uint16: + return plurals.FormatInt(int(*x)), nil + case *uint32: + return plurals.FormatInt(int(*x)), nil + case *uint64: + return plurals.FormatInt(int(*x)), nil + case *float32: + return plurals.FormatFloat(*x), nil + case *float64: + return plurals.FormatFloat(float32(*x)), nil + + case nil: + return "", fmt.Errorf("Unexpected nil value for %s", plurals) + default: + return "", fmt.Errorf("Unexpected type %T for %v", x, value) + } +} + +// FormatInt expresses an int in plural form. It panics if 'plurals' is empty. +func (plurals Plurals) FormatInt(value int) string { + for _, c := range plurals { + if value == c.Number { + return c.FormatInt(value) + } + } + c := plurals[len(plurals)-1] + return c.FormatInt(value) +} + +// FormatFloat expresses a float32 in plural form. It panics if 'plurals' is empty. +func (plurals Plurals) FormatFloat(value float32) string { + for _, c := range plurals { + if value <= float32(c.Number) { + return c.FormatFloat(value) + } + } + c := plurals[len(plurals)-1] + return c.FormatFloat(value) +} + +// FormatInt renders a specific case with a given value. +func (c Case) FormatInt(value int) string { + if strings.IndexByte(c.Format, '%') < 0 { + return c.Format + } + return fmt.Sprintf(c.Format, value) +} + +// FormatFloat renders a specific case with a given value. +func (c Case) FormatFloat(value float32) string { + if strings.IndexByte(c.Format, '%') < 0 { + return c.Format + } + return fmt.Sprintf(c.Format, value) +} + +//------------------------------------------------------------------------------------------------- + +// String implements io.Stringer. +func (plurals Plurals) String() string { + ss := make([]string, 0, len(plurals)) + for _, c := range plurals { + ss = append(ss, c.String()) + } + return fmt.Sprintf("Plurals(%s)", strings.Join(ss, ", ")) +} + +// String implements io.Stringer. +func (c Case) String() string { + return fmt.Sprintf("{%v -> %q}", c.Number, c.Format) +} + +//------------------------------------------------------------------------------------------------- + +// ByOrdinal constructs a simple set of cases using small ordinals (0, 1, 2, 3 etc), which is a +// common requirement. It is an alias for FromZero. +func ByOrdinal(zeroth string, rest ...string) Plurals { + return FromZero(zeroth, rest...) +} + +// FromZero constructs a simple set of cases using small ordinals (0, 1, 2, 3 etc), which is a +// common requirement. It prevents creation of a Plurals list that is empty, which would be invalid. +// +// The 'zeroth' string becomes Case{0, first}. The rest are appended similarly. Notice that the +// counting starts from zero. +// +// So +// +// FromZero("nothing", "%v thing", "%v things") +// +// is simply a shorthand for +// +// Plurals{Case{0, "nothing"}, Case{1, "%v thing"}, Case{2, "%v things"}} +// +// which would also be valid but a little more verbose. +// +// This helper function is less flexible than constructing Plurals directly, but covers many common +// situations. +func FromZero(zeroth string, rest ...string) Plurals { + p := make(Plurals, 0, len(rest)+1) + p = append(p, Case{0, zeroth}) + for i, c := range rest { + p = append(p, Case{i+1, c}) + } + return p +} + +// FromOne constructs a simple set of cases using small positive numbers (1, 2, 3 etc), which is a +// common requirement. It prevents creation of a Plurals list that is empty, which would be invalid. +// +// The 'first' string becomes Case{1, first}. The rest are appended similarly. Notice that the +// counting starts from one. +// +// So +// +// FromOne("%v thing", "%v things") +// +// is simply a shorthand for +// +// Plurals{Case{1, "%v thing"}, Case{2, "%v things"}} +// +// which would also be valid but a little more verbose. +// +// Note the behaviour of formatting when the count is zero. As a consequence of Format evaluating +// the cases in order, FromOne(...).FormatInt(0) will pick the last case you provide, not the first. +// +// This helper function is less flexible than constructing Plurals directly, but covers many common +// situations. +func FromOne(first string, rest ...string) Plurals { + p := make(Plurals, 0, len(rest)+1) + p = append(p, Case{1, first}) + for i, c := range rest { + p = append(p, Case{i+2, c}) + } + return p +} diff --git a/vendor/github.com/yaegashi/msgraph.go/LICENSE b/vendor/github.com/yaegashi/msgraph.go/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/vendor/github.com/yaegashi/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/yaegashi/msgraph.go/beta/ActionAad.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go new file mode 100644 index 00000000..0700507f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// User is navigation property +func (b *AadUserConversationMemberRequestBuilder) User() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/user" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go new file mode 100644 index 00000000..c0d8712d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go @@ -0,0 +1,1688 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AccessPackageAssignmentRequestObjectCancelRequestParameter undocumented +type AccessPackageAssignmentRequestObjectCancelRequestParameter struct { +} + +// AccessReviewStopRequestParameter undocumented +type AccessReviewStopRequestParameter struct { +} + +// AccessReviewSendReminderRequestParameter undocumented +type AccessReviewSendReminderRequestParameter struct { +} + +// AccessReviewResetDecisionsRequestParameter undocumented +type AccessReviewResetDecisionsRequestParameter struct { +} + +// AccessReviewApplyDecisionsRequestParameter undocumented +type AccessReviewApplyDecisionsRequestParameter struct { +} + +// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection +func (b *AccessPackageRequestBuilder) AccessPackageAssignmentPolicies() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder { + bb := &AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentPolicies" + return bb +} + +// AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection +type AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentPolicy collection +func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest { + return &AccessPackageAccessPackageAssignmentPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentPolicy item +func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder { + bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection +type AccessPackageAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection +func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages +func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentPolicy collection +func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentPolicy collection +func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageCatalog is navigation property +func (b *AccessPackageRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder { + bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageCatalog" + return bb +} + +// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection +func (b *AccessPackageRequestBuilder) AccessPackageResourceRoleScopes() *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder { + bb := &AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRoleScopes" + return bb +} + +// AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection +type AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRoleScope collection +func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *AccessPackageAccessPackageResourceRoleScopesCollectionRequest { + return &AccessPackageAccessPackageResourceRoleScopesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRoleScope item +func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder { + bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection +type AccessPackageAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRoleScope collection +func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRoleScope + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRoleScope + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages +func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRoleScope collection +func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRoleScope collection +func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackage is navigation property +func (b *AccessPackageAssignmentRequestBuilder) AccessPackage() *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackage" + return bb +} + +// AccessPackageAssignmentPolicy is navigation property +func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentPolicy() *AccessPackageAssignmentPolicyRequestBuilder { + bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentPolicy" + return bb +} + +// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection +func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentRequests() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder { + bb := &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentRequests" + return bb +} + +// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection +type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentRequestObject collection +func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest { + return &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentRequestObject item +func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder { + bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection +type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection +func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages +func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentRequestObject collection +func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentRequestObject collection +func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection +func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentResourceRoles() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder { + bb := &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentResourceRoles" + return bb +} + +// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection +type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentResourceRole collection +func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest { + return &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentResourceRole item +func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder { + bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection +type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection +func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentResourceRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentResourceRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages +func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentResourceRole collection +func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentResourceRole collection +func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Target is navigation property +func (b *AccessPackageAssignmentRequestBuilder) Target() *AccessPackageSubjectRequestBuilder { + bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/target" + return bb +} + +// AccessPackage is navigation property +func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackage() *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackage" + return bb +} + +// AccessPackageCatalog is navigation property +func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder { + bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageCatalog" + return bb +} + +// AccessPackage is navigation property +func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackage() *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackage" + return bb +} + +// AccessPackageAssignment is navigation property +func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackageAssignment() *AccessPackageAssignmentRequestBuilder { + bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignment" + return bb +} + +// Requestor is navigation property +func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder { + bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/requestor" + return bb +} + +// AccessPackageAssignments returns request builder for AccessPackageAssignment collection +func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageAssignments() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder { + bb := &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignments" + return bb +} + +// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection +type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignment collection +func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) Request() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest { + return &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignment item +func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder { + bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection +type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignment collection +func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignment collection, max N pages +func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignment collection +func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignment collection +func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRole is navigation property +func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder { + bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRole" + return bb +} + +// AccessPackageResourceScope is navigation property +func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder { + bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceScope" + return bb +} + +// AccessPackageSubject is navigation property +func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageSubject() *AccessPackageSubjectRequestBuilder { + bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageSubject" + return bb +} + +// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection +func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceRoles() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder { + bb := &AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRoles" + return bb +} + +// AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection +type AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRole collection +func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest { + return &AccessPackageCatalogAccessPackageResourceRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRole item +func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder { + bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageCatalogAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection +type AccessPackageCatalogAccessPackageResourceRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRole collection +func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRole collection, max N pages +func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRole collection +func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRole collection +func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection +func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceScopes() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder { + bb := &AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceScopes" + return bb +} + +// AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection +type AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceScope collection +func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest { + return &AccessPackageCatalogAccessPackageResourceScopesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceScope item +func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder { + bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageCatalogAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection +type AccessPackageCatalogAccessPackageResourceScopesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceScope collection +func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceScope, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceScope + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceScope + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceScope collection, max N pages +func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceScope, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceScope collection +func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceScope collection +func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResources returns request builder for AccessPackageResource collection +func (b *AccessPackageCatalogRequestBuilder) AccessPackageResources() *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder { + bb := &AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResources" + return bb +} + +// AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection +type AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResource collection +func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourcesCollectionRequest { + return &AccessPackageCatalogAccessPackageResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResource item +func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageCatalogAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection +type AccessPackageCatalogAccessPackageResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResource collection +func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResource collection, max N pages +func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResource collection +func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResource collection +func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackages returns request builder for AccessPackage collection +func (b *AccessPackageCatalogRequestBuilder) AccessPackages() *AccessPackageCatalogAccessPackagesCollectionRequestBuilder { + bb := &AccessPackageCatalogAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackages" + return bb +} + +// AccessPackageCatalogAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection +type AccessPackageCatalogAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackage collection +func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackagesCollectionRequest { + return &AccessPackageCatalogAccessPackagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackage item +func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageCatalogAccessPackagesCollectionRequest is request for AccessPackage collection +type AccessPackageCatalogAccessPackagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackage collection +func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackage collection, max N pages +func (r *AccessPackageCatalogAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackage collection +func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackage collection +func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection +func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceRoles() *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder { + bb := &AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRoles" + return bb +} + +// AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection +type AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRole collection +func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceRolesCollectionRequest { + return &AccessPackageResourceAccessPackageResourceRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRole item +func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder { + bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageResourceAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection +type AccessPackageResourceAccessPackageResourceRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRole collection +func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRole collection, max N pages +func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRole collection +func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRole collection +func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection +func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceScopes() *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder { + bb := &AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceScopes" + return bb +} + +// AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection +type AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceScope collection +func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceScopesCollectionRequest { + return &AccessPackageResourceAccessPackageResourceScopesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceScope item +func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder { + bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessPackageResourceAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection +type AccessPackageResourceAccessPackageResourceScopesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceScope collection +func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceScope, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceScope + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceScope + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceScope collection, max N pages +func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceScope, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceScope collection +func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceScope collection +func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResource is navigation property +func (b *AccessPackageResourceRequestObjectRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResource" + return bb +} + +// Requestor is navigation property +func (b *AccessPackageResourceRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder { + bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/requestor" + return bb +} + +// AccessPackageResource is navigation property +func (b *AccessPackageResourceRoleRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResource" + return bb +} + +// AccessPackageResourceRole is navigation property +func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder { + bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRole" + return bb +} + +// AccessPackageResourceScope is navigation property +func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder { + bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceScope" + return bb +} + +// AccessPackageResource is navigation property +func (b *AccessPackageResourceScopeRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResource" + return bb +} + +// Decisions returns request builder for AccessReviewDecision collection +func (b *AccessReviewRequestBuilder) Decisions() *AccessReviewDecisionsCollectionRequestBuilder { + bb := &AccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/decisions" + return bb +} + +// AccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection +type AccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewDecision collection +func (b *AccessReviewDecisionsCollectionRequestBuilder) Request() *AccessReviewDecisionsCollectionRequest { + return &AccessReviewDecisionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewDecision item +func (b *AccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder { + bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection +type AccessReviewDecisionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewDecision collection +func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewDecision + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewDecision + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewDecision collection, max N pages +func (r *AccessReviewDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewDecision collection +func (r *AccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewDecision collection +func (r *AccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Instances returns request builder for AccessReview collection +func (b *AccessReviewRequestBuilder) Instances() *AccessReviewInstancesCollectionRequestBuilder { + bb := &AccessReviewInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/instances" + return bb +} + +// AccessReviewInstancesCollectionRequestBuilder is request builder for AccessReview collection +type AccessReviewInstancesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReview collection +func (b *AccessReviewInstancesCollectionRequestBuilder) Request() *AccessReviewInstancesCollectionRequest { + return &AccessReviewInstancesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReview item +func (b *AccessReviewInstancesCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder { + bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessReviewInstancesCollectionRequest is request for AccessReview collection +type AccessReviewInstancesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReview collection +func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReview, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReview + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReview + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReview collection, max N pages +func (r *AccessReviewInstancesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReview, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReview collection +func (r *AccessReviewInstancesCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReview collection +func (r *AccessReviewInstancesCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MyDecisions returns request builder for AccessReviewDecision collection +func (b *AccessReviewRequestBuilder) MyDecisions() *AccessReviewMyDecisionsCollectionRequestBuilder { + bb := &AccessReviewMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/myDecisions" + return bb +} + +// AccessReviewMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection +type AccessReviewMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewDecision collection +func (b *AccessReviewMyDecisionsCollectionRequestBuilder) Request() *AccessReviewMyDecisionsCollectionRequest { + return &AccessReviewMyDecisionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewDecision item +func (b *AccessReviewMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder { + bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessReviewMyDecisionsCollectionRequest is request for AccessReviewDecision collection +type AccessReviewMyDecisionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewDecision collection +func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewDecision + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewDecision + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewDecision collection, max N pages +func (r *AccessReviewMyDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewDecision collection +func (r *AccessReviewMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewDecision collection +func (r *AccessReviewMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Reviewers returns request builder for AccessReviewReviewer collection +func (b *AccessReviewRequestBuilder) Reviewers() *AccessReviewReviewersCollectionRequestBuilder { + bb := &AccessReviewReviewersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/reviewers" + return bb +} + +// AccessReviewReviewersCollectionRequestBuilder is request builder for AccessReviewReviewer collection +type AccessReviewReviewersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewReviewer collection +func (b *AccessReviewReviewersCollectionRequestBuilder) Request() *AccessReviewReviewersCollectionRequest { + return &AccessReviewReviewersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewReviewer item +func (b *AccessReviewReviewersCollectionRequestBuilder) ID(id string) *AccessReviewReviewerRequestBuilder { + bb := &AccessReviewReviewerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AccessReviewReviewersCollectionRequest is request for AccessReviewReviewer collection +type AccessReviewReviewersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewReviewer collection +func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewReviewer, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewReviewer + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewReviewer + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewReviewer collection, max N pages +func (r *AccessReviewReviewersCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewReviewer, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewReviewer collection +func (r *AccessReviewReviewersCollectionRequest) Get(ctx context.Context) ([]AccessReviewReviewer, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewReviewer collection +func (r *AccessReviewReviewersCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewReviewer) (resObj *AccessReviewReviewer, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go new file mode 100644 index 00000000..94059bd0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DomainJoinConfiguration is navigation property +func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) DomainJoinConfiguration() *WindowsDomainJoinConfigurationRequestBuilder { + bb := &WindowsDomainJoinConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domainJoinConfiguration" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go new file mode 100644 index 00000000..d113a6ba --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Activity is navigation property +func (b *ActivityHistoryItemRequestBuilder) Activity() *UserActivityRequestBuilder { + bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activity" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go new file mode 100644 index 00000000..2991473f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go @@ -0,0 +1,318 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Extensions returns request builder for Extension collection +func (b *AdministrativeUnitRequestBuilder) Extensions() *AdministrativeUnitExtensionsCollectionRequestBuilder { + bb := &AdministrativeUnitExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// AdministrativeUnitExtensionsCollectionRequestBuilder is request builder for Extension collection +type AdministrativeUnitExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) Request() *AdministrativeUnitExtensionsCollectionRequest { + return &AdministrativeUnitExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AdministrativeUnitExtensionsCollectionRequest is request for Extension collection +type AdministrativeUnitExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *AdministrativeUnitExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *AdministrativeUnitExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *AdministrativeUnitExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Members returns request builder for DirectoryObject collection +func (b *AdministrativeUnitRequestBuilder) Members() *AdministrativeUnitMembersCollectionRequestBuilder { + bb := &AdministrativeUnitMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// AdministrativeUnitMembersCollectionRequestBuilder is request builder for DirectoryObject collection +type AdministrativeUnitMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *AdministrativeUnitMembersCollectionRequestBuilder) Request() *AdministrativeUnitMembersCollectionRequest { + return &AdministrativeUnitMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *AdministrativeUnitMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AdministrativeUnitMembersCollectionRequest is request for DirectoryObject collection +type AdministrativeUnitMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *AdministrativeUnitMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *AdministrativeUnitMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *AdministrativeUnitMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScopedRoleMembers returns request builder for ScopedRoleMembership collection +func (b *AdministrativeUnitRequestBuilder) ScopedRoleMembers() *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder { + bb := &AdministrativeUnitScopedRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scopedRoleMembers" + return bb +} + +// AdministrativeUnitScopedRoleMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection +type AdministrativeUnitScopedRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ScopedRoleMembership collection +func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) Request() *AdministrativeUnitScopedRoleMembersCollectionRequest { + return &AdministrativeUnitScopedRoleMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ScopedRoleMembership item +func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder { + bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AdministrativeUnitScopedRoleMembersCollectionRequest is request for ScopedRoleMembership collection +type AdministrativeUnitScopedRoleMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ScopedRoleMembership collection +func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ScopedRoleMembership + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ScopedRoleMembership + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ScopedRoleMembership collection, max N pages +func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ScopedRoleMembership collection +func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ScopedRoleMembership collection +func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go new file mode 100644 index 00000000..d1c92d24 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AdvancedThreatProtectionOnboardingDeviceSettingStates returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection +func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) AdvancedThreatProtectionOnboardingDeviceSettingStates() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder { + bb := &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/advancedThreatProtectionOnboardingDeviceSettingStates" + return bb +} + +// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection +type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AdvancedThreatProtectionOnboardingDeviceSettingState collection +func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest { + return &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState item +func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) ID(id string) *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder { + bb := &AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState collection +type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AdvancedThreatProtectionOnboardingDeviceSettingState collection +func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AdvancedThreatProtectionOnboardingDeviceSettingState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AdvancedThreatProtectionOnboardingDeviceSettingState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection, max N pages +func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection +func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Get(ctx context.Context) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AdvancedThreatProtectionOnboardingDeviceSettingState collection +func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go new file mode 100644 index 00000000..b69ce8b6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Files returns request builder for AgreementFile collection +func (b *AgreementRequestBuilder) Files() *AgreementFilesCollectionRequestBuilder { + bb := &AgreementFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/files" + return bb +} + +// AgreementFilesCollectionRequestBuilder is request builder for AgreementFile collection +type AgreementFilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AgreementFile collection +func (b *AgreementFilesCollectionRequestBuilder) Request() *AgreementFilesCollectionRequest { + return &AgreementFilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AgreementFile item +func (b *AgreementFilesCollectionRequestBuilder) ID(id string) *AgreementFileRequestBuilder { + bb := &AgreementFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AgreementFilesCollectionRequest is request for AgreementFile collection +type AgreementFilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AgreementFile collection +func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementFile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AgreementFile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AgreementFile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AgreementFile collection, max N pages +func (r *AgreementFilesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementFile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AgreementFile collection +func (r *AgreementFilesCollectionRequest) Get(ctx context.Context) ([]AgreementFile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AgreementFile collection +func (r *AgreementFilesCollectionRequest) Add(ctx context.Context, reqObj *AgreementFile) (resObj *AgreementFile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go new file mode 100644 index 00000000..8c2da9d8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go @@ -0,0 +1,9 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AlertCollectionUpdateAlertsRequestParameter undocumented +type AlertCollectionUpdateAlertsRequestParameter struct { + // Value undocumented + Value []Alert `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go new file mode 100644 index 00000000..37e5a6dc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go @@ -0,0 +1,1265 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented +type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter undocumented +type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter struct { +} + +// AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter undocumented +type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter struct { + // TokenValidityInSeconds undocumented + TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"` +} + +// AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter undocumented +type AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter struct { +} + +// AndroidForWorkEnrollmentProfileCreateTokenRequestParameter undocumented +type AndroidForWorkEnrollmentProfileCreateTokenRequestParameter struct { + // TokenValidityInSeconds undocumented + TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"` +} + +// AndroidForWorkSettingsRequestSignupURLRequestParameter undocumented +type AndroidForWorkSettingsRequestSignupURLRequestParameter struct { + // HostName undocumented + HostName *string `json:"hostName,omitempty"` +} + +// AndroidForWorkSettingsCompleteSignupRequestParameter undocumented +type AndroidForWorkSettingsCompleteSignupRequestParameter struct { + // EnterpriseToken undocumented + EnterpriseToken *string `json:"enterpriseToken,omitempty"` +} + +// AndroidForWorkSettingsSyncAppsRequestParameter undocumented +type AndroidForWorkSettingsSyncAppsRequestParameter struct { +} + +// AndroidForWorkSettingsUnbindRequestParameter undocumented +type AndroidForWorkSettingsUnbindRequestParameter struct { +} + +// AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter struct { + // PackageIDs undocumented + PackageIDs []string `json:"packageIds,omitempty"` + // ApproveAllPermissions undocumented + ApproveAllPermissions *bool `json:"approveAllPermissions,omitempty"` +} + +// AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter struct { + // HostName undocumented + HostName *string `json:"hostName,omitempty"` +} + +// AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter struct { + // EnterpriseToken undocumented + EnterpriseToken *string `json:"enterpriseToken,omitempty"` +} + +// AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter struct { +} + +// AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter struct { +} + +// AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter struct { + // ParentURI undocumented + ParentURI *string `json:"parentUri,omitempty"` +} + +// AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter undocumented +type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter struct { + // Enabled undocumented + Enabled *bool `json:"enabled,omitempty"` +} + +// RootCertificate is navigation property +func (b *AndroidCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidTrustedRootCertificateRequestBuilder { + bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// RootCertificate is navigation property +func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder { + bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder { + bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder { + bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificate is navigation property +func (b *AndroidDeviceOwnerVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder { + bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// IdentityCertificate is navigation property +func (b *AndroidEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder { + bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// SmimeSigningCertificate is navigation property +func (b *AndroidEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *AndroidCertificateProfileBaseRequestBuilder { + bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/smimeSigningCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidCertificateProfileBaseRequestBuilder { + bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidTrustedRootCertificateRequestBuilder { + bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// RootCertificate is navigation property +func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidForWorkTrustedRootCertificateRequestBuilder { + bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// IdentityCertificate is navigation property +func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder { + bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidForWorkCertificateProfileBaseRequestBuilder { + bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidForWorkTrustedRootCertificateRequestBuilder { + bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidForWorkScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificate is navigation property +func (b *AndroidForWorkVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder { + bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Apps returns request builder for ManagedMobileApp collection +func (b *AndroidManagedAppProtectionRequestBuilder) Apps() *AndroidManagedAppProtectionAppsCollectionRequestBuilder { + bb := &AndroidManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/apps" + return bb +} + +// AndroidManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection +type AndroidManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedMobileApp collection +func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) Request() *AndroidManagedAppProtectionAppsCollectionRequest { + return &AndroidManagedAppProtectionAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedMobileApp item +func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder { + bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection +type AndroidManagedAppProtectionAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedMobileApp collection +func (r *AndroidManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedMobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedMobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedMobileApp collection, max N pages +func (r *AndroidManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedMobileApp collection +func (r *AndroidManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedMobileApp collection +func (r *AndroidManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploymentSummary is navigation property +func (b *AndroidManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder { + bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploymentSummary" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificate is navigation property +func (b *AndroidVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder { + bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// RootCertificate is navigation property +func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidWorkProfileTrustedRootCertificateRequestBuilder { + bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// IdentityCertificate is navigation property +func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder { + bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidWorkProfileCertificateProfileBaseRequestBuilder { + bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidWorkProfileTrustedRootCertificateRequestBuilder { + bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificate is navigation property +func (b *AndroidWorkProfileVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder { + bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go new file mode 100644 index 00000000..d81c9405 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go @@ -0,0 +1,322 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AppLogCollectionRequestObjectCreateDownloadURLRequestParameter undocumented +type AppLogCollectionRequestObjectCreateDownloadURLRequestParameter struct { +} + +// TeamsApps returns request builder for TeamsApp collection +func (b *AppCatalogsRequestBuilder) TeamsApps() *AppCatalogsTeamsAppsCollectionRequestBuilder { + bb := &AppCatalogsTeamsAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamsApps" + return bb +} + +// AppCatalogsTeamsAppsCollectionRequestBuilder is request builder for TeamsApp collection +type AppCatalogsTeamsAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsApp collection +func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) Request() *AppCatalogsTeamsAppsCollectionRequest { + return &AppCatalogsTeamsAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsApp item +func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) ID(id string) *TeamsAppRequestBuilder { + bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AppCatalogsTeamsAppsCollectionRequest is request for TeamsApp collection +type AppCatalogsTeamsAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsApp collection +func (r *AppCatalogsTeamsAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsApp collection, max N pages +func (r *AppCatalogsTeamsAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsApp collection +func (r *AppCatalogsTeamsAppsCollectionRequest) Get(ctx context.Context) ([]TeamsApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsApp collection +func (r *AppCatalogsTeamsAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsApp) (resObj *TeamsApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDevices returns request builder for AppVulnerabilityManagedDevice collection +func (b *AppVulnerabilityTaskRequestBuilder) ManagedDevices() *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder { + bb := &AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevices" + return bb +} + +// AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder is request builder for AppVulnerabilityManagedDevice collection +type AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppVulnerabilityManagedDevice collection +func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) Request() *AppVulnerabilityTaskManagedDevicesCollectionRequest { + return &AppVulnerabilityTaskManagedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppVulnerabilityManagedDevice item +func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) ID(id string) *AppVulnerabilityManagedDeviceRequestBuilder { + bb := &AppVulnerabilityManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AppVulnerabilityTaskManagedDevicesCollectionRequest is request for AppVulnerabilityManagedDevice collection +type AppVulnerabilityTaskManagedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppVulnerabilityManagedDevice collection +func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppVulnerabilityManagedDevice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppVulnerabilityManagedDevice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppVulnerabilityManagedDevice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppVulnerabilityManagedDevice collection, max N pages +func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]AppVulnerabilityManagedDevice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppVulnerabilityManagedDevice collection +func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityManagedDevice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppVulnerabilityManagedDevice collection +func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) (resObj *AppVulnerabilityManagedDevice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileApps returns request builder for AppVulnerabilityMobileApp collection +func (b *AppVulnerabilityTaskRequestBuilder) MobileApps() *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder { + bb := &AppVulnerabilityTaskMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileApps" + return bb +} + +// AppVulnerabilityTaskMobileAppsCollectionRequestBuilder is request builder for AppVulnerabilityMobileApp collection +type AppVulnerabilityTaskMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppVulnerabilityMobileApp collection +func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) Request() *AppVulnerabilityTaskMobileAppsCollectionRequest { + return &AppVulnerabilityTaskMobileAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppVulnerabilityMobileApp item +func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) ID(id string) *AppVulnerabilityMobileAppRequestBuilder { + bb := &AppVulnerabilityMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AppVulnerabilityTaskMobileAppsCollectionRequest is request for AppVulnerabilityMobileApp collection +type AppVulnerabilityTaskMobileAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppVulnerabilityMobileApp collection +func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppVulnerabilityMobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppVulnerabilityMobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppVulnerabilityMobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppVulnerabilityMobileApp collection, max N pages +func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) GetN(ctx context.Context, n int) ([]AppVulnerabilityMobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppVulnerabilityMobileApp collection +func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityMobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppVulnerabilityMobileApp collection +func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityMobileApp) (resObj *AppVulnerabilityMobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go new file mode 100644 index 00000000..23bb5356 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go @@ -0,0 +1,120 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter undocumented +type AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter struct { + // Priority undocumented + Priority *int `json:"priority,omitempty"` +} + +// Assignments returns request builder for AppleEnrollmentProfileAssignment collection +func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Assignments() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder { + bb := &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder is request builder for AppleEnrollmentProfileAssignment collection +type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppleEnrollmentProfileAssignment collection +func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest { + return &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppleEnrollmentProfileAssignment item +func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) ID(id string) *AppleEnrollmentProfileAssignmentRequestBuilder { + bb := &AppleEnrollmentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest is request for AppleEnrollmentProfileAssignment collection +type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppleEnrollmentProfileAssignment collection +func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppleEnrollmentProfileAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppleEnrollmentProfileAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppleEnrollmentProfileAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppleEnrollmentProfileAssignment collection, max N pages +func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppleEnrollmentProfileAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppleEnrollmentProfileAssignment collection +func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppleEnrollmentProfileAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppleEnrollmentProfileAssignment collection +func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) (resObj *AppleEnrollmentProfileAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go new file mode 100644 index 00000000..f3ad11aa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go @@ -0,0 +1,368 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ApplicationAddKeyRequestParameter undocumented +type ApplicationAddKeyRequestParameter struct { + // KeyCredential undocumented + KeyCredential *KeyCredential `json:"keyCredential,omitempty"` + // PasswordCredential undocumented + PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"` + // Proof undocumented + Proof *string `json:"proof,omitempty"` +} + +// ApplicationAddPasswordRequestParameter undocumented +type ApplicationAddPasswordRequestParameter struct { + // PasswordCredential undocumented + PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"` +} + +// ApplicationRemoveKeyRequestParameter undocumented +type ApplicationRemoveKeyRequestParameter struct { + // KeyID undocumented + KeyID *UUID `json:"keyId,omitempty"` + // Proof undocumented + Proof *string `json:"proof,omitempty"` +} + +// ApplicationRemovePasswordRequestParameter undocumented +type ApplicationRemovePasswordRequestParameter struct { + // KeyID undocumented + KeyID *UUID `json:"keyId,omitempty"` +} + +// ApplicationTemplateInstantiateRequestParameter undocumented +type ApplicationTemplateInstantiateRequestParameter struct { + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// CreatedOnBehalfOf is navigation property +func (b *ApplicationRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/createdOnBehalfOf" + return bb +} + +// ExtensionProperties returns request builder for ExtensionProperty collection +func (b *ApplicationRequestBuilder) ExtensionProperties() *ApplicationExtensionPropertiesCollectionRequestBuilder { + bb := &ApplicationExtensionPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensionProperties" + return bb +} + +// ApplicationExtensionPropertiesCollectionRequestBuilder is request builder for ExtensionProperty collection +type ApplicationExtensionPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExtensionProperty collection +func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) Request() *ApplicationExtensionPropertiesCollectionRequest { + return &ApplicationExtensionPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExtensionProperty item +func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) ID(id string) *ExtensionPropertyRequestBuilder { + bb := &ExtensionPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApplicationExtensionPropertiesCollectionRequest is request for ExtensionProperty collection +type ApplicationExtensionPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExtensionProperty collection +func (r *ApplicationExtensionPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExtensionProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExtensionProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExtensionProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExtensionProperty collection, max N pages +func (r *ApplicationExtensionPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]ExtensionProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExtensionProperty collection +func (r *ApplicationExtensionPropertiesCollectionRequest) Get(ctx context.Context) ([]ExtensionProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExtensionProperty collection +func (r *ApplicationExtensionPropertiesCollectionRequest) Add(ctx context.Context, reqObj *ExtensionProperty) (resObj *ExtensionProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Owners returns request builder for DirectoryObject collection +func (b *ApplicationRequestBuilder) Owners() *ApplicationOwnersCollectionRequestBuilder { + bb := &ApplicationOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/owners" + return bb +} + +// ApplicationOwnersCollectionRequestBuilder is request builder for DirectoryObject collection +type ApplicationOwnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ApplicationOwnersCollectionRequestBuilder) Request() *ApplicationOwnersCollectionRequest { + return &ApplicationOwnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ApplicationOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApplicationOwnersCollectionRequest is request for DirectoryObject collection +type ApplicationOwnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ApplicationOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ApplicationOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ApplicationOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ApplicationOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policies returns request builder for DirectoryObject collection +func (b *ApplicationRequestBuilder) Policies() *ApplicationPoliciesCollectionRequestBuilder { + bb := &ApplicationPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policies" + return bb +} + +// ApplicationPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection +type ApplicationPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ApplicationPoliciesCollectionRequestBuilder) Request() *ApplicationPoliciesCollectionRequest { + return &ApplicationPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ApplicationPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApplicationPoliciesCollectionRequest is request for DirectoryObject collection +type ApplicationPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ApplicationPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ApplicationPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ApplicationPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ApplicationPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Synchronization is navigation property +func (b *ApplicationRequestBuilder) Synchronization() *SynchronizationRequestBuilder { + bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/synchronization" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go new file mode 100644 index 00000000..adb87ce2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go @@ -0,0 +1,522 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// BusinessFlows returns request builder for BusinessFlow collection +func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlows() *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder { + bb := &ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/businessFlows" + return bb +} + +// ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder is request builder for BusinessFlow collection +type ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BusinessFlow collection +func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsCollectionRequest { + return &ApprovalWorkflowProviderBusinessFlowsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BusinessFlow item +func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder { + bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApprovalWorkflowProviderBusinessFlowsCollectionRequest is request for BusinessFlow collection +type ApprovalWorkflowProviderBusinessFlowsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlow, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BusinessFlow + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BusinessFlow + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BusinessFlow collection, max N pages +func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlow, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// BusinessFlowsWithRequestsAwaitingMyDecision returns request builder for BusinessFlow collection +func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlowsWithRequestsAwaitingMyDecision() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder { + bb := &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/businessFlowsWithRequestsAwaitingMyDecision" + return bb +} + +// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for BusinessFlow collection +type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BusinessFlow collection +func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest { + return &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BusinessFlow item +func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder { + bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest is request for BusinessFlow collection +type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlow, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BusinessFlow + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BusinessFlow + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BusinessFlow collection, max N pages +func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlow, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BusinessFlow collection +func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PolicyTemplates returns request builder for GovernancePolicyTemplate collection +func (b *ApprovalWorkflowProviderRequestBuilder) PolicyTemplates() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder { + bb := &ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policyTemplates" + return bb +} + +// ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder is request builder for GovernancePolicyTemplate collection +type ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernancePolicyTemplate collection +func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) Request() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest { + return &ApprovalWorkflowProviderPolicyTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernancePolicyTemplate item +func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) ID(id string) *GovernancePolicyTemplateRequestBuilder { + bb := &GovernancePolicyTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApprovalWorkflowProviderPolicyTemplatesCollectionRequest is request for GovernancePolicyTemplate collection +type ApprovalWorkflowProviderPolicyTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernancePolicyTemplate collection +func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernancePolicyTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernancePolicyTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernancePolicyTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernancePolicyTemplate collection, max N pages +func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernancePolicyTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernancePolicyTemplate collection +func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Get(ctx context.Context) ([]GovernancePolicyTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernancePolicyTemplate collection +func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Add(ctx context.Context, reqObj *GovernancePolicyTemplate) (resObj *GovernancePolicyTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Requests returns request builder for RequestObject collection +func (b *ApprovalWorkflowProviderRequestBuilder) Requests() *ApprovalWorkflowProviderRequestsCollectionRequestBuilder { + bb := &ApprovalWorkflowProviderRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/requests" + return bb +} + +// ApprovalWorkflowProviderRequestsCollectionRequestBuilder is request builder for RequestObject collection +type ApprovalWorkflowProviderRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RequestObject collection +func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsCollectionRequest { + return &ApprovalWorkflowProviderRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RequestObject item +func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder { + bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApprovalWorkflowProviderRequestsCollectionRequest is request for RequestObject collection +type ApprovalWorkflowProviderRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RequestObject collection, max N pages +func (r *ApprovalWorkflowProviderRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]RequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RequestsAwaitingMyDecision returns request builder for RequestObject collection +func (b *ApprovalWorkflowProviderRequestBuilder) RequestsAwaitingMyDecision() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder { + bb := &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/requestsAwaitingMyDecision" + return bb +} + +// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for RequestObject collection +type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RequestObject collection +func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest { + return &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RequestObject item +func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder { + bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest is request for RequestObject collection +type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RequestObject collection, max N pages +func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) GetN(ctx context.Context, n int) ([]RequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RequestObject collection +func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go new file mode 100644 index 00000000..c8ff09f3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go @@ -0,0 +1,9 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AttachmentCollectionCreateUploadSessionRequestParameter undocumented +type AttachmentCollectionCreateUploadSessionRequestParameter struct { + // AttachmentItem undocumented + AttachmentItem *AttachmentItem `json:"AttachmentItem,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go new file mode 100644 index 00000000..ffc0fbe7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go @@ -0,0 +1,522 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DirectoryAudits returns request builder for DirectoryAudit collection +func (b *AuditLogRootRequestBuilder) DirectoryAudits() *AuditLogRootDirectoryAuditsCollectionRequestBuilder { + bb := &AuditLogRootDirectoryAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directoryAudits" + return bb +} + +// AuditLogRootDirectoryAuditsCollectionRequestBuilder is request builder for DirectoryAudit collection +type AuditLogRootDirectoryAuditsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryAudit collection +func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) Request() *AuditLogRootDirectoryAuditsCollectionRequest { + return &AuditLogRootDirectoryAuditsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryAudit item +func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) ID(id string) *DirectoryAuditRequestBuilder { + bb := &DirectoryAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AuditLogRootDirectoryAuditsCollectionRequest is request for DirectoryAudit collection +type AuditLogRootDirectoryAuditsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryAudit collection +func (r *AuditLogRootDirectoryAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryAudit, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryAudit + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryAudit + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryAudit collection, max N pages +func (r *AuditLogRootDirectoryAuditsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryAudit, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryAudit collection +func (r *AuditLogRootDirectoryAuditsCollectionRequest) Get(ctx context.Context) ([]DirectoryAudit, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryAudit collection +func (r *AuditLogRootDirectoryAuditsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryAudit) (resObj *DirectoryAudit, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectoryProvisioning returns request builder for ProvisioningObjectSummary collection +func (b *AuditLogRootRequestBuilder) DirectoryProvisioning() *AuditLogRootDirectoryProvisioningCollectionRequestBuilder { + bb := &AuditLogRootDirectoryProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directoryProvisioning" + return bb +} + +// AuditLogRootDirectoryProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection +type AuditLogRootDirectoryProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProvisioningObjectSummary collection +func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) Request() *AuditLogRootDirectoryProvisioningCollectionRequest { + return &AuditLogRootDirectoryProvisioningCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProvisioningObjectSummary item +func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder { + bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AuditLogRootDirectoryProvisioningCollectionRequest is request for ProvisioningObjectSummary collection +type AuditLogRootDirectoryProvisioningCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProvisioningObjectSummary collection +func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProvisioningObjectSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProvisioningObjectSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProvisioningObjectSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProvisioningObjectSummary collection, max N pages +func (r *AuditLogRootDirectoryProvisioningCollectionRequest) GetN(ctx context.Context, n int) ([]ProvisioningObjectSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProvisioningObjectSummary collection +func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProvisioningObjectSummary collection +func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Provisioning returns request builder for ProvisioningObjectSummary collection +func (b *AuditLogRootRequestBuilder) Provisioning() *AuditLogRootProvisioningCollectionRequestBuilder { + bb := &AuditLogRootProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/provisioning" + return bb +} + +// AuditLogRootProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection +type AuditLogRootProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProvisioningObjectSummary collection +func (b *AuditLogRootProvisioningCollectionRequestBuilder) Request() *AuditLogRootProvisioningCollectionRequest { + return &AuditLogRootProvisioningCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProvisioningObjectSummary item +func (b *AuditLogRootProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder { + bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AuditLogRootProvisioningCollectionRequest is request for ProvisioningObjectSummary collection +type AuditLogRootProvisioningCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProvisioningObjectSummary collection +func (r *AuditLogRootProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProvisioningObjectSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProvisioningObjectSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProvisioningObjectSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProvisioningObjectSummary collection, max N pages +func (r *AuditLogRootProvisioningCollectionRequest) GetN(ctx context.Context, n int) ([]ProvisioningObjectSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProvisioningObjectSummary collection +func (r *AuditLogRootProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProvisioningObjectSummary collection +func (r *AuditLogRootProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RestrictedSignIns returns request builder for RestrictedSignIn collection +func (b *AuditLogRootRequestBuilder) RestrictedSignIns() *AuditLogRootRestrictedSignInsCollectionRequestBuilder { + bb := &AuditLogRootRestrictedSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/restrictedSignIns" + return bb +} + +// AuditLogRootRestrictedSignInsCollectionRequestBuilder is request builder for RestrictedSignIn collection +type AuditLogRootRestrictedSignInsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RestrictedSignIn collection +func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) Request() *AuditLogRootRestrictedSignInsCollectionRequest { + return &AuditLogRootRestrictedSignInsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RestrictedSignIn item +func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) ID(id string) *RestrictedSignInRequestBuilder { + bb := &RestrictedSignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AuditLogRootRestrictedSignInsCollectionRequest is request for RestrictedSignIn collection +type AuditLogRootRestrictedSignInsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RestrictedSignIn collection +func (r *AuditLogRootRestrictedSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RestrictedSignIn, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RestrictedSignIn + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RestrictedSignIn + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RestrictedSignIn collection, max N pages +func (r *AuditLogRootRestrictedSignInsCollectionRequest) GetN(ctx context.Context, n int) ([]RestrictedSignIn, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RestrictedSignIn collection +func (r *AuditLogRootRestrictedSignInsCollectionRequest) Get(ctx context.Context) ([]RestrictedSignIn, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RestrictedSignIn collection +func (r *AuditLogRootRestrictedSignInsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedSignIn) (resObj *RestrictedSignIn, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SignIns returns request builder for SignIn collection +func (b *AuditLogRootRequestBuilder) SignIns() *AuditLogRootSignInsCollectionRequestBuilder { + bb := &AuditLogRootSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/signIns" + return bb +} + +// AuditLogRootSignInsCollectionRequestBuilder is request builder for SignIn collection +type AuditLogRootSignInsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SignIn collection +func (b *AuditLogRootSignInsCollectionRequestBuilder) Request() *AuditLogRootSignInsCollectionRequest { + return &AuditLogRootSignInsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SignIn item +func (b *AuditLogRootSignInsCollectionRequestBuilder) ID(id string) *SignInRequestBuilder { + bb := &SignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// AuditLogRootSignInsCollectionRequest is request for SignIn collection +type AuditLogRootSignInsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SignIn collection +func (r *AuditLogRootSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SignIn, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SignIn + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SignIn + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SignIn collection, max N pages +func (r *AuditLogRootSignInsCollectionRequest) GetN(ctx context.Context, n int) ([]SignIn, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SignIn collection +func (r *AuditLogRootSignInsCollectionRequest) Get(ctx context.Context) ([]SignIn, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SignIn collection +func (r *AuditLogRootSignInsCollectionRequest) Add(ctx context.Context, reqObj *SignIn) (resObj *SignIn, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go new file mode 100644 index 00000000..62cea840 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CreatedByUser is navigation property +func (b *BaseItemRequestBuilder) CreatedByUser() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/createdByUser" + return bb +} + +// LastModifiedByUser is navigation property +func (b *BaseItemRequestBuilder) LastModifiedByUser() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/lastModifiedByUser" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go new file mode 100644 index 00000000..be31ec98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go @@ -0,0 +1,536 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// BookingAppointmentCancelRequestParameter undocumented +type BookingAppointmentCancelRequestParameter struct { + // CancellationMessage undocumented + CancellationMessage *string `json:"cancellationMessage,omitempty"` +} + +// BookingBusinessPublishRequestParameter undocumented +type BookingBusinessPublishRequestParameter struct { +} + +// BookingBusinessUnpublishRequestParameter undocumented +type BookingBusinessUnpublishRequestParameter struct { +} + +// Appointments returns request builder for BookingAppointment collection +func (b *BookingBusinessRequestBuilder) Appointments() *BookingBusinessAppointmentsCollectionRequestBuilder { + bb := &BookingBusinessAppointmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appointments" + return bb +} + +// BookingBusinessAppointmentsCollectionRequestBuilder is request builder for BookingAppointment collection +type BookingBusinessAppointmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingAppointment collection +func (b *BookingBusinessAppointmentsCollectionRequestBuilder) Request() *BookingBusinessAppointmentsCollectionRequest { + return &BookingBusinessAppointmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingAppointment item +func (b *BookingBusinessAppointmentsCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder { + bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// BookingBusinessAppointmentsCollectionRequest is request for BookingAppointment collection +type BookingBusinessAppointmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingAppointment collection +func (r *BookingBusinessAppointmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingAppointment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingAppointment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingAppointment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingAppointment collection, max N pages +func (r *BookingBusinessAppointmentsCollectionRequest) GetN(ctx context.Context, n int) ([]BookingAppointment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingAppointment collection +func (r *BookingBusinessAppointmentsCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingAppointment collection +func (r *BookingBusinessAppointmentsCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CalendarView returns request builder for BookingAppointment collection +func (b *BookingBusinessRequestBuilder) CalendarView() *BookingBusinessCalendarViewCollectionRequestBuilder { + bb := &BookingBusinessCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarView" + return bb +} + +// BookingBusinessCalendarViewCollectionRequestBuilder is request builder for BookingAppointment collection +type BookingBusinessCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingAppointment collection +func (b *BookingBusinessCalendarViewCollectionRequestBuilder) Request() *BookingBusinessCalendarViewCollectionRequest { + return &BookingBusinessCalendarViewCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingAppointment item +func (b *BookingBusinessCalendarViewCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder { + bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// BookingBusinessCalendarViewCollectionRequest is request for BookingAppointment collection +type BookingBusinessCalendarViewCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingAppointment collection +func (r *BookingBusinessCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingAppointment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingAppointment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingAppointment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingAppointment collection, max N pages +func (r *BookingBusinessCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]BookingAppointment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingAppointment collection +func (r *BookingBusinessCalendarViewCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingAppointment collection +func (r *BookingBusinessCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Customers returns request builder for BookingCustomer collection +func (b *BookingBusinessRequestBuilder) Customers() *BookingBusinessCustomersCollectionRequestBuilder { + bb := &BookingBusinessCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customers" + return bb +} + +// BookingBusinessCustomersCollectionRequestBuilder is request builder for BookingCustomer collection +type BookingBusinessCustomersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingCustomer collection +func (b *BookingBusinessCustomersCollectionRequestBuilder) Request() *BookingBusinessCustomersCollectionRequest { + return &BookingBusinessCustomersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingCustomer item +func (b *BookingBusinessCustomersCollectionRequestBuilder) ID(id string) *BookingCustomerRequestBuilder { + bb := &BookingCustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// BookingBusinessCustomersCollectionRequest is request for BookingCustomer collection +type BookingBusinessCustomersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingCustomer collection +func (r *BookingBusinessCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingCustomer, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingCustomer + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingCustomer + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingCustomer collection, max N pages +func (r *BookingBusinessCustomersCollectionRequest) GetN(ctx context.Context, n int) ([]BookingCustomer, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingCustomer collection +func (r *BookingBusinessCustomersCollectionRequest) Get(ctx context.Context) ([]BookingCustomer, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingCustomer collection +func (r *BookingBusinessCustomersCollectionRequest) Add(ctx context.Context, reqObj *BookingCustomer) (resObj *BookingCustomer, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Services returns request builder for BookingService collection +func (b *BookingBusinessRequestBuilder) Services() *BookingBusinessServicesCollectionRequestBuilder { + bb := &BookingBusinessServicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/services" + return bb +} + +// BookingBusinessServicesCollectionRequestBuilder is request builder for BookingService collection +type BookingBusinessServicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingService collection +func (b *BookingBusinessServicesCollectionRequestBuilder) Request() *BookingBusinessServicesCollectionRequest { + return &BookingBusinessServicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingService item +func (b *BookingBusinessServicesCollectionRequestBuilder) ID(id string) *BookingServiceRequestBuilder { + bb := &BookingServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// BookingBusinessServicesCollectionRequest is request for BookingService collection +type BookingBusinessServicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingService collection +func (r *BookingBusinessServicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingService, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingService + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingService + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingService collection, max N pages +func (r *BookingBusinessServicesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingService, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingService collection +func (r *BookingBusinessServicesCollectionRequest) Get(ctx context.Context) ([]BookingService, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingService collection +func (r *BookingBusinessServicesCollectionRequest) Add(ctx context.Context, reqObj *BookingService) (resObj *BookingService, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// StaffMembers returns request builder for BookingStaffMember collection +func (b *BookingBusinessRequestBuilder) StaffMembers() *BookingBusinessStaffMembersCollectionRequestBuilder { + bb := &BookingBusinessStaffMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/staffMembers" + return bb +} + +// BookingBusinessStaffMembersCollectionRequestBuilder is request builder for BookingStaffMember collection +type BookingBusinessStaffMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingStaffMember collection +func (b *BookingBusinessStaffMembersCollectionRequestBuilder) Request() *BookingBusinessStaffMembersCollectionRequest { + return &BookingBusinessStaffMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingStaffMember item +func (b *BookingBusinessStaffMembersCollectionRequestBuilder) ID(id string) *BookingStaffMemberRequestBuilder { + bb := &BookingStaffMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// BookingBusinessStaffMembersCollectionRequest is request for BookingStaffMember collection +type BookingBusinessStaffMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingStaffMember collection +func (r *BookingBusinessStaffMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingStaffMember, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingStaffMember + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingStaffMember + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingStaffMember collection, max N pages +func (r *BookingBusinessStaffMembersCollectionRequest) GetN(ctx context.Context, n int) ([]BookingStaffMember, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingStaffMember collection +func (r *BookingBusinessStaffMembersCollectionRequest) Get(ctx context.Context) ([]BookingStaffMember, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingStaffMember collection +func (r *BookingBusinessStaffMembersCollectionRequest) Add(ctx context.Context, reqObj *BookingStaffMember) (resObj *BookingStaffMember, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go new file mode 100644 index 00000000..a2fe7bb3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go @@ -0,0 +1,11 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BusinessFlowRecordDecisionsRequestParameter undocumented +type BusinessFlowRecordDecisionsRequestParameter struct { + // ReviewResult undocumented + ReviewResult *string `json:"reviewResult,omitempty"` + // Justification undocumented + Justification *string `json:"justification,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go new file mode 100644 index 00000000..231c6b74 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go @@ -0,0 +1,640 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// CalendarGetScheduleRequestParameter undocumented +type CalendarGetScheduleRequestParameter struct { + // Schedules undocumented + Schedules []string `json:"Schedules,omitempty"` + // EndTime undocumented + EndTime *DateTimeTimeZone `json:"EndTime,omitempty"` + // StartTime undocumented + StartTime *DateTimeTimeZone `json:"StartTime,omitempty"` + // AvailabilityViewInterval undocumented + AvailabilityViewInterval *int `json:"AvailabilityViewInterval,omitempty"` +} + +// CalendarSharingMessageAcceptRequestParameter undocumented +type CalendarSharingMessageAcceptRequestParameter struct { +} + +// CalendarPermissions returns request builder for CalendarPermission collection +func (b *CalendarRequestBuilder) CalendarPermissions() *CalendarCalendarPermissionsCollectionRequestBuilder { + bb := &CalendarCalendarPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarPermissions" + return bb +} + +// CalendarCalendarPermissionsCollectionRequestBuilder is request builder for CalendarPermission collection +type CalendarCalendarPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CalendarPermission collection +func (b *CalendarCalendarPermissionsCollectionRequestBuilder) Request() *CalendarCalendarPermissionsCollectionRequest { + return &CalendarCalendarPermissionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CalendarPermission item +func (b *CalendarCalendarPermissionsCollectionRequestBuilder) ID(id string) *CalendarPermissionRequestBuilder { + bb := &CalendarPermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarCalendarPermissionsCollectionRequest is request for CalendarPermission collection +type CalendarCalendarPermissionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CalendarPermission collection +func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CalendarPermission, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CalendarPermission + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CalendarPermission + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CalendarPermission collection, max N pages +func (r *CalendarCalendarPermissionsCollectionRequest) GetN(ctx context.Context, n int) ([]CalendarPermission, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CalendarPermission collection +func (r *CalendarCalendarPermissionsCollectionRequest) Get(ctx context.Context) ([]CalendarPermission, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CalendarPermission collection +func (r *CalendarCalendarPermissionsCollectionRequest) Add(ctx context.Context, reqObj *CalendarPermission) (resObj *CalendarPermission, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CalendarView returns request builder for Event collection +func (b *CalendarRequestBuilder) CalendarView() *CalendarCalendarViewCollectionRequestBuilder { + bb := &CalendarCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarView" + return bb +} + +// CalendarCalendarViewCollectionRequestBuilder is request builder for Event collection +type CalendarCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *CalendarCalendarViewCollectionRequestBuilder) Request() *CalendarCalendarViewCollectionRequest { + return &CalendarCalendarViewCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *CalendarCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarCalendarViewCollectionRequest is request for Event collection +type CalendarCalendarViewCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *CalendarCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *CalendarCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *CalendarCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Events returns request builder for Event collection +func (b *CalendarRequestBuilder) Events() *CalendarEventsCollectionRequestBuilder { + bb := &CalendarEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/events" + return bb +} + +// CalendarEventsCollectionRequestBuilder is request builder for Event collection +type CalendarEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *CalendarEventsCollectionRequestBuilder) Request() *CalendarEventsCollectionRequest { + return &CalendarEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *CalendarEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarEventsCollectionRequest is request for Event collection +type CalendarEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *CalendarEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *CalendarEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *CalendarEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *CalendarRequestBuilder) MultiValueExtendedProperties() *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &CalendarMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// CalendarMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type CalendarMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarMultiValueExtendedPropertiesCollectionRequest { + return &CalendarMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type CalendarMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *CalendarRequestBuilder) SingleValueExtendedProperties() *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &CalendarSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// CalendarSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type CalendarSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarSingleValueExtendedPropertiesCollectionRequest { + return &CalendarSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type CalendarSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Calendars returns request builder for Calendar collection +func (b *CalendarGroupRequestBuilder) Calendars() *CalendarGroupCalendarsCollectionRequestBuilder { + bb := &CalendarGroupCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendars" + return bb +} + +// CalendarGroupCalendarsCollectionRequestBuilder is request builder for Calendar collection +type CalendarGroupCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Calendar collection +func (b *CalendarGroupCalendarsCollectionRequestBuilder) Request() *CalendarGroupCalendarsCollectionRequest { + return &CalendarGroupCalendarsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Calendar item +func (b *CalendarGroupCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder { + bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CalendarGroupCalendarsCollectionRequest is request for Calendar collection +type CalendarGroupCalendarsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Calendar collection +func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Calendar, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Calendar + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Calendar + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Calendar collection, max N pages +func (r *CalendarGroupCalendarsCollectionRequest) GetN(ctx context.Context, n int) ([]Calendar, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Calendar collection +func (r *CalendarGroupCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Calendar collection +func (r *CalendarGroupCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go new file mode 100644 index 00000000..cb921f23 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go @@ -0,0 +1,454 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// CallAnswerRequestParameter undocumented +type CallAnswerRequestParameter struct { + // CallbackURI undocumented + CallbackURI *string `json:"callbackUri,omitempty"` + // MediaConfig undocumented + MediaConfig *MediaConfig `json:"mediaConfig,omitempty"` + // AcceptedModalities undocumented + AcceptedModalities []Modality `json:"acceptedModalities,omitempty"` +} + +// CallCancelMediaProcessingRequestParameter undocumented +type CallCancelMediaProcessingRequestParameter struct { + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallChangeScreenSharingRoleRequestParameter undocumented +type CallChangeScreenSharingRoleRequestParameter struct { + // Role undocumented + Role *ScreenSharingRole `json:"role,omitempty"` +} + +// CallKeepAliveRequestParameter undocumented +type CallKeepAliveRequestParameter struct { +} + +// CallMuteRequestParameter undocumented +type CallMuteRequestParameter struct { + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallPlayPromptRequestParameter undocumented +type CallPlayPromptRequestParameter struct { + // Prompts undocumented + Prompts []Prompt `json:"prompts,omitempty"` + // Loop undocumented + Loop *bool `json:"loop,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallRecordRequestParameter undocumented +type CallRecordRequestParameter struct { + // Prompts undocumented + Prompts []Prompt `json:"prompts,omitempty"` + // BargeInAllowed undocumented + BargeInAllowed *bool `json:"bargeInAllowed,omitempty"` + // InitialSilenceTimeoutInSeconds undocumented + InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"` + // MaxSilenceTimeoutInSeconds undocumented + MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"` + // MaxRecordDurationInSeconds undocumented + MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"` + // PlayBeep undocumented + PlayBeep *bool `json:"playBeep,omitempty"` + // StreamWhileRecording undocumented + StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"` + // StopTones undocumented + StopTones []string `json:"stopTones,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallRecordResponseRequestParameter undocumented +type CallRecordResponseRequestParameter struct { + // Prompts undocumented + Prompts []Prompt `json:"prompts,omitempty"` + // BargeInAllowed undocumented + BargeInAllowed *bool `json:"bargeInAllowed,omitempty"` + // InitialSilenceTimeoutInSeconds undocumented + InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"` + // MaxSilenceTimeoutInSeconds undocumented + MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"` + // MaxRecordDurationInSeconds undocumented + MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"` + // PlayBeep undocumented + PlayBeep *bool `json:"playBeep,omitempty"` + // StreamWhileRecording undocumented + StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"` + // StopTones undocumented + StopTones []string `json:"stopTones,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallRedirectRequestParameter undocumented +type CallRedirectRequestParameter struct { + // Targets undocumented + Targets []InvitationParticipantInfo `json:"targets,omitempty"` + // TargetDisposition undocumented + TargetDisposition *CallDisposition `json:"targetDisposition,omitempty"` + // Timeout undocumented + Timeout *int `json:"timeout,omitempty"` + // MaskCallee undocumented + MaskCallee *bool `json:"maskCallee,omitempty"` + // MaskCaller undocumented + MaskCaller *bool `json:"maskCaller,omitempty"` + // CallbackURI undocumented + CallbackURI *string `json:"callbackUri,omitempty"` +} + +// CallRejectRequestParameter undocumented +type CallRejectRequestParameter struct { + // Reason undocumented + Reason *RejectReason `json:"reason,omitempty"` + // CallbackURI undocumented + CallbackURI *string `json:"callbackUri,omitempty"` +} + +// CallSubscribeToToneRequestParameter undocumented +type CallSubscribeToToneRequestParameter struct { + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallTransferRequestParameter undocumented +type CallTransferRequestParameter struct { + // TransferTarget undocumented + TransferTarget *InvitationParticipantInfo `json:"transferTarget,omitempty"` +} + +// CallUnmuteRequestParameter undocumented +type CallUnmuteRequestParameter struct { + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// CallUpdateRecordingStatusRequestParameter undocumented +type CallUpdateRecordingStatusRequestParameter struct { + // Status undocumented + Status *RecordingStatus `json:"status,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// AudioRoutingGroups returns request builder for AudioRoutingGroup collection +func (b *CallRequestBuilder) AudioRoutingGroups() *CallAudioRoutingGroupsCollectionRequestBuilder { + bb := &CallAudioRoutingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/audioRoutingGroups" + return bb +} + +// CallAudioRoutingGroupsCollectionRequestBuilder is request builder for AudioRoutingGroup collection +type CallAudioRoutingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AudioRoutingGroup collection +func (b *CallAudioRoutingGroupsCollectionRequestBuilder) Request() *CallAudioRoutingGroupsCollectionRequest { + return &CallAudioRoutingGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AudioRoutingGroup item +func (b *CallAudioRoutingGroupsCollectionRequestBuilder) ID(id string) *AudioRoutingGroupRequestBuilder { + bb := &AudioRoutingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CallAudioRoutingGroupsCollectionRequest is request for AudioRoutingGroup collection +type CallAudioRoutingGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AudioRoutingGroup collection +func (r *CallAudioRoutingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AudioRoutingGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AudioRoutingGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AudioRoutingGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AudioRoutingGroup collection, max N pages +func (r *CallAudioRoutingGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]AudioRoutingGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AudioRoutingGroup collection +func (r *CallAudioRoutingGroupsCollectionRequest) Get(ctx context.Context) ([]AudioRoutingGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AudioRoutingGroup collection +func (r *CallAudioRoutingGroupsCollectionRequest) Add(ctx context.Context, reqObj *AudioRoutingGroup) (resObj *AudioRoutingGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Operations returns request builder for CommsOperation collection +func (b *CallRequestBuilder) Operations() *CallOperationsCollectionRequestBuilder { + bb := &CallOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operations" + return bb +} + +// CallOperationsCollectionRequestBuilder is request builder for CommsOperation collection +type CallOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CommsOperation collection +func (b *CallOperationsCollectionRequestBuilder) Request() *CallOperationsCollectionRequest { + return &CallOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CommsOperation item +func (b *CallOperationsCollectionRequestBuilder) ID(id string) *CommsOperationRequestBuilder { + bb := &CommsOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CallOperationsCollectionRequest is request for CommsOperation collection +type CallOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CommsOperation collection +func (r *CallOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CommsOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CommsOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CommsOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CommsOperation collection, max N pages +func (r *CallOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]CommsOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CommsOperation collection +func (r *CallOperationsCollectionRequest) Get(ctx context.Context) ([]CommsOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CommsOperation collection +func (r *CallOperationsCollectionRequest) Add(ctx context.Context, reqObj *CommsOperation) (resObj *CommsOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Participants returns request builder for Participant collection +func (b *CallRequestBuilder) Participants() *CallParticipantsCollectionRequestBuilder { + bb := &CallParticipantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/participants" + return bb +} + +// CallParticipantsCollectionRequestBuilder is request builder for Participant collection +type CallParticipantsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Participant collection +func (b *CallParticipantsCollectionRequestBuilder) Request() *CallParticipantsCollectionRequest { + return &CallParticipantsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Participant item +func (b *CallParticipantsCollectionRequestBuilder) ID(id string) *ParticipantRequestBuilder { + bb := &ParticipantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CallParticipantsCollectionRequest is request for Participant collection +type CallParticipantsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Participant collection +func (r *CallParticipantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Participant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Participant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Participant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Participant collection, max N pages +func (r *CallParticipantsCollectionRequest) GetN(ctx context.Context, n int) ([]Participant, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Participant collection +func (r *CallParticipantsCollectionRequest) Get(ctx context.Context) ([]Participant, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Participant collection +func (r *CallParticipantsCollectionRequest) Add(ctx context.Context, reqObj *Participant) (resObj *Participant, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go new file mode 100644 index 00000000..e6e939b9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go @@ -0,0 +1,325 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// FilesFolder is navigation property +func (b *ChannelRequestBuilder) FilesFolder() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/filesFolder" + return bb +} + +// Members returns request builder for ConversationMember collection +func (b *ChannelRequestBuilder) Members() *ChannelMembersCollectionRequestBuilder { + bb := &ChannelMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// ChannelMembersCollectionRequestBuilder is request builder for ConversationMember collection +type ChannelMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConversationMember collection +func (b *ChannelMembersCollectionRequestBuilder) Request() *ChannelMembersCollectionRequest { + return &ChannelMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConversationMember item +func (b *ChannelMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder { + bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChannelMembersCollectionRequest is request for ConversationMember collection +type ChannelMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConversationMember collection +func (r *ChannelMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationMember, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConversationMember + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConversationMember + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConversationMember collection, max N pages +func (r *ChannelMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationMember, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConversationMember collection +func (r *ChannelMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConversationMember collection +func (r *ChannelMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Messages returns request builder for ChatMessage collection +func (b *ChannelRequestBuilder) Messages() *ChannelMessagesCollectionRequestBuilder { + bb := &ChannelMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/messages" + return bb +} + +// ChannelMessagesCollectionRequestBuilder is request builder for ChatMessage collection +type ChannelMessagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ChatMessage collection +func (b *ChannelMessagesCollectionRequestBuilder) Request() *ChannelMessagesCollectionRequest { + return &ChannelMessagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ChatMessage item +func (b *ChannelMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder { + bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChannelMessagesCollectionRequest is request for ChatMessage collection +type ChannelMessagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ChatMessage collection +func (r *ChannelMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ChatMessage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ChatMessage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ChatMessage collection, max N pages +func (r *ChannelMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ChatMessage collection +func (r *ChannelMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ChatMessage collection +func (r *ChannelMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tabs returns request builder for TeamsTab collection +func (b *ChannelRequestBuilder) Tabs() *ChannelTabsCollectionRequestBuilder { + bb := &ChannelTabsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tabs" + return bb +} + +// ChannelTabsCollectionRequestBuilder is request builder for TeamsTab collection +type ChannelTabsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsTab collection +func (b *ChannelTabsCollectionRequestBuilder) Request() *ChannelTabsCollectionRequest { + return &ChannelTabsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsTab item +func (b *ChannelTabsCollectionRequestBuilder) ID(id string) *TeamsTabRequestBuilder { + bb := &TeamsTabRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChannelTabsCollectionRequest is request for TeamsTab collection +type ChannelTabsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsTab collection +func (r *ChannelTabsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsTab, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsTab + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsTab + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsTab collection, max N pages +func (r *ChannelTabsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsTab, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsTab collection +func (r *ChannelTabsCollectionRequest) Get(ctx context.Context) ([]TeamsTab, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsTab collection +func (r *ChannelTabsCollectionRequest) Add(ctx context.Context, reqObj *TeamsTab) (resObj *TeamsTab, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go new file mode 100644 index 00000000..95bef3c7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go @@ -0,0 +1,522 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// InstalledApps returns request builder for TeamsAppInstallation collection +func (b *ChatRequestBuilder) InstalledApps() *ChatInstalledAppsCollectionRequestBuilder { + bb := &ChatInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/installedApps" + return bb +} + +// ChatInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection +type ChatInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsAppInstallation collection +func (b *ChatInstalledAppsCollectionRequestBuilder) Request() *ChatInstalledAppsCollectionRequest { + return &ChatInstalledAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsAppInstallation item +func (b *ChatInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder { + bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChatInstalledAppsCollectionRequest is request for TeamsAppInstallation collection +type ChatInstalledAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsAppInstallation collection +func (r *ChatInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsAppInstallation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsAppInstallation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsAppInstallation collection, max N pages +func (r *ChatInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsAppInstallation collection +func (r *ChatInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsAppInstallation collection +func (r *ChatInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Members returns request builder for ConversationMember collection +func (b *ChatRequestBuilder) Members() *ChatMembersCollectionRequestBuilder { + bb := &ChatMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// ChatMembersCollectionRequestBuilder is request builder for ConversationMember collection +type ChatMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConversationMember collection +func (b *ChatMembersCollectionRequestBuilder) Request() *ChatMembersCollectionRequest { + return &ChatMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConversationMember item +func (b *ChatMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder { + bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChatMembersCollectionRequest is request for ConversationMember collection +type ChatMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConversationMember collection +func (r *ChatMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationMember, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConversationMember + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConversationMember + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConversationMember collection, max N pages +func (r *ChatMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationMember, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConversationMember collection +func (r *ChatMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConversationMember collection +func (r *ChatMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Messages returns request builder for ChatMessage collection +func (b *ChatRequestBuilder) Messages() *ChatMessagesCollectionRequestBuilder { + bb := &ChatMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/messages" + return bb +} + +// ChatMessagesCollectionRequestBuilder is request builder for ChatMessage collection +type ChatMessagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ChatMessage collection +func (b *ChatMessagesCollectionRequestBuilder) Request() *ChatMessagesCollectionRequest { + return &ChatMessagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ChatMessage item +func (b *ChatMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder { + bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChatMessagesCollectionRequest is request for ChatMessage collection +type ChatMessagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ChatMessage collection +func (r *ChatMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ChatMessage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ChatMessage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ChatMessage collection, max N pages +func (r *ChatMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ChatMessage collection +func (r *ChatMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ChatMessage collection +func (r *ChatMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// HostedContents returns request builder for ChatMessageHostedContent collection +func (b *ChatMessageRequestBuilder) HostedContents() *ChatMessageHostedContentsCollectionRequestBuilder { + bb := &ChatMessageHostedContentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/hostedContents" + return bb +} + +// ChatMessageHostedContentsCollectionRequestBuilder is request builder for ChatMessageHostedContent collection +type ChatMessageHostedContentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ChatMessageHostedContent collection +func (b *ChatMessageHostedContentsCollectionRequestBuilder) Request() *ChatMessageHostedContentsCollectionRequest { + return &ChatMessageHostedContentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ChatMessageHostedContent item +func (b *ChatMessageHostedContentsCollectionRequestBuilder) ID(id string) *ChatMessageHostedContentRequestBuilder { + bb := &ChatMessageHostedContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChatMessageHostedContentsCollectionRequest is request for ChatMessageHostedContent collection +type ChatMessageHostedContentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ChatMessageHostedContent collection +func (r *ChatMessageHostedContentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessageHostedContent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ChatMessageHostedContent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ChatMessageHostedContent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ChatMessageHostedContent collection, max N pages +func (r *ChatMessageHostedContentsCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessageHostedContent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ChatMessageHostedContent collection +func (r *ChatMessageHostedContentsCollectionRequest) Get(ctx context.Context) ([]ChatMessageHostedContent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ChatMessageHostedContent collection +func (r *ChatMessageHostedContentsCollectionRequest) Add(ctx context.Context, reqObj *ChatMessageHostedContent) (resObj *ChatMessageHostedContent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Replies returns request builder for ChatMessage collection +func (b *ChatMessageRequestBuilder) Replies() *ChatMessageRepliesCollectionRequestBuilder { + bb := &ChatMessageRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/replies" + return bb +} + +// ChatMessageRepliesCollectionRequestBuilder is request builder for ChatMessage collection +type ChatMessageRepliesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ChatMessage collection +func (b *ChatMessageRepliesCollectionRequestBuilder) Request() *ChatMessageRepliesCollectionRequest { + return &ChatMessageRepliesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ChatMessage item +func (b *ChatMessageRepliesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder { + bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ChatMessageRepliesCollectionRequest is request for ChatMessage collection +type ChatMessageRepliesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ChatMessage collection +func (r *ChatMessageRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ChatMessage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ChatMessage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ChatMessage collection, max N pages +func (r *ChatMessageRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ChatMessage collection +func (r *ChatMessageRepliesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ChatMessage collection +func (r *ChatMessageRepliesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go new file mode 100644 index 00000000..d9222d36 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go @@ -0,0 +1,222 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// CloudCommunicationsGetPresencesByUserIDRequestParameter undocumented +type CloudCommunicationsGetPresencesByUserIDRequestParameter struct { + // IDs undocumented + IDs []string `json:"ids,omitempty"` +} + +// Calls returns request builder for Call collection +func (b *CloudCommunicationsRequestBuilder) Calls() *CloudCommunicationsCallsCollectionRequestBuilder { + bb := &CloudCommunicationsCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calls" + return bb +} + +// CloudCommunicationsCallsCollectionRequestBuilder is request builder for Call collection +type CloudCommunicationsCallsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Call collection +func (b *CloudCommunicationsCallsCollectionRequestBuilder) Request() *CloudCommunicationsCallsCollectionRequest { + return &CloudCommunicationsCallsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Call item +func (b *CloudCommunicationsCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder { + bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CloudCommunicationsCallsCollectionRequest is request for Call collection +type CloudCommunicationsCallsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Call collection +func (r *CloudCommunicationsCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Call, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Call + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Call + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Call collection, max N pages +func (r *CloudCommunicationsCallsCollectionRequest) GetN(ctx context.Context, n int) ([]Call, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Call collection +func (r *CloudCommunicationsCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Call collection +func (r *CloudCommunicationsCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OnlineMeetings returns request builder for OnlineMeeting collection +func (b *CloudCommunicationsRequestBuilder) OnlineMeetings() *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder { + bb := &CloudCommunicationsOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onlineMeetings" + return bb +} + +// CloudCommunicationsOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection +type CloudCommunicationsOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnlineMeeting collection +func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) Request() *CloudCommunicationsOnlineMeetingsCollectionRequest { + return &CloudCommunicationsOnlineMeetingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnlineMeeting item +func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder { + bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CloudCommunicationsOnlineMeetingsCollectionRequest is request for OnlineMeeting collection +type CloudCommunicationsOnlineMeetingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnlineMeeting collection +func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnlineMeeting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnlineMeeting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnlineMeeting collection, max N pages +func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnlineMeeting collection +func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnlineMeeting collection +func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go new file mode 100644 index 00000000..5c504670 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Responsepayload is navigation property +func (b *CommandRequestBuilder) Responsepayload() *PayloadResponseRequestBuilder { + bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/responsepayload" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go new file mode 100644 index 00000000..c32c7210 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go @@ -0,0 +1,216 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Calls returns request builder for Call collection +func (b *CommsApplicationRequestBuilder) Calls() *CommsApplicationCallsCollectionRequestBuilder { + bb := &CommsApplicationCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calls" + return bb +} + +// CommsApplicationCallsCollectionRequestBuilder is request builder for Call collection +type CommsApplicationCallsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Call collection +func (b *CommsApplicationCallsCollectionRequestBuilder) Request() *CommsApplicationCallsCollectionRequest { + return &CommsApplicationCallsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Call item +func (b *CommsApplicationCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder { + bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CommsApplicationCallsCollectionRequest is request for Call collection +type CommsApplicationCallsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Call collection +func (r *CommsApplicationCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Call, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Call + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Call + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Call collection, max N pages +func (r *CommsApplicationCallsCollectionRequest) GetN(ctx context.Context, n int) ([]Call, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Call collection +func (r *CommsApplicationCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Call collection +func (r *CommsApplicationCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OnlineMeetings returns request builder for OnlineMeeting collection +func (b *CommsApplicationRequestBuilder) OnlineMeetings() *CommsApplicationOnlineMeetingsCollectionRequestBuilder { + bb := &CommsApplicationOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onlineMeetings" + return bb +} + +// CommsApplicationOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection +type CommsApplicationOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnlineMeeting collection +func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) Request() *CommsApplicationOnlineMeetingsCollectionRequest { + return &CommsApplicationOnlineMeetingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnlineMeeting item +func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder { + bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CommsApplicationOnlineMeetingsCollectionRequest is request for OnlineMeeting collection +type CommsApplicationOnlineMeetingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnlineMeeting collection +func (r *CommsApplicationOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnlineMeeting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnlineMeeting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnlineMeeting collection, max N pages +func (r *CommsApplicationOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnlineMeeting collection +func (r *CommsApplicationOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnlineMeeting collection +func (r *CommsApplicationOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go new file mode 100644 index 00000000..20c06f5d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go @@ -0,0 +1,3582 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Accounts returns request builder for Account collection +func (b *CompanyRequestBuilder) Accounts() *CompanyAccountsCollectionRequestBuilder { + bb := &CompanyAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accounts" + return bb +} + +// CompanyAccountsCollectionRequestBuilder is request builder for Account collection +type CompanyAccountsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Account collection +func (b *CompanyAccountsCollectionRequestBuilder) Request() *CompanyAccountsCollectionRequest { + return &CompanyAccountsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Account item +func (b *CompanyAccountsCollectionRequestBuilder) ID(id string) *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyAccountsCollectionRequest is request for Account collection +type CompanyAccountsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Account collection +func (r *CompanyAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Account, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Account + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Account + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Account collection, max N pages +func (r *CompanyAccountsCollectionRequest) GetN(ctx context.Context, n int) ([]Account, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Account collection +func (r *CompanyAccountsCollectionRequest) Get(ctx context.Context) ([]Account, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Account collection +func (r *CompanyAccountsCollectionRequest) Add(ctx context.Context, reqObj *Account) (resObj *Account, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AgedAccountsPayable returns request builder for AgedAccountsPayable collection +func (b *CompanyRequestBuilder) AgedAccountsPayable() *CompanyAgedAccountsPayableCollectionRequestBuilder { + bb := &CompanyAgedAccountsPayableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agedAccountsPayable" + return bb +} + +// CompanyAgedAccountsPayableCollectionRequestBuilder is request builder for AgedAccountsPayable collection +type CompanyAgedAccountsPayableCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AgedAccountsPayable collection +func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) Request() *CompanyAgedAccountsPayableCollectionRequest { + return &CompanyAgedAccountsPayableCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AgedAccountsPayable item +func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) ID(id string) *AgedAccountsPayableRequestBuilder { + bb := &AgedAccountsPayableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyAgedAccountsPayableCollectionRequest is request for AgedAccountsPayable collection +type CompanyAgedAccountsPayableCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AgedAccountsPayable collection +func (r *CompanyAgedAccountsPayableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgedAccountsPayable, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AgedAccountsPayable + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AgedAccountsPayable + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AgedAccountsPayable collection, max N pages +func (r *CompanyAgedAccountsPayableCollectionRequest) GetN(ctx context.Context, n int) ([]AgedAccountsPayable, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AgedAccountsPayable collection +func (r *CompanyAgedAccountsPayableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsPayable, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AgedAccountsPayable collection +func (r *CompanyAgedAccountsPayableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsPayable) (resObj *AgedAccountsPayable, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AgedAccountsReceivable returns request builder for AgedAccountsReceivable collection +func (b *CompanyRequestBuilder) AgedAccountsReceivable() *CompanyAgedAccountsReceivableCollectionRequestBuilder { + bb := &CompanyAgedAccountsReceivableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agedAccountsReceivable" + return bb +} + +// CompanyAgedAccountsReceivableCollectionRequestBuilder is request builder for AgedAccountsReceivable collection +type CompanyAgedAccountsReceivableCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AgedAccountsReceivable collection +func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) Request() *CompanyAgedAccountsReceivableCollectionRequest { + return &CompanyAgedAccountsReceivableCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AgedAccountsReceivable item +func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) ID(id string) *AgedAccountsReceivableRequestBuilder { + bb := &AgedAccountsReceivableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyAgedAccountsReceivableCollectionRequest is request for AgedAccountsReceivable collection +type CompanyAgedAccountsReceivableCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AgedAccountsReceivable collection +func (r *CompanyAgedAccountsReceivableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgedAccountsReceivable, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AgedAccountsReceivable + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AgedAccountsReceivable + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AgedAccountsReceivable collection, max N pages +func (r *CompanyAgedAccountsReceivableCollectionRequest) GetN(ctx context.Context, n int) ([]AgedAccountsReceivable, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AgedAccountsReceivable collection +func (r *CompanyAgedAccountsReceivableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsReceivable, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AgedAccountsReceivable collection +func (r *CompanyAgedAccountsReceivableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsReceivable) (resObj *AgedAccountsReceivable, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CompanyInformation returns request builder for CompanyInformation collection +func (b *CompanyRequestBuilder) CompanyInformation() *CompanyCompanyInformationCollectionRequestBuilder { + bb := &CompanyCompanyInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/companyInformation" + return bb +} + +// CompanyCompanyInformationCollectionRequestBuilder is request builder for CompanyInformation collection +type CompanyCompanyInformationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CompanyInformation collection +func (b *CompanyCompanyInformationCollectionRequestBuilder) Request() *CompanyCompanyInformationCollectionRequest { + return &CompanyCompanyInformationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CompanyInformation item +func (b *CompanyCompanyInformationCollectionRequestBuilder) ID(id string) *CompanyInformationRequestBuilder { + bb := &CompanyInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCompanyInformationCollectionRequest is request for CompanyInformation collection +type CompanyCompanyInformationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CompanyInformation collection +func (r *CompanyCompanyInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CompanyInformation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CompanyInformation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CompanyInformation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CompanyInformation collection, max N pages +func (r *CompanyCompanyInformationCollectionRequest) GetN(ctx context.Context, n int) ([]CompanyInformation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CompanyInformation collection +func (r *CompanyCompanyInformationCollectionRequest) Get(ctx context.Context) ([]CompanyInformation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CompanyInformation collection +func (r *CompanyCompanyInformationCollectionRequest) Add(ctx context.Context, reqObj *CompanyInformation) (resObj *CompanyInformation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CountriesRegions returns request builder for CountryRegion collection +func (b *CompanyRequestBuilder) CountriesRegions() *CompanyCountriesRegionsCollectionRequestBuilder { + bb := &CompanyCountriesRegionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/countriesRegions" + return bb +} + +// CompanyCountriesRegionsCollectionRequestBuilder is request builder for CountryRegion collection +type CompanyCountriesRegionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CountryRegion collection +func (b *CompanyCountriesRegionsCollectionRequestBuilder) Request() *CompanyCountriesRegionsCollectionRequest { + return &CompanyCountriesRegionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CountryRegion item +func (b *CompanyCountriesRegionsCollectionRequestBuilder) ID(id string) *CountryRegionRequestBuilder { + bb := &CountryRegionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCountriesRegionsCollectionRequest is request for CountryRegion collection +type CompanyCountriesRegionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CountryRegion collection +func (r *CompanyCountriesRegionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CountryRegion, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CountryRegion + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CountryRegion + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CountryRegion collection, max N pages +func (r *CompanyCountriesRegionsCollectionRequest) GetN(ctx context.Context, n int) ([]CountryRegion, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CountryRegion collection +func (r *CompanyCountriesRegionsCollectionRequest) Get(ctx context.Context) ([]CountryRegion, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CountryRegion collection +func (r *CompanyCountriesRegionsCollectionRequest) Add(ctx context.Context, reqObj *CountryRegion) (resObj *CountryRegion, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Currencies returns request builder for Currency collection +func (b *CompanyRequestBuilder) Currencies() *CompanyCurrenciesCollectionRequestBuilder { + bb := &CompanyCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currencies" + return bb +} + +// CompanyCurrenciesCollectionRequestBuilder is request builder for Currency collection +type CompanyCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Currency collection +func (b *CompanyCurrenciesCollectionRequestBuilder) Request() *CompanyCurrenciesCollectionRequest { + return &CompanyCurrenciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Currency item +func (b *CompanyCurrenciesCollectionRequestBuilder) ID(id string) *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCurrenciesCollectionRequest is request for Currency collection +type CompanyCurrenciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Currency collection +func (r *CompanyCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Currency, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Currency + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Currency + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Currency collection, max N pages +func (r *CompanyCurrenciesCollectionRequest) GetN(ctx context.Context, n int) ([]Currency, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Currency collection +func (r *CompanyCurrenciesCollectionRequest) Get(ctx context.Context) ([]Currency, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Currency collection +func (r *CompanyCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *Currency) (resObj *Currency, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CustomerPaymentJournals returns request builder for CustomerPaymentJournal collection +func (b *CompanyRequestBuilder) CustomerPaymentJournals() *CompanyCustomerPaymentJournalsCollectionRequestBuilder { + bb := &CompanyCustomerPaymentJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customerPaymentJournals" + return bb +} + +// CompanyCustomerPaymentJournalsCollectionRequestBuilder is request builder for CustomerPaymentJournal collection +type CompanyCustomerPaymentJournalsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CustomerPaymentJournal collection +func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) Request() *CompanyCustomerPaymentJournalsCollectionRequest { + return &CompanyCustomerPaymentJournalsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CustomerPaymentJournal item +func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) ID(id string) *CustomerPaymentJournalRequestBuilder { + bb := &CustomerPaymentJournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCustomerPaymentJournalsCollectionRequest is request for CustomerPaymentJournal collection +type CompanyCustomerPaymentJournalsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CustomerPaymentJournal collection +func (r *CompanyCustomerPaymentJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPaymentJournal, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CustomerPaymentJournal + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CustomerPaymentJournal + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CustomerPaymentJournal collection, max N pages +func (r *CompanyCustomerPaymentJournalsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPaymentJournal, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CustomerPaymentJournal collection +func (r *CompanyCustomerPaymentJournalsCollectionRequest) Get(ctx context.Context) ([]CustomerPaymentJournal, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CustomerPaymentJournal collection +func (r *CompanyCustomerPaymentJournalsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPaymentJournal) (resObj *CustomerPaymentJournal, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CustomerPayments returns request builder for CustomerPayment collection +func (b *CompanyRequestBuilder) CustomerPayments() *CompanyCustomerPaymentsCollectionRequestBuilder { + bb := &CompanyCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customerPayments" + return bb +} + +// CompanyCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection +type CompanyCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CustomerPayment collection +func (b *CompanyCustomerPaymentsCollectionRequestBuilder) Request() *CompanyCustomerPaymentsCollectionRequest { + return &CompanyCustomerPaymentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CustomerPayment item +func (b *CompanyCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder { + bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCustomerPaymentsCollectionRequest is request for CustomerPayment collection +type CompanyCustomerPaymentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CustomerPayment collection +func (r *CompanyCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPayment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CustomerPayment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CustomerPayment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CustomerPayment collection, max N pages +func (r *CompanyCustomerPaymentsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPayment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CustomerPayment collection +func (r *CompanyCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CustomerPayment collection +func (r *CompanyCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Customers returns request builder for Customer collection +func (b *CompanyRequestBuilder) Customers() *CompanyCustomersCollectionRequestBuilder { + bb := &CompanyCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customers" + return bb +} + +// CompanyCustomersCollectionRequestBuilder is request builder for Customer collection +type CompanyCustomersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Customer collection +func (b *CompanyCustomersCollectionRequestBuilder) Request() *CompanyCustomersCollectionRequest { + return &CompanyCustomersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Customer item +func (b *CompanyCustomersCollectionRequestBuilder) ID(id string) *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyCustomersCollectionRequest is request for Customer collection +type CompanyCustomersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Customer collection +func (r *CompanyCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Customer, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Customer + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Customer + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Customer collection, max N pages +func (r *CompanyCustomersCollectionRequest) GetN(ctx context.Context, n int) ([]Customer, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Customer collection +func (r *CompanyCustomersCollectionRequest) Get(ctx context.Context) ([]Customer, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Customer collection +func (r *CompanyCustomersCollectionRequest) Add(ctx context.Context, reqObj *Customer) (resObj *Customer, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DimensionValues returns request builder for DimensionValue collection +func (b *CompanyRequestBuilder) DimensionValues() *CompanyDimensionValuesCollectionRequestBuilder { + bb := &CompanyDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dimensionValues" + return bb +} + +// CompanyDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection +type CompanyDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DimensionValue collection +func (b *CompanyDimensionValuesCollectionRequestBuilder) Request() *CompanyDimensionValuesCollectionRequest { + return &CompanyDimensionValuesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DimensionValue item +func (b *CompanyDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder { + bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyDimensionValuesCollectionRequest is request for DimensionValue collection +type CompanyDimensionValuesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DimensionValue collection +func (r *CompanyDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DimensionValue, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DimensionValue + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DimensionValue + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DimensionValue collection, max N pages +func (r *CompanyDimensionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]DimensionValue, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DimensionValue collection +func (r *CompanyDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DimensionValue collection +func (r *CompanyDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Dimensions returns request builder for Dimension collection +func (b *CompanyRequestBuilder) Dimensions() *CompanyDimensionsCollectionRequestBuilder { + bb := &CompanyDimensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dimensions" + return bb +} + +// CompanyDimensionsCollectionRequestBuilder is request builder for Dimension collection +type CompanyDimensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Dimension collection +func (b *CompanyDimensionsCollectionRequestBuilder) Request() *CompanyDimensionsCollectionRequest { + return &CompanyDimensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Dimension item +func (b *CompanyDimensionsCollectionRequestBuilder) ID(id string) *DimensionRequestBuilder { + bb := &DimensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyDimensionsCollectionRequest is request for Dimension collection +type CompanyDimensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Dimension collection +func (r *CompanyDimensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Dimension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Dimension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Dimension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Dimension collection, max N pages +func (r *CompanyDimensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Dimension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Dimension collection +func (r *CompanyDimensionsCollectionRequest) Get(ctx context.Context) ([]Dimension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Dimension collection +func (r *CompanyDimensionsCollectionRequest) Add(ctx context.Context, reqObj *Dimension) (resObj *Dimension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Employees returns request builder for Employee collection +func (b *CompanyRequestBuilder) Employees() *CompanyEmployeesCollectionRequestBuilder { + bb := &CompanyEmployeesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/employees" + return bb +} + +// CompanyEmployeesCollectionRequestBuilder is request builder for Employee collection +type CompanyEmployeesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Employee collection +func (b *CompanyEmployeesCollectionRequestBuilder) Request() *CompanyEmployeesCollectionRequest { + return &CompanyEmployeesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Employee item +func (b *CompanyEmployeesCollectionRequestBuilder) ID(id string) *EmployeeRequestBuilder { + bb := &EmployeeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyEmployeesCollectionRequest is request for Employee collection +type CompanyEmployeesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Employee collection +func (r *CompanyEmployeesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Employee, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Employee + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Employee + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Employee collection, max N pages +func (r *CompanyEmployeesCollectionRequest) GetN(ctx context.Context, n int) ([]Employee, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Employee collection +func (r *CompanyEmployeesCollectionRequest) Get(ctx context.Context) ([]Employee, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Employee collection +func (r *CompanyEmployeesCollectionRequest) Add(ctx context.Context, reqObj *Employee) (resObj *Employee, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GeneralLedgerEntries returns request builder for GeneralLedgerEntry collection +func (b *CompanyRequestBuilder) GeneralLedgerEntries() *CompanyGeneralLedgerEntriesCollectionRequestBuilder { + bb := &CompanyGeneralLedgerEntriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/generalLedgerEntries" + return bb +} + +// CompanyGeneralLedgerEntriesCollectionRequestBuilder is request builder for GeneralLedgerEntry collection +type CompanyGeneralLedgerEntriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GeneralLedgerEntry collection +func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) Request() *CompanyGeneralLedgerEntriesCollectionRequest { + return &CompanyGeneralLedgerEntriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GeneralLedgerEntry item +func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) ID(id string) *GeneralLedgerEntryRequestBuilder { + bb := &GeneralLedgerEntryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyGeneralLedgerEntriesCollectionRequest is request for GeneralLedgerEntry collection +type CompanyGeneralLedgerEntriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GeneralLedgerEntry collection +func (r *CompanyGeneralLedgerEntriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GeneralLedgerEntry, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GeneralLedgerEntry + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GeneralLedgerEntry + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GeneralLedgerEntry collection, max N pages +func (r *CompanyGeneralLedgerEntriesCollectionRequest) GetN(ctx context.Context, n int) ([]GeneralLedgerEntry, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GeneralLedgerEntry collection +func (r *CompanyGeneralLedgerEntriesCollectionRequest) Get(ctx context.Context) ([]GeneralLedgerEntry, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GeneralLedgerEntry collection +func (r *CompanyGeneralLedgerEntriesCollectionRequest) Add(ctx context.Context, reqObj *GeneralLedgerEntry) (resObj *GeneralLedgerEntry, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ItemCategories returns request builder for ItemCategory collection +func (b *CompanyRequestBuilder) ItemCategories() *CompanyItemCategoriesCollectionRequestBuilder { + bb := &CompanyItemCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/itemCategories" + return bb +} + +// CompanyItemCategoriesCollectionRequestBuilder is request builder for ItemCategory collection +type CompanyItemCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemCategory collection +func (b *CompanyItemCategoriesCollectionRequestBuilder) Request() *CompanyItemCategoriesCollectionRequest { + return &CompanyItemCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemCategory item +func (b *CompanyItemCategoriesCollectionRequestBuilder) ID(id string) *ItemCategoryRequestBuilder { + bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyItemCategoriesCollectionRequest is request for ItemCategory collection +type CompanyItemCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemCategory collection +func (r *CompanyItemCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemCategory collection, max N pages +func (r *CompanyItemCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemCategory collection +func (r *CompanyItemCategoriesCollectionRequest) Get(ctx context.Context) ([]ItemCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemCategory collection +func (r *CompanyItemCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ItemCategory) (resObj *ItemCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Items returns request builder for Item collection +func (b *CompanyRequestBuilder) Items() *CompanyItemsCollectionRequestBuilder { + bb := &CompanyItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// CompanyItemsCollectionRequestBuilder is request builder for Item collection +type CompanyItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Item collection +func (b *CompanyItemsCollectionRequestBuilder) Request() *CompanyItemsCollectionRequest { + return &CompanyItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Item item +func (b *CompanyItemsCollectionRequestBuilder) ID(id string) *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyItemsCollectionRequest is request for Item collection +type CompanyItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Item collection +func (r *CompanyItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Item, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Item + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Item + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Item collection, max N pages +func (r *CompanyItemsCollectionRequest) GetN(ctx context.Context, n int) ([]Item, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Item collection +func (r *CompanyItemsCollectionRequest) Get(ctx context.Context) ([]Item, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Item collection +func (r *CompanyItemsCollectionRequest) Add(ctx context.Context, reqObj *Item) (resObj *Item, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// JournalLines returns request builder for JournalLine collection +func (b *CompanyRequestBuilder) JournalLines() *CompanyJournalLinesCollectionRequestBuilder { + bb := &CompanyJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/journalLines" + return bb +} + +// CompanyJournalLinesCollectionRequestBuilder is request builder for JournalLine collection +type CompanyJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JournalLine collection +func (b *CompanyJournalLinesCollectionRequestBuilder) Request() *CompanyJournalLinesCollectionRequest { + return &CompanyJournalLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JournalLine item +func (b *CompanyJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder { + bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyJournalLinesCollectionRequest is request for JournalLine collection +type CompanyJournalLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JournalLine collection +func (r *CompanyJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JournalLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JournalLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JournalLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JournalLine collection, max N pages +func (r *CompanyJournalLinesCollectionRequest) GetN(ctx context.Context, n int) ([]JournalLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JournalLine collection +func (r *CompanyJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JournalLine collection +func (r *CompanyJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Journals returns request builder for Journal collection +func (b *CompanyRequestBuilder) Journals() *CompanyJournalsCollectionRequestBuilder { + bb := &CompanyJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/journals" + return bb +} + +// CompanyJournalsCollectionRequestBuilder is request builder for Journal collection +type CompanyJournalsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Journal collection +func (b *CompanyJournalsCollectionRequestBuilder) Request() *CompanyJournalsCollectionRequest { + return &CompanyJournalsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Journal item +func (b *CompanyJournalsCollectionRequestBuilder) ID(id string) *JournalRequestBuilder { + bb := &JournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyJournalsCollectionRequest is request for Journal collection +type CompanyJournalsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Journal collection +func (r *CompanyJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Journal, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Journal + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Journal + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Journal collection, max N pages +func (r *CompanyJournalsCollectionRequest) GetN(ctx context.Context, n int) ([]Journal, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Journal collection +func (r *CompanyJournalsCollectionRequest) Get(ctx context.Context) ([]Journal, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Journal collection +func (r *CompanyJournalsCollectionRequest) Add(ctx context.Context, reqObj *Journal) (resObj *Journal, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PaymentMethods returns request builder for PaymentMethod collection +func (b *CompanyRequestBuilder) PaymentMethods() *CompanyPaymentMethodsCollectionRequestBuilder { + bb := &CompanyPaymentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentMethods" + return bb +} + +// CompanyPaymentMethodsCollectionRequestBuilder is request builder for PaymentMethod collection +type CompanyPaymentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PaymentMethod collection +func (b *CompanyPaymentMethodsCollectionRequestBuilder) Request() *CompanyPaymentMethodsCollectionRequest { + return &CompanyPaymentMethodsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PaymentMethod item +func (b *CompanyPaymentMethodsCollectionRequestBuilder) ID(id string) *PaymentMethodRequestBuilder { + bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyPaymentMethodsCollectionRequest is request for PaymentMethod collection +type CompanyPaymentMethodsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PaymentMethod collection +func (r *CompanyPaymentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PaymentMethod, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PaymentMethod + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PaymentMethod + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PaymentMethod collection, max N pages +func (r *CompanyPaymentMethodsCollectionRequest) GetN(ctx context.Context, n int) ([]PaymentMethod, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PaymentMethod collection +func (r *CompanyPaymentMethodsCollectionRequest) Get(ctx context.Context) ([]PaymentMethod, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PaymentMethod collection +func (r *CompanyPaymentMethodsCollectionRequest) Add(ctx context.Context, reqObj *PaymentMethod) (resObj *PaymentMethod, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PaymentTerms returns request builder for PaymentTerm collection +func (b *CompanyRequestBuilder) PaymentTerms() *CompanyPaymentTermsCollectionRequestBuilder { + bb := &CompanyPaymentTermsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerms" + return bb +} + +// CompanyPaymentTermsCollectionRequestBuilder is request builder for PaymentTerm collection +type CompanyPaymentTermsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PaymentTerm collection +func (b *CompanyPaymentTermsCollectionRequestBuilder) Request() *CompanyPaymentTermsCollectionRequest { + return &CompanyPaymentTermsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PaymentTerm item +func (b *CompanyPaymentTermsCollectionRequestBuilder) ID(id string) *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyPaymentTermsCollectionRequest is request for PaymentTerm collection +type CompanyPaymentTermsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PaymentTerm collection +func (r *CompanyPaymentTermsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PaymentTerm, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PaymentTerm + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PaymentTerm + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PaymentTerm collection, max N pages +func (r *CompanyPaymentTermsCollectionRequest) GetN(ctx context.Context, n int) ([]PaymentTerm, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PaymentTerm collection +func (r *CompanyPaymentTermsCollectionRequest) Get(ctx context.Context) ([]PaymentTerm, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PaymentTerm collection +func (r *CompanyPaymentTermsCollectionRequest) Add(ctx context.Context, reqObj *PaymentTerm) (resObj *PaymentTerm, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Picture returns request builder for Picture collection +func (b *CompanyRequestBuilder) Picture() *CompanyPictureCollectionRequestBuilder { + bb := &CompanyPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/picture" + return bb +} + +// CompanyPictureCollectionRequestBuilder is request builder for Picture collection +type CompanyPictureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Picture collection +func (b *CompanyPictureCollectionRequestBuilder) Request() *CompanyPictureCollectionRequest { + return &CompanyPictureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Picture item +func (b *CompanyPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder { + bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyPictureCollectionRequest is request for Picture collection +type CompanyPictureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Picture collection +func (r *CompanyPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Picture + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Picture + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Picture collection, max N pages +func (r *CompanyPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Picture collection +func (r *CompanyPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Picture collection +func (r *CompanyPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection +func (b *CompanyRequestBuilder) PurchaseInvoiceLines() *CompanyPurchaseInvoiceLinesCollectionRequestBuilder { + bb := &CompanyPurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/purchaseInvoiceLines" + return bb +} + +// CompanyPurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection +type CompanyPurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PurchaseInvoiceLine collection +func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) Request() *CompanyPurchaseInvoiceLinesCollectionRequest { + return &CompanyPurchaseInvoiceLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PurchaseInvoiceLine item +func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder { + bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyPurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection +type CompanyPurchaseInvoiceLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PurchaseInvoiceLine collection +func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoiceLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PurchaseInvoiceLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PurchaseInvoiceLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PurchaseInvoiceLine collection, max N pages +func (r *CompanyPurchaseInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoiceLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PurchaseInvoiceLine collection +func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PurchaseInvoiceLine collection +func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PurchaseInvoices returns request builder for PurchaseInvoice collection +func (b *CompanyRequestBuilder) PurchaseInvoices() *CompanyPurchaseInvoicesCollectionRequestBuilder { + bb := &CompanyPurchaseInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/purchaseInvoices" + return bb +} + +// CompanyPurchaseInvoicesCollectionRequestBuilder is request builder for PurchaseInvoice collection +type CompanyPurchaseInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PurchaseInvoice collection +func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) Request() *CompanyPurchaseInvoicesCollectionRequest { + return &CompanyPurchaseInvoicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PurchaseInvoice item +func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceRequestBuilder { + bb := &PurchaseInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyPurchaseInvoicesCollectionRequest is request for PurchaseInvoice collection +type CompanyPurchaseInvoicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PurchaseInvoice collection +func (r *CompanyPurchaseInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PurchaseInvoice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PurchaseInvoice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PurchaseInvoice collection, max N pages +func (r *CompanyPurchaseInvoicesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PurchaseInvoice collection +func (r *CompanyPurchaseInvoicesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PurchaseInvoice collection +func (r *CompanyPurchaseInvoicesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoice) (resObj *PurchaseInvoice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection +func (b *CompanyRequestBuilder) SalesCreditMemoLines() *CompanySalesCreditMemoLinesCollectionRequestBuilder { + bb := &CompanySalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesCreditMemoLines" + return bb +} + +// CompanySalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection +type CompanySalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesCreditMemoLine collection +func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) Request() *CompanySalesCreditMemoLinesCollectionRequest { + return &CompanySalesCreditMemoLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesCreditMemoLine item +func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder { + bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection +type CompanySalesCreditMemoLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesCreditMemoLine collection +func (r *CompanySalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemoLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesCreditMemoLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesCreditMemoLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesCreditMemoLine collection, max N pages +func (r *CompanySalesCreditMemoLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemoLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesCreditMemoLine collection +func (r *CompanySalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesCreditMemoLine collection +func (r *CompanySalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesCreditMemos returns request builder for SalesCreditMemo collection +func (b *CompanyRequestBuilder) SalesCreditMemos() *CompanySalesCreditMemosCollectionRequestBuilder { + bb := &CompanySalesCreditMemosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesCreditMemos" + return bb +} + +// CompanySalesCreditMemosCollectionRequestBuilder is request builder for SalesCreditMemo collection +type CompanySalesCreditMemosCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesCreditMemo collection +func (b *CompanySalesCreditMemosCollectionRequestBuilder) Request() *CompanySalesCreditMemosCollectionRequest { + return &CompanySalesCreditMemosCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesCreditMemo item +func (b *CompanySalesCreditMemosCollectionRequestBuilder) ID(id string) *SalesCreditMemoRequestBuilder { + bb := &SalesCreditMemoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesCreditMemosCollectionRequest is request for SalesCreditMemo collection +type CompanySalesCreditMemosCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesCreditMemo collection +func (r *CompanySalesCreditMemosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemo, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesCreditMemo + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesCreditMemo + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesCreditMemo collection, max N pages +func (r *CompanySalesCreditMemosCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemo, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesCreditMemo collection +func (r *CompanySalesCreditMemosCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemo, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesCreditMemo collection +func (r *CompanySalesCreditMemosCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemo) (resObj *SalesCreditMemo, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesInvoiceLines returns request builder for SalesInvoiceLine collection +func (b *CompanyRequestBuilder) SalesInvoiceLines() *CompanySalesInvoiceLinesCollectionRequestBuilder { + bb := &CompanySalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesInvoiceLines" + return bb +} + +// CompanySalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection +type CompanySalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesInvoiceLine collection +func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) Request() *CompanySalesInvoiceLinesCollectionRequest { + return &CompanySalesInvoiceLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesInvoiceLine item +func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder { + bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection +type CompanySalesInvoiceLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesInvoiceLine collection +func (r *CompanySalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoiceLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesInvoiceLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesInvoiceLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesInvoiceLine collection, max N pages +func (r *CompanySalesInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoiceLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesInvoiceLine collection +func (r *CompanySalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesInvoiceLine collection +func (r *CompanySalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesInvoices returns request builder for SalesInvoice collection +func (b *CompanyRequestBuilder) SalesInvoices() *CompanySalesInvoicesCollectionRequestBuilder { + bb := &CompanySalesInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesInvoices" + return bb +} + +// CompanySalesInvoicesCollectionRequestBuilder is request builder for SalesInvoice collection +type CompanySalesInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesInvoice collection +func (b *CompanySalesInvoicesCollectionRequestBuilder) Request() *CompanySalesInvoicesCollectionRequest { + return &CompanySalesInvoicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesInvoice item +func (b *CompanySalesInvoicesCollectionRequestBuilder) ID(id string) *SalesInvoiceRequestBuilder { + bb := &SalesInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesInvoicesCollectionRequest is request for SalesInvoice collection +type CompanySalesInvoicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesInvoice collection +func (r *CompanySalesInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesInvoice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesInvoice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesInvoice collection, max N pages +func (r *CompanySalesInvoicesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesInvoice collection +func (r *CompanySalesInvoicesCollectionRequest) Get(ctx context.Context) ([]SalesInvoice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesInvoice collection +func (r *CompanySalesInvoicesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoice) (resObj *SalesInvoice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesOrderLines returns request builder for SalesOrderLine collection +func (b *CompanyRequestBuilder) SalesOrderLines() *CompanySalesOrderLinesCollectionRequestBuilder { + bb := &CompanySalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesOrderLines" + return bb +} + +// CompanySalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection +type CompanySalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesOrderLine collection +func (b *CompanySalesOrderLinesCollectionRequestBuilder) Request() *CompanySalesOrderLinesCollectionRequest { + return &CompanySalesOrderLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesOrderLine item +func (b *CompanySalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder { + bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesOrderLinesCollectionRequest is request for SalesOrderLine collection +type CompanySalesOrderLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesOrderLine collection +func (r *CompanySalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrderLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesOrderLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesOrderLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesOrderLine collection, max N pages +func (r *CompanySalesOrderLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrderLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesOrderLine collection +func (r *CompanySalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesOrderLine collection +func (r *CompanySalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesOrders returns request builder for SalesOrder collection +func (b *CompanyRequestBuilder) SalesOrders() *CompanySalesOrdersCollectionRequestBuilder { + bb := &CompanySalesOrdersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesOrders" + return bb +} + +// CompanySalesOrdersCollectionRequestBuilder is request builder for SalesOrder collection +type CompanySalesOrdersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesOrder collection +func (b *CompanySalesOrdersCollectionRequestBuilder) Request() *CompanySalesOrdersCollectionRequest { + return &CompanySalesOrdersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesOrder item +func (b *CompanySalesOrdersCollectionRequestBuilder) ID(id string) *SalesOrderRequestBuilder { + bb := &SalesOrderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesOrdersCollectionRequest is request for SalesOrder collection +type CompanySalesOrdersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesOrder collection +func (r *CompanySalesOrdersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesOrder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesOrder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesOrder collection, max N pages +func (r *CompanySalesOrdersCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesOrder collection +func (r *CompanySalesOrdersCollectionRequest) Get(ctx context.Context) ([]SalesOrder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesOrder collection +func (r *CompanySalesOrdersCollectionRequest) Add(ctx context.Context, reqObj *SalesOrder) (resObj *SalesOrder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesQuoteLines returns request builder for SalesQuoteLine collection +func (b *CompanyRequestBuilder) SalesQuoteLines() *CompanySalesQuoteLinesCollectionRequestBuilder { + bb := &CompanySalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesQuoteLines" + return bb +} + +// CompanySalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection +type CompanySalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesQuoteLine collection +func (b *CompanySalesQuoteLinesCollectionRequestBuilder) Request() *CompanySalesQuoteLinesCollectionRequest { + return &CompanySalesQuoteLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesQuoteLine item +func (b *CompanySalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder { + bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection +type CompanySalesQuoteLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesQuoteLine collection +func (r *CompanySalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuoteLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesQuoteLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesQuoteLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesQuoteLine collection, max N pages +func (r *CompanySalesQuoteLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuoteLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesQuoteLine collection +func (r *CompanySalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesQuoteLine collection +func (r *CompanySalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SalesQuotes returns request builder for SalesQuote collection +func (b *CompanyRequestBuilder) SalesQuotes() *CompanySalesQuotesCollectionRequestBuilder { + bb := &CompanySalesQuotesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesQuotes" + return bb +} + +// CompanySalesQuotesCollectionRequestBuilder is request builder for SalesQuote collection +type CompanySalesQuotesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesQuote collection +func (b *CompanySalesQuotesCollectionRequestBuilder) Request() *CompanySalesQuotesCollectionRequest { + return &CompanySalesQuotesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesQuote item +func (b *CompanySalesQuotesCollectionRequestBuilder) ID(id string) *SalesQuoteRequestBuilder { + bb := &SalesQuoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanySalesQuotesCollectionRequest is request for SalesQuote collection +type CompanySalesQuotesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesQuote collection +func (r *CompanySalesQuotesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuote, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesQuote + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesQuote + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesQuote collection, max N pages +func (r *CompanySalesQuotesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuote, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesQuote collection +func (r *CompanySalesQuotesCollectionRequest) Get(ctx context.Context) ([]SalesQuote, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesQuote collection +func (r *CompanySalesQuotesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuote) (resObj *SalesQuote, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ShipmentMethods returns request builder for ShipmentMethod collection +func (b *CompanyRequestBuilder) ShipmentMethods() *CompanyShipmentMethodsCollectionRequestBuilder { + bb := &CompanyShipmentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shipmentMethods" + return bb +} + +// CompanyShipmentMethodsCollectionRequestBuilder is request builder for ShipmentMethod collection +type CompanyShipmentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ShipmentMethod collection +func (b *CompanyShipmentMethodsCollectionRequestBuilder) Request() *CompanyShipmentMethodsCollectionRequest { + return &CompanyShipmentMethodsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ShipmentMethod item +func (b *CompanyShipmentMethodsCollectionRequestBuilder) ID(id string) *ShipmentMethodRequestBuilder { + bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyShipmentMethodsCollectionRequest is request for ShipmentMethod collection +type CompanyShipmentMethodsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ShipmentMethod collection +func (r *CompanyShipmentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ShipmentMethod, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ShipmentMethod + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ShipmentMethod + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ShipmentMethod collection, max N pages +func (r *CompanyShipmentMethodsCollectionRequest) GetN(ctx context.Context, n int) ([]ShipmentMethod, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ShipmentMethod collection +func (r *CompanyShipmentMethodsCollectionRequest) Get(ctx context.Context) ([]ShipmentMethod, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ShipmentMethod collection +func (r *CompanyShipmentMethodsCollectionRequest) Add(ctx context.Context, reqObj *ShipmentMethod) (resObj *ShipmentMethod, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaxAreas returns request builder for TaxArea collection +func (b *CompanyRequestBuilder) TaxAreas() *CompanyTaxAreasCollectionRequestBuilder { + bb := &CompanyTaxAreasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taxAreas" + return bb +} + +// CompanyTaxAreasCollectionRequestBuilder is request builder for TaxArea collection +type CompanyTaxAreasCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TaxArea collection +func (b *CompanyTaxAreasCollectionRequestBuilder) Request() *CompanyTaxAreasCollectionRequest { + return &CompanyTaxAreasCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TaxArea item +func (b *CompanyTaxAreasCollectionRequestBuilder) ID(id string) *TaxAreaRequestBuilder { + bb := &TaxAreaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyTaxAreasCollectionRequest is request for TaxArea collection +type CompanyTaxAreasCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TaxArea collection +func (r *CompanyTaxAreasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TaxArea, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TaxArea + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TaxArea + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TaxArea collection, max N pages +func (r *CompanyTaxAreasCollectionRequest) GetN(ctx context.Context, n int) ([]TaxArea, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TaxArea collection +func (r *CompanyTaxAreasCollectionRequest) Get(ctx context.Context) ([]TaxArea, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TaxArea collection +func (r *CompanyTaxAreasCollectionRequest) Add(ctx context.Context, reqObj *TaxArea) (resObj *TaxArea, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaxGroups returns request builder for TaxGroup collection +func (b *CompanyRequestBuilder) TaxGroups() *CompanyTaxGroupsCollectionRequestBuilder { + bb := &CompanyTaxGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taxGroups" + return bb +} + +// CompanyTaxGroupsCollectionRequestBuilder is request builder for TaxGroup collection +type CompanyTaxGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TaxGroup collection +func (b *CompanyTaxGroupsCollectionRequestBuilder) Request() *CompanyTaxGroupsCollectionRequest { + return &CompanyTaxGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TaxGroup item +func (b *CompanyTaxGroupsCollectionRequestBuilder) ID(id string) *TaxGroupRequestBuilder { + bb := &TaxGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyTaxGroupsCollectionRequest is request for TaxGroup collection +type CompanyTaxGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TaxGroup collection +func (r *CompanyTaxGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TaxGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TaxGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TaxGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TaxGroup collection, max N pages +func (r *CompanyTaxGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]TaxGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TaxGroup collection +func (r *CompanyTaxGroupsCollectionRequest) Get(ctx context.Context) ([]TaxGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TaxGroup collection +func (r *CompanyTaxGroupsCollectionRequest) Add(ctx context.Context, reqObj *TaxGroup) (resObj *TaxGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UnitsOfMeasure returns request builder for UnitOfMeasure collection +func (b *CompanyRequestBuilder) UnitsOfMeasure() *CompanyUnitsOfMeasureCollectionRequestBuilder { + bb := &CompanyUnitsOfMeasureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/unitsOfMeasure" + return bb +} + +// CompanyUnitsOfMeasureCollectionRequestBuilder is request builder for UnitOfMeasure collection +type CompanyUnitsOfMeasureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UnitOfMeasure collection +func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) Request() *CompanyUnitsOfMeasureCollectionRequest { + return &CompanyUnitsOfMeasureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UnitOfMeasure item +func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) ID(id string) *UnitOfMeasureRequestBuilder { + bb := &UnitOfMeasureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyUnitsOfMeasureCollectionRequest is request for UnitOfMeasure collection +type CompanyUnitsOfMeasureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UnitOfMeasure collection +func (r *CompanyUnitsOfMeasureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnitOfMeasure, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UnitOfMeasure + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UnitOfMeasure + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UnitOfMeasure collection, max N pages +func (r *CompanyUnitsOfMeasureCollectionRequest) GetN(ctx context.Context, n int) ([]UnitOfMeasure, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UnitOfMeasure collection +func (r *CompanyUnitsOfMeasureCollectionRequest) Get(ctx context.Context) ([]UnitOfMeasure, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UnitOfMeasure collection +func (r *CompanyUnitsOfMeasureCollectionRequest) Add(ctx context.Context, reqObj *UnitOfMeasure) (resObj *UnitOfMeasure, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Vendors returns request builder for Vendor collection +func (b *CompanyRequestBuilder) Vendors() *CompanyVendorsCollectionRequestBuilder { + bb := &CompanyVendorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/vendors" + return bb +} + +// CompanyVendorsCollectionRequestBuilder is request builder for Vendor collection +type CompanyVendorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Vendor collection +func (b *CompanyVendorsCollectionRequestBuilder) Request() *CompanyVendorsCollectionRequest { + return &CompanyVendorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Vendor item +func (b *CompanyVendorsCollectionRequestBuilder) ID(id string) *VendorRequestBuilder { + bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CompanyVendorsCollectionRequest is request for Vendor collection +type CompanyVendorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Vendor collection +func (r *CompanyVendorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Vendor, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Vendor + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Vendor + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Vendor collection, max N pages +func (r *CompanyVendorsCollectionRequest) GetN(ctx context.Context, n int) ([]Vendor, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Vendor collection +func (r *CompanyVendorsCollectionRequest) Get(ctx context.Context) ([]Vendor, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Vendor collection +func (r *CompanyVendorsCollectionRequest) Add(ctx context.Context, reqObj *Vendor) (resObj *Vendor, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go new file mode 100644 index 00000000..93abd908 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go @@ -0,0 +1,216 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// NamedLocations returns request builder for NamedLocation collection +func (b *ConditionalAccessRootRequestBuilder) NamedLocations() *ConditionalAccessRootNamedLocationsCollectionRequestBuilder { + bb := &ConditionalAccessRootNamedLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/namedLocations" + return bb +} + +// ConditionalAccessRootNamedLocationsCollectionRequestBuilder is request builder for NamedLocation collection +type ConditionalAccessRootNamedLocationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for NamedLocation collection +func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) Request() *ConditionalAccessRootNamedLocationsCollectionRequest { + return &ConditionalAccessRootNamedLocationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for NamedLocation item +func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) ID(id string) *NamedLocationRequestBuilder { + bb := &NamedLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ConditionalAccessRootNamedLocationsCollectionRequest is request for NamedLocation collection +type ConditionalAccessRootNamedLocationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for NamedLocation collection +func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NamedLocation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []NamedLocation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []NamedLocation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for NamedLocation collection, max N pages +func (r *ConditionalAccessRootNamedLocationsCollectionRequest) GetN(ctx context.Context, n int) ([]NamedLocation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for NamedLocation collection +func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Get(ctx context.Context) ([]NamedLocation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for NamedLocation collection +func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Add(ctx context.Context, reqObj *NamedLocation) (resObj *NamedLocation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policies returns request builder for ConditionalAccessPolicy collection +func (b *ConditionalAccessRootRequestBuilder) Policies() *ConditionalAccessRootPoliciesCollectionRequestBuilder { + bb := &ConditionalAccessRootPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policies" + return bb +} + +// ConditionalAccessRootPoliciesCollectionRequestBuilder is request builder for ConditionalAccessPolicy collection +type ConditionalAccessRootPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConditionalAccessPolicy collection +func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) Request() *ConditionalAccessRootPoliciesCollectionRequest { + return &ConditionalAccessRootPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConditionalAccessPolicy item +func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) ID(id string) *ConditionalAccessPolicyRequestBuilder { + bb := &ConditionalAccessPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ConditionalAccessRootPoliciesCollectionRequest is request for ConditionalAccessPolicy collection +type ConditionalAccessRootPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConditionalAccessPolicy collection +func (r *ConditionalAccessRootPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConditionalAccessPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConditionalAccessPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConditionalAccessPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConditionalAccessPolicy collection, max N pages +func (r *ConditionalAccessRootPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ConditionalAccessPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConditionalAccessPolicy collection +func (r *ConditionalAccessRootPoliciesCollectionRequest) Get(ctx context.Context) ([]ConditionalAccessPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConditionalAccessPolicy collection +func (r *ConditionalAccessRootPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ConditionalAccessPolicy) (resObj *ConditionalAccessPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go new file mode 100644 index 00000000..b27a67f8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go @@ -0,0 +1,733 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Extensions returns request builder for Extension collection +func (b *ContactRequestBuilder) Extensions() *ContactExtensionsCollectionRequestBuilder { + bb := &ContactExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// ContactExtensionsCollectionRequestBuilder is request builder for Extension collection +type ContactExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *ContactExtensionsCollectionRequestBuilder) Request() *ContactExtensionsCollectionRequest { + return &ContactExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *ContactExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactExtensionsCollectionRequest is request for Extension collection +type ContactExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *ContactExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *ContactExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *ContactExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *ContactExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *ContactRequestBuilder) MultiValueExtendedProperties() *ContactMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &ContactMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// ContactMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type ContactMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactMultiValueExtendedPropertiesCollectionRequest { + return &ContactMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type ContactMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *ContactMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Photo is navigation property +func (b *ContactRequestBuilder) Photo() *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photo" + return bb +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *ContactRequestBuilder) SingleValueExtendedProperties() *ContactSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &ContactSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// ContactSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type ContactSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactSingleValueExtendedPropertiesCollectionRequest { + return &ContactSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type ContactSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *ContactSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ChildFolders returns request builder for ContactFolder collection +func (b *ContactFolderRequestBuilder) ChildFolders() *ContactFolderChildFoldersCollectionRequestBuilder { + bb := &ContactFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/childFolders" + return bb +} + +// ContactFolderChildFoldersCollectionRequestBuilder is request builder for ContactFolder collection +type ContactFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ContactFolder collection +func (b *ContactFolderChildFoldersCollectionRequestBuilder) Request() *ContactFolderChildFoldersCollectionRequest { + return &ContactFolderChildFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ContactFolder item +func (b *ContactFolderChildFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder { + bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactFolderChildFoldersCollectionRequest is request for ContactFolder collection +type ContactFolderChildFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ContactFolder collection +func (r *ContactFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContactFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ContactFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ContactFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ContactFolder collection, max N pages +func (r *ContactFolderChildFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]ContactFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ContactFolder collection +func (r *ContactFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ContactFolder collection +func (r *ContactFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Contacts returns request builder for Contact collection +func (b *ContactFolderRequestBuilder) Contacts() *ContactFolderContactsCollectionRequestBuilder { + bb := &ContactFolderContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contacts" + return bb +} + +// ContactFolderContactsCollectionRequestBuilder is request builder for Contact collection +type ContactFolderContactsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Contact collection +func (b *ContactFolderContactsCollectionRequestBuilder) Request() *ContactFolderContactsCollectionRequest { + return &ContactFolderContactsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Contact item +func (b *ContactFolderContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder { + bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactFolderContactsCollectionRequest is request for Contact collection +type ContactFolderContactsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Contact collection +func (r *ContactFolderContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contact, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Contact + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Contact + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Contact collection, max N pages +func (r *ContactFolderContactsCollectionRequest) GetN(ctx context.Context, n int) ([]Contact, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Contact collection +func (r *ContactFolderContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Contact collection +func (r *ContactFolderContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *ContactFolderRequestBuilder) MultiValueExtendedProperties() *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderMultiValueExtendedPropertiesCollectionRequest { + return &ContactFolderMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type ContactFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *ContactFolderRequestBuilder) SingleValueExtendedProperties() *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderSingleValueExtendedPropertiesCollectionRequest { + return &ContactFolderSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContactFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type ContactFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go new file mode 100644 index 00000000..9594ef8b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ColumnLinks returns request builder for ColumnLink collection +func (b *ContentTypeRequestBuilder) ColumnLinks() *ContentTypeColumnLinksCollectionRequestBuilder { + bb := &ContentTypeColumnLinksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/columnLinks" + return bb +} + +// ContentTypeColumnLinksCollectionRequestBuilder is request builder for ColumnLink collection +type ContentTypeColumnLinksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ColumnLink collection +func (b *ContentTypeColumnLinksCollectionRequestBuilder) Request() *ContentTypeColumnLinksCollectionRequest { + return &ContentTypeColumnLinksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ColumnLink item +func (b *ContentTypeColumnLinksCollectionRequestBuilder) ID(id string) *ColumnLinkRequestBuilder { + bb := &ColumnLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ContentTypeColumnLinksCollectionRequest is request for ColumnLink collection +type ContentTypeColumnLinksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ColumnLink collection +func (r *ContentTypeColumnLinksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnLink, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ColumnLink + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ColumnLink + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ColumnLink collection, max N pages +func (r *ContentTypeColumnLinksCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnLink, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ColumnLink collection +func (r *ContentTypeColumnLinksCollectionRequest) Get(ctx context.Context) ([]ColumnLink, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ColumnLink collection +func (r *ContentTypeColumnLinksCollectionRequest) Add(ctx context.Context, reqObj *ColumnLink) (resObj *ColumnLink, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go new file mode 100644 index 00000000..165761ef --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go @@ -0,0 +1,222 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ConversationThreadReplyRequestParameter undocumented +type ConversationThreadReplyRequestParameter struct { + // Post undocumented + Post *Post `json:"Post,omitempty"` +} + +// Threads returns request builder for ConversationThread collection +func (b *ConversationRequestBuilder) Threads() *ConversationThreadsCollectionRequestBuilder { + bb := &ConversationThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/threads" + return bb +} + +// ConversationThreadsCollectionRequestBuilder is request builder for ConversationThread collection +type ConversationThreadsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConversationThread collection +func (b *ConversationThreadsCollectionRequestBuilder) Request() *ConversationThreadsCollectionRequest { + return &ConversationThreadsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConversationThread item +func (b *ConversationThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder { + bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ConversationThreadsCollectionRequest is request for ConversationThread collection +type ConversationThreadsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConversationThread collection +func (r *ConversationThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationThread, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConversationThread + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConversationThread + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConversationThread collection, max N pages +func (r *ConversationThreadsCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationThread, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConversationThread collection +func (r *ConversationThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConversationThread collection +func (r *ConversationThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Posts returns request builder for Post collection +func (b *ConversationThreadRequestBuilder) Posts() *ConversationThreadPostsCollectionRequestBuilder { + bb := &ConversationThreadPostsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/posts" + return bb +} + +// ConversationThreadPostsCollectionRequestBuilder is request builder for Post collection +type ConversationThreadPostsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Post collection +func (b *ConversationThreadPostsCollectionRequestBuilder) Request() *ConversationThreadPostsCollectionRequest { + return &ConversationThreadPostsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Post item +func (b *ConversationThreadPostsCollectionRequestBuilder) ID(id string) *PostRequestBuilder { + bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ConversationThreadPostsCollectionRequest is request for Post collection +type ConversationThreadPostsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Post collection +func (r *ConversationThreadPostsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Post, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Post + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Post + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Post collection, max N pages +func (r *ConversationThreadPostsCollectionRequest) GetN(ctx context.Context, n int) ([]Post, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Post collection +func (r *ConversationThreadPostsCollectionRequest) Get(ctx context.Context) ([]Post, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Post collection +func (r *ConversationThreadPostsCollectionRequest) Add(ctx context.Context, reqObj *Post) (resObj *Post, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go new file mode 100644 index 00000000..8c323217 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go @@ -0,0 +1,258 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Currency is navigation property +func (b *CustomerRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// PaymentMethod is navigation property +func (b *CustomerRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder { + bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentMethod" + return bb +} + +// PaymentTerm is navigation property +func (b *CustomerRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// Picture returns request builder for Picture collection +func (b *CustomerRequestBuilder) Picture() *CustomerPictureCollectionRequestBuilder { + bb := &CustomerPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/picture" + return bb +} + +// CustomerPictureCollectionRequestBuilder is request builder for Picture collection +type CustomerPictureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Picture collection +func (b *CustomerPictureCollectionRequestBuilder) Request() *CustomerPictureCollectionRequest { + return &CustomerPictureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Picture item +func (b *CustomerPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder { + bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CustomerPictureCollectionRequest is request for Picture collection +type CustomerPictureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Picture collection +func (r *CustomerPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Picture + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Picture + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Picture collection, max N pages +func (r *CustomerPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Picture collection +func (r *CustomerPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Picture collection +func (r *CustomerPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ShipmentMethod is navigation property +func (b *CustomerRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder { + bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shipmentMethod" + return bb +} + +// Customer is navigation property +func (b *CustomerPaymentRequestBuilder) Customer() *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customer" + return bb +} + +// Account is navigation property +func (b *CustomerPaymentJournalRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// CustomerPayments returns request builder for CustomerPayment collection +func (b *CustomerPaymentJournalRequestBuilder) CustomerPayments() *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder { + bb := &CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customerPayments" + return bb +} + +// CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection +type CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CustomerPayment collection +func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) Request() *CustomerPaymentJournalCustomerPaymentsCollectionRequest { + return &CustomerPaymentJournalCustomerPaymentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CustomerPayment item +func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder { + bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// CustomerPaymentJournalCustomerPaymentsCollectionRequest is request for CustomerPayment collection +type CustomerPaymentJournalCustomerPaymentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CustomerPayment collection +func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPayment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CustomerPayment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CustomerPayment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CustomerPayment collection, max N pages +func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPayment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CustomerPayment collection +func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CustomerPayment collection +func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go new file mode 100644 index 00000000..567e2548 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go @@ -0,0 +1,1250 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DataLossPreventionPolicyCollectionEvaluateRequestParameter undocumented +type DataLossPreventionPolicyCollectionEvaluateRequestParameter struct { + // Target undocumented + Target *string `json:"target,omitempty"` + // EvaluationInput undocumented + EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"` + // NotificationInfo undocumented + NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"` +} + +// DataSharingConsentConsentToDataSharingRequestParameter undocumented +type DataSharingConsentConsentToDataSharingRequestParameter struct { +} + +// ClassifyFile returns request builder for FileClassificationRequestObject collection +func (b *DataClassificationServiceRequestBuilder) ClassifyFile() *DataClassificationServiceClassifyFileCollectionRequestBuilder { + bb := &DataClassificationServiceClassifyFileCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classifyFile" + return bb +} + +// DataClassificationServiceClassifyFileCollectionRequestBuilder is request builder for FileClassificationRequestObject collection +type DataClassificationServiceClassifyFileCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for FileClassificationRequestObject collection +func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileCollectionRequest { + return &DataClassificationServiceClassifyFileCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for FileClassificationRequestObject item +func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) ID(id string) *FileClassificationRequestObjectRequestBuilder { + bb := &FileClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceClassifyFileCollectionRequest is request for FileClassificationRequestObject collection +type DataClassificationServiceClassifyFileCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for FileClassificationRequestObject collection +func (r *DataClassificationServiceClassifyFileCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FileClassificationRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []FileClassificationRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []FileClassificationRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for FileClassificationRequestObject collection, max N pages +func (r *DataClassificationServiceClassifyFileCollectionRequest) GetN(ctx context.Context, n int) ([]FileClassificationRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for FileClassificationRequestObject collection +func (r *DataClassificationServiceClassifyFileCollectionRequest) Get(ctx context.Context) ([]FileClassificationRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for FileClassificationRequestObject collection +func (r *DataClassificationServiceClassifyFileCollectionRequest) Add(ctx context.Context, reqObj *FileClassificationRequestObject) (resObj *FileClassificationRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ClassifyFileJobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) ClassifyFileJobs() *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder { + bb := &DataClassificationServiceClassifyFileJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classifyFileJobs" + return bb +} + +// DataClassificationServiceClassifyFileJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceClassifyFileJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileJobsCollectionRequest { + return &DataClassificationServiceClassifyFileJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceClassifyFileJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceClassifyFileJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ClassifyText returns request builder for TextClassificationRequestObject collection +func (b *DataClassificationServiceRequestBuilder) ClassifyText() *DataClassificationServiceClassifyTextCollectionRequestBuilder { + bb := &DataClassificationServiceClassifyTextCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classifyText" + return bb +} + +// DataClassificationServiceClassifyTextCollectionRequestBuilder is request builder for TextClassificationRequestObject collection +type DataClassificationServiceClassifyTextCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TextClassificationRequestObject collection +func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextCollectionRequest { + return &DataClassificationServiceClassifyTextCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TextClassificationRequestObject item +func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) ID(id string) *TextClassificationRequestObjectRequestBuilder { + bb := &TextClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceClassifyTextCollectionRequest is request for TextClassificationRequestObject collection +type DataClassificationServiceClassifyTextCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TextClassificationRequestObject collection +func (r *DataClassificationServiceClassifyTextCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TextClassificationRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TextClassificationRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TextClassificationRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TextClassificationRequestObject collection, max N pages +func (r *DataClassificationServiceClassifyTextCollectionRequest) GetN(ctx context.Context, n int) ([]TextClassificationRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TextClassificationRequestObject collection +func (r *DataClassificationServiceClassifyTextCollectionRequest) Get(ctx context.Context) ([]TextClassificationRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TextClassificationRequestObject collection +func (r *DataClassificationServiceClassifyTextCollectionRequest) Add(ctx context.Context, reqObj *TextClassificationRequestObject) (resObj *TextClassificationRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ClassifyTextJobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) ClassifyTextJobs() *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder { + bb := &DataClassificationServiceClassifyTextJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classifyTextJobs" + return bb +} + +// DataClassificationServiceClassifyTextJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceClassifyTextJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextJobsCollectionRequest { + return &DataClassificationServiceClassifyTextJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceClassifyTextJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceClassifyTextJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EvaluateDlpPoliciesJobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) EvaluateDlpPoliciesJobs() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder { + bb := &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/evaluateDlpPoliciesJobs" + return bb +} + +// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest { + return &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EvaluateLabelJobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) EvaluateLabelJobs() *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder { + bb := &DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/evaluateLabelJobs" + return bb +} + +// DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateLabelJobsCollectionRequest { + return &DataClassificationServiceEvaluateLabelJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceEvaluateLabelJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceEvaluateLabelJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExactMatchDataStores returns request builder for ExactMatchDataStore collection +func (b *DataClassificationServiceRequestBuilder) ExactMatchDataStores() *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder { + bb := &DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exactMatchDataStores" + return bb +} + +// DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder is request builder for ExactMatchDataStore collection +type DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExactMatchDataStore collection +func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchDataStoresCollectionRequest { + return &DataClassificationServiceExactMatchDataStoresCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExactMatchDataStore item +func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) ID(id string) *ExactMatchDataStoreRequestBuilder { + bb := &ExactMatchDataStoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceExactMatchDataStoresCollectionRequest is request for ExactMatchDataStore collection +type DataClassificationServiceExactMatchDataStoresCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExactMatchDataStore collection +func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchDataStore, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExactMatchDataStore + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExactMatchDataStore + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExactMatchDataStore collection, max N pages +func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchDataStore, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExactMatchDataStore collection +func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Get(ctx context.Context) ([]ExactMatchDataStore, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExactMatchDataStore collection +func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchDataStore) (resObj *ExactMatchDataStore, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExactMatchUploadAgents returns request builder for ExactMatchUploadAgent collection +func (b *DataClassificationServiceRequestBuilder) ExactMatchUploadAgents() *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder { + bb := &DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exactMatchUploadAgents" + return bb +} + +// DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder is request builder for ExactMatchUploadAgent collection +type DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExactMatchUploadAgent collection +func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchUploadAgentsCollectionRequest { + return &DataClassificationServiceExactMatchUploadAgentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExactMatchUploadAgent item +func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) ID(id string) *ExactMatchUploadAgentRequestBuilder { + bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceExactMatchUploadAgentsCollectionRequest is request for ExactMatchUploadAgent collection +type DataClassificationServiceExactMatchUploadAgentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExactMatchUploadAgent collection +func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchUploadAgent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExactMatchUploadAgent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExactMatchUploadAgent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExactMatchUploadAgent collection, max N pages +func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchUploadAgent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExactMatchUploadAgent collection +func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Get(ctx context.Context) ([]ExactMatchUploadAgent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExactMatchUploadAgent collection +func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchUploadAgent) (resObj *ExactMatchUploadAgent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Jobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) Jobs() *DataClassificationServiceJobsCollectionRequestBuilder { + bb := &DataClassificationServiceJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/jobs" + return bb +} + +// DataClassificationServiceJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceJobsCollectionRequestBuilder) Request() *DataClassificationServiceJobsCollectionRequest { + return &DataClassificationServiceJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LabelsAndPoliciesEvaluationJobs returns request builder for JobResponseBase collection +func (b *DataClassificationServiceRequestBuilder) LabelsAndPoliciesEvaluationJobs() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder { + bb := &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/labelsAndPoliciesEvaluationJobs" + return bb +} + +// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder is request builder for JobResponseBase collection +type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JobResponseBase collection +func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) Request() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest { + return &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JobResponseBase item +func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder { + bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest is request for JobResponseBase collection +type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JobResponseBase collection +func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JobResponseBase + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JobResponseBase + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JobResponseBase collection, max N pages +func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JobResponseBase collection +func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JobResponseBase collection +func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SensitiveTypes returns request builder for SensitiveType collection +func (b *DataClassificationServiceRequestBuilder) SensitiveTypes() *DataClassificationServiceSensitiveTypesCollectionRequestBuilder { + bb := &DataClassificationServiceSensitiveTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sensitiveTypes" + return bb +} + +// DataClassificationServiceSensitiveTypesCollectionRequestBuilder is request builder for SensitiveType collection +type DataClassificationServiceSensitiveTypesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SensitiveType collection +func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) Request() *DataClassificationServiceSensitiveTypesCollectionRequest { + return &DataClassificationServiceSensitiveTypesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SensitiveType item +func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) ID(id string) *SensitiveTypeRequestBuilder { + bb := &SensitiveTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceSensitiveTypesCollectionRequest is request for SensitiveType collection +type DataClassificationServiceSensitiveTypesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SensitiveType collection +func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitiveType, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SensitiveType + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SensitiveType + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SensitiveType collection, max N pages +func (r *DataClassificationServiceSensitiveTypesCollectionRequest) GetN(ctx context.Context, n int) ([]SensitiveType, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SensitiveType collection +func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Get(ctx context.Context) ([]SensitiveType, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SensitiveType collection +func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Add(ctx context.Context, reqObj *SensitiveType) (resObj *SensitiveType, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SensitivityLabels returns request builder for SensitivityLabel collection +func (b *DataClassificationServiceRequestBuilder) SensitivityLabels() *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder { + bb := &DataClassificationServiceSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sensitivityLabels" + return bb +} + +// DataClassificationServiceSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection +type DataClassificationServiceSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SensitivityLabel collection +func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Request() *DataClassificationServiceSensitivityLabelsCollectionRequest { + return &DataClassificationServiceSensitivityLabelsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SensitivityLabel item +func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder { + bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DataClassificationServiceSensitivityLabelsCollectionRequest is request for SensitivityLabel collection +type DataClassificationServiceSensitivityLabelsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SensitivityLabel collection +func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SensitivityLabel + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SensitivityLabel + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SensitivityLabel collection, max N pages +func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SensitivityLabel collection +func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SensitivityLabel collection +func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go new file mode 100644 index 00000000..3ce9f092 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Apps returns request builder for ManagedMobileApp collection +func (b *DefaultManagedAppProtectionRequestBuilder) Apps() *DefaultManagedAppProtectionAppsCollectionRequestBuilder { + bb := &DefaultManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/apps" + return bb +} + +// DefaultManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection +type DefaultManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedMobileApp collection +func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) Request() *DefaultManagedAppProtectionAppsCollectionRequest { + return &DefaultManagedAppProtectionAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedMobileApp item +func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder { + bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DefaultManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection +type DefaultManagedAppProtectionAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedMobileApp collection +func (r *DefaultManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedMobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedMobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedMobileApp collection, max N pages +func (r *DefaultManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedMobileApp collection +func (r *DefaultManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedMobileApp collection +func (r *DefaultManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploymentSummary is navigation property +func (b *DefaultManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder { + bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploymentSummary" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go new file mode 100644 index 00000000..eb3613df --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go @@ -0,0 +1,250 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DepOnboardingSettingUploadDepTokenRequestParameter undocumented +type DepOnboardingSettingUploadDepTokenRequestParameter struct { + // AppleID undocumented + AppleID *string `json:"appleId,omitempty"` + // DepToken undocumented + DepToken *string `json:"depToken,omitempty"` +} + +// DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter undocumented +type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter struct { +} + +// DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter undocumented +type DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter struct { +} + +// DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter undocumented +type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter struct { +} + +// DefaultIOSEnrollmentProfile is navigation property +func (b *DepOnboardingSettingRequestBuilder) DefaultIOSEnrollmentProfile() *DepIOSEnrollmentProfileRequestBuilder { + bb := &DepIOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/defaultIosEnrollmentProfile" + return bb +} + +// DefaultMacOsEnrollmentProfile is navigation property +func (b *DepOnboardingSettingRequestBuilder) DefaultMacOsEnrollmentProfile() *DepMacOSEnrollmentProfileRequestBuilder { + bb := &DepMacOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/defaultMacOsEnrollmentProfile" + return bb +} + +// EnrollmentProfiles returns request builder for EnrollmentProfile collection +func (b *DepOnboardingSettingRequestBuilder) EnrollmentProfiles() *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder { + bb := &DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/enrollmentProfiles" + return bb +} + +// DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder is request builder for EnrollmentProfile collection +type DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EnrollmentProfile collection +func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) Request() *DepOnboardingSettingEnrollmentProfilesCollectionRequest { + return &DepOnboardingSettingEnrollmentProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EnrollmentProfile item +func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) ID(id string) *EnrollmentProfileRequestBuilder { + bb := &EnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DepOnboardingSettingEnrollmentProfilesCollectionRequest is request for EnrollmentProfile collection +type DepOnboardingSettingEnrollmentProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EnrollmentProfile collection +func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnrollmentProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EnrollmentProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EnrollmentProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EnrollmentProfile collection, max N pages +func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]EnrollmentProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EnrollmentProfile collection +func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]EnrollmentProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EnrollmentProfile collection +func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentProfile) (resObj *EnrollmentProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ImportedAppleDeviceIdentities returns request builder for ImportedAppleDeviceIdentity collection +func (b *DepOnboardingSettingRequestBuilder) ImportedAppleDeviceIdentities() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder { + bb := &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/importedAppleDeviceIdentities" + return bb +} + +// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedAppleDeviceIdentity collection +type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ImportedAppleDeviceIdentity collection +func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) Request() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest { + return &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ImportedAppleDeviceIdentity item +func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedAppleDeviceIdentityRequestBuilder { + bb := &ImportedAppleDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest is request for ImportedAppleDeviceIdentity collection +type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ImportedAppleDeviceIdentity collection +func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedAppleDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedAppleDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedAppleDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ImportedAppleDeviceIdentity collection, max N pages +func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedAppleDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ImportedAppleDeviceIdentity collection +func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedAppleDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ImportedAppleDeviceIdentity collection +func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) (resObj *ImportedAppleDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go new file mode 100644 index 00000000..c5761737 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ManagedDevices returns request builder for ManagedDevice collection +func (b *DetectedAppRequestBuilder) ManagedDevices() *DetectedAppManagedDevicesCollectionRequestBuilder { + bb := &DetectedAppManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevices" + return bb +} + +// DetectedAppManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection +type DetectedAppManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDevice collection +func (b *DetectedAppManagedDevicesCollectionRequestBuilder) Request() *DetectedAppManagedDevicesCollectionRequest { + return &DetectedAppManagedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDevice item +func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder { + bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DetectedAppManagedDevicesCollectionRequest is request for ManagedDevice collection +type DetectedAppManagedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDevice collection +func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDevice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDevice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDevice collection, max N pages +func (r *DetectedAppManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDevice collection +func (r *DetectedAppManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDevice collection +func (r *DetectedAppManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go new file mode 100644 index 00000000..83454394 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go @@ -0,0 +1,14358 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter undocumented +type DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter undocumented +type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter struct { +} + +// DeviceConfigurationCollectionHasPayloadLinksRequestParameter undocumented +type DeviceConfigurationCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter undocumented +type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter struct { + // DeviceConfigurationIDs undocumented + DeviceConfigurationIDs []string `json:"deviceConfigurationIds,omitempty"` +} + +// DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter undocumented +type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// DeviceManagementScriptCollectionHasPayloadLinksRequestParameter undocumented +type DeviceManagementScriptCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter undocumented +type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter struct { +} + +// DeviceAppManagementTaskUpdateStatusRequestParameter undocumented +type DeviceAppManagementTaskUpdateStatusRequestParameter struct { + // Status undocumented + Status *DeviceAppManagementTaskStatus `json:"status,omitempty"` + // Note undocumented + Note *string `json:"note,omitempty"` +} + +// DeviceCompliancePolicyAssignRequestParameter undocumented +type DeviceCompliancePolicyAssignRequestParameter struct { + // Assignments undocumented + Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"` +} + +// DeviceCompliancePolicyScheduleActionsForRulesRequestParameter undocumented +type DeviceCompliancePolicyScheduleActionsForRulesRequestParameter struct { + // DeviceComplianceScheduledActionForRules undocumented + DeviceComplianceScheduledActionForRules []DeviceComplianceScheduledActionForRule `json:"deviceComplianceScheduledActionForRules,omitempty"` +} + +// DeviceConfigurationAssignRequestParameter undocumented +type DeviceConfigurationAssignRequestParameter struct { + // DeviceConfigurationGroupAssignments undocumented + DeviceConfigurationGroupAssignments []DeviceConfigurationGroupAssignment `json:"deviceConfigurationGroupAssignments,omitempty"` + // Assignments undocumented + Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"` +} + +// DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter undocumented +type DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter struct { + // WindowsPrivacyAccessControls undocumented + WindowsPrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"windowsPrivacyAccessControls,omitempty"` +} + +// DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter undocumented +type DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter struct { + // AssignedAccessMultiModeProfiles undocumented + AssignedAccessMultiModeProfiles []WindowsAssignedAccessProfile `json:"assignedAccessMultiModeProfiles,omitempty"` +} + +// DeviceEnrollmentConfigurationSetPriorityRequestParameter undocumented +type DeviceEnrollmentConfigurationSetPriorityRequestParameter struct { + // Priority undocumented + Priority *int `json:"priority,omitempty"` +} + +// DeviceEnrollmentConfigurationAssignRequestParameter undocumented +type DeviceEnrollmentConfigurationAssignRequestParameter struct { + // EnrollmentConfigurationAssignments undocumented + EnrollmentConfigurationAssignments []EnrollmentConfigurationAssignment `json:"enrollmentConfigurationAssignments,omitempty"` +} + +// DeviceHealthScriptAssignRequestParameter undocumented +type DeviceHealthScriptAssignRequestParameter struct { + // DeviceHealthScriptAssignments undocumented + DeviceHealthScriptAssignments []DeviceHealthScriptAssignment `json:"deviceHealthScriptAssignments,omitempty"` +} + +// DeviceManagementEnableLegacyPcManagementRequestParameter undocumented +type DeviceManagementEnableLegacyPcManagementRequestParameter struct { +} + +// DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter undocumented +type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter struct { +} + +// DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter undocumented +type DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter struct { + // NotificationTitle undocumented + NotificationTitle *string `json:"notificationTitle,omitempty"` + // NotificationBody undocumented + NotificationBody *string `json:"notificationBody,omitempty"` + // GroupsToNotify undocumented + GroupsToNotify []string `json:"groupsToNotify,omitempty"` +} + +// DeviceManagementExchangeConnectorSyncRequestParameter undocumented +type DeviceManagementExchangeConnectorSyncRequestParameter struct { + // SyncType undocumented + SyncType *DeviceManagementExchangeConnectorSyncType `json:"syncType,omitempty"` +} + +// DeviceManagementIntentUpdateSettingsRequestParameter undocumented +type DeviceManagementIntentUpdateSettingsRequestParameter struct { + // Settings undocumented + Settings []DeviceManagementSettingInstance `json:"settings,omitempty"` +} + +// DeviceManagementIntentMigrateToTemplateRequestParameter undocumented +type DeviceManagementIntentMigrateToTemplateRequestParameter struct { + // NewTemplateID undocumented + NewTemplateID *string `json:"newTemplateId,omitempty"` + // PreserveCustomValues undocumented + PreserveCustomValues *bool `json:"preserveCustomValues,omitempty"` +} + +// DeviceManagementIntentAssignRequestParameter undocumented +type DeviceManagementIntentAssignRequestParameter struct { + // Assignments undocumented + Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"` +} + +// DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter undocumented +type DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Select undocumented + Select []string `json:"select,omitempty"` + // Search undocumented + Search *string `json:"search,omitempty"` + // GroupBy undocumented + GroupBy []string `json:"groupBy,omitempty"` + // OrderBy undocumented + OrderBy []string `json:"orderBy,omitempty"` + // Skip undocumented + Skip *int `json:"skip,omitempty"` + // Top undocumented + Top *int `json:"top,omitempty"` + // SessionID undocumented + SessionID *string `json:"sessionId,omitempty"` + // Filter undocumented + Filter *string `json:"filter,omitempty"` +} + +// DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter undocumented +type DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Select undocumented + Select []string `json:"select,omitempty"` + // Search undocumented + Search *string `json:"search,omitempty"` + // GroupBy undocumented + GroupBy []string `json:"groupBy,omitempty"` + // OrderBy undocumented + OrderBy []string `json:"orderBy,omitempty"` + // Skip undocumented + Skip *int `json:"skip,omitempty"` + // Top undocumented + Top *int `json:"top,omitempty"` + // SessionID undocumented + SessionID *string `json:"sessionId,omitempty"` + // Filter undocumented + Filter *string `json:"filter,omitempty"` +} + +// DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter undocumented +type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Select undocumented + Select []string `json:"select,omitempty"` + // Search undocumented + Search *string `json:"search,omitempty"` + // GroupBy undocumented + GroupBy []string `json:"groupBy,omitempty"` + // OrderBy undocumented + OrderBy []string `json:"orderBy,omitempty"` + // Skip undocumented + Skip *int `json:"skip,omitempty"` + // Top undocumented + Top *int `json:"top,omitempty"` + // SessionID undocumented + SessionID *string `json:"sessionId,omitempty"` + // Filter undocumented + Filter *string `json:"filter,omitempty"` +} + +// DeviceManagementReportsGetHistoricalReportRequestParameter undocumented +type DeviceManagementReportsGetHistoricalReportRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Select undocumented + Select []string `json:"select,omitempty"` + // Search undocumented + Search *string `json:"search,omitempty"` + // GroupBy undocumented + GroupBy []string `json:"groupBy,omitempty"` + // OrderBy undocumented + OrderBy []string `json:"orderBy,omitempty"` + // Skip undocumented + Skip *int `json:"skip,omitempty"` + // Top undocumented + Top *int `json:"top,omitempty"` + // Filter undocumented + Filter *string `json:"filter,omitempty"` +} + +// DeviceManagementReportsGetCachedReportRequestParameter undocumented +type DeviceManagementReportsGetCachedReportRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // Select undocumented + Select []string `json:"select,omitempty"` + // Search undocumented + Search *string `json:"search,omitempty"` + // GroupBy undocumented + GroupBy []string `json:"groupBy,omitempty"` + // OrderBy undocumented + OrderBy []string `json:"orderBy,omitempty"` + // Skip undocumented + Skip *int `json:"skip,omitempty"` + // Top undocumented + Top *int `json:"top,omitempty"` +} + +// DeviceManagementScriptAssignRequestParameter undocumented +type DeviceManagementScriptAssignRequestParameter struct { + // DeviceManagementScriptGroupAssignments undocumented + DeviceManagementScriptGroupAssignments []DeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"` + // DeviceManagementScriptAssignments undocumented + DeviceManagementScriptAssignments []DeviceManagementScriptAssignment `json:"deviceManagementScriptAssignments,omitempty"` +} + +// DeviceManagementTemplateCreateInstanceRequestParameter undocumented +type DeviceManagementTemplateCreateInstanceRequestParameter struct { + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // SettingsDelta undocumented + SettingsDelta []DeviceManagementSettingInstance `json:"settingsDelta,omitempty"` + // RoleScopeTagIDs undocumented + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// Commands returns request builder for Command collection +func (b *DeviceRequestBuilder) Commands() *DeviceCommandsCollectionRequestBuilder { + bb := &DeviceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/commands" + return bb +} + +// DeviceCommandsCollectionRequestBuilder is request builder for Command collection +type DeviceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Command collection +func (b *DeviceCommandsCollectionRequestBuilder) Request() *DeviceCommandsCollectionRequest { + return &DeviceCommandsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Command item +func (b *DeviceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder { + bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCommandsCollectionRequest is request for Command collection +type DeviceCommandsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Command collection +func (r *DeviceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Command, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Command + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Command + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Command collection, max N pages +func (r *DeviceCommandsCollectionRequest) GetN(ctx context.Context, n int) ([]Command, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Command collection +func (r *DeviceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Command collection +func (r *DeviceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *DeviceRequestBuilder) Extensions() *DeviceExtensionsCollectionRequestBuilder { + bb := &DeviceExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// DeviceExtensionsCollectionRequestBuilder is request builder for Extension collection +type DeviceExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *DeviceExtensionsCollectionRequestBuilder) Request() *DeviceExtensionsCollectionRequest { + return &DeviceExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *DeviceExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceExtensionsCollectionRequest is request for Extension collection +type DeviceExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *DeviceExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *DeviceExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *DeviceExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *DeviceExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MemberOf returns request builder for DirectoryObject collection +func (b *DeviceRequestBuilder) MemberOf() *DeviceMemberOfCollectionRequestBuilder { + bb := &DeviceMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/memberOf" + return bb +} + +// DeviceMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type DeviceMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DeviceMemberOfCollectionRequestBuilder) Request() *DeviceMemberOfCollectionRequest { + return &DeviceMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DeviceMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceMemberOfCollectionRequest is request for DirectoryObject collection +type DeviceMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DeviceMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DeviceMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DeviceMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DeviceMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RegisteredOwners returns request builder for DirectoryObject collection +func (b *DeviceRequestBuilder) RegisteredOwners() *DeviceRegisteredOwnersCollectionRequestBuilder { + bb := &DeviceRegisteredOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/registeredOwners" + return bb +} + +// DeviceRegisteredOwnersCollectionRequestBuilder is request builder for DirectoryObject collection +type DeviceRegisteredOwnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DeviceRegisteredOwnersCollectionRequestBuilder) Request() *DeviceRegisteredOwnersCollectionRequest { + return &DeviceRegisteredOwnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceRegisteredOwnersCollectionRequest is request for DirectoryObject collection +type DeviceRegisteredOwnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DeviceRegisteredOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DeviceRegisteredOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DeviceRegisteredOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DeviceRegisteredOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RegisteredUsers returns request builder for DirectoryObject collection +func (b *DeviceRequestBuilder) RegisteredUsers() *DeviceRegisteredUsersCollectionRequestBuilder { + bb := &DeviceRegisteredUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/registeredUsers" + return bb +} + +// DeviceRegisteredUsersCollectionRequestBuilder is request builder for DirectoryObject collection +type DeviceRegisteredUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DeviceRegisteredUsersCollectionRequestBuilder) Request() *DeviceRegisteredUsersCollectionRequest { + return &DeviceRegisteredUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DeviceRegisteredUsersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceRegisteredUsersCollectionRequest is request for DirectoryObject collection +type DeviceRegisteredUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DeviceRegisteredUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DeviceRegisteredUsersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DeviceRegisteredUsersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DeviceRegisteredUsersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TransitiveMemberOf returns request builder for DirectoryObject collection +func (b *DeviceRequestBuilder) TransitiveMemberOf() *DeviceTransitiveMemberOfCollectionRequestBuilder { + bb := &DeviceTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMemberOf" + return bb +} + +// DeviceTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type DeviceTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) Request() *DeviceTransitiveMemberOfCollectionRequest { + return &DeviceTransitiveMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceTransitiveMemberOfCollectionRequest is request for DirectoryObject collection +type DeviceTransitiveMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DeviceTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DeviceTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DeviceTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DeviceTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleScopeTags returns request builder for RoleScopeTag collection +func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) RoleScopeTags() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder { + bb := &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleScopeTags" + return bb +} + +// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection +type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RoleScopeTag collection +func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest { + return &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RoleScopeTag item +func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder { + bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest is request for RoleScopeTag collection +type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RoleScopeTag collection +func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleScopeTag + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleScopeTag + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RoleScopeTag collection, max N pages +func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTag, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RoleScopeTag collection +func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RoleScopeTag collection +func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AndroidManagedAppProtections returns request builder for AndroidManagedAppProtection collection +func (b *DeviceAppManagementRequestBuilder) AndroidManagedAppProtections() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder { + bb := &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidManagedAppProtections" + return bb +} + +// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder is request builder for AndroidManagedAppProtection collection +type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AndroidManagedAppProtection collection +func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest { + return &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AndroidManagedAppProtection item +func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) ID(id string) *AndroidManagedAppProtectionRequestBuilder { + bb := &AndroidManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest is request for AndroidManagedAppProtection collection +type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AndroidManagedAppProtection collection +func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidManagedAppProtection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AndroidManagedAppProtection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AndroidManagedAppProtection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AndroidManagedAppProtection collection, max N pages +func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidManagedAppProtection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AndroidManagedAppProtection collection +func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]AndroidManagedAppProtection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AndroidManagedAppProtection collection +func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedAppProtection) (resObj *AndroidManagedAppProtection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DefaultManagedAppProtections returns request builder for DefaultManagedAppProtection collection +func (b *DeviceAppManagementRequestBuilder) DefaultManagedAppProtections() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder { + bb := &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/defaultManagedAppProtections" + return bb +} + +// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder is request builder for DefaultManagedAppProtection collection +type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DefaultManagedAppProtection collection +func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest { + return &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DefaultManagedAppProtection item +func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) ID(id string) *DefaultManagedAppProtectionRequestBuilder { + bb := &DefaultManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest is request for DefaultManagedAppProtection collection +type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DefaultManagedAppProtection collection +func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DefaultManagedAppProtection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DefaultManagedAppProtection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DefaultManagedAppProtection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DefaultManagedAppProtection collection, max N pages +func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]DefaultManagedAppProtection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DefaultManagedAppProtection collection +func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]DefaultManagedAppProtection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DefaultManagedAppProtection collection +func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *DefaultManagedAppProtection) (resObj *DefaultManagedAppProtection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceAppManagementTasks returns request builder for DeviceAppManagementTask collection +func (b *DeviceAppManagementRequestBuilder) DeviceAppManagementTasks() *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder { + bb := &DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceAppManagementTasks" + return bb +} + +// DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder is request builder for DeviceAppManagementTask collection +type DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceAppManagementTask collection +func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) Request() *DeviceAppManagementDeviceAppManagementTasksCollectionRequest { + return &DeviceAppManagementDeviceAppManagementTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceAppManagementTask item +func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) ID(id string) *DeviceAppManagementTaskRequestBuilder { + bb := &DeviceAppManagementTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementDeviceAppManagementTasksCollectionRequest is request for DeviceAppManagementTask collection +type DeviceAppManagementDeviceAppManagementTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceAppManagementTask collection +func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceAppManagementTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceAppManagementTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceAppManagementTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceAppManagementTask collection, max N pages +func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceAppManagementTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceAppManagementTask collection +func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Get(ctx context.Context) ([]DeviceAppManagementTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceAppManagementTask collection +func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Add(ctx context.Context, reqObj *DeviceAppManagementTask) (resObj *DeviceAppManagementTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EnterpriseCodeSigningCertificates returns request builder for EnterpriseCodeSigningCertificate collection +func (b *DeviceAppManagementRequestBuilder) EnterpriseCodeSigningCertificates() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder { + bb := &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/enterpriseCodeSigningCertificates" + return bb +} + +// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder is request builder for EnterpriseCodeSigningCertificate collection +type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EnterpriseCodeSigningCertificate collection +func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) Request() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest { + return &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EnterpriseCodeSigningCertificate item +func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) ID(id string) *EnterpriseCodeSigningCertificateRequestBuilder { + bb := &EnterpriseCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest is request for EnterpriseCodeSigningCertificate collection +type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EnterpriseCodeSigningCertificate collection +func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnterpriseCodeSigningCertificate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EnterpriseCodeSigningCertificate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EnterpriseCodeSigningCertificate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EnterpriseCodeSigningCertificate collection, max N pages +func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) GetN(ctx context.Context, n int) ([]EnterpriseCodeSigningCertificate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EnterpriseCodeSigningCertificate collection +func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Get(ctx context.Context) ([]EnterpriseCodeSigningCertificate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EnterpriseCodeSigningCertificate collection +func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Add(ctx context.Context, reqObj *EnterpriseCodeSigningCertificate) (resObj *EnterpriseCodeSigningCertificate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IOSLobAppProvisioningConfigurations returns request builder for IOSLobAppProvisioningConfiguration collection +func (b *DeviceAppManagementRequestBuilder) IOSLobAppProvisioningConfigurations() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder { + bb := &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/iosLobAppProvisioningConfigurations" + return bb +} + +// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfiguration collection +type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSLobAppProvisioningConfiguration collection +func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest { + return &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSLobAppProvisioningConfiguration item +func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest is request for IOSLobAppProvisioningConfiguration collection +type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSLobAppProvisioningConfiguration collection +func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSLobAppProvisioningConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSLobAppProvisioningConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSLobAppProvisioningConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSLobAppProvisioningConfiguration collection, max N pages +func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSLobAppProvisioningConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSLobAppProvisioningConfiguration collection +func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSLobAppProvisioningConfiguration collection +func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) (resObj *IOSLobAppProvisioningConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IOSManagedAppProtections returns request builder for IOSManagedAppProtection collection +func (b *DeviceAppManagementRequestBuilder) IOSManagedAppProtections() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder { + bb := &DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/iosManagedAppProtections" + return bb +} + +// DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder is request builder for IOSManagedAppProtection collection +type DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSManagedAppProtection collection +func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest { + return &DeviceAppManagementIOSManagedAppProtectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSManagedAppProtection item +func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) ID(id string) *IOSManagedAppProtectionRequestBuilder { + bb := &IOSManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementIOSManagedAppProtectionsCollectionRequest is request for IOSManagedAppProtection collection +type DeviceAppManagementIOSManagedAppProtectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSManagedAppProtection collection +func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSManagedAppProtection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSManagedAppProtection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSManagedAppProtection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSManagedAppProtection collection, max N pages +func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSManagedAppProtection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSManagedAppProtection collection +func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]IOSManagedAppProtection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSManagedAppProtection collection +func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *IOSManagedAppProtection) (resObj *IOSManagedAppProtection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedAppPolicies returns request builder for ManagedAppPolicy collection +func (b *DeviceAppManagementRequestBuilder) ManagedAppPolicies() *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder { + bb := &DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedAppPolicies" + return bb +} + +// DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection +type DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppPolicy collection +func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppPoliciesCollectionRequest { + return &DeviceAppManagementManagedAppPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppPolicy item +func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder { + bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementManagedAppPoliciesCollectionRequest is request for ManagedAppPolicy collection +type DeviceAppManagementManagedAppPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppPolicy collection +func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppPolicy collection, max N pages +func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppPolicy collection +func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppPolicy collection +func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection +func (b *DeviceAppManagementRequestBuilder) ManagedAppRegistrations() *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder { + bb := &DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedAppRegistrations" + return bb +} + +// DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection +type DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppRegistration collection +func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppRegistrationsCollectionRequest { + return &DeviceAppManagementManagedAppRegistrationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppRegistration item +func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder { + bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection +type DeviceAppManagementManagedAppRegistrationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppRegistration collection +func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppRegistration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppRegistration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppRegistration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppRegistration collection, max N pages +func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppRegistration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppRegistration collection +func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppRegistration collection +func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedAppStatuses returns request builder for ManagedAppStatus collection +func (b *DeviceAppManagementRequestBuilder) ManagedAppStatuses() *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder { + bb := &DeviceAppManagementManagedAppStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedAppStatuses" + return bb +} + +// DeviceAppManagementManagedAppStatusesCollectionRequestBuilder is request builder for ManagedAppStatus collection +type DeviceAppManagementManagedAppStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppStatus collection +func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppStatusesCollectionRequest { + return &DeviceAppManagementManagedAppStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppStatus item +func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) ID(id string) *ManagedAppStatusRequestBuilder { + bb := &ManagedAppStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementManagedAppStatusesCollectionRequest is request for ManagedAppStatus collection +type DeviceAppManagementManagedAppStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppStatus collection +func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppStatus collection, max N pages +func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppStatus collection +func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedAppStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppStatus collection +func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppStatus) (resObj *ManagedAppStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedEBookCategories returns request builder for ManagedEBookCategory collection +func (b *DeviceAppManagementRequestBuilder) ManagedEBookCategories() *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder { + bb := &DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedEBookCategories" + return bb +} + +// DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection +type DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedEBookCategory collection +func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBookCategoriesCollectionRequest { + return &DeviceAppManagementManagedEBookCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedEBookCategory item +func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder { + bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection +type DeviceAppManagementManagedEBookCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedEBookCategory collection +func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedEBookCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedEBookCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedEBookCategory collection, max N pages +func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedEBookCategory collection +func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedEBookCategory collection +func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedEBooks returns request builder for ManagedEBook collection +func (b *DeviceAppManagementRequestBuilder) ManagedEBooks() *DeviceAppManagementManagedEBooksCollectionRequestBuilder { + bb := &DeviceAppManagementManagedEBooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedEBooks" + return bb +} + +// DeviceAppManagementManagedEBooksCollectionRequestBuilder is request builder for ManagedEBook collection +type DeviceAppManagementManagedEBooksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedEBook collection +func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBooksCollectionRequest { + return &DeviceAppManagementManagedEBooksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedEBook item +func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) ID(id string) *ManagedEBookRequestBuilder { + bb := &ManagedEBookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementManagedEBooksCollectionRequest is request for ManagedEBook collection +type DeviceAppManagementManagedEBooksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedEBook collection +func (r *DeviceAppManagementManagedEBooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBook, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedEBook + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedEBook + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedEBook collection, max N pages +func (r *DeviceAppManagementManagedEBooksCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBook, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedEBook collection +func (r *DeviceAppManagementManagedEBooksCollectionRequest) Get(ctx context.Context) ([]ManagedEBook, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedEBook collection +func (r *DeviceAppManagementManagedEBooksCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBook) (resObj *ManagedEBook, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MDMWindowsInformationProtectionPolicies returns request builder for MDMWindowsInformationProtectionPolicy collection +func (b *DeviceAppManagementRequestBuilder) MDMWindowsInformationProtectionPolicies() *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder { + bb := &DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mdmWindowsInformationProtectionPolicies" + return bb +} + +// DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for MDMWindowsInformationProtectionPolicy collection +type DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MDMWindowsInformationProtectionPolicy collection +func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest { + return &DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MDMWindowsInformationProtectionPolicy item +func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *MDMWindowsInformationProtectionPolicyRequestBuilder { + bb := &MDMWindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest is request for MDMWindowsInformationProtectionPolicy collection +type DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MDMWindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MDMWindowsInformationProtectionPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MDMWindowsInformationProtectionPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MDMWindowsInformationProtectionPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MDMWindowsInformationProtectionPolicy collection, max N pages +func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]MDMWindowsInformationProtectionPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MDMWindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]MDMWindowsInformationProtectionPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MDMWindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *MDMWindowsInformationProtectionPolicy) (resObj *MDMWindowsInformationProtectionPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileAppCategories returns request builder for MobileAppCategory collection +func (b *DeviceAppManagementRequestBuilder) MobileAppCategories() *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder { + bb := &DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileAppCategories" + return bb +} + +// DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection +type DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppCategory collection +func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppCategoriesCollectionRequest { + return &DeviceAppManagementMobileAppCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppCategory item +func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder { + bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementMobileAppCategoriesCollectionRequest is request for MobileAppCategory collection +type DeviceAppManagementMobileAppCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppCategory collection +func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppCategory collection, max N pages +func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppCategory collection +func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppCategory collection +func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileAppConfigurations returns request builder for ManagedDeviceMobileAppConfiguration collection +func (b *DeviceAppManagementRequestBuilder) MobileAppConfigurations() *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder { + bb := &DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileAppConfigurations" + return bb +} + +// DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration collection +type DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfiguration collection +func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppConfigurationsCollectionRequest { + return &DeviceAppManagementMobileAppConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfiguration item +func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementMobileAppConfigurationsCollectionRequest is request for ManagedDeviceMobileAppConfiguration collection +type DeviceAppManagementMobileAppConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfiguration collection +func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfiguration collection, max N pages +func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfiguration collection +func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfiguration collection +func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) (resObj *ManagedDeviceMobileAppConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileApps returns request builder for MobileApp collection +func (b *DeviceAppManagementRequestBuilder) MobileApps() *DeviceAppManagementMobileAppsCollectionRequestBuilder { + bb := &DeviceAppManagementMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileApps" + return bb +} + +// DeviceAppManagementMobileAppsCollectionRequestBuilder is request builder for MobileApp collection +type DeviceAppManagementMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileApp collection +func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppsCollectionRequest { + return &DeviceAppManagementMobileAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileApp item +func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) ID(id string) *MobileAppRequestBuilder { + bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementMobileAppsCollectionRequest is request for MobileApp collection +type DeviceAppManagementMobileAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileApp collection +func (r *DeviceAppManagementMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileApp collection, max N pages +func (r *DeviceAppManagementMobileAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileApp collection +func (r *DeviceAppManagementMobileAppsCollectionRequest) Get(ctx context.Context) ([]MobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileApp collection +func (r *DeviceAppManagementMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileApp) (resObj *MobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PolicySets returns request builder for PolicySet collection +func (b *DeviceAppManagementRequestBuilder) PolicySets() *DeviceAppManagementPolicySetsCollectionRequestBuilder { + bb := &DeviceAppManagementPolicySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policySets" + return bb +} + +// DeviceAppManagementPolicySetsCollectionRequestBuilder is request builder for PolicySet collection +type DeviceAppManagementPolicySetsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PolicySet collection +func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) Request() *DeviceAppManagementPolicySetsCollectionRequest { + return &DeviceAppManagementPolicySetsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PolicySet item +func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) ID(id string) *PolicySetRequestBuilder { + bb := &PolicySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementPolicySetsCollectionRequest is request for PolicySet collection +type DeviceAppManagementPolicySetsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PolicySet collection +func (r *DeviceAppManagementPolicySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySet, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PolicySet + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PolicySet + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PolicySet collection, max N pages +func (r *DeviceAppManagementPolicySetsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySet, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PolicySet collection +func (r *DeviceAppManagementPolicySetsCollectionRequest) Get(ctx context.Context) ([]PolicySet, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PolicySet collection +func (r *DeviceAppManagementPolicySetsCollectionRequest) Add(ctx context.Context, reqObj *PolicySet) (resObj *PolicySet, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SideLoadingKeys returns request builder for SideLoadingKey collection +func (b *DeviceAppManagementRequestBuilder) SideLoadingKeys() *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder { + bb := &DeviceAppManagementSideLoadingKeysCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sideLoadingKeys" + return bb +} + +// DeviceAppManagementSideLoadingKeysCollectionRequestBuilder is request builder for SideLoadingKey collection +type DeviceAppManagementSideLoadingKeysCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SideLoadingKey collection +func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) Request() *DeviceAppManagementSideLoadingKeysCollectionRequest { + return &DeviceAppManagementSideLoadingKeysCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SideLoadingKey item +func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) ID(id string) *SideLoadingKeyRequestBuilder { + bb := &SideLoadingKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementSideLoadingKeysCollectionRequest is request for SideLoadingKey collection +type DeviceAppManagementSideLoadingKeysCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SideLoadingKey collection +func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SideLoadingKey, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SideLoadingKey + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SideLoadingKey + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SideLoadingKey collection, max N pages +func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) GetN(ctx context.Context, n int) ([]SideLoadingKey, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SideLoadingKey collection +func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Get(ctx context.Context) ([]SideLoadingKey, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SideLoadingKey collection +func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Add(ctx context.Context, reqObj *SideLoadingKey) (resObj *SideLoadingKey, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SymantecCodeSigningCertificate is navigation property +func (b *DeviceAppManagementRequestBuilder) SymantecCodeSigningCertificate() *SymantecCodeSigningCertificateRequestBuilder { + bb := &SymantecCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/symantecCodeSigningCertificate" + return bb +} + +// TargetedManagedAppConfigurations returns request builder for TargetedManagedAppConfiguration collection +func (b *DeviceAppManagementRequestBuilder) TargetedManagedAppConfigurations() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder { + bb := &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/targetedManagedAppConfigurations" + return bb +} + +// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder is request builder for TargetedManagedAppConfiguration collection +type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TargetedManagedAppConfiguration collection +func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest { + return &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TargetedManagedAppConfiguration item +func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) ID(id string) *TargetedManagedAppConfigurationRequestBuilder { + bb := &TargetedManagedAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest is request for TargetedManagedAppConfiguration collection +type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TargetedManagedAppConfiguration collection +func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TargetedManagedAppConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TargetedManagedAppConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TargetedManagedAppConfiguration collection, max N pages +func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TargetedManagedAppConfiguration collection +func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TargetedManagedAppConfiguration collection +func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppConfiguration) (resObj *TargetedManagedAppConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// VPPTokens returns request builder for VPPToken collection +func (b *DeviceAppManagementRequestBuilder) VPPTokens() *DeviceAppManagementVPPTokensCollectionRequestBuilder { + bb := &DeviceAppManagementVPPTokensCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/vppTokens" + return bb +} + +// DeviceAppManagementVPPTokensCollectionRequestBuilder is request builder for VPPToken collection +type DeviceAppManagementVPPTokensCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for VPPToken collection +func (b *DeviceAppManagementVPPTokensCollectionRequestBuilder) Request() *DeviceAppManagementVPPTokensCollectionRequest { + return &DeviceAppManagementVPPTokensCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for VPPToken item +func (b *DeviceAppManagementVPPTokensCollectionRequestBuilder) ID(id string) *VPPTokenRequestBuilder { + bb := &VPPTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementVPPTokensCollectionRequest is request for VPPToken collection +type DeviceAppManagementVPPTokensCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for VPPToken collection +func (r *DeviceAppManagementVPPTokensCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]VPPToken, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []VPPToken + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []VPPToken + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for VPPToken collection, max N pages +func (r *DeviceAppManagementVPPTokensCollectionRequest) GetN(ctx context.Context, n int) ([]VPPToken, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for VPPToken collection +func (r *DeviceAppManagementVPPTokensCollectionRequest) Get(ctx context.Context) ([]VPPToken, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for VPPToken collection +func (r *DeviceAppManagementVPPTokensCollectionRequest) Add(ctx context.Context, reqObj *VPPToken) (resObj *VPPToken, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WdacSupplementalPolicies returns request builder for WindowsDefenderApplicationControlSupplementalPolicy collection +func (b *DeviceAppManagementRequestBuilder) WdacSupplementalPolicies() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder { + bb := &DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/wdacSupplementalPolicies" + return bb +} + +// DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy collection +type DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsDefenderApplicationControlSupplementalPolicy collection +func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest { + return &DeviceAppManagementWdacSupplementalPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicy item +func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementWdacSupplementalPoliciesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicy collection +type DeviceAppManagementWdacSupplementalPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicy collection +func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsDefenderApplicationControlSupplementalPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsDefenderApplicationControlSupplementalPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection, max N pages +func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection +func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicy collection +func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection +func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder { + bb := &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionDeviceRegistrations" + return bb +} + +// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection +type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionDeviceRegistration collection +func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest { + return &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionDeviceRegistration item +func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder { + bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection +type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection +func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionDeviceRegistration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionDeviceRegistration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionDeviceRegistration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionDeviceRegistration collection, max N pages +func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionDeviceRegistration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection +func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection +func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionPolicies returns request builder for WindowsInformationProtectionPolicy collection +func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionPolicies() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder { + bb := &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionPolicies" + return bb +} + +// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for WindowsInformationProtectionPolicy collection +type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionPolicy collection +func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest { + return &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionPolicy item +func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionPolicyRequestBuilder { + bb := &WindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest is request for WindowsInformationProtectionPolicy collection +type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionPolicy collection, max N pages +func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionPolicy collection +func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionPolicy) (resObj *WindowsInformationProtectionPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionWipeActions returns request builder for WindowsInformationProtectionWipeAction collection +func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionWipeActions() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder { + bb := &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionWipeActions" + return bb +} + +// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder is request builder for WindowsInformationProtectionWipeAction collection +type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionWipeAction collection +func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest { + return &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionWipeAction item +func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionWipeActionRequestBuilder { + bb := &WindowsInformationProtectionWipeActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest is request for WindowsInformationProtectionWipeAction collection +type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionWipeAction collection +func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionWipeAction, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionWipeAction + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionWipeAction + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionWipeAction collection, max N pages +func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionWipeAction, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionWipeAction collection +func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionWipeAction, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionWipeAction collection +func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionWipeAction) (resObj *WindowsInformationProtectionWipeAction, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsManagementApp is navigation property +func (b *DeviceAppManagementRequestBuilder) WindowsManagementApp() *WindowsManagementAppRequestBuilder { + bb := &WindowsManagementAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsManagementApp" + return bb +} + +// Assignments returns request builder for DeviceCompliancePolicyAssignment collection +func (b *DeviceCompliancePolicyRequestBuilder) Assignments() *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder { + bb := &DeviceCompliancePolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceCompliancePolicyAssignmentsCollectionRequestBuilder is request builder for DeviceCompliancePolicyAssignment collection +type DeviceCompliancePolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceCompliancePolicyAssignment collection +func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) Request() *DeviceCompliancePolicyAssignmentsCollectionRequest { + return &DeviceCompliancePolicyAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceCompliancePolicyAssignment item +func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyAssignmentRequestBuilder { + bb := &DeviceCompliancePolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicyAssignmentsCollectionRequest is request for DeviceCompliancePolicyAssignment collection +type DeviceCompliancePolicyAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceCompliancePolicyAssignment collection +func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCompliancePolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCompliancePolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceCompliancePolicyAssignment collection, max N pages +func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicyAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceCompliancePolicyAssignment collection +func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceCompliancePolicyAssignment collection +func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) (resObj *DeviceCompliancePolicyAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection +func (b *DeviceCompliancePolicyRequestBuilder) DeviceSettingStateSummaries() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder { + bb := &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceSettingStateSummaries" + return bb +} + +// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection +type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SettingStateDeviceSummary collection +func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest { + return &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SettingStateDeviceSummary item +func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder { + bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection +type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SettingStateDeviceSummary collection +func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SettingStateDeviceSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SettingStateDeviceSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SettingStateDeviceSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SettingStateDeviceSummary collection, max N pages +func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SettingStateDeviceSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SettingStateDeviceSummary collection +func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SettingStateDeviceSummary collection +func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStatusOverview is navigation property +func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatusOverview() *DeviceComplianceDeviceOverviewRequestBuilder { + bb := &DeviceComplianceDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatusOverview" + return bb +} + +// DeviceStatuses returns request builder for DeviceComplianceDeviceStatus collection +func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatuses() *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder { + bb := &DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder is request builder for DeviceComplianceDeviceStatus collection +type DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceComplianceDeviceStatus collection +func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceStatusesCollectionRequest { + return &DeviceCompliancePolicyDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceComplianceDeviceStatus item +func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceDeviceStatusRequestBuilder { + bb := &DeviceComplianceDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicyDeviceStatusesCollectionRequest is request for DeviceComplianceDeviceStatus collection +type DeviceCompliancePolicyDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceComplianceDeviceStatus collection +func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceDeviceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceComplianceDeviceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceComplianceDeviceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceComplianceDeviceStatus collection, max N pages +func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceDeviceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceComplianceDeviceStatus collection +func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceDeviceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceComplianceDeviceStatus collection +func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) (resObj *DeviceComplianceDeviceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScheduledActionsForRule returns request builder for DeviceComplianceScheduledActionForRule collection +func (b *DeviceCompliancePolicyRequestBuilder) ScheduledActionsForRule() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder { + bb := &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scheduledActionsForRule" + return bb +} + +// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder is request builder for DeviceComplianceScheduledActionForRule collection +type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceComplianceScheduledActionForRule collection +func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) Request() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest { + return &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceComplianceScheduledActionForRule item +func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) ID(id string) *DeviceComplianceScheduledActionForRuleRequestBuilder { + bb := &DeviceComplianceScheduledActionForRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest is request for DeviceComplianceScheduledActionForRule collection +type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceComplianceScheduledActionForRule collection +func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceScheduledActionForRule, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceComplianceScheduledActionForRule + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceComplianceScheduledActionForRule + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceComplianceScheduledActionForRule collection, max N pages +func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceScheduledActionForRule, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceComplianceScheduledActionForRule collection +func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceScheduledActionForRule, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceComplianceScheduledActionForRule collection +func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) (resObj *DeviceComplianceScheduledActionForRule, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStatusOverview is navigation property +func (b *DeviceCompliancePolicyRequestBuilder) UserStatusOverview() *DeviceComplianceUserOverviewRequestBuilder { + bb := &DeviceComplianceUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatusOverview" + return bb +} + +// UserStatuses returns request builder for DeviceComplianceUserStatus collection +func (b *DeviceCompliancePolicyRequestBuilder) UserStatuses() *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder { + bb := &DeviceCompliancePolicyUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatuses" + return bb +} + +// DeviceCompliancePolicyUserStatusesCollectionRequestBuilder is request builder for DeviceComplianceUserStatus collection +type DeviceCompliancePolicyUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceComplianceUserStatus collection +func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyUserStatusesCollectionRequest { + return &DeviceCompliancePolicyUserStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceComplianceUserStatus item +func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceUserStatusRequestBuilder { + bb := &DeviceComplianceUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicyUserStatusesCollectionRequest is request for DeviceComplianceUserStatus collection +type DeviceCompliancePolicyUserStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceComplianceUserStatus collection +func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceUserStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceComplianceUserStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceComplianceUserStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceComplianceUserStatus collection, max N pages +func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceUserStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceComplianceUserStatus collection +func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceUserStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceComplianceUserStatus collection +func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceUserStatus) (resObj *DeviceComplianceUserStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceCompliancePolicy is navigation property +func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) DeviceCompliancePolicy() *DeviceCompliancePolicyRequestBuilder { + bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCompliancePolicy" + return bb +} + +// DeviceComplianceSettingStates returns request builder for DeviceComplianceSettingState collection +func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) DeviceComplianceSettingStates() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder { + bb := &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceComplianceSettingStates" + return bb +} + +// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder is request builder for DeviceComplianceSettingState collection +type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceComplianceSettingState collection +func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest { + return &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceComplianceSettingState item +func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) ID(id string) *DeviceComplianceSettingStateRequestBuilder { + bb := &DeviceComplianceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest is request for DeviceComplianceSettingState collection +type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceComplianceSettingState collection +func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceSettingState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceComplianceSettingState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceComplianceSettingState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceComplianceSettingState collection, max N pages +func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceSettingState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceComplianceSettingState collection +func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceSettingState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceComplianceSettingState collection +func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceSettingState) (resObj *DeviceComplianceSettingState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScheduledActionConfigurations returns request builder for DeviceComplianceActionItem collection +func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) ScheduledActionConfigurations() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder { + bb := &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scheduledActionConfigurations" + return bb +} + +// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder is request builder for DeviceComplianceActionItem collection +type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceComplianceActionItem collection +func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest { + return &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceComplianceActionItem item +func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) ID(id string) *DeviceComplianceActionItemRequestBuilder { + bb := &DeviceComplianceActionItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest is request for DeviceComplianceActionItem collection +type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceComplianceActionItem collection +func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceActionItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceComplianceActionItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceComplianceActionItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceComplianceActionItem collection, max N pages +func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceActionItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceComplianceActionItem collection +func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceActionItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceComplianceActionItem collection +func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceActionItem) (resObj *DeviceComplianceActionItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for DeviceConfigurationAssignment collection +func (b *DeviceConfigurationRequestBuilder) Assignments() *DeviceConfigurationAssignmentsCollectionRequestBuilder { + bb := &DeviceConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceConfigurationAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationAssignment collection +type DeviceConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationAssignment collection +func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationAssignmentsCollectionRequest { + return &DeviceConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationAssignment item +func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationAssignmentRequestBuilder { + bb := &DeviceConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceConfigurationAssignmentsCollectionRequest is request for DeviceConfigurationAssignment collection +type DeviceConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationAssignment collection +func (r *DeviceConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationAssignment collection, max N pages +func (r *DeviceConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationAssignment collection +func (r *DeviceConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationAssignment collection +func (r *DeviceConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationAssignment) (resObj *DeviceConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection +func (b *DeviceConfigurationRequestBuilder) DeviceSettingStateSummaries() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder { + bb := &DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceSettingStateSummaries" + return bb +} + +// DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection +type DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SettingStateDeviceSummary collection +func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest { + return &DeviceConfigurationDeviceSettingStateSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SettingStateDeviceSummary item +func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder { + bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceConfigurationDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection +type DeviceConfigurationDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SettingStateDeviceSummary collection +func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SettingStateDeviceSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SettingStateDeviceSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SettingStateDeviceSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SettingStateDeviceSummary collection, max N pages +func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SettingStateDeviceSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SettingStateDeviceSummary collection +func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SettingStateDeviceSummary collection +func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStatusOverview is navigation property +func (b *DeviceConfigurationRequestBuilder) DeviceStatusOverview() *DeviceConfigurationDeviceOverviewRequestBuilder { + bb := &DeviceConfigurationDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatusOverview" + return bb +} + +// DeviceStatuses returns request builder for DeviceConfigurationDeviceStatus collection +func (b *DeviceConfigurationRequestBuilder) DeviceStatuses() *DeviceConfigurationDeviceStatusesCollectionRequestBuilder { + bb := &DeviceConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// DeviceConfigurationDeviceStatusesCollectionRequestBuilder is request builder for DeviceConfigurationDeviceStatus collection +type DeviceConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationDeviceStatus collection +func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceStatusesCollectionRequest { + return &DeviceConfigurationDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationDeviceStatus item +func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationDeviceStatusRequestBuilder { + bb := &DeviceConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceConfigurationDeviceStatusesCollectionRequest is request for DeviceConfigurationDeviceStatus collection +type DeviceConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationDeviceStatus collection +func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationDeviceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationDeviceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationDeviceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationDeviceStatus collection, max N pages +func (r *DeviceConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationDeviceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationDeviceStatus collection +func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationDeviceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationDeviceStatus collection +func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) (resObj *DeviceConfigurationDeviceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupAssignments returns request builder for DeviceConfigurationGroupAssignment collection +func (b *DeviceConfigurationRequestBuilder) GroupAssignments() *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder { + bb := &DeviceConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupAssignments" + return bb +} + +// DeviceConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationGroupAssignment collection +type DeviceConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationGroupAssignment collection +func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationGroupAssignmentsCollectionRequest { + return &DeviceConfigurationGroupAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationGroupAssignment item +func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationGroupAssignmentRequestBuilder { + bb := &DeviceConfigurationGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceConfigurationGroupAssignmentsCollectionRequest is request for DeviceConfigurationGroupAssignment collection +type DeviceConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationGroupAssignment collection +func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationGroupAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationGroupAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationGroupAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationGroupAssignment collection, max N pages +func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationGroupAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationGroupAssignment collection +func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationGroupAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationGroupAssignment collection +func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) (resObj *DeviceConfigurationGroupAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStatusOverview is navigation property +func (b *DeviceConfigurationRequestBuilder) UserStatusOverview() *DeviceConfigurationUserOverviewRequestBuilder { + bb := &DeviceConfigurationUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatusOverview" + return bb +} + +// UserStatuses returns request builder for DeviceConfigurationUserStatus collection +func (b *DeviceConfigurationRequestBuilder) UserStatuses() *DeviceConfigurationUserStatusesCollectionRequestBuilder { + bb := &DeviceConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatuses" + return bb +} + +// DeviceConfigurationUserStatusesCollectionRequestBuilder is request builder for DeviceConfigurationUserStatus collection +type DeviceConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationUserStatus collection +func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) Request() *DeviceConfigurationUserStatusesCollectionRequest { + return &DeviceConfigurationUserStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationUserStatus item +func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationUserStatusRequestBuilder { + bb := &DeviceConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceConfigurationUserStatusesCollectionRequest is request for DeviceConfigurationUserStatus collection +type DeviceConfigurationUserStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationUserStatus collection +func (r *DeviceConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationUserStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationUserStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationUserStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationUserStatus collection, max N pages +func (r *DeviceConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationUserStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationUserStatus collection +func (r *DeviceConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationUserStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationUserStatus collection +func (r *DeviceConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationUserStatus) (resObj *DeviceConfigurationUserStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfiguration is navigation property +func (b *DeviceConfigurationGroupAssignmentRequestBuilder) DeviceConfiguration() *DeviceConfigurationRequestBuilder { + bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfiguration" + return bb +} + +// Assignments returns request builder for EnrollmentConfigurationAssignment collection +func (b *DeviceEnrollmentConfigurationRequestBuilder) Assignments() *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder { + bb := &DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder is request builder for EnrollmentConfigurationAssignment collection +type DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EnrollmentConfigurationAssignment collection +func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignmentsCollectionRequest { + return &DeviceEnrollmentConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EnrollmentConfigurationAssignment item +func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *EnrollmentConfigurationAssignmentRequestBuilder { + bb := &EnrollmentConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceEnrollmentConfigurationAssignmentsCollectionRequest is request for EnrollmentConfigurationAssignment collection +type DeviceEnrollmentConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EnrollmentConfigurationAssignment collection +func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnrollmentConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EnrollmentConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EnrollmentConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EnrollmentConfigurationAssignment collection, max N pages +func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EnrollmentConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EnrollmentConfigurationAssignment collection +func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]EnrollmentConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EnrollmentConfigurationAssignment collection +func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) (resObj *EnrollmentConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for DeviceHealthScriptAssignment collection +func (b *DeviceHealthScriptRequestBuilder) Assignments() *DeviceHealthScriptAssignmentsCollectionRequestBuilder { + bb := &DeviceHealthScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceHealthScriptAssignmentsCollectionRequestBuilder is request builder for DeviceHealthScriptAssignment collection +type DeviceHealthScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceHealthScriptAssignment collection +func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) Request() *DeviceHealthScriptAssignmentsCollectionRequest { + return &DeviceHealthScriptAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceHealthScriptAssignment item +func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptAssignmentRequestBuilder { + bb := &DeviceHealthScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceHealthScriptAssignmentsCollectionRequest is request for DeviceHealthScriptAssignment collection +type DeviceHealthScriptAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceHealthScriptAssignment collection +func (r *DeviceHealthScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScriptAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceHealthScriptAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceHealthScriptAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceHealthScriptAssignment collection, max N pages +func (r *DeviceHealthScriptAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScriptAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceHealthScriptAssignment collection +func (r *DeviceHealthScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceHealthScriptAssignment collection +func (r *DeviceHealthScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptAssignment) (resObj *DeviceHealthScriptAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceRunStates returns request builder for DeviceHealthScriptDeviceState collection +func (b *DeviceHealthScriptRequestBuilder) DeviceRunStates() *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder { + bb := &DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceRunStates" + return bb +} + +// DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceHealthScriptDeviceState collection +type DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceHealthScriptDeviceState collection +func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceHealthScriptDeviceRunStatesCollectionRequest { + return &DeviceHealthScriptDeviceRunStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceHealthScriptDeviceState item +func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceHealthScriptDeviceStateRequestBuilder { + bb := &DeviceHealthScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceHealthScriptDeviceRunStatesCollectionRequest is request for DeviceHealthScriptDeviceState collection +type DeviceHealthScriptDeviceRunStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceHealthScriptDeviceState collection +func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScriptDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceHealthScriptDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceHealthScriptDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceHealthScriptDeviceState collection, max N pages +func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScriptDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceHealthScriptDeviceState collection +func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceHealthScriptDeviceState collection +func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) (resObj *DeviceHealthScriptDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RunSummary is navigation property +func (b *DeviceHealthScriptRequestBuilder) RunSummary() *DeviceHealthScriptRunSummaryRequestBuilder { + bb := &DeviceHealthScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/runSummary" + return bb +} + +// ManagedDevice is navigation property +func (b *DeviceHealthScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder { + bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevice" + return bb +} + +// AdvancedThreatProtectionOnboardingStateSummary is navigation property +func (b *DeviceManagementRequestBuilder) AdvancedThreatProtectionOnboardingStateSummary() *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder { + bb := &AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/advancedThreatProtectionOnboardingStateSummary" + return bb +} + +// AndroidDeviceOwnerEnrollmentProfiles returns request builder for AndroidDeviceOwnerEnrollmentProfile collection +func (b *DeviceManagementRequestBuilder) AndroidDeviceOwnerEnrollmentProfiles() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder { + bb := &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidDeviceOwnerEnrollmentProfiles" + return bb +} + +// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile collection +type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AndroidDeviceOwnerEnrollmentProfile collection +func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest { + return &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AndroidDeviceOwnerEnrollmentProfile item +func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidDeviceOwnerEnrollmentProfileRequestBuilder { + bb := &AndroidDeviceOwnerEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest is request for AndroidDeviceOwnerEnrollmentProfile collection +type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AndroidDeviceOwnerEnrollmentProfile collection +func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidDeviceOwnerEnrollmentProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AndroidDeviceOwnerEnrollmentProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AndroidDeviceOwnerEnrollmentProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AndroidDeviceOwnerEnrollmentProfile collection, max N pages +func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidDeviceOwnerEnrollmentProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile collection +func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidDeviceOwnerEnrollmentProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AndroidDeviceOwnerEnrollmentProfile collection +func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AndroidForWorkAppConfigurationSchemas returns request builder for AndroidForWorkAppConfigurationSchema collection +func (b *DeviceManagementRequestBuilder) AndroidForWorkAppConfigurationSchemas() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder { + bb := &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidForWorkAppConfigurationSchemas" + return bb +} + +// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema collection +type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AndroidForWorkAppConfigurationSchema collection +func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest { + return &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AndroidForWorkAppConfigurationSchema item +func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidForWorkAppConfigurationSchemaRequestBuilder { + bb := &AndroidForWorkAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest is request for AndroidForWorkAppConfigurationSchema collection +type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AndroidForWorkAppConfigurationSchema collection +func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidForWorkAppConfigurationSchema, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AndroidForWorkAppConfigurationSchema + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AndroidForWorkAppConfigurationSchema + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AndroidForWorkAppConfigurationSchema collection, max N pages +func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidForWorkAppConfigurationSchema, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AndroidForWorkAppConfigurationSchema collection +func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkAppConfigurationSchema, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AndroidForWorkAppConfigurationSchema collection +func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) (resObj *AndroidForWorkAppConfigurationSchema, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AndroidForWorkEnrollmentProfiles returns request builder for AndroidForWorkEnrollmentProfile collection +func (b *DeviceManagementRequestBuilder) AndroidForWorkEnrollmentProfiles() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder { + bb := &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidForWorkEnrollmentProfiles" + return bb +} + +// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidForWorkEnrollmentProfile collection +type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AndroidForWorkEnrollmentProfile collection +func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest { + return &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AndroidForWorkEnrollmentProfile item +func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidForWorkEnrollmentProfileRequestBuilder { + bb := &AndroidForWorkEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest is request for AndroidForWorkEnrollmentProfile collection +type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AndroidForWorkEnrollmentProfile collection +func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidForWorkEnrollmentProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AndroidForWorkEnrollmentProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AndroidForWorkEnrollmentProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AndroidForWorkEnrollmentProfile collection, max N pages +func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidForWorkEnrollmentProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AndroidForWorkEnrollmentProfile collection +func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkEnrollmentProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AndroidForWorkEnrollmentProfile collection +func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) (resObj *AndroidForWorkEnrollmentProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AndroidForWorkSettings is navigation property +func (b *DeviceManagementRequestBuilder) AndroidForWorkSettings() *AndroidForWorkSettingsRequestBuilder { + bb := &AndroidForWorkSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidForWorkSettings" + return bb +} + +// AndroidManagedStoreAccountEnterpriseSettings is navigation property +func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAccountEnterpriseSettings() *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidManagedStoreAccountEnterpriseSettings" + return bb +} + +// AndroidManagedStoreAppConfigurationSchemas returns request builder for AndroidManagedStoreAppConfigurationSchema collection +func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAppConfigurationSchemas() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder { + bb := &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/androidManagedStoreAppConfigurationSchemas" + return bb +} + +// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema collection +type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AndroidManagedStoreAppConfigurationSchema collection +func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest { + return &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AndroidManagedStoreAppConfigurationSchema item +func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidManagedStoreAppConfigurationSchemaRequestBuilder { + bb := &AndroidManagedStoreAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest is request for AndroidManagedStoreAppConfigurationSchema collection +type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AndroidManagedStoreAppConfigurationSchema collection +func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidManagedStoreAppConfigurationSchema, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AndroidManagedStoreAppConfigurationSchema + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AndroidManagedStoreAppConfigurationSchema + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AndroidManagedStoreAppConfigurationSchema collection, max N pages +func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidManagedStoreAppConfigurationSchema, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AndroidManagedStoreAppConfigurationSchema collection +func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidManagedStoreAppConfigurationSchema, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AndroidManagedStoreAppConfigurationSchema collection +func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ApplePushNotificationCertificate is navigation property +func (b *DeviceManagementRequestBuilder) ApplePushNotificationCertificate() *ApplePushNotificationCertificateRequestBuilder { + bb := &ApplePushNotificationCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/applePushNotificationCertificate" + return bb +} + +// AppleUserInitiatedEnrollmentProfiles returns request builder for AppleUserInitiatedEnrollmentProfile collection +func (b *DeviceManagementRequestBuilder) AppleUserInitiatedEnrollmentProfiles() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder { + bb := &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appleUserInitiatedEnrollmentProfiles" + return bb +} + +// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile collection +type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppleUserInitiatedEnrollmentProfile collection +func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest { + return &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppleUserInitiatedEnrollmentProfile item +func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AppleUserInitiatedEnrollmentProfileRequestBuilder { + bb := &AppleUserInitiatedEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest is request for AppleUserInitiatedEnrollmentProfile collection +type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppleUserInitiatedEnrollmentProfile collection +func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppleUserInitiatedEnrollmentProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppleUserInitiatedEnrollmentProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppleUserInitiatedEnrollmentProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppleUserInitiatedEnrollmentProfile collection, max N pages +func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AppleUserInitiatedEnrollmentProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppleUserInitiatedEnrollmentProfile collection +func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AppleUserInitiatedEnrollmentProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppleUserInitiatedEnrollmentProfile collection +func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) (resObj *AppleUserInitiatedEnrollmentProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AuditEvents returns request builder for AuditEvent collection +func (b *DeviceManagementRequestBuilder) AuditEvents() *DeviceManagementAuditEventsCollectionRequestBuilder { + bb := &DeviceManagementAuditEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/auditEvents" + return bb +} + +// DeviceManagementAuditEventsCollectionRequestBuilder is request builder for AuditEvent collection +type DeviceManagementAuditEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AuditEvent collection +func (b *DeviceManagementAuditEventsCollectionRequestBuilder) Request() *DeviceManagementAuditEventsCollectionRequest { + return &DeviceManagementAuditEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AuditEvent item +func (b *DeviceManagementAuditEventsCollectionRequestBuilder) ID(id string) *AuditEventRequestBuilder { + bb := &AuditEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAuditEventsCollectionRequest is request for AuditEvent collection +type DeviceManagementAuditEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AuditEvent collection +func (r *DeviceManagementAuditEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AuditEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AuditEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AuditEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AuditEvent collection, max N pages +func (r *DeviceManagementAuditEventsCollectionRequest) GetN(ctx context.Context, n int) ([]AuditEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AuditEvent collection +func (r *DeviceManagementAuditEventsCollectionRequest) Get(ctx context.Context) ([]AuditEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AuditEvent collection +func (r *DeviceManagementAuditEventsCollectionRequest) Add(ctx context.Context, reqObj *AuditEvent) (resObj *AuditEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AutopilotEvents returns request builder for DeviceManagementAutopilotEvent collection +func (b *DeviceManagementRequestBuilder) AutopilotEvents() *DeviceManagementAutopilotEventsCollectionRequestBuilder { + bb := &DeviceManagementAutopilotEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/autopilotEvents" + return bb +} + +// DeviceManagementAutopilotEventsCollectionRequestBuilder is request builder for DeviceManagementAutopilotEvent collection +type DeviceManagementAutopilotEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementAutopilotEvent collection +func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) Request() *DeviceManagementAutopilotEventsCollectionRequest { + return &DeviceManagementAutopilotEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementAutopilotEvent item +func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) ID(id string) *DeviceManagementAutopilotEventRequestBuilder { + bb := &DeviceManagementAutopilotEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAutopilotEventsCollectionRequest is request for DeviceManagementAutopilotEvent collection +type DeviceManagementAutopilotEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementAutopilotEvent collection +func (r *DeviceManagementAutopilotEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementAutopilotEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementAutopilotEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementAutopilotEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementAutopilotEvent collection, max N pages +func (r *DeviceManagementAutopilotEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementAutopilotEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementAutopilotEvent collection +func (r *DeviceManagementAutopilotEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementAutopilotEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementAutopilotEvent collection +func (r *DeviceManagementAutopilotEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) (resObj *DeviceManagementAutopilotEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CartToClassAssociations returns request builder for CartToClassAssociation collection +func (b *DeviceManagementRequestBuilder) CartToClassAssociations() *DeviceManagementCartToClassAssociationsCollectionRequestBuilder { + bb := &DeviceManagementCartToClassAssociationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/cartToClassAssociations" + return bb +} + +// DeviceManagementCartToClassAssociationsCollectionRequestBuilder is request builder for CartToClassAssociation collection +type DeviceManagementCartToClassAssociationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CartToClassAssociation collection +func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) Request() *DeviceManagementCartToClassAssociationsCollectionRequest { + return &DeviceManagementCartToClassAssociationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CartToClassAssociation item +func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) ID(id string) *CartToClassAssociationRequestBuilder { + bb := &CartToClassAssociationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementCartToClassAssociationsCollectionRequest is request for CartToClassAssociation collection +type DeviceManagementCartToClassAssociationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CartToClassAssociation collection +func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CartToClassAssociation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CartToClassAssociation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CartToClassAssociation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CartToClassAssociation collection, max N pages +func (r *DeviceManagementCartToClassAssociationsCollectionRequest) GetN(ctx context.Context, n int) ([]CartToClassAssociation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CartToClassAssociation collection +func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Get(ctx context.Context) ([]CartToClassAssociation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CartToClassAssociation collection +func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Add(ctx context.Context, reqObj *CartToClassAssociation) (resObj *CartToClassAssociation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Categories returns request builder for DeviceManagementSettingCategory collection +func (b *DeviceManagementRequestBuilder) Categories() *DeviceManagementCategoriesCollectionRequestBuilder { + bb := &DeviceManagementCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// DeviceManagementCategoriesCollectionRequestBuilder is request builder for DeviceManagementSettingCategory collection +type DeviceManagementCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingCategory collection +func (b *DeviceManagementCategoriesCollectionRequestBuilder) Request() *DeviceManagementCategoriesCollectionRequest { + return &DeviceManagementCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingCategory item +func (b *DeviceManagementCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementSettingCategoryRequestBuilder { + bb := &DeviceManagementSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementCategoriesCollectionRequest is request for DeviceManagementSettingCategory collection +type DeviceManagementCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingCategory collection +func (r *DeviceManagementCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingCategory collection, max N pages +func (r *DeviceManagementCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingCategory collection +func (r *DeviceManagementCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingCategory collection +func (r *DeviceManagementCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingCategory) (resObj *DeviceManagementSettingCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ComplianceManagementPartners returns request builder for ComplianceManagementPartner collection +func (b *DeviceManagementRequestBuilder) ComplianceManagementPartners() *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder { + bb := &DeviceManagementComplianceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/complianceManagementPartners" + return bb +} + +// DeviceManagementComplianceManagementPartnersCollectionRequestBuilder is request builder for ComplianceManagementPartner collection +type DeviceManagementComplianceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ComplianceManagementPartner collection +func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementComplianceManagementPartnersCollectionRequest { + return &DeviceManagementComplianceManagementPartnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ComplianceManagementPartner item +func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) ID(id string) *ComplianceManagementPartnerRequestBuilder { + bb := &ComplianceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementComplianceManagementPartnersCollectionRequest is request for ComplianceManagementPartner collection +type DeviceManagementComplianceManagementPartnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ComplianceManagementPartner collection +func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ComplianceManagementPartner, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ComplianceManagementPartner + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ComplianceManagementPartner + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ComplianceManagementPartner collection, max N pages +func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]ComplianceManagementPartner, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ComplianceManagementPartner collection +func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]ComplianceManagementPartner, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ComplianceManagementPartner collection +func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *ComplianceManagementPartner) (resObj *ComplianceManagementPartner, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ConditionalAccessSettings is navigation property +func (b *DeviceManagementRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder { + bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/conditionalAccessSettings" + return bb +} + +// DataSharingConsents returns request builder for DataSharingConsent collection +func (b *DeviceManagementRequestBuilder) DataSharingConsents() *DeviceManagementDataSharingConsentsCollectionRequestBuilder { + bb := &DeviceManagementDataSharingConsentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dataSharingConsents" + return bb +} + +// DeviceManagementDataSharingConsentsCollectionRequestBuilder is request builder for DataSharingConsent collection +type DeviceManagementDataSharingConsentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DataSharingConsent collection +func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) Request() *DeviceManagementDataSharingConsentsCollectionRequest { + return &DeviceManagementDataSharingConsentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DataSharingConsent item +func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) ID(id string) *DataSharingConsentRequestBuilder { + bb := &DataSharingConsentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDataSharingConsentsCollectionRequest is request for DataSharingConsent collection +type DeviceManagementDataSharingConsentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DataSharingConsent collection +func (r *DeviceManagementDataSharingConsentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataSharingConsent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DataSharingConsent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DataSharingConsent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DataSharingConsent collection, max N pages +func (r *DeviceManagementDataSharingConsentsCollectionRequest) GetN(ctx context.Context, n int) ([]DataSharingConsent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DataSharingConsent collection +func (r *DeviceManagementDataSharingConsentsCollectionRequest) Get(ctx context.Context) ([]DataSharingConsent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DataSharingConsent collection +func (r *DeviceManagementDataSharingConsentsCollectionRequest) Add(ctx context.Context, reqObj *DataSharingConsent) (resObj *DataSharingConsent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DepOnboardingSettings returns request builder for DepOnboardingSetting collection +func (b *DeviceManagementRequestBuilder) DepOnboardingSettings() *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder { + bb := &DeviceManagementDepOnboardingSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/depOnboardingSettings" + return bb +} + +// DeviceManagementDepOnboardingSettingsCollectionRequestBuilder is request builder for DepOnboardingSetting collection +type DeviceManagementDepOnboardingSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DepOnboardingSetting collection +func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) Request() *DeviceManagementDepOnboardingSettingsCollectionRequest { + return &DeviceManagementDepOnboardingSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DepOnboardingSetting item +func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) ID(id string) *DepOnboardingSettingRequestBuilder { + bb := &DepOnboardingSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDepOnboardingSettingsCollectionRequest is request for DepOnboardingSetting collection +type DeviceManagementDepOnboardingSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DepOnboardingSetting collection +func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DepOnboardingSetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DepOnboardingSetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DepOnboardingSetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DepOnboardingSetting collection, max N pages +func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DepOnboardingSetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DepOnboardingSetting collection +func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Get(ctx context.Context) ([]DepOnboardingSetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DepOnboardingSetting collection +func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Add(ctx context.Context, reqObj *DepOnboardingSetting) (resObj *DepOnboardingSetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DerivedCredentials returns request builder for DeviceManagementDerivedCredentialSettings collection +func (b *DeviceManagementRequestBuilder) DerivedCredentials() *DeviceManagementDerivedCredentialsCollectionRequestBuilder { + bb := &DeviceManagementDerivedCredentialsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/derivedCredentials" + return bb +} + +// DeviceManagementDerivedCredentialsCollectionRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings collection +type DeviceManagementDerivedCredentialsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementDerivedCredentialSettings collection +func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) Request() *DeviceManagementDerivedCredentialsCollectionRequest { + return &DeviceManagementDerivedCredentialsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementDerivedCredentialSettings item +func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) ID(id string) *DeviceManagementDerivedCredentialSettingsRequestBuilder { + bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDerivedCredentialsCollectionRequest is request for DeviceManagementDerivedCredentialSettings collection +type DeviceManagementDerivedCredentialsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementDerivedCredentialSettings collection +func (r *DeviceManagementDerivedCredentialsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementDerivedCredentialSettings, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementDerivedCredentialSettings + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementDerivedCredentialSettings + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementDerivedCredentialSettings collection, max N pages +func (r *DeviceManagementDerivedCredentialsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementDerivedCredentialSettings, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementDerivedCredentialSettings collection +func (r *DeviceManagementDerivedCredentialsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDerivedCredentialSettings, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementDerivedCredentialSettings collection +func (r *DeviceManagementDerivedCredentialsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) (resObj *DeviceManagementDerivedCredentialSettings, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DetectedApps returns request builder for DetectedApp collection +func (b *DeviceManagementRequestBuilder) DetectedApps() *DeviceManagementDetectedAppsCollectionRequestBuilder { + bb := &DeviceManagementDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/detectedApps" + return bb +} + +// DeviceManagementDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection +type DeviceManagementDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DetectedApp collection +func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) Request() *DeviceManagementDetectedAppsCollectionRequest { + return &DeviceManagementDetectedAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DetectedApp item +func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder { + bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDetectedAppsCollectionRequest is request for DetectedApp collection +type DeviceManagementDetectedAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DetectedApp collection +func (r *DeviceManagementDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DetectedApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DetectedApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DetectedApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DetectedApp collection, max N pages +func (r *DeviceManagementDetectedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]DetectedApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DetectedApp collection +func (r *DeviceManagementDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DetectedApp collection +func (r *DeviceManagementDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceCategories returns request builder for DeviceCategory collection +func (b *DeviceManagementRequestBuilder) DeviceCategories() *DeviceManagementDeviceCategoriesCollectionRequestBuilder { + bb := &DeviceManagementDeviceCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCategories" + return bb +} + +// DeviceManagementDeviceCategoriesCollectionRequestBuilder is request builder for DeviceCategory collection +type DeviceManagementDeviceCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceCategory collection +func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) Request() *DeviceManagementDeviceCategoriesCollectionRequest { + return &DeviceManagementDeviceCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceCategory item +func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) ID(id string) *DeviceCategoryRequestBuilder { + bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceCategoriesCollectionRequest is request for DeviceCategory collection +type DeviceManagementDeviceCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceCategory collection +func (r *DeviceManagementDeviceCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceCategory collection, max N pages +func (r *DeviceManagementDeviceCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceCategory collection +func (r *DeviceManagementDeviceCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceCategory collection +func (r *DeviceManagementDeviceCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCategory) (resObj *DeviceCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceCompliancePolicies returns request builder for DeviceCompliancePolicy collection +func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicies() *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder { + bb := &DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCompliancePolicies" + return bb +} + +// DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder is request builder for DeviceCompliancePolicy collection +type DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceCompliancePolicy collection +func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePoliciesCollectionRequest { + return &DeviceManagementDeviceCompliancePoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceCompliancePolicy item +func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyRequestBuilder { + bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceCompliancePoliciesCollectionRequest is request for DeviceCompliancePolicy collection +type DeviceManagementDeviceCompliancePoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceCompliancePolicy collection +func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCompliancePolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCompliancePolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceCompliancePolicy collection, max N pages +func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceCompliancePolicy collection +func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceCompliancePolicy collection +func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicy) (resObj *DeviceCompliancePolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceCompliancePolicyDeviceStateSummary is navigation property +func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicyDeviceStateSummary() *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder { + bb := &DeviceCompliancePolicyDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCompliancePolicyDeviceStateSummary" + return bb +} + +// DeviceCompliancePolicySettingStateSummaries returns request builder for DeviceCompliancePolicySettingStateSummary collection +func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicySettingStateSummaries() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder { + bb := &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCompliancePolicySettingStateSummaries" + return bb +} + +// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary collection +type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceCompliancePolicySettingStateSummary collection +func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest { + return &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceCompliancePolicySettingStateSummary item +func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicySettingStateSummaryRequestBuilder { + bb := &DeviceCompliancePolicySettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest is request for DeviceCompliancePolicySettingStateSummary collection +type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceCompliancePolicySettingStateSummary collection +func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicySettingStateSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCompliancePolicySettingStateSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCompliancePolicySettingStateSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceCompliancePolicySettingStateSummary collection, max N pages +func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicySettingStateSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceCompliancePolicySettingStateSummary collection +func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicySettingStateSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceCompliancePolicySettingStateSummary collection +func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) (resObj *DeviceCompliancePolicySettingStateSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfigurationConflictSummary returns request builder for DeviceConfigurationConflictSummary collection +func (b *DeviceManagementRequestBuilder) DeviceConfigurationConflictSummary() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder { + bb := &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationConflictSummary" + return bb +} + +// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder is request builder for DeviceConfigurationConflictSummary collection +type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationConflictSummary collection +func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest { + return &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationConflictSummary item +func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) ID(id string) *DeviceConfigurationConflictSummaryRequestBuilder { + bb := &DeviceConfigurationConflictSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest is request for DeviceConfigurationConflictSummary collection +type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationConflictSummary collection +func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationConflictSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationConflictSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationConflictSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationConflictSummary collection, max N pages +func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationConflictSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationConflictSummary collection +func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationConflictSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationConflictSummary collection +func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) (resObj *DeviceConfigurationConflictSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfigurationDeviceStateSummaries is navigation property +func (b *DeviceManagementRequestBuilder) DeviceConfigurationDeviceStateSummaries() *DeviceConfigurationDeviceStateSummaryRequestBuilder { + bb := &DeviceConfigurationDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationDeviceStateSummaries" + return bb +} + +// DeviceConfigurationRestrictedAppsViolations returns request builder for RestrictedAppsViolation collection +func (b *DeviceManagementRequestBuilder) DeviceConfigurationRestrictedAppsViolations() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder { + bb := &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationRestrictedAppsViolations" + return bb +} + +// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder is request builder for RestrictedAppsViolation collection +type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RestrictedAppsViolation collection +func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest { + return &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RestrictedAppsViolation item +func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) ID(id string) *RestrictedAppsViolationRequestBuilder { + bb := &RestrictedAppsViolationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest is request for RestrictedAppsViolation collection +type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RestrictedAppsViolation collection +func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RestrictedAppsViolation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RestrictedAppsViolation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RestrictedAppsViolation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RestrictedAppsViolation collection, max N pages +func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) GetN(ctx context.Context, n int) ([]RestrictedAppsViolation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RestrictedAppsViolation collection +func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Get(ctx context.Context) ([]RestrictedAppsViolation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RestrictedAppsViolation collection +func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedAppsViolation) (resObj *RestrictedAppsViolation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfigurationUserStateSummaries is navigation property +func (b *DeviceManagementRequestBuilder) DeviceConfigurationUserStateSummaries() *DeviceConfigurationUserStateSummaryRequestBuilder { + bb := &DeviceConfigurationUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationUserStateSummaries" + return bb +} + +// DeviceConfigurations returns request builder for DeviceConfiguration collection +func (b *DeviceManagementRequestBuilder) DeviceConfigurations() *DeviceManagementDeviceConfigurationsCollectionRequestBuilder { + bb := &DeviceManagementDeviceConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurations" + return bb +} + +// DeviceManagementDeviceConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection +type DeviceManagementDeviceConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfiguration collection +func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsCollectionRequest { + return &DeviceManagementDeviceConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfiguration item +func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder { + bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceConfigurationsCollectionRequest is request for DeviceConfiguration collection +type DeviceManagementDeviceConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfiguration collection +func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfiguration collection, max N pages +func (r *DeviceManagementDeviceConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfiguration collection +func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfiguration collection +func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfigurationsAllManagedDeviceCertificateStates returns request builder for ManagedAllDeviceCertificateState collection +func (b *DeviceManagementRequestBuilder) DeviceConfigurationsAllManagedDeviceCertificateStates() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationsAllManagedDeviceCertificateStates" + return bb +} + +// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedAllDeviceCertificateState collection +type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAllDeviceCertificateState collection +func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest { + return &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAllDeviceCertificateState item +func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedAllDeviceCertificateStateRequestBuilder { + bb := &ManagedAllDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest is request for ManagedAllDeviceCertificateState collection +type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAllDeviceCertificateState collection +func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAllDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAllDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAllDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAllDeviceCertificateState collection, max N pages +func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAllDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAllDeviceCertificateState collection +func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedAllDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAllDeviceCertificateState collection +func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) (resObj *ManagedAllDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection +func (b *DeviceManagementRequestBuilder) DeviceEnrollmentConfigurations() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder { + bb := &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceEnrollmentConfigurations" + return bb +} + +// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection +type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceEnrollmentConfiguration collection +func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest { + return &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceEnrollmentConfiguration item +func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder { + bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection +type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection +func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceEnrollmentConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceEnrollmentConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceEnrollmentConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceEnrollmentConfiguration collection, max N pages +func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceEnrollmentConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceEnrollmentConfiguration collection +func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceEnrollmentConfiguration collection +func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceHealthScripts returns request builder for DeviceHealthScript collection +func (b *DeviceManagementRequestBuilder) DeviceHealthScripts() *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder { + bb := &DeviceManagementDeviceHealthScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceHealthScripts" + return bb +} + +// DeviceManagementDeviceHealthScriptsCollectionRequestBuilder is request builder for DeviceHealthScript collection +type DeviceManagementDeviceHealthScriptsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceHealthScript collection +func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceHealthScriptsCollectionRequest { + return &DeviceManagementDeviceHealthScriptsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceHealthScript item +func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptRequestBuilder { + bb := &DeviceHealthScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceHealthScriptsCollectionRequest is request for DeviceHealthScript collection +type DeviceManagementDeviceHealthScriptsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceHealthScript collection +func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScript, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceHealthScript + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceHealthScript + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceHealthScript collection, max N pages +func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScript, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceHealthScript collection +func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScript, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceHealthScript collection +func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScript) (resObj *DeviceHealthScript, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceManagementPartners returns request builder for DeviceManagementPartner collection +func (b *DeviceManagementRequestBuilder) DeviceManagementPartners() *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder { + bb := &DeviceManagementDeviceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceManagementPartners" + return bb +} + +// DeviceManagementDeviceManagementPartnersCollectionRequestBuilder is request builder for DeviceManagementPartner collection +type DeviceManagementDeviceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementPartner collection +func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementPartnersCollectionRequest { + return &DeviceManagementDeviceManagementPartnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementPartner item +func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) ID(id string) *DeviceManagementPartnerRequestBuilder { + bb := &DeviceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceManagementPartnersCollectionRequest is request for DeviceManagementPartner collection +type DeviceManagementDeviceManagementPartnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementPartner collection +func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementPartner, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementPartner + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementPartner + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementPartner collection, max N pages +func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementPartner, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementPartner collection +func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]DeviceManagementPartner, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementPartner collection +func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementPartner) (resObj *DeviceManagementPartner, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceManagementScripts returns request builder for DeviceManagementScript collection +func (b *DeviceManagementRequestBuilder) DeviceManagementScripts() *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder { + bb := &DeviceManagementDeviceManagementScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceManagementScripts" + return bb +} + +// DeviceManagementDeviceManagementScriptsCollectionRequestBuilder is request builder for DeviceManagementScript collection +type DeviceManagementDeviceManagementScriptsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScript collection +func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementScriptsCollectionRequest { + return &DeviceManagementDeviceManagementScriptsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScript item +func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptRequestBuilder { + bb := &DeviceManagementScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDeviceManagementScriptsCollectionRequest is request for DeviceManagementScript collection +type DeviceManagementDeviceManagementScriptsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScript collection +func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScript, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScript + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScript + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScript collection, max N pages +func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScript, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScript collection +func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScript, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScript collection +func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScript) (resObj *DeviceManagementScript, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DomainJoinConnectors returns request builder for DeviceManagementDomainJoinConnector collection +func (b *DeviceManagementRequestBuilder) DomainJoinConnectors() *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder { + bb := &DeviceManagementDomainJoinConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domainJoinConnectors" + return bb +} + +// DeviceManagementDomainJoinConnectorsCollectionRequestBuilder is request builder for DeviceManagementDomainJoinConnector collection +type DeviceManagementDomainJoinConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementDomainJoinConnector collection +func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) Request() *DeviceManagementDomainJoinConnectorsCollectionRequest { + return &DeviceManagementDomainJoinConnectorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementDomainJoinConnector item +func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementDomainJoinConnectorRequestBuilder { + bb := &DeviceManagementDomainJoinConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementDomainJoinConnectorsCollectionRequest is request for DeviceManagementDomainJoinConnector collection +type DeviceManagementDomainJoinConnectorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementDomainJoinConnector collection +func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementDomainJoinConnector, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementDomainJoinConnector + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementDomainJoinConnector + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementDomainJoinConnector collection, max N pages +func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementDomainJoinConnector, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementDomainJoinConnector collection +func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDomainJoinConnector, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementDomainJoinConnector collection +func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) (resObj *DeviceManagementDomainJoinConnector, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EmbeddedSIMActivationCodePools returns request builder for EmbeddedSIMActivationCodePool collection +func (b *DeviceManagementRequestBuilder) EmbeddedSIMActivationCodePools() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder { + bb := &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/embeddedSIMActivationCodePools" + return bb +} + +// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePool collection +type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EmbeddedSIMActivationCodePool collection +func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) Request() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest { + return &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EmbeddedSIMActivationCodePool item +func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolRequestBuilder { + bb := &EmbeddedSIMActivationCodePoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest is request for EmbeddedSIMActivationCodePool collection +type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EmbeddedSIMActivationCodePool collection +func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePool, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EmbeddedSIMActivationCodePool + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EmbeddedSIMActivationCodePool + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EmbeddedSIMActivationCodePool collection, max N pages +func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePool, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EmbeddedSIMActivationCodePool collection +func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePool, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EmbeddedSIMActivationCodePool collection +func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) (resObj *EmbeddedSIMActivationCodePool, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExchangeConnectors returns request builder for DeviceManagementExchangeConnector collection +func (b *DeviceManagementRequestBuilder) ExchangeConnectors() *DeviceManagementExchangeConnectorsCollectionRequestBuilder { + bb := &DeviceManagementExchangeConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exchangeConnectors" + return bb +} + +// DeviceManagementExchangeConnectorsCollectionRequestBuilder is request builder for DeviceManagementExchangeConnector collection +type DeviceManagementExchangeConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementExchangeConnector collection +func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) Request() *DeviceManagementExchangeConnectorsCollectionRequest { + return &DeviceManagementExchangeConnectorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementExchangeConnector item +func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeConnectorRequestBuilder { + bb := &DeviceManagementExchangeConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementExchangeConnectorsCollectionRequest is request for DeviceManagementExchangeConnector collection +type DeviceManagementExchangeConnectorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementExchangeConnector collection +func (r *DeviceManagementExchangeConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExchangeConnector, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementExchangeConnector + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementExchangeConnector + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementExchangeConnector collection, max N pages +func (r *DeviceManagementExchangeConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExchangeConnector, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementExchangeConnector collection +func (r *DeviceManagementExchangeConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeConnector, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementExchangeConnector collection +func (r *DeviceManagementExchangeConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeConnector) (resObj *DeviceManagementExchangeConnector, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExchangeOnPremisesPolicies returns request builder for DeviceManagementExchangeOnPremisesPolicy collection +func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicies() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder { + bb := &DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exchangeOnPremisesPolicies" + return bb +} + +// DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy collection +type DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementExchangeOnPremisesPolicy collection +func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest { + return &DeviceManagementExchangeOnPremisesPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementExchangeOnPremisesPolicy item +func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeOnPremisesPolicyRequestBuilder { + bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementExchangeOnPremisesPoliciesCollectionRequest is request for DeviceManagementExchangeOnPremisesPolicy collection +type DeviceManagementExchangeOnPremisesPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementExchangeOnPremisesPolicy collection +func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExchangeOnPremisesPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementExchangeOnPremisesPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementExchangeOnPremisesPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementExchangeOnPremisesPolicy collection, max N pages +func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExchangeOnPremisesPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy collection +func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeOnPremisesPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementExchangeOnPremisesPolicy collection +func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExchangeOnPremisesPolicy is navigation property +func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicy() *DeviceManagementExchangeOnPremisesPolicyRequestBuilder { + bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exchangeOnPremisesPolicy" + return bb +} + +// GroupPolicyConfigurations returns request builder for GroupPolicyConfiguration collection +func (b *DeviceManagementRequestBuilder) GroupPolicyConfigurations() *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder { + bb := &DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupPolicyConfigurations" + return bb +} + +// DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder is request builder for GroupPolicyConfiguration collection +type DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyConfiguration collection +func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyConfigurationsCollectionRequest { + return &DeviceManagementGroupPolicyConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyConfiguration item +func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationRequestBuilder { + bb := &GroupPolicyConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementGroupPolicyConfigurationsCollectionRequest is request for GroupPolicyConfiguration collection +type DeviceManagementGroupPolicyConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyConfiguration collection +func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyConfiguration collection, max N pages +func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyConfiguration collection +func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyConfiguration collection +func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfiguration) (resObj *GroupPolicyConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupPolicyDefinitionFiles returns request builder for GroupPolicyDefinitionFile collection +func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitionFiles() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder { + bb := &DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupPolicyDefinitionFiles" + return bb +} + +// DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder is request builder for GroupPolicyDefinitionFile collection +type DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyDefinitionFile collection +func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest { + return &DeviceManagementGroupPolicyDefinitionFilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyDefinitionFile item +func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionFileRequestBuilder { + bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementGroupPolicyDefinitionFilesCollectionRequest is request for GroupPolicyDefinitionFile collection +type DeviceManagementGroupPolicyDefinitionFilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyDefinitionFile collection +func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinitionFile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyDefinitionFile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyDefinitionFile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyDefinitionFile collection, max N pages +func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinitionFile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyDefinitionFile collection +func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionFile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyDefinitionFile collection +func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionFile) (resObj *GroupPolicyDefinitionFile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupPolicyDefinitions returns request builder for GroupPolicyDefinition collection +func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitions() *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder { + bb := &DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupPolicyDefinitions" + return bb +} + +// DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection +type DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyDefinition collection +func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionsCollectionRequest { + return &DeviceManagementGroupPolicyDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyDefinition item +func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder { + bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementGroupPolicyDefinitionsCollectionRequest is request for GroupPolicyDefinition collection +type DeviceManagementGroupPolicyDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyDefinition collection +func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyDefinition collection, max N pages +func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyDefinition collection +func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyDefinition collection +func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupPolicyMigrationReports returns request builder for GroupPolicyMigrationReport collection +func (b *DeviceManagementRequestBuilder) GroupPolicyMigrationReports() *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder { + bb := &DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupPolicyMigrationReports" + return bb +} + +// DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder is request builder for GroupPolicyMigrationReport collection +type DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyMigrationReport collection +func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyMigrationReportsCollectionRequest { + return &DeviceManagementGroupPolicyMigrationReportsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyMigrationReport item +func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) ID(id string) *GroupPolicyMigrationReportRequestBuilder { + bb := &GroupPolicyMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementGroupPolicyMigrationReportsCollectionRequest is request for GroupPolicyMigrationReport collection +type DeviceManagementGroupPolicyMigrationReportsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyMigrationReport collection +func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyMigrationReport, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyMigrationReport + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyMigrationReport + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyMigrationReport collection, max N pages +func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyMigrationReport, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyMigrationReport collection +func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyMigrationReport, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyMigrationReport collection +func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyMigrationReport) (resObj *GroupPolicyMigrationReport, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ImportedDeviceIdentities returns request builder for ImportedDeviceIdentity collection +func (b *DeviceManagementRequestBuilder) ImportedDeviceIdentities() *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder { + bb := &DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/importedDeviceIdentities" + return bb +} + +// DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedDeviceIdentity collection +type DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ImportedDeviceIdentity collection +func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedDeviceIdentitiesCollectionRequest { + return &DeviceManagementImportedDeviceIdentitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ImportedDeviceIdentity item +func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedDeviceIdentityRequestBuilder { + bb := &ImportedDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementImportedDeviceIdentitiesCollectionRequest is request for ImportedDeviceIdentity collection +type DeviceManagementImportedDeviceIdentitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ImportedDeviceIdentity collection +func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ImportedDeviceIdentity collection, max N pages +func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ImportedDeviceIdentity collection +func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ImportedDeviceIdentity collection +func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedDeviceIdentity) (resObj *ImportedDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ImportedWindowsAutopilotDeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection +func (b *DeviceManagementRequestBuilder) ImportedWindowsAutopilotDeviceIdentities() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder { + bb := &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/importedWindowsAutopilotDeviceIdentities" + return bb +} + +// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection +type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection +func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest { + return &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item +func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder { + bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection +type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedWindowsAutopilotDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedWindowsAutopilotDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ImportedWindowsAutopilotDeviceIdentity collection, max N pages +func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Intents returns request builder for DeviceManagementIntent collection +func (b *DeviceManagementRequestBuilder) Intents() *DeviceManagementIntentsCollectionRequestBuilder { + bb := &DeviceManagementIntentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/intents" + return bb +} + +// DeviceManagementIntentsCollectionRequestBuilder is request builder for DeviceManagementIntent collection +type DeviceManagementIntentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntent collection +func (b *DeviceManagementIntentsCollectionRequestBuilder) Request() *DeviceManagementIntentsCollectionRequest { + return &DeviceManagementIntentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntent item +func (b *DeviceManagementIntentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentRequestBuilder { + bb := &DeviceManagementIntentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentsCollectionRequest is request for DeviceManagementIntent collection +type DeviceManagementIntentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntent collection +func (r *DeviceManagementIntentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntent collection, max N pages +func (r *DeviceManagementIntentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntent collection +func (r *DeviceManagementIntentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntent collection +func (r *DeviceManagementIntentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntent) (resObj *DeviceManagementIntent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IntuneBrandingProfiles returns request builder for IntuneBrandingProfile collection +func (b *DeviceManagementRequestBuilder) IntuneBrandingProfiles() *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder { + bb := &DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/intuneBrandingProfiles" + return bb +} + +// DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder is request builder for IntuneBrandingProfile collection +type DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IntuneBrandingProfile collection +func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) Request() *DeviceManagementIntuneBrandingProfilesCollectionRequest { + return &DeviceManagementIntuneBrandingProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IntuneBrandingProfile item +func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileRequestBuilder { + bb := &IntuneBrandingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntuneBrandingProfilesCollectionRequest is request for IntuneBrandingProfile collection +type DeviceManagementIntuneBrandingProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IntuneBrandingProfile collection +func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IntuneBrandingProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IntuneBrandingProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IntuneBrandingProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IntuneBrandingProfile collection, max N pages +func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]IntuneBrandingProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IntuneBrandingProfile collection +func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IntuneBrandingProfile collection +func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfile) (resObj *IntuneBrandingProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IOSUpdateStatuses returns request builder for IOSUpdateDeviceStatus collection +func (b *DeviceManagementRequestBuilder) IOSUpdateStatuses() *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder { + bb := &DeviceManagementIOSUpdateStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/iosUpdateStatuses" + return bb +} + +// DeviceManagementIOSUpdateStatusesCollectionRequestBuilder is request builder for IOSUpdateDeviceStatus collection +type DeviceManagementIOSUpdateStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSUpdateDeviceStatus collection +func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) Request() *DeviceManagementIOSUpdateStatusesCollectionRequest { + return &DeviceManagementIOSUpdateStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSUpdateDeviceStatus item +func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) ID(id string) *IOSUpdateDeviceStatusRequestBuilder { + bb := &IOSUpdateDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIOSUpdateStatusesCollectionRequest is request for IOSUpdateDeviceStatus collection +type DeviceManagementIOSUpdateStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSUpdateDeviceStatus collection +func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSUpdateDeviceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSUpdateDeviceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSUpdateDeviceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSUpdateDeviceStatus collection, max N pages +func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]IOSUpdateDeviceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSUpdateDeviceStatus collection +func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Get(ctx context.Context) ([]IOSUpdateDeviceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSUpdateDeviceStatus collection +func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Add(ctx context.Context, reqObj *IOSUpdateDeviceStatus) (resObj *IOSUpdateDeviceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceEncryptionStates returns request builder for ManagedDeviceEncryptionState collection +func (b *DeviceManagementRequestBuilder) ManagedDeviceEncryptionStates() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder { + bb := &DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceEncryptionStates" + return bb +} + +// DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder is request builder for ManagedDeviceEncryptionState collection +type DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceEncryptionState collection +func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) Request() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest { + return &DeviceManagementManagedDeviceEncryptionStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceEncryptionState item +func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceEncryptionStateRequestBuilder { + bb := &ManagedDeviceEncryptionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementManagedDeviceEncryptionStatesCollectionRequest is request for ManagedDeviceEncryptionState collection +type DeviceManagementManagedDeviceEncryptionStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceEncryptionState collection +func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceEncryptionState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceEncryptionState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceEncryptionState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceEncryptionState collection, max N pages +func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceEncryptionState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceEncryptionState collection +func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceEncryptionState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceEncryptionState collection +func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceEncryptionState) (resObj *ManagedDeviceEncryptionState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceOverview is navigation property +func (b *DeviceManagementRequestBuilder) ManagedDeviceOverview() *ManagedDeviceOverviewRequestBuilder { + bb := &ManagedDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceOverview" + return bb +} + +// ManagedDevices returns request builder for ManagedDevice collection +func (b *DeviceManagementRequestBuilder) ManagedDevices() *DeviceManagementManagedDevicesCollectionRequestBuilder { + bb := &DeviceManagementManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevices" + return bb +} + +// DeviceManagementManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection +type DeviceManagementManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDevice collection +func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) Request() *DeviceManagementManagedDevicesCollectionRequest { + return &DeviceManagementManagedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDevice item +func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder { + bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementManagedDevicesCollectionRequest is request for ManagedDevice collection +type DeviceManagementManagedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDevice collection +func (r *DeviceManagementManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDevice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDevice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDevice collection, max N pages +func (r *DeviceManagementManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDevice collection +func (r *DeviceManagementManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDevice collection +func (r *DeviceManagementManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagementConditionStatements returns request builder for ManagementConditionStatement collection +func (b *DeviceManagementRequestBuilder) ManagementConditionStatements() *DeviceManagementManagementConditionStatementsCollectionRequestBuilder { + bb := &DeviceManagementManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managementConditionStatements" + return bb +} + +// DeviceManagementManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection +type DeviceManagementManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagementConditionStatement collection +func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionStatementsCollectionRequest { + return &DeviceManagementManagementConditionStatementsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagementConditionStatement item +func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder { + bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection +type DeviceManagementManagementConditionStatementsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagementConditionStatement collection +func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementConditionStatement, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagementConditionStatement + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagementConditionStatement + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagementConditionStatement collection, max N pages +func (r *DeviceManagementManagementConditionStatementsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementConditionStatement, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagementConditionStatement collection +func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagementConditionStatement collection +func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagementConditions returns request builder for ManagementCondition collection +func (b *DeviceManagementRequestBuilder) ManagementConditions() *DeviceManagementManagementConditionsCollectionRequestBuilder { + bb := &DeviceManagementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managementConditions" + return bb +} + +// DeviceManagementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection +type DeviceManagementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagementCondition collection +func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionsCollectionRequest { + return &DeviceManagementManagementConditionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagementCondition item +func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder { + bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementManagementConditionsCollectionRequest is request for ManagementCondition collection +type DeviceManagementManagementConditionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagementCondition collection +func (r *DeviceManagementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementCondition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagementCondition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagementCondition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagementCondition collection, max N pages +func (r *DeviceManagementManagementConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementCondition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagementCondition collection +func (r *DeviceManagementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagementCondition collection +func (r *DeviceManagementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection +func (b *DeviceManagementRequestBuilder) MobileAppTroubleshootingEvents() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder { + bb := &DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileAppTroubleshootingEvents" + return bb +} + +// DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection +type DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppTroubleshootingEvent collection +func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest { + return &DeviceManagementMobileAppTroubleshootingEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppTroubleshootingEvent item +func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder { + bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection +type DeviceManagementMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection +func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppTroubleshootingEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppTroubleshootingEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppTroubleshootingEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppTroubleshootingEvent collection, max N pages +func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppTroubleshootingEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppTroubleshootingEvent collection +func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppTroubleshootingEvent collection +func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileThreatDefenseConnectors returns request builder for MobileThreatDefenseConnector collection +func (b *DeviceManagementRequestBuilder) MobileThreatDefenseConnectors() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder { + bb := &DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileThreatDefenseConnectors" + return bb +} + +// DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder is request builder for MobileThreatDefenseConnector collection +type DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileThreatDefenseConnector collection +func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) Request() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest { + return &DeviceManagementMobileThreatDefenseConnectorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileThreatDefenseConnector item +func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) ID(id string) *MobileThreatDefenseConnectorRequestBuilder { + bb := &MobileThreatDefenseConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementMobileThreatDefenseConnectorsCollectionRequest is request for MobileThreatDefenseConnector collection +type DeviceManagementMobileThreatDefenseConnectorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileThreatDefenseConnector collection +func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileThreatDefenseConnector, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileThreatDefenseConnector + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileThreatDefenseConnector + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileThreatDefenseConnector collection, max N pages +func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileThreatDefenseConnector, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileThreatDefenseConnector collection +func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Get(ctx context.Context) ([]MobileThreatDefenseConnector, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileThreatDefenseConnector collection +func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Add(ctx context.Context, reqObj *MobileThreatDefenseConnector) (resObj *MobileThreatDefenseConnector, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// NDESConnectors returns request builder for NDESConnector collection +func (b *DeviceManagementRequestBuilder) NDESConnectors() *DeviceManagementNDESConnectorsCollectionRequestBuilder { + bb := &DeviceManagementNDESConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/ndesConnectors" + return bb +} + +// DeviceManagementNDESConnectorsCollectionRequestBuilder is request builder for NDESConnector collection +type DeviceManagementNDESConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for NDESConnector collection +func (b *DeviceManagementNDESConnectorsCollectionRequestBuilder) Request() *DeviceManagementNDESConnectorsCollectionRequest { + return &DeviceManagementNDESConnectorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for NDESConnector item +func (b *DeviceManagementNDESConnectorsCollectionRequestBuilder) ID(id string) *NDESConnectorRequestBuilder { + bb := &NDESConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementNDESConnectorsCollectionRequest is request for NDESConnector collection +type DeviceManagementNDESConnectorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for NDESConnector collection +func (r *DeviceManagementNDESConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NDESConnector, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []NDESConnector + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []NDESConnector + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for NDESConnector collection, max N pages +func (r *DeviceManagementNDESConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]NDESConnector, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for NDESConnector collection +func (r *DeviceManagementNDESConnectorsCollectionRequest) Get(ctx context.Context) ([]NDESConnector, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for NDESConnector collection +func (r *DeviceManagementNDESConnectorsCollectionRequest) Add(ctx context.Context, reqObj *NDESConnector) (resObj *NDESConnector, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// NotificationMessageTemplates returns request builder for NotificationMessageTemplate collection +func (b *DeviceManagementRequestBuilder) NotificationMessageTemplates() *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder { + bb := &DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/notificationMessageTemplates" + return bb +} + +// DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder is request builder for NotificationMessageTemplate collection +type DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for NotificationMessageTemplate collection +func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) Request() *DeviceManagementNotificationMessageTemplatesCollectionRequest { + return &DeviceManagementNotificationMessageTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for NotificationMessageTemplate item +func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) ID(id string) *NotificationMessageTemplateRequestBuilder { + bb := &NotificationMessageTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementNotificationMessageTemplatesCollectionRequest is request for NotificationMessageTemplate collection +type DeviceManagementNotificationMessageTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for NotificationMessageTemplate collection +func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NotificationMessageTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []NotificationMessageTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []NotificationMessageTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for NotificationMessageTemplate collection, max N pages +func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]NotificationMessageTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for NotificationMessageTemplate collection +func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Get(ctx context.Context) ([]NotificationMessageTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for NotificationMessageTemplate collection +func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Add(ctx context.Context, reqObj *NotificationMessageTemplate) (resObj *NotificationMessageTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RemoteActionAudits returns request builder for RemoteActionAudit collection +func (b *DeviceManagementRequestBuilder) RemoteActionAudits() *DeviceManagementRemoteActionAuditsCollectionRequestBuilder { + bb := &DeviceManagementRemoteActionAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/remoteActionAudits" + return bb +} + +// DeviceManagementRemoteActionAuditsCollectionRequestBuilder is request builder for RemoteActionAudit collection +type DeviceManagementRemoteActionAuditsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RemoteActionAudit collection +func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) Request() *DeviceManagementRemoteActionAuditsCollectionRequest { + return &DeviceManagementRemoteActionAuditsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RemoteActionAudit item +func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) ID(id string) *RemoteActionAuditRequestBuilder { + bb := &RemoteActionAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementRemoteActionAuditsCollectionRequest is request for RemoteActionAudit collection +type DeviceManagementRemoteActionAuditsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RemoteActionAudit collection +func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RemoteActionAudit, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RemoteActionAudit + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RemoteActionAudit + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RemoteActionAudit collection, max N pages +func (r *DeviceManagementRemoteActionAuditsCollectionRequest) GetN(ctx context.Context, n int) ([]RemoteActionAudit, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RemoteActionAudit collection +func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Get(ctx context.Context) ([]RemoteActionAudit, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RemoteActionAudit collection +func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Add(ctx context.Context, reqObj *RemoteActionAudit) (resObj *RemoteActionAudit, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RemoteAssistancePartners returns request builder for RemoteAssistancePartner collection +func (b *DeviceManagementRequestBuilder) RemoteAssistancePartners() *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder { + bb := &DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/remoteAssistancePartners" + return bb +} + +// DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder is request builder for RemoteAssistancePartner collection +type DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RemoteAssistancePartner collection +func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) Request() *DeviceManagementRemoteAssistancePartnersCollectionRequest { + return &DeviceManagementRemoteAssistancePartnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RemoteAssistancePartner item +func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) ID(id string) *RemoteAssistancePartnerRequestBuilder { + bb := &RemoteAssistancePartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementRemoteAssistancePartnersCollectionRequest is request for RemoteAssistancePartner collection +type DeviceManagementRemoteAssistancePartnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RemoteAssistancePartner collection +func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RemoteAssistancePartner, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RemoteAssistancePartner + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RemoteAssistancePartner + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RemoteAssistancePartner collection, max N pages +func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) GetN(ctx context.Context, n int) ([]RemoteAssistancePartner, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RemoteAssistancePartner collection +func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Get(ctx context.Context) ([]RemoteAssistancePartner, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RemoteAssistancePartner collection +func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Add(ctx context.Context, reqObj *RemoteAssistancePartner) (resObj *RemoteAssistancePartner, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Reports is navigation property +func (b *DeviceManagementRequestBuilder) Reports() *DeviceManagementReportsRequestBuilder { + bb := &DeviceManagementReportsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/reports" + return bb +} + +// ResourceOperations returns request builder for ResourceOperation collection +func (b *DeviceManagementRequestBuilder) ResourceOperations() *DeviceManagementResourceOperationsCollectionRequestBuilder { + bb := &DeviceManagementResourceOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resourceOperations" + return bb +} + +// DeviceManagementResourceOperationsCollectionRequestBuilder is request builder for ResourceOperation collection +type DeviceManagementResourceOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ResourceOperation collection +func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) Request() *DeviceManagementResourceOperationsCollectionRequest { + return &DeviceManagementResourceOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ResourceOperation item +func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) ID(id string) *ResourceOperationRequestBuilder { + bb := &ResourceOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementResourceOperationsCollectionRequest is request for ResourceOperation collection +type DeviceManagementResourceOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ResourceOperation collection +func (r *DeviceManagementResourceOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResourceOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResourceOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ResourceOperation collection, max N pages +func (r *DeviceManagementResourceOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ResourceOperation collection +func (r *DeviceManagementResourceOperationsCollectionRequest) Get(ctx context.Context) ([]ResourceOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ResourceOperation collection +func (r *DeviceManagementResourceOperationsCollectionRequest) Add(ctx context.Context, reqObj *ResourceOperation) (resObj *ResourceOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleAssignments returns request builder for DeviceAndAppManagementRoleAssignment collection +func (b *DeviceManagementRequestBuilder) RoleAssignments() *DeviceManagementRoleAssignmentsCollectionRequestBuilder { + bb := &DeviceManagementRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignments" + return bb +} + +// DeviceManagementRoleAssignmentsCollectionRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment collection +type DeviceManagementRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceAndAppManagementRoleAssignment collection +func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) Request() *DeviceManagementRoleAssignmentsCollectionRequest { + return &DeviceManagementRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceAndAppManagementRoleAssignment item +func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) ID(id string) *DeviceAndAppManagementRoleAssignmentRequestBuilder { + bb := &DeviceAndAppManagementRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementRoleAssignmentsCollectionRequest is request for DeviceAndAppManagementRoleAssignment collection +type DeviceManagementRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceAndAppManagementRoleAssignment collection +func (r *DeviceManagementRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceAndAppManagementRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceAndAppManagementRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceAndAppManagementRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceAndAppManagementRoleAssignment collection, max N pages +func (r *DeviceManagementRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceAndAppManagementRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceAndAppManagementRoleAssignment collection +func (r *DeviceManagementRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceAndAppManagementRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceAndAppManagementRoleAssignment collection +func (r *DeviceManagementRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) (resObj *DeviceAndAppManagementRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleDefinitions returns request builder for RoleDefinition collection +func (b *DeviceManagementRequestBuilder) RoleDefinitions() *DeviceManagementRoleDefinitionsCollectionRequestBuilder { + bb := &DeviceManagementRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinitions" + return bb +} + +// DeviceManagementRoleDefinitionsCollectionRequestBuilder is request builder for RoleDefinition collection +type DeviceManagementRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RoleDefinition collection +func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) Request() *DeviceManagementRoleDefinitionsCollectionRequest { + return &DeviceManagementRoleDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RoleDefinition item +func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) ID(id string) *RoleDefinitionRequestBuilder { + bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementRoleDefinitionsCollectionRequest is request for RoleDefinition collection +type DeviceManagementRoleDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RoleDefinition collection +func (r *DeviceManagementRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RoleDefinition collection, max N pages +func (r *DeviceManagementRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RoleDefinition collection +func (r *DeviceManagementRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]RoleDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RoleDefinition collection +func (r *DeviceManagementRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *RoleDefinition) (resObj *RoleDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleScopeTags returns request builder for RoleScopeTag collection +func (b *DeviceManagementRequestBuilder) RoleScopeTags() *DeviceManagementRoleScopeTagsCollectionRequestBuilder { + bb := &DeviceManagementRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleScopeTags" + return bb +} + +// DeviceManagementRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection +type DeviceManagementRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RoleScopeTag collection +func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) Request() *DeviceManagementRoleScopeTagsCollectionRequest { + return &DeviceManagementRoleScopeTagsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RoleScopeTag item +func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder { + bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementRoleScopeTagsCollectionRequest is request for RoleScopeTag collection +type DeviceManagementRoleScopeTagsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RoleScopeTag collection +func (r *DeviceManagementRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleScopeTag + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleScopeTag + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RoleScopeTag collection, max N pages +func (r *DeviceManagementRoleScopeTagsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTag, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RoleScopeTag collection +func (r *DeviceManagementRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RoleScopeTag collection +func (r *DeviceManagementRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection +func (b *DeviceManagementRequestBuilder) SettingDefinitions() *DeviceManagementSettingDefinitionsCollectionRequestBuilder { + bb := &DeviceManagementSettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settingDefinitions" + return bb +} + +// DeviceManagementSettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection +type DeviceManagementSettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingDefinition collection +func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingDefinitionsCollectionRequest { + return &DeviceManagementSettingDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingDefinition item +func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder { + bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementSettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection +type DeviceManagementSettingDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingDefinition collection, max N pages +func (r *DeviceManagementSettingDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SoftwareUpdateStatusSummary is navigation property +func (b *DeviceManagementRequestBuilder) SoftwareUpdateStatusSummary() *SoftwareUpdateStatusSummaryRequestBuilder { + bb := &SoftwareUpdateStatusSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/softwareUpdateStatusSummary" + return bb +} + +// TelecomExpenseManagementPartners returns request builder for TelecomExpenseManagementPartner collection +func (b *DeviceManagementRequestBuilder) TelecomExpenseManagementPartners() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder { + bb := &DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/telecomExpenseManagementPartners" + return bb +} + +// DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder is request builder for TelecomExpenseManagementPartner collection +type DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TelecomExpenseManagementPartner collection +func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest { + return &DeviceManagementTelecomExpenseManagementPartnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TelecomExpenseManagementPartner item +func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) ID(id string) *TelecomExpenseManagementPartnerRequestBuilder { + bb := &TelecomExpenseManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTelecomExpenseManagementPartnersCollectionRequest is request for TelecomExpenseManagementPartner collection +type DeviceManagementTelecomExpenseManagementPartnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TelecomExpenseManagementPartner collection +func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TelecomExpenseManagementPartner, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TelecomExpenseManagementPartner + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TelecomExpenseManagementPartner + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TelecomExpenseManagementPartner collection, max N pages +func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]TelecomExpenseManagementPartner, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TelecomExpenseManagementPartner collection +func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Get(ctx context.Context) ([]TelecomExpenseManagementPartner, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TelecomExpenseManagementPartner collection +func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *TelecomExpenseManagementPartner) (resObj *TelecomExpenseManagementPartner, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Templates returns request builder for DeviceManagementTemplate collection +func (b *DeviceManagementRequestBuilder) Templates() *DeviceManagementTemplatesCollectionRequestBuilder { + bb := &DeviceManagementTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/templates" + return bb +} + +// DeviceManagementTemplatesCollectionRequestBuilder is request builder for DeviceManagementTemplate collection +type DeviceManagementTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementTemplate collection +func (b *DeviceManagementTemplatesCollectionRequestBuilder) Request() *DeviceManagementTemplatesCollectionRequest { + return &DeviceManagementTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementTemplate item +func (b *DeviceManagementTemplatesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder { + bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTemplatesCollectionRequest is request for DeviceManagementTemplate collection +type DeviceManagementTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementTemplate collection +func (r *DeviceManagementTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementTemplate collection, max N pages +func (r *DeviceManagementTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementTemplate collection +func (r *DeviceManagementTemplatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementTemplate collection +func (r *DeviceManagementTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TermsAndConditions returns request builder for TermsAndConditions collection +func (b *DeviceManagementRequestBuilder) TermsAndConditions() *DeviceManagementTermsAndConditionsCollectionRequestBuilder { + bb := &DeviceManagementTermsAndConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/termsAndConditions" + return bb +} + +// DeviceManagementTermsAndConditionsCollectionRequestBuilder is request builder for TermsAndConditions collection +type DeviceManagementTermsAndConditionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TermsAndConditions collection +func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) Request() *DeviceManagementTermsAndConditionsCollectionRequest { + return &DeviceManagementTermsAndConditionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TermsAndConditions item +func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) ID(id string) *TermsAndConditionsRequestBuilder { + bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTermsAndConditionsCollectionRequest is request for TermsAndConditions collection +type DeviceManagementTermsAndConditionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TermsAndConditions collection +func (r *DeviceManagementTermsAndConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditions, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TermsAndConditions + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TermsAndConditions + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TermsAndConditions collection, max N pages +func (r *DeviceManagementTermsAndConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditions, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TermsAndConditions collection +func (r *DeviceManagementTermsAndConditionsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditions, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TermsAndConditions collection +func (r *DeviceManagementTermsAndConditionsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditions) (resObj *TermsAndConditions, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection +func (b *DeviceManagementRequestBuilder) TroubleshootingEvents() *DeviceManagementTroubleshootingEventsCollectionRequestBuilder { + bb := &DeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/troubleshootingEvents" + return bb +} + +// DeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection +type DeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementTroubleshootingEvent collection +func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementTroubleshootingEventsCollectionRequest { + return &DeviceManagementTroubleshootingEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementTroubleshootingEvent item +func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder { + bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection +type DeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection +func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTroubleshootingEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementTroubleshootingEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementTroubleshootingEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementTroubleshootingEvent collection, max N pages +func (r *DeviceManagementTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTroubleshootingEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementTroubleshootingEvent collection +func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementTroubleshootingEvent collection +func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserExperienceAnalyticsBaselines returns request builder for UserExperienceAnalyticsBaseline collection +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsBaselines() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder { + bb := &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsBaselines" + return bb +} + +// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder is request builder for UserExperienceAnalyticsBaseline collection +type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsBaseline collection +func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest { + return &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsBaseline item +func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsBaselineRequestBuilder { + bb := &UserExperienceAnalyticsBaselineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest is request for UserExperienceAnalyticsBaseline collection +type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsBaseline collection +func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsBaseline, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsBaseline + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsBaseline + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsBaseline collection, max N pages +func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsBaseline, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsBaseline collection +func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsBaseline, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsBaseline collection +func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) (resObj *UserExperienceAnalyticsBaseline, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserExperienceAnalyticsCategories returns request builder for UserExperienceAnalyticsCategory collection +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsCategories() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder { + bb := &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsCategories" + return bb +} + +// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder is request builder for UserExperienceAnalyticsCategory collection +type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsCategory collection +func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest { + return &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsCategory item +func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsCategoryRequestBuilder { + bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest is request for UserExperienceAnalyticsCategory collection +type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsCategory collection +func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsCategory collection, max N pages +func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsCategory collection +func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsCategory collection +func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) (resObj *UserExperienceAnalyticsCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserExperienceAnalyticsDevicePerformance returns request builder for UserExperienceAnalyticsDevicePerformance collection +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDevicePerformance() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder { + bb := &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsDevicePerformance" + return bb +} + +// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance collection +type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsDevicePerformance collection +func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest { + return &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsDevicePerformance item +func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDevicePerformanceRequestBuilder { + bb := &UserExperienceAnalyticsDevicePerformanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest is request for UserExperienceAnalyticsDevicePerformance collection +type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsDevicePerformance collection +func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsDevicePerformance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsDevicePerformance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsDevicePerformance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsDevicePerformance collection, max N pages +func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsDevicePerformance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsDevicePerformance collection +func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDevicePerformance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsDevicePerformance collection +func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) (resObj *UserExperienceAnalyticsDevicePerformance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserExperienceAnalyticsDeviceStartupHistory returns request builder for UserExperienceAnalyticsDeviceStartupHistory collection +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDeviceStartupHistory() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder { + bb := &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsDeviceStartupHistory" + return bb +} + +// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory collection +type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsDeviceStartupHistory collection +func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest { + return &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsDeviceStartupHistory item +func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder { + bb := &UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest is request for UserExperienceAnalyticsDeviceStartupHistory collection +type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsDeviceStartupHistory collection +func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsDeviceStartupHistory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsDeviceStartupHistory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsDeviceStartupHistory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection, max N pages +func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsDeviceStartupHistory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection +func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDeviceStartupHistory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsDeviceStartupHistory collection +func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserExperienceAnalyticsOverview is navigation property +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsOverview() *UserExperienceAnalyticsOverviewRequestBuilder { + bb := &UserExperienceAnalyticsOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsOverview" + return bb +} + +// UserExperienceAnalyticsRegressionSummary is navigation property +func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsRegressionSummary() *UserExperienceAnalyticsRegressionSummaryRequestBuilder { + bb := &UserExperienceAnalyticsRegressionSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userExperienceAnalyticsRegressionSummary" + return bb +} + +// UserPfxCertificates returns request builder for UserPFXCertificate collection +func (b *DeviceManagementRequestBuilder) UserPfxCertificates() *DeviceManagementUserPfxCertificatesCollectionRequestBuilder { + bb := &DeviceManagementUserPfxCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userPfxCertificates" + return bb +} + +// DeviceManagementUserPfxCertificatesCollectionRequestBuilder is request builder for UserPFXCertificate collection +type DeviceManagementUserPfxCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserPFXCertificate collection +func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) Request() *DeviceManagementUserPfxCertificatesCollectionRequest { + return &DeviceManagementUserPfxCertificatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserPFXCertificate item +func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) ID(id string) *UserPFXCertificateRequestBuilder { + bb := &UserPFXCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementUserPfxCertificatesCollectionRequest is request for UserPFXCertificate collection +type DeviceManagementUserPfxCertificatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserPFXCertificate collection +func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserPFXCertificate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserPFXCertificate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserPFXCertificate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserPFXCertificate collection, max N pages +func (r *DeviceManagementUserPfxCertificatesCollectionRequest) GetN(ctx context.Context, n int) ([]UserPFXCertificate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserPFXCertificate collection +func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Get(ctx context.Context) ([]UserPFXCertificate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserPFXCertificate collection +func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Add(ctx context.Context, reqObj *UserPFXCertificate) (resObj *UserPFXCertificate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsAutopilotDeploymentProfiles returns request builder for WindowsAutopilotDeploymentProfile collection +func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeploymentProfiles() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder { + bb := &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsAutopilotDeploymentProfiles" + return bb +} + +// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfile collection +type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsAutopilotDeploymentProfile collection +func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest { + return &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsAutopilotDeploymentProfile item +func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest is request for WindowsAutopilotDeploymentProfile collection +type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsAutopilotDeploymentProfile collection +func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeploymentProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsAutopilotDeploymentProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsAutopilotDeploymentProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsAutopilotDeploymentProfile collection, max N pages +func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeploymentProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsAutopilotDeploymentProfile collection +func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsAutopilotDeploymentProfile collection +func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) (resObj *WindowsAutopilotDeploymentProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsAutopilotDeviceIdentities returns request builder for WindowsAutopilotDeviceIdentity collection +func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeviceIdentities() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder { + bb := &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsAutopilotDeviceIdentities" + return bb +} + +// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection +type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsAutopilotDeviceIdentity collection +func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest { + return &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsAutopilotDeviceIdentity item +func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection +type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsAutopilotDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsAutopilotDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsAutopilotDeviceIdentity collection, max N pages +func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsAutopilotDeviceIdentity collection +func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsAutopilotSettings is navigation property +func (b *DeviceManagementRequestBuilder) WindowsAutopilotSettings() *WindowsAutopilotSettingsRequestBuilder { + bb := &WindowsAutopilotSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsAutopilotSettings" + return bb +} + +// WindowsFeatureUpdateProfiles returns request builder for WindowsFeatureUpdateProfile collection +func (b *DeviceManagementRequestBuilder) WindowsFeatureUpdateProfiles() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder { + bb := &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsFeatureUpdateProfiles" + return bb +} + +// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfile collection +type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsFeatureUpdateProfile collection +func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest { + return &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsFeatureUpdateProfile item +func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileRequestBuilder { + bb := &WindowsFeatureUpdateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest is request for WindowsFeatureUpdateProfile collection +type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsFeatureUpdateProfile collection +func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsFeatureUpdateProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsFeatureUpdateProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsFeatureUpdateProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsFeatureUpdateProfile collection, max N pages +func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsFeatureUpdateProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsFeatureUpdateProfile collection +func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsFeatureUpdateProfile collection +func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) (resObj *WindowsFeatureUpdateProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionAppLearningSummaries returns request builder for WindowsInformationProtectionAppLearningSummary collection +func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionAppLearningSummaries() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder { + bb := &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionAppLearningSummaries" + return bb +} + +// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLearningSummary collection +type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionAppLearningSummary collection +func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest { + return &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionAppLearningSummary item +func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLearningSummaryRequestBuilder { + bb := &WindowsInformationProtectionAppLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest is request for WindowsInformationProtectionAppLearningSummary collection +type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionAppLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLearningSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionAppLearningSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionAppLearningSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionAppLearningSummary collection, max N pages +func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLearningSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionAppLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLearningSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionAppLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLearningSummary) (resObj *WindowsInformationProtectionAppLearningSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionNetworkLearningSummaries returns request builder for WindowsInformationProtectionNetworkLearningSummary collection +func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionNetworkLearningSummaries() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder { + bb := &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionNetworkLearningSummaries" + return bb +} + +// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionNetworkLearningSummary collection +type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionNetworkLearningSummary collection +func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest { + return &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionNetworkLearningSummary item +func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionNetworkLearningSummaryRequestBuilder { + bb := &WindowsInformationProtectionNetworkLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest is request for WindowsInformationProtectionNetworkLearningSummary collection +type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionNetworkLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionNetworkLearningSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionNetworkLearningSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionNetworkLearningSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionNetworkLearningSummary collection, max N pages +func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionNetworkLearningSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionNetworkLearningSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionNetworkLearningSummary collection +func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionNetworkLearningSummary) (resObj *WindowsInformationProtectionNetworkLearningSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsMalwareInformation returns request builder for WindowsMalwareInformation collection +func (b *DeviceManagementRequestBuilder) WindowsMalwareInformation() *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder { + bb := &DeviceManagementWindowsMalwareInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsMalwareInformation" + return bb +} + +// DeviceManagementWindowsMalwareInformationCollectionRequestBuilder is request builder for WindowsMalwareInformation collection +type DeviceManagementWindowsMalwareInformationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsMalwareInformation collection +func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) Request() *DeviceManagementWindowsMalwareInformationCollectionRequest { + return &DeviceManagementWindowsMalwareInformationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsMalwareInformation item +func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) ID(id string) *WindowsMalwareInformationRequestBuilder { + bb := &WindowsMalwareInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementWindowsMalwareInformationCollectionRequest is request for WindowsMalwareInformation collection +type DeviceManagementWindowsMalwareInformationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsMalwareInformation collection +func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsMalwareInformation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsMalwareInformation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsMalwareInformation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsMalwareInformation collection, max N pages +func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsMalwareInformation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsMalwareInformation collection +func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Get(ctx context.Context) ([]WindowsMalwareInformation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsMalwareInformation collection +func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Add(ctx context.Context, reqObj *WindowsMalwareInformation) (resObj *WindowsMalwareInformation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Value returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Value() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder { + bb := &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/value" + return bb +} + +// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest { + return &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Value returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Value() *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder { + bb := &DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/value" + return bb +} + +// DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceValueCollectionRequest { + return &DeviceManagementCollectionSettingInstanceValueCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementCollectionSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementCollectionSettingInstanceValueCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Value returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Value() *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder { + bb := &DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/value" + return bb +} + +// DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementComplexSettingInstanceValueCollectionRequest { + return &DeviceManagementComplexSettingInstanceValueCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementComplexSettingInstanceValueCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ConditionalAccessSettings is navigation property +func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder { + bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/conditionalAccessSettings" + return bb +} + +// Assignments returns request builder for DeviceManagementIntentAssignment collection +func (b *DeviceManagementIntentRequestBuilder) Assignments() *DeviceManagementIntentAssignmentsCollectionRequestBuilder { + bb := &DeviceManagementIntentAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceManagementIntentAssignmentsCollectionRequestBuilder is request builder for DeviceManagementIntentAssignment collection +type DeviceManagementIntentAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntentAssignment collection +func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) Request() *DeviceManagementIntentAssignmentsCollectionRequest { + return &DeviceManagementIntentAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntentAssignment item +func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentAssignmentRequestBuilder { + bb := &DeviceManagementIntentAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentAssignmentsCollectionRequest is request for DeviceManagementIntentAssignment collection +type DeviceManagementIntentAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntentAssignment collection +func (r *DeviceManagementIntentAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntentAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntentAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntentAssignment collection, max N pages +func (r *DeviceManagementIntentAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntentAssignment collection +func (r *DeviceManagementIntentAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntentAssignment collection +func (r *DeviceManagementIntentAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentAssignment) (resObj *DeviceManagementIntentAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Categories returns request builder for DeviceManagementIntentSettingCategory collection +func (b *DeviceManagementIntentRequestBuilder) Categories() *DeviceManagementIntentCategoriesCollectionRequestBuilder { + bb := &DeviceManagementIntentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// DeviceManagementIntentCategoriesCollectionRequestBuilder is request builder for DeviceManagementIntentSettingCategory collection +type DeviceManagementIntentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntentSettingCategory collection +func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) Request() *DeviceManagementIntentCategoriesCollectionRequest { + return &DeviceManagementIntentCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntentSettingCategory item +func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentSettingCategoryRequestBuilder { + bb := &DeviceManagementIntentSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentCategoriesCollectionRequest is request for DeviceManagementIntentSettingCategory collection +type DeviceManagementIntentCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntentSettingCategory collection +func (r *DeviceManagementIntentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentSettingCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntentSettingCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntentSettingCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntentSettingCategory collection, max N pages +func (r *DeviceManagementIntentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentSettingCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntentSettingCategory collection +func (r *DeviceManagementIntentCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentSettingCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntentSettingCategory collection +func (r *DeviceManagementIntentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) (resObj *DeviceManagementIntentSettingCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceSettingStateSummaries returns request builder for DeviceManagementIntentDeviceSettingStateSummary collection +func (b *DeviceManagementIntentRequestBuilder) DeviceSettingStateSummaries() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder { + bb := &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceSettingStateSummaries" + return bb +} + +// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary collection +type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntentDeviceSettingStateSummary collection +func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest { + return &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntentDeviceSettingStateSummary item +func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder { + bb := &DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest is request for DeviceManagementIntentDeviceSettingStateSummary collection +type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntentDeviceSettingStateSummary collection +func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentDeviceSettingStateSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntentDeviceSettingStateSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntentDeviceSettingStateSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection, max N pages +func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentDeviceSettingStateSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection +func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceSettingStateSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntentDeviceSettingStateSummary collection +func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStateSummary is navigation property +func (b *DeviceManagementIntentRequestBuilder) DeviceStateSummary() *DeviceManagementIntentDeviceStateSummaryRequestBuilder { + bb := &DeviceManagementIntentDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStateSummary" + return bb +} + +// DeviceStates returns request builder for DeviceManagementIntentDeviceState collection +func (b *DeviceManagementIntentRequestBuilder) DeviceStates() *DeviceManagementIntentDeviceStatesCollectionRequestBuilder { + bb := &DeviceManagementIntentDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStates" + return bb +} + +// DeviceManagementIntentDeviceStatesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceState collection +type DeviceManagementIntentDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntentDeviceState collection +func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceStatesCollectionRequest { + return &DeviceManagementIntentDeviceStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntentDeviceState item +func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceStateRequestBuilder { + bb := &DeviceManagementIntentDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentDeviceStatesCollectionRequest is request for DeviceManagementIntentDeviceState collection +type DeviceManagementIntentDeviceStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntentDeviceState collection +func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntentDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntentDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntentDeviceState collection, max N pages +func (r *DeviceManagementIntentDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntentDeviceState collection +func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntentDeviceState collection +func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) (resObj *DeviceManagementIntentDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementIntentRequestBuilder) Settings() *DeviceManagementIntentSettingsCollectionRequestBuilder { + bb := &DeviceManagementIntentSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// DeviceManagementIntentSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementIntentSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingsCollectionRequest { + return &DeviceManagementIntentSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentSettingsCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementIntentSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementIntentSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStateSummary is navigation property +func (b *DeviceManagementIntentRequestBuilder) UserStateSummary() *DeviceManagementIntentUserStateSummaryRequestBuilder { + bb := &DeviceManagementIntentUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStateSummary" + return bb +} + +// UserStates returns request builder for DeviceManagementIntentUserState collection +func (b *DeviceManagementIntentRequestBuilder) UserStates() *DeviceManagementIntentUserStatesCollectionRequestBuilder { + bb := &DeviceManagementIntentUserStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStates" + return bb +} + +// DeviceManagementIntentUserStatesCollectionRequestBuilder is request builder for DeviceManagementIntentUserState collection +type DeviceManagementIntentUserStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementIntentUserState collection +func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) Request() *DeviceManagementIntentUserStatesCollectionRequest { + return &DeviceManagementIntentUserStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementIntentUserState item +func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentUserStateRequestBuilder { + bb := &DeviceManagementIntentUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentUserStatesCollectionRequest is request for DeviceManagementIntentUserState collection +type DeviceManagementIntentUserStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementIntentUserState collection +func (r *DeviceManagementIntentUserStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentUserState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementIntentUserState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementIntentUserState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementIntentUserState collection, max N pages +func (r *DeviceManagementIntentUserStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentUserState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementIntentUserState collection +func (r *DeviceManagementIntentUserStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentUserState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementIntentUserState collection +func (r *DeviceManagementIntentUserStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentUserState) (resObj *DeviceManagementIntentUserState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Settings() *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder { + bb := &DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingCategorySettingsCollectionRequest { + return &DeviceManagementIntentSettingCategorySettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementIntentSettingCategorySettingsCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementIntentSettingCategorySettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CachedReportConfigurations returns request builder for DeviceManagementCachedReportConfiguration collection +func (b *DeviceManagementReportsRequestBuilder) CachedReportConfigurations() *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder { + bb := &DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/cachedReportConfigurations" + return bb +} + +// DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder is request builder for DeviceManagementCachedReportConfiguration collection +type DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementCachedReportConfiguration collection +func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) Request() *DeviceManagementReportsCachedReportConfigurationsCollectionRequest { + return &DeviceManagementReportsCachedReportConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementCachedReportConfiguration item +func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) ID(id string) *DeviceManagementCachedReportConfigurationRequestBuilder { + bb := &DeviceManagementCachedReportConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementReportsCachedReportConfigurationsCollectionRequest is request for DeviceManagementCachedReportConfiguration collection +type DeviceManagementReportsCachedReportConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementCachedReportConfiguration collection +func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementCachedReportConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementCachedReportConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementCachedReportConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementCachedReportConfiguration collection, max N pages +func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementCachedReportConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementCachedReportConfiguration collection +func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementCachedReportConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementCachedReportConfiguration collection +func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) (resObj *DeviceManagementCachedReportConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExportJobs returns request builder for DeviceManagementExportJob collection +func (b *DeviceManagementReportsRequestBuilder) ExportJobs() *DeviceManagementReportsExportJobsCollectionRequestBuilder { + bb := &DeviceManagementReportsExportJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exportJobs" + return bb +} + +// DeviceManagementReportsExportJobsCollectionRequestBuilder is request builder for DeviceManagementExportJob collection +type DeviceManagementReportsExportJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementExportJob collection +func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) Request() *DeviceManagementReportsExportJobsCollectionRequest { + return &DeviceManagementReportsExportJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementExportJob item +func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) ID(id string) *DeviceManagementExportJobRequestBuilder { + bb := &DeviceManagementExportJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementReportsExportJobsCollectionRequest is request for DeviceManagementExportJob collection +type DeviceManagementReportsExportJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementExportJob collection +func (r *DeviceManagementReportsExportJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExportJob, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementExportJob + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementExportJob + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementExportJob collection, max N pages +func (r *DeviceManagementReportsExportJobsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExportJob, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementExportJob collection +func (r *DeviceManagementReportsExportJobsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExportJob, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementExportJob collection +func (r *DeviceManagementReportsExportJobsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExportJob) (resObj *DeviceManagementExportJob, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ReportSchedules returns request builder for DeviceManagementReportSchedule collection +func (b *DeviceManagementReportsRequestBuilder) ReportSchedules() *DeviceManagementReportsReportSchedulesCollectionRequestBuilder { + bb := &DeviceManagementReportsReportSchedulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/reportSchedules" + return bb +} + +// DeviceManagementReportsReportSchedulesCollectionRequestBuilder is request builder for DeviceManagementReportSchedule collection +type DeviceManagementReportsReportSchedulesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementReportSchedule collection +func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) Request() *DeviceManagementReportsReportSchedulesCollectionRequest { + return &DeviceManagementReportsReportSchedulesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementReportSchedule item +func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) ID(id string) *DeviceManagementReportScheduleRequestBuilder { + bb := &DeviceManagementReportScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementReportsReportSchedulesCollectionRequest is request for DeviceManagementReportSchedule collection +type DeviceManagementReportsReportSchedulesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementReportSchedule collection +func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementReportSchedule, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementReportSchedule + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementReportSchedule + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementReportSchedule collection, max N pages +func (r *DeviceManagementReportsReportSchedulesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementReportSchedule, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementReportSchedule collection +func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementReportSchedule, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementReportSchedule collection +func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementReportSchedule) (resObj *DeviceManagementReportSchedule, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for DeviceManagementScriptAssignment collection +func (b *DeviceManagementScriptRequestBuilder) Assignments() *DeviceManagementScriptAssignmentsCollectionRequestBuilder { + bb := &DeviceManagementScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// DeviceManagementScriptAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptAssignment collection +type DeviceManagementScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScriptAssignment collection +func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptAssignmentsCollectionRequest { + return &DeviceManagementScriptAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScriptAssignment item +func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptAssignmentRequestBuilder { + bb := &DeviceManagementScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementScriptAssignmentsCollectionRequest is request for DeviceManagementScriptAssignment collection +type DeviceManagementScriptAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScriptAssignment collection +func (r *DeviceManagementScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScriptAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScriptAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScriptAssignment collection, max N pages +func (r *DeviceManagementScriptAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScriptAssignment collection +func (r *DeviceManagementScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScriptAssignment collection +func (r *DeviceManagementScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptAssignment) (resObj *DeviceManagementScriptAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection +func (b *DeviceManagementScriptRequestBuilder) DeviceRunStates() *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder { + bb := &DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceRunStates" + return bb +} + +// DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection +type DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScriptDeviceState collection +func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptDeviceRunStatesCollectionRequest { + return &DeviceManagementScriptDeviceRunStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScriptDeviceState item +func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder { + bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementScriptDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection +type DeviceManagementScriptDeviceRunStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScriptDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScriptDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScriptDeviceState collection, max N pages +func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupAssignments returns request builder for DeviceManagementScriptGroupAssignment collection +func (b *DeviceManagementScriptRequestBuilder) GroupAssignments() *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder { + bb := &DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupAssignments" + return bb +} + +// DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptGroupAssignment collection +type DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScriptGroupAssignment collection +func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentsCollectionRequest { + return &DeviceManagementScriptGroupAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScriptGroupAssignment item +func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptGroupAssignmentRequestBuilder { + bb := &DeviceManagementScriptGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementScriptGroupAssignmentsCollectionRequest is request for DeviceManagementScriptGroupAssignment collection +type DeviceManagementScriptGroupAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScriptGroupAssignment collection +func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptGroupAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScriptGroupAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScriptGroupAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScriptGroupAssignment collection, max N pages +func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptGroupAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScriptGroupAssignment collection +func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptGroupAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScriptGroupAssignment collection +func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) (resObj *DeviceManagementScriptGroupAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RunSummary is navigation property +func (b *DeviceManagementScriptRequestBuilder) RunSummary() *DeviceManagementScriptRunSummaryRequestBuilder { + bb := &DeviceManagementScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/runSummary" + return bb +} + +// UserRunStates returns request builder for DeviceManagementScriptUserState collection +func (b *DeviceManagementScriptRequestBuilder) UserRunStates() *DeviceManagementScriptUserRunStatesCollectionRequestBuilder { + bb := &DeviceManagementScriptUserRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userRunStates" + return bb +} + +// DeviceManagementScriptUserRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptUserState collection +type DeviceManagementScriptUserRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScriptUserState collection +func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserRunStatesCollectionRequest { + return &DeviceManagementScriptUserRunStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScriptUserState item +func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptUserStateRequestBuilder { + bb := &DeviceManagementScriptUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementScriptUserRunStatesCollectionRequest is request for DeviceManagementScriptUserState collection +type DeviceManagementScriptUserRunStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScriptUserState collection +func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptUserState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScriptUserState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScriptUserState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScriptUserState collection, max N pages +func (r *DeviceManagementScriptUserRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptUserState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScriptUserState collection +func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptUserState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScriptUserState collection +func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptUserState) (resObj *DeviceManagementScriptUserState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDevice is navigation property +func (b *DeviceManagementScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder { + bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevice" + return bb +} + +// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection +func (b *DeviceManagementScriptUserStateRequestBuilder) DeviceRunStates() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder { + bb := &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceRunStates" + return bb +} + +// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection +type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementScriptDeviceState collection +func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest { + return &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementScriptDeviceState item +func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder { + bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection +type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementScriptDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementScriptDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementScriptDeviceState collection, max N pages +func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementScriptDeviceState collection +func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection +func (b *DeviceManagementSettingCategoryRequestBuilder) SettingDefinitions() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder { + bb := &DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settingDefinitions" + return bb +} + +// DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection +type DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingDefinition collection +func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest { + return &DeviceManagementSettingCategorySettingDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingDefinition item +func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder { + bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementSettingCategorySettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection +type DeviceManagementSettingCategorySettingDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingDefinition collection, max N pages +func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingDefinition collection +func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Categories returns request builder for DeviceManagementTemplateSettingCategory collection +func (b *DeviceManagementTemplateRequestBuilder) Categories() *DeviceManagementTemplateCategoriesCollectionRequestBuilder { + bb := &DeviceManagementTemplateCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// DeviceManagementTemplateCategoriesCollectionRequestBuilder is request builder for DeviceManagementTemplateSettingCategory collection +type DeviceManagementTemplateCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementTemplateSettingCategory collection +func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) Request() *DeviceManagementTemplateCategoriesCollectionRequest { + return &DeviceManagementTemplateCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementTemplateSettingCategory item +func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateSettingCategoryRequestBuilder { + bb := &DeviceManagementTemplateSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTemplateCategoriesCollectionRequest is request for DeviceManagementTemplateSettingCategory collection +type DeviceManagementTemplateCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementTemplateSettingCategory collection +func (r *DeviceManagementTemplateCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplateSettingCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementTemplateSettingCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementTemplateSettingCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementTemplateSettingCategory collection, max N pages +func (r *DeviceManagementTemplateCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplateSettingCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementTemplateSettingCategory collection +func (r *DeviceManagementTemplateCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplateSettingCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementTemplateSettingCategory collection +func (r *DeviceManagementTemplateCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) (resObj *DeviceManagementTemplateSettingCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MigratableTo returns request builder for DeviceManagementTemplate collection +func (b *DeviceManagementTemplateRequestBuilder) MigratableTo() *DeviceManagementTemplateMigratableToCollectionRequestBuilder { + bb := &DeviceManagementTemplateMigratableToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/migratableTo" + return bb +} + +// DeviceManagementTemplateMigratableToCollectionRequestBuilder is request builder for DeviceManagementTemplate collection +type DeviceManagementTemplateMigratableToCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementTemplate collection +func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) Request() *DeviceManagementTemplateMigratableToCollectionRequest { + return &DeviceManagementTemplateMigratableToCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementTemplate item +func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder { + bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTemplateMigratableToCollectionRequest is request for DeviceManagementTemplate collection +type DeviceManagementTemplateMigratableToCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementTemplate collection +func (r *DeviceManagementTemplateMigratableToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementTemplate collection, max N pages +func (r *DeviceManagementTemplateMigratableToCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementTemplate collection +func (r *DeviceManagementTemplateMigratableToCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementTemplate collection +func (r *DeviceManagementTemplateMigratableToCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementTemplateRequestBuilder) Settings() *DeviceManagementTemplateSettingsCollectionRequestBuilder { + bb := &DeviceManagementTemplateSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// DeviceManagementTemplateSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementTemplateSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingsCollectionRequest { + return &DeviceManagementTemplateSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTemplateSettingsCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementTemplateSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementTemplateSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RecommendedSettings returns request builder for DeviceManagementSettingInstance collection +func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) RecommendedSettings() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder { + bb := &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/recommendedSettings" + return bb +} + +// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection +type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementSettingInstance collection +func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest { + return &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementSettingInstance item +func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder { + bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest is request for DeviceManagementSettingInstance collection +type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementSettingInstance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementSettingInstance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages +func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementSettingInstance collection +func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go new file mode 100644 index 00000000..0ecc3167 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DimensionValues returns request builder for DimensionValue collection +func (b *DimensionRequestBuilder) DimensionValues() *DimensionDimensionValuesCollectionRequestBuilder { + bb := &DimensionDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dimensionValues" + return bb +} + +// DimensionDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection +type DimensionDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DimensionValue collection +func (b *DimensionDimensionValuesCollectionRequestBuilder) Request() *DimensionDimensionValuesCollectionRequest { + return &DimensionDimensionValuesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DimensionValue item +func (b *DimensionDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder { + bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DimensionDimensionValuesCollectionRequest is request for DimensionValue collection +type DimensionDimensionValuesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DimensionValue collection +func (r *DimensionDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DimensionValue, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DimensionValue + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DimensionValue + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DimensionValue collection, max N pages +func (r *DimensionDimensionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]DimensionValue, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DimensionValue collection +func (r *DimensionDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DimensionValue collection +func (r *DimensionDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go new file mode 100644 index 00000000..0fc8b2bf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go @@ -0,0 +1,480 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DirectoryObjectCollectionGetByIDsRequestParameter undocumented +type DirectoryObjectCollectionGetByIDsRequestParameter struct { + // IDs undocumented + IDs []string `json:"ids,omitempty"` + // Types undocumented + Types []string `json:"types,omitempty"` +} + +// DirectoryObjectCollectionValidatePropertiesRequestParameter undocumented +type DirectoryObjectCollectionValidatePropertiesRequestParameter struct { + // EntityType undocumented + EntityType *string `json:"entityType,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // OnBehalfOfUserID undocumented + OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"` +} + +// DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter undocumented +type DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter struct { + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// DirectoryDefinitionDiscoverRequestParameter undocumented +type DirectoryDefinitionDiscoverRequestParameter struct { +} + +// DirectoryObjectCheckMemberGroupsRequestParameter undocumented +type DirectoryObjectCheckMemberGroupsRequestParameter struct { + // GroupIDs undocumented + GroupIDs []string `json:"groupIds,omitempty"` +} + +// DirectoryObjectCheckMemberObjectsRequestParameter undocumented +type DirectoryObjectCheckMemberObjectsRequestParameter struct { + // IDs undocumented + IDs []string `json:"ids,omitempty"` +} + +// DirectoryObjectGetMemberGroupsRequestParameter undocumented +type DirectoryObjectGetMemberGroupsRequestParameter struct { + // SecurityEnabledOnly undocumented + SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"` +} + +// DirectoryObjectGetMemberObjectsRequestParameter undocumented +type DirectoryObjectGetMemberObjectsRequestParameter struct { + // SecurityEnabledOnly undocumented + SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"` +} + +// DirectoryObjectRestoreRequestParameter undocumented +type DirectoryObjectRestoreRequestParameter struct { +} + +// DeletedItems returns request builder for DirectoryObject collection +func (b *DirectoryRequestBuilder) DeletedItems() *DirectoryDeletedItemsCollectionRequestBuilder { + bb := &DirectoryDeletedItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deletedItems" + return bb +} + +// DirectoryDeletedItemsCollectionRequestBuilder is request builder for DirectoryObject collection +type DirectoryDeletedItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DirectoryDeletedItemsCollectionRequestBuilder) Request() *DirectoryDeletedItemsCollectionRequest { + return &DirectoryDeletedItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DirectoryDeletedItemsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DirectoryDeletedItemsCollectionRequest is request for DirectoryObject collection +type DirectoryDeletedItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DirectoryDeletedItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DirectoryDeletedItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DirectoryDeletedItemsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DirectoryDeletedItemsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// FeatureRolloutPolicies returns request builder for FeatureRolloutPolicy collection +func (b *DirectoryRequestBuilder) FeatureRolloutPolicies() *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder { + bb := &DirectoryFeatureRolloutPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/featureRolloutPolicies" + return bb +} + +// DirectoryFeatureRolloutPoliciesCollectionRequestBuilder is request builder for FeatureRolloutPolicy collection +type DirectoryFeatureRolloutPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for FeatureRolloutPolicy collection +func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) Request() *DirectoryFeatureRolloutPoliciesCollectionRequest { + return &DirectoryFeatureRolloutPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for FeatureRolloutPolicy item +func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) ID(id string) *FeatureRolloutPolicyRequestBuilder { + bb := &FeatureRolloutPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DirectoryFeatureRolloutPoliciesCollectionRequest is request for FeatureRolloutPolicy collection +type DirectoryFeatureRolloutPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for FeatureRolloutPolicy collection +func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FeatureRolloutPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []FeatureRolloutPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []FeatureRolloutPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for FeatureRolloutPolicy collection, max N pages +func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]FeatureRolloutPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for FeatureRolloutPolicy collection +func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Get(ctx context.Context) ([]FeatureRolloutPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for FeatureRolloutPolicy collection +func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Add(ctx context.Context, reqObj *FeatureRolloutPolicy) (resObj *FeatureRolloutPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Members returns request builder for DirectoryObject collection +func (b *DirectoryRoleRequestBuilder) Members() *DirectoryRoleMembersCollectionRequestBuilder { + bb := &DirectoryRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// DirectoryRoleMembersCollectionRequestBuilder is request builder for DirectoryObject collection +type DirectoryRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DirectoryRoleMembersCollectionRequestBuilder) Request() *DirectoryRoleMembersCollectionRequest { + return &DirectoryRoleMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DirectoryRoleMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DirectoryRoleMembersCollectionRequest is request for DirectoryObject collection +type DirectoryRoleMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DirectoryRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DirectoryRoleMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DirectoryRoleMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DirectoryRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScopedMembers returns request builder for ScopedRoleMembership collection +func (b *DirectoryRoleRequestBuilder) ScopedMembers() *DirectoryRoleScopedMembersCollectionRequestBuilder { + bb := &DirectoryRoleScopedMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scopedMembers" + return bb +} + +// DirectoryRoleScopedMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection +type DirectoryRoleScopedMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ScopedRoleMembership collection +func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) Request() *DirectoryRoleScopedMembersCollectionRequest { + return &DirectoryRoleScopedMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ScopedRoleMembership item +func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder { + bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DirectoryRoleScopedMembersCollectionRequest is request for ScopedRoleMembership collection +type DirectoryRoleScopedMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ScopedRoleMembership collection +func (r *DirectoryRoleScopedMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ScopedRoleMembership + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ScopedRoleMembership + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ScopedRoleMembership collection, max N pages +func (r *DirectoryRoleScopedMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ScopedRoleMembership collection +func (r *DirectoryRoleScopedMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ScopedRoleMembership collection +func (r *DirectoryRoleScopedMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go new file mode 100644 index 00000000..fb954b16 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go @@ -0,0 +1,216 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Comments returns request builder for DocumentComment collection +func (b *DocumentRequestBuilder) Comments() *DocumentCommentsCollectionRequestBuilder { + bb := &DocumentCommentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/comments" + return bb +} + +// DocumentCommentsCollectionRequestBuilder is request builder for DocumentComment collection +type DocumentCommentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DocumentComment collection +func (b *DocumentCommentsCollectionRequestBuilder) Request() *DocumentCommentsCollectionRequest { + return &DocumentCommentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DocumentComment item +func (b *DocumentCommentsCollectionRequestBuilder) ID(id string) *DocumentCommentRequestBuilder { + bb := &DocumentCommentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DocumentCommentsCollectionRequest is request for DocumentComment collection +type DocumentCommentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DocumentComment collection +func (r *DocumentCommentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DocumentComment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DocumentComment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DocumentComment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DocumentComment collection, max N pages +func (r *DocumentCommentsCollectionRequest) GetN(ctx context.Context, n int) ([]DocumentComment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DocumentComment collection +func (r *DocumentCommentsCollectionRequest) Get(ctx context.Context) ([]DocumentComment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DocumentComment collection +func (r *DocumentCommentsCollectionRequest) Add(ctx context.Context, reqObj *DocumentComment) (resObj *DocumentComment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Replies returns request builder for DocumentCommentReply collection +func (b *DocumentCommentRequestBuilder) Replies() *DocumentCommentRepliesCollectionRequestBuilder { + bb := &DocumentCommentRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/replies" + return bb +} + +// DocumentCommentRepliesCollectionRequestBuilder is request builder for DocumentCommentReply collection +type DocumentCommentRepliesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DocumentCommentReply collection +func (b *DocumentCommentRepliesCollectionRequestBuilder) Request() *DocumentCommentRepliesCollectionRequest { + return &DocumentCommentRepliesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DocumentCommentReply item +func (b *DocumentCommentRepliesCollectionRequestBuilder) ID(id string) *DocumentCommentReplyRequestBuilder { + bb := &DocumentCommentReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DocumentCommentRepliesCollectionRequest is request for DocumentCommentReply collection +type DocumentCommentRepliesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DocumentCommentReply collection +func (r *DocumentCommentRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DocumentCommentReply, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DocumentCommentReply + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DocumentCommentReply + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DocumentCommentReply collection, max N pages +func (r *DocumentCommentRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]DocumentCommentReply, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DocumentCommentReply collection +func (r *DocumentCommentRepliesCollectionRequest) Get(ctx context.Context) ([]DocumentCommentReply, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DocumentCommentReply collection +func (r *DocumentCommentRepliesCollectionRequest) Add(ctx context.Context, reqObj *DocumentCommentReply) (resObj *DocumentCommentReply, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go new file mode 100644 index 00000000..375a20fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go @@ -0,0 +1,328 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DomainForceDeleteRequestParameter undocumented +type DomainForceDeleteRequestParameter struct { + // DisableUserAccounts undocumented + DisableUserAccounts *bool `json:"disableUserAccounts,omitempty"` +} + +// DomainVerifyRequestParameter undocumented +type DomainVerifyRequestParameter struct { +} + +// DomainNameReferences returns request builder for DirectoryObject collection +func (b *DomainRequestBuilder) DomainNameReferences() *DomainDomainNameReferencesCollectionRequestBuilder { + bb := &DomainDomainNameReferencesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domainNameReferences" + return bb +} + +// DomainDomainNameReferencesCollectionRequestBuilder is request builder for DirectoryObject collection +type DomainDomainNameReferencesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *DomainDomainNameReferencesCollectionRequestBuilder) Request() *DomainDomainNameReferencesCollectionRequest { + return &DomainDomainNameReferencesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *DomainDomainNameReferencesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DomainDomainNameReferencesCollectionRequest is request for DirectoryObject collection +type DomainDomainNameReferencesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *DomainDomainNameReferencesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *DomainDomainNameReferencesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *DomainDomainNameReferencesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *DomainDomainNameReferencesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ServiceConfigurationRecords returns request builder for DomainDNSRecord collection +func (b *DomainRequestBuilder) ServiceConfigurationRecords() *DomainServiceConfigurationRecordsCollectionRequestBuilder { + bb := &DomainServiceConfigurationRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/serviceConfigurationRecords" + return bb +} + +// DomainServiceConfigurationRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection +type DomainServiceConfigurationRecordsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DomainDNSRecord collection +func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) Request() *DomainServiceConfigurationRecordsCollectionRequest { + return &DomainServiceConfigurationRecordsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DomainDNSRecord item +func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder { + bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DomainServiceConfigurationRecordsCollectionRequest is request for DomainDNSRecord collection +type DomainServiceConfigurationRecordsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DomainDNSRecord collection +func (r *DomainServiceConfigurationRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DomainDNSRecord + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DomainDNSRecord + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DomainDNSRecord collection, max N pages +func (r *DomainServiceConfigurationRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DomainDNSRecord collection +func (r *DomainServiceConfigurationRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DomainDNSRecord collection +func (r *DomainServiceConfigurationRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// VerificationDNSRecords returns request builder for DomainDNSRecord collection +func (b *DomainRequestBuilder) VerificationDNSRecords() *DomainVerificationDNSRecordsCollectionRequestBuilder { + bb := &DomainVerificationDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/verificationDnsRecords" + return bb +} + +// DomainVerificationDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection +type DomainVerificationDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DomainDNSRecord collection +func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) Request() *DomainVerificationDNSRecordsCollectionRequest { + return &DomainVerificationDNSRecordsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DomainDNSRecord item +func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder { + bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DomainVerificationDNSRecordsCollectionRequest is request for DomainDNSRecord collection +type DomainVerificationDNSRecordsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DomainDNSRecord collection +func (r *DomainVerificationDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DomainDNSRecord + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DomainDNSRecord + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DomainDNSRecord collection, max N pages +func (r *DomainVerificationDNSRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DomainDNSRecord collection +func (r *DomainVerificationDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DomainDNSRecord collection +func (r *DomainVerificationDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go new file mode 100644 index 00000000..6d1d455f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go @@ -0,0 +1,1281 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + "time" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DriveItemCheckinRequestParameter undocumented +type DriveItemCheckinRequestParameter struct { + // CheckInAs undocumented + CheckInAs *string `json:"checkInAs,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` +} + +// DriveItemCheckoutRequestParameter undocumented +type DriveItemCheckoutRequestParameter struct { +} + +// DriveItemCopyRequestParameter undocumented +type DriveItemCopyRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // ParentReference undocumented + ParentReference *ItemReference `json:"parentReference,omitempty"` +} + +// DriveItemCreateLinkRequestParameter undocumented +type DriveItemCreateLinkRequestParameter struct { + // Type undocumented + Type *string `json:"type,omitempty"` + // Scope undocumented + Scope *string `json:"scope,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // Password undocumented + Password *string `json:"password,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // Recipients undocumented + Recipients []DriveRecipient `json:"recipients,omitempty"` +} + +// DriveItemCreateUploadSessionRequestParameter undocumented +type DriveItemCreateUploadSessionRequestParameter struct { + // Item undocumented + Item *DriveItemUploadableProperties `json:"item,omitempty"` + // DeferCommit undocumented + DeferCommit *bool `json:"deferCommit,omitempty"` +} + +// DriveItemFollowRequestParameter undocumented +type DriveItemFollowRequestParameter struct { +} + +// DriveItemUnfollowRequestParameter undocumented +type DriveItemUnfollowRequestParameter struct { +} + +// DriveItemInviteRequestParameter undocumented +type DriveItemInviteRequestParameter struct { + // RequireSignIn undocumented + RequireSignIn *bool `json:"requireSignIn,omitempty"` + // Roles undocumented + Roles []string `json:"roles,omitempty"` + // SendInvitation undocumented + SendInvitation *bool `json:"sendInvitation,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // Recipients undocumented + Recipients []DriveRecipient `json:"recipients,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *string `json:"expirationDateTime,omitempty"` + // Password undocumented + Password *string `json:"password,omitempty"` +} + +// DriveItemPreviewRequestParameter undocumented +type DriveItemPreviewRequestParameter struct { + // Viewer undocumented + Viewer *string `json:"viewer,omitempty"` + // Chromeless undocumented + Chromeless *bool `json:"chromeless,omitempty"` + // AllowEdit undocumented + AllowEdit *bool `json:"allowEdit,omitempty"` + // Page undocumented + Page *string `json:"page,omitempty"` + // Zoom undocumented + Zoom *float64 `json:"zoom,omitempty"` +} + +// DriveItemRestoreRequestParameter undocumented +type DriveItemRestoreRequestParameter struct { + // ParentReference undocumented + ParentReference *ItemReference `json:"parentReference,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// DriveItemValidatePermissionRequestParameter undocumented +type DriveItemValidatePermissionRequestParameter struct { + // ChallengeToken undocumented + ChallengeToken *string `json:"challengeToken,omitempty"` + // Password undocumented + Password *string `json:"password,omitempty"` +} + +// DriveItemVersionRestoreVersionRequestParameter undocumented +type DriveItemVersionRestoreVersionRequestParameter struct { +} + +// Activities returns request builder for ItemActivityOLD collection +func (b *DriveRequestBuilder) Activities() *DriveActivitiesCollectionRequestBuilder { + bb := &DriveActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// DriveActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection +type DriveActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivityOLD collection +func (b *DriveActivitiesCollectionRequestBuilder) Request() *DriveActivitiesCollectionRequest { + return &DriveActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivityOLD item +func (b *DriveActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder { + bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveActivitiesCollectionRequest is request for ItemActivityOLD collection +type DriveActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivityOLD collection +func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivityOLD + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivityOLD + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivityOLD collection, max N pages +func (r *DriveActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivityOLD collection +func (r *DriveActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivityOLD collection +func (r *DriveActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Bundles returns request builder for DriveItem collection +func (b *DriveRequestBuilder) Bundles() *DriveBundlesCollectionRequestBuilder { + bb := &DriveBundlesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/bundles" + return bb +} + +// DriveBundlesCollectionRequestBuilder is request builder for DriveItem collection +type DriveBundlesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *DriveBundlesCollectionRequestBuilder) Request() *DriveBundlesCollectionRequest { + return &DriveBundlesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *DriveBundlesCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveBundlesCollectionRequest is request for DriveItem collection +type DriveBundlesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *DriveBundlesCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *DriveBundlesCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *DriveBundlesCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Following returns request builder for DriveItem collection +func (b *DriveRequestBuilder) Following() *DriveFollowingCollectionRequestBuilder { + bb := &DriveFollowingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/following" + return bb +} + +// DriveFollowingCollectionRequestBuilder is request builder for DriveItem collection +type DriveFollowingCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *DriveFollowingCollectionRequestBuilder) Request() *DriveFollowingCollectionRequest { + return &DriveFollowingCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *DriveFollowingCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveFollowingCollectionRequest is request for DriveItem collection +type DriveFollowingCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *DriveFollowingCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *DriveFollowingCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *DriveFollowingCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Items returns request builder for DriveItem collection +func (b *DriveRequestBuilder) Items() *DriveItemsCollectionRequestBuilder { + bb := &DriveItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// DriveItemsCollectionRequestBuilder is request builder for DriveItem collection +type DriveItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *DriveItemsCollectionRequestBuilder) Request() *DriveItemsCollectionRequest { + return &DriveItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *DriveItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemsCollectionRequest is request for DriveItem collection +type DriveItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *DriveItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *DriveItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *DriveItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// List is navigation property +func (b *DriveRequestBuilder) List() *ListRequestBuilder { + bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/list" + return bb +} + +// Root is navigation property +func (b *DriveRequestBuilder) Root() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/root" + return bb +} + +// Special returns request builder for DriveItem collection +func (b *DriveRequestBuilder) Special() *DriveSpecialCollectionRequestBuilder { + bb := &DriveSpecialCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/special" + return bb +} + +// DriveSpecialCollectionRequestBuilder is request builder for DriveItem collection +type DriveSpecialCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *DriveSpecialCollectionRequestBuilder) Request() *DriveSpecialCollectionRequest { + return &DriveSpecialCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *DriveSpecialCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveSpecialCollectionRequest is request for DriveItem collection +type DriveSpecialCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *DriveSpecialCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *DriveSpecialCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *DriveSpecialCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Activities returns request builder for ItemActivityOLD collection +func (b *DriveItemRequestBuilder) Activities() *DriveItemActivitiesCollectionRequestBuilder { + bb := &DriveItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// DriveItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection +type DriveItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivityOLD collection +func (b *DriveItemActivitiesCollectionRequestBuilder) Request() *DriveItemActivitiesCollectionRequest { + return &DriveItemActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivityOLD item +func (b *DriveItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder { + bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemActivitiesCollectionRequest is request for ItemActivityOLD collection +type DriveItemActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivityOLD collection +func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivityOLD + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivityOLD + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivityOLD collection, max N pages +func (r *DriveItemActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivityOLD collection +func (r *DriveItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivityOLD collection +func (r *DriveItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Analytics is navigation property +func (b *DriveItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder { + bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/analytics" + return bb +} + +// Children returns request builder for DriveItem collection +func (b *DriveItemRequestBuilder) Children() *DriveItemChildrenCollectionRequestBuilder { + bb := &DriveItemChildrenCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/children" + return bb +} + +// DriveItemChildrenCollectionRequestBuilder is request builder for DriveItem collection +type DriveItemChildrenCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *DriveItemChildrenCollectionRequestBuilder) Request() *DriveItemChildrenCollectionRequest { + return &DriveItemChildrenCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *DriveItemChildrenCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemChildrenCollectionRequest is request for DriveItem collection +type DriveItemChildrenCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *DriveItemChildrenCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *DriveItemChildrenCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *DriveItemChildrenCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Document is navigation property +func (b *DriveItemRequestBuilder) Document() *DocumentRequestBuilder { + bb := &DocumentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/document" + return bb +} + +// ListItem is navigation property +func (b *DriveItemRequestBuilder) ListItem() *ListItemRequestBuilder { + bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/listItem" + return bb +} + +// Permissions returns request builder for Permission collection +func (b *DriveItemRequestBuilder) Permissions() *DriveItemPermissionsCollectionRequestBuilder { + bb := &DriveItemPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/permissions" + return bb +} + +// DriveItemPermissionsCollectionRequestBuilder is request builder for Permission collection +type DriveItemPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Permission collection +func (b *DriveItemPermissionsCollectionRequestBuilder) Request() *DriveItemPermissionsCollectionRequest { + return &DriveItemPermissionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Permission item +func (b *DriveItemPermissionsCollectionRequestBuilder) ID(id string) *PermissionRequestBuilder { + bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemPermissionsCollectionRequest is request for Permission collection +type DriveItemPermissionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Permission collection +func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Permission + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Permission + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Permission collection, max N pages +func (r *DriveItemPermissionsCollectionRequest) GetN(ctx context.Context, n int) ([]Permission, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Permission collection +func (r *DriveItemPermissionsCollectionRequest) Get(ctx context.Context) ([]Permission, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Permission collection +func (r *DriveItemPermissionsCollectionRequest) Add(ctx context.Context, reqObj *Permission) (resObj *Permission, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Subscriptions returns request builder for Subscription collection +func (b *DriveItemRequestBuilder) Subscriptions() *DriveItemSubscriptionsCollectionRequestBuilder { + bb := &DriveItemSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subscriptions" + return bb +} + +// DriveItemSubscriptionsCollectionRequestBuilder is request builder for Subscription collection +type DriveItemSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Subscription collection +func (b *DriveItemSubscriptionsCollectionRequestBuilder) Request() *DriveItemSubscriptionsCollectionRequest { + return &DriveItemSubscriptionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Subscription item +func (b *DriveItemSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder { + bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemSubscriptionsCollectionRequest is request for Subscription collection +type DriveItemSubscriptionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Subscription collection +func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Subscription + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Subscription + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Subscription collection, max N pages +func (r *DriveItemSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Subscription collection +func (r *DriveItemSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Subscription collection +func (r *DriveItemSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Thumbnails returns request builder for ThumbnailSet collection +func (b *DriveItemRequestBuilder) Thumbnails() *DriveItemThumbnailsCollectionRequestBuilder { + bb := &DriveItemThumbnailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/thumbnails" + return bb +} + +// DriveItemThumbnailsCollectionRequestBuilder is request builder for ThumbnailSet collection +type DriveItemThumbnailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ThumbnailSet collection +func (b *DriveItemThumbnailsCollectionRequestBuilder) Request() *DriveItemThumbnailsCollectionRequest { + return &DriveItemThumbnailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ThumbnailSet item +func (b *DriveItemThumbnailsCollectionRequestBuilder) ID(id string) *ThumbnailSetRequestBuilder { + bb := &ThumbnailSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemThumbnailsCollectionRequest is request for ThumbnailSet collection +type DriveItemThumbnailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ThumbnailSet collection +func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThumbnailSet, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ThumbnailSet + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ThumbnailSet + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ThumbnailSet collection, max N pages +func (r *DriveItemThumbnailsCollectionRequest) GetN(ctx context.Context, n int) ([]ThumbnailSet, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ThumbnailSet collection +func (r *DriveItemThumbnailsCollectionRequest) Get(ctx context.Context) ([]ThumbnailSet, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ThumbnailSet collection +func (r *DriveItemThumbnailsCollectionRequest) Add(ctx context.Context, reqObj *ThumbnailSet) (resObj *ThumbnailSet, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Versions returns request builder for DriveItemVersion collection +func (b *DriveItemRequestBuilder) Versions() *DriveItemVersionsCollectionRequestBuilder { + bb := &DriveItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/versions" + return bb +} + +// DriveItemVersionsCollectionRequestBuilder is request builder for DriveItemVersion collection +type DriveItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItemVersion collection +func (b *DriveItemVersionsCollectionRequestBuilder) Request() *DriveItemVersionsCollectionRequest { + return &DriveItemVersionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItemVersion item +func (b *DriveItemVersionsCollectionRequestBuilder) ID(id string) *DriveItemVersionRequestBuilder { + bb := &DriveItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// DriveItemVersionsCollectionRequest is request for DriveItemVersion collection +type DriveItemVersionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItemVersion collection +func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItemVersion, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItemVersion + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItemVersion + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItemVersion collection, max N pages +func (r *DriveItemVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItemVersion, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItemVersion collection +func (r *DriveItemVersionsCollectionRequest) Get(ctx context.Context) ([]DriveItemVersion, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItemVersion collection +func (r *DriveItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *DriveItemVersion) (resObj *DriveItemVersion, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Workbook is navigation property +func (b *DriveItemRequestBuilder) Workbook() *WorkbookRequestBuilder { + bb := &WorkbookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/workbook" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go new file mode 100644 index 00000000..15530974 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go @@ -0,0 +1,2432 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// EducationAssignmentPublishRequestParameter undocumented +type EducationAssignmentPublishRequestParameter struct { +} + +// EducationSubmissionReturnRequestParameter undocumented +type EducationSubmissionReturnRequestParameter struct { +} + +// EducationSubmissionSubmitRequestParameter undocumented +type EducationSubmissionSubmitRequestParameter struct { +} + +// EducationSubmissionUnsubmitRequestParameter undocumented +type EducationSubmissionUnsubmitRequestParameter struct { +} + +// EducationSynchronizationProfileResumeRequestParameter undocumented +type EducationSynchronizationProfileResumeRequestParameter struct { +} + +// EducationSynchronizationProfilePauseRequestParameter undocumented +type EducationSynchronizationProfilePauseRequestParameter struct { +} + +// EducationSynchronizationProfileResetRequestParameter undocumented +type EducationSynchronizationProfileResetRequestParameter struct { +} + +// EducationSynchronizationProfileStartRequestParameter undocumented +type EducationSynchronizationProfileStartRequestParameter struct { +} + +// Categories returns request builder for EducationCategory collection +func (b *EducationAssignmentRequestBuilder) Categories() *EducationAssignmentCategoriesCollectionRequestBuilder { + bb := &EducationAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// EducationAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection +type EducationAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationCategory collection +func (b *EducationAssignmentCategoriesCollectionRequestBuilder) Request() *EducationAssignmentCategoriesCollectionRequest { + return &EducationAssignmentCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationCategory item +func (b *EducationAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder { + bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationAssignmentCategoriesCollectionRequest is request for EducationCategory collection +type EducationAssignmentCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationCategory collection +func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationCategory collection, max N pages +func (r *EducationAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationCategory collection +func (r *EducationAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationCategory collection +func (r *EducationAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Resources returns request builder for EducationAssignmentResource collection +func (b *EducationAssignmentRequestBuilder) Resources() *EducationAssignmentResourcesCollectionRequestBuilder { + bb := &EducationAssignmentResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resources" + return bb +} + +// EducationAssignmentResourcesCollectionRequestBuilder is request builder for EducationAssignmentResource collection +type EducationAssignmentResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationAssignmentResource collection +func (b *EducationAssignmentResourcesCollectionRequestBuilder) Request() *EducationAssignmentResourcesCollectionRequest { + return &EducationAssignmentResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationAssignmentResource item +func (b *EducationAssignmentResourcesCollectionRequestBuilder) ID(id string) *EducationAssignmentResourceRequestBuilder { + bb := &EducationAssignmentResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationAssignmentResourcesCollectionRequest is request for EducationAssignmentResource collection +type EducationAssignmentResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationAssignmentResource collection +func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignmentResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationAssignmentResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationAssignmentResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationAssignmentResource collection, max N pages +func (r *EducationAssignmentResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignmentResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationAssignmentResource collection +func (r *EducationAssignmentResourcesCollectionRequest) Get(ctx context.Context) ([]EducationAssignmentResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationAssignmentResource collection +func (r *EducationAssignmentResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignmentResource) (resObj *EducationAssignmentResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Rubric is navigation property +func (b *EducationAssignmentRequestBuilder) Rubric() *EducationRubricRequestBuilder { + bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rubric" + return bb +} + +// Submissions returns request builder for EducationSubmission collection +func (b *EducationAssignmentRequestBuilder) Submissions() *EducationAssignmentSubmissionsCollectionRequestBuilder { + bb := &EducationAssignmentSubmissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/submissions" + return bb +} + +// EducationAssignmentSubmissionsCollectionRequestBuilder is request builder for EducationSubmission collection +type EducationAssignmentSubmissionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSubmission collection +func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) Request() *EducationAssignmentSubmissionsCollectionRequest { + return &EducationAssignmentSubmissionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSubmission item +func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) ID(id string) *EducationSubmissionRequestBuilder { + bb := &EducationSubmissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationAssignmentSubmissionsCollectionRequest is request for EducationSubmission collection +type EducationAssignmentSubmissionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSubmission collection +func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmission, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSubmission + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSubmission + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSubmission collection, max N pages +func (r *EducationAssignmentSubmissionsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmission, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSubmission collection +func (r *EducationAssignmentSubmissionsCollectionRequest) Get(ctx context.Context) ([]EducationSubmission, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSubmission collection +func (r *EducationAssignmentSubmissionsCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmission) (resObj *EducationSubmission, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AssignmentCategories returns request builder for EducationCategory collection +func (b *EducationClassRequestBuilder) AssignmentCategories() *EducationClassAssignmentCategoriesCollectionRequestBuilder { + bb := &EducationClassAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignmentCategories" + return bb +} + +// EducationClassAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection +type EducationClassAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationCategory collection +func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) Request() *EducationClassAssignmentCategoriesCollectionRequest { + return &EducationClassAssignmentCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationCategory item +func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder { + bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationClassAssignmentCategoriesCollectionRequest is request for EducationCategory collection +type EducationClassAssignmentCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationCategory collection +func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationCategory collection, max N pages +func (r *EducationClassAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationCategory collection +func (r *EducationClassAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationCategory collection +func (r *EducationClassAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for EducationAssignment collection +func (b *EducationClassRequestBuilder) Assignments() *EducationClassAssignmentsCollectionRequestBuilder { + bb := &EducationClassAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// EducationClassAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection +type EducationClassAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationAssignment collection +func (b *EducationClassAssignmentsCollectionRequestBuilder) Request() *EducationClassAssignmentsCollectionRequest { + return &EducationClassAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationAssignment item +func (b *EducationClassAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder { + bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationClassAssignmentsCollectionRequest is request for EducationAssignment collection +type EducationClassAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationAssignment collection +func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationAssignment collection, max N pages +func (r *EducationClassAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationAssignment collection +func (r *EducationClassAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationAssignment collection +func (r *EducationClassAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Group is navigation property +func (b *EducationClassRequestBuilder) Group() *GroupRequestBuilder { + bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/group" + return bb +} + +// Members returns request builder for EducationUser collection +func (b *EducationClassRequestBuilder) Members() *EducationClassMembersCollectionRequestBuilder { + bb := &EducationClassMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// EducationClassMembersCollectionRequestBuilder is request builder for EducationUser collection +type EducationClassMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationUser collection +func (b *EducationClassMembersCollectionRequestBuilder) Request() *EducationClassMembersCollectionRequest { + return &EducationClassMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationUser item +func (b *EducationClassMembersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder { + bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationClassMembersCollectionRequest is request for EducationUser collection +type EducationClassMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationUser collection +func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationUser + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationUser + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationUser collection, max N pages +func (r *EducationClassMembersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationUser collection +func (r *EducationClassMembersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationUser collection +func (r *EducationClassMembersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Schools returns request builder for EducationSchool collection +func (b *EducationClassRequestBuilder) Schools() *EducationClassSchoolsCollectionRequestBuilder { + bb := &EducationClassSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schools" + return bb +} + +// EducationClassSchoolsCollectionRequestBuilder is request builder for EducationSchool collection +type EducationClassSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSchool collection +func (b *EducationClassSchoolsCollectionRequestBuilder) Request() *EducationClassSchoolsCollectionRequest { + return &EducationClassSchoolsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSchool item +func (b *EducationClassSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder { + bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationClassSchoolsCollectionRequest is request for EducationSchool collection +type EducationClassSchoolsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSchool collection +func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSchool + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSchool + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSchool collection, max N pages +func (r *EducationClassSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSchool collection +func (r *EducationClassSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSchool collection +func (r *EducationClassSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Teachers returns request builder for EducationUser collection +func (b *EducationClassRequestBuilder) Teachers() *EducationClassTeachersCollectionRequestBuilder { + bb := &EducationClassTeachersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teachers" + return bb +} + +// EducationClassTeachersCollectionRequestBuilder is request builder for EducationUser collection +type EducationClassTeachersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationUser collection +func (b *EducationClassTeachersCollectionRequestBuilder) Request() *EducationClassTeachersCollectionRequest { + return &EducationClassTeachersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationUser item +func (b *EducationClassTeachersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder { + bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationClassTeachersCollectionRequest is request for EducationUser collection +type EducationClassTeachersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationUser collection +func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationUser + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationUser + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationUser collection, max N pages +func (r *EducationClassTeachersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationUser collection +func (r *EducationClassTeachersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationUser collection +func (r *EducationClassTeachersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Classes returns request builder for EducationClass collection +func (b *EducationRootRequestBuilder) Classes() *EducationRootClassesCollectionRequestBuilder { + bb := &EducationRootClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classes" + return bb +} + +// EducationRootClassesCollectionRequestBuilder is request builder for EducationClass collection +type EducationRootClassesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationClass collection +func (b *EducationRootClassesCollectionRequestBuilder) Request() *EducationRootClassesCollectionRequest { + return &EducationRootClassesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationClass item +func (b *EducationRootClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder { + bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationRootClassesCollectionRequest is request for EducationClass collection +type EducationRootClassesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationClass collection +func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationClass + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationClass + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationClass collection, max N pages +func (r *EducationRootClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationClass collection +func (r *EducationRootClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationClass collection +func (r *EducationRootClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Me is navigation property +func (b *EducationRootRequestBuilder) Me() *EducationUserRequestBuilder { + bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/me" + return bb +} + +// Schools returns request builder for EducationSchool collection +func (b *EducationRootRequestBuilder) Schools() *EducationRootSchoolsCollectionRequestBuilder { + bb := &EducationRootSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schools" + return bb +} + +// EducationRootSchoolsCollectionRequestBuilder is request builder for EducationSchool collection +type EducationRootSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSchool collection +func (b *EducationRootSchoolsCollectionRequestBuilder) Request() *EducationRootSchoolsCollectionRequest { + return &EducationRootSchoolsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSchool item +func (b *EducationRootSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder { + bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationRootSchoolsCollectionRequest is request for EducationSchool collection +type EducationRootSchoolsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSchool collection +func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSchool + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSchool + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSchool collection, max N pages +func (r *EducationRootSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSchool collection +func (r *EducationRootSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSchool collection +func (r *EducationRootSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SynchronizationProfiles returns request builder for EducationSynchronizationProfile collection +func (b *EducationRootRequestBuilder) SynchronizationProfiles() *EducationRootSynchronizationProfilesCollectionRequestBuilder { + bb := &EducationRootSynchronizationProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/synchronizationProfiles" + return bb +} + +// EducationRootSynchronizationProfilesCollectionRequestBuilder is request builder for EducationSynchronizationProfile collection +type EducationRootSynchronizationProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSynchronizationProfile collection +func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) Request() *EducationRootSynchronizationProfilesCollectionRequest { + return &EducationRootSynchronizationProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSynchronizationProfile item +func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) ID(id string) *EducationSynchronizationProfileRequestBuilder { + bb := &EducationSynchronizationProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationRootSynchronizationProfilesCollectionRequest is request for EducationSynchronizationProfile collection +type EducationRootSynchronizationProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSynchronizationProfile collection +func (r *EducationRootSynchronizationProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSynchronizationProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSynchronizationProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSynchronizationProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSynchronizationProfile collection, max N pages +func (r *EducationRootSynchronizationProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSynchronizationProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSynchronizationProfile collection +func (r *EducationRootSynchronizationProfilesCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSynchronizationProfile collection +func (r *EducationRootSynchronizationProfilesCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationProfile) (resObj *EducationSynchronizationProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Users returns request builder for EducationUser collection +func (b *EducationRootRequestBuilder) Users() *EducationRootUsersCollectionRequestBuilder { + bb := &EducationRootUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/users" + return bb +} + +// EducationRootUsersCollectionRequestBuilder is request builder for EducationUser collection +type EducationRootUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationUser collection +func (b *EducationRootUsersCollectionRequestBuilder) Request() *EducationRootUsersCollectionRequest { + return &EducationRootUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationUser item +func (b *EducationRootUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder { + bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationRootUsersCollectionRequest is request for EducationUser collection +type EducationRootUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationUser collection +func (r *EducationRootUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationUser + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationUser + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationUser collection, max N pages +func (r *EducationRootUsersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationUser collection +func (r *EducationRootUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationUser collection +func (r *EducationRootUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AdministrativeUnit is navigation property +func (b *EducationSchoolRequestBuilder) AdministrativeUnit() *AdministrativeUnitRequestBuilder { + bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/administrativeUnit" + return bb +} + +// Classes returns request builder for EducationClass collection +func (b *EducationSchoolRequestBuilder) Classes() *EducationSchoolClassesCollectionRequestBuilder { + bb := &EducationSchoolClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classes" + return bb +} + +// EducationSchoolClassesCollectionRequestBuilder is request builder for EducationClass collection +type EducationSchoolClassesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationClass collection +func (b *EducationSchoolClassesCollectionRequestBuilder) Request() *EducationSchoolClassesCollectionRequest { + return &EducationSchoolClassesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationClass item +func (b *EducationSchoolClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder { + bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSchoolClassesCollectionRequest is request for EducationClass collection +type EducationSchoolClassesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationClass collection +func (r *EducationSchoolClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationClass + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationClass + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationClass collection, max N pages +func (r *EducationSchoolClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationClass collection +func (r *EducationSchoolClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationClass collection +func (r *EducationSchoolClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Users returns request builder for EducationUser collection +func (b *EducationSchoolRequestBuilder) Users() *EducationSchoolUsersCollectionRequestBuilder { + bb := &EducationSchoolUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/users" + return bb +} + +// EducationSchoolUsersCollectionRequestBuilder is request builder for EducationUser collection +type EducationSchoolUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationUser collection +func (b *EducationSchoolUsersCollectionRequestBuilder) Request() *EducationSchoolUsersCollectionRequest { + return &EducationSchoolUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationUser item +func (b *EducationSchoolUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder { + bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSchoolUsersCollectionRequest is request for EducationUser collection +type EducationSchoolUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationUser collection +func (r *EducationSchoolUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationUser + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationUser + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationUser collection, max N pages +func (r *EducationSchoolUsersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationUser collection +func (r *EducationSchoolUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationUser collection +func (r *EducationSchoolUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Outcomes returns request builder for EducationOutcome collection +func (b *EducationSubmissionRequestBuilder) Outcomes() *EducationSubmissionOutcomesCollectionRequestBuilder { + bb := &EducationSubmissionOutcomesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/outcomes" + return bb +} + +// EducationSubmissionOutcomesCollectionRequestBuilder is request builder for EducationOutcome collection +type EducationSubmissionOutcomesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationOutcome collection +func (b *EducationSubmissionOutcomesCollectionRequestBuilder) Request() *EducationSubmissionOutcomesCollectionRequest { + return &EducationSubmissionOutcomesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationOutcome item +func (b *EducationSubmissionOutcomesCollectionRequestBuilder) ID(id string) *EducationOutcomeRequestBuilder { + bb := &EducationOutcomeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSubmissionOutcomesCollectionRequest is request for EducationOutcome collection +type EducationSubmissionOutcomesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationOutcome collection +func (r *EducationSubmissionOutcomesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationOutcome, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationOutcome + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationOutcome + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationOutcome collection, max N pages +func (r *EducationSubmissionOutcomesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationOutcome, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationOutcome collection +func (r *EducationSubmissionOutcomesCollectionRequest) Get(ctx context.Context) ([]EducationOutcome, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationOutcome collection +func (r *EducationSubmissionOutcomesCollectionRequest) Add(ctx context.Context, reqObj *EducationOutcome) (resObj *EducationOutcome, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Resources returns request builder for EducationSubmissionResource collection +func (b *EducationSubmissionRequestBuilder) Resources() *EducationSubmissionResourcesCollectionRequestBuilder { + bb := &EducationSubmissionResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resources" + return bb +} + +// EducationSubmissionResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection +type EducationSubmissionResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSubmissionResource collection +func (b *EducationSubmissionResourcesCollectionRequestBuilder) Request() *EducationSubmissionResourcesCollectionRequest { + return &EducationSubmissionResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSubmissionResource item +func (b *EducationSubmissionResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder { + bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSubmissionResourcesCollectionRequest is request for EducationSubmissionResource collection +type EducationSubmissionResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSubmissionResource collection +func (r *EducationSubmissionResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmissionResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSubmissionResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSubmissionResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSubmissionResource collection, max N pages +func (r *EducationSubmissionResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmissionResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSubmissionResource collection +func (r *EducationSubmissionResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSubmissionResource collection +func (r *EducationSubmissionResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SubmittedResources returns request builder for EducationSubmissionResource collection +func (b *EducationSubmissionRequestBuilder) SubmittedResources() *EducationSubmissionSubmittedResourcesCollectionRequestBuilder { + bb := &EducationSubmissionSubmittedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/submittedResources" + return bb +} + +// EducationSubmissionSubmittedResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection +type EducationSubmissionSubmittedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSubmissionResource collection +func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) Request() *EducationSubmissionSubmittedResourcesCollectionRequest { + return &EducationSubmissionSubmittedResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSubmissionResource item +func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder { + bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSubmissionSubmittedResourcesCollectionRequest is request for EducationSubmissionResource collection +type EducationSubmissionSubmittedResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSubmissionResource collection +func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmissionResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSubmissionResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSubmissionResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSubmissionResource collection, max N pages +func (r *EducationSubmissionSubmittedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmissionResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSubmissionResource collection +func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSubmissionResource collection +func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Errors returns request builder for EducationSynchronizationError collection +func (b *EducationSynchronizationProfileRequestBuilder) Errors() *EducationSynchronizationProfileErrorsCollectionRequestBuilder { + bb := &EducationSynchronizationProfileErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/errors" + return bb +} + +// EducationSynchronizationProfileErrorsCollectionRequestBuilder is request builder for EducationSynchronizationError collection +type EducationSynchronizationProfileErrorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSynchronizationError collection +func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) Request() *EducationSynchronizationProfileErrorsCollectionRequest { + return &EducationSynchronizationProfileErrorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSynchronizationError item +func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) ID(id string) *EducationSynchronizationErrorRequestBuilder { + bb := &EducationSynchronizationErrorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationSynchronizationProfileErrorsCollectionRequest is request for EducationSynchronizationError collection +type EducationSynchronizationProfileErrorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSynchronizationError collection +func (r *EducationSynchronizationProfileErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSynchronizationError, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSynchronizationError + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSynchronizationError + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSynchronizationError collection, max N pages +func (r *EducationSynchronizationProfileErrorsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSynchronizationError, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSynchronizationError collection +func (r *EducationSynchronizationProfileErrorsCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationError, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSynchronizationError collection +func (r *EducationSynchronizationProfileErrorsCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationError) (resObj *EducationSynchronizationError, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ProfileStatus is navigation property +func (b *EducationSynchronizationProfileRequestBuilder) ProfileStatus() *EducationSynchronizationProfileStatusRequestBuilder { + bb := &EducationSynchronizationProfileStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/profileStatus" + return bb +} + +// Assignments returns request builder for EducationAssignment collection +func (b *EducationUserRequestBuilder) Assignments() *EducationUserAssignmentsCollectionRequestBuilder { + bb := &EducationUserAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// EducationUserAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection +type EducationUserAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationAssignment collection +func (b *EducationUserAssignmentsCollectionRequestBuilder) Request() *EducationUserAssignmentsCollectionRequest { + return &EducationUserAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationAssignment item +func (b *EducationUserAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder { + bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationUserAssignmentsCollectionRequest is request for EducationAssignment collection +type EducationUserAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationAssignment collection +func (r *EducationUserAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationAssignment collection, max N pages +func (r *EducationUserAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationAssignment collection +func (r *EducationUserAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationAssignment collection +func (r *EducationUserAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Classes returns request builder for EducationClass collection +func (b *EducationUserRequestBuilder) Classes() *EducationUserClassesCollectionRequestBuilder { + bb := &EducationUserClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/classes" + return bb +} + +// EducationUserClassesCollectionRequestBuilder is request builder for EducationClass collection +type EducationUserClassesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationClass collection +func (b *EducationUserClassesCollectionRequestBuilder) Request() *EducationUserClassesCollectionRequest { + return &EducationUserClassesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationClass item +func (b *EducationUserClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder { + bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationUserClassesCollectionRequest is request for EducationClass collection +type EducationUserClassesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationClass collection +func (r *EducationUserClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationClass + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationClass + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationClass collection, max N pages +func (r *EducationUserClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationClass collection +func (r *EducationUserClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationClass collection +func (r *EducationUserClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Rubrics returns request builder for EducationRubric collection +func (b *EducationUserRequestBuilder) Rubrics() *EducationUserRubricsCollectionRequestBuilder { + bb := &EducationUserRubricsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rubrics" + return bb +} + +// EducationUserRubricsCollectionRequestBuilder is request builder for EducationRubric collection +type EducationUserRubricsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationRubric collection +func (b *EducationUserRubricsCollectionRequestBuilder) Request() *EducationUserRubricsCollectionRequest { + return &EducationUserRubricsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationRubric item +func (b *EducationUserRubricsCollectionRequestBuilder) ID(id string) *EducationRubricRequestBuilder { + bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationUserRubricsCollectionRequest is request for EducationRubric collection +type EducationUserRubricsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationRubric collection +func (r *EducationUserRubricsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationRubric, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationRubric + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationRubric + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationRubric collection, max N pages +func (r *EducationUserRubricsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationRubric, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationRubric collection +func (r *EducationUserRubricsCollectionRequest) Get(ctx context.Context) ([]EducationRubric, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationRubric collection +func (r *EducationUserRubricsCollectionRequest) Add(ctx context.Context, reqObj *EducationRubric) (resObj *EducationRubric, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Schools returns request builder for EducationSchool collection +func (b *EducationUserRequestBuilder) Schools() *EducationUserSchoolsCollectionRequestBuilder { + bb := &EducationUserSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schools" + return bb +} + +// EducationUserSchoolsCollectionRequestBuilder is request builder for EducationSchool collection +type EducationUserSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationSchool collection +func (b *EducationUserSchoolsCollectionRequestBuilder) Request() *EducationUserSchoolsCollectionRequest { + return &EducationUserSchoolsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationSchool item +func (b *EducationUserSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder { + bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationUserSchoolsCollectionRequest is request for EducationSchool collection +type EducationUserSchoolsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationSchool collection +func (r *EducationUserSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationSchool + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationSchool + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationSchool collection, max N pages +func (r *EducationUserSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationSchool collection +func (r *EducationUserSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationSchool collection +func (r *EducationUserSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaughtClasses returns request builder for EducationClass collection +func (b *EducationUserRequestBuilder) TaughtClasses() *EducationUserTaughtClassesCollectionRequestBuilder { + bb := &EducationUserTaughtClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taughtClasses" + return bb +} + +// EducationUserTaughtClassesCollectionRequestBuilder is request builder for EducationClass collection +type EducationUserTaughtClassesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationClass collection +func (b *EducationUserTaughtClassesCollectionRequestBuilder) Request() *EducationUserTaughtClassesCollectionRequest { + return &EducationUserTaughtClassesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationClass item +func (b *EducationUserTaughtClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder { + bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EducationUserTaughtClassesCollectionRequest is request for EducationClass collection +type EducationUserTaughtClassesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationClass collection +func (r *EducationUserTaughtClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationClass + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationClass + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationClass collection, max N pages +func (r *EducationUserTaughtClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationClass collection +func (r *EducationUserTaughtClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationClass collection +func (r *EducationUserTaughtClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// User is navigation property +func (b *EducationUserRequestBuilder) User() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/user" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go new file mode 100644 index 00000000..3011a6b7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go @@ -0,0 +1,222 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// EmbeddedSIMActivationCodePoolAssignRequestParameter undocumented +type EmbeddedSIMActivationCodePoolAssignRequestParameter struct { + // Assignments undocumented + Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"` +} + +// Assignments returns request builder for EmbeddedSIMActivationCodePoolAssignment collection +func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assignments() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder { + bb := &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment collection +type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EmbeddedSIMActivationCodePoolAssignment collection +func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest { + return &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EmbeddedSIMActivationCodePoolAssignment item +func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder { + bb := &EmbeddedSIMActivationCodePoolAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest is request for EmbeddedSIMActivationCodePoolAssignment collection +type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EmbeddedSIMActivationCodePoolAssignment collection +func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EmbeddedSIMActivationCodePoolAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EmbeddedSIMActivationCodePoolAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EmbeddedSIMActivationCodePoolAssignment collection, max N pages +func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment collection +func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EmbeddedSIMActivationCodePoolAssignment collection +func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStates returns request builder for EmbeddedSIMDeviceState collection +func (b *EmbeddedSIMActivationCodePoolRequestBuilder) DeviceStates() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder { + bb := &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStates" + return bb +} + +// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder is request builder for EmbeddedSIMDeviceState collection +type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EmbeddedSIMDeviceState collection +func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest { + return &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EmbeddedSIMDeviceState item +func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) ID(id string) *EmbeddedSIMDeviceStateRequestBuilder { + bb := &EmbeddedSIMDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest is request for EmbeddedSIMDeviceState collection +type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EmbeddedSIMDeviceState collection +func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EmbeddedSIMDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EmbeddedSIMDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EmbeddedSIMDeviceState collection, max N pages +func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EmbeddedSIMDeviceState collection +func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EmbeddedSIMDeviceState collection +func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMDeviceState) (resObj *EmbeddedSIMDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go new file mode 100644 index 00000000..2b6f217c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Picture returns request builder for Picture collection +func (b *EmployeeRequestBuilder) Picture() *EmployeePictureCollectionRequestBuilder { + bb := &EmployeePictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/picture" + return bb +} + +// EmployeePictureCollectionRequestBuilder is request builder for Picture collection +type EmployeePictureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Picture collection +func (b *EmployeePictureCollectionRequestBuilder) Request() *EmployeePictureCollectionRequest { + return &EmployeePictureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Picture item +func (b *EmployeePictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder { + bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EmployeePictureCollectionRequest is request for Picture collection +type EmployeePictureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Picture collection +func (r *EmployeePictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Picture + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Picture + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Picture collection, max N pages +func (r *EmployeePictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Picture collection +func (r *EmployeePictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Picture collection +func (r *EmployeePictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go new file mode 100644 index 00000000..81339400 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go @@ -0,0 +1,13 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EnrollmentProfileSetDefaultProfileRequestParameter undocumented +type EnrollmentProfileSetDefaultProfileRequestParameter struct { +} + +// EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter undocumented +type EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter struct { + // DeviceIDs undocumented + DeviceIDs []string `json:"deviceIds,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go new file mode 100644 index 00000000..494c7f2a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go @@ -0,0 +1,930 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection +func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentPolicies() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentPolicies" + return bb +} + +// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection +type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentPolicy collection +func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest { + return &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentPolicy item +func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder { + bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection +type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection +func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages +func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentPolicy collection +func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentPolicy collection +func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection +func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentRequests() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentRequests" + return bb +} + +// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection +type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentRequestObject collection +func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest { + return &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentRequestObject item +func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder { + bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection +type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection +func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages +func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentRequestObject collection +func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentRequestObject collection +func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection +func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentResourceRoles() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentResourceRoles" + return bb +} + +// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection +type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentResourceRole collection +func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest { + return &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentResourceRole item +func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder { + bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection +type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection +func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentResourceRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentResourceRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages +func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentResourceRole collection +func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentResourceRole collection +func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignments returns request builder for AccessPackageAssignment collection +func (b *EntitlementManagementRequestBuilder) AccessPackageAssignments() *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignments" + return bb +} + +// EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection +type EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignment collection +func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentsCollectionRequest { + return &EntitlementManagementAccessPackageAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignment item +func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder { + bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection +type EntitlementManagementAccessPackageAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignment collection +func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignment collection, max N pages +func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignment collection +func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignment collection +func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection +func (b *EntitlementManagementRequestBuilder) AccessPackageCatalogs() *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageCatalogs" + return bb +} + +// EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection +type EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageCatalog collection +func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageCatalogsCollectionRequest { + return &EntitlementManagementAccessPackageCatalogsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageCatalog item +func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder { + bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection +type EntitlementManagementAccessPackageCatalogsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageCatalog collection +func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageCatalog, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageCatalog + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageCatalog + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageCatalog collection, max N pages +func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageCatalog, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageCatalog collection +func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageCatalog collection +func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection +func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRequests() *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRequests" + return bb +} + +// EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection +type EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRequestObject collection +func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRequestsCollectionRequest { + return &EntitlementManagementAccessPackageResourceRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRequestObject item +func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder { + bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection +type EntitlementManagementAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRequestObject collection +func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRequestObject collection, max N pages +func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRequestObject collection +func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRequestObject collection +func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection +func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRoleScopes() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRoleScopes" + return bb +} + +// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection +type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRoleScope collection +func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest { + return &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRoleScope item +func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder { + bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection +type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRoleScope collection +func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRoleScope + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRoleScope + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages +func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRoleScope collection +func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRoleScope collection +func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResources returns request builder for AccessPackageResource collection +func (b *EntitlementManagementRequestBuilder) AccessPackageResources() *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResources" + return bb +} + +// EntitlementManagementAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection +type EntitlementManagementAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResource collection +func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourcesCollectionRequest { + return &EntitlementManagementAccessPackageResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResource item +func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection +type EntitlementManagementAccessPackageResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResource collection +func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResource collection, max N pages +func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResource collection +func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResource collection +func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackages returns request builder for AccessPackage collection +func (b *EntitlementManagementRequestBuilder) AccessPackages() *EntitlementManagementAccessPackagesCollectionRequestBuilder { + bb := &EntitlementManagementAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackages" + return bb +} + +// EntitlementManagementAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection +type EntitlementManagementAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackage collection +func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackagesCollectionRequest { + return &EntitlementManagementAccessPackagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackage item +func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EntitlementManagementAccessPackagesCollectionRequest is request for AccessPackage collection +type EntitlementManagementAccessPackagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackage collection +func (r *EntitlementManagementAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackage collection, max N pages +func (r *EntitlementManagementAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackage collection +func (r *EntitlementManagementAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackage collection +func (r *EntitlementManagementAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go new file mode 100644 index 00000000..406ce716 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go @@ -0,0 +1,616 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// EventDismissReminderRequestParameter undocumented +type EventDismissReminderRequestParameter struct { +} + +// EventSnoozeReminderRequestParameter undocumented +type EventSnoozeReminderRequestParameter struct { + // NewReminderTime undocumented + NewReminderTime *DateTimeTimeZone `json:"NewReminderTime,omitempty"` +} + +// EventForwardRequestParameter undocumented +type EventForwardRequestParameter struct { + // ToRecipients undocumented + ToRecipients []Recipient `json:"ToRecipients,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventAcceptRequestParameter undocumented +type EventAcceptRequestParameter struct { + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventDeclineRequestParameter undocumented +type EventDeclineRequestParameter struct { + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"` + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventTentativelyAcceptRequestParameter undocumented +type EventTentativelyAcceptRequestParameter struct { + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"` + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventCancelRequestParameter undocumented +type EventCancelRequestParameter struct { + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventMessageRequestObjectAcceptRequestParameter undocumented +type EventMessageRequestObjectAcceptRequestParameter struct { + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventMessageRequestObjectDeclineRequestParameter undocumented +type EventMessageRequestObjectDeclineRequestParameter struct { + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"` + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// EventMessageRequestObjectTentativelyAcceptRequestParameter undocumented +type EventMessageRequestObjectTentativelyAcceptRequestParameter struct { + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"` + // SendResponse undocumented + SendResponse *bool `json:"SendResponse,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// Attachments returns request builder for Attachment collection +func (b *EventRequestBuilder) Attachments() *EventAttachmentsCollectionRequestBuilder { + bb := &EventAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/attachments" + return bb +} + +// EventAttachmentsCollectionRequestBuilder is request builder for Attachment collection +type EventAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Attachment collection +func (b *EventAttachmentsCollectionRequestBuilder) Request() *EventAttachmentsCollectionRequest { + return &EventAttachmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Attachment item +func (b *EventAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder { + bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EventAttachmentsCollectionRequest is request for Attachment collection +type EventAttachmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Attachment collection +func (r *EventAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Attachment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Attachment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Attachment collection, max N pages +func (r *EventAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Attachment collection +func (r *EventAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Attachment collection +func (r *EventAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Calendar is navigation property +func (b *EventRequestBuilder) Calendar() *CalendarRequestBuilder { + bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendar" + return bb +} + +// Extensions returns request builder for Extension collection +func (b *EventRequestBuilder) Extensions() *EventExtensionsCollectionRequestBuilder { + bb := &EventExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// EventExtensionsCollectionRequestBuilder is request builder for Extension collection +type EventExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *EventExtensionsCollectionRequestBuilder) Request() *EventExtensionsCollectionRequest { + return &EventExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *EventExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EventExtensionsCollectionRequest is request for Extension collection +type EventExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *EventExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *EventExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *EventExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *EventExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Instances returns request builder for Event collection +func (b *EventRequestBuilder) Instances() *EventInstancesCollectionRequestBuilder { + bb := &EventInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/instances" + return bb +} + +// EventInstancesCollectionRequestBuilder is request builder for Event collection +type EventInstancesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *EventInstancesCollectionRequestBuilder) Request() *EventInstancesCollectionRequest { + return &EventInstancesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *EventInstancesCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EventInstancesCollectionRequest is request for Event collection +type EventInstancesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *EventInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *EventInstancesCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *EventInstancesCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *EventInstancesCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *EventRequestBuilder) MultiValueExtendedProperties() *EventMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &EventMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// EventMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type EventMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *EventMultiValueExtendedPropertiesCollectionRequest { + return &EventMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EventMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type EventMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *EventMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *EventMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *EventMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *EventMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *EventRequestBuilder) SingleValueExtendedProperties() *EventSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &EventSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// EventSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type EventSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *EventSingleValueExtendedPropertiesCollectionRequest { + return &EventSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// EventSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type EventSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *EventSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *EventSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *EventSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *EventSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Event is navigation property +func (b *EventMessageRequestBuilder) Event() *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/event" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go new file mode 100644 index 00000000..8601fe38 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go @@ -0,0 +1,245 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ExactMatchDataStoreLookupRequestParameter undocumented +type ExactMatchDataStoreLookupRequestParameter struct { + // Key undocumented + Key *string `json:"key,omitempty"` + // Values undocumented + Values []string `json:"values,omitempty"` + // ResultColumnNames undocumented + ResultColumnNames []string `json:"resultColumnNames,omitempty"` +} + +// ExactMatchSessionCancelRequestParameter undocumented +type ExactMatchSessionCancelRequestParameter struct { +} + +// ExactMatchSessionCommitRequestParameter undocumented +type ExactMatchSessionCommitRequestParameter struct { +} + +// ExactMatchSessionRenewRequestParameter undocumented +type ExactMatchSessionRenewRequestParameter struct { +} + +// Sessions returns request builder for ExactMatchSession collection +func (b *ExactMatchDataStoreRequestBuilder) Sessions() *ExactMatchDataStoreSessionsCollectionRequestBuilder { + bb := &ExactMatchDataStoreSessionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sessions" + return bb +} + +// ExactMatchDataStoreSessionsCollectionRequestBuilder is request builder for ExactMatchSession collection +type ExactMatchDataStoreSessionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExactMatchSession collection +func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) Request() *ExactMatchDataStoreSessionsCollectionRequest { + return &ExactMatchDataStoreSessionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExactMatchSession item +func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) ID(id string) *ExactMatchSessionRequestBuilder { + bb := &ExactMatchSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ExactMatchDataStoreSessionsCollectionRequest is request for ExactMatchSession collection +type ExactMatchDataStoreSessionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExactMatchSession collection +func (r *ExactMatchDataStoreSessionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchSession, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExactMatchSession + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExactMatchSession + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExactMatchSession collection, max N pages +func (r *ExactMatchDataStoreSessionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchSession, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExactMatchSession collection +func (r *ExactMatchDataStoreSessionsCollectionRequest) Get(ctx context.Context) ([]ExactMatchSession, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExactMatchSession collection +func (r *ExactMatchDataStoreSessionsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchSession) (resObj *ExactMatchSession, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MatchingRows returns request builder for LookupResultRow collection +func (b *ExactMatchLookupJobRequestBuilder) MatchingRows() *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder { + bb := &ExactMatchLookupJobMatchingRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/matchingRows" + return bb +} + +// ExactMatchLookupJobMatchingRowsCollectionRequestBuilder is request builder for LookupResultRow collection +type ExactMatchLookupJobMatchingRowsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LookupResultRow collection +func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) Request() *ExactMatchLookupJobMatchingRowsCollectionRequest { + return &ExactMatchLookupJobMatchingRowsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LookupResultRow item +func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) ID(id string) *LookupResultRowRequestBuilder { + bb := &LookupResultRowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ExactMatchLookupJobMatchingRowsCollectionRequest is request for LookupResultRow collection +type ExactMatchLookupJobMatchingRowsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LookupResultRow collection +func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LookupResultRow, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LookupResultRow + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LookupResultRow + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LookupResultRow collection, max N pages +func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) GetN(ctx context.Context, n int) ([]LookupResultRow, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LookupResultRow collection +func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Get(ctx context.Context) ([]LookupResultRow, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LookupResultRow collection +func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Add(ctx context.Context, reqObj *LookupResultRow) (resObj *LookupResultRow, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UploadAgent is navigation property +func (b *ExactMatchSessionRequestBuilder) UploadAgent() *ExactMatchUploadAgentRequestBuilder { + bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/uploadAgent" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go new file mode 100644 index 00000000..c13ec871 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go @@ -0,0 +1,325 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Connections returns request builder for ExternalConnection collection +func (b *ExternalRequestBuilder) Connections() *ExternalConnectionsCollectionRequestBuilder { + bb := &ExternalConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/connections" + return bb +} + +// ExternalConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection +type ExternalConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExternalConnection collection +func (b *ExternalConnectionsCollectionRequestBuilder) Request() *ExternalConnectionsCollectionRequest { + return &ExternalConnectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExternalConnection item +func (b *ExternalConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder { + bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ExternalConnectionsCollectionRequest is request for ExternalConnection collection +type ExternalConnectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExternalConnection collection +func (r *ExternalConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalConnection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExternalConnection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExternalConnection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExternalConnection collection, max N pages +func (r *ExternalConnectionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalConnection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExternalConnection collection +func (r *ExternalConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExternalConnection collection +func (r *ExternalConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Items returns request builder for ExternalItem collection +func (b *ExternalConnectionRequestBuilder) Items() *ExternalConnectionItemsCollectionRequestBuilder { + bb := &ExternalConnectionItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// ExternalConnectionItemsCollectionRequestBuilder is request builder for ExternalItem collection +type ExternalConnectionItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExternalItem collection +func (b *ExternalConnectionItemsCollectionRequestBuilder) Request() *ExternalConnectionItemsCollectionRequest { + return &ExternalConnectionItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExternalItem item +func (b *ExternalConnectionItemsCollectionRequestBuilder) ID(id string) *ExternalItemRequestBuilder { + bb := &ExternalItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ExternalConnectionItemsCollectionRequest is request for ExternalItem collection +type ExternalConnectionItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExternalItem collection +func (r *ExternalConnectionItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExternalItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExternalItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExternalItem collection, max N pages +func (r *ExternalConnectionItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExternalItem collection +func (r *ExternalConnectionItemsCollectionRequest) Get(ctx context.Context) ([]ExternalItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExternalItem collection +func (r *ExternalConnectionItemsCollectionRequest) Add(ctx context.Context, reqObj *ExternalItem) (resObj *ExternalItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Operations returns request builder for ConnectionOperation collection +func (b *ExternalConnectionRequestBuilder) Operations() *ExternalConnectionOperationsCollectionRequestBuilder { + bb := &ExternalConnectionOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operations" + return bb +} + +// ExternalConnectionOperationsCollectionRequestBuilder is request builder for ConnectionOperation collection +type ExternalConnectionOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConnectionOperation collection +func (b *ExternalConnectionOperationsCollectionRequestBuilder) Request() *ExternalConnectionOperationsCollectionRequest { + return &ExternalConnectionOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConnectionOperation item +func (b *ExternalConnectionOperationsCollectionRequestBuilder) ID(id string) *ConnectionOperationRequestBuilder { + bb := &ConnectionOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ExternalConnectionOperationsCollectionRequest is request for ConnectionOperation collection +type ExternalConnectionOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConnectionOperation collection +func (r *ExternalConnectionOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConnectionOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConnectionOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConnectionOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConnectionOperation collection, max N pages +func (r *ExternalConnectionOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ConnectionOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConnectionOperation collection +func (r *ExternalConnectionOperationsCollectionRequest) Get(ctx context.Context) ([]ConnectionOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConnectionOperation collection +func (r *ExternalConnectionOperationsCollectionRequest) Add(ctx context.Context, reqObj *ConnectionOperation) (resObj *ConnectionOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Schema is navigation property +func (b *ExternalConnectionRequestBuilder) Schema() *SchemaRequestBuilder { + bb := &SchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schema" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go new file mode 100644 index 00000000..08c45e3b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AppliesTo returns request builder for DirectoryObject collection +func (b *FeatureRolloutPolicyRequestBuilder) AppliesTo() *FeatureRolloutPolicyAppliesToCollectionRequestBuilder { + bb := &FeatureRolloutPolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appliesTo" + return bb +} + +// FeatureRolloutPolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection +type FeatureRolloutPolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) Request() *FeatureRolloutPolicyAppliesToCollectionRequest { + return &FeatureRolloutPolicyAppliesToCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// FeatureRolloutPolicyAppliesToCollectionRequest is request for DirectoryObject collection +type FeatureRolloutPolicyAppliesToCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *FeatureRolloutPolicyAppliesToCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go new file mode 100644 index 00000000..3dbd5f7c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Companies returns request builder for Company collection +func (b *FinancialsRequestBuilder) Companies() *FinancialsCompaniesCollectionRequestBuilder { + bb := &FinancialsCompaniesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/companies" + return bb +} + +// FinancialsCompaniesCollectionRequestBuilder is request builder for Company collection +type FinancialsCompaniesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Company collection +func (b *FinancialsCompaniesCollectionRequestBuilder) Request() *FinancialsCompaniesCollectionRequest { + return &FinancialsCompaniesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Company item +func (b *FinancialsCompaniesCollectionRequestBuilder) ID(id string) *CompanyRequestBuilder { + bb := &CompanyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// FinancialsCompaniesCollectionRequest is request for Company collection +type FinancialsCompaniesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Company collection +func (r *FinancialsCompaniesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Company, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Company + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Company + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Company collection, max N pages +func (r *FinancialsCompaniesCollectionRequest) GetN(ctx context.Context, n int) ([]Company, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Company collection +func (r *FinancialsCompaniesCollectionRequest) Get(ctx context.Context) ([]Company, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Company collection +func (r *FinancialsCompaniesCollectionRequest) Add(ctx context.Context, reqObj *Company) (resObj *Company, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go new file mode 100644 index 00000000..c385383d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Account is navigation property +func (b *GeneralLedgerEntryRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go new file mode 100644 index 00000000..e9e57a72 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go @@ -0,0 +1,526 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// GovernanceResourceCollectionRegisterRequestParameter undocumented +type GovernanceResourceCollectionRegisterRequestParameter struct { + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` +} + +// GovernanceRoleAssignmentRequestObjectCancelRequestParameter undocumented +type GovernanceRoleAssignmentRequestObjectCancelRequestParameter struct { +} + +// GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter undocumented +type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter struct { + // Decision undocumented + Decision *string `json:"decision,omitempty"` + // AssignmentState undocumented + AssignmentState *string `json:"assignmentState,omitempty"` + // Schedule undocumented + Schedule *GovernanceSchedule `json:"schedule,omitempty"` + // Reason undocumented + Reason *string `json:"reason,omitempty"` +} + +// Parent is navigation property +func (b *GovernanceResourceRequestBuilder) Parent() *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parent" + return bb +} + +// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection +func (b *GovernanceResourceRequestBuilder) RoleAssignmentRequests() *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder { + bb := &GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignmentRequests" + return bb +} + +// GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection +type GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignmentRequestObject collection +func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentRequestsCollectionRequest { + return &GovernanceResourceRoleAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignmentRequestObject item +func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder { + bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GovernanceResourceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection +type GovernanceResourceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection +func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages +func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignmentRequestObject collection +func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignmentRequestObject collection +func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleAssignments returns request builder for GovernanceRoleAssignment collection +func (b *GovernanceResourceRequestBuilder) RoleAssignments() *GovernanceResourceRoleAssignmentsCollectionRequestBuilder { + bb := &GovernanceResourceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignments" + return bb +} + +// GovernanceResourceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection +type GovernanceResourceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignment collection +func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentsCollectionRequest { + return &GovernanceResourceRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignment item +func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder { + bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GovernanceResourceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection +type GovernanceResourceRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignment collection +func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignment collection, max N pages +func (r *GovernanceResourceRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignment collection +func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignment collection +func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleDefinitions returns request builder for GovernanceRoleDefinition collection +func (b *GovernanceResourceRequestBuilder) RoleDefinitions() *GovernanceResourceRoleDefinitionsCollectionRequestBuilder { + bb := &GovernanceResourceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinitions" + return bb +} + +// GovernanceResourceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection +type GovernanceResourceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleDefinition collection +func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) Request() *GovernanceResourceRoleDefinitionsCollectionRequest { + return &GovernanceResourceRoleDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleDefinition item +func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GovernanceResourceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection +type GovernanceResourceRoleDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleDefinition collection +func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleDefinition collection, max N pages +func (r *GovernanceResourceRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleDefinition collection +func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleDefinition collection +func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleSettings returns request builder for GovernanceRoleSetting collection +func (b *GovernanceResourceRequestBuilder) RoleSettings() *GovernanceResourceRoleSettingsCollectionRequestBuilder { + bb := &GovernanceResourceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleSettings" + return bb +} + +// GovernanceResourceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection +type GovernanceResourceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleSetting collection +func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) Request() *GovernanceResourceRoleSettingsCollectionRequest { + return &GovernanceResourceRoleSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleSetting item +func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder { + bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GovernanceResourceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection +type GovernanceResourceRoleSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleSetting collection +func (r *GovernanceResourceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleSetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleSetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleSetting collection, max N pages +func (r *GovernanceResourceRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleSetting collection +func (r *GovernanceResourceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleSetting collection +func (r *GovernanceResourceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LinkedEligibleRoleAssignment is navigation property +func (b *GovernanceRoleAssignmentRequestBuilder) LinkedEligibleRoleAssignment() *GovernanceRoleAssignmentRequestBuilder { + bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/linkedEligibleRoleAssignment" + return bb +} + +// Resource is navigation property +func (b *GovernanceRoleAssignmentRequestBuilder) Resource() *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} + +// RoleDefinition is navigation property +func (b *GovernanceRoleAssignmentRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinition" + return bb +} + +// Subject is navigation property +func (b *GovernanceRoleAssignmentRequestBuilder) Subject() *GovernanceSubjectRequestBuilder { + bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subject" + return bb +} + +// Resource is navigation property +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Resource() *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} + +// RoleDefinition is navigation property +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinition" + return bb +} + +// Subject is navigation property +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Subject() *GovernanceSubjectRequestBuilder { + bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subject" + return bb +} + +// Resource is navigation property +func (b *GovernanceRoleDefinitionRequestBuilder) Resource() *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} + +// RoleSetting is navigation property +func (b *GovernanceRoleDefinitionRequestBuilder) RoleSetting() *GovernanceRoleSettingRequestBuilder { + bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleSetting" + return bb +} + +// Resource is navigation property +func (b *GovernanceRoleSettingRequestBuilder) Resource() *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} + +// RoleDefinition is navigation property +func (b *GovernanceRoleSettingRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinition" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go new file mode 100644 index 00000000..67bc79d1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go @@ -0,0 +1,2950 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// GroupCollectionEvaluateDynamicMembershipRequestParameter undocumented +type GroupCollectionEvaluateDynamicMembershipRequestParameter struct { + // MemberID undocumented + MemberID *string `json:"memberId,omitempty"` + // MembershipRule undocumented + MembershipRule *string `json:"membershipRule,omitempty"` +} + +// GroupLifecyclePolicyCollectionRenewGroupRequestParameter undocumented +type GroupLifecyclePolicyCollectionRenewGroupRequestParameter struct { + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` +} + +// GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter undocumented +type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter struct { + // GroupPolicyObjectFile undocumented + GroupPolicyObjectFile *GroupPolicyObjectFile `json:"groupPolicyObjectFile,omitempty"` +} + +// GroupValidatePropertiesRequestParameter undocumented +type GroupValidatePropertiesRequestParameter struct { + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // OnBehalfOfUserID undocumented + OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"` +} + +// GroupCheckGrantedPermissionsForAppRequestParameter undocumented +type GroupCheckGrantedPermissionsForAppRequestParameter struct { +} + +// GroupAssignLicenseRequestParameter undocumented +type GroupAssignLicenseRequestParameter struct { + // AddLicenses undocumented + AddLicenses []AssignedLicense `json:"addLicenses,omitempty"` + // RemoveLicenses undocumented + RemoveLicenses []UUID `json:"removeLicenses,omitempty"` +} + +// GroupSubscribeByMailRequestParameter undocumented +type GroupSubscribeByMailRequestParameter struct { +} + +// GroupUnsubscribeByMailRequestParameter undocumented +type GroupUnsubscribeByMailRequestParameter struct { +} + +// GroupAddFavoriteRequestParameter undocumented +type GroupAddFavoriteRequestParameter struct { +} + +// GroupRemoveFavoriteRequestParameter undocumented +type GroupRemoveFavoriteRequestParameter struct { +} + +// GroupResetUnseenCountRequestParameter undocumented +type GroupResetUnseenCountRequestParameter struct { +} + +// GroupRenewRequestParameter undocumented +type GroupRenewRequestParameter struct { +} + +// GroupEvaluateDynamicMembershipRequestParameter undocumented +type GroupEvaluateDynamicMembershipRequestParameter struct { + // MemberID undocumented + MemberID *string `json:"memberId,omitempty"` +} + +// GroupLifecyclePolicyAddGroupRequestParameter undocumented +type GroupLifecyclePolicyAddGroupRequestParameter struct { + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` +} + +// GroupLifecyclePolicyRemoveGroupRequestParameter undocumented +type GroupLifecyclePolicyRemoveGroupRequestParameter struct { + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` +} + +// GroupPolicyConfigurationAssignRequestParameter undocumented +type GroupPolicyConfigurationAssignRequestParameter struct { + // Assignments undocumented + Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"` +} + +// GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter undocumented +type GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter struct { + // Added undocumented + Added []GroupPolicyDefinitionValue `json:"added,omitempty"` + // Updated undocumented + Updated []GroupPolicyDefinitionValue `json:"updated,omitempty"` + // DeletedIDs undocumented + DeletedIDs []string `json:"deletedIds,omitempty"` +} + +// AcceptedSenders returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) AcceptedSenders() *GroupAcceptedSendersCollectionRequestBuilder { + bb := &GroupAcceptedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/acceptedSenders" + return bb +} + +// GroupAcceptedSendersCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupAcceptedSendersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupAcceptedSendersCollectionRequestBuilder) Request() *GroupAcceptedSendersCollectionRequest { + return &GroupAcceptedSendersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupAcceptedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupAcceptedSendersCollectionRequest is request for DirectoryObject collection +type GroupAcceptedSendersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupAcceptedSendersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupAcceptedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupAcceptedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AppRoleAssignments returns request builder for AppRoleAssignment collection +func (b *GroupRequestBuilder) AppRoleAssignments() *GroupAppRoleAssignmentsCollectionRequestBuilder { + bb := &GroupAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appRoleAssignments" + return bb +} + +// GroupAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection +type GroupAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppRoleAssignment collection +func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) Request() *GroupAppRoleAssignmentsCollectionRequest { + return &GroupAppRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppRoleAssignment item +func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder { + bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection +type GroupAppRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppRoleAssignment collection +func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppRoleAssignment collection, max N pages +func (r *GroupAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppRoleAssignment collection +func (r *GroupAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppRoleAssignment collection +func (r *GroupAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Calendar is navigation property +func (b *GroupRequestBuilder) Calendar() *CalendarRequestBuilder { + bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendar" + return bb +} + +// CalendarView returns request builder for Event collection +func (b *GroupRequestBuilder) CalendarView() *GroupCalendarViewCollectionRequestBuilder { + bb := &GroupCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarView" + return bb +} + +// GroupCalendarViewCollectionRequestBuilder is request builder for Event collection +type GroupCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *GroupCalendarViewCollectionRequestBuilder) Request() *GroupCalendarViewCollectionRequest { + return &GroupCalendarViewCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *GroupCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupCalendarViewCollectionRequest is request for Event collection +type GroupCalendarViewCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *GroupCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *GroupCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *GroupCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Conversations returns request builder for Conversation collection +func (b *GroupRequestBuilder) Conversations() *GroupConversationsCollectionRequestBuilder { + bb := &GroupConversationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/conversations" + return bb +} + +// GroupConversationsCollectionRequestBuilder is request builder for Conversation collection +type GroupConversationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Conversation collection +func (b *GroupConversationsCollectionRequestBuilder) Request() *GroupConversationsCollectionRequest { + return &GroupConversationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Conversation item +func (b *GroupConversationsCollectionRequestBuilder) ID(id string) *ConversationRequestBuilder { + bb := &ConversationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupConversationsCollectionRequest is request for Conversation collection +type GroupConversationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Conversation collection +func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Conversation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Conversation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Conversation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Conversation collection, max N pages +func (r *GroupConversationsCollectionRequest) GetN(ctx context.Context, n int) ([]Conversation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Conversation collection +func (r *GroupConversationsCollectionRequest) Get(ctx context.Context) ([]Conversation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Conversation collection +func (r *GroupConversationsCollectionRequest) Add(ctx context.Context, reqObj *Conversation) (resObj *Conversation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CreatedOnBehalfOf is navigation property +func (b *GroupRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/createdOnBehalfOf" + return bb +} + +// Drive is navigation property +func (b *GroupRequestBuilder) Drive() *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drive" + return bb +} + +// Drives returns request builder for Drive collection +func (b *GroupRequestBuilder) Drives() *GroupDrivesCollectionRequestBuilder { + bb := &GroupDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drives" + return bb +} + +// GroupDrivesCollectionRequestBuilder is request builder for Drive collection +type GroupDrivesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Drive collection +func (b *GroupDrivesCollectionRequestBuilder) Request() *GroupDrivesCollectionRequest { + return &GroupDrivesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Drive item +func (b *GroupDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupDrivesCollectionRequest is request for Drive collection +type GroupDrivesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Drive collection +func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Drive + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Drive + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Drive collection, max N pages +func (r *GroupDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Drive collection +func (r *GroupDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Drive collection +func (r *GroupDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Endpoints returns request builder for Endpoint collection +func (b *GroupRequestBuilder) Endpoints() *GroupEndpointsCollectionRequestBuilder { + bb := &GroupEndpointsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/endpoints" + return bb +} + +// GroupEndpointsCollectionRequestBuilder is request builder for Endpoint collection +type GroupEndpointsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Endpoint collection +func (b *GroupEndpointsCollectionRequestBuilder) Request() *GroupEndpointsCollectionRequest { + return &GroupEndpointsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Endpoint item +func (b *GroupEndpointsCollectionRequestBuilder) ID(id string) *EndpointRequestBuilder { + bb := &EndpointRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupEndpointsCollectionRequest is request for Endpoint collection +type GroupEndpointsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Endpoint collection +func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Endpoint, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Endpoint + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Endpoint + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Endpoint collection, max N pages +func (r *GroupEndpointsCollectionRequest) GetN(ctx context.Context, n int) ([]Endpoint, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Endpoint collection +func (r *GroupEndpointsCollectionRequest) Get(ctx context.Context) ([]Endpoint, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Endpoint collection +func (r *GroupEndpointsCollectionRequest) Add(ctx context.Context, reqObj *Endpoint) (resObj *Endpoint, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Events returns request builder for Event collection +func (b *GroupRequestBuilder) Events() *GroupEventsCollectionRequestBuilder { + bb := &GroupEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/events" + return bb +} + +// GroupEventsCollectionRequestBuilder is request builder for Event collection +type GroupEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *GroupEventsCollectionRequestBuilder) Request() *GroupEventsCollectionRequest { + return &GroupEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *GroupEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupEventsCollectionRequest is request for Event collection +type GroupEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *GroupEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *GroupEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *GroupEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *GroupRequestBuilder) Extensions() *GroupExtensionsCollectionRequestBuilder { + bb := &GroupExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// GroupExtensionsCollectionRequestBuilder is request builder for Extension collection +type GroupExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *GroupExtensionsCollectionRequestBuilder) Request() *GroupExtensionsCollectionRequest { + return &GroupExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *GroupExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupExtensionsCollectionRequest is request for Extension collection +type GroupExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *GroupExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *GroupExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *GroupExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection +func (b *GroupRequestBuilder) GroupLifecyclePolicies() *GroupGroupLifecyclePoliciesCollectionRequestBuilder { + bb := &GroupGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupLifecyclePolicies" + return bb +} + +// GroupGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection +type GroupGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupLifecyclePolicy collection +func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GroupGroupLifecyclePoliciesCollectionRequest { + return &GroupGroupLifecyclePoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupLifecyclePolicy item +func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder { + bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection +type GroupGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupLifecyclePolicy collection +func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupLifecyclePolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupLifecyclePolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupLifecyclePolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupLifecyclePolicy collection, max N pages +func (r *GroupGroupLifecyclePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupLifecyclePolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupLifecyclePolicy collection +func (r *GroupGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupLifecyclePolicy collection +func (r *GroupGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MemberOf returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) MemberOf() *GroupMemberOfCollectionRequestBuilder { + bb := &GroupMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/memberOf" + return bb +} + +// GroupMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupMemberOfCollectionRequestBuilder) Request() *GroupMemberOfCollectionRequest { + return &GroupMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupMemberOfCollectionRequest is request for DirectoryObject collection +type GroupMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Members returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) Members() *GroupMembersCollectionRequestBuilder { + bb := &GroupMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/members" + return bb +} + +// GroupMembersCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupMembersCollectionRequestBuilder) Request() *GroupMembersCollectionRequest { + return &GroupMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupMembersCollectionRequest is request for DirectoryObject collection +type GroupMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MembersWithLicenseErrors returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) MembersWithLicenseErrors() *GroupMembersWithLicenseErrorsCollectionRequestBuilder { + bb := &GroupMembersWithLicenseErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/membersWithLicenseErrors" + return bb +} + +// GroupMembersWithLicenseErrorsCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupMembersWithLicenseErrorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) Request() *GroupMembersWithLicenseErrorsCollectionRequest { + return &GroupMembersWithLicenseErrorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupMembersWithLicenseErrorsCollectionRequest is request for DirectoryObject collection +type GroupMembersWithLicenseErrorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupMembersWithLicenseErrorsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupMembersWithLicenseErrorsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupMembersWithLicenseErrorsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Onenote is navigation property +func (b *GroupRequestBuilder) Onenote() *OnenoteRequestBuilder { + bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onenote" + return bb +} + +// Owners returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) Owners() *GroupOwnersCollectionRequestBuilder { + bb := &GroupOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/owners" + return bb +} + +// GroupOwnersCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupOwnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupOwnersCollectionRequestBuilder) Request() *GroupOwnersCollectionRequest { + return &GroupOwnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupOwnersCollectionRequest is request for DirectoryObject collection +type GroupOwnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection +func (b *GroupRequestBuilder) PermissionGrants() *GroupPermissionGrantsCollectionRequestBuilder { + bb := &GroupPermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/permissionGrants" + return bb +} + +// GroupPermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection +type GroupPermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ResourceSpecificPermissionGrant collection +func (b *GroupPermissionGrantsCollectionRequestBuilder) Request() *GroupPermissionGrantsCollectionRequest { + return &GroupPermissionGrantsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ResourceSpecificPermissionGrant item +func (b *GroupPermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder { + bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection +type GroupPermissionGrantsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection +func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResourceSpecificPermissionGrant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResourceSpecificPermissionGrant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ResourceSpecificPermissionGrant collection, max N pages +func (r *GroupPermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ResourceSpecificPermissionGrant collection +func (r *GroupPermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ResourceSpecificPermissionGrant collection +func (r *GroupPermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Photo is navigation property +func (b *GroupRequestBuilder) Photo() *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photo" + return bb +} + +// Photos returns request builder for ProfilePhoto collection +func (b *GroupRequestBuilder) Photos() *GroupPhotosCollectionRequestBuilder { + bb := &GroupPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photos" + return bb +} + +// GroupPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection +type GroupPhotosCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProfilePhoto collection +func (b *GroupPhotosCollectionRequestBuilder) Request() *GroupPhotosCollectionRequest { + return &GroupPhotosCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProfilePhoto item +func (b *GroupPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPhotosCollectionRequest is request for ProfilePhoto collection +type GroupPhotosCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProfilePhoto collection +func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProfilePhoto, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProfilePhoto + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProfilePhoto + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProfilePhoto collection, max N pages +func (r *GroupPhotosCollectionRequest) GetN(ctx context.Context, n int) ([]ProfilePhoto, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProfilePhoto collection +func (r *GroupPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProfilePhoto collection +func (r *GroupPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Planner is navigation property +func (b *GroupRequestBuilder) Planner() *PlannerGroupRequestBuilder { + bb := &PlannerGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/planner" + return bb +} + +// RejectedSenders returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) RejectedSenders() *GroupRejectedSendersCollectionRequestBuilder { + bb := &GroupRejectedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rejectedSenders" + return bb +} + +// GroupRejectedSendersCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupRejectedSendersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupRejectedSendersCollectionRequestBuilder) Request() *GroupRejectedSendersCollectionRequest { + return &GroupRejectedSendersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupRejectedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupRejectedSendersCollectionRequest is request for DirectoryObject collection +type GroupRejectedSendersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupRejectedSendersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupRejectedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupRejectedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings returns request builder for DirectorySetting collection +func (b *GroupRequestBuilder) Settings() *GroupSettingsCollectionRequestBuilder { + bb := &GroupSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// GroupSettingsCollectionRequestBuilder is request builder for DirectorySetting collection +type GroupSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectorySetting collection +func (b *GroupSettingsCollectionRequestBuilder) Request() *GroupSettingsCollectionRequest { + return &GroupSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectorySetting item +func (b *GroupSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder { + bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupSettingsCollectionRequest is request for DirectorySetting collection +type GroupSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectorySetting collection +func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectorySetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectorySetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectorySetting collection, max N pages +func (r *GroupSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectorySetting collection +func (r *GroupSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectorySetting collection +func (r *GroupSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sites returns request builder for Site collection +func (b *GroupRequestBuilder) Sites() *GroupSitesCollectionRequestBuilder { + bb := &GroupSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sites" + return bb +} + +// GroupSitesCollectionRequestBuilder is request builder for Site collection +type GroupSitesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Site collection +func (b *GroupSitesCollectionRequestBuilder) Request() *GroupSitesCollectionRequest { + return &GroupSitesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Site item +func (b *GroupSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder { + bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupSitesCollectionRequest is request for Site collection +type GroupSitesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Site collection +func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Site collection, max N pages +func (r *GroupSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Site collection +func (r *GroupSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Site collection +func (r *GroupSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Team is navigation property +func (b *GroupRequestBuilder) Team() *TeamRequestBuilder { + bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/team" + return bb +} + +// Threads returns request builder for ConversationThread collection +func (b *GroupRequestBuilder) Threads() *GroupThreadsCollectionRequestBuilder { + bb := &GroupThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/threads" + return bb +} + +// GroupThreadsCollectionRequestBuilder is request builder for ConversationThread collection +type GroupThreadsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ConversationThread collection +func (b *GroupThreadsCollectionRequestBuilder) Request() *GroupThreadsCollectionRequest { + return &GroupThreadsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ConversationThread item +func (b *GroupThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder { + bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupThreadsCollectionRequest is request for ConversationThread collection +type GroupThreadsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ConversationThread collection +func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationThread, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConversationThread + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConversationThread + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ConversationThread collection, max N pages +func (r *GroupThreadsCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationThread, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ConversationThread collection +func (r *GroupThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ConversationThread collection +func (r *GroupThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TransitiveMemberOf returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) TransitiveMemberOf() *GroupTransitiveMemberOfCollectionRequestBuilder { + bb := &GroupTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMemberOf" + return bb +} + +// GroupTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupTransitiveMemberOfCollectionRequestBuilder) Request() *GroupTransitiveMemberOfCollectionRequest { + return &GroupTransitiveMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupTransitiveMemberOfCollectionRequest is request for DirectoryObject collection +type GroupTransitiveMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TransitiveMembers returns request builder for DirectoryObject collection +func (b *GroupRequestBuilder) TransitiveMembers() *GroupTransitiveMembersCollectionRequestBuilder { + bb := &GroupTransitiveMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMembers" + return bb +} + +// GroupTransitiveMembersCollectionRequestBuilder is request builder for DirectoryObject collection +type GroupTransitiveMembersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GroupTransitiveMembersCollectionRequestBuilder) Request() *GroupTransitiveMembersCollectionRequest { + return &GroupTransitiveMembersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GroupTransitiveMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupTransitiveMembersCollectionRequest is request for DirectoryObject collection +type GroupTransitiveMembersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GroupTransitiveMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GroupTransitiveMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GroupTransitiveMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for GroupPolicyConfigurationAssignment collection +func (b *GroupPolicyConfigurationRequestBuilder) Assignments() *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder { + bb := &GroupPolicyConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// GroupPolicyConfigurationAssignmentsCollectionRequestBuilder is request builder for GroupPolicyConfigurationAssignment collection +type GroupPolicyConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyConfigurationAssignment collection +func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) Request() *GroupPolicyConfigurationAssignmentsCollectionRequest { + return &GroupPolicyConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyConfigurationAssignment item +func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationAssignmentRequestBuilder { + bb := &GroupPolicyConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyConfigurationAssignmentsCollectionRequest is request for GroupPolicyConfigurationAssignment collection +type GroupPolicyConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyConfigurationAssignment collection +func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyConfigurationAssignment collection, max N pages +func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyConfigurationAssignment collection +func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyConfigurationAssignment collection +func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) (resObj *GroupPolicyConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DefinitionValues returns request builder for GroupPolicyDefinitionValue collection +func (b *GroupPolicyConfigurationRequestBuilder) DefinitionValues() *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder { + bb := &GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definitionValues" + return bb +} + +// GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder is request builder for GroupPolicyDefinitionValue collection +type GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyDefinitionValue collection +func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) Request() *GroupPolicyConfigurationDefinitionValuesCollectionRequest { + return &GroupPolicyConfigurationDefinitionValuesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyDefinitionValue item +func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionValueRequestBuilder { + bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyConfigurationDefinitionValuesCollectionRequest is request for GroupPolicyDefinitionValue collection +type GroupPolicyConfigurationDefinitionValuesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyDefinitionValue collection +func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinitionValue, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyDefinitionValue + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyDefinitionValue + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyDefinitionValue collection, max N pages +func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinitionValue, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyDefinitionValue collection +func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionValue, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyDefinitionValue collection +func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionValue) (resObj *GroupPolicyDefinitionValue, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DefinitionFile is navigation property +func (b *GroupPolicyDefinitionRequestBuilder) DefinitionFile() *GroupPolicyDefinitionFileRequestBuilder { + bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definitionFile" + return bb +} + +// Presentations returns request builder for GroupPolicyPresentation collection +func (b *GroupPolicyDefinitionRequestBuilder) Presentations() *GroupPolicyDefinitionPresentationsCollectionRequestBuilder { + bb := &GroupPolicyDefinitionPresentationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/presentations" + return bb +} + +// GroupPolicyDefinitionPresentationsCollectionRequestBuilder is request builder for GroupPolicyPresentation collection +type GroupPolicyDefinitionPresentationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyPresentation collection +func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) Request() *GroupPolicyDefinitionPresentationsCollectionRequest { + return &GroupPolicyDefinitionPresentationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyPresentation item +func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationRequestBuilder { + bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyDefinitionPresentationsCollectionRequest is request for GroupPolicyPresentation collection +type GroupPolicyDefinitionPresentationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyPresentation collection +func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyPresentation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyPresentation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyPresentation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyPresentation collection, max N pages +func (r *GroupPolicyDefinitionPresentationsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyPresentation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyPresentation collection +func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyPresentation collection +func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentation) (resObj *GroupPolicyPresentation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Definitions returns request builder for GroupPolicyDefinition collection +func (b *GroupPolicyDefinitionFileRequestBuilder) Definitions() *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder { + bb := &GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definitions" + return bb +} + +// GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection +type GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyDefinition collection +func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) Request() *GroupPolicyDefinitionFileDefinitionsCollectionRequest { + return &GroupPolicyDefinitionFileDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyDefinition item +func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder { + bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyDefinitionFileDefinitionsCollectionRequest is request for GroupPolicyDefinition collection +type GroupPolicyDefinitionFileDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyDefinition collection +func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyDefinition collection, max N pages +func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyDefinition collection +func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyDefinition collection +func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Definition is navigation property +func (b *GroupPolicyDefinitionValueRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder { + bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definition" + return bb +} + +// PresentationValues returns request builder for GroupPolicyPresentationValue collection +func (b *GroupPolicyDefinitionValueRequestBuilder) PresentationValues() *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder { + bb := &GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/presentationValues" + return bb +} + +// GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder is request builder for GroupPolicyPresentationValue collection +type GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicyPresentationValue collection +func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) Request() *GroupPolicyDefinitionValuePresentationValuesCollectionRequest { + return &GroupPolicyDefinitionValuePresentationValuesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicyPresentationValue item +func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationValueRequestBuilder { + bb := &GroupPolicyPresentationValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyDefinitionValuePresentationValuesCollectionRequest is request for GroupPolicyPresentationValue collection +type GroupPolicyDefinitionValuePresentationValuesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicyPresentationValue collection +func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyPresentationValue, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyPresentationValue + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyPresentationValue + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicyPresentationValue collection, max N pages +func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyPresentationValue, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicyPresentationValue collection +func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentationValue, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicyPresentationValue collection +func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentationValue) (resObj *GroupPolicyPresentationValue, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupPolicySettingMappings returns request builder for GroupPolicySettingMapping collection +func (b *GroupPolicyMigrationReportRequestBuilder) GroupPolicySettingMappings() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder { + bb := &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupPolicySettingMappings" + return bb +} + +// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder is request builder for GroupPolicySettingMapping collection +type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupPolicySettingMapping collection +func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) Request() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest { + return &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupPolicySettingMapping item +func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) ID(id string) *GroupPolicySettingMappingRequestBuilder { + bb := &GroupPolicySettingMappingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest is request for GroupPolicySettingMapping collection +type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupPolicySettingMapping collection +func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicySettingMapping, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicySettingMapping + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicySettingMapping + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupPolicySettingMapping collection, max N pages +func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicySettingMapping, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupPolicySettingMapping collection +func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Get(ctx context.Context) ([]GroupPolicySettingMapping, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupPolicySettingMapping collection +func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicySettingMapping) (resObj *GroupPolicySettingMapping, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Definition is navigation property +func (b *GroupPolicyPresentationRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder { + bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definition" + return bb +} + +// DefinitionValue is navigation property +func (b *GroupPolicyPresentationValueRequestBuilder) DefinitionValue() *GroupPolicyDefinitionValueRequestBuilder { + bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/definitionValue" + return bb +} + +// Presentation is navigation property +func (b *GroupPolicyPresentationValueRequestBuilder) Presentation() *GroupPolicyPresentationRequestBuilder { + bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/presentation" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go new file mode 100644 index 00000000..6d2df487 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go @@ -0,0 +1,1165 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter undocumented +type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented +type IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// IOSLobAppProvisioningConfigurationAssignRequestParameter undocumented +type IOSLobAppProvisioningConfigurationAssignRequestParameter struct { + // AppProvisioningConfigurationGroupAssignments undocumented + AppProvisioningConfigurationGroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"appProvisioningConfigurationGroupAssignments,omitempty"` + // IOSLobAppProvisioningConfigAssignments undocumented + IOSLobAppProvisioningConfigAssignments []IOSLobAppProvisioningConfigurationAssignment `json:"iOSLobAppProvisioningConfigAssignments,omitempty"` +} + +// IOSVPPAppRevokeAllLicensesRequestParameter undocumented +type IOSVPPAppRevokeAllLicensesRequestParameter struct { + // NotifyManagedDevices undocumented + NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"` +} + +// IOSVPPAppRevokeUserLicenseRequestParameter undocumented +type IOSVPPAppRevokeUserLicenseRequestParameter struct { + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // NotifyManagedDevices undocumented + NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"` +} + +// IOSVPPAppRevokeDeviceLicenseRequestParameter undocumented +type IOSVPPAppRevokeDeviceLicenseRequestParameter struct { + // ManagedDeviceID undocumented + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // NotifyManagedDevices undocumented + NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"` +} + +// DerivedCredentialSettings is navigation property +func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder { + bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/derivedCredentialSettings" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *IOSDeviceFeaturesConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder { + bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// SingleSignOnExtensionPkinitCertificate is navigation property +func (b *IOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *IOSCertificateProfileBaseRequestBuilder { + bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleSignOnExtensionPkinitCertificate" + return bb +} + +// DerivedCredentialSettings is navigation property +func (b *IOSEasEmailProfileConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder { + bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/derivedCredentialSettings" + return bb +} + +// IdentityCertificate is navigation property +func (b *IOSEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder { + bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// SmimeEncryptionCertificate is navigation property +func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeEncryptionCertificate() *IOSCertificateProfileRequestBuilder { + bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/smimeEncryptionCertificate" + return bb +} + +// SmimeSigningCertificate is navigation property +func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *IOSCertificateProfileRequestBuilder { + bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/smimeSigningCertificate" + return bb +} + +// DerivedCredentialSettings is navigation property +func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder { + bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/derivedCredentialSettings" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder { + bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificatesForServerValidation returns request builder for IOSTrustedRootCertificate collection +func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificatesForServerValidation() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder { + bb := &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificatesForServerValidation" + return bb +} + +// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder is request builder for IOSTrustedRootCertificate collection +type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSTrustedRootCertificate collection +func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest { + return &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSTrustedRootCertificate item +func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) ID(id string) *IOSTrustedRootCertificateRequestBuilder { + bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest is request for IOSTrustedRootCertificate collection +type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSTrustedRootCertificate collection +func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSTrustedRootCertificate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSTrustedRootCertificate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSTrustedRootCertificate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSTrustedRootCertificate collection, max N pages +func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) GetN(ctx context.Context, n int) ([]IOSTrustedRootCertificate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSTrustedRootCertificate collection +func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]IOSTrustedRootCertificate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSTrustedRootCertificate collection +func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Add(ctx context.Context, reqObj *IOSTrustedRootCertificate) (resObj *IOSTrustedRootCertificate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *IOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for IOSLobAppProvisioningConfigurationAssignment collection +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assignments() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment collection +type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSLobAppProvisioningConfigurationAssignment collection +func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest { + return &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSLobAppProvisioningConfigurationAssignment item +func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest is request for IOSLobAppProvisioningConfigurationAssignment collection +type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSLobAppProvisioningConfigurationAssignment collection +func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSLobAppProvisioningConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSLobAppProvisioningConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSLobAppProvisioningConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSLobAppProvisioningConfigurationAssignment collection, max N pages +func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSLobAppProvisioningConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment collection +func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSLobAppProvisioningConfigurationAssignment collection +func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) DeviceStatuses() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection +type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest { + return &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item +func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationDeviceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationDeviceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection, max N pages +func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupAssignments returns request builder for MobileAppProvisioningConfigGroupAssignment collection +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) GroupAssignments() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupAssignments" + return bb +} + +// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment collection +type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppProvisioningConfigGroupAssignment collection +func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest { + return &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppProvisioningConfigGroupAssignment item +func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppProvisioningConfigGroupAssignmentRequestBuilder { + bb := &MobileAppProvisioningConfigGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest is request for MobileAppProvisioningConfigGroupAssignment collection +type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppProvisioningConfigGroupAssignment collection +func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppProvisioningConfigGroupAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppProvisioningConfigGroupAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppProvisioningConfigGroupAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppProvisioningConfigGroupAssignment collection, max N pages +func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppProvisioningConfigGroupAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppProvisioningConfigGroupAssignment collection +func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppProvisioningConfigGroupAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppProvisioningConfigGroupAssignment collection +func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) UserStatuses() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatuses" + return bb +} + +// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection +type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest { + return &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item +func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection +type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationUserStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationUserStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection, max N pages +func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Apps returns request builder for ManagedMobileApp collection +func (b *IOSManagedAppProtectionRequestBuilder) Apps() *IOSManagedAppProtectionAppsCollectionRequestBuilder { + bb := &IOSManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/apps" + return bb +} + +// IOSManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection +type IOSManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedMobileApp collection +func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) Request() *IOSManagedAppProtectionAppsCollectionRequest { + return &IOSManagedAppProtectionAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedMobileApp item +func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder { + bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection +type IOSManagedAppProtectionAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedMobileApp collection +func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedMobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedMobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedMobileApp collection, max N pages +func (r *IOSManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedMobileApp collection +func (r *IOSManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedMobileApp collection +func (r *IOSManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploymentSummary is navigation property +func (b *IOSManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder { + bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploymentSummary" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *IOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *IOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RootCertificate is navigation property +func (b *IOSScepCertificateProfileRequestBuilder) RootCertificate() *IOSTrustedRootCertificateRequestBuilder { + bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// DerivedCredentialSettings is navigation property +func (b *IOSVPNConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder { + bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/derivedCredentialSettings" + return bb +} + +// IdentityCertificate is navigation property +func (b *IOSVPNConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder { + bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// AssignedLicenses returns request builder for IOSVPPAppAssignedLicense collection +func (b *IOSVPPAppRequestBuilder) AssignedLicenses() *IOSVPPAppAssignedLicensesCollectionRequestBuilder { + bb := &IOSVPPAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignedLicenses" + return bb +} + +// IOSVPPAppAssignedLicensesCollectionRequestBuilder is request builder for IOSVPPAppAssignedLicense collection +type IOSVPPAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IOSVPPAppAssignedLicense collection +func (b *IOSVPPAppAssignedLicensesCollectionRequestBuilder) Request() *IOSVPPAppAssignedLicensesCollectionRequest { + return &IOSVPPAppAssignedLicensesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IOSVPPAppAssignedLicense item +func (b *IOSVPPAppAssignedLicensesCollectionRequestBuilder) ID(id string) *IOSVPPAppAssignedLicenseRequestBuilder { + bb := &IOSVPPAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IOSVPPAppAssignedLicensesCollectionRequest is request for IOSVPPAppAssignedLicense collection +type IOSVPPAppAssignedLicensesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IOSVPPAppAssignedLicense collection +func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSVPPAppAssignedLicense, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IOSVPPAppAssignedLicense + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IOSVPPAppAssignedLicense + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IOSVPPAppAssignedLicense collection, max N pages +func (r *IOSVPPAppAssignedLicensesCollectionRequest) GetN(ctx context.Context, n int) ([]IOSVPPAppAssignedLicense, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IOSVPPAppAssignedLicense collection +func (r *IOSVPPAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]IOSVPPAppAssignedLicense, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IOSVPPAppAssignedLicense collection +func (r *IOSVPPAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *IOSVPPAppAssignedLicense) (resObj *IOSVPPAppAssignedLicense, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go new file mode 100644 index 00000000..1ee8a177 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go @@ -0,0 +1,128 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// UserFlows returns request builder for IdentityUserFlow collection +func (b *IdentityContainerRequestBuilder) UserFlows() *IdentityContainerUserFlowsCollectionRequestBuilder { + bb := &IdentityContainerUserFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userFlows" + return bb +} + +// IdentityContainerUserFlowsCollectionRequestBuilder is request builder for IdentityUserFlow collection +type IdentityContainerUserFlowsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IdentityUserFlow collection +func (b *IdentityContainerUserFlowsCollectionRequestBuilder) Request() *IdentityContainerUserFlowsCollectionRequest { + return &IdentityContainerUserFlowsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IdentityUserFlow item +func (b *IdentityContainerUserFlowsCollectionRequestBuilder) ID(id string) *IdentityUserFlowRequestBuilder { + bb := &IdentityUserFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IdentityContainerUserFlowsCollectionRequest is request for IdentityUserFlow collection +type IdentityContainerUserFlowsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IdentityUserFlow collection +func (r *IdentityContainerUserFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityUserFlow, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IdentityUserFlow + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IdentityUserFlow + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IdentityUserFlow collection, max N pages +func (r *IdentityContainerUserFlowsCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityUserFlow, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IdentityUserFlow collection +func (r *IdentityContainerUserFlowsCollectionRequest) Get(ctx context.Context) ([]IdentityUserFlow, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IdentityUserFlow collection +func (r *IdentityContainerUserFlowsCollectionRequest) Add(ctx context.Context, reqObj *IdentityUserFlow) (resObj *IdentityUserFlow, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EntitlementManagement is navigation property +func (b *IdentityGovernanceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder { + bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/entitlementManagement" + return bb +} + +// ImpactedUser is navigation property +func (b *IdentityRiskEventRequestBuilder) ImpactedUser() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/impactedUser" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go new file mode 100644 index 00000000..b67b8310 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go @@ -0,0 +1,142 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter undocumented +type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter struct { + // ImportedAppleDeviceIdentities undocumented + ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"` + // OverwriteImportedDeviceIdentities undocumented + OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"` +} + +// ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter undocumented +type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter struct { + // ImportedDeviceIdentities undocumented + ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"` + // OverwriteImportedDeviceIdentities undocumented + OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"` +} + +// ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter undocumented +type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter struct { + // ImportedDeviceIdentities undocumented + ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"` +} + +// ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter undocumented +type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter struct { + // ImportedWindowsAutopilotDeviceIdentities undocumented + ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"` +} + +// DeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection +func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) DeviceIdentities() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder { + bb := &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceIdentities" + return bb +} + +// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection +type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection +func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest { + return &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item +func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder { + bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection +type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection +func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedWindowsAutopilotDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedWindowsAutopilotDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ImportedWindowsAutopilotDeviceIdentity collection, max N pages +func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection +func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection +func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go new file mode 100644 index 00000000..78cf946d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Overrides returns request builder for InferenceClassificationOverride collection +func (b *InferenceClassificationRequestBuilder) Overrides() *InferenceClassificationOverridesCollectionRequestBuilder { + bb := &InferenceClassificationOverridesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/overrides" + return bb +} + +// InferenceClassificationOverridesCollectionRequestBuilder is request builder for InferenceClassificationOverride collection +type InferenceClassificationOverridesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for InferenceClassificationOverride collection +func (b *InferenceClassificationOverridesCollectionRequestBuilder) Request() *InferenceClassificationOverridesCollectionRequest { + return &InferenceClassificationOverridesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for InferenceClassificationOverride item +func (b *InferenceClassificationOverridesCollectionRequestBuilder) ID(id string) *InferenceClassificationOverrideRequestBuilder { + bb := &InferenceClassificationOverrideRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// InferenceClassificationOverridesCollectionRequest is request for InferenceClassificationOverride collection +type InferenceClassificationOverridesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for InferenceClassificationOverride collection +func (r *InferenceClassificationOverridesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InferenceClassificationOverride, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []InferenceClassificationOverride + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []InferenceClassificationOverride + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for InferenceClassificationOverride collection, max N pages +func (r *InferenceClassificationOverridesCollectionRequest) GetN(ctx context.Context, n int) ([]InferenceClassificationOverride, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for InferenceClassificationOverride collection +func (r *InferenceClassificationOverridesCollectionRequest) Get(ctx context.Context) ([]InferenceClassificationOverride, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for InferenceClassificationOverride collection +func (r *InferenceClassificationOverridesCollectionRequest) Add(ctx context.Context, reqObj *InferenceClassificationOverride) (resObj *InferenceClassificationOverride, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go new file mode 100644 index 00000000..2a632083 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go @@ -0,0 +1,474 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// InformationProtectionLabelCollectionExtractLabelRequestParameter undocumented +type InformationProtectionLabelCollectionExtractLabelRequestParameter struct { + // ContentInfo undocumented + ContentInfo *ContentInfo `json:"contentInfo,omitempty"` +} + +// InformationProtectionLabelCollectionEvaluateApplicationRequestParameter undocumented +type InformationProtectionLabelCollectionEvaluateApplicationRequestParameter struct { + // ContentInfo undocumented + ContentInfo *ContentInfo `json:"contentInfo,omitempty"` + // LabelingOptions undocumented + LabelingOptions *LabelingOptions `json:"labelingOptions,omitempty"` +} + +// InformationProtectionLabelCollectionEvaluateRemovalRequestParameter undocumented +type InformationProtectionLabelCollectionEvaluateRemovalRequestParameter struct { + // ContentInfo undocumented + ContentInfo *ContentInfo `json:"contentInfo,omitempty"` + // DowngradeJustification undocumented + DowngradeJustification *DowngradeJustification `json:"downgradeJustification,omitempty"` +} + +// InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter undocumented +type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter struct { + // ContentInfo undocumented + ContentInfo *ContentInfo `json:"contentInfo,omitempty"` + // ClassificationResults undocumented + ClassificationResults []ClassificationResult `json:"classificationResults,omitempty"` +} + +// InformationProtectionEvaluateLabelsAndPoliciesRequestParameter undocumented +type InformationProtectionEvaluateLabelsAndPoliciesRequestParameter struct { + // EvaluateSensitivityLabels undocumented + EvaluateSensitivityLabels *EvaluateSensitivityLabelsRequestObject `json:"evaluateSensitivityLabels,omitempty"` + // EvaluateDataLossPreventionPolicies undocumented + EvaluateDataLossPreventionPolicies *DlpEvaluatePoliciesRequestObject `json:"evaluateDataLossPreventionPolicies,omitempty"` + // ClassifyText undocumented + ClassifyText *TextClassificationRequestObject `json:"classifyText,omitempty"` +} + +// DataLossPreventionPolicies returns request builder for DataLossPreventionPolicy collection +func (b *InformationProtectionRequestBuilder) DataLossPreventionPolicies() *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder { + bb := &InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dataLossPreventionPolicies" + return bb +} + +// InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder is request builder for DataLossPreventionPolicy collection +type InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DataLossPreventionPolicy collection +func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Request() *InformationProtectionDataLossPreventionPoliciesCollectionRequest { + return &InformationProtectionDataLossPreventionPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DataLossPreventionPolicy item +func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) ID(id string) *DataLossPreventionPolicyRequestBuilder { + bb := &DataLossPreventionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// InformationProtectionDataLossPreventionPoliciesCollectionRequest is request for DataLossPreventionPolicy collection +type InformationProtectionDataLossPreventionPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DataLossPreventionPolicy collection +func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataLossPreventionPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DataLossPreventionPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DataLossPreventionPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DataLossPreventionPolicy collection, max N pages +func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DataLossPreventionPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DataLossPreventionPolicy collection +func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Get(ctx context.Context) ([]DataLossPreventionPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DataLossPreventionPolicy collection +func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DataLossPreventionPolicy) (resObj *DataLossPreventionPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policy is navigation property +func (b *InformationProtectionRequestBuilder) Policy() *InformationProtectionPolicyRequestBuilder { + bb := &InformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policy" + return bb +} + +// SensitivityLabels returns request builder for SensitivityLabel collection +func (b *InformationProtectionRequestBuilder) SensitivityLabels() *InformationProtectionSensitivityLabelsCollectionRequestBuilder { + bb := &InformationProtectionSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sensitivityLabels" + return bb +} + +// InformationProtectionSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection +type InformationProtectionSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SensitivityLabel collection +func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Request() *InformationProtectionSensitivityLabelsCollectionRequest { + return &InformationProtectionSensitivityLabelsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SensitivityLabel item +func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder { + bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// InformationProtectionSensitivityLabelsCollectionRequest is request for SensitivityLabel collection +type InformationProtectionSensitivityLabelsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SensitivityLabel collection +func (r *InformationProtectionSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SensitivityLabel + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SensitivityLabel + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SensitivityLabel collection, max N pages +func (r *InformationProtectionSensitivityLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SensitivityLabel collection +func (r *InformationProtectionSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SensitivityLabel collection +func (r *InformationProtectionSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SensitivityPolicySettings is navigation property +func (b *InformationProtectionRequestBuilder) SensitivityPolicySettings() *SensitivityPolicySettingsRequestBuilder { + bb := &SensitivityPolicySettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sensitivityPolicySettings" + return bb +} + +// ThreatAssessmentRequests returns request builder for ThreatAssessmentRequestObject collection +func (b *InformationProtectionRequestBuilder) ThreatAssessmentRequests() *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder { + bb := &InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/threatAssessmentRequests" + return bb +} + +// InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder is request builder for ThreatAssessmentRequestObject collection +type InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ThreatAssessmentRequestObject collection +func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) Request() *InformationProtectionThreatAssessmentRequestsCollectionRequest { + return &InformationProtectionThreatAssessmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ThreatAssessmentRequestObject item +func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) ID(id string) *ThreatAssessmentRequestObjectRequestBuilder { + bb := &ThreatAssessmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// InformationProtectionThreatAssessmentRequestsCollectionRequest is request for ThreatAssessmentRequestObject collection +type InformationProtectionThreatAssessmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ThreatAssessmentRequestObject collection +func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThreatAssessmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ThreatAssessmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ThreatAssessmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ThreatAssessmentRequestObject collection, max N pages +func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]ThreatAssessmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ThreatAssessmentRequestObject collection +func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ThreatAssessmentRequestObject collection +func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentRequestObject) (resObj *ThreatAssessmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Labels returns request builder for InformationProtectionLabel collection +func (b *InformationProtectionPolicyRequestBuilder) Labels() *InformationProtectionPolicyLabelsCollectionRequestBuilder { + bb := &InformationProtectionPolicyLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/labels" + return bb +} + +// InformationProtectionPolicyLabelsCollectionRequestBuilder is request builder for InformationProtectionLabel collection +type InformationProtectionPolicyLabelsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for InformationProtectionLabel collection +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) Request() *InformationProtectionPolicyLabelsCollectionRequest { + return &InformationProtectionPolicyLabelsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for InformationProtectionLabel item +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ID(id string) *InformationProtectionLabelRequestBuilder { + bb := &InformationProtectionLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// InformationProtectionPolicyLabelsCollectionRequest is request for InformationProtectionLabel collection +type InformationProtectionPolicyLabelsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for InformationProtectionLabel collection +func (r *InformationProtectionPolicyLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionLabel, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []InformationProtectionLabel + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []InformationProtectionLabel + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for InformationProtectionLabel collection, max N pages +func (r *InformationProtectionPolicyLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]InformationProtectionLabel, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for InformationProtectionLabel collection +func (r *InformationProtectionPolicyLabelsCollectionRequest) Get(ctx context.Context) ([]InformationProtectionLabel, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for InformationProtectionLabel collection +func (r *InformationProtectionPolicyLabelsCollectionRequest) Add(ctx context.Context, reqObj *InformationProtectionLabel) (resObj *InformationProtectionLabel, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go new file mode 100644 index 00000000..916a0acd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go @@ -0,0 +1,120 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// IntuneBrandingProfileAssignRequestParameter undocumented +type IntuneBrandingProfileAssignRequestParameter struct { + // Assignments undocumented + Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"` +} + +// Assignments returns request builder for IntuneBrandingProfileAssignment collection +func (b *IntuneBrandingProfileRequestBuilder) Assignments() *IntuneBrandingProfileAssignmentsCollectionRequestBuilder { + bb := &IntuneBrandingProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// IntuneBrandingProfileAssignmentsCollectionRequestBuilder is request builder for IntuneBrandingProfileAssignment collection +type IntuneBrandingProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IntuneBrandingProfileAssignment collection +func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) Request() *IntuneBrandingProfileAssignmentsCollectionRequest { + return &IntuneBrandingProfileAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IntuneBrandingProfileAssignment item +func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileAssignmentRequestBuilder { + bb := &IntuneBrandingProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// IntuneBrandingProfileAssignmentsCollectionRequest is request for IntuneBrandingProfileAssignment collection +type IntuneBrandingProfileAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IntuneBrandingProfileAssignment collection +func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IntuneBrandingProfileAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IntuneBrandingProfileAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IntuneBrandingProfileAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IntuneBrandingProfileAssignment collection, max N pages +func (r *IntuneBrandingProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]IntuneBrandingProfileAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IntuneBrandingProfileAssignment collection +func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfileAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IntuneBrandingProfileAssignment collection +func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) (resObj *IntuneBrandingProfileAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go new file mode 100644 index 00000000..bbca8161 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InvitedUser is navigation property +func (b *InvitationRequestBuilder) InvitedUser() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/invitedUser" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go new file mode 100644 index 00000000..f2ee21f1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go @@ -0,0 +1,367 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ItemCategory is navigation property +func (b *ItemRequestBuilder) ItemCategory() *ItemCategoryRequestBuilder { + bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/itemCategory" + return bb +} + +// Picture returns request builder for Picture collection +func (b *ItemRequestBuilder) Picture() *ItemPictureCollectionRequestBuilder { + bb := &ItemPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/picture" + return bb +} + +// ItemPictureCollectionRequestBuilder is request builder for Picture collection +type ItemPictureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Picture collection +func (b *ItemPictureCollectionRequestBuilder) Request() *ItemPictureCollectionRequest { + return &ItemPictureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Picture item +func (b *ItemPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder { + bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ItemPictureCollectionRequest is request for Picture collection +type ItemPictureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Picture collection +func (r *ItemPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Picture + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Picture + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Picture collection, max N pages +func (r *ItemPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Picture collection +func (r *ItemPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Picture collection +func (r *ItemPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DriveItem is navigation property +func (b *ItemActivityRequestBuilder) DriveItem() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/driveItem" + return bb +} + +// DriveItem is navigation property +func (b *ItemActivityOLDRequestBuilder) DriveItem() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/driveItem" + return bb +} + +// ListItem is navigation property +func (b *ItemActivityOLDRequestBuilder) ListItem() *ListItemRequestBuilder { + bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/listItem" + return bb +} + +// Activities returns request builder for ItemActivity collection +func (b *ItemActivityStatRequestBuilder) Activities() *ItemActivityStatActivitiesCollectionRequestBuilder { + bb := &ItemActivityStatActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// ItemActivityStatActivitiesCollectionRequestBuilder is request builder for ItemActivity collection +type ItemActivityStatActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivity collection +func (b *ItemActivityStatActivitiesCollectionRequestBuilder) Request() *ItemActivityStatActivitiesCollectionRequest { + return &ItemActivityStatActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivity item +func (b *ItemActivityStatActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityRequestBuilder { + bb := &ItemActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ItemActivityStatActivitiesCollectionRequest is request for ItemActivity collection +type ItemActivityStatActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivity collection +func (r *ItemActivityStatActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivity collection, max N pages +func (r *ItemActivityStatActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivity collection +func (r *ItemActivityStatActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivity collection +func (r *ItemActivityStatActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivity) (resObj *ItemActivity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AllTime is navigation property +func (b *ItemAnalyticsRequestBuilder) AllTime() *ItemActivityStatRequestBuilder { + bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/allTime" + return bb +} + +// ItemActivityStats returns request builder for ItemActivityStat collection +func (b *ItemAnalyticsRequestBuilder) ItemActivityStats() *ItemAnalyticsItemActivityStatsCollectionRequestBuilder { + bb := &ItemAnalyticsItemActivityStatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/itemActivityStats" + return bb +} + +// ItemAnalyticsItemActivityStatsCollectionRequestBuilder is request builder for ItemActivityStat collection +type ItemAnalyticsItemActivityStatsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivityStat collection +func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) Request() *ItemAnalyticsItemActivityStatsCollectionRequest { + return &ItemAnalyticsItemActivityStatsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivityStat item +func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) ID(id string) *ItemActivityStatRequestBuilder { + bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ItemAnalyticsItemActivityStatsCollectionRequest is request for ItemActivityStat collection +type ItemAnalyticsItemActivityStatsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivityStat collection +func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityStat, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivityStat + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivityStat + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivityStat collection, max N pages +func (r *ItemAnalyticsItemActivityStatsCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityStat, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivityStat collection +func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Get(ctx context.Context) ([]ItemActivityStat, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivityStat collection +func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityStat) (resObj *ItemActivityStat, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LastSevenDays is navigation property +func (b *ItemAnalyticsRequestBuilder) LastSevenDays() *ItemActivityStatRequestBuilder { + bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/lastSevenDays" + return bb +} + +// Item is navigation property +func (b *ItemAttachmentRequestBuilder) Item() *OutlookItemRequestBuilder { + bb := &OutlookItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go new file mode 100644 index 00000000..eab6aa32 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go @@ -0,0 +1,132 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// JournalPostRequestParameter undocumented +type JournalPostRequestParameter struct { +} + +// Account is navigation property +func (b *JournalRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// JournalLines returns request builder for JournalLine collection +func (b *JournalRequestBuilder) JournalLines() *JournalJournalLinesCollectionRequestBuilder { + bb := &JournalJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/journalLines" + return bb +} + +// JournalJournalLinesCollectionRequestBuilder is request builder for JournalLine collection +type JournalJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for JournalLine collection +func (b *JournalJournalLinesCollectionRequestBuilder) Request() *JournalJournalLinesCollectionRequest { + return &JournalJournalLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for JournalLine item +func (b *JournalJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder { + bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// JournalJournalLinesCollectionRequest is request for JournalLine collection +type JournalJournalLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for JournalLine collection +func (r *JournalJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JournalLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []JournalLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []JournalLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for JournalLine collection, max N pages +func (r *JournalJournalLinesCollectionRequest) GetN(ctx context.Context, n int) ([]JournalLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for JournalLine collection +func (r *JournalJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for JournalLine collection +func (r *JournalJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Account is navigation property +func (b *JournalLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go new file mode 100644 index 00000000..09cd5532 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go @@ -0,0 +1,765 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ListItemVersionRestoreVersionRequestParameter undocumented +type ListItemVersionRestoreVersionRequestParameter struct { +} + +// Activities returns request builder for ItemActivityOLD collection +func (b *ListRequestBuilder) Activities() *ListActivitiesCollectionRequestBuilder { + bb := &ListActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// ListActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection +type ListActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivityOLD collection +func (b *ListActivitiesCollectionRequestBuilder) Request() *ListActivitiesCollectionRequest { + return &ListActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivityOLD item +func (b *ListActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder { + bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListActivitiesCollectionRequest is request for ItemActivityOLD collection +type ListActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivityOLD collection +func (r *ListActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivityOLD + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivityOLD + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivityOLD collection, max N pages +func (r *ListActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivityOLD collection +func (r *ListActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivityOLD collection +func (r *ListActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Columns returns request builder for ColumnDefinition collection +func (b *ListRequestBuilder) Columns() *ListColumnsCollectionRequestBuilder { + bb := &ListColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/columns" + return bb +} + +// ListColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection +type ListColumnsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ColumnDefinition collection +func (b *ListColumnsCollectionRequestBuilder) Request() *ListColumnsCollectionRequest { + return &ListColumnsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ColumnDefinition item +func (b *ListColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder { + bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListColumnsCollectionRequest is request for ColumnDefinition collection +type ListColumnsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ColumnDefinition collection +func (r *ListColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ColumnDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ColumnDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ColumnDefinition collection, max N pages +func (r *ListColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ColumnDefinition collection +func (r *ListColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ColumnDefinition collection +func (r *ListColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContentTypes returns request builder for ContentType collection +func (b *ListRequestBuilder) ContentTypes() *ListContentTypesCollectionRequestBuilder { + bb := &ListContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contentTypes" + return bb +} + +// ListContentTypesCollectionRequestBuilder is request builder for ContentType collection +type ListContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ContentType collection +func (b *ListContentTypesCollectionRequestBuilder) Request() *ListContentTypesCollectionRequest { + return &ListContentTypesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ContentType item +func (b *ListContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder { + bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListContentTypesCollectionRequest is request for ContentType collection +type ListContentTypesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ContentType collection +func (r *ListContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContentType, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ContentType + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ContentType + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ContentType collection, max N pages +func (r *ListContentTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ContentType, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ContentType collection +func (r *ListContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ContentType collection +func (r *ListContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Drive is navigation property +func (b *ListRequestBuilder) Drive() *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drive" + return bb +} + +// Items returns request builder for ListItem collection +func (b *ListRequestBuilder) Items() *ListItemsCollectionRequestBuilder { + bb := &ListItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// ListItemsCollectionRequestBuilder is request builder for ListItem collection +type ListItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ListItem collection +func (b *ListItemsCollectionRequestBuilder) Request() *ListItemsCollectionRequest { + return &ListItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ListItem item +func (b *ListItemsCollectionRequestBuilder) ID(id string) *ListItemRequestBuilder { + bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListItemsCollectionRequest is request for ListItem collection +type ListItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ListItem collection +func (r *ListItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ListItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ListItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ListItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ListItem collection, max N pages +func (r *ListItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ListItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ListItem collection +func (r *ListItemsCollectionRequest) Get(ctx context.Context) ([]ListItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ListItem collection +func (r *ListItemsCollectionRequest) Add(ctx context.Context, reqObj *ListItem) (resObj *ListItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Subscriptions returns request builder for Subscription collection +func (b *ListRequestBuilder) Subscriptions() *ListSubscriptionsCollectionRequestBuilder { + bb := &ListSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subscriptions" + return bb +} + +// ListSubscriptionsCollectionRequestBuilder is request builder for Subscription collection +type ListSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Subscription collection +func (b *ListSubscriptionsCollectionRequestBuilder) Request() *ListSubscriptionsCollectionRequest { + return &ListSubscriptionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Subscription item +func (b *ListSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder { + bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListSubscriptionsCollectionRequest is request for Subscription collection +type ListSubscriptionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Subscription collection +func (r *ListSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Subscription + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Subscription + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Subscription collection, max N pages +func (r *ListSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Subscription collection +func (r *ListSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Subscription collection +func (r *ListSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Activities returns request builder for ItemActivityOLD collection +func (b *ListItemRequestBuilder) Activities() *ListItemActivitiesCollectionRequestBuilder { + bb := &ListItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// ListItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection +type ListItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemActivityOLD collection +func (b *ListItemActivitiesCollectionRequestBuilder) Request() *ListItemActivitiesCollectionRequest { + return &ListItemActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemActivityOLD item +func (b *ListItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder { + bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListItemActivitiesCollectionRequest is request for ItemActivityOLD collection +type ListItemActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemActivityOLD collection +func (r *ListItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemActivityOLD + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemActivityOLD + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemActivityOLD collection, max N pages +func (r *ListItemActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemActivityOLD collection +func (r *ListItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemActivityOLD collection +func (r *ListItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Analytics is navigation property +func (b *ListItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder { + bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/analytics" + return bb +} + +// DriveItem is navigation property +func (b *ListItemRequestBuilder) DriveItem() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/driveItem" + return bb +} + +// Fields is navigation property +func (b *ListItemRequestBuilder) Fields() *FieldValueSetRequestBuilder { + bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fields" + return bb +} + +// Versions returns request builder for ListItemVersion collection +func (b *ListItemRequestBuilder) Versions() *ListItemVersionsCollectionRequestBuilder { + bb := &ListItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/versions" + return bb +} + +// ListItemVersionsCollectionRequestBuilder is request builder for ListItemVersion collection +type ListItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ListItemVersion collection +func (b *ListItemVersionsCollectionRequestBuilder) Request() *ListItemVersionsCollectionRequest { + return &ListItemVersionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ListItemVersion item +func (b *ListItemVersionsCollectionRequestBuilder) ID(id string) *ListItemVersionRequestBuilder { + bb := &ListItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ListItemVersionsCollectionRequest is request for ListItemVersion collection +type ListItemVersionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ListItemVersion collection +func (r *ListItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ListItemVersion, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ListItemVersion + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ListItemVersion + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ListItemVersion collection, max N pages +func (r *ListItemVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]ListItemVersion, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ListItemVersion collection +func (r *ListItemVersionsCollectionRequest) Get(ctx context.Context) ([]ListItemVersion, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ListItemVersion collection +func (r *ListItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *ListItemVersion) (resObj *ListItemVersion, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Fields is navigation property +func (b *ListItemVersionRequestBuilder) Fields() *FieldValueSetRequestBuilder { + bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fields" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go new file mode 100644 index 00000000..2e8b5a4b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go @@ -0,0 +1,9 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter undocumented +type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go new file mode 100644 index 00000000..e59dca9c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go @@ -0,0 +1,475 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented +type MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// SingleSignOnExtensionPkinitCertificate is navigation property +func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *MacOSCertificateProfileBaseRequestBuilder { + bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleSignOnExtensionPkinitCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder { + bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder { + bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *MacOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *MacOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *MacOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RootCertificate is navigation property +func (b *MacOSScepCertificateProfileRequestBuilder) RootCertificate() *MacOSTrustedRootCertificateRequestBuilder { + bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// IdentityCertificate is navigation property +func (b *MacOSVpnConfigurationRequestBuilder) IdentityCertificate() *MacOSCertificateProfileBaseRequestBuilder { + bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *MacOSWiredNetworkConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder { + bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificateForServerValidation is navigation property +func (b *MacOSWiredNetworkConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder { + bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificateForServerValidation" + return bb +} + +// AssignedLicenses returns request builder for MacOsVPPAppAssignedLicense collection +func (b *MacOsVPPAppRequestBuilder) AssignedLicenses() *MacOsVPPAppAssignedLicensesCollectionRequestBuilder { + bb := &MacOsVPPAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignedLicenses" + return bb +} + +// MacOsVPPAppAssignedLicensesCollectionRequestBuilder is request builder for MacOsVPPAppAssignedLicense collection +type MacOsVPPAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MacOsVPPAppAssignedLicense collection +func (b *MacOsVPPAppAssignedLicensesCollectionRequestBuilder) Request() *MacOsVPPAppAssignedLicensesCollectionRequest { + return &MacOsVPPAppAssignedLicensesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MacOsVPPAppAssignedLicense item +func (b *MacOsVPPAppAssignedLicensesCollectionRequestBuilder) ID(id string) *MacOsVPPAppAssignedLicenseRequestBuilder { + bb := &MacOsVPPAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MacOsVPPAppAssignedLicensesCollectionRequest is request for MacOsVPPAppAssignedLicense collection +type MacOsVPPAppAssignedLicensesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MacOsVPPAppAssignedLicense collection +func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MacOsVPPAppAssignedLicense, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MacOsVPPAppAssignedLicense + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MacOsVPPAppAssignedLicense + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MacOsVPPAppAssignedLicense collection, max N pages +func (r *MacOsVPPAppAssignedLicensesCollectionRequest) GetN(ctx context.Context, n int) ([]MacOsVPPAppAssignedLicense, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MacOsVPPAppAssignedLicense collection +func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]MacOsVPPAppAssignedLicense, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MacOsVPPAppAssignedLicense collection +func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *MacOsVPPAppAssignedLicense) (resObj *MacOsVPPAppAssignedLicense, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go new file mode 100644 index 00000000..de4a460b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go @@ -0,0 +1,636 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MailFolderCopyRequestParameter undocumented +type MailFolderCopyRequestParameter struct { + // DestinationID undocumented + DestinationID *string `json:"DestinationId,omitempty"` +} + +// MailFolderMoveRequestParameter undocumented +type MailFolderMoveRequestParameter struct { + // DestinationID undocumented + DestinationID *string `json:"DestinationId,omitempty"` +} + +// ChildFolders returns request builder for MailFolder collection +func (b *MailFolderRequestBuilder) ChildFolders() *MailFolderChildFoldersCollectionRequestBuilder { + bb := &MailFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/childFolders" + return bb +} + +// MailFolderChildFoldersCollectionRequestBuilder is request builder for MailFolder collection +type MailFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MailFolder collection +func (b *MailFolderChildFoldersCollectionRequestBuilder) Request() *MailFolderChildFoldersCollectionRequest { + return &MailFolderChildFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MailFolder item +func (b *MailFolderChildFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder { + bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderChildFoldersCollectionRequest is request for MailFolder collection +type MailFolderChildFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MailFolder collection +func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MailFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MailFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MailFolder collection, max N pages +func (r *MailFolderChildFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]MailFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MailFolder collection +func (r *MailFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MailFolder collection +func (r *MailFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MessageRules returns request builder for MessageRule collection +func (b *MailFolderRequestBuilder) MessageRules() *MailFolderMessageRulesCollectionRequestBuilder { + bb := &MailFolderMessageRulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/messageRules" + return bb +} + +// MailFolderMessageRulesCollectionRequestBuilder is request builder for MessageRule collection +type MailFolderMessageRulesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MessageRule collection +func (b *MailFolderMessageRulesCollectionRequestBuilder) Request() *MailFolderMessageRulesCollectionRequest { + return &MailFolderMessageRulesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MessageRule item +func (b *MailFolderMessageRulesCollectionRequestBuilder) ID(id string) *MessageRuleRequestBuilder { + bb := &MessageRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderMessageRulesCollectionRequest is request for MessageRule collection +type MailFolderMessageRulesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MessageRule collection +func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MessageRule, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MessageRule + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MessageRule + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MessageRule collection, max N pages +func (r *MailFolderMessageRulesCollectionRequest) GetN(ctx context.Context, n int) ([]MessageRule, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MessageRule collection +func (r *MailFolderMessageRulesCollectionRequest) Get(ctx context.Context) ([]MessageRule, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MessageRule collection +func (r *MailFolderMessageRulesCollectionRequest) Add(ctx context.Context, reqObj *MessageRule) (resObj *MessageRule, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Messages returns request builder for Message collection +func (b *MailFolderRequestBuilder) Messages() *MailFolderMessagesCollectionRequestBuilder { + bb := &MailFolderMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/messages" + return bb +} + +// MailFolderMessagesCollectionRequestBuilder is request builder for Message collection +type MailFolderMessagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Message collection +func (b *MailFolderMessagesCollectionRequestBuilder) Request() *MailFolderMessagesCollectionRequest { + return &MailFolderMessagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Message item +func (b *MailFolderMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder { + bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderMessagesCollectionRequest is request for Message collection +type MailFolderMessagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Message collection +func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Message, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Message + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Message + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Message collection, max N pages +func (r *MailFolderMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]Message, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Message collection +func (r *MailFolderMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Message collection +func (r *MailFolderMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *MailFolderRequestBuilder) MultiValueExtendedProperties() *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderMultiValueExtendedPropertiesCollectionRequest { + return &MailFolderMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type MailFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *MailFolderRequestBuilder) SingleValueExtendedProperties() *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderSingleValueExtendedPropertiesCollectionRequest { + return &MailFolderSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type MailFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserConfigurations returns request builder for UserConfiguration collection +func (b *MailFolderRequestBuilder) UserConfigurations() *MailFolderUserConfigurationsCollectionRequestBuilder { + bb := &MailFolderUserConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userConfigurations" + return bb +} + +// MailFolderUserConfigurationsCollectionRequestBuilder is request builder for UserConfiguration collection +type MailFolderUserConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserConfiguration collection +func (b *MailFolderUserConfigurationsCollectionRequestBuilder) Request() *MailFolderUserConfigurationsCollectionRequest { + return &MailFolderUserConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserConfiguration item +func (b *MailFolderUserConfigurationsCollectionRequestBuilder) ID(id string) *UserConfigurationRequestBuilder { + bb := &UserConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MailFolderUserConfigurationsCollectionRequest is request for UserConfiguration collection +type MailFolderUserConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserConfiguration collection +func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserConfiguration collection, max N pages +func (r *MailFolderUserConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]UserConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserConfiguration collection +func (r *MailFolderUserConfigurationsCollectionRequest) Get(ctx context.Context) ([]UserConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserConfiguration collection +func (r *MailFolderUserConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *UserConfiguration) (resObj *UserConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go new file mode 100644 index 00000000..4bd06143 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go @@ -0,0 +1,1963 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ManagedDeviceCollectionExecuteActionRequestParameter undocumented +type ManagedDeviceCollectionExecuteActionRequestParameter struct { + // ActionName undocumented + ActionName *ManagedDeviceRemoteAction `json:"actionName,omitempty"` + // KeepEnrollmentData undocumented + KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"` + // KeepUserData undocumented + KeepUserData *bool `json:"keepUserData,omitempty"` + // DeviceIDs undocumented + DeviceIDs []string `json:"deviceIds,omitempty"` + // NotificationTitle undocumented + NotificationTitle *string `json:"notificationTitle,omitempty"` + // NotificationBody undocumented + NotificationBody *string `json:"notificationBody,omitempty"` + // DeviceName undocumented + DeviceName *string `json:"deviceName,omitempty"` +} + +// ManagedAppPolicyTargetAppsRequestParameter undocumented +type ManagedAppPolicyTargetAppsRequestParameter struct { + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` +} + +// ManagedAppProtectionTargetAppsRequestParameter undocumented +type ManagedAppProtectionTargetAppsRequestParameter struct { + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` +} + +// ManagedDeviceOverrideComplianceStateRequestParameter undocumented +type ManagedDeviceOverrideComplianceStateRequestParameter struct { + // ComplianceState undocumented + ComplianceState *AdministratorConfiguredDeviceComplianceState `json:"complianceState,omitempty"` + // RemediationURL undocumented + RemediationURL *string `json:"remediationUrl,omitempty"` +} + +// ManagedDeviceEnableLostModeRequestParameter undocumented +type ManagedDeviceEnableLostModeRequestParameter struct { + // Message undocumented + Message *string `json:"message,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Footer undocumented + Footer *string `json:"footer,omitempty"` +} + +// ManagedDevicePlayLostModeSoundRequestParameter undocumented +type ManagedDevicePlayLostModeSoundRequestParameter struct { +} + +// ManagedDeviceSetDeviceNameRequestParameter undocumented +type ManagedDeviceSetDeviceNameRequestParameter struct { + // DeviceName undocumented + DeviceName *string `json:"deviceName,omitempty"` +} + +// ManagedDeviceRotateFileVaultKeyRequestParameter undocumented +type ManagedDeviceRotateFileVaultKeyRequestParameter struct { +} + +// ManagedDeviceRetireRequestParameter undocumented +type ManagedDeviceRetireRequestParameter struct { +} + +// ManagedDeviceWipeRequestParameter undocumented +type ManagedDeviceWipeRequestParameter struct { + // KeepEnrollmentData undocumented + KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"` + // KeepUserData undocumented + KeepUserData *bool `json:"keepUserData,omitempty"` + // MacOsUnlockCode undocumented + MacOsUnlockCode *string `json:"macOsUnlockCode,omitempty"` +} + +// ManagedDeviceResetPasscodeRequestParameter undocumented +type ManagedDeviceResetPasscodeRequestParameter struct { +} + +// ManagedDeviceRemoteLockRequestParameter undocumented +type ManagedDeviceRemoteLockRequestParameter struct { +} + +// ManagedDeviceRequestRemoteAssistanceRequestParameter undocumented +type ManagedDeviceRequestRemoteAssistanceRequestParameter struct { +} + +// ManagedDeviceDisableLostModeRequestParameter undocumented +type ManagedDeviceDisableLostModeRequestParameter struct { +} + +// ManagedDeviceLocateDeviceRequestParameter undocumented +type ManagedDeviceLocateDeviceRequestParameter struct { +} + +// ManagedDeviceBypassActivationLockRequestParameter undocumented +type ManagedDeviceBypassActivationLockRequestParameter struct { +} + +// ManagedDeviceRebootNowRequestParameter undocumented +type ManagedDeviceRebootNowRequestParameter struct { +} + +// ManagedDeviceShutDownRequestParameter undocumented +type ManagedDeviceShutDownRequestParameter struct { +} + +// ManagedDeviceRecoverPasscodeRequestParameter undocumented +type ManagedDeviceRecoverPasscodeRequestParameter struct { +} + +// ManagedDeviceCleanWindowsDeviceRequestParameter undocumented +type ManagedDeviceCleanWindowsDeviceRequestParameter struct { + // KeepUserData undocumented + KeepUserData *bool `json:"keepUserData,omitempty"` +} + +// ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter undocumented +type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter struct { +} + +// ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter undocumented +type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter struct { + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// ManagedDeviceSyncDeviceRequestParameter undocumented +type ManagedDeviceSyncDeviceRequestParameter struct { +} + +// ManagedDeviceWindowsDefenderScanRequestParameter undocumented +type ManagedDeviceWindowsDefenderScanRequestParameter struct { + // QuickScan undocumented + QuickScan *bool `json:"quickScan,omitempty"` +} + +// ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter undocumented +type ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter struct { +} + +// ManagedDeviceUpdateWindowsDeviceAccountRequestParameter undocumented +type ManagedDeviceUpdateWindowsDeviceAccountRequestParameter struct { + // UpdateWindowsDeviceAccountActionParameter undocumented + UpdateWindowsDeviceAccountActionParameter *UpdateWindowsDeviceAccountActionParameter `json:"updateWindowsDeviceAccountActionParameter,omitempty"` +} + +// ManagedDeviceRevokeAppleVPPLicensesRequestParameter undocumented +type ManagedDeviceRevokeAppleVPPLicensesRequestParameter struct { +} + +// ManagedDeviceRotateBitLockerKeysRequestParameter undocumented +type ManagedDeviceRotateBitLockerKeysRequestParameter struct { +} + +// ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter undocumented +type ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter struct { + // NotificationTitle undocumented + NotificationTitle *string `json:"notificationTitle,omitempty"` + // NotificationBody undocumented + NotificationBody *string `json:"notificationBody,omitempty"` +} + +// ManagedDeviceTriggerConfigurationManagerActionRequestParameter undocumented +type ManagedDeviceTriggerConfigurationManagerActionRequestParameter struct { + // ConfigurationManagerAction undocumented + ConfigurationManagerAction *ConfigurationManagerAction `json:"configurationManagerAction,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationAssignRequestParameter undocumented +type ManagedDeviceMobileAppConfigurationAssignRequestParameter struct { + // Assignments undocumented + Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"` +} + +// ManagedEBookAssignRequestParameter undocumented +type ManagedEBookAssignRequestParameter struct { + // ManagedEBookAssignments undocumented + ManagedEBookAssignments []ManagedEBookAssignment `json:"managedEBookAssignments,omitempty"` +} + +// AppliedPolicies returns request builder for ManagedAppPolicy collection +func (b *ManagedAppRegistrationRequestBuilder) AppliedPolicies() *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder { + bb := &ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appliedPolicies" + return bb +} + +// ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection +type ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppPolicy collection +func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationAppliedPoliciesCollectionRequest { + return &ManagedAppRegistrationAppliedPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppPolicy item +func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder { + bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedAppRegistrationAppliedPoliciesCollectionRequest is request for ManagedAppPolicy collection +type ManagedAppRegistrationAppliedPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppPolicy collection +func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppPolicy collection, max N pages +func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppPolicy collection +func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppPolicy collection +func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IntendedPolicies returns request builder for ManagedAppPolicy collection +func (b *ManagedAppRegistrationRequestBuilder) IntendedPolicies() *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder { + bb := &ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/intendedPolicies" + return bb +} + +// ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection +type ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppPolicy collection +func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationIntendedPoliciesCollectionRequest { + return &ManagedAppRegistrationIntendedPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppPolicy item +func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder { + bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedAppRegistrationIntendedPoliciesCollectionRequest is request for ManagedAppPolicy collection +type ManagedAppRegistrationIntendedPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppPolicy collection +func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppPolicy collection, max N pages +func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppPolicy collection +func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppPolicy collection +func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Operations returns request builder for ManagedAppOperation collection +func (b *ManagedAppRegistrationRequestBuilder) Operations() *ManagedAppRegistrationOperationsCollectionRequestBuilder { + bb := &ManagedAppRegistrationOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operations" + return bb +} + +// ManagedAppRegistrationOperationsCollectionRequestBuilder is request builder for ManagedAppOperation collection +type ManagedAppRegistrationOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppOperation collection +func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) Request() *ManagedAppRegistrationOperationsCollectionRequest { + return &ManagedAppRegistrationOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppOperation item +func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) ID(id string) *ManagedAppOperationRequestBuilder { + bb := &ManagedAppOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedAppRegistrationOperationsCollectionRequest is request for ManagedAppOperation collection +type ManagedAppRegistrationOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppOperation collection +func (r *ManagedAppRegistrationOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppOperation collection, max N pages +func (r *ManagedAppRegistrationOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppOperation collection +func (r *ManagedAppRegistrationOperationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppOperation collection +func (r *ManagedAppRegistrationOperationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppOperation) (resObj *ManagedAppOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DetectedApps returns request builder for DetectedApp collection +func (b *ManagedDeviceRequestBuilder) DetectedApps() *ManagedDeviceDetectedAppsCollectionRequestBuilder { + bb := &ManagedDeviceDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/detectedApps" + return bb +} + +// ManagedDeviceDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection +type ManagedDeviceDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DetectedApp collection +func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) Request() *ManagedDeviceDetectedAppsCollectionRequest { + return &ManagedDeviceDetectedAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DetectedApp item +func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder { + bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceDetectedAppsCollectionRequest is request for DetectedApp collection +type ManagedDeviceDetectedAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DetectedApp collection +func (r *ManagedDeviceDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DetectedApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DetectedApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DetectedApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DetectedApp collection, max N pages +func (r *ManagedDeviceDetectedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]DetectedApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DetectedApp collection +func (r *ManagedDeviceDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DetectedApp collection +func (r *ManagedDeviceDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceCategory is navigation property +func (b *ManagedDeviceRequestBuilder) DeviceCategory() *DeviceCategoryRequestBuilder { + bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCategory" + return bb +} + +// DeviceCompliancePolicyStates returns request builder for DeviceCompliancePolicyState collection +func (b *ManagedDeviceRequestBuilder) DeviceCompliancePolicyStates() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder { + bb := &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceCompliancePolicyStates" + return bb +} + +// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder is request builder for DeviceCompliancePolicyState collection +type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceCompliancePolicyState collection +func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest { + return &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceCompliancePolicyState item +func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyStateRequestBuilder { + bb := &DeviceCompliancePolicyStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest is request for DeviceCompliancePolicyState collection +type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceCompliancePolicyState collection +func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCompliancePolicyState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCompliancePolicyState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceCompliancePolicyState collection, max N pages +func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicyState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceCompliancePolicyState collection +func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceCompliancePolicyState collection +func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyState) (resObj *DeviceCompliancePolicyState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceConfigurationStates returns request builder for DeviceConfigurationState collection +func (b *ManagedDeviceRequestBuilder) DeviceConfigurationStates() *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder { + bb := &ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceConfigurationStates" + return bb +} + +// ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder is request builder for DeviceConfigurationState collection +type ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfigurationState collection +func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceConfigurationStatesCollectionRequest { + return &ManagedDeviceDeviceConfigurationStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfigurationState item +func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) ID(id string) *DeviceConfigurationStateRequestBuilder { + bb := &DeviceConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceDeviceConfigurationStatesCollectionRequest is request for DeviceConfigurationState collection +type ManagedDeviceDeviceConfigurationStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfigurationState collection +func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfigurationState collection, max N pages +func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfigurationState collection +func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfigurationState collection +func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationState) (resObj *DeviceConfigurationState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceMobileAppConfigurationStates returns request builder for ManagedDeviceMobileAppConfigurationState collection +func (b *ManagedDeviceRequestBuilder) ManagedDeviceMobileAppConfigurationStates() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder { + bb := &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceMobileAppConfigurationStates" + return bb +} + +// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState collection +type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationState collection +func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest { + return &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationState item +func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationStateRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest is request for ManagedDeviceMobileAppConfigurationState collection +type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationState collection +func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationState collection, max N pages +func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationState collection +func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationState collection +func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) (resObj *ManagedDeviceMobileAppConfigurationState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SecurityBaselineStates returns request builder for SecurityBaselineState collection +func (b *ManagedDeviceRequestBuilder) SecurityBaselineStates() *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder { + bb := &ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/securityBaselineStates" + return bb +} + +// ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder is request builder for SecurityBaselineState collection +type ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecurityBaselineState collection +func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) Request() *ManagedDeviceSecurityBaselineStatesCollectionRequest { + return &ManagedDeviceSecurityBaselineStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecurityBaselineState item +func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineStateRequestBuilder { + bb := &SecurityBaselineStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceSecurityBaselineStatesCollectionRequest is request for SecurityBaselineState collection +type ManagedDeviceSecurityBaselineStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecurityBaselineState collection +func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecurityBaselineState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecurityBaselineState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecurityBaselineState collection, max N pages +func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecurityBaselineState collection +func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecurityBaselineState collection +func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineState) (resObj *SecurityBaselineState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Users returns request builder for User collection +func (b *ManagedDeviceRequestBuilder) Users() *ManagedDeviceUsersCollectionRequestBuilder { + bb := &ManagedDeviceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/users" + return bb +} + +// ManagedDeviceUsersCollectionRequestBuilder is request builder for User collection +type ManagedDeviceUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for User collection +func (b *ManagedDeviceUsersCollectionRequestBuilder) Request() *ManagedDeviceUsersCollectionRequest { + return &ManagedDeviceUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for User item +func (b *ManagedDeviceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceUsersCollectionRequest is request for User collection +type ManagedDeviceUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for User collection +func (r *ManagedDeviceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []User + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []User + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for User collection, max N pages +func (r *ManagedDeviceUsersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for User collection +func (r *ManagedDeviceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for User collection +func (r *ManagedDeviceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsProtectionState is navigation property +func (b *ManagedDeviceRequestBuilder) WindowsProtectionState() *WindowsProtectionStateRequestBuilder { + bb := &WindowsProtectionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsProtectionState" + return bb +} + +// Assignments returns request builder for ManagedDeviceMobileAppConfigurationAssignment collection +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assignments() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment collection +type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationAssignment collection +func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest { + return &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationAssignment item +func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest is request for ManagedDeviceMobileAppConfigurationAssignment collection +type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationAssignment collection +func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection, max N pages +func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection +func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationAssignment collection +func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStatusSummary is navigation property +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatusSummary() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatusSummary" + return bb +} + +// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatuses() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection +type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest { + return &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item +func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationDeviceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationDeviceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection, max N pages +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStatusSummary is navigation property +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatusSummary() *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatusSummary" + return bb +} + +// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatuses() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatuses" + return bb +} + +// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection +type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest { + return &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item +func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection +type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceMobileAppConfigurationUserStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceMobileAppConfigurationUserStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection, max N pages +func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection +func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for ManagedEBookAssignment collection +func (b *ManagedEBookRequestBuilder) Assignments() *ManagedEBookAssignmentsCollectionRequestBuilder { + bb := &ManagedEBookAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// ManagedEBookAssignmentsCollectionRequestBuilder is request builder for ManagedEBookAssignment collection +type ManagedEBookAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedEBookAssignment collection +func (b *ManagedEBookAssignmentsCollectionRequestBuilder) Request() *ManagedEBookAssignmentsCollectionRequest { + return &ManagedEBookAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedEBookAssignment item +func (b *ManagedEBookAssignmentsCollectionRequestBuilder) ID(id string) *ManagedEBookAssignmentRequestBuilder { + bb := &ManagedEBookAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedEBookAssignmentsCollectionRequest is request for ManagedEBookAssignment collection +type ManagedEBookAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedEBookAssignment collection +func (r *ManagedEBookAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedEBookAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedEBookAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedEBookAssignment collection, max N pages +func (r *ManagedEBookAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedEBookAssignment collection +func (r *ManagedEBookAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedEBookAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedEBookAssignment collection +func (r *ManagedEBookAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookAssignment) (resObj *ManagedEBookAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Categories returns request builder for ManagedEBookCategory collection +func (b *ManagedEBookRequestBuilder) Categories() *ManagedEBookCategoriesCollectionRequestBuilder { + bb := &ManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// ManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection +type ManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedEBookCategory collection +func (b *ManagedEBookCategoriesCollectionRequestBuilder) Request() *ManagedEBookCategoriesCollectionRequest { + return &ManagedEBookCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedEBookCategory item +func (b *ManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder { + bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection +type ManagedEBookCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedEBookCategory collection +func (r *ManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedEBookCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedEBookCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedEBookCategory collection, max N pages +func (r *ManagedEBookCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedEBookCategory collection +func (r *ManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedEBookCategory collection +func (r *ManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStates returns request builder for DeviceInstallState collection +func (b *ManagedEBookRequestBuilder) DeviceStates() *ManagedEBookDeviceStatesCollectionRequestBuilder { + bb := &ManagedEBookDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStates" + return bb +} + +// ManagedEBookDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection +type ManagedEBookDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceInstallState collection +func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) Request() *ManagedEBookDeviceStatesCollectionRequest { + return &ManagedEBookDeviceStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceInstallState item +func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder { + bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedEBookDeviceStatesCollectionRequest is request for DeviceInstallState collection +type ManagedEBookDeviceStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceInstallState collection +func (r *ManagedEBookDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceInstallState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceInstallState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceInstallState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceInstallState collection, max N pages +func (r *ManagedEBookDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceInstallState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceInstallState collection +func (r *ManagedEBookDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceInstallState collection +func (r *ManagedEBookDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// InstallSummary is navigation property +func (b *ManagedEBookRequestBuilder) InstallSummary() *EBookInstallSummaryRequestBuilder { + bb := &EBookInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/installSummary" + return bb +} + +// UserStateSummary returns request builder for UserInstallStateSummary collection +func (b *ManagedEBookRequestBuilder) UserStateSummary() *ManagedEBookUserStateSummaryCollectionRequestBuilder { + bb := &ManagedEBookUserStateSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStateSummary" + return bb +} + +// ManagedEBookUserStateSummaryCollectionRequestBuilder is request builder for UserInstallStateSummary collection +type ManagedEBookUserStateSummaryCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserInstallStateSummary collection +func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) Request() *ManagedEBookUserStateSummaryCollectionRequest { + return &ManagedEBookUserStateSummaryCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserInstallStateSummary item +func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) ID(id string) *UserInstallStateSummaryRequestBuilder { + bb := &UserInstallStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedEBookUserStateSummaryCollectionRequest is request for UserInstallStateSummary collection +type ManagedEBookUserStateSummaryCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserInstallStateSummary collection +func (r *ManagedEBookUserStateSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserInstallStateSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserInstallStateSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserInstallStateSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserInstallStateSummary collection, max N pages +func (r *ManagedEBookUserStateSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]UserInstallStateSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserInstallStateSummary collection +func (r *ManagedEBookUserStateSummaryCollectionRequest) Get(ctx context.Context) ([]UserInstallStateSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserInstallStateSummary collection +func (r *ManagedEBookUserStateSummaryCollectionRequest) Add(ctx context.Context, reqObj *UserInstallStateSummary) (resObj *UserInstallStateSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContentVersions returns request builder for MobileAppContent collection +func (b *ManagedMobileLobAppRequestBuilder) ContentVersions() *ManagedMobileLobAppContentVersionsCollectionRequestBuilder { + bb := &ManagedMobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contentVersions" + return bb +} + +// ManagedMobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection +type ManagedMobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppContent collection +func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) Request() *ManagedMobileLobAppContentVersionsCollectionRequest { + return &ManagedMobileLobAppContentVersionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppContent item +func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder { + bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagedMobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection +type ManagedMobileLobAppContentVersionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppContent collection +func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppContent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppContent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppContent collection, max N pages +func (r *ManagedMobileLobAppContentVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppContent collection +func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppContent collection +func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go new file mode 100644 index 00000000..93b0926c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go @@ -0,0 +1,216 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ManagementConditionStatements returns request builder for ManagementConditionStatement collection +func (b *ManagementConditionRequestBuilder) ManagementConditionStatements() *ManagementConditionManagementConditionStatementsCollectionRequestBuilder { + bb := &ManagementConditionManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managementConditionStatements" + return bb +} + +// ManagementConditionManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection +type ManagementConditionManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagementConditionStatement collection +func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) Request() *ManagementConditionManagementConditionStatementsCollectionRequest { + return &ManagementConditionManagementConditionStatementsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagementConditionStatement item +func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder { + bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagementConditionManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection +type ManagementConditionManagementConditionStatementsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagementConditionStatement collection +func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementConditionStatement, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagementConditionStatement + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagementConditionStatement + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagementConditionStatement collection, max N pages +func (r *ManagementConditionManagementConditionStatementsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementConditionStatement, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagementConditionStatement collection +func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagementConditionStatement collection +func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagementConditions returns request builder for ManagementCondition collection +func (b *ManagementConditionStatementRequestBuilder) ManagementConditions() *ManagementConditionStatementManagementConditionsCollectionRequestBuilder { + bb := &ManagementConditionStatementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managementConditions" + return bb +} + +// ManagementConditionStatementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection +type ManagementConditionStatementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagementCondition collection +func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) Request() *ManagementConditionStatementManagementConditionsCollectionRequest { + return &ManagementConditionStatementManagementConditionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagementCondition item +func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder { + bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ManagementConditionStatementManagementConditionsCollectionRequest is request for ManagementCondition collection +type ManagementConditionStatementManagementConditionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagementCondition collection +func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementCondition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagementCondition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagementCondition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagementCondition collection, max N pages +func (r *ManagementConditionStatementManagementConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementCondition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagementCondition collection +func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagementCondition collection +func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go new file mode 100644 index 00000000..8222d56f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go @@ -0,0 +1,594 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MessageCreateReplyRequestParameter undocumented +type MessageCreateReplyRequestParameter struct { + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageCreateReplyAllRequestParameter undocumented +type MessageCreateReplyAllRequestParameter struct { + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageCreateForwardRequestParameter undocumented +type MessageCreateForwardRequestParameter struct { + // ToRecipients undocumented + ToRecipients []Recipient `json:"ToRecipients,omitempty"` + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageSendRequestParameter undocumented +type MessageSendRequestParameter struct { +} + +// MessageCopyRequestParameter undocumented +type MessageCopyRequestParameter struct { + // DestinationID undocumented + DestinationID *string `json:"DestinationId,omitempty"` +} + +// MessageMoveRequestParameter undocumented +type MessageMoveRequestParameter struct { + // DestinationID undocumented + DestinationID *string `json:"DestinationId,omitempty"` +} + +// MessageReplyRequestParameter undocumented +type MessageReplyRequestParameter struct { + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageReplyAllRequestParameter undocumented +type MessageReplyAllRequestParameter struct { + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageForwardRequestParameter undocumented +type MessageForwardRequestParameter struct { + // ToRecipients undocumented + ToRecipients []Recipient `json:"ToRecipients,omitempty"` + // Message undocumented + Message *Message `json:"Message,omitempty"` + // Comment undocumented + Comment *string `json:"Comment,omitempty"` +} + +// MessageUnsubscribeRequestParameter undocumented +type MessageUnsubscribeRequestParameter struct { +} + +// Attachments returns request builder for Attachment collection +func (b *MessageRequestBuilder) Attachments() *MessageAttachmentsCollectionRequestBuilder { + bb := &MessageAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/attachments" + return bb +} + +// MessageAttachmentsCollectionRequestBuilder is request builder for Attachment collection +type MessageAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Attachment collection +func (b *MessageAttachmentsCollectionRequestBuilder) Request() *MessageAttachmentsCollectionRequest { + return &MessageAttachmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Attachment item +func (b *MessageAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder { + bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MessageAttachmentsCollectionRequest is request for Attachment collection +type MessageAttachmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Attachment collection +func (r *MessageAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Attachment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Attachment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Attachment collection, max N pages +func (r *MessageAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Attachment collection +func (r *MessageAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Attachment collection +func (r *MessageAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *MessageRequestBuilder) Extensions() *MessageExtensionsCollectionRequestBuilder { + bb := &MessageExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// MessageExtensionsCollectionRequestBuilder is request builder for Extension collection +type MessageExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *MessageExtensionsCollectionRequestBuilder) Request() *MessageExtensionsCollectionRequest { + return &MessageExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *MessageExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MessageExtensionsCollectionRequest is request for Extension collection +type MessageExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *MessageExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *MessageExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *MessageExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *MessageExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Mentions returns request builder for Mention collection +func (b *MessageRequestBuilder) Mentions() *MessageMentionsCollectionRequestBuilder { + bb := &MessageMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mentions" + return bb +} + +// MessageMentionsCollectionRequestBuilder is request builder for Mention collection +type MessageMentionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Mention collection +func (b *MessageMentionsCollectionRequestBuilder) Request() *MessageMentionsCollectionRequest { + return &MessageMentionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Mention item +func (b *MessageMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder { + bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MessageMentionsCollectionRequest is request for Mention collection +type MessageMentionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Mention collection +func (r *MessageMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Mention, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Mention + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Mention + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Mention collection, max N pages +func (r *MessageMentionsCollectionRequest) GetN(ctx context.Context, n int) ([]Mention, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Mention collection +func (r *MessageMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Mention collection +func (r *MessageMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *MessageRequestBuilder) MultiValueExtendedProperties() *MessageMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &MessageMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// MessageMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type MessageMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageMultiValueExtendedPropertiesCollectionRequest { + return &MessageMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MessageMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type MessageMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *MessageMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *MessageRequestBuilder) SingleValueExtendedProperties() *MessageSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &MessageSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// MessageSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type MessageSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageSingleValueExtendedPropertiesCollectionRequest { + return &MessageSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MessageSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type MessageSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *MessageSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go new file mode 100644 index 00000000..cff9ddf4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ContainedApps returns request builder for MobileContainedApp collection +func (b *MicrosoftStoreForBusinessAppRequestBuilder) ContainedApps() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder { + bb := &MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/containedApps" + return bb +} + +// MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection +type MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileContainedApp collection +func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) Request() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest { + return &MicrosoftStoreForBusinessAppContainedAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileContainedApp item +func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder { + bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MicrosoftStoreForBusinessAppContainedAppsCollectionRequest is request for MobileContainedApp collection +type MicrosoftStoreForBusinessAppContainedAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileContainedApp collection +func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileContainedApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileContainedApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileContainedApp collection, max N pages +func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileContainedApp collection +func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileContainedApp collection +func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go new file mode 100644 index 00000000..4d2a3e6f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go @@ -0,0 +1,972 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MobileAppCollectionHasPayloadLinksRequestParameter undocumented +type MobileAppCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// MobileAppAssignRequestParameter undocumented +type MobileAppAssignRequestParameter struct { + // MobileAppAssignments undocumented + MobileAppAssignments []MobileAppAssignment `json:"mobileAppAssignments,omitempty"` +} + +// MobileAppUpdateRelationshipsRequestParameter undocumented +type MobileAppUpdateRelationshipsRequestParameter struct { + // Relationships undocumented + Relationships []MobileAppRelationship `json:"relationships,omitempty"` +} + +// MobileAppContentFileCommitRequestParameter undocumented +type MobileAppContentFileCommitRequestParameter struct { + // FileEncryptionInfo undocumented + FileEncryptionInfo *FileEncryptionInfo `json:"fileEncryptionInfo,omitempty"` +} + +// MobileAppContentFileRenewUploadRequestParameter undocumented +type MobileAppContentFileRenewUploadRequestParameter struct { +} + +// Assignments returns request builder for MobileAppAssignment collection +func (b *MobileAppRequestBuilder) Assignments() *MobileAppAssignmentsCollectionRequestBuilder { + bb := &MobileAppAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// MobileAppAssignmentsCollectionRequestBuilder is request builder for MobileAppAssignment collection +type MobileAppAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppAssignment collection +func (b *MobileAppAssignmentsCollectionRequestBuilder) Request() *MobileAppAssignmentsCollectionRequest { + return &MobileAppAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppAssignment item +func (b *MobileAppAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppAssignmentRequestBuilder { + bb := &MobileAppAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppAssignmentsCollectionRequest is request for MobileAppAssignment collection +type MobileAppAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppAssignment collection +func (r *MobileAppAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppAssignment collection, max N pages +func (r *MobileAppAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppAssignment collection +func (r *MobileAppAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppAssignment collection +func (r *MobileAppAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppAssignment) (resObj *MobileAppAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Categories returns request builder for MobileAppCategory collection +func (b *MobileAppRequestBuilder) Categories() *MobileAppCategoriesCollectionRequestBuilder { + bb := &MobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categories" + return bb +} + +// MobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection +type MobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppCategory collection +func (b *MobileAppCategoriesCollectionRequestBuilder) Request() *MobileAppCategoriesCollectionRequest { + return &MobileAppCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppCategory item +func (b *MobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder { + bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppCategoriesCollectionRequest is request for MobileAppCategory collection +type MobileAppCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppCategory collection +func (r *MobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppCategory collection, max N pages +func (r *MobileAppCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppCategory collection +func (r *MobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppCategory collection +func (r *MobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStatuses returns request builder for MobileAppInstallStatus collection +func (b *MobileAppRequestBuilder) DeviceStatuses() *MobileAppDeviceStatusesCollectionRequestBuilder { + bb := &MobileAppDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// MobileAppDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection +type MobileAppDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppInstallStatus collection +func (b *MobileAppDeviceStatusesCollectionRequestBuilder) Request() *MobileAppDeviceStatusesCollectionRequest { + return &MobileAppDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppInstallStatus item +func (b *MobileAppDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder { + bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection +type MobileAppDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppInstallStatus collection +func (r *MobileAppDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppInstallStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppInstallStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppInstallStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppInstallStatus collection, max N pages +func (r *MobileAppDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppInstallStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppInstallStatus collection +func (r *MobileAppDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppInstallStatus collection +func (r *MobileAppDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// InstallSummary is navigation property +func (b *MobileAppRequestBuilder) InstallSummary() *MobileAppInstallSummaryRequestBuilder { + bb := &MobileAppInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/installSummary" + return bb +} + +// Relationships returns request builder for MobileAppRelationship collection +func (b *MobileAppRequestBuilder) Relationships() *MobileAppRelationshipsCollectionRequestBuilder { + bb := &MobileAppRelationshipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/relationships" + return bb +} + +// MobileAppRelationshipsCollectionRequestBuilder is request builder for MobileAppRelationship collection +type MobileAppRelationshipsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppRelationship collection +func (b *MobileAppRelationshipsCollectionRequestBuilder) Request() *MobileAppRelationshipsCollectionRequest { + return &MobileAppRelationshipsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppRelationship item +func (b *MobileAppRelationshipsCollectionRequestBuilder) ID(id string) *MobileAppRelationshipRequestBuilder { + bb := &MobileAppRelationshipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppRelationshipsCollectionRequest is request for MobileAppRelationship collection +type MobileAppRelationshipsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppRelationship collection +func (r *MobileAppRelationshipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppRelationship, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppRelationship + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppRelationship + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppRelationship collection, max N pages +func (r *MobileAppRelationshipsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppRelationship, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppRelationship collection +func (r *MobileAppRelationshipsCollectionRequest) Get(ctx context.Context) ([]MobileAppRelationship, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppRelationship collection +func (r *MobileAppRelationshipsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppRelationship) (resObj *MobileAppRelationship, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserStatuses returns request builder for UserAppInstallStatus collection +func (b *MobileAppRequestBuilder) UserStatuses() *MobileAppUserStatusesCollectionRequestBuilder { + bb := &MobileAppUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userStatuses" + return bb +} + +// MobileAppUserStatusesCollectionRequestBuilder is request builder for UserAppInstallStatus collection +type MobileAppUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserAppInstallStatus collection +func (b *MobileAppUserStatusesCollectionRequestBuilder) Request() *MobileAppUserStatusesCollectionRequest { + return &MobileAppUserStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserAppInstallStatus item +func (b *MobileAppUserStatusesCollectionRequestBuilder) ID(id string) *UserAppInstallStatusRequestBuilder { + bb := &UserAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppUserStatusesCollectionRequest is request for UserAppInstallStatus collection +type MobileAppUserStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserAppInstallStatus collection +func (r *MobileAppUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserAppInstallStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserAppInstallStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserAppInstallStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserAppInstallStatus collection, max N pages +func (r *MobileAppUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]UserAppInstallStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserAppInstallStatus collection +func (r *MobileAppUserStatusesCollectionRequest) Get(ctx context.Context) ([]UserAppInstallStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserAppInstallStatus collection +func (r *MobileAppUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *UserAppInstallStatus) (resObj *UserAppInstallStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContainedApps returns request builder for MobileContainedApp collection +func (b *MobileAppContentRequestBuilder) ContainedApps() *MobileAppContentContainedAppsCollectionRequestBuilder { + bb := &MobileAppContentContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/containedApps" + return bb +} + +// MobileAppContentContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection +type MobileAppContentContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileContainedApp collection +func (b *MobileAppContentContainedAppsCollectionRequestBuilder) Request() *MobileAppContentContainedAppsCollectionRequest { + return &MobileAppContentContainedAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileContainedApp item +func (b *MobileAppContentContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder { + bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppContentContainedAppsCollectionRequest is request for MobileContainedApp collection +type MobileAppContentContainedAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileContainedApp collection +func (r *MobileAppContentContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileContainedApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileContainedApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileContainedApp collection, max N pages +func (r *MobileAppContentContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileContainedApp collection +func (r *MobileAppContentContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileContainedApp collection +func (r *MobileAppContentContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Files returns request builder for MobileAppContentFile collection +func (b *MobileAppContentRequestBuilder) Files() *MobileAppContentFilesCollectionRequestBuilder { + bb := &MobileAppContentFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/files" + return bb +} + +// MobileAppContentFilesCollectionRequestBuilder is request builder for MobileAppContentFile collection +type MobileAppContentFilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppContentFile collection +func (b *MobileAppContentFilesCollectionRequestBuilder) Request() *MobileAppContentFilesCollectionRequest { + return &MobileAppContentFilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppContentFile item +func (b *MobileAppContentFilesCollectionRequestBuilder) ID(id string) *MobileAppContentFileRequestBuilder { + bb := &MobileAppContentFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppContentFilesCollectionRequest is request for MobileAppContentFile collection +type MobileAppContentFilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppContentFile collection +func (r *MobileAppContentFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContentFile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppContentFile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppContentFile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppContentFile collection, max N pages +func (r *MobileAppContentFilesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContentFile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppContentFile collection +func (r *MobileAppContentFilesCollectionRequest) Get(ctx context.Context) ([]MobileAppContentFile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppContentFile collection +func (r *MobileAppContentFilesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContentFile) (resObj *MobileAppContentFile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// App is navigation property +func (b *MobileAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder { + bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/app" + return bb +} + +// AppLogCollectionRequests returns request builder for AppLogCollectionRequestObject collection +func (b *MobileAppTroubleshootingEventRequestBuilder) AppLogCollectionRequests() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder { + bb := &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appLogCollectionRequests" + return bb +} + +// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder is request builder for AppLogCollectionRequestObject collection +type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppLogCollectionRequestObject collection +func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) Request() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest { + return &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppLogCollectionRequestObject item +func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) ID(id string) *AppLogCollectionRequestObjectRequestBuilder { + bb := &AppLogCollectionRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest is request for AppLogCollectionRequestObject collection +type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppLogCollectionRequestObject collection +func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppLogCollectionRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppLogCollectionRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppLogCollectionRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppLogCollectionRequestObject collection, max N pages +func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AppLogCollectionRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppLogCollectionRequestObject collection +func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Get(ctx context.Context) ([]AppLogCollectionRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppLogCollectionRequestObject collection +func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Add(ctx context.Context, reqObj *AppLogCollectionRequestObject) (resObj *AppLogCollectionRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContentVersions returns request builder for MobileAppContent collection +func (b *MobileLobAppRequestBuilder) ContentVersions() *MobileLobAppContentVersionsCollectionRequestBuilder { + bb := &MobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contentVersions" + return bb +} + +// MobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection +type MobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppContent collection +func (b *MobileLobAppContentVersionsCollectionRequestBuilder) Request() *MobileLobAppContentVersionsCollectionRequest { + return &MobileLobAppContentVersionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppContent item +func (b *MobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder { + bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// MobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection +type MobileLobAppContentVersionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppContent collection +func (r *MobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppContent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppContent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppContent collection, max N pages +func (r *MobileLobAppContentVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppContent collection +func (r *MobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppContent collection +func (r *MobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go new file mode 100644 index 00000000..174d0d1b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go @@ -0,0 +1,236 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// NotebookCollectionGetNotebookFromWebURLRequestParameter undocumented +type NotebookCollectionGetNotebookFromWebURLRequestParameter struct { + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// NotebookCopyNotebookRequestParameter undocumented +type NotebookCopyNotebookRequestParameter struct { + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` + // RenameAs undocumented + RenameAs *string `json:"renameAs,omitempty"` + // NotebookFolder undocumented + NotebookFolder *string `json:"notebookFolder,omitempty"` + // SiteCollectionID undocumented + SiteCollectionID *string `json:"siteCollectionId,omitempty"` + // SiteID undocumented + SiteID *string `json:"siteId,omitempty"` +} + +// SectionGroups returns request builder for SectionGroup collection +func (b *NotebookRequestBuilder) SectionGroups() *NotebookSectionGroupsCollectionRequestBuilder { + bb := &NotebookSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sectionGroups" + return bb +} + +// NotebookSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection +type NotebookSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SectionGroup collection +func (b *NotebookSectionGroupsCollectionRequestBuilder) Request() *NotebookSectionGroupsCollectionRequest { + return &NotebookSectionGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SectionGroup item +func (b *NotebookSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder { + bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// NotebookSectionGroupsCollectionRequest is request for SectionGroup collection +type NotebookSectionGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SectionGroup collection +func (r *NotebookSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SectionGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SectionGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SectionGroup collection, max N pages +func (r *NotebookSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SectionGroup collection +func (r *NotebookSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SectionGroup collection +func (r *NotebookSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sections returns request builder for OnenoteSection collection +func (b *NotebookRequestBuilder) Sections() *NotebookSectionsCollectionRequestBuilder { + bb := &NotebookSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sections" + return bb +} + +// NotebookSectionsCollectionRequestBuilder is request builder for OnenoteSection collection +type NotebookSectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenoteSection collection +func (b *NotebookSectionsCollectionRequestBuilder) Request() *NotebookSectionsCollectionRequest { + return &NotebookSectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenoteSection item +func (b *NotebookSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder { + bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// NotebookSectionsCollectionRequest is request for OnenoteSection collection +type NotebookSectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenoteSection collection +func (r *NotebookSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenoteSection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenoteSection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenoteSection collection, max N pages +func (r *NotebookSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenoteSection collection +func (r *NotebookSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenoteSection collection +func (r *NotebookSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go new file mode 100644 index 00000000..2fbea976 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go @@ -0,0 +1,118 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// NotificationMessageTemplateSendTestMessageRequestParameter undocumented +type NotificationMessageTemplateSendTestMessageRequestParameter struct { +} + +// LocalizedNotificationMessages returns request builder for LocalizedNotificationMessage collection +func (b *NotificationMessageTemplateRequestBuilder) LocalizedNotificationMessages() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder { + bb := &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/localizedNotificationMessages" + return bb +} + +// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder is request builder for LocalizedNotificationMessage collection +type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LocalizedNotificationMessage collection +func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) Request() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest { + return &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LocalizedNotificationMessage item +func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) ID(id string) *LocalizedNotificationMessageRequestBuilder { + bb := &LocalizedNotificationMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest is request for LocalizedNotificationMessage collection +type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LocalizedNotificationMessage collection +func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LocalizedNotificationMessage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LocalizedNotificationMessage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LocalizedNotificationMessage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LocalizedNotificationMessage collection, max N pages +func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]LocalizedNotificationMessage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LocalizedNotificationMessage collection +func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Get(ctx context.Context) ([]LocalizedNotificationMessage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LocalizedNotificationMessage collection +func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Add(ctx context.Context, reqObj *LocalizedNotificationMessage) (resObj *LocalizedNotificationMessage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go new file mode 100644 index 00000000..a2fdcd2d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go @@ -0,0 +1,536 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter undocumented +type OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter struct { + // OfficeConfigurationPolicyIDs undocumented + OfficeConfigurationPolicyIDs []string `json:"officeConfigurationPolicyIds,omitempty"` + // OfficeConfigurationPriorities undocumented + OfficeConfigurationPriorities []int `json:"officeConfigurationPriorities,omitempty"` +} + +// OfficeClientConfigurationAssignRequestParameter undocumented +type OfficeClientConfigurationAssignRequestParameter struct { + // OfficeConfigurationAssignments undocumented + OfficeConfigurationAssignments []OfficeClientConfigurationAssignment `json:"officeConfigurationAssignments,omitempty"` +} + +// Assignments returns request builder for OfficeClientConfigurationAssignment collection +func (b *OfficeClientConfigurationRequestBuilder) Assignments() *OfficeClientConfigurationAssignmentsCollectionRequestBuilder { + bb := &OfficeClientConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// OfficeClientConfigurationAssignmentsCollectionRequestBuilder is request builder for OfficeClientConfigurationAssignment collection +type OfficeClientConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OfficeClientConfigurationAssignment collection +func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) Request() *OfficeClientConfigurationAssignmentsCollectionRequest { + return &OfficeClientConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OfficeClientConfigurationAssignment item +func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationAssignmentRequestBuilder { + bb := &OfficeClientConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OfficeClientConfigurationAssignmentsCollectionRequest is request for OfficeClientConfigurationAssignment collection +type OfficeClientConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OfficeClientConfigurationAssignment collection +func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OfficeClientConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OfficeClientConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OfficeClientConfigurationAssignment collection, max N pages +func (r *OfficeClientConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]OfficeClientConfigurationAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OfficeClientConfigurationAssignment collection +func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OfficeClientConfigurationAssignment collection +func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) (resObj *OfficeClientConfigurationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ClientConfigurations returns request builder for OfficeClientConfiguration collection +func (b *OfficeConfigurationRequestBuilder) ClientConfigurations() *OfficeConfigurationClientConfigurationsCollectionRequestBuilder { + bb := &OfficeConfigurationClientConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/clientConfigurations" + return bb +} + +// OfficeConfigurationClientConfigurationsCollectionRequestBuilder is request builder for OfficeClientConfiguration collection +type OfficeConfigurationClientConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OfficeClientConfiguration collection +func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) Request() *OfficeConfigurationClientConfigurationsCollectionRequest { + return &OfficeConfigurationClientConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OfficeClientConfiguration item +func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationRequestBuilder { + bb := &OfficeClientConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OfficeConfigurationClientConfigurationsCollectionRequest is request for OfficeClientConfiguration collection +type OfficeConfigurationClientConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OfficeClientConfiguration collection +func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OfficeClientConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OfficeClientConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OfficeClientConfiguration collection, max N pages +func (r *OfficeConfigurationClientConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]OfficeClientConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OfficeClientConfiguration collection +func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OfficeClientConfiguration collection +func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfiguration) (resObj *OfficeClientConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Shared returns request builder for SharedInsight collection +func (b *OfficeGraphInsightsRequestBuilder) Shared() *OfficeGraphInsightsSharedCollectionRequestBuilder { + bb := &OfficeGraphInsightsSharedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shared" + return bb +} + +// OfficeGraphInsightsSharedCollectionRequestBuilder is request builder for SharedInsight collection +type OfficeGraphInsightsSharedCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SharedInsight collection +func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) Request() *OfficeGraphInsightsSharedCollectionRequest { + return &OfficeGraphInsightsSharedCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SharedInsight item +func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) ID(id string) *SharedInsightRequestBuilder { + bb := &SharedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OfficeGraphInsightsSharedCollectionRequest is request for SharedInsight collection +type OfficeGraphInsightsSharedCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SharedInsight collection +func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SharedInsight, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SharedInsight + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SharedInsight + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SharedInsight collection, max N pages +func (r *OfficeGraphInsightsSharedCollectionRequest) GetN(ctx context.Context, n int) ([]SharedInsight, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SharedInsight collection +func (r *OfficeGraphInsightsSharedCollectionRequest) Get(ctx context.Context) ([]SharedInsight, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SharedInsight collection +func (r *OfficeGraphInsightsSharedCollectionRequest) Add(ctx context.Context, reqObj *SharedInsight) (resObj *SharedInsight, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Trending returns request builder for Trending collection +func (b *OfficeGraphInsightsRequestBuilder) Trending() *OfficeGraphInsightsTrendingCollectionRequestBuilder { + bb := &OfficeGraphInsightsTrendingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/trending" + return bb +} + +// OfficeGraphInsightsTrendingCollectionRequestBuilder is request builder for Trending collection +type OfficeGraphInsightsTrendingCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Trending collection +func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) Request() *OfficeGraphInsightsTrendingCollectionRequest { + return &OfficeGraphInsightsTrendingCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Trending item +func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) ID(id string) *TrendingRequestBuilder { + bb := &TrendingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OfficeGraphInsightsTrendingCollectionRequest is request for Trending collection +type OfficeGraphInsightsTrendingCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Trending collection +func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Trending, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Trending + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Trending + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Trending collection, max N pages +func (r *OfficeGraphInsightsTrendingCollectionRequest) GetN(ctx context.Context, n int) ([]Trending, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Trending collection +func (r *OfficeGraphInsightsTrendingCollectionRequest) Get(ctx context.Context) ([]Trending, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Trending collection +func (r *OfficeGraphInsightsTrendingCollectionRequest) Add(ctx context.Context, reqObj *Trending) (resObj *Trending, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Used returns request builder for UsedInsight collection +func (b *OfficeGraphInsightsRequestBuilder) Used() *OfficeGraphInsightsUsedCollectionRequestBuilder { + bb := &OfficeGraphInsightsUsedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/used" + return bb +} + +// OfficeGraphInsightsUsedCollectionRequestBuilder is request builder for UsedInsight collection +type OfficeGraphInsightsUsedCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UsedInsight collection +func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) Request() *OfficeGraphInsightsUsedCollectionRequest { + return &OfficeGraphInsightsUsedCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UsedInsight item +func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) ID(id string) *UsedInsightRequestBuilder { + bb := &UsedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OfficeGraphInsightsUsedCollectionRequest is request for UsedInsight collection +type OfficeGraphInsightsUsedCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UsedInsight collection +func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UsedInsight, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UsedInsight + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UsedInsight + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UsedInsight collection, max N pages +func (r *OfficeGraphInsightsUsedCollectionRequest) GetN(ctx context.Context, n int) ([]UsedInsight, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UsedInsight collection +func (r *OfficeGraphInsightsUsedCollectionRequest) Get(ctx context.Context) ([]UsedInsight, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UsedInsight collection +func (r *OfficeGraphInsightsUsedCollectionRequest) Add(ctx context.Context, reqObj *UsedInsight) (resObj *UsedInsight, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go new file mode 100644 index 00000000..394fbd41 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go @@ -0,0 +1,624 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AgentGroups returns request builder for OnPremisesAgentGroup collection +func (b *OnPremisesAgentRequestBuilder) AgentGroups() *OnPremisesAgentAgentGroupsCollectionRequestBuilder { + bb := &OnPremisesAgentAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agentGroups" + return bb +} + +// OnPremisesAgentAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection +type OnPremisesAgentAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesAgentGroup collection +func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) Request() *OnPremisesAgentAgentGroupsCollectionRequest { + return &OnPremisesAgentAgentGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesAgentGroup item +func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder { + bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesAgentAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection +type OnPremisesAgentAgentGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesAgentGroup collection +func (r *OnPremisesAgentAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesAgentGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesAgentGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesAgentGroup collection, max N pages +func (r *OnPremisesAgentAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesAgentGroup collection +func (r *OnPremisesAgentAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesAgentGroup collection +func (r *OnPremisesAgentAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Agents returns request builder for OnPremisesAgent collection +func (b *OnPremisesAgentGroupRequestBuilder) Agents() *OnPremisesAgentGroupAgentsCollectionRequestBuilder { + bb := &OnPremisesAgentGroupAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agents" + return bb +} + +// OnPremisesAgentGroupAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection +type OnPremisesAgentGroupAgentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesAgent collection +func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) Request() *OnPremisesAgentGroupAgentsCollectionRequest { + return &OnPremisesAgentGroupAgentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesAgent item +func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder { + bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesAgentGroupAgentsCollectionRequest is request for OnPremisesAgent collection +type OnPremisesAgentGroupAgentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesAgent collection +func (r *OnPremisesAgentGroupAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesAgent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesAgent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesAgent collection, max N pages +func (r *OnPremisesAgentGroupAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesAgent collection +func (r *OnPremisesAgentGroupAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesAgent collection +func (r *OnPremisesAgentGroupAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PublishedResources returns request builder for PublishedResource collection +func (b *OnPremisesAgentGroupRequestBuilder) PublishedResources() *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder { + bb := &OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/publishedResources" + return bb +} + +// OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection +type OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PublishedResource collection +func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) Request() *OnPremisesAgentGroupPublishedResourcesCollectionRequest { + return &OnPremisesAgentGroupPublishedResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PublishedResource item +func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder { + bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesAgentGroupPublishedResourcesCollectionRequest is request for PublishedResource collection +type OnPremisesAgentGroupPublishedResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PublishedResource collection +func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PublishedResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PublishedResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PublishedResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PublishedResource collection, max N pages +func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]PublishedResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PublishedResource collection +func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PublishedResource collection +func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AgentGroups returns request builder for OnPremisesAgentGroup collection +func (b *OnPremisesPublishingProfileRequestBuilder) AgentGroups() *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder { + bb := &OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agentGroups" + return bb +} + +// OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection +type OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesAgentGroup collection +func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentGroupsCollectionRequest { + return &OnPremisesPublishingProfileAgentGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesAgentGroup item +func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder { + bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesPublishingProfileAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection +type OnPremisesPublishingProfileAgentGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesAgentGroup collection +func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesAgentGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesAgentGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesAgentGroup collection, max N pages +func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesAgentGroup collection +func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesAgentGroup collection +func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Agents returns request builder for OnPremisesAgent collection +func (b *OnPremisesPublishingProfileRequestBuilder) Agents() *OnPremisesPublishingProfileAgentsCollectionRequestBuilder { + bb := &OnPremisesPublishingProfileAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agents" + return bb +} + +// OnPremisesPublishingProfileAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection +type OnPremisesPublishingProfileAgentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesAgent collection +func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentsCollectionRequest { + return &OnPremisesPublishingProfileAgentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesAgent item +func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder { + bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesPublishingProfileAgentsCollectionRequest is request for OnPremisesAgent collection +type OnPremisesPublishingProfileAgentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesAgent collection +func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesAgent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesAgent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesAgent collection, max N pages +func (r *OnPremisesPublishingProfileAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesAgent collection +func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesAgent collection +func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PublishedResources returns request builder for PublishedResource collection +func (b *OnPremisesPublishingProfileRequestBuilder) PublishedResources() *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder { + bb := &OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/publishedResources" + return bb +} + +// OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection +type OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PublishedResource collection +func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) Request() *OnPremisesPublishingProfilePublishedResourcesCollectionRequest { + return &OnPremisesPublishingProfilePublishedResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PublishedResource item +func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder { + bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnPremisesPublishingProfilePublishedResourcesCollectionRequest is request for PublishedResource collection +type OnPremisesPublishingProfilePublishedResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PublishedResource collection +func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PublishedResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PublishedResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PublishedResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PublishedResource collection, max N pages +func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]PublishedResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PublishedResource collection +func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PublishedResource collection +func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go new file mode 100644 index 00000000..979e714b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go @@ -0,0 +1,800 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OnenotePageOnenotePatchContentRequestParameter undocumented +type OnenotePageOnenotePatchContentRequestParameter struct { + // Commands undocumented + Commands []OnenotePatchContentCommand `json:"commands,omitempty"` +} + +// OnenotePageCopyToSectionRequestParameter undocumented +type OnenotePageCopyToSectionRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` + // SiteCollectionID undocumented + SiteCollectionID *string `json:"siteCollectionId,omitempty"` + // SiteID undocumented + SiteID *string `json:"siteId,omitempty"` +} + +// OnenoteSectionCopyToNotebookRequestParameter undocumented +type OnenoteSectionCopyToNotebookRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` + // RenameAs undocumented + RenameAs *string `json:"renameAs,omitempty"` + // SiteCollectionID undocumented + SiteCollectionID *string `json:"siteCollectionId,omitempty"` + // SiteID undocumented + SiteID *string `json:"siteId,omitempty"` +} + +// OnenoteSectionCopyToSectionGroupRequestParameter undocumented +type OnenoteSectionCopyToSectionGroupRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` + // RenameAs undocumented + RenameAs *string `json:"renameAs,omitempty"` + // SiteCollectionID undocumented + SiteCollectionID *string `json:"siteCollectionId,omitempty"` + // SiteID undocumented + SiteID *string `json:"siteId,omitempty"` +} + +// Notebooks returns request builder for Notebook collection +func (b *OnenoteRequestBuilder) Notebooks() *OnenoteNotebooksCollectionRequestBuilder { + bb := &OnenoteNotebooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/notebooks" + return bb +} + +// OnenoteNotebooksCollectionRequestBuilder is request builder for Notebook collection +type OnenoteNotebooksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Notebook collection +func (b *OnenoteNotebooksCollectionRequestBuilder) Request() *OnenoteNotebooksCollectionRequest { + return &OnenoteNotebooksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Notebook item +func (b *OnenoteNotebooksCollectionRequestBuilder) ID(id string) *NotebookRequestBuilder { + bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteNotebooksCollectionRequest is request for Notebook collection +type OnenoteNotebooksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Notebook collection +func (r *OnenoteNotebooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Notebook, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Notebook + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Notebook + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Notebook collection, max N pages +func (r *OnenoteNotebooksCollectionRequest) GetN(ctx context.Context, n int) ([]Notebook, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Notebook collection +func (r *OnenoteNotebooksCollectionRequest) Get(ctx context.Context) ([]Notebook, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Notebook collection +func (r *OnenoteNotebooksCollectionRequest) Add(ctx context.Context, reqObj *Notebook) (resObj *Notebook, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Operations returns request builder for OnenoteOperation collection +func (b *OnenoteRequestBuilder) Operations() *OnenoteOperationsCollectionRequestBuilder { + bb := &OnenoteOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operations" + return bb +} + +// OnenoteOperationsCollectionRequestBuilder is request builder for OnenoteOperation collection +type OnenoteOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenoteOperation collection +func (b *OnenoteOperationsCollectionRequestBuilder) Request() *OnenoteOperationsCollectionRequest { + return &OnenoteOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenoteOperation item +func (b *OnenoteOperationsCollectionRequestBuilder) ID(id string) *OnenoteOperationRequestBuilder { + bb := &OnenoteOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteOperationsCollectionRequest is request for OnenoteOperation collection +type OnenoteOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenoteOperation collection +func (r *OnenoteOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenoteOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenoteOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenoteOperation collection, max N pages +func (r *OnenoteOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenoteOperation collection +func (r *OnenoteOperationsCollectionRequest) Get(ctx context.Context) ([]OnenoteOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenoteOperation collection +func (r *OnenoteOperationsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteOperation) (resObj *OnenoteOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Pages returns request builder for OnenotePage collection +func (b *OnenoteRequestBuilder) Pages() *OnenotePagesCollectionRequestBuilder { + bb := &OnenotePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/pages" + return bb +} + +// OnenotePagesCollectionRequestBuilder is request builder for OnenotePage collection +type OnenotePagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenotePage collection +func (b *OnenotePagesCollectionRequestBuilder) Request() *OnenotePagesCollectionRequest { + return &OnenotePagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenotePage item +func (b *OnenotePagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder { + bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenotePagesCollectionRequest is request for OnenotePage collection +type OnenotePagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenotePage collection +func (r *OnenotePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenotePage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenotePage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenotePage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenotePage collection, max N pages +func (r *OnenotePagesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenotePage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenotePage collection +func (r *OnenotePagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenotePage collection +func (r *OnenotePagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Resources returns request builder for OnenoteResource collection +func (b *OnenoteRequestBuilder) Resources() *OnenoteResourcesCollectionRequestBuilder { + bb := &OnenoteResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resources" + return bb +} + +// OnenoteResourcesCollectionRequestBuilder is request builder for OnenoteResource collection +type OnenoteResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenoteResource collection +func (b *OnenoteResourcesCollectionRequestBuilder) Request() *OnenoteResourcesCollectionRequest { + return &OnenoteResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenoteResource item +func (b *OnenoteResourcesCollectionRequestBuilder) ID(id string) *OnenoteResourceRequestBuilder { + bb := &OnenoteResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteResourcesCollectionRequest is request for OnenoteResource collection +type OnenoteResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenoteResource collection +func (r *OnenoteResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenoteResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenoteResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenoteResource collection, max N pages +func (r *OnenoteResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenoteResource collection +func (r *OnenoteResourcesCollectionRequest) Get(ctx context.Context) ([]OnenoteResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenoteResource collection +func (r *OnenoteResourcesCollectionRequest) Add(ctx context.Context, reqObj *OnenoteResource) (resObj *OnenoteResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SectionGroups returns request builder for SectionGroup collection +func (b *OnenoteRequestBuilder) SectionGroups() *OnenoteSectionGroupsCollectionRequestBuilder { + bb := &OnenoteSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sectionGroups" + return bb +} + +// OnenoteSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection +type OnenoteSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SectionGroup collection +func (b *OnenoteSectionGroupsCollectionRequestBuilder) Request() *OnenoteSectionGroupsCollectionRequest { + return &OnenoteSectionGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SectionGroup item +func (b *OnenoteSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder { + bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteSectionGroupsCollectionRequest is request for SectionGroup collection +type OnenoteSectionGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SectionGroup collection +func (r *OnenoteSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SectionGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SectionGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SectionGroup collection, max N pages +func (r *OnenoteSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SectionGroup collection +func (r *OnenoteSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SectionGroup collection +func (r *OnenoteSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sections returns request builder for OnenoteSection collection +func (b *OnenoteRequestBuilder) Sections() *OnenoteSectionsCollectionRequestBuilder { + bb := &OnenoteSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sections" + return bb +} + +// OnenoteSectionsCollectionRequestBuilder is request builder for OnenoteSection collection +type OnenoteSectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenoteSection collection +func (b *OnenoteSectionsCollectionRequestBuilder) Request() *OnenoteSectionsCollectionRequest { + return &OnenoteSectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenoteSection item +func (b *OnenoteSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder { + bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteSectionsCollectionRequest is request for OnenoteSection collection +type OnenoteSectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenoteSection collection +func (r *OnenoteSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenoteSection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenoteSection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenoteSection collection, max N pages +func (r *OnenoteSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenoteSection collection +func (r *OnenoteSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenoteSection collection +func (r *OnenoteSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ParentNotebook is navigation property +func (b *OnenotePageRequestBuilder) ParentNotebook() *NotebookRequestBuilder { + bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentNotebook" + return bb +} + +// ParentSection is navigation property +func (b *OnenotePageRequestBuilder) ParentSection() *OnenoteSectionRequestBuilder { + bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentSection" + return bb +} + +// Pages returns request builder for OnenotePage collection +func (b *OnenoteSectionRequestBuilder) Pages() *OnenoteSectionPagesCollectionRequestBuilder { + bb := &OnenoteSectionPagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/pages" + return bb +} + +// OnenoteSectionPagesCollectionRequestBuilder is request builder for OnenotePage collection +type OnenoteSectionPagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenotePage collection +func (b *OnenoteSectionPagesCollectionRequestBuilder) Request() *OnenoteSectionPagesCollectionRequest { + return &OnenoteSectionPagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenotePage item +func (b *OnenoteSectionPagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder { + bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OnenoteSectionPagesCollectionRequest is request for OnenotePage collection +type OnenoteSectionPagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenotePage collection +func (r *OnenoteSectionPagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenotePage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenotePage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenotePage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenotePage collection, max N pages +func (r *OnenoteSectionPagesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenotePage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenotePage collection +func (r *OnenoteSectionPagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenotePage collection +func (r *OnenoteSectionPagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ParentNotebook is navigation property +func (b *OnenoteSectionRequestBuilder) ParentNotebook() *NotebookRequestBuilder { + bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentNotebook" + return bb +} + +// ParentSectionGroup is navigation property +func (b *OnenoteSectionRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder { + bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentSectionGroup" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go new file mode 100644 index 00000000..e730c543 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go @@ -0,0 +1,325 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DirectReports returns request builder for DirectoryObject collection +func (b *OrgContactRequestBuilder) DirectReports() *OrgContactDirectReportsCollectionRequestBuilder { + bb := &OrgContactDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directReports" + return bb +} + +// OrgContactDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection +type OrgContactDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *OrgContactDirectReportsCollectionRequestBuilder) Request() *OrgContactDirectReportsCollectionRequest { + return &OrgContactDirectReportsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *OrgContactDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrgContactDirectReportsCollectionRequest is request for DirectoryObject collection +type OrgContactDirectReportsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *OrgContactDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *OrgContactDirectReportsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *OrgContactDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *OrgContactDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Manager is navigation property +func (b *OrgContactRequestBuilder) Manager() *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/manager" + return bb +} + +// MemberOf returns request builder for DirectoryObject collection +func (b *OrgContactRequestBuilder) MemberOf() *OrgContactMemberOfCollectionRequestBuilder { + bb := &OrgContactMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/memberOf" + return bb +} + +// OrgContactMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type OrgContactMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *OrgContactMemberOfCollectionRequestBuilder) Request() *OrgContactMemberOfCollectionRequest { + return &OrgContactMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *OrgContactMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrgContactMemberOfCollectionRequest is request for DirectoryObject collection +type OrgContactMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *OrgContactMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *OrgContactMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *OrgContactMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *OrgContactMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TransitiveMemberOf returns request builder for DirectoryObject collection +func (b *OrgContactRequestBuilder) TransitiveMemberOf() *OrgContactTransitiveMemberOfCollectionRequestBuilder { + bb := &OrgContactTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMemberOf" + return bb +} + +// OrgContactTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type OrgContactTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) Request() *OrgContactTransitiveMemberOfCollectionRequest { + return &OrgContactTransitiveMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrgContactTransitiveMemberOfCollectionRequest is request for DirectoryObject collection +type OrgContactTransitiveMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *OrgContactTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *OrgContactTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *OrgContactTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *OrgContactTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go new file mode 100644 index 00000000..4df7f2f3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go @@ -0,0 +1,322 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OrganizationSetMobileDeviceManagementAuthorityRequestParameter undocumented +type OrganizationSetMobileDeviceManagementAuthorityRequestParameter struct { +} + +// Brandings returns request builder for OrganizationalBranding collection +func (b *OrganizationRequestBuilder) Brandings() *OrganizationBrandingsCollectionRequestBuilder { + bb := &OrganizationBrandingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/brandings" + return bb +} + +// OrganizationBrandingsCollectionRequestBuilder is request builder for OrganizationalBranding collection +type OrganizationBrandingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OrganizationalBranding collection +func (b *OrganizationBrandingsCollectionRequestBuilder) Request() *OrganizationBrandingsCollectionRequest { + return &OrganizationBrandingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OrganizationalBranding item +func (b *OrganizationBrandingsCollectionRequestBuilder) ID(id string) *OrganizationalBrandingRequestBuilder { + bb := &OrganizationalBrandingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrganizationBrandingsCollectionRequest is request for OrganizationalBranding collection +type OrganizationBrandingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OrganizationalBranding collection +func (r *OrganizationBrandingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OrganizationalBranding, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OrganizationalBranding + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OrganizationalBranding + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OrganizationalBranding collection, max N pages +func (r *OrganizationBrandingsCollectionRequest) GetN(ctx context.Context, n int) ([]OrganizationalBranding, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OrganizationalBranding collection +func (r *OrganizationBrandingsCollectionRequest) Get(ctx context.Context) ([]OrganizationalBranding, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OrganizationalBranding collection +func (r *OrganizationBrandingsCollectionRequest) Add(ctx context.Context, reqObj *OrganizationalBranding) (resObj *OrganizationalBranding, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection +func (b *OrganizationRequestBuilder) CertificateBasedAuthConfiguration() *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder { + bb := &OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/certificateBasedAuthConfiguration" + return bb +} + +// OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection +type OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CertificateBasedAuthConfiguration collection +func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *OrganizationCertificateBasedAuthConfigurationCollectionRequest { + return &OrganizationCertificateBasedAuthConfigurationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CertificateBasedAuthConfiguration item +func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder { + bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrganizationCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection +type OrganizationCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection +func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CertificateBasedAuthConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CertificateBasedAuthConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CertificateBasedAuthConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CertificateBasedAuthConfiguration collection, max N pages +func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) GetN(ctx context.Context, n int) ([]CertificateBasedAuthConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CertificateBasedAuthConfiguration collection +func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CertificateBasedAuthConfiguration collection +func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *OrganizationRequestBuilder) Extensions() *OrganizationExtensionsCollectionRequestBuilder { + bb := &OrganizationExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// OrganizationExtensionsCollectionRequestBuilder is request builder for Extension collection +type OrganizationExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *OrganizationExtensionsCollectionRequestBuilder) Request() *OrganizationExtensionsCollectionRequest { + return &OrganizationExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *OrganizationExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OrganizationExtensionsCollectionRequest is request for Extension collection +type OrganizationExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *OrganizationExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *OrganizationExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *OrganizationExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *OrganizationExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go new file mode 100644 index 00000000..95b76a66 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go @@ -0,0 +1,1138 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OutlookTaskCompleteRequestParameter undocumented +type OutlookTaskCompleteRequestParameter struct { +} + +// Attachments returns request builder for Attachment collection +func (b *OutlookTaskRequestBuilder) Attachments() *OutlookTaskAttachmentsCollectionRequestBuilder { + bb := &OutlookTaskAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/attachments" + return bb +} + +// OutlookTaskAttachmentsCollectionRequestBuilder is request builder for Attachment collection +type OutlookTaskAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Attachment collection +func (b *OutlookTaskAttachmentsCollectionRequestBuilder) Request() *OutlookTaskAttachmentsCollectionRequest { + return &OutlookTaskAttachmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Attachment item +func (b *OutlookTaskAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder { + bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskAttachmentsCollectionRequest is request for Attachment collection +type OutlookTaskAttachmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Attachment collection +func (r *OutlookTaskAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Attachment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Attachment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Attachment collection, max N pages +func (r *OutlookTaskAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Attachment collection +func (r *OutlookTaskAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Attachment collection +func (r *OutlookTaskAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *OutlookTaskRequestBuilder) MultiValueExtendedProperties() *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskMultiValueExtendedPropertiesCollectionRequest { + return &OutlookTaskMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type OutlookTaskMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *OutlookTaskRequestBuilder) SingleValueExtendedProperties() *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskSingleValueExtendedPropertiesCollectionRequest { + return &OutlookTaskSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type OutlookTaskSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *OutlookTaskFolderRequestBuilder) MultiValueExtendedProperties() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest { + return &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *OutlookTaskFolderRequestBuilder) SingleValueExtendedProperties() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest { + return &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tasks returns request builder for OutlookTask collection +func (b *OutlookTaskFolderRequestBuilder) Tasks() *OutlookTaskFolderTasksCollectionRequestBuilder { + bb := &OutlookTaskFolderTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// OutlookTaskFolderTasksCollectionRequestBuilder is request builder for OutlookTask collection +type OutlookTaskFolderTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookTask collection +func (b *OutlookTaskFolderTasksCollectionRequestBuilder) Request() *OutlookTaskFolderTasksCollectionRequest { + return &OutlookTaskFolderTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookTask item +func (b *OutlookTaskFolderTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder { + bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskFolderTasksCollectionRequest is request for OutlookTask collection +type OutlookTaskFolderTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookTask collection +func (r *OutlookTaskFolderTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookTask collection, max N pages +func (r *OutlookTaskFolderTasksCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookTask collection +func (r *OutlookTaskFolderTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookTask collection +func (r *OutlookTaskFolderTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaskFolders returns request builder for OutlookTaskFolder collection +func (b *OutlookTaskGroupRequestBuilder) TaskFolders() *OutlookTaskGroupTaskFoldersCollectionRequestBuilder { + bb := &OutlookTaskGroupTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taskFolders" + return bb +} + +// OutlookTaskGroupTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection +type OutlookTaskGroupTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookTaskFolder collection +func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) Request() *OutlookTaskGroupTaskFoldersCollectionRequest { + return &OutlookTaskGroupTaskFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookTaskFolder item +func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder { + bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookTaskGroupTaskFoldersCollectionRequest is request for OutlookTaskFolder collection +type OutlookTaskGroupTaskFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookTaskFolder collection +func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTaskFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTaskFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookTaskFolder collection, max N pages +func (r *OutlookTaskGroupTaskFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookTaskFolder collection +func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookTaskFolder collection +func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MasterCategories returns request builder for OutlookCategory collection +func (b *OutlookUserRequestBuilder) MasterCategories() *OutlookUserMasterCategoriesCollectionRequestBuilder { + bb := &OutlookUserMasterCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/masterCategories" + return bb +} + +// OutlookUserMasterCategoriesCollectionRequestBuilder is request builder for OutlookCategory collection +type OutlookUserMasterCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookCategory collection +func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) Request() *OutlookUserMasterCategoriesCollectionRequest { + return &OutlookUserMasterCategoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookCategory item +func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) ID(id string) *OutlookCategoryRequestBuilder { + bb := &OutlookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookUserMasterCategoriesCollectionRequest is request for OutlookCategory collection +type OutlookUserMasterCategoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookCategory collection +func (r *OutlookUserMasterCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookCategory, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookCategory + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookCategory + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookCategory collection, max N pages +func (r *OutlookUserMasterCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookCategory, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookCategory collection +func (r *OutlookUserMasterCategoriesCollectionRequest) Get(ctx context.Context) ([]OutlookCategory, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookCategory collection +func (r *OutlookUserMasterCategoriesCollectionRequest) Add(ctx context.Context, reqObj *OutlookCategory) (resObj *OutlookCategory, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaskFolders returns request builder for OutlookTaskFolder collection +func (b *OutlookUserRequestBuilder) TaskFolders() *OutlookUserTaskFoldersCollectionRequestBuilder { + bb := &OutlookUserTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taskFolders" + return bb +} + +// OutlookUserTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection +type OutlookUserTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookTaskFolder collection +func (b *OutlookUserTaskFoldersCollectionRequestBuilder) Request() *OutlookUserTaskFoldersCollectionRequest { + return &OutlookUserTaskFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookTaskFolder item +func (b *OutlookUserTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder { + bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookUserTaskFoldersCollectionRequest is request for OutlookTaskFolder collection +type OutlookUserTaskFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookTaskFolder collection +func (r *OutlookUserTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTaskFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTaskFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookTaskFolder collection, max N pages +func (r *OutlookUserTaskFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookTaskFolder collection +func (r *OutlookUserTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookTaskFolder collection +func (r *OutlookUserTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TaskGroups returns request builder for OutlookTaskGroup collection +func (b *OutlookUserRequestBuilder) TaskGroups() *OutlookUserTaskGroupsCollectionRequestBuilder { + bb := &OutlookUserTaskGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/taskGroups" + return bb +} + +// OutlookUserTaskGroupsCollectionRequestBuilder is request builder for OutlookTaskGroup collection +type OutlookUserTaskGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookTaskGroup collection +func (b *OutlookUserTaskGroupsCollectionRequestBuilder) Request() *OutlookUserTaskGroupsCollectionRequest { + return &OutlookUserTaskGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookTaskGroup item +func (b *OutlookUserTaskGroupsCollectionRequestBuilder) ID(id string) *OutlookTaskGroupRequestBuilder { + bb := &OutlookTaskGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookUserTaskGroupsCollectionRequest is request for OutlookTaskGroup collection +type OutlookUserTaskGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookTaskGroup collection +func (r *OutlookUserTaskGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTaskGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTaskGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookTaskGroup collection, max N pages +func (r *OutlookUserTaskGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookTaskGroup collection +func (r *OutlookUserTaskGroupsCollectionRequest) Get(ctx context.Context) ([]OutlookTaskGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookTaskGroup collection +func (r *OutlookUserTaskGroupsCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskGroup) (resObj *OutlookTaskGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tasks returns request builder for OutlookTask collection +func (b *OutlookUserRequestBuilder) Tasks() *OutlookUserTasksCollectionRequestBuilder { + bb := &OutlookUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// OutlookUserTasksCollectionRequestBuilder is request builder for OutlookTask collection +type OutlookUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OutlookTask collection +func (b *OutlookUserTasksCollectionRequestBuilder) Request() *OutlookUserTasksCollectionRequest { + return &OutlookUserTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OutlookTask item +func (b *OutlookUserTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder { + bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// OutlookUserTasksCollectionRequest is request for OutlookTask collection +type OutlookUserTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OutlookTask collection +func (r *OutlookUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OutlookTask collection, max N pages +func (r *OutlookUserTasksCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OutlookTask collection +func (r *OutlookUserTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OutlookTask collection +func (r *OutlookUserTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go new file mode 100644 index 00000000..5f654253 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ParticipantCollectionInviteRequestParameter undocumented +type ParticipantCollectionInviteRequestParameter struct { + // Participants undocumented + Participants []InvitationParticipantInfo `json:"participants,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// ParticipantCollectionMuteAllRequestParameter undocumented +type ParticipantCollectionMuteAllRequestParameter struct { + // Participants undocumented + Participants []string `json:"participants,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} + +// ParticipantMuteRequestParameter undocumented +type ParticipantMuteRequestParameter struct { + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go new file mode 100644 index 00000000..5afe100e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go @@ -0,0 +1,11 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PermissionGrantRequestParameter undocumented +type PermissionGrantRequestParameter struct { + // Roles undocumented + Roles []string `json:"roles,omitempty"` + // Recipients undocumented + Recipients []DriveRecipient `json:"recipients,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go new file mode 100644 index 00000000..65002db3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go @@ -0,0 +1,1271 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Buckets returns request builder for PlannerBucket collection +func (b *PlannerRequestBuilder) Buckets() *PlannerBucketsCollectionRequestBuilder { + bb := &PlannerBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/buckets" + return bb +} + +// PlannerBucketsCollectionRequestBuilder is request builder for PlannerBucket collection +type PlannerBucketsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerBucket collection +func (b *PlannerBucketsCollectionRequestBuilder) Request() *PlannerBucketsCollectionRequest { + return &PlannerBucketsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerBucket item +func (b *PlannerBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder { + bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerBucketsCollectionRequest is request for PlannerBucket collection +type PlannerBucketsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerBucket collection +func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerBucket, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerBucket + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerBucket + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerBucket collection, max N pages +func (r *PlannerBucketsCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerBucket, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerBucket collection +func (r *PlannerBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerBucket collection +func (r *PlannerBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Plans returns request builder for PlannerPlan collection +func (b *PlannerRequestBuilder) Plans() *PlannerPlansCollectionRequestBuilder { + bb := &PlannerPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/plans" + return bb +} + +// PlannerPlansCollectionRequestBuilder is request builder for PlannerPlan collection +type PlannerPlansCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerPlan collection +func (b *PlannerPlansCollectionRequestBuilder) Request() *PlannerPlansCollectionRequest { + return &PlannerPlansCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerPlan item +func (b *PlannerPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder { + bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerPlansCollectionRequest is request for PlannerPlan collection +type PlannerPlansCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerPlan collection +func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerPlan + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerPlan + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerPlan collection, max N pages +func (r *PlannerPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerPlan collection +func (r *PlannerPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerPlan collection +func (r *PlannerPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tasks returns request builder for PlannerTask collection +func (b *PlannerRequestBuilder) Tasks() *PlannerTasksCollectionRequestBuilder { + bb := &PlannerTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// PlannerTasksCollectionRequestBuilder is request builder for PlannerTask collection +type PlannerTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerTask collection +func (b *PlannerTasksCollectionRequestBuilder) Request() *PlannerTasksCollectionRequest { + return &PlannerTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerTask item +func (b *PlannerTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder { + bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerTasksCollectionRequest is request for PlannerTask collection +type PlannerTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerTask collection +func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerTask collection, max N pages +func (r *PlannerTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerTask collection +func (r *PlannerTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerTask collection +func (r *PlannerTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tasks returns request builder for PlannerTask collection +func (b *PlannerBucketRequestBuilder) Tasks() *PlannerBucketTasksCollectionRequestBuilder { + bb := &PlannerBucketTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// PlannerBucketTasksCollectionRequestBuilder is request builder for PlannerTask collection +type PlannerBucketTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerTask collection +func (b *PlannerBucketTasksCollectionRequestBuilder) Request() *PlannerBucketTasksCollectionRequest { + return &PlannerBucketTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerTask item +func (b *PlannerBucketTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder { + bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerBucketTasksCollectionRequest is request for PlannerTask collection +type PlannerBucketTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerTask collection +func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerTask collection, max N pages +func (r *PlannerBucketTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerTask collection +func (r *PlannerBucketTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerTask collection +func (r *PlannerBucketTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Plans returns request builder for PlannerPlan collection +func (b *PlannerGroupRequestBuilder) Plans() *PlannerGroupPlansCollectionRequestBuilder { + bb := &PlannerGroupPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/plans" + return bb +} + +// PlannerGroupPlansCollectionRequestBuilder is request builder for PlannerPlan collection +type PlannerGroupPlansCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerPlan collection +func (b *PlannerGroupPlansCollectionRequestBuilder) Request() *PlannerGroupPlansCollectionRequest { + return &PlannerGroupPlansCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerPlan item +func (b *PlannerGroupPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder { + bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerGroupPlansCollectionRequest is request for PlannerPlan collection +type PlannerGroupPlansCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerPlan collection +func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerPlan + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerPlan + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerPlan collection, max N pages +func (r *PlannerGroupPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerPlan collection +func (r *PlannerGroupPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerPlan collection +func (r *PlannerGroupPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Buckets returns request builder for PlannerBucket collection +func (b *PlannerPlanRequestBuilder) Buckets() *PlannerPlanBucketsCollectionRequestBuilder { + bb := &PlannerPlanBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/buckets" + return bb +} + +// PlannerPlanBucketsCollectionRequestBuilder is request builder for PlannerBucket collection +type PlannerPlanBucketsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerBucket collection +func (b *PlannerPlanBucketsCollectionRequestBuilder) Request() *PlannerPlanBucketsCollectionRequest { + return &PlannerPlanBucketsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerBucket item +func (b *PlannerPlanBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder { + bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerPlanBucketsCollectionRequest is request for PlannerBucket collection +type PlannerPlanBucketsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerBucket collection +func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerBucket, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerBucket + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerBucket + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerBucket collection, max N pages +func (r *PlannerPlanBucketsCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerBucket, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerBucket collection +func (r *PlannerPlanBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerBucket collection +func (r *PlannerPlanBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Details is navigation property +func (b *PlannerPlanRequestBuilder) Details() *PlannerPlanDetailsRequestBuilder { + bb := &PlannerPlanDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/details" + return bb +} + +// Tasks returns request builder for PlannerTask collection +func (b *PlannerPlanRequestBuilder) Tasks() *PlannerPlanTasksCollectionRequestBuilder { + bb := &PlannerPlanTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// PlannerPlanTasksCollectionRequestBuilder is request builder for PlannerTask collection +type PlannerPlanTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerTask collection +func (b *PlannerPlanTasksCollectionRequestBuilder) Request() *PlannerPlanTasksCollectionRequest { + return &PlannerPlanTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerTask item +func (b *PlannerPlanTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder { + bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerPlanTasksCollectionRequest is request for PlannerTask collection +type PlannerPlanTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerTask collection +func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerTask collection, max N pages +func (r *PlannerPlanTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerTask collection +func (r *PlannerPlanTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerTask collection +func (r *PlannerPlanTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AssignedToTaskBoardFormat is navigation property +func (b *PlannerTaskRequestBuilder) AssignedToTaskBoardFormat() *PlannerAssignedToTaskBoardTaskFormatRequestBuilder { + bb := &PlannerAssignedToTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignedToTaskBoardFormat" + return bb +} + +// BucketTaskBoardFormat is navigation property +func (b *PlannerTaskRequestBuilder) BucketTaskBoardFormat() *PlannerBucketTaskBoardTaskFormatRequestBuilder { + bb := &PlannerBucketTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/bucketTaskBoardFormat" + return bb +} + +// Details is navigation property +func (b *PlannerTaskRequestBuilder) Details() *PlannerTaskDetailsRequestBuilder { + bb := &PlannerTaskDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/details" + return bb +} + +// ProgressTaskBoardFormat is navigation property +func (b *PlannerTaskRequestBuilder) ProgressTaskBoardFormat() *PlannerProgressTaskBoardTaskFormatRequestBuilder { + bb := &PlannerProgressTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/progressTaskBoardFormat" + return bb +} + +// All returns request builder for PlannerDelta collection +func (b *PlannerUserRequestBuilder) All() *PlannerUserAllCollectionRequestBuilder { + bb := &PlannerUserAllCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/all" + return bb +} + +// PlannerUserAllCollectionRequestBuilder is request builder for PlannerDelta collection +type PlannerUserAllCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerDelta collection +func (b *PlannerUserAllCollectionRequestBuilder) Request() *PlannerUserAllCollectionRequest { + return &PlannerUserAllCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerDelta item +func (b *PlannerUserAllCollectionRequestBuilder) ID(id string) *PlannerDeltaRequestBuilder { + bb := &PlannerDeltaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerUserAllCollectionRequest is request for PlannerDelta collection +type PlannerUserAllCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerDelta collection +func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerDelta, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerDelta + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerDelta + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerDelta collection, max N pages +func (r *PlannerUserAllCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerDelta, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerDelta collection +func (r *PlannerUserAllCollectionRequest) Get(ctx context.Context) ([]PlannerDelta, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerDelta collection +func (r *PlannerUserAllCollectionRequest) Add(ctx context.Context, reqObj *PlannerDelta) (resObj *PlannerDelta, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// FavoritePlans returns request builder for PlannerPlan collection +func (b *PlannerUserRequestBuilder) FavoritePlans() *PlannerUserFavoritePlansCollectionRequestBuilder { + bb := &PlannerUserFavoritePlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/favoritePlans" + return bb +} + +// PlannerUserFavoritePlansCollectionRequestBuilder is request builder for PlannerPlan collection +type PlannerUserFavoritePlansCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerPlan collection +func (b *PlannerUserFavoritePlansCollectionRequestBuilder) Request() *PlannerUserFavoritePlansCollectionRequest { + return &PlannerUserFavoritePlansCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerPlan item +func (b *PlannerUserFavoritePlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder { + bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerUserFavoritePlansCollectionRequest is request for PlannerPlan collection +type PlannerUserFavoritePlansCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerPlan collection +func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerPlan + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerPlan + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerPlan collection, max N pages +func (r *PlannerUserFavoritePlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerPlan collection +func (r *PlannerUserFavoritePlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerPlan collection +func (r *PlannerUserFavoritePlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Plans returns request builder for PlannerPlan collection +func (b *PlannerUserRequestBuilder) Plans() *PlannerUserPlansCollectionRequestBuilder { + bb := &PlannerUserPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/plans" + return bb +} + +// PlannerUserPlansCollectionRequestBuilder is request builder for PlannerPlan collection +type PlannerUserPlansCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerPlan collection +func (b *PlannerUserPlansCollectionRequestBuilder) Request() *PlannerUserPlansCollectionRequest { + return &PlannerUserPlansCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerPlan item +func (b *PlannerUserPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder { + bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerUserPlansCollectionRequest is request for PlannerPlan collection +type PlannerUserPlansCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerPlan collection +func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerPlan + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerPlan + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerPlan collection, max N pages +func (r *PlannerUserPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerPlan collection +func (r *PlannerUserPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerPlan collection +func (r *PlannerUserPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RecentPlans returns request builder for PlannerPlan collection +func (b *PlannerUserRequestBuilder) RecentPlans() *PlannerUserRecentPlansCollectionRequestBuilder { + bb := &PlannerUserRecentPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/recentPlans" + return bb +} + +// PlannerUserRecentPlansCollectionRequestBuilder is request builder for PlannerPlan collection +type PlannerUserRecentPlansCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerPlan collection +func (b *PlannerUserRecentPlansCollectionRequestBuilder) Request() *PlannerUserRecentPlansCollectionRequest { + return &PlannerUserRecentPlansCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerPlan item +func (b *PlannerUserRecentPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder { + bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerUserRecentPlansCollectionRequest is request for PlannerPlan collection +type PlannerUserRecentPlansCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerPlan collection +func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerPlan + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerPlan + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerPlan collection, max N pages +func (r *PlannerUserRecentPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerPlan collection +func (r *PlannerUserRecentPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerPlan collection +func (r *PlannerUserRecentPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tasks returns request builder for PlannerTask collection +func (b *PlannerUserRequestBuilder) Tasks() *PlannerUserTasksCollectionRequestBuilder { + bb := &PlannerUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tasks" + return bb +} + +// PlannerUserTasksCollectionRequestBuilder is request builder for PlannerTask collection +type PlannerUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PlannerTask collection +func (b *PlannerUserTasksCollectionRequestBuilder) Request() *PlannerUserTasksCollectionRequest { + return &PlannerUserTasksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PlannerTask item +func (b *PlannerUserTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder { + bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PlannerUserTasksCollectionRequest is request for PlannerTask collection +type PlannerUserTasksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PlannerTask collection +func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PlannerTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PlannerTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PlannerTask collection, max N pages +func (r *PlannerUserTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PlannerTask collection +func (r *PlannerUserTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PlannerTask collection +func (r *PlannerUserTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go new file mode 100644 index 00000000..6e95e806 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go @@ -0,0 +1,336 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PolicySetCollectionGetPolicySetsRequestParameter undocumented +type PolicySetCollectionGetPolicySetsRequestParameter struct { + // PolicySetIDs undocumented + PolicySetIDs []string `json:"policySetIds,omitempty"` +} + +// PolicySetUpdateRequestParameter undocumented +type PolicySetUpdateRequestParameter struct { + // AddedPolicySetItems undocumented + AddedPolicySetItems []PolicySetItem `json:"addedPolicySetItems,omitempty"` + // UpdatedPolicySetItems undocumented + UpdatedPolicySetItems []PolicySetItem `json:"updatedPolicySetItems,omitempty"` + // DeletedPolicySetItems undocumented + DeletedPolicySetItems []string `json:"deletedPolicySetItems,omitempty"` + // Assignments undocumented + Assignments []PolicySetAssignment `json:"assignments,omitempty"` +} + +// AppliesTo returns request builder for DirectoryObject collection +func (b *PolicyRequestBuilder) AppliesTo() *PolicyAppliesToCollectionRequestBuilder { + bb := &PolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appliesTo" + return bb +} + +// PolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection +type PolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *PolicyAppliesToCollectionRequestBuilder) Request() *PolicyAppliesToCollectionRequest { + return &PolicyAppliesToCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *PolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PolicyAppliesToCollectionRequest is request for DirectoryObject collection +type PolicyAppliesToCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *PolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *PolicyAppliesToCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *PolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *PolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for PolicySetAssignment collection +func (b *PolicySetRequestBuilder) Assignments() *PolicySetAssignmentsCollectionRequestBuilder { + bb := &PolicySetAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// PolicySetAssignmentsCollectionRequestBuilder is request builder for PolicySetAssignment collection +type PolicySetAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PolicySetAssignment collection +func (b *PolicySetAssignmentsCollectionRequestBuilder) Request() *PolicySetAssignmentsCollectionRequest { + return &PolicySetAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PolicySetAssignment item +func (b *PolicySetAssignmentsCollectionRequestBuilder) ID(id string) *PolicySetAssignmentRequestBuilder { + bb := &PolicySetAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PolicySetAssignmentsCollectionRequest is request for PolicySetAssignment collection +type PolicySetAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PolicySetAssignment collection +func (r *PolicySetAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySetAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PolicySetAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PolicySetAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PolicySetAssignment collection, max N pages +func (r *PolicySetAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySetAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PolicySetAssignment collection +func (r *PolicySetAssignmentsCollectionRequest) Get(ctx context.Context) ([]PolicySetAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PolicySetAssignment collection +func (r *PolicySetAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetAssignment) (resObj *PolicySetAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Items returns request builder for PolicySetItem collection +func (b *PolicySetRequestBuilder) Items() *PolicySetItemsCollectionRequestBuilder { + bb := &PolicySetItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// PolicySetItemsCollectionRequestBuilder is request builder for PolicySetItem collection +type PolicySetItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PolicySetItem collection +func (b *PolicySetItemsCollectionRequestBuilder) Request() *PolicySetItemsCollectionRequest { + return &PolicySetItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PolicySetItem item +func (b *PolicySetItemsCollectionRequestBuilder) ID(id string) *PolicySetItemRequestBuilder { + bb := &PolicySetItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PolicySetItemsCollectionRequest is request for PolicySetItem collection +type PolicySetItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PolicySetItem collection +func (r *PolicySetItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySetItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PolicySetItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PolicySetItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PolicySetItem collection, max N pages +func (r *PolicySetItemsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySetItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PolicySetItem collection +func (r *PolicySetItemsCollectionRequest) Get(ctx context.Context) ([]PolicySetItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PolicySetItem collection +func (r *PolicySetItemsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetItem) (resObj *PolicySetItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go new file mode 100644 index 00000000..b0b99a48 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go @@ -0,0 +1,543 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PostReplyRequestParameter undocumented +type PostReplyRequestParameter struct { + // Post undocumented + Post *Post `json:"Post,omitempty"` +} + +// PostForwardRequestParameter undocumented +type PostForwardRequestParameter struct { + // Comment undocumented + Comment *string `json:"Comment,omitempty"` + // ToRecipients undocumented + ToRecipients []Recipient `json:"ToRecipients,omitempty"` +} + +// Attachments returns request builder for Attachment collection +func (b *PostRequestBuilder) Attachments() *PostAttachmentsCollectionRequestBuilder { + bb := &PostAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/attachments" + return bb +} + +// PostAttachmentsCollectionRequestBuilder is request builder for Attachment collection +type PostAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Attachment collection +func (b *PostAttachmentsCollectionRequestBuilder) Request() *PostAttachmentsCollectionRequest { + return &PostAttachmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Attachment item +func (b *PostAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder { + bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PostAttachmentsCollectionRequest is request for Attachment collection +type PostAttachmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Attachment collection +func (r *PostAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Attachment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Attachment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Attachment collection, max N pages +func (r *PostAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Attachment collection +func (r *PostAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Attachment collection +func (r *PostAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *PostRequestBuilder) Extensions() *PostExtensionsCollectionRequestBuilder { + bb := &PostExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// PostExtensionsCollectionRequestBuilder is request builder for Extension collection +type PostExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *PostExtensionsCollectionRequestBuilder) Request() *PostExtensionsCollectionRequest { + return &PostExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *PostExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PostExtensionsCollectionRequest is request for Extension collection +type PostExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *PostExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *PostExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *PostExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *PostExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// InReplyTo is navigation property +func (b *PostRequestBuilder) InReplyTo() *PostRequestBuilder { + bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/inReplyTo" + return bb +} + +// Mentions returns request builder for Mention collection +func (b *PostRequestBuilder) Mentions() *PostMentionsCollectionRequestBuilder { + bb := &PostMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mentions" + return bb +} + +// PostMentionsCollectionRequestBuilder is request builder for Mention collection +type PostMentionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Mention collection +func (b *PostMentionsCollectionRequestBuilder) Request() *PostMentionsCollectionRequest { + return &PostMentionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Mention item +func (b *PostMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder { + bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PostMentionsCollectionRequest is request for Mention collection +type PostMentionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Mention collection +func (r *PostMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Mention, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Mention + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Mention + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Mention collection, max N pages +func (r *PostMentionsCollectionRequest) GetN(ctx context.Context, n int) ([]Mention, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Mention collection +func (r *PostMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Mention collection +func (r *PostMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection +func (b *PostRequestBuilder) MultiValueExtendedProperties() *PostMultiValueExtendedPropertiesCollectionRequestBuilder { + bb := &PostMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/multiValueExtendedProperties" + return bb +} + +// PostMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection +type PostMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MultiValueLegacyExtendedProperty collection +func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *PostMultiValueExtendedPropertiesCollectionRequest { + return &PostMultiValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MultiValueLegacyExtendedProperty item +func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder { + bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PostMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection +type PostMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection +func (r *PostMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MultiValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MultiValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages +func (r *PostMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MultiValueLegacyExtendedProperty collection +func (r *PostMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MultiValueLegacyExtendedProperty collection +func (r *PostMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection +func (b *PostRequestBuilder) SingleValueExtendedProperties() *PostSingleValueExtendedPropertiesCollectionRequestBuilder { + bb := &PostSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/singleValueExtendedProperties" + return bb +} + +// PostSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection +type PostSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SingleValueLegacyExtendedProperty collection +func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *PostSingleValueExtendedPropertiesCollectionRequest { + return &PostSingleValueExtendedPropertiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SingleValueLegacyExtendedProperty item +func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder { + bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PostSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection +type PostSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection +func (r *PostSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SingleValueLegacyExtendedProperty + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SingleValueLegacyExtendedProperty + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages +func (r *PostSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SingleValueLegacyExtendedProperty collection +func (r *PostSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SingleValueLegacyExtendedProperty collection +func (r *PostSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go new file mode 100644 index 00000000..d8ba9470 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go @@ -0,0 +1,710 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PrivilegedSignupStatusCollectionSignUpRequestParameter undocumented +type PrivilegedSignupStatusCollectionSignUpRequestParameter struct { +} + +// PrivilegedSignupStatusCollectionCompleteSetupRequestParameter undocumented +type PrivilegedSignupStatusCollectionCompleteSetupRequestParameter struct { + // TenantSetupInfo undocumented + TenantSetupInfo *TenantSetupInfo `json:"tenantSetupInfo,omitempty"` +} + +// PrivilegedRoleSelfActivateRequestParameter undocumented +type PrivilegedRoleSelfActivateRequestParameter struct { + // Reason undocumented + Reason *string `json:"reason,omitempty"` + // Duration undocumented + Duration *string `json:"duration,omitempty"` + // TicketNumber undocumented + TicketNumber *string `json:"ticketNumber,omitempty"` + // TicketSystem undocumented + TicketSystem *string `json:"ticketSystem,omitempty"` +} + +// PrivilegedRoleSelfDeactivateRequestParameter undocumented +type PrivilegedRoleSelfDeactivateRequestParameter struct { +} + +// PrivilegedRoleAssignmentMakePermanentRequestParameter undocumented +type PrivilegedRoleAssignmentMakePermanentRequestParameter struct { + // Reason undocumented + Reason *string `json:"reason,omitempty"` + // TicketNumber undocumented + TicketNumber *string `json:"ticketNumber,omitempty"` + // TicketSystem undocumented + TicketSystem *string `json:"ticketSystem,omitempty"` +} + +// PrivilegedRoleAssignmentMakeEligibleRequestParameter undocumented +type PrivilegedRoleAssignmentMakeEligibleRequestParameter struct { +} + +// PrivilegedRoleAssignmentRequestObjectCancelRequestParameter undocumented +type PrivilegedRoleAssignmentRequestObjectCancelRequestParameter struct { +} + +// Resources returns request builder for GovernanceResource collection +func (b *PrivilegedAccessRequestBuilder) Resources() *PrivilegedAccessResourcesCollectionRequestBuilder { + bb := &PrivilegedAccessResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resources" + return bb +} + +// PrivilegedAccessResourcesCollectionRequestBuilder is request builder for GovernanceResource collection +type PrivilegedAccessResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceResource collection +func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Request() *PrivilegedAccessResourcesCollectionRequest { + return &PrivilegedAccessResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceResource item +func (b *PrivilegedAccessResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedAccessResourcesCollectionRequest is request for GovernanceResource collection +type PrivilegedAccessResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceResource collection +func (r *PrivilegedAccessResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceResource collection, max N pages +func (r *PrivilegedAccessResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceResource collection +func (r *PrivilegedAccessResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceResource collection +func (r *PrivilegedAccessResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection +func (b *PrivilegedAccessRequestBuilder) RoleAssignmentRequests() *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder { + bb := &PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignmentRequests" + return bb +} + +// PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection +type PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignmentRequestObject collection +func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentRequestsCollectionRequest { + return &PrivilegedAccessRoleAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignmentRequestObject item +func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder { + bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedAccessRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection +type PrivilegedAccessRoleAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection +func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages +func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignmentRequestObject collection +func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignmentRequestObject collection +func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleAssignments returns request builder for GovernanceRoleAssignment collection +func (b *PrivilegedAccessRequestBuilder) RoleAssignments() *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder { + bb := &PrivilegedAccessRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignments" + return bb +} + +// PrivilegedAccessRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection +type PrivilegedAccessRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignment collection +func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentsCollectionRequest { + return &PrivilegedAccessRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignment item +func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder { + bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedAccessRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection +type PrivilegedAccessRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignment collection +func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignment collection, max N pages +func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignment collection +func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignment collection +func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleDefinitions returns request builder for GovernanceRoleDefinition collection +func (b *PrivilegedAccessRequestBuilder) RoleDefinitions() *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder { + bb := &PrivilegedAccessRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinitions" + return bb +} + +// PrivilegedAccessRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection +type PrivilegedAccessRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleDefinition collection +func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) Request() *PrivilegedAccessRoleDefinitionsCollectionRequest { + return &PrivilegedAccessRoleDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleDefinition item +func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedAccessRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection +type PrivilegedAccessRoleDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleDefinition collection +func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleDefinition collection, max N pages +func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleDefinition collection +func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleDefinition collection +func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleSettings returns request builder for GovernanceRoleSetting collection +func (b *PrivilegedAccessRequestBuilder) RoleSettings() *PrivilegedAccessRoleSettingsCollectionRequestBuilder { + bb := &PrivilegedAccessRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleSettings" + return bb +} + +// PrivilegedAccessRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection +type PrivilegedAccessRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleSetting collection +func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) Request() *PrivilegedAccessRoleSettingsCollectionRequest { + return &PrivilegedAccessRoleSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleSetting item +func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder { + bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedAccessRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection +type PrivilegedAccessRoleSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleSetting collection +func (r *PrivilegedAccessRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleSetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleSetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleSetting collection, max N pages +func (r *PrivilegedAccessRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleSetting collection +func (r *PrivilegedAccessRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleSetting collection +func (r *PrivilegedAccessRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RequestNavigation is navigation property +func (b *PrivilegedApprovalRequestBuilder) RequestNavigation() *PrivilegedRoleAssignmentRequestObjectRequestBuilder { + bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/request" + return bb +} + +// RoleInfo is navigation property +func (b *PrivilegedApprovalRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder { + bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleInfo" + return bb +} + +// Assignments returns request builder for PrivilegedRoleAssignment collection +func (b *PrivilegedRoleRequestBuilder) Assignments() *PrivilegedRoleAssignmentsCollectionRequestBuilder { + bb := &PrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// PrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection +type PrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedRoleAssignment collection +func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedRoleAssignmentsCollectionRequest { + return &PrivilegedRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedRoleAssignment item +func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder { + bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection +type PrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedRoleAssignment collection +func (r *PrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedRoleAssignment collection, max N pages +func (r *PrivilegedRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedRoleAssignment collection +func (r *PrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedRoleAssignment collection +func (r *PrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings is navigation property +func (b *PrivilegedRoleRequestBuilder) Settings() *PrivilegedRoleSettingsRequestBuilder { + bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// Summary is navigation property +func (b *PrivilegedRoleRequestBuilder) Summary() *PrivilegedRoleSummaryRequestBuilder { + bb := &PrivilegedRoleSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/summary" + return bb +} + +// RoleInfo is navigation property +func (b *PrivilegedRoleAssignmentRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder { + bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleInfo" + return bb +} + +// RoleInfo is navigation property +func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder { + bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleInfo" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go new file mode 100644 index 00000000..d640b0a6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go @@ -0,0 +1,1338 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Account returns request builder for UserAccountInformation collection +func (b *ProfileRequestBuilder) Account() *ProfileAccountCollectionRequestBuilder { + bb := &ProfileAccountCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// ProfileAccountCollectionRequestBuilder is request builder for UserAccountInformation collection +type ProfileAccountCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserAccountInformation collection +func (b *ProfileAccountCollectionRequestBuilder) Request() *ProfileAccountCollectionRequest { + return &ProfileAccountCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserAccountInformation item +func (b *ProfileAccountCollectionRequestBuilder) ID(id string) *UserAccountInformationRequestBuilder { + bb := &UserAccountInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileAccountCollectionRequest is request for UserAccountInformation collection +type ProfileAccountCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserAccountInformation collection +func (r *ProfileAccountCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserAccountInformation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserAccountInformation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserAccountInformation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserAccountInformation collection, max N pages +func (r *ProfileAccountCollectionRequest) GetN(ctx context.Context, n int) ([]UserAccountInformation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserAccountInformation collection +func (r *ProfileAccountCollectionRequest) Get(ctx context.Context) ([]UserAccountInformation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserAccountInformation collection +func (r *ProfileAccountCollectionRequest) Add(ctx context.Context, reqObj *UserAccountInformation) (resObj *UserAccountInformation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Anniversaries returns request builder for PersonAnniversary collection +func (b *ProfileRequestBuilder) Anniversaries() *ProfileAnniversariesCollectionRequestBuilder { + bb := &ProfileAnniversariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/anniversaries" + return bb +} + +// ProfileAnniversariesCollectionRequestBuilder is request builder for PersonAnniversary collection +type ProfileAnniversariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PersonAnniversary collection +func (b *ProfileAnniversariesCollectionRequestBuilder) Request() *ProfileAnniversariesCollectionRequest { + return &ProfileAnniversariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PersonAnniversary item +func (b *ProfileAnniversariesCollectionRequestBuilder) ID(id string) *PersonAnniversaryRequestBuilder { + bb := &PersonAnniversaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileAnniversariesCollectionRequest is request for PersonAnniversary collection +type ProfileAnniversariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PersonAnniversary collection +func (r *ProfileAnniversariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonAnniversary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PersonAnniversary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PersonAnniversary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PersonAnniversary collection, max N pages +func (r *ProfileAnniversariesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonAnniversary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PersonAnniversary collection +func (r *ProfileAnniversariesCollectionRequest) Get(ctx context.Context) ([]PersonAnniversary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PersonAnniversary collection +func (r *ProfileAnniversariesCollectionRequest) Add(ctx context.Context, reqObj *PersonAnniversary) (resObj *PersonAnniversary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// EducationalActivities returns request builder for EducationalActivity collection +func (b *ProfileRequestBuilder) EducationalActivities() *ProfileEducationalActivitiesCollectionRequestBuilder { + bb := &ProfileEducationalActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/educationalActivities" + return bb +} + +// ProfileEducationalActivitiesCollectionRequestBuilder is request builder for EducationalActivity collection +type ProfileEducationalActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for EducationalActivity collection +func (b *ProfileEducationalActivitiesCollectionRequestBuilder) Request() *ProfileEducationalActivitiesCollectionRequest { + return &ProfileEducationalActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for EducationalActivity item +func (b *ProfileEducationalActivitiesCollectionRequestBuilder) ID(id string) *EducationalActivityRequestBuilder { + bb := &EducationalActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileEducationalActivitiesCollectionRequest is request for EducationalActivity collection +type ProfileEducationalActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for EducationalActivity collection +func (r *ProfileEducationalActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationalActivity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationalActivity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationalActivity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for EducationalActivity collection, max N pages +func (r *ProfileEducationalActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationalActivity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for EducationalActivity collection +func (r *ProfileEducationalActivitiesCollectionRequest) Get(ctx context.Context) ([]EducationalActivity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for EducationalActivity collection +func (r *ProfileEducationalActivitiesCollectionRequest) Add(ctx context.Context, reqObj *EducationalActivity) (resObj *EducationalActivity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Emails returns request builder for ItemEmail collection +func (b *ProfileRequestBuilder) Emails() *ProfileEmailsCollectionRequestBuilder { + bb := &ProfileEmailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/emails" + return bb +} + +// ProfileEmailsCollectionRequestBuilder is request builder for ItemEmail collection +type ProfileEmailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemEmail collection +func (b *ProfileEmailsCollectionRequestBuilder) Request() *ProfileEmailsCollectionRequest { + return &ProfileEmailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemEmail item +func (b *ProfileEmailsCollectionRequestBuilder) ID(id string) *ItemEmailRequestBuilder { + bb := &ItemEmailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileEmailsCollectionRequest is request for ItemEmail collection +type ProfileEmailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemEmail collection +func (r *ProfileEmailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemEmail, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemEmail + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemEmail + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemEmail collection, max N pages +func (r *ProfileEmailsCollectionRequest) GetN(ctx context.Context, n int) ([]ItemEmail, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemEmail collection +func (r *ProfileEmailsCollectionRequest) Get(ctx context.Context) ([]ItemEmail, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemEmail collection +func (r *ProfileEmailsCollectionRequest) Add(ctx context.Context, reqObj *ItemEmail) (resObj *ItemEmail, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Interests returns request builder for PersonInterest collection +func (b *ProfileRequestBuilder) Interests() *ProfileInterestsCollectionRequestBuilder { + bb := &ProfileInterestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/interests" + return bb +} + +// ProfileInterestsCollectionRequestBuilder is request builder for PersonInterest collection +type ProfileInterestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PersonInterest collection +func (b *ProfileInterestsCollectionRequestBuilder) Request() *ProfileInterestsCollectionRequest { + return &ProfileInterestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PersonInterest item +func (b *ProfileInterestsCollectionRequestBuilder) ID(id string) *PersonInterestRequestBuilder { + bb := &PersonInterestRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileInterestsCollectionRequest is request for PersonInterest collection +type ProfileInterestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PersonInterest collection +func (r *ProfileInterestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonInterest, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PersonInterest + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PersonInterest + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PersonInterest collection, max N pages +func (r *ProfileInterestsCollectionRequest) GetN(ctx context.Context, n int) ([]PersonInterest, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PersonInterest collection +func (r *ProfileInterestsCollectionRequest) Get(ctx context.Context) ([]PersonInterest, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PersonInterest collection +func (r *ProfileInterestsCollectionRequest) Add(ctx context.Context, reqObj *PersonInterest) (resObj *PersonInterest, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Languages returns request builder for LanguageProficiency collection +func (b *ProfileRequestBuilder) Languages() *ProfileLanguagesCollectionRequestBuilder { + bb := &ProfileLanguagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/languages" + return bb +} + +// ProfileLanguagesCollectionRequestBuilder is request builder for LanguageProficiency collection +type ProfileLanguagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LanguageProficiency collection +func (b *ProfileLanguagesCollectionRequestBuilder) Request() *ProfileLanguagesCollectionRequest { + return &ProfileLanguagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LanguageProficiency item +func (b *ProfileLanguagesCollectionRequestBuilder) ID(id string) *LanguageProficiencyRequestBuilder { + bb := &LanguageProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileLanguagesCollectionRequest is request for LanguageProficiency collection +type ProfileLanguagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LanguageProficiency collection +func (r *ProfileLanguagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LanguageProficiency, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LanguageProficiency + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LanguageProficiency + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LanguageProficiency collection, max N pages +func (r *ProfileLanguagesCollectionRequest) GetN(ctx context.Context, n int) ([]LanguageProficiency, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LanguageProficiency collection +func (r *ProfileLanguagesCollectionRequest) Get(ctx context.Context) ([]LanguageProficiency, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LanguageProficiency collection +func (r *ProfileLanguagesCollectionRequest) Add(ctx context.Context, reqObj *LanguageProficiency) (resObj *LanguageProficiency, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Names returns request builder for PersonName collection +func (b *ProfileRequestBuilder) Names() *ProfileNamesCollectionRequestBuilder { + bb := &ProfileNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/names" + return bb +} + +// ProfileNamesCollectionRequestBuilder is request builder for PersonName collection +type ProfileNamesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PersonName collection +func (b *ProfileNamesCollectionRequestBuilder) Request() *ProfileNamesCollectionRequest { + return &ProfileNamesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PersonName item +func (b *ProfileNamesCollectionRequestBuilder) ID(id string) *PersonNameRequestBuilder { + bb := &PersonNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileNamesCollectionRequest is request for PersonName collection +type ProfileNamesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PersonName collection +func (r *ProfileNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonName, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PersonName + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PersonName + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PersonName collection, max N pages +func (r *ProfileNamesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonName, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PersonName collection +func (r *ProfileNamesCollectionRequest) Get(ctx context.Context) ([]PersonName, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PersonName collection +func (r *ProfileNamesCollectionRequest) Add(ctx context.Context, reqObj *PersonName) (resObj *PersonName, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Phones returns request builder for ItemPhone collection +func (b *ProfileRequestBuilder) Phones() *ProfilePhonesCollectionRequestBuilder { + bb := &ProfilePhonesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/phones" + return bb +} + +// ProfilePhonesCollectionRequestBuilder is request builder for ItemPhone collection +type ProfilePhonesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ItemPhone collection +func (b *ProfilePhonesCollectionRequestBuilder) Request() *ProfilePhonesCollectionRequest { + return &ProfilePhonesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ItemPhone item +func (b *ProfilePhonesCollectionRequestBuilder) ID(id string) *ItemPhoneRequestBuilder { + bb := &ItemPhoneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfilePhonesCollectionRequest is request for ItemPhone collection +type ProfilePhonesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ItemPhone collection +func (r *ProfilePhonesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemPhone, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ItemPhone + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ItemPhone + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ItemPhone collection, max N pages +func (r *ProfilePhonesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemPhone, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ItemPhone collection +func (r *ProfilePhonesCollectionRequest) Get(ctx context.Context) ([]ItemPhone, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ItemPhone collection +func (r *ProfilePhonesCollectionRequest) Add(ctx context.Context, reqObj *ItemPhone) (resObj *ItemPhone, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Positions returns request builder for WorkPosition collection +func (b *ProfileRequestBuilder) Positions() *ProfilePositionsCollectionRequestBuilder { + bb := &ProfilePositionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/positions" + return bb +} + +// ProfilePositionsCollectionRequestBuilder is request builder for WorkPosition collection +type ProfilePositionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkPosition collection +func (b *ProfilePositionsCollectionRequestBuilder) Request() *ProfilePositionsCollectionRequest { + return &ProfilePositionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkPosition item +func (b *ProfilePositionsCollectionRequestBuilder) ID(id string) *WorkPositionRequestBuilder { + bb := &WorkPositionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfilePositionsCollectionRequest is request for WorkPosition collection +type ProfilePositionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkPosition collection +func (r *ProfilePositionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkPosition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkPosition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkPosition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkPosition collection, max N pages +func (r *ProfilePositionsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkPosition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkPosition collection +func (r *ProfilePositionsCollectionRequest) Get(ctx context.Context) ([]WorkPosition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkPosition collection +func (r *ProfilePositionsCollectionRequest) Add(ctx context.Context, reqObj *WorkPosition) (resObj *WorkPosition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Projects returns request builder for ProjectParticipation collection +func (b *ProfileRequestBuilder) Projects() *ProfileProjectsCollectionRequestBuilder { + bb := &ProfileProjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/projects" + return bb +} + +// ProfileProjectsCollectionRequestBuilder is request builder for ProjectParticipation collection +type ProfileProjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProjectParticipation collection +func (b *ProfileProjectsCollectionRequestBuilder) Request() *ProfileProjectsCollectionRequest { + return &ProfileProjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProjectParticipation item +func (b *ProfileProjectsCollectionRequestBuilder) ID(id string) *ProjectParticipationRequestBuilder { + bb := &ProjectParticipationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileProjectsCollectionRequest is request for ProjectParticipation collection +type ProfileProjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProjectParticipation collection +func (r *ProfileProjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProjectParticipation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProjectParticipation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProjectParticipation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProjectParticipation collection, max N pages +func (r *ProfileProjectsCollectionRequest) GetN(ctx context.Context, n int) ([]ProjectParticipation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProjectParticipation collection +func (r *ProfileProjectsCollectionRequest) Get(ctx context.Context) ([]ProjectParticipation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProjectParticipation collection +func (r *ProfileProjectsCollectionRequest) Add(ctx context.Context, reqObj *ProjectParticipation) (resObj *ProjectParticipation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Skills returns request builder for SkillProficiency collection +func (b *ProfileRequestBuilder) Skills() *ProfileSkillsCollectionRequestBuilder { + bb := &ProfileSkillsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/skills" + return bb +} + +// ProfileSkillsCollectionRequestBuilder is request builder for SkillProficiency collection +type ProfileSkillsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SkillProficiency collection +func (b *ProfileSkillsCollectionRequestBuilder) Request() *ProfileSkillsCollectionRequest { + return &ProfileSkillsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SkillProficiency item +func (b *ProfileSkillsCollectionRequestBuilder) ID(id string) *SkillProficiencyRequestBuilder { + bb := &SkillProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileSkillsCollectionRequest is request for SkillProficiency collection +type ProfileSkillsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SkillProficiency collection +func (r *ProfileSkillsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SkillProficiency, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SkillProficiency + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SkillProficiency + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SkillProficiency collection, max N pages +func (r *ProfileSkillsCollectionRequest) GetN(ctx context.Context, n int) ([]SkillProficiency, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SkillProficiency collection +func (r *ProfileSkillsCollectionRequest) Get(ctx context.Context) ([]SkillProficiency, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SkillProficiency collection +func (r *ProfileSkillsCollectionRequest) Add(ctx context.Context, reqObj *SkillProficiency) (resObj *SkillProficiency, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WebAccounts returns request builder for WebAccount collection +func (b *ProfileRequestBuilder) WebAccounts() *ProfileWebAccountsCollectionRequestBuilder { + bb := &ProfileWebAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/webAccounts" + return bb +} + +// ProfileWebAccountsCollectionRequestBuilder is request builder for WebAccount collection +type ProfileWebAccountsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WebAccount collection +func (b *ProfileWebAccountsCollectionRequestBuilder) Request() *ProfileWebAccountsCollectionRequest { + return &ProfileWebAccountsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WebAccount item +func (b *ProfileWebAccountsCollectionRequestBuilder) ID(id string) *WebAccountRequestBuilder { + bb := &WebAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileWebAccountsCollectionRequest is request for WebAccount collection +type ProfileWebAccountsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WebAccount collection +func (r *ProfileWebAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WebAccount, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WebAccount + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WebAccount + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WebAccount collection, max N pages +func (r *ProfileWebAccountsCollectionRequest) GetN(ctx context.Context, n int) ([]WebAccount, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WebAccount collection +func (r *ProfileWebAccountsCollectionRequest) Get(ctx context.Context) ([]WebAccount, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WebAccount collection +func (r *ProfileWebAccountsCollectionRequest) Add(ctx context.Context, reqObj *WebAccount) (resObj *WebAccount, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Websites returns request builder for PersonWebsite collection +func (b *ProfileRequestBuilder) Websites() *ProfileWebsitesCollectionRequestBuilder { + bb := &ProfileWebsitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/websites" + return bb +} + +// ProfileWebsitesCollectionRequestBuilder is request builder for PersonWebsite collection +type ProfileWebsitesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PersonWebsite collection +func (b *ProfileWebsitesCollectionRequestBuilder) Request() *ProfileWebsitesCollectionRequest { + return &ProfileWebsitesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PersonWebsite item +func (b *ProfileWebsitesCollectionRequestBuilder) ID(id string) *PersonWebsiteRequestBuilder { + bb := &PersonWebsiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProfileWebsitesCollectionRequest is request for PersonWebsite collection +type ProfileWebsitesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PersonWebsite collection +func (r *ProfileWebsitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonWebsite, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PersonWebsite + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PersonWebsite + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PersonWebsite collection, max N pages +func (r *ProfileWebsitesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonWebsite, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PersonWebsite collection +func (r *ProfileWebsitesCollectionRequest) Get(ctx context.Context) ([]PersonWebsite, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PersonWebsite collection +func (r *ProfileWebsitesCollectionRequest) Add(ctx context.Context, reqObj *PersonWebsite) (resObj *PersonWebsite, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go new file mode 100644 index 00000000..159823b8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Controls returns request builder for ProgramControl collection +func (b *ProgramRequestBuilder) Controls() *ProgramControlsCollectionRequestBuilder { + bb := &ProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/controls" + return bb +} + +// ProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection +type ProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProgramControl collection +func (b *ProgramControlsCollectionRequestBuilder) Request() *ProgramControlsCollectionRequest { + return &ProgramControlsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProgramControl item +func (b *ProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder { + bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ProgramControlsCollectionRequest is request for ProgramControl collection +type ProgramControlsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProgramControl collection +func (r *ProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControl, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProgramControl + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProgramControl + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProgramControl collection, max N pages +func (r *ProgramControlsCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControl, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProgramControl collection +func (r *ProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProgramControl collection +func (r *ProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Program is navigation property +func (b *ProgramControlRequestBuilder) Program() *ProgramRequestBuilder { + bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/program" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go new file mode 100644 index 00000000..26c579d7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AgentGroups returns request builder for OnPremisesAgentGroup collection +func (b *PublishedResourceRequestBuilder) AgentGroups() *PublishedResourceAgentGroupsCollectionRequestBuilder { + bb := &PublishedResourceAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agentGroups" + return bb +} + +// PublishedResourceAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection +type PublishedResourceAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesAgentGroup collection +func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) Request() *PublishedResourceAgentGroupsCollectionRequest { + return &PublishedResourceAgentGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesAgentGroup item +func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder { + bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PublishedResourceAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection +type PublishedResourceAgentGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesAgentGroup collection +func (r *PublishedResourceAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesAgentGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesAgentGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesAgentGroup collection, max N pages +func (r *PublishedResourceAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesAgentGroup collection +func (r *PublishedResourceAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesAgentGroup collection +func (r *PublishedResourceAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go new file mode 100644 index 00000000..67ee6983 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go @@ -0,0 +1,146 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PurchaseInvoicePostRequestParameter undocumented +type PurchaseInvoicePostRequestParameter struct { +} + +// Currency is navigation property +func (b *PurchaseInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection +func (b *PurchaseInvoiceRequestBuilder) PurchaseInvoiceLines() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder { + bb := &PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/purchaseInvoiceLines" + return bb +} + +// PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection +type PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PurchaseInvoiceLine collection +func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) Request() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest { + return &PurchaseInvoicePurchaseInvoiceLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PurchaseInvoiceLine item +func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder { + bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// PurchaseInvoicePurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection +type PurchaseInvoicePurchaseInvoiceLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PurchaseInvoiceLine collection +func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoiceLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PurchaseInvoiceLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PurchaseInvoiceLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PurchaseInvoiceLine collection, max N pages +func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoiceLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PurchaseInvoiceLine collection +func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PurchaseInvoiceLine collection +func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Vendor is navigation property +func (b *PurchaseInvoiceRequestBuilder) Vendor() *VendorRequestBuilder { + bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/vendor" + return bb +} + +// Account is navigation property +func (b *PurchaseInvoiceLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// Item is navigation property +func (b *PurchaseInvoiceLineRequestBuilder) Item() *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go new file mode 100644 index 00000000..b7af584f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go @@ -0,0 +1,216 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// RoleAssignments returns request builder for UnifiedRoleAssignment collection +func (b *RbacApplicationRequestBuilder) RoleAssignments() *RbacApplicationRoleAssignmentsCollectionRequestBuilder { + bb := &RbacApplicationRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignments" + return bb +} + +// RbacApplicationRoleAssignmentsCollectionRequestBuilder is request builder for UnifiedRoleAssignment collection +type RbacApplicationRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UnifiedRoleAssignment collection +func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) Request() *RbacApplicationRoleAssignmentsCollectionRequest { + return &RbacApplicationRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UnifiedRoleAssignment item +func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) ID(id string) *UnifiedRoleAssignmentRequestBuilder { + bb := &UnifiedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RbacApplicationRoleAssignmentsCollectionRequest is request for UnifiedRoleAssignment collection +type RbacApplicationRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UnifiedRoleAssignment collection +func (r *RbacApplicationRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnifiedRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UnifiedRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UnifiedRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UnifiedRoleAssignment collection, max N pages +func (r *RbacApplicationRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]UnifiedRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UnifiedRoleAssignment collection +func (r *RbacApplicationRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UnifiedRoleAssignment collection +func (r *RbacApplicationRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleAssignment) (resObj *UnifiedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RoleDefinitions returns request builder for UnifiedRoleDefinition collection +func (b *RbacApplicationRequestBuilder) RoleDefinitions() *RbacApplicationRoleDefinitionsCollectionRequestBuilder { + bb := &RbacApplicationRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinitions" + return bb +} + +// RbacApplicationRoleDefinitionsCollectionRequestBuilder is request builder for UnifiedRoleDefinition collection +type RbacApplicationRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UnifiedRoleDefinition collection +func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) Request() *RbacApplicationRoleDefinitionsCollectionRequest { + return &RbacApplicationRoleDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UnifiedRoleDefinition item +func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) ID(id string) *UnifiedRoleDefinitionRequestBuilder { + bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RbacApplicationRoleDefinitionsCollectionRequest is request for UnifiedRoleDefinition collection +type RbacApplicationRoleDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UnifiedRoleDefinition collection +func (r *RbacApplicationRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnifiedRoleDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UnifiedRoleDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UnifiedRoleDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UnifiedRoleDefinition collection, max N pages +func (r *RbacApplicationRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]UnifiedRoleDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UnifiedRoleDefinition collection +func (r *RbacApplicationRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UnifiedRoleDefinition collection +func (r *RbacApplicationRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleDefinition) (resObj *UnifiedRoleDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go new file mode 100644 index 00000000..91f1bc67 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go @@ -0,0 +1,11 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RemoteAssistancePartnerBeginOnboardingRequestParameter undocumented +type RemoteAssistancePartnerBeginOnboardingRequestParameter struct { +} + +// RemoteAssistancePartnerDisconnectRequestParameter undocumented +type RemoteAssistancePartnerDisconnectRequestParameter struct { +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go new file mode 100644 index 00000000..c5824acc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go @@ -0,0 +1,318 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ApplicationSignInDetailedSummary returns request builder for ApplicationSignInDetailedSummary collection +func (b *ReportRootRequestBuilder) ApplicationSignInDetailedSummary() *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder { + bb := &ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/applicationSignInDetailedSummary" + return bb +} + +// ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder is request builder for ApplicationSignInDetailedSummary collection +type ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ApplicationSignInDetailedSummary collection +func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) Request() *ReportRootApplicationSignInDetailedSummaryCollectionRequest { + return &ReportRootApplicationSignInDetailedSummaryCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ApplicationSignInDetailedSummary item +func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) ID(id string) *ApplicationSignInDetailedSummaryRequestBuilder { + bb := &ApplicationSignInDetailedSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ReportRootApplicationSignInDetailedSummaryCollectionRequest is request for ApplicationSignInDetailedSummary collection +type ReportRootApplicationSignInDetailedSummaryCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ApplicationSignInDetailedSummary collection +func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApplicationSignInDetailedSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ApplicationSignInDetailedSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ApplicationSignInDetailedSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ApplicationSignInDetailedSummary collection, max N pages +func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]ApplicationSignInDetailedSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ApplicationSignInDetailedSummary collection +func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Get(ctx context.Context) ([]ApplicationSignInDetailedSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ApplicationSignInDetailedSummary collection +func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Add(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) (resObj *ApplicationSignInDetailedSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CredentialUserRegistrationDetails returns request builder for CredentialUserRegistrationDetails collection +func (b *ReportRootRequestBuilder) CredentialUserRegistrationDetails() *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder { + bb := &ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/credentialUserRegistrationDetails" + return bb +} + +// ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder is request builder for CredentialUserRegistrationDetails collection +type ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CredentialUserRegistrationDetails collection +func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) Request() *ReportRootCredentialUserRegistrationDetailsCollectionRequest { + return &ReportRootCredentialUserRegistrationDetailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CredentialUserRegistrationDetails item +func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) ID(id string) *CredentialUserRegistrationDetailsRequestBuilder { + bb := &CredentialUserRegistrationDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ReportRootCredentialUserRegistrationDetailsCollectionRequest is request for CredentialUserRegistrationDetails collection +type ReportRootCredentialUserRegistrationDetailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CredentialUserRegistrationDetails collection +func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CredentialUserRegistrationDetails, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CredentialUserRegistrationDetails + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CredentialUserRegistrationDetails + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CredentialUserRegistrationDetails collection, max N pages +func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]CredentialUserRegistrationDetails, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CredentialUserRegistrationDetails collection +func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Get(ctx context.Context) ([]CredentialUserRegistrationDetails, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CredentialUserRegistrationDetails collection +func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Add(ctx context.Context, reqObj *CredentialUserRegistrationDetails) (resObj *CredentialUserRegistrationDetails, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserCredentialUsageDetails returns request builder for UserCredentialUsageDetails collection +func (b *ReportRootRequestBuilder) UserCredentialUsageDetails() *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder { + bb := &ReportRootUserCredentialUsageDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userCredentialUsageDetails" + return bb +} + +// ReportRootUserCredentialUsageDetailsCollectionRequestBuilder is request builder for UserCredentialUsageDetails collection +type ReportRootUserCredentialUsageDetailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserCredentialUsageDetails collection +func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) Request() *ReportRootUserCredentialUsageDetailsCollectionRequest { + return &ReportRootUserCredentialUsageDetailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserCredentialUsageDetails item +func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) ID(id string) *UserCredentialUsageDetailsRequestBuilder { + bb := &UserCredentialUsageDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ReportRootUserCredentialUsageDetailsCollectionRequest is request for UserCredentialUsageDetails collection +type ReportRootUserCredentialUsageDetailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserCredentialUsageDetails collection +func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserCredentialUsageDetails, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserCredentialUsageDetails + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserCredentialUsageDetails + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserCredentialUsageDetails collection, max N pages +func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]UserCredentialUsageDetails, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserCredentialUsageDetails collection +func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Get(ctx context.Context) ([]UserCredentialUsageDetails, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserCredentialUsageDetails collection +func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Add(ctx context.Context, reqObj *UserCredentialUsageDetails) (resObj *UserCredentialUsageDetails, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go new file mode 100644 index 00000000..91bb7c9a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go @@ -0,0 +1,228 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// RequestObjectStopRequestParameter undocumented +type RequestObjectStopRequestParameter struct { +} + +// RequestObjectRecordDecisionsRequestParameter undocumented +type RequestObjectRecordDecisionsRequestParameter struct { + // ReviewResult undocumented + ReviewResult *string `json:"reviewResult,omitempty"` + // Justification undocumented + Justification *string `json:"justification,omitempty"` +} + +// Decisions returns request builder for AccessReviewDecision collection +func (b *RequestObjectRequestBuilder) Decisions() *RequestObjectDecisionsCollectionRequestBuilder { + bb := &RequestObjectDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/decisions" + return bb +} + +// RequestObjectDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection +type RequestObjectDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewDecision collection +func (b *RequestObjectDecisionsCollectionRequestBuilder) Request() *RequestObjectDecisionsCollectionRequest { + return &RequestObjectDecisionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewDecision item +func (b *RequestObjectDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder { + bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RequestObjectDecisionsCollectionRequest is request for AccessReviewDecision collection +type RequestObjectDecisionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewDecision collection +func (r *RequestObjectDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewDecision + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewDecision + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewDecision collection, max N pages +func (r *RequestObjectDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewDecision collection +func (r *RequestObjectDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewDecision collection +func (r *RequestObjectDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MyDecisions returns request builder for AccessReviewDecision collection +func (b *RequestObjectRequestBuilder) MyDecisions() *RequestObjectMyDecisionsCollectionRequestBuilder { + bb := &RequestObjectMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/myDecisions" + return bb +} + +// RequestObjectMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection +type RequestObjectMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewDecision collection +func (b *RequestObjectMyDecisionsCollectionRequestBuilder) Request() *RequestObjectMyDecisionsCollectionRequest { + return &RequestObjectMyDecisionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewDecision item +func (b *RequestObjectMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder { + bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RequestObjectMyDecisionsCollectionRequest is request for AccessReviewDecision collection +type RequestObjectMyDecisionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewDecision collection +func (r *RequestObjectMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewDecision + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewDecision + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewDecision collection, max N pages +func (r *RequestObjectMyDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewDecision collection +func (r *RequestObjectMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewDecision collection +func (r *RequestObjectMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go new file mode 100644 index 00000000..0195e85d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go @@ -0,0 +1,126 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// RiskyUserCollectionDismissRequestParameter undocumented +type RiskyUserCollectionDismissRequestParameter struct { + // UserIDs undocumented + UserIDs []string `json:"userIds,omitempty"` +} + +// RiskyUserCollectionConfirmCompromisedRequestParameter undocumented +type RiskyUserCollectionConfirmCompromisedRequestParameter struct { + // UserIDs undocumented + UserIDs []string `json:"userIds,omitempty"` +} + +// History returns request builder for RiskyUserHistoryItem collection +func (b *RiskyUserRequestBuilder) History() *RiskyUserHistoryCollectionRequestBuilder { + bb := &RiskyUserHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/history" + return bb +} + +// RiskyUserHistoryCollectionRequestBuilder is request builder for RiskyUserHistoryItem collection +type RiskyUserHistoryCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RiskyUserHistoryItem collection +func (b *RiskyUserHistoryCollectionRequestBuilder) Request() *RiskyUserHistoryCollectionRequest { + return &RiskyUserHistoryCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RiskyUserHistoryItem item +func (b *RiskyUserHistoryCollectionRequestBuilder) ID(id string) *RiskyUserHistoryItemRequestBuilder { + bb := &RiskyUserHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RiskyUserHistoryCollectionRequest is request for RiskyUserHistoryItem collection +type RiskyUserHistoryCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RiskyUserHistoryItem collection +func (r *RiskyUserHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskyUserHistoryItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RiskyUserHistoryItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RiskyUserHistoryItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RiskyUserHistoryItem collection, max N pages +func (r *RiskyUserHistoryCollectionRequest) GetN(ctx context.Context, n int) ([]RiskyUserHistoryItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RiskyUserHistoryItem collection +func (r *RiskyUserHistoryCollectionRequest) Get(ctx context.Context) ([]RiskyUserHistoryItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RiskyUserHistoryItem collection +func (r *RiskyUserHistoryCollectionRequest) Add(ctx context.Context, reqObj *RiskyUserHistoryItem) (resObj *RiskyUserHistoryItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go new file mode 100644 index 00000000..40a2f34f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go @@ -0,0 +1,242 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter undocumented +type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter struct { + // RoleScopeTagIDs undocumented + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// RoleScopeTagAssignRequestParameter undocumented +type RoleScopeTagAssignRequestParameter struct { + // Assignments undocumented + Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"` +} + +// RoleDefinition is navigation property +func (b *RoleAssignmentRequestBuilder) RoleDefinition() *RoleDefinitionRequestBuilder { + bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinition" + return bb +} + +// RoleAssignments returns request builder for RoleAssignment collection +func (b *RoleDefinitionRequestBuilder) RoleAssignments() *RoleDefinitionRoleAssignmentsCollectionRequestBuilder { + bb := &RoleDefinitionRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleAssignments" + return bb +} + +// RoleDefinitionRoleAssignmentsCollectionRequestBuilder is request builder for RoleAssignment collection +type RoleDefinitionRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RoleAssignment collection +func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) Request() *RoleDefinitionRoleAssignmentsCollectionRequest { + return &RoleDefinitionRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RoleAssignment item +func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) ID(id string) *RoleAssignmentRequestBuilder { + bb := &RoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RoleDefinitionRoleAssignmentsCollectionRequest is request for RoleAssignment collection +type RoleDefinitionRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RoleAssignment collection +func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RoleAssignment collection, max N pages +func (r *RoleDefinitionRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RoleAssignment collection +func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RoleAssignment collection +func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleAssignment) (resObj *RoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Directory is navigation property +func (b *RoleManagementRequestBuilder) Directory() *RbacApplicationRequestBuilder { + bb := &RbacApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directory" + return bb +} + +// Assignments returns request builder for RoleScopeTagAutoAssignment collection +func (b *RoleScopeTagRequestBuilder) Assignments() *RoleScopeTagAssignmentsCollectionRequestBuilder { + bb := &RoleScopeTagAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// RoleScopeTagAssignmentsCollectionRequestBuilder is request builder for RoleScopeTagAutoAssignment collection +type RoleScopeTagAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RoleScopeTagAutoAssignment collection +func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) Request() *RoleScopeTagAssignmentsCollectionRequest { + return &RoleScopeTagAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RoleScopeTagAutoAssignment item +func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) ID(id string) *RoleScopeTagAutoAssignmentRequestBuilder { + bb := &RoleScopeTagAutoAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RoleScopeTagAssignmentsCollectionRequest is request for RoleScopeTagAutoAssignment collection +type RoleScopeTagAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RoleScopeTagAutoAssignment collection +func (r *RoleScopeTagAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTagAutoAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleScopeTagAutoAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleScopeTagAutoAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RoleScopeTagAutoAssignment collection, max N pages +func (r *RoleScopeTagAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTagAutoAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RoleScopeTagAutoAssignment collection +func (r *RoleScopeTagAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RoleScopeTagAutoAssignment collection +func (r *RoleScopeTagAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) (resObj *RoleScopeTagAutoAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go new file mode 100644 index 00000000..8ef13115 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Rooms returns request builder for Room collection +func (b *RoomListRequestBuilder) Rooms() *RoomListRoomsCollectionRequestBuilder { + bb := &RoomListRoomsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rooms" + return bb +} + +// RoomListRoomsCollectionRequestBuilder is request builder for Room collection +type RoomListRoomsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Room collection +func (b *RoomListRoomsCollectionRequestBuilder) Request() *RoomListRoomsCollectionRequest { + return &RoomListRoomsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Room item +func (b *RoomListRoomsCollectionRequestBuilder) ID(id string) *RoomRequestBuilder { + bb := &RoomRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// RoomListRoomsCollectionRequest is request for Room collection +type RoomListRoomsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Room collection +func (r *RoomListRoomsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Room, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Room + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Room + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Room collection, max N pages +func (r *RoomListRoomsCollectionRequest) GetN(ctx context.Context, n int) ([]Room, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Room collection +func (r *RoomListRoomsCollectionRequest) Get(ctx context.Context) ([]Room, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Room collection +func (r *RoomListRoomsCollectionRequest) Add(ctx context.Context, reqObj *Room) (resObj *Room, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go new file mode 100644 index 00000000..f651d31a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go @@ -0,0 +1,602 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SalesInvoiceCancelAndSendRequestParameter undocumented +type SalesInvoiceCancelAndSendRequestParameter struct { +} + +// SalesInvoiceCancelRequestParameter undocumented +type SalesInvoiceCancelRequestParameter struct { +} + +// SalesInvoicePostAndSendRequestParameter undocumented +type SalesInvoicePostAndSendRequestParameter struct { +} + +// SalesInvoicePostRequestParameter undocumented +type SalesInvoicePostRequestParameter struct { +} + +// SalesInvoiceSendRequestParameter undocumented +type SalesInvoiceSendRequestParameter struct { +} + +// SalesQuoteMakeInvoiceRequestParameter undocumented +type SalesQuoteMakeInvoiceRequestParameter struct { +} + +// SalesQuoteSendRequestParameter undocumented +type SalesQuoteSendRequestParameter struct { +} + +// Currency is navigation property +func (b *SalesCreditMemoRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// Customer is navigation property +func (b *SalesCreditMemoRequestBuilder) Customer() *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customer" + return bb +} + +// PaymentTerm is navigation property +func (b *SalesCreditMemoRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection +func (b *SalesCreditMemoRequestBuilder) SalesCreditMemoLines() *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder { + bb := &SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesCreditMemoLines" + return bb +} + +// SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection +type SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesCreditMemoLine collection +func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) Request() *SalesCreditMemoSalesCreditMemoLinesCollectionRequest { + return &SalesCreditMemoSalesCreditMemoLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesCreditMemoLine item +func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder { + bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SalesCreditMemoSalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection +type SalesCreditMemoSalesCreditMemoLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesCreditMemoLine collection +func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemoLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesCreditMemoLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesCreditMemoLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesCreditMemoLine collection, max N pages +func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemoLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesCreditMemoLine collection +func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesCreditMemoLine collection +func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Account is navigation property +func (b *SalesCreditMemoLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// Item is navigation property +func (b *SalesCreditMemoLineRequestBuilder) Item() *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} + +// Currency is navigation property +func (b *SalesInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// Customer is navigation property +func (b *SalesInvoiceRequestBuilder) Customer() *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customer" + return bb +} + +// PaymentTerm is navigation property +func (b *SalesInvoiceRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// SalesInvoiceLines returns request builder for SalesInvoiceLine collection +func (b *SalesInvoiceRequestBuilder) SalesInvoiceLines() *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder { + bb := &SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesInvoiceLines" + return bb +} + +// SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection +type SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesInvoiceLine collection +func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) Request() *SalesInvoiceSalesInvoiceLinesCollectionRequest { + return &SalesInvoiceSalesInvoiceLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesInvoiceLine item +func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder { + bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SalesInvoiceSalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection +type SalesInvoiceSalesInvoiceLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesInvoiceLine collection +func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoiceLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesInvoiceLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesInvoiceLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesInvoiceLine collection, max N pages +func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoiceLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesInvoiceLine collection +func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesInvoiceLine collection +func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ShipmentMethod is navigation property +func (b *SalesInvoiceRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder { + bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shipmentMethod" + return bb +} + +// Account is navigation property +func (b *SalesInvoiceLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// Item is navigation property +func (b *SalesInvoiceLineRequestBuilder) Item() *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} + +// Currency is navigation property +func (b *SalesOrderRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// Customer is navigation property +func (b *SalesOrderRequestBuilder) Customer() *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customer" + return bb +} + +// PaymentTerm is navigation property +func (b *SalesOrderRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// SalesOrderLines returns request builder for SalesOrderLine collection +func (b *SalesOrderRequestBuilder) SalesOrderLines() *SalesOrderSalesOrderLinesCollectionRequestBuilder { + bb := &SalesOrderSalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesOrderLines" + return bb +} + +// SalesOrderSalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection +type SalesOrderSalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesOrderLine collection +func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) Request() *SalesOrderSalesOrderLinesCollectionRequest { + return &SalesOrderSalesOrderLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesOrderLine item +func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder { + bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SalesOrderSalesOrderLinesCollectionRequest is request for SalesOrderLine collection +type SalesOrderSalesOrderLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesOrderLine collection +func (r *SalesOrderSalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrderLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesOrderLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesOrderLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesOrderLine collection, max N pages +func (r *SalesOrderSalesOrderLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrderLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesOrderLine collection +func (r *SalesOrderSalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesOrderLine collection +func (r *SalesOrderSalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Account is navigation property +func (b *SalesOrderLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// Item is navigation property +func (b *SalesOrderLineRequestBuilder) Item() *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} + +// Currency is navigation property +func (b *SalesQuoteRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// Customer is navigation property +func (b *SalesQuoteRequestBuilder) Customer() *CustomerRequestBuilder { + bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/customer" + return bb +} + +// PaymentTerm is navigation property +func (b *SalesQuoteRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// SalesQuoteLines returns request builder for SalesQuoteLine collection +func (b *SalesQuoteRequestBuilder) SalesQuoteLines() *SalesQuoteSalesQuoteLinesCollectionRequestBuilder { + bb := &SalesQuoteSalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/salesQuoteLines" + return bb +} + +// SalesQuoteSalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection +type SalesQuoteSalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SalesQuoteLine collection +func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) Request() *SalesQuoteSalesQuoteLinesCollectionRequest { + return &SalesQuoteSalesQuoteLinesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SalesQuoteLine item +func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder { + bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SalesQuoteSalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection +type SalesQuoteSalesQuoteLinesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SalesQuoteLine collection +func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuoteLine, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SalesQuoteLine + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SalesQuoteLine + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SalesQuoteLine collection, max N pages +func (r *SalesQuoteSalesQuoteLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuoteLine, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SalesQuoteLine collection +func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SalesQuoteLine collection +func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ShipmentMethod is navigation property +func (b *SalesQuoteRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder { + bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shipmentMethod" + return bb +} + +// Account is navigation property +func (b *SalesQuoteLineRequestBuilder) Account() *AccountRequestBuilder { + bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/account" + return bb +} + +// Item is navigation property +func (b *SalesQuoteLineRequestBuilder) Item() *ItemRequestBuilder { + bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/item" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go new file mode 100644 index 00000000..618e8f93 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go @@ -0,0 +1,851 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + "time" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ScheduleShareRequestParameter undocumented +type ScheduleShareRequestParameter struct { + // NotifyTeam undocumented + NotifyTeam *bool `json:"notifyTeam,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` +} + +// ScheduleChangeRequestObjectApproveRequestParameter undocumented +type ScheduleChangeRequestObjectApproveRequestParameter struct { + // Message undocumented + Message *string `json:"message,omitempty"` +} + +// ScheduleChangeRequestObjectDeclineRequestParameter undocumented +type ScheduleChangeRequestObjectDeclineRequestParameter struct { + // Message undocumented + Message *string `json:"message,omitempty"` +} + +// OpenShiftChangeRequests returns request builder for OpenShiftChangeRequestObject collection +func (b *ScheduleRequestBuilder) OpenShiftChangeRequests() *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder { + bb := &ScheduleOpenShiftChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/openShiftChangeRequests" + return bb +} + +// ScheduleOpenShiftChangeRequestsCollectionRequestBuilder is request builder for OpenShiftChangeRequestObject collection +type ScheduleOpenShiftChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OpenShiftChangeRequestObject collection +func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) Request() *ScheduleOpenShiftChangeRequestsCollectionRequest { + return &ScheduleOpenShiftChangeRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OpenShiftChangeRequestObject item +func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) ID(id string) *OpenShiftChangeRequestObjectRequestBuilder { + bb := &OpenShiftChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleOpenShiftChangeRequestsCollectionRequest is request for OpenShiftChangeRequestObject collection +type ScheduleOpenShiftChangeRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OpenShiftChangeRequestObject collection +func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OpenShiftChangeRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OpenShiftChangeRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OpenShiftChangeRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OpenShiftChangeRequestObject collection, max N pages +func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]OpenShiftChangeRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OpenShiftChangeRequestObject collection +func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Get(ctx context.Context) ([]OpenShiftChangeRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OpenShiftChangeRequestObject collection +func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *OpenShiftChangeRequestObject) (resObj *OpenShiftChangeRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OpenShifts returns request builder for OpenShift collection +func (b *ScheduleRequestBuilder) OpenShifts() *ScheduleOpenShiftsCollectionRequestBuilder { + bb := &ScheduleOpenShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/openShifts" + return bb +} + +// ScheduleOpenShiftsCollectionRequestBuilder is request builder for OpenShift collection +type ScheduleOpenShiftsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OpenShift collection +func (b *ScheduleOpenShiftsCollectionRequestBuilder) Request() *ScheduleOpenShiftsCollectionRequest { + return &ScheduleOpenShiftsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OpenShift item +func (b *ScheduleOpenShiftsCollectionRequestBuilder) ID(id string) *OpenShiftRequestBuilder { + bb := &OpenShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleOpenShiftsCollectionRequest is request for OpenShift collection +type ScheduleOpenShiftsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OpenShift collection +func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OpenShift, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OpenShift + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OpenShift + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OpenShift collection, max N pages +func (r *ScheduleOpenShiftsCollectionRequest) GetN(ctx context.Context, n int) ([]OpenShift, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OpenShift collection +func (r *ScheduleOpenShiftsCollectionRequest) Get(ctx context.Context) ([]OpenShift, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OpenShift collection +func (r *ScheduleOpenShiftsCollectionRequest) Add(ctx context.Context, reqObj *OpenShift) (resObj *OpenShift, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SchedulingGroups returns request builder for SchedulingGroup collection +func (b *ScheduleRequestBuilder) SchedulingGroups() *ScheduleSchedulingGroupsCollectionRequestBuilder { + bb := &ScheduleSchedulingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schedulingGroups" + return bb +} + +// ScheduleSchedulingGroupsCollectionRequestBuilder is request builder for SchedulingGroup collection +type ScheduleSchedulingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SchedulingGroup collection +func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) Request() *ScheduleSchedulingGroupsCollectionRequest { + return &ScheduleSchedulingGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SchedulingGroup item +func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) ID(id string) *SchedulingGroupRequestBuilder { + bb := &SchedulingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleSchedulingGroupsCollectionRequest is request for SchedulingGroup collection +type ScheduleSchedulingGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SchedulingGroup collection +func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SchedulingGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SchedulingGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SchedulingGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SchedulingGroup collection, max N pages +func (r *ScheduleSchedulingGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SchedulingGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SchedulingGroup collection +func (r *ScheduleSchedulingGroupsCollectionRequest) Get(ctx context.Context) ([]SchedulingGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SchedulingGroup collection +func (r *ScheduleSchedulingGroupsCollectionRequest) Add(ctx context.Context, reqObj *SchedulingGroup) (resObj *SchedulingGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Shifts returns request builder for Shift collection +func (b *ScheduleRequestBuilder) Shifts() *ScheduleShiftsCollectionRequestBuilder { + bb := &ScheduleShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shifts" + return bb +} + +// ScheduleShiftsCollectionRequestBuilder is request builder for Shift collection +type ScheduleShiftsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Shift collection +func (b *ScheduleShiftsCollectionRequestBuilder) Request() *ScheduleShiftsCollectionRequest { + return &ScheduleShiftsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Shift item +func (b *ScheduleShiftsCollectionRequestBuilder) ID(id string) *ShiftRequestBuilder { + bb := &ShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleShiftsCollectionRequest is request for Shift collection +type ScheduleShiftsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Shift collection +func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Shift, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Shift + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Shift + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Shift collection, max N pages +func (r *ScheduleShiftsCollectionRequest) GetN(ctx context.Context, n int) ([]Shift, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Shift collection +func (r *ScheduleShiftsCollectionRequest) Get(ctx context.Context) ([]Shift, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Shift collection +func (r *ScheduleShiftsCollectionRequest) Add(ctx context.Context, reqObj *Shift) (resObj *Shift, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SwapShiftsChangeRequests returns request builder for SwapShiftsChangeRequestObject collection +func (b *ScheduleRequestBuilder) SwapShiftsChangeRequests() *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder { + bb := &ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/swapShiftsChangeRequests" + return bb +} + +// ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder is request builder for SwapShiftsChangeRequestObject collection +type ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SwapShiftsChangeRequestObject collection +func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) Request() *ScheduleSwapShiftsChangeRequestsCollectionRequest { + return &ScheduleSwapShiftsChangeRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SwapShiftsChangeRequestObject item +func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) ID(id string) *SwapShiftsChangeRequestObjectRequestBuilder { + bb := &SwapShiftsChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleSwapShiftsChangeRequestsCollectionRequest is request for SwapShiftsChangeRequestObject collection +type ScheduleSwapShiftsChangeRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SwapShiftsChangeRequestObject collection +func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SwapShiftsChangeRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SwapShiftsChangeRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SwapShiftsChangeRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SwapShiftsChangeRequestObject collection, max N pages +func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]SwapShiftsChangeRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SwapShiftsChangeRequestObject collection +func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Get(ctx context.Context) ([]SwapShiftsChangeRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SwapShiftsChangeRequestObject collection +func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *SwapShiftsChangeRequestObject) (resObj *SwapShiftsChangeRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TimeOffReasons returns request builder for TimeOffReason collection +func (b *ScheduleRequestBuilder) TimeOffReasons() *ScheduleTimeOffReasonsCollectionRequestBuilder { + bb := &ScheduleTimeOffReasonsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/timeOffReasons" + return bb +} + +// ScheduleTimeOffReasonsCollectionRequestBuilder is request builder for TimeOffReason collection +type ScheduleTimeOffReasonsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TimeOffReason collection +func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) Request() *ScheduleTimeOffReasonsCollectionRequest { + return &ScheduleTimeOffReasonsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TimeOffReason item +func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) ID(id string) *TimeOffReasonRequestBuilder { + bb := &TimeOffReasonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleTimeOffReasonsCollectionRequest is request for TimeOffReason collection +type ScheduleTimeOffReasonsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TimeOffReason collection +func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOffReason, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TimeOffReason + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TimeOffReason + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TimeOffReason collection, max N pages +func (r *ScheduleTimeOffReasonsCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOffReason, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TimeOffReason collection +func (r *ScheduleTimeOffReasonsCollectionRequest) Get(ctx context.Context) ([]TimeOffReason, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TimeOffReason collection +func (r *ScheduleTimeOffReasonsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffReason) (resObj *TimeOffReason, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TimeOffRequests returns request builder for TimeOffRequestObject collection +func (b *ScheduleRequestBuilder) TimeOffRequests() *ScheduleTimeOffRequestsCollectionRequestBuilder { + bb := &ScheduleTimeOffRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/timeOffRequests" + return bb +} + +// ScheduleTimeOffRequestsCollectionRequestBuilder is request builder for TimeOffRequestObject collection +type ScheduleTimeOffRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TimeOffRequestObject collection +func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) Request() *ScheduleTimeOffRequestsCollectionRequest { + return &ScheduleTimeOffRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TimeOffRequestObject item +func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) ID(id string) *TimeOffRequestObjectRequestBuilder { + bb := &TimeOffRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleTimeOffRequestsCollectionRequest is request for TimeOffRequestObject collection +type ScheduleTimeOffRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TimeOffRequestObject collection +func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOffRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TimeOffRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TimeOffRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TimeOffRequestObject collection, max N pages +func (r *ScheduleTimeOffRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOffRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TimeOffRequestObject collection +func (r *ScheduleTimeOffRequestsCollectionRequest) Get(ctx context.Context) ([]TimeOffRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TimeOffRequestObject collection +func (r *ScheduleTimeOffRequestsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffRequestObject) (resObj *TimeOffRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TimesOff returns request builder for TimeOff collection +func (b *ScheduleRequestBuilder) TimesOff() *ScheduleTimesOffCollectionRequestBuilder { + bb := &ScheduleTimesOffCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/timesOff" + return bb +} + +// ScheduleTimesOffCollectionRequestBuilder is request builder for TimeOff collection +type ScheduleTimesOffCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TimeOff collection +func (b *ScheduleTimesOffCollectionRequestBuilder) Request() *ScheduleTimesOffCollectionRequest { + return &ScheduleTimesOffCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TimeOff item +func (b *ScheduleTimesOffCollectionRequestBuilder) ID(id string) *TimeOffRequestBuilder { + bb := &TimeOffRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ScheduleTimesOffCollectionRequest is request for TimeOff collection +type ScheduleTimesOffCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TimeOff collection +func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOff, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TimeOff + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TimeOff + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TimeOff collection, max N pages +func (r *ScheduleTimesOffCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOff, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TimeOff collection +func (r *ScheduleTimesOffCollectionRequest) Get(ctx context.Context) ([]TimeOff, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TimeOff collection +func (r *ScheduleTimesOffCollectionRequest) Add(ctx context.Context, reqObj *TimeOff) (resObj *TimeOff, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go new file mode 100644 index 00000000..4c14f08b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go @@ -0,0 +1,9 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SearchQueryRequestParameter undocumented +type SearchQueryRequestParameter struct { + // Requests undocumented + Requests []SearchRequestObject `json:"requests,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go new file mode 100644 index 00000000..322eeed4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go @@ -0,0 +1,230 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ParentNotebook is navigation property +func (b *SectionGroupRequestBuilder) ParentNotebook() *NotebookRequestBuilder { + bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentNotebook" + return bb +} + +// ParentSectionGroup is navigation property +func (b *SectionGroupRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder { + bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/parentSectionGroup" + return bb +} + +// SectionGroups returns request builder for SectionGroup collection +func (b *SectionGroupRequestBuilder) SectionGroups() *SectionGroupSectionGroupsCollectionRequestBuilder { + bb := &SectionGroupSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sectionGroups" + return bb +} + +// SectionGroupSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection +type SectionGroupSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SectionGroup collection +func (b *SectionGroupSectionGroupsCollectionRequestBuilder) Request() *SectionGroupSectionGroupsCollectionRequest { + return &SectionGroupSectionGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SectionGroup item +func (b *SectionGroupSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder { + bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SectionGroupSectionGroupsCollectionRequest is request for SectionGroup collection +type SectionGroupSectionGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SectionGroup collection +func (r *SectionGroupSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SectionGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SectionGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SectionGroup collection, max N pages +func (r *SectionGroupSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SectionGroup collection +func (r *SectionGroupSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SectionGroup collection +func (r *SectionGroupSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sections returns request builder for OnenoteSection collection +func (b *SectionGroupRequestBuilder) Sections() *SectionGroupSectionsCollectionRequestBuilder { + bb := &SectionGroupSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sections" + return bb +} + +// SectionGroupSectionsCollectionRequestBuilder is request builder for OnenoteSection collection +type SectionGroupSectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnenoteSection collection +func (b *SectionGroupSectionsCollectionRequestBuilder) Request() *SectionGroupSectionsCollectionRequest { + return &SectionGroupSectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnenoteSection item +func (b *SectionGroupSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder { + bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SectionGroupSectionsCollectionRequest is request for OnenoteSection collection +type SectionGroupSectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnenoteSection collection +func (r *SectionGroupSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnenoteSection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnenoteSection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnenoteSection collection, max N pages +func (r *SectionGroupSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnenoteSection collection +func (r *SectionGroupSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnenoteSection collection +func (r *SectionGroupSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go new file mode 100644 index 00000000..9d0cc978 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go @@ -0,0 +1,1553 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SecurityActionCancelSecurityActionRequestParameter undocumented +type SecurityActionCancelSecurityActionRequestParameter struct { +} + +// Alerts returns request builder for Alert collection +func (b *SecurityRequestBuilder) Alerts() *SecurityAlertsCollectionRequestBuilder { + bb := &SecurityAlertsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/alerts" + return bb +} + +// SecurityAlertsCollectionRequestBuilder is request builder for Alert collection +type SecurityAlertsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Alert collection +func (b *SecurityAlertsCollectionRequestBuilder) Request() *SecurityAlertsCollectionRequest { + return &SecurityAlertsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Alert item +func (b *SecurityAlertsCollectionRequestBuilder) ID(id string) *AlertRequestBuilder { + bb := &AlertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityAlertsCollectionRequest is request for Alert collection +type SecurityAlertsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Alert collection +func (r *SecurityAlertsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Alert, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Alert + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Alert + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Alert collection, max N pages +func (r *SecurityAlertsCollectionRequest) GetN(ctx context.Context, n int) ([]Alert, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Alert collection +func (r *SecurityAlertsCollectionRequest) Get(ctx context.Context) ([]Alert, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Alert collection +func (r *SecurityAlertsCollectionRequest) Add(ctx context.Context, reqObj *Alert) (resObj *Alert, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CloudAppSecurityProfiles returns request builder for CloudAppSecurityProfile collection +func (b *SecurityRequestBuilder) CloudAppSecurityProfiles() *SecurityCloudAppSecurityProfilesCollectionRequestBuilder { + bb := &SecurityCloudAppSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/cloudAppSecurityProfiles" + return bb +} + +// SecurityCloudAppSecurityProfilesCollectionRequestBuilder is request builder for CloudAppSecurityProfile collection +type SecurityCloudAppSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CloudAppSecurityProfile collection +func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) Request() *SecurityCloudAppSecurityProfilesCollectionRequest { + return &SecurityCloudAppSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CloudAppSecurityProfile item +func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) ID(id string) *CloudAppSecurityProfileRequestBuilder { + bb := &CloudAppSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityCloudAppSecurityProfilesCollectionRequest is request for CloudAppSecurityProfile collection +type SecurityCloudAppSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CloudAppSecurityProfile collection +func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CloudAppSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CloudAppSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CloudAppSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CloudAppSecurityProfile collection, max N pages +func (r *SecurityCloudAppSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]CloudAppSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CloudAppSecurityProfile collection +func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]CloudAppSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CloudAppSecurityProfile collection +func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *CloudAppSecurityProfile) (resObj *CloudAppSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DomainSecurityProfiles returns request builder for DomainSecurityProfile collection +func (b *SecurityRequestBuilder) DomainSecurityProfiles() *SecurityDomainSecurityProfilesCollectionRequestBuilder { + bb := &SecurityDomainSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domainSecurityProfiles" + return bb +} + +// SecurityDomainSecurityProfilesCollectionRequestBuilder is request builder for DomainSecurityProfile collection +type SecurityDomainSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DomainSecurityProfile collection +func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) Request() *SecurityDomainSecurityProfilesCollectionRequest { + return &SecurityDomainSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DomainSecurityProfile item +func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) ID(id string) *DomainSecurityProfileRequestBuilder { + bb := &DomainSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityDomainSecurityProfilesCollectionRequest is request for DomainSecurityProfile collection +type SecurityDomainSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DomainSecurityProfile collection +func (r *SecurityDomainSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DomainSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DomainSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DomainSecurityProfile collection, max N pages +func (r *SecurityDomainSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]DomainSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DomainSecurityProfile collection +func (r *SecurityDomainSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]DomainSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DomainSecurityProfile collection +func (r *SecurityDomainSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *DomainSecurityProfile) (resObj *DomainSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// FileSecurityProfiles returns request builder for FileSecurityProfile collection +func (b *SecurityRequestBuilder) FileSecurityProfiles() *SecurityFileSecurityProfilesCollectionRequestBuilder { + bb := &SecurityFileSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fileSecurityProfiles" + return bb +} + +// SecurityFileSecurityProfilesCollectionRequestBuilder is request builder for FileSecurityProfile collection +type SecurityFileSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for FileSecurityProfile collection +func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) Request() *SecurityFileSecurityProfilesCollectionRequest { + return &SecurityFileSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for FileSecurityProfile item +func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) ID(id string) *FileSecurityProfileRequestBuilder { + bb := &FileSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityFileSecurityProfilesCollectionRequest is request for FileSecurityProfile collection +type SecurityFileSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for FileSecurityProfile collection +func (r *SecurityFileSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FileSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []FileSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []FileSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for FileSecurityProfile collection, max N pages +func (r *SecurityFileSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]FileSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for FileSecurityProfile collection +func (r *SecurityFileSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]FileSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for FileSecurityProfile collection +func (r *SecurityFileSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *FileSecurityProfile) (resObj *FileSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// HostSecurityProfiles returns request builder for HostSecurityProfile collection +func (b *SecurityRequestBuilder) HostSecurityProfiles() *SecurityHostSecurityProfilesCollectionRequestBuilder { + bb := &SecurityHostSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/hostSecurityProfiles" + return bb +} + +// SecurityHostSecurityProfilesCollectionRequestBuilder is request builder for HostSecurityProfile collection +type SecurityHostSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for HostSecurityProfile collection +func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) Request() *SecurityHostSecurityProfilesCollectionRequest { + return &SecurityHostSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for HostSecurityProfile item +func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) ID(id string) *HostSecurityProfileRequestBuilder { + bb := &HostSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityHostSecurityProfilesCollectionRequest is request for HostSecurityProfile collection +type SecurityHostSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for HostSecurityProfile collection +func (r *SecurityHostSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HostSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HostSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HostSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for HostSecurityProfile collection, max N pages +func (r *SecurityHostSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]HostSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for HostSecurityProfile collection +func (r *SecurityHostSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]HostSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for HostSecurityProfile collection +func (r *SecurityHostSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *HostSecurityProfile) (resObj *HostSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IPSecurityProfiles returns request builder for IPSecurityProfile collection +func (b *SecurityRequestBuilder) IPSecurityProfiles() *SecurityIPSecurityProfilesCollectionRequestBuilder { + bb := &SecurityIPSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/ipSecurityProfiles" + return bb +} + +// SecurityIPSecurityProfilesCollectionRequestBuilder is request builder for IPSecurityProfile collection +type SecurityIPSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IPSecurityProfile collection +func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) Request() *SecurityIPSecurityProfilesCollectionRequest { + return &SecurityIPSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IPSecurityProfile item +func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) ID(id string) *IPSecurityProfileRequestBuilder { + bb := &IPSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityIPSecurityProfilesCollectionRequest is request for IPSecurityProfile collection +type SecurityIPSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IPSecurityProfile collection +func (r *SecurityIPSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IPSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IPSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IPSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IPSecurityProfile collection, max N pages +func (r *SecurityIPSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]IPSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IPSecurityProfile collection +func (r *SecurityIPSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]IPSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IPSecurityProfile collection +func (r *SecurityIPSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *IPSecurityProfile) (resObj *IPSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ProviderTenantSettings returns request builder for ProviderTenantSetting collection +func (b *SecurityRequestBuilder) ProviderTenantSettings() *SecurityProviderTenantSettingsCollectionRequestBuilder { + bb := &SecurityProviderTenantSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/providerTenantSettings" + return bb +} + +// SecurityProviderTenantSettingsCollectionRequestBuilder is request builder for ProviderTenantSetting collection +type SecurityProviderTenantSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProviderTenantSetting collection +func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) Request() *SecurityProviderTenantSettingsCollectionRequest { + return &SecurityProviderTenantSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProviderTenantSetting item +func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) ID(id string) *ProviderTenantSettingRequestBuilder { + bb := &ProviderTenantSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityProviderTenantSettingsCollectionRequest is request for ProviderTenantSetting collection +type SecurityProviderTenantSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProviderTenantSetting collection +func (r *SecurityProviderTenantSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProviderTenantSetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProviderTenantSetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProviderTenantSetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProviderTenantSetting collection, max N pages +func (r *SecurityProviderTenantSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]ProviderTenantSetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProviderTenantSetting collection +func (r *SecurityProviderTenantSettingsCollectionRequest) Get(ctx context.Context) ([]ProviderTenantSetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProviderTenantSetting collection +func (r *SecurityProviderTenantSettingsCollectionRequest) Add(ctx context.Context, reqObj *ProviderTenantSetting) (resObj *ProviderTenantSetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SecureScoreControlProfiles returns request builder for SecureScoreControlProfile collection +func (b *SecurityRequestBuilder) SecureScoreControlProfiles() *SecuritySecureScoreControlProfilesCollectionRequestBuilder { + bb := &SecuritySecureScoreControlProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/secureScoreControlProfiles" + return bb +} + +// SecuritySecureScoreControlProfilesCollectionRequestBuilder is request builder for SecureScoreControlProfile collection +type SecuritySecureScoreControlProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecureScoreControlProfile collection +func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) Request() *SecuritySecureScoreControlProfilesCollectionRequest { + return &SecuritySecureScoreControlProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecureScoreControlProfile item +func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) ID(id string) *SecureScoreControlProfileRequestBuilder { + bb := &SecureScoreControlProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecuritySecureScoreControlProfilesCollectionRequest is request for SecureScoreControlProfile collection +type SecuritySecureScoreControlProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecureScoreControlProfile collection +func (r *SecuritySecureScoreControlProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecureScoreControlProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecureScoreControlProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecureScoreControlProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecureScoreControlProfile collection, max N pages +func (r *SecuritySecureScoreControlProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]SecureScoreControlProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecureScoreControlProfile collection +func (r *SecuritySecureScoreControlProfilesCollectionRequest) Get(ctx context.Context) ([]SecureScoreControlProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecureScoreControlProfile collection +func (r *SecuritySecureScoreControlProfilesCollectionRequest) Add(ctx context.Context, reqObj *SecureScoreControlProfile) (resObj *SecureScoreControlProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SecureScores returns request builder for SecureScore collection +func (b *SecurityRequestBuilder) SecureScores() *SecuritySecureScoresCollectionRequestBuilder { + bb := &SecuritySecureScoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/secureScores" + return bb +} + +// SecuritySecureScoresCollectionRequestBuilder is request builder for SecureScore collection +type SecuritySecureScoresCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecureScore collection +func (b *SecuritySecureScoresCollectionRequestBuilder) Request() *SecuritySecureScoresCollectionRequest { + return &SecuritySecureScoresCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecureScore item +func (b *SecuritySecureScoresCollectionRequestBuilder) ID(id string) *SecureScoreRequestBuilder { + bb := &SecureScoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecuritySecureScoresCollectionRequest is request for SecureScore collection +type SecuritySecureScoresCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecureScore collection +func (r *SecuritySecureScoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecureScore, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecureScore + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecureScore + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecureScore collection, max N pages +func (r *SecuritySecureScoresCollectionRequest) GetN(ctx context.Context, n int) ([]SecureScore, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecureScore collection +func (r *SecuritySecureScoresCollectionRequest) Get(ctx context.Context) ([]SecureScore, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecureScore collection +func (r *SecuritySecureScoresCollectionRequest) Add(ctx context.Context, reqObj *SecureScore) (resObj *SecureScore, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SecurityActions returns request builder for SecurityAction collection +func (b *SecurityRequestBuilder) SecurityActions() *SecuritySecurityActionsCollectionRequestBuilder { + bb := &SecuritySecurityActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/securityActions" + return bb +} + +// SecuritySecurityActionsCollectionRequestBuilder is request builder for SecurityAction collection +type SecuritySecurityActionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecurityAction collection +func (b *SecuritySecurityActionsCollectionRequestBuilder) Request() *SecuritySecurityActionsCollectionRequest { + return &SecuritySecurityActionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecurityAction item +func (b *SecuritySecurityActionsCollectionRequestBuilder) ID(id string) *SecurityActionRequestBuilder { + bb := &SecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecuritySecurityActionsCollectionRequest is request for SecurityAction collection +type SecuritySecurityActionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecurityAction collection +func (r *SecuritySecurityActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityAction, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecurityAction + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecurityAction + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecurityAction collection, max N pages +func (r *SecuritySecurityActionsCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityAction, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecurityAction collection +func (r *SecuritySecurityActionsCollectionRequest) Get(ctx context.Context) ([]SecurityAction, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecurityAction collection +func (r *SecuritySecurityActionsCollectionRequest) Add(ctx context.Context, reqObj *SecurityAction) (resObj *SecurityAction, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TiIndicators returns request builder for TiIndicator collection +func (b *SecurityRequestBuilder) TiIndicators() *SecurityTiIndicatorsCollectionRequestBuilder { + bb := &SecurityTiIndicatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tiIndicators" + return bb +} + +// SecurityTiIndicatorsCollectionRequestBuilder is request builder for TiIndicator collection +type SecurityTiIndicatorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TiIndicator collection +func (b *SecurityTiIndicatorsCollectionRequestBuilder) Request() *SecurityTiIndicatorsCollectionRequest { + return &SecurityTiIndicatorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TiIndicator item +func (b *SecurityTiIndicatorsCollectionRequestBuilder) ID(id string) *TiIndicatorRequestBuilder { + bb := &TiIndicatorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityTiIndicatorsCollectionRequest is request for TiIndicator collection +type SecurityTiIndicatorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TiIndicator collection +func (r *SecurityTiIndicatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TiIndicator + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TiIndicator + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TiIndicator collection, max N pages +func (r *SecurityTiIndicatorsCollectionRequest) GetN(ctx context.Context, n int) ([]TiIndicator, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TiIndicator collection +func (r *SecurityTiIndicatorsCollectionRequest) Get(ctx context.Context) ([]TiIndicator, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TiIndicator collection +func (r *SecurityTiIndicatorsCollectionRequest) Add(ctx context.Context, reqObj *TiIndicator) (resObj *TiIndicator, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UserSecurityProfiles returns request builder for UserSecurityProfile collection +func (b *SecurityRequestBuilder) UserSecurityProfiles() *SecurityUserSecurityProfilesCollectionRequestBuilder { + bb := &SecurityUserSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/userSecurityProfiles" + return bb +} + +// SecurityUserSecurityProfilesCollectionRequestBuilder is request builder for UserSecurityProfile collection +type SecurityUserSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserSecurityProfile collection +func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) Request() *SecurityUserSecurityProfilesCollectionRequest { + return &SecurityUserSecurityProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserSecurityProfile item +func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) ID(id string) *UserSecurityProfileRequestBuilder { + bb := &UserSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityUserSecurityProfilesCollectionRequest is request for UserSecurityProfile collection +type SecurityUserSecurityProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserSecurityProfile collection +func (r *SecurityUserSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserSecurityProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserSecurityProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserSecurityProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserSecurityProfile collection, max N pages +func (r *SecurityUserSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]UserSecurityProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserSecurityProfile collection +func (r *SecurityUserSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]UserSecurityProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserSecurityProfile collection +func (r *SecurityUserSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *UserSecurityProfile) (resObj *UserSecurityProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SettingStates returns request builder for SecurityBaselineSettingState collection +func (b *SecurityBaselineStateRequestBuilder) SettingStates() *SecurityBaselineStateSettingStatesCollectionRequestBuilder { + bb := &SecurityBaselineStateSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settingStates" + return bb +} + +// SecurityBaselineStateSettingStatesCollectionRequestBuilder is request builder for SecurityBaselineSettingState collection +type SecurityBaselineStateSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecurityBaselineSettingState collection +func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) Request() *SecurityBaselineStateSettingStatesCollectionRequest { + return &SecurityBaselineStateSettingStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecurityBaselineSettingState item +func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineSettingStateRequestBuilder { + bb := &SecurityBaselineSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityBaselineStateSettingStatesCollectionRequest is request for SecurityBaselineSettingState collection +type SecurityBaselineStateSettingStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecurityBaselineSettingState collection +func (r *SecurityBaselineStateSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineSettingState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecurityBaselineSettingState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecurityBaselineSettingState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecurityBaselineSettingState collection, max N pages +func (r *SecurityBaselineStateSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineSettingState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecurityBaselineSettingState collection +func (r *SecurityBaselineStateSettingStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineSettingState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecurityBaselineSettingState collection +func (r *SecurityBaselineStateSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineSettingState) (resObj *SecurityBaselineSettingState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CategoryDeviceStateSummaries returns request builder for SecurityBaselineCategoryStateSummary collection +func (b *SecurityBaselineTemplateRequestBuilder) CategoryDeviceStateSummaries() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder { + bb := &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categoryDeviceStateSummaries" + return bb +} + +// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder is request builder for SecurityBaselineCategoryStateSummary collection +type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecurityBaselineCategoryStateSummary collection +func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) Request() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest { + return &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecurityBaselineCategoryStateSummary item +func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) ID(id string) *SecurityBaselineCategoryStateSummaryRequestBuilder { + bb := &SecurityBaselineCategoryStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest is request for SecurityBaselineCategoryStateSummary collection +type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecurityBaselineCategoryStateSummary collection +func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineCategoryStateSummary, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecurityBaselineCategoryStateSummary + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecurityBaselineCategoryStateSummary + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecurityBaselineCategoryStateSummary collection, max N pages +func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineCategoryStateSummary, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecurityBaselineCategoryStateSummary collection +func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineCategoryStateSummary, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecurityBaselineCategoryStateSummary collection +func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) (resObj *SecurityBaselineCategoryStateSummary, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStateSummary is navigation property +func (b *SecurityBaselineTemplateRequestBuilder) DeviceStateSummary() *SecurityBaselineStateSummaryRequestBuilder { + bb := &SecurityBaselineStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStateSummary" + return bb +} + +// DeviceStates returns request builder for SecurityBaselineDeviceState collection +func (b *SecurityBaselineTemplateRequestBuilder) DeviceStates() *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder { + bb := &SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStates" + return bb +} + +// SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder is request builder for SecurityBaselineDeviceState collection +type SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SecurityBaselineDeviceState collection +func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) Request() *SecurityBaselineTemplateDeviceStatesCollectionRequest { + return &SecurityBaselineTemplateDeviceStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SecurityBaselineDeviceState item +func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineDeviceStateRequestBuilder { + bb := &SecurityBaselineDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SecurityBaselineTemplateDeviceStatesCollectionRequest is request for SecurityBaselineDeviceState collection +type SecurityBaselineTemplateDeviceStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SecurityBaselineDeviceState collection +func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineDeviceState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SecurityBaselineDeviceState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SecurityBaselineDeviceState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SecurityBaselineDeviceState collection, max N pages +func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineDeviceState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SecurityBaselineDeviceState collection +func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineDeviceState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SecurityBaselineDeviceState collection +func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineDeviceState) (resObj *SecurityBaselineDeviceState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go new file mode 100644 index 00000000..b1fe3746 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go @@ -0,0 +1,122 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SensitivityLabelCollectionEvaluateRequestParameter undocumented +type SensitivityLabelCollectionEvaluateRequestParameter struct { + // DiscoveredSensitiveTypes undocumented + DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"` + // CurrentLabel undocumented + CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"` +} + +// Sublabels returns request builder for SensitivityLabel collection +func (b *SensitivityLabelRequestBuilder) Sublabels() *SensitivityLabelSublabelsCollectionRequestBuilder { + bb := &SensitivityLabelSublabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sublabels" + return bb +} + +// SensitivityLabelSublabelsCollectionRequestBuilder is request builder for SensitivityLabel collection +type SensitivityLabelSublabelsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SensitivityLabel collection +func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Request() *SensitivityLabelSublabelsCollectionRequest { + return &SensitivityLabelSublabelsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SensitivityLabel item +func (b *SensitivityLabelSublabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder { + bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SensitivityLabelSublabelsCollectionRequest is request for SensitivityLabel collection +type SensitivityLabelSublabelsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SensitivityLabel collection +func (r *SensitivityLabelSublabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SensitivityLabel + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SensitivityLabel + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SensitivityLabel collection, max N pages +func (r *SensitivityLabelSublabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SensitivityLabel collection +func (r *SensitivityLabelSublabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SensitivityLabel collection +func (r *SensitivityLabelSublabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go new file mode 100644 index 00000000..07d10ab1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go @@ -0,0 +1,1067 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter undocumented +type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // Credentials undocumented + Credentials []Credential `json:"credentials,omitempty"` +} + +// ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter undocumented +type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` +} + +// ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter undocumented +type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` +} + +// ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter undocumented +type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter struct { + // ID undocumented + ID *string `json:"id,omitempty"` + // Credentials undocumented + Credentials []Credential `json:"credentials,omitempty"` +} + +// AppRoleAssignedTo returns request builder for AppRoleAssignment collection +func (b *ServicePrincipalRequestBuilder) AppRoleAssignedTo() *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder { + bb := &ServicePrincipalAppRoleAssignedToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appRoleAssignedTo" + return bb +} + +// ServicePrincipalAppRoleAssignedToCollectionRequestBuilder is request builder for AppRoleAssignment collection +type ServicePrincipalAppRoleAssignedToCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppRoleAssignment collection +func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignedToCollectionRequest { + return &ServicePrincipalAppRoleAssignedToCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppRoleAssignment item +func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder { + bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalAppRoleAssignedToCollectionRequest is request for AppRoleAssignment collection +type ServicePrincipalAppRoleAssignedToCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppRoleAssignment collection, max N pages +func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AppRoleAssignments returns request builder for AppRoleAssignment collection +func (b *ServicePrincipalRequestBuilder) AppRoleAssignments() *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder { + bb := &ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appRoleAssignments" + return bb +} + +// ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection +type ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppRoleAssignment collection +func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignmentsCollectionRequest { + return &ServicePrincipalAppRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppRoleAssignment item +func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder { + bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection +type ServicePrincipalAppRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppRoleAssignment collection, max N pages +func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppRoleAssignment collection +func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CreatedObjects returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) CreatedObjects() *ServicePrincipalCreatedObjectsCollectionRequestBuilder { + bb := &ServicePrincipalCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/createdObjects" + return bb +} + +// ServicePrincipalCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) Request() *ServicePrincipalCreatedObjectsCollectionRequest { + return &ServicePrincipalCreatedObjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalCreatedObjectsCollectionRequest is request for DirectoryObject collection +type ServicePrincipalCreatedObjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalCreatedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LicenseDetails returns request builder for LicenseDetails collection +func (b *ServicePrincipalRequestBuilder) LicenseDetails() *ServicePrincipalLicenseDetailsCollectionRequestBuilder { + bb := &ServicePrincipalLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/licenseDetails" + return bb +} + +// ServicePrincipalLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection +type ServicePrincipalLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LicenseDetails collection +func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) Request() *ServicePrincipalLicenseDetailsCollectionRequest { + return &ServicePrincipalLicenseDetailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LicenseDetails item +func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder { + bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalLicenseDetailsCollectionRequest is request for LicenseDetails collection +type ServicePrincipalLicenseDetailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LicenseDetails collection +func (r *ServicePrincipalLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LicenseDetails, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LicenseDetails + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LicenseDetails + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LicenseDetails collection, max N pages +func (r *ServicePrincipalLicenseDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]LicenseDetails, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LicenseDetails collection +func (r *ServicePrincipalLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LicenseDetails collection +func (r *ServicePrincipalLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MemberOf returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) MemberOf() *ServicePrincipalMemberOfCollectionRequestBuilder { + bb := &ServicePrincipalMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/memberOf" + return bb +} + +// ServicePrincipalMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalMemberOfCollectionRequestBuilder) Request() *ServicePrincipalMemberOfCollectionRequest { + return &ServicePrincipalMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalMemberOfCollectionRequest is request for DirectoryObject collection +type ServicePrincipalMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection +func (b *ServicePrincipalRequestBuilder) Oauth2PermissionGrants() *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder { + bb := &ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/oauth2PermissionGrants" + return bb +} + +// ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection +type ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OAuth2PermissionGrant collection +func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) Request() *ServicePrincipalOauth2PermissionGrantsCollectionRequest { + return &ServicePrincipalOauth2PermissionGrantsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OAuth2PermissionGrant item +func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder { + bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection +type ServicePrincipalOauth2PermissionGrantsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OAuth2PermissionGrant collection +func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OAuth2PermissionGrant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OAuth2PermissionGrant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OAuth2PermissionGrant collection, max N pages +func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OAuth2PermissionGrant collection +func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OAuth2PermissionGrant collection +func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OwnedObjects returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) OwnedObjects() *ServicePrincipalOwnedObjectsCollectionRequestBuilder { + bb := &ServicePrincipalOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/ownedObjects" + return bb +} + +// ServicePrincipalOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) Request() *ServicePrincipalOwnedObjectsCollectionRequest { + return &ServicePrincipalOwnedObjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalOwnedObjectsCollectionRequest is request for DirectoryObject collection +type ServicePrincipalOwnedObjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalOwnedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Owners returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) Owners() *ServicePrincipalOwnersCollectionRequestBuilder { + bb := &ServicePrincipalOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/owners" + return bb +} + +// ServicePrincipalOwnersCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalOwnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalOwnersCollectionRequestBuilder) Request() *ServicePrincipalOwnersCollectionRequest { + return &ServicePrincipalOwnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalOwnersCollectionRequest is request for DirectoryObject collection +type ServicePrincipalOwnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policies returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) Policies() *ServicePrincipalPoliciesCollectionRequestBuilder { + bb := &ServicePrincipalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policies" + return bb +} + +// ServicePrincipalPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalPoliciesCollectionRequestBuilder) Request() *ServicePrincipalPoliciesCollectionRequest { + return &ServicePrincipalPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalPoliciesCollectionRequest is request for DirectoryObject collection +type ServicePrincipalPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Synchronization is navigation property +func (b *ServicePrincipalRequestBuilder) Synchronization() *SynchronizationRequestBuilder { + bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/synchronization" + return bb +} + +// TransitiveMemberOf returns request builder for DirectoryObject collection +func (b *ServicePrincipalRequestBuilder) TransitiveMemberOf() *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder { + bb := &ServicePrincipalTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMemberOf" + return bb +} + +// ServicePrincipalTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type ServicePrincipalTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) Request() *ServicePrincipalTransitiveMemberOfCollectionRequest { + return &ServicePrincipalTransitiveMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ServicePrincipalTransitiveMemberOfCollectionRequest is request for DirectoryObject collection +type ServicePrincipalTransitiveMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go new file mode 100644 index 00000000..9e9069cb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go @@ -0,0 +1,170 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DriveItem is navigation property +func (b *SharedDriveItemRequestBuilder) DriveItem() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/driveItem" + return bb +} + +// Items returns request builder for DriveItem collection +func (b *SharedDriveItemRequestBuilder) Items() *SharedDriveItemItemsCollectionRequestBuilder { + bb := &SharedDriveItemItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// SharedDriveItemItemsCollectionRequestBuilder is request builder for DriveItem collection +type SharedDriveItemItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *SharedDriveItemItemsCollectionRequestBuilder) Request() *SharedDriveItemItemsCollectionRequest { + return &SharedDriveItemItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *SharedDriveItemItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SharedDriveItemItemsCollectionRequest is request for DriveItem collection +type SharedDriveItemItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *SharedDriveItemItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *SharedDriveItemItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *SharedDriveItemItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *SharedDriveItemItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// List is navigation property +func (b *SharedDriveItemRequestBuilder) List() *ListRequestBuilder { + bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/list" + return bb +} + +// ListItem is navigation property +func (b *SharedDriveItemRequestBuilder) ListItem() *ListItemRequestBuilder { + bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/listItem" + return bb +} + +// Permission is navigation property +func (b *SharedDriveItemRequestBuilder) Permission() *PermissionRequestBuilder { + bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/permission" + return bb +} + +// Root is navigation property +func (b *SharedDriveItemRequestBuilder) Root() *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/root" + return bb +} + +// Site is navigation property +func (b *SharedDriveItemRequestBuilder) Site() *SiteRequestBuilder { + bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/site" + return bb +} + +// LastSharedMethod is navigation property +func (b *SharedInsightRequestBuilder) LastSharedMethod() *EntityRequestBuilder { + bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/lastSharedMethod" + return bb +} + +// Resource is navigation property +func (b *SharedInsightRequestBuilder) Resource() *EntityRequestBuilder { + bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go new file mode 100644 index 00000000..31140197 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go @@ -0,0 +1,763 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SiteCollectionAddRequestParameter undocumented +type SiteCollectionAddRequestParameter struct { + // Value undocumented + Value []Site `json:"value,omitempty"` +} + +// SiteCollectionRemoveRequestParameter undocumented +type SiteCollectionRemoveRequestParameter struct { + // Value undocumented + Value []Site `json:"value,omitempty"` +} + +// SitePagePublishRequestParameter undocumented +type SitePagePublishRequestParameter struct { +} + +// Analytics is navigation property +func (b *SiteRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder { + bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/analytics" + return bb +} + +// Columns returns request builder for ColumnDefinition collection +func (b *SiteRequestBuilder) Columns() *SiteColumnsCollectionRequestBuilder { + bb := &SiteColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/columns" + return bb +} + +// SiteColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection +type SiteColumnsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ColumnDefinition collection +func (b *SiteColumnsCollectionRequestBuilder) Request() *SiteColumnsCollectionRequest { + return &SiteColumnsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ColumnDefinition item +func (b *SiteColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder { + bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteColumnsCollectionRequest is request for ColumnDefinition collection +type SiteColumnsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ColumnDefinition collection +func (r *SiteColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ColumnDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ColumnDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ColumnDefinition collection, max N pages +func (r *SiteColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ColumnDefinition collection +func (r *SiteColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ColumnDefinition collection +func (r *SiteColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContentTypes returns request builder for ContentType collection +func (b *SiteRequestBuilder) ContentTypes() *SiteContentTypesCollectionRequestBuilder { + bb := &SiteContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contentTypes" + return bb +} + +// SiteContentTypesCollectionRequestBuilder is request builder for ContentType collection +type SiteContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ContentType collection +func (b *SiteContentTypesCollectionRequestBuilder) Request() *SiteContentTypesCollectionRequest { + return &SiteContentTypesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ContentType item +func (b *SiteContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder { + bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteContentTypesCollectionRequest is request for ContentType collection +type SiteContentTypesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ContentType collection +func (r *SiteContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContentType, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ContentType + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ContentType + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ContentType collection, max N pages +func (r *SiteContentTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ContentType, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ContentType collection +func (r *SiteContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ContentType collection +func (r *SiteContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Drive is navigation property +func (b *SiteRequestBuilder) Drive() *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drive" + return bb +} + +// Drives returns request builder for Drive collection +func (b *SiteRequestBuilder) Drives() *SiteDrivesCollectionRequestBuilder { + bb := &SiteDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drives" + return bb +} + +// SiteDrivesCollectionRequestBuilder is request builder for Drive collection +type SiteDrivesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Drive collection +func (b *SiteDrivesCollectionRequestBuilder) Request() *SiteDrivesCollectionRequest { + return &SiteDrivesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Drive item +func (b *SiteDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteDrivesCollectionRequest is request for Drive collection +type SiteDrivesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Drive collection +func (r *SiteDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Drive + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Drive + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Drive collection, max N pages +func (r *SiteDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Drive collection +func (r *SiteDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Drive collection +func (r *SiteDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Items returns request builder for BaseItem collection +func (b *SiteRequestBuilder) Items() *SiteItemsCollectionRequestBuilder { + bb := &SiteItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/items" + return bb +} + +// SiteItemsCollectionRequestBuilder is request builder for BaseItem collection +type SiteItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BaseItem collection +func (b *SiteItemsCollectionRequestBuilder) Request() *SiteItemsCollectionRequest { + return &SiteItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BaseItem item +func (b *SiteItemsCollectionRequestBuilder) ID(id string) *BaseItemRequestBuilder { + bb := &BaseItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteItemsCollectionRequest is request for BaseItem collection +type SiteItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BaseItem collection +func (r *SiteItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BaseItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BaseItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BaseItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BaseItem collection, max N pages +func (r *SiteItemsCollectionRequest) GetN(ctx context.Context, n int) ([]BaseItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BaseItem collection +func (r *SiteItemsCollectionRequest) Get(ctx context.Context) ([]BaseItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BaseItem collection +func (r *SiteItemsCollectionRequest) Add(ctx context.Context, reqObj *BaseItem) (resObj *BaseItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Lists returns request builder for List collection +func (b *SiteRequestBuilder) Lists() *SiteListsCollectionRequestBuilder { + bb := &SiteListsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/lists" + return bb +} + +// SiteListsCollectionRequestBuilder is request builder for List collection +type SiteListsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for List collection +func (b *SiteListsCollectionRequestBuilder) Request() *SiteListsCollectionRequest { + return &SiteListsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for List item +func (b *SiteListsCollectionRequestBuilder) ID(id string) *ListRequestBuilder { + bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteListsCollectionRequest is request for List collection +type SiteListsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for List collection +func (r *SiteListsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]List, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []List + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []List + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for List collection, max N pages +func (r *SiteListsCollectionRequest) GetN(ctx context.Context, n int) ([]List, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for List collection +func (r *SiteListsCollectionRequest) Get(ctx context.Context) ([]List, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for List collection +func (r *SiteListsCollectionRequest) Add(ctx context.Context, reqObj *List) (resObj *List, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Onenote is navigation property +func (b *SiteRequestBuilder) Onenote() *OnenoteRequestBuilder { + bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onenote" + return bb +} + +// Pages returns request builder for SitePage collection +func (b *SiteRequestBuilder) Pages() *SitePagesCollectionRequestBuilder { + bb := &SitePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/pages" + return bb +} + +// SitePagesCollectionRequestBuilder is request builder for SitePage collection +type SitePagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SitePage collection +func (b *SitePagesCollectionRequestBuilder) Request() *SitePagesCollectionRequest { + return &SitePagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SitePage item +func (b *SitePagesCollectionRequestBuilder) ID(id string) *SitePageRequestBuilder { + bb := &SitePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SitePagesCollectionRequest is request for SitePage collection +type SitePagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SitePage collection +func (r *SitePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SitePage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SitePage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SitePage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SitePage collection, max N pages +func (r *SitePagesCollectionRequest) GetN(ctx context.Context, n int) ([]SitePage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SitePage collection +func (r *SitePagesCollectionRequest) Get(ctx context.Context) ([]SitePage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SitePage collection +func (r *SitePagesCollectionRequest) Add(ctx context.Context, reqObj *SitePage) (resObj *SitePage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sites returns request builder for Site collection +func (b *SiteRequestBuilder) Sites() *SiteSitesCollectionRequestBuilder { + bb := &SiteSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sites" + return bb +} + +// SiteSitesCollectionRequestBuilder is request builder for Site collection +type SiteSitesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Site collection +func (b *SiteSitesCollectionRequestBuilder) Request() *SiteSitesCollectionRequest { + return &SiteSitesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Site item +func (b *SiteSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder { + bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SiteSitesCollectionRequest is request for Site collection +type SiteSitesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Site collection +func (r *SiteSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Site collection, max N pages +func (r *SiteSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Site collection +func (r *SiteSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Site collection +func (r *SiteSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go new file mode 100644 index 00000000..1e8b1d2c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go @@ -0,0 +1,394 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SynchronizationJobCollectionValidateCredentialsRequestParameter undocumented +type SynchronizationJobCollectionValidateCredentialsRequestParameter struct { + // ApplicationIdentifier undocumented + ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"` + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // UseSavedCredentials undocumented + UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"` + // Credentials undocumented + Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"` +} + +// SynchronizationJobPauseRequestParameter undocumented +type SynchronizationJobPauseRequestParameter struct { +} + +// SynchronizationJobStartRequestParameter undocumented +type SynchronizationJobStartRequestParameter struct { +} + +// SynchronizationJobStopRequestParameter undocumented +type SynchronizationJobStopRequestParameter struct { +} + +// SynchronizationJobApplyRequestParameter undocumented +type SynchronizationJobApplyRequestParameter struct { + // ObjectID undocumented + ObjectID *string `json:"objectId,omitempty"` + // TypeName undocumented + TypeName *string `json:"typeName,omitempty"` + // RuleID undocumented + RuleID *string `json:"ruleId,omitempty"` +} + +// SynchronizationJobRestartRequestParameter undocumented +type SynchronizationJobRestartRequestParameter struct { + // Criteria undocumented + Criteria *SynchronizationJobRestartCriteria `json:"criteria,omitempty"` +} + +// SynchronizationJobValidateCredentialsRequestParameter undocumented +type SynchronizationJobValidateCredentialsRequestParameter struct { + // ApplicationIdentifier undocumented + ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"` + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // UseSavedCredentials undocumented + UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"` + // Credentials undocumented + Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"` +} + +// SynchronizationSchemaParseExpressionRequestParameter undocumented +type SynchronizationSchemaParseExpressionRequestParameter struct { + // Expression undocumented + Expression *string `json:"expression,omitempty"` + // TestInputObject undocumented + TestInputObject *ExpressionInputObject `json:"testInputObject,omitempty"` + // TargetAttributeDefinition undocumented + TargetAttributeDefinition *AttributeDefinition `json:"targetAttributeDefinition,omitempty"` +} + +// Jobs returns request builder for SynchronizationJob collection +func (b *SynchronizationRequestBuilder) Jobs() *SynchronizationJobsCollectionRequestBuilder { + bb := &SynchronizationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/jobs" + return bb +} + +// SynchronizationJobsCollectionRequestBuilder is request builder for SynchronizationJob collection +type SynchronizationJobsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SynchronizationJob collection +func (b *SynchronizationJobsCollectionRequestBuilder) Request() *SynchronizationJobsCollectionRequest { + return &SynchronizationJobsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SynchronizationJob item +func (b *SynchronizationJobsCollectionRequestBuilder) ID(id string) *SynchronizationJobRequestBuilder { + bb := &SynchronizationJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SynchronizationJobsCollectionRequest is request for SynchronizationJob collection +type SynchronizationJobsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SynchronizationJob collection +func (r *SynchronizationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SynchronizationJob, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SynchronizationJob + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SynchronizationJob + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SynchronizationJob collection, max N pages +func (r *SynchronizationJobsCollectionRequest) GetN(ctx context.Context, n int) ([]SynchronizationJob, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SynchronizationJob collection +func (r *SynchronizationJobsCollectionRequest) Get(ctx context.Context) ([]SynchronizationJob, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SynchronizationJob collection +func (r *SynchronizationJobsCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationJob) (resObj *SynchronizationJob, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Templates returns request builder for SynchronizationTemplate collection +func (b *SynchronizationRequestBuilder) Templates() *SynchronizationTemplatesCollectionRequestBuilder { + bb := &SynchronizationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/templates" + return bb +} + +// SynchronizationTemplatesCollectionRequestBuilder is request builder for SynchronizationTemplate collection +type SynchronizationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SynchronizationTemplate collection +func (b *SynchronizationTemplatesCollectionRequestBuilder) Request() *SynchronizationTemplatesCollectionRequest { + return &SynchronizationTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SynchronizationTemplate item +func (b *SynchronizationTemplatesCollectionRequestBuilder) ID(id string) *SynchronizationTemplateRequestBuilder { + bb := &SynchronizationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SynchronizationTemplatesCollectionRequest is request for SynchronizationTemplate collection +type SynchronizationTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SynchronizationTemplate collection +func (r *SynchronizationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SynchronizationTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SynchronizationTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SynchronizationTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SynchronizationTemplate collection, max N pages +func (r *SynchronizationTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]SynchronizationTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SynchronizationTemplate collection +func (r *SynchronizationTemplatesCollectionRequest) Get(ctx context.Context) ([]SynchronizationTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SynchronizationTemplate collection +func (r *SynchronizationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationTemplate) (resObj *SynchronizationTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Schema is navigation property +func (b *SynchronizationJobRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder { + bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schema" + return bb +} + +// Directories returns request builder for DirectoryDefinition collection +func (b *SynchronizationSchemaRequestBuilder) Directories() *SynchronizationSchemaDirectoriesCollectionRequestBuilder { + bb := &SynchronizationSchemaDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directories" + return bb +} + +// SynchronizationSchemaDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection +type SynchronizationSchemaDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryDefinition collection +func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) Request() *SynchronizationSchemaDirectoriesCollectionRequest { + return &SynchronizationSchemaDirectoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryDefinition item +func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder { + bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// SynchronizationSchemaDirectoriesCollectionRequest is request for DirectoryDefinition collection +type SynchronizationSchemaDirectoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryDefinition collection +func (r *SynchronizationSchemaDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryDefinition collection, max N pages +func (r *SynchronizationSchemaDirectoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryDefinition collection +func (r *SynchronizationSchemaDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryDefinition collection +func (r *SynchronizationSchemaDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Schema is navigation property +func (b *SynchronizationTemplateRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder { + bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schema" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go new file mode 100644 index 00000000..e03fa2cd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go @@ -0,0 +1,349 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter undocumented +type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// TargetedManagedAppConfigurationAssignRequestParameter undocumented +type TargetedManagedAppConfigurationAssignRequestParameter struct { + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} + +// TargetedManagedAppConfigurationTargetAppsRequestParameter undocumented +type TargetedManagedAppConfigurationTargetAppsRequestParameter struct { + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` +} + +// TargetedManagedAppProtectionAssignRequestParameter undocumented +type TargetedManagedAppProtectionAssignRequestParameter struct { + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} + +// Apps returns request builder for ManagedMobileApp collection +func (b *TargetedManagedAppConfigurationRequestBuilder) Apps() *TargetedManagedAppConfigurationAppsCollectionRequestBuilder { + bb := &TargetedManagedAppConfigurationAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/apps" + return bb +} + +// TargetedManagedAppConfigurationAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection +type TargetedManagedAppConfigurationAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedMobileApp collection +func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAppsCollectionRequest { + return &TargetedManagedAppConfigurationAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedMobileApp item +func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder { + bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TargetedManagedAppConfigurationAppsCollectionRequest is request for ManagedMobileApp collection +type TargetedManagedAppConfigurationAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedMobileApp collection +func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedMobileApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedMobileApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedMobileApp collection, max N pages +func (r *TargetedManagedAppConfigurationAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedMobileApp collection +func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedMobileApp collection +func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection +func (b *TargetedManagedAppConfigurationRequestBuilder) Assignments() *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder { + bb := &TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection +type TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TargetedManagedAppPolicyAssignment collection +func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAssignmentsCollectionRequest { + return &TargetedManagedAppConfigurationAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TargetedManagedAppPolicyAssignment item +func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder { + bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TargetedManagedAppConfigurationAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection +type TargetedManagedAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TargetedManagedAppPolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TargetedManagedAppPolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages +func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploymentSummary is navigation property +func (b *TargetedManagedAppConfigurationRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder { + bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploymentSummary" + return bb +} + +// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection +func (b *TargetedManagedAppProtectionRequestBuilder) Assignments() *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder { + bb := &TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection +type TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TargetedManagedAppPolicyAssignment collection +func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppProtectionAssignmentsCollectionRequest { + return &TargetedManagedAppProtectionAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TargetedManagedAppPolicyAssignment item +func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder { + bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TargetedManagedAppProtectionAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection +type TargetedManagedAppProtectionAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TargetedManagedAppPolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TargetedManagedAppPolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages +func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TargetedManagedAppPolicyAssignment collection +func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go new file mode 100644 index 00000000..e443f5d9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go @@ -0,0 +1,583 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TeamCloneRequestParameter undocumented +type TeamCloneRequestParameter struct { + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // Classification undocumented + Classification *string `json:"classification,omitempty"` + // Visibility undocumented + Visibility *TeamVisibilityType `json:"visibility,omitempty"` + // PartsToClone undocumented + PartsToClone *ClonableTeamParts `json:"partsToClone,omitempty"` +} + +// TeamArchiveRequestParameter undocumented +type TeamArchiveRequestParameter struct { + // ShouldSetSpoSiteReadOnlyForMembers undocumented + ShouldSetSpoSiteReadOnlyForMembers *bool `json:"shouldSetSpoSiteReadOnlyForMembers,omitempty"` +} + +// TeamUnarchiveRequestParameter undocumented +type TeamUnarchiveRequestParameter struct { +} + +// Apps returns request builder for TeamsCatalogApp collection +func (b *TeamRequestBuilder) Apps() *TeamAppsCollectionRequestBuilder { + bb := &TeamAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/apps" + return bb +} + +// TeamAppsCollectionRequestBuilder is request builder for TeamsCatalogApp collection +type TeamAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsCatalogApp collection +func (b *TeamAppsCollectionRequestBuilder) Request() *TeamAppsCollectionRequest { + return &TeamAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsCatalogApp item +func (b *TeamAppsCollectionRequestBuilder) ID(id string) *TeamsCatalogAppRequestBuilder { + bb := &TeamsCatalogAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamAppsCollectionRequest is request for TeamsCatalogApp collection +type TeamAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsCatalogApp collection +func (r *TeamAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsCatalogApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsCatalogApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsCatalogApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsCatalogApp collection, max N pages +func (r *TeamAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsCatalogApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsCatalogApp collection +func (r *TeamAppsCollectionRequest) Get(ctx context.Context) ([]TeamsCatalogApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsCatalogApp collection +func (r *TeamAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsCatalogApp) (resObj *TeamsCatalogApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Channels returns request builder for Channel collection +func (b *TeamRequestBuilder) Channels() *TeamChannelsCollectionRequestBuilder { + bb := &TeamChannelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/channels" + return bb +} + +// TeamChannelsCollectionRequestBuilder is request builder for Channel collection +type TeamChannelsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Channel collection +func (b *TeamChannelsCollectionRequestBuilder) Request() *TeamChannelsCollectionRequest { + return &TeamChannelsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Channel item +func (b *TeamChannelsCollectionRequestBuilder) ID(id string) *ChannelRequestBuilder { + bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamChannelsCollectionRequest is request for Channel collection +type TeamChannelsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Channel collection +func (r *TeamChannelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Channel, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Channel + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Channel + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Channel collection, max N pages +func (r *TeamChannelsCollectionRequest) GetN(ctx context.Context, n int) ([]Channel, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Channel collection +func (r *TeamChannelsCollectionRequest) Get(ctx context.Context) ([]Channel, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Channel collection +func (r *TeamChannelsCollectionRequest) Add(ctx context.Context, reqObj *Channel) (resObj *Channel, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Group is navigation property +func (b *TeamRequestBuilder) Group() *GroupRequestBuilder { + bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/group" + return bb +} + +// InstalledApps returns request builder for TeamsAppInstallation collection +func (b *TeamRequestBuilder) InstalledApps() *TeamInstalledAppsCollectionRequestBuilder { + bb := &TeamInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/installedApps" + return bb +} + +// TeamInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection +type TeamInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsAppInstallation collection +func (b *TeamInstalledAppsCollectionRequestBuilder) Request() *TeamInstalledAppsCollectionRequest { + return &TeamInstalledAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsAppInstallation item +func (b *TeamInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder { + bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamInstalledAppsCollectionRequest is request for TeamsAppInstallation collection +type TeamInstalledAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsAppInstallation collection +func (r *TeamInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsAppInstallation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsAppInstallation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsAppInstallation collection, max N pages +func (r *TeamInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsAppInstallation collection +func (r *TeamInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsAppInstallation collection +func (r *TeamInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Operations returns request builder for TeamsAsyncOperation collection +func (b *TeamRequestBuilder) Operations() *TeamOperationsCollectionRequestBuilder { + bb := &TeamOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operations" + return bb +} + +// TeamOperationsCollectionRequestBuilder is request builder for TeamsAsyncOperation collection +type TeamOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsAsyncOperation collection +func (b *TeamOperationsCollectionRequestBuilder) Request() *TeamOperationsCollectionRequest { + return &TeamOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsAsyncOperation item +func (b *TeamOperationsCollectionRequestBuilder) ID(id string) *TeamsAsyncOperationRequestBuilder { + bb := &TeamsAsyncOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamOperationsCollectionRequest is request for TeamsAsyncOperation collection +type TeamOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsAsyncOperation collection +func (r *TeamOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAsyncOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsAsyncOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsAsyncOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsAsyncOperation collection, max N pages +func (r *TeamOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAsyncOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsAsyncOperation collection +func (r *TeamOperationsCollectionRequest) Get(ctx context.Context) ([]TeamsAsyncOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsAsyncOperation collection +func (r *TeamOperationsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAsyncOperation) (resObj *TeamsAsyncOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Owners returns request builder for User collection +func (b *TeamRequestBuilder) Owners() *TeamOwnersCollectionRequestBuilder { + bb := &TeamOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/owners" + return bb +} + +// TeamOwnersCollectionRequestBuilder is request builder for User collection +type TeamOwnersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for User collection +func (b *TeamOwnersCollectionRequestBuilder) Request() *TeamOwnersCollectionRequest { + return &TeamOwnersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for User item +func (b *TeamOwnersCollectionRequestBuilder) ID(id string) *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamOwnersCollectionRequest is request for User collection +type TeamOwnersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for User collection +func (r *TeamOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []User + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []User + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for User collection, max N pages +func (r *TeamOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for User collection +func (r *TeamOwnersCollectionRequest) Get(ctx context.Context) ([]User, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for User collection +func (r *TeamOwnersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Photo is navigation property +func (b *TeamRequestBuilder) Photo() *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photo" + return bb +} + +// PrimaryChannel is navigation property +func (b *TeamRequestBuilder) PrimaryChannel() *ChannelRequestBuilder { + bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/primaryChannel" + return bb +} + +// Schedule is navigation property +func (b *TeamRequestBuilder) Schedule() *ScheduleRequestBuilder { + bb := &ScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schedule" + return bb +} + +// Template is navigation property +func (b *TeamRequestBuilder) Template() *TeamsTemplateRequestBuilder { + bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/template" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go new file mode 100644 index 00000000..21bb9a27 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go @@ -0,0 +1,139 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TeamsAppInstallationUpgradeRequestParameter undocumented +type TeamsAppInstallationUpgradeRequestParameter struct { +} + +// AppDefinitions returns request builder for TeamsAppDefinition collection +func (b *TeamsAppRequestBuilder) AppDefinitions() *TeamsAppAppDefinitionsCollectionRequestBuilder { + bb := &TeamsAppAppDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appDefinitions" + return bb +} + +// TeamsAppAppDefinitionsCollectionRequestBuilder is request builder for TeamsAppDefinition collection +type TeamsAppAppDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsAppDefinition collection +func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) Request() *TeamsAppAppDefinitionsCollectionRequest { + return &TeamsAppAppDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsAppDefinition item +func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) ID(id string) *TeamsAppDefinitionRequestBuilder { + bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamsAppAppDefinitionsCollectionRequest is request for TeamsAppDefinition collection +type TeamsAppAppDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsAppDefinition collection +func (r *TeamsAppAppDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsAppDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsAppDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsAppDefinition collection, max N pages +func (r *TeamsAppAppDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsAppDefinition collection +func (r *TeamsAppAppDefinitionsCollectionRequest) Get(ctx context.Context) ([]TeamsAppDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsAppDefinition collection +func (r *TeamsAppAppDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppDefinition) (resObj *TeamsAppDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TeamsApp is navigation property +func (b *TeamsAppInstallationRequestBuilder) TeamsApp() *TeamsAppRequestBuilder { + bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamsApp" + return bb +} + +// TeamsAppDefinition is navigation property +func (b *TeamsAppInstallationRequestBuilder) TeamsAppDefinition() *TeamsAppDefinitionRequestBuilder { + bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamsAppDefinition" + return bb +} + +// TeamsApp is navigation property +func (b *TeamsTabRequestBuilder) TeamsApp() *TeamsAppRequestBuilder { + bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamsApp" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go new file mode 100644 index 00000000..a1b63897 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// WorkforceIntegrations returns request builder for WorkforceIntegration collection +func (b *TeamworkRequestBuilder) WorkforceIntegrations() *TeamworkWorkforceIntegrationsCollectionRequestBuilder { + bb := &TeamworkWorkforceIntegrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/workforceIntegrations" + return bb +} + +// TeamworkWorkforceIntegrationsCollectionRequestBuilder is request builder for WorkforceIntegration collection +type TeamworkWorkforceIntegrationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkforceIntegration collection +func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) Request() *TeamworkWorkforceIntegrationsCollectionRequest { + return &TeamworkWorkforceIntegrationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkforceIntegration item +func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) ID(id string) *WorkforceIntegrationRequestBuilder { + bb := &WorkforceIntegrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TeamworkWorkforceIntegrationsCollectionRequest is request for WorkforceIntegration collection +type TeamworkWorkforceIntegrationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkforceIntegration collection +func (r *TeamworkWorkforceIntegrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkforceIntegration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkforceIntegration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkforceIntegration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkforceIntegration collection, max N pages +func (r *TeamworkWorkforceIntegrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkforceIntegration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkforceIntegration collection +func (r *TeamworkWorkforceIntegrationsCollectionRequest) Get(ctx context.Context) ([]WorkforceIntegration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkforceIntegration collection +func (r *TeamworkWorkforceIntegrationsCollectionRequest) Add(ctx context.Context, reqObj *WorkforceIntegration) (resObj *WorkforceIntegration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go new file mode 100644 index 00000000..9610c2a4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DefaultRolesSettings is navigation property +func (b *TenantSetupInfoRequestBuilder) DefaultRolesSettings() *PrivilegedRoleSettingsRequestBuilder { + bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/defaultRolesSettings" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go new file mode 100644 index 00000000..7cbfb5ce --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go @@ -0,0 +1,332 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AcceptanceStatuses returns request builder for TermsAndConditionsAcceptanceStatus collection +func (b *TermsAndConditionsRequestBuilder) AcceptanceStatuses() *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder { + bb := &TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/acceptanceStatuses" + return bb +} + +// TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus collection +type TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TermsAndConditionsAcceptanceStatus collection +func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusesCollectionRequest { + return &TermsAndConditionsAcceptanceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TermsAndConditionsAcceptanceStatus item +func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) ID(id string) *TermsAndConditionsAcceptanceStatusRequestBuilder { + bb := &TermsAndConditionsAcceptanceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TermsAndConditionsAcceptanceStatusesCollectionRequest is request for TermsAndConditionsAcceptanceStatus collection +type TermsAndConditionsAcceptanceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TermsAndConditionsAcceptanceStatus collection +func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsAcceptanceStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TermsAndConditionsAcceptanceStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TermsAndConditionsAcceptanceStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TermsAndConditionsAcceptanceStatus collection, max N pages +func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsAcceptanceStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TermsAndConditionsAcceptanceStatus collection +func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAcceptanceStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TermsAndConditionsAcceptanceStatus collection +func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) (resObj *TermsAndConditionsAcceptanceStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for TermsAndConditionsAssignment collection +func (b *TermsAndConditionsRequestBuilder) Assignments() *TermsAndConditionsAssignmentsCollectionRequestBuilder { + bb := &TermsAndConditionsAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// TermsAndConditionsAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsAssignment collection +type TermsAndConditionsAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TermsAndConditionsAssignment collection +func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsAssignmentsCollectionRequest { + return &TermsAndConditionsAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TermsAndConditionsAssignment item +func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsAssignmentRequestBuilder { + bb := &TermsAndConditionsAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TermsAndConditionsAssignmentsCollectionRequest is request for TermsAndConditionsAssignment collection +type TermsAndConditionsAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TermsAndConditionsAssignment collection +func (r *TermsAndConditionsAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TermsAndConditionsAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TermsAndConditionsAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TermsAndConditionsAssignment collection, max N pages +func (r *TermsAndConditionsAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TermsAndConditionsAssignment collection +func (r *TermsAndConditionsAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TermsAndConditionsAssignment collection +func (r *TermsAndConditionsAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAssignment) (resObj *TermsAndConditionsAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupAssignments returns request builder for TermsAndConditionsGroupAssignment collection +func (b *TermsAndConditionsRequestBuilder) GroupAssignments() *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder { + bb := &TermsAndConditionsGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupAssignments" + return bb +} + +// TermsAndConditionsGroupAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsGroupAssignment collection +type TermsAndConditionsGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TermsAndConditionsGroupAssignment collection +func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsGroupAssignmentsCollectionRequest { + return &TermsAndConditionsGroupAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TermsAndConditionsGroupAssignment item +func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsGroupAssignmentRequestBuilder { + bb := &TermsAndConditionsGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TermsAndConditionsGroupAssignmentsCollectionRequest is request for TermsAndConditionsGroupAssignment collection +type TermsAndConditionsGroupAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TermsAndConditionsGroupAssignment collection +func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsGroupAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TermsAndConditionsGroupAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TermsAndConditionsGroupAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TermsAndConditionsGroupAssignment collection, max N pages +func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsGroupAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TermsAndConditionsGroupAssignment collection +func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsGroupAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TermsAndConditionsGroupAssignment collection +func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) (resObj *TermsAndConditionsGroupAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TermsAndConditions is navigation property +func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder { + bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/termsAndConditions" + return bb +} + +// TermsAndConditions is navigation property +func (b *TermsAndConditionsGroupAssignmentRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder { + bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/termsAndConditions" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go new file mode 100644 index 00000000..a5146dcd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Results returns request builder for ThreatAssessmentResult collection +func (b *ThreatAssessmentRequestObjectRequestBuilder) Results() *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder { + bb := &ThreatAssessmentRequestObjectResultsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/results" + return bb +} + +// ThreatAssessmentRequestObjectResultsCollectionRequestBuilder is request builder for ThreatAssessmentResult collection +type ThreatAssessmentRequestObjectResultsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ThreatAssessmentResult collection +func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) Request() *ThreatAssessmentRequestObjectResultsCollectionRequest { + return &ThreatAssessmentRequestObjectResultsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ThreatAssessmentResult item +func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) ID(id string) *ThreatAssessmentResultRequestBuilder { + bb := &ThreatAssessmentResultRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// ThreatAssessmentRequestObjectResultsCollectionRequest is request for ThreatAssessmentResult collection +type ThreatAssessmentRequestObjectResultsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ThreatAssessmentResult collection +func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThreatAssessmentResult, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ThreatAssessmentResult + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ThreatAssessmentResult + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ThreatAssessmentResult collection, max N pages +func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) GetN(ctx context.Context, n int) ([]ThreatAssessmentResult, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ThreatAssessmentResult collection +func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentResult, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ThreatAssessmentResult collection +func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentResult) (resObj *ThreatAssessmentResult, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go new file mode 100644 index 00000000..230969e5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TiIndicatorCollectionSubmitTiIndicatorsRequestParameter undocumented +type TiIndicatorCollectionSubmitTiIndicatorsRequestParameter struct { + // Value undocumented + Value []TiIndicator `json:"value,omitempty"` +} + +// TiIndicatorCollectionUpdateTiIndicatorsRequestParameter undocumented +type TiIndicatorCollectionUpdateTiIndicatorsRequestParameter struct { + // Value undocumented + Value []TiIndicator `json:"value,omitempty"` +} + +// TiIndicatorCollectionDeleteTiIndicatorsRequestParameter undocumented +type TiIndicatorCollectionDeleteTiIndicatorsRequestParameter struct { + // Value undocumented + Value []string `json:"value,omitempty"` +} + +// TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter undocumented +type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter struct { + // Value undocumented + Value []string `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go new file mode 100644 index 00000000..7729691d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Resource is navigation property +func (b *TrendingRequestBuilder) Resource() *EntityRequestBuilder { + bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go new file mode 100644 index 00000000..16898e36 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go @@ -0,0 +1,254 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TrustFrameworkKeySetGenerateKeyRequestParameter undocumented +type TrustFrameworkKeySetGenerateKeyRequestParameter struct { + // Use undocumented + Use *string `json:"use,omitempty"` + // Kty undocumented + Kty *string `json:"kty,omitempty"` + // Nbf undocumented + Nbf *int `json:"nbf,omitempty"` + // Exp undocumented + Exp *int `json:"exp,omitempty"` +} + +// TrustFrameworkKeySetUploadSecretRequestParameter undocumented +type TrustFrameworkKeySetUploadSecretRequestParameter struct { + // Use undocumented + Use *string `json:"use,omitempty"` + // K undocumented + K *string `json:"k,omitempty"` + // Nbf undocumented + Nbf *int `json:"nbf,omitempty"` + // Exp undocumented + Exp *int `json:"exp,omitempty"` +} + +// TrustFrameworkKeySetUploadCertificateRequestParameter undocumented +type TrustFrameworkKeySetUploadCertificateRequestParameter struct { + // Key undocumented + Key *string `json:"key,omitempty"` +} + +// TrustFrameworkKeySetUploadPkcs12RequestParameter undocumented +type TrustFrameworkKeySetUploadPkcs12RequestParameter struct { + // Key undocumented + Key *string `json:"key,omitempty"` + // Password undocumented + Password *string `json:"password,omitempty"` +} + +// KeySets returns request builder for TrustFrameworkKeySet collection +func (b *TrustFrameworkRequestBuilder) KeySets() *TrustFrameworkKeySetsCollectionRequestBuilder { + bb := &TrustFrameworkKeySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/keySets" + return bb +} + +// TrustFrameworkKeySetsCollectionRequestBuilder is request builder for TrustFrameworkKeySet collection +type TrustFrameworkKeySetsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TrustFrameworkKeySet collection +func (b *TrustFrameworkKeySetsCollectionRequestBuilder) Request() *TrustFrameworkKeySetsCollectionRequest { + return &TrustFrameworkKeySetsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TrustFrameworkKeySet item +func (b *TrustFrameworkKeySetsCollectionRequestBuilder) ID(id string) *TrustFrameworkKeySetRequestBuilder { + bb := &TrustFrameworkKeySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TrustFrameworkKeySetsCollectionRequest is request for TrustFrameworkKeySet collection +type TrustFrameworkKeySetsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TrustFrameworkKeySet collection +func (r *TrustFrameworkKeySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TrustFrameworkKeySet, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TrustFrameworkKeySet + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TrustFrameworkKeySet + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TrustFrameworkKeySet collection, max N pages +func (r *TrustFrameworkKeySetsCollectionRequest) GetN(ctx context.Context, n int) ([]TrustFrameworkKeySet, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TrustFrameworkKeySet collection +func (r *TrustFrameworkKeySetsCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkKeySet, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TrustFrameworkKeySet collection +func (r *TrustFrameworkKeySetsCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkKeySet) (resObj *TrustFrameworkKeySet, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policies returns request builder for TrustFrameworkPolicy collection +func (b *TrustFrameworkRequestBuilder) Policies() *TrustFrameworkPoliciesCollectionRequestBuilder { + bb := &TrustFrameworkPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policies" + return bb +} + +// TrustFrameworkPoliciesCollectionRequestBuilder is request builder for TrustFrameworkPolicy collection +type TrustFrameworkPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TrustFrameworkPolicy collection +func (b *TrustFrameworkPoliciesCollectionRequestBuilder) Request() *TrustFrameworkPoliciesCollectionRequest { + return &TrustFrameworkPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TrustFrameworkPolicy item +func (b *TrustFrameworkPoliciesCollectionRequestBuilder) ID(id string) *TrustFrameworkPolicyRequestBuilder { + bb := &TrustFrameworkPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// TrustFrameworkPoliciesCollectionRequest is request for TrustFrameworkPolicy collection +type TrustFrameworkPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TrustFrameworkPolicy collection +func (r *TrustFrameworkPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TrustFrameworkPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TrustFrameworkPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TrustFrameworkPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TrustFrameworkPolicy collection, max N pages +func (r *TrustFrameworkPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]TrustFrameworkPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TrustFrameworkPolicy collection +func (r *TrustFrameworkPoliciesCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TrustFrameworkPolicy collection +func (r *TrustFrameworkPoliciesCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkPolicy) (resObj *TrustFrameworkPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go new file mode 100644 index 00000000..bfba2454 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Principal is navigation property +func (b *UnifiedRoleAssignmentRequestBuilder) Principal() *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/principal" + return bb +} + +// RoleDefinition is navigation property +func (b *UnifiedRoleAssignmentRequestBuilder) RoleDefinition() *UnifiedRoleDefinitionRequestBuilder { + bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleDefinition" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go new file mode 100644 index 00000000..e79d2cc1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go @@ -0,0 +1,10 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Resource is navigation property +func (b *UsedInsightRequestBuilder) Resource() *EntityRequestBuilder { + bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/resource" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go new file mode 100644 index 00000000..ffddabad --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go @@ -0,0 +1,5028 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// UserAssignLicenseRequestParameter undocumented +type UserAssignLicenseRequestParameter struct { + // AddLicenses undocumented + AddLicenses []AssignedLicense `json:"addLicenses,omitempty"` + // RemoveLicenses undocumented + RemoveLicenses []UUID `json:"removeLicenses,omitempty"` +} + +// UserChangePasswordRequestParameter undocumented +type UserChangePasswordRequestParameter struct { + // CurrentPassword undocumented + CurrentPassword *string `json:"currentPassword,omitempty"` + // NewPassword undocumented + NewPassword *string `json:"newPassword,omitempty"` +} + +// UserInvalidateAllRefreshTokensRequestParameter undocumented +type UserInvalidateAllRefreshTokensRequestParameter struct { +} + +// UserRevokeSignInSessionsRequestParameter undocumented +type UserRevokeSignInSessionsRequestParameter struct { +} + +// UserReprocessLicenseAssignmentRequestParameter undocumented +type UserReprocessLicenseAssignmentRequestParameter struct { +} + +// UserFindMeetingTimesRequestParameter undocumented +type UserFindMeetingTimesRequestParameter struct { + // Attendees undocumented + Attendees []AttendeeBase `json:"attendees,omitempty"` + // LocationConstraint undocumented + LocationConstraint *LocationConstraint `json:"locationConstraint,omitempty"` + // TimeConstraint undocumented + TimeConstraint *TimeConstraint `json:"timeConstraint,omitempty"` + // MeetingDuration undocumented + MeetingDuration *Duration `json:"meetingDuration,omitempty"` + // MaxCandidates undocumented + MaxCandidates *int `json:"maxCandidates,omitempty"` + // IsOrganizerOptional undocumented + IsOrganizerOptional *bool `json:"isOrganizerOptional,omitempty"` + // ReturnSuggestionReasons undocumented + ReturnSuggestionReasons *bool `json:"returnSuggestionReasons,omitempty"` + // MinimumAttendeePercentage undocumented + MinimumAttendeePercentage *float64 `json:"minimumAttendeePercentage,omitempty"` +} + +// UserSendMailRequestParameter undocumented +type UserSendMailRequestParameter struct { + // Message undocumented + Message *Message `json:"Message,omitempty"` + // SaveToSentItems undocumented + SaveToSentItems *bool `json:"SaveToSentItems,omitempty"` +} + +// UserGetMailTipsRequestParameter undocumented +type UserGetMailTipsRequestParameter struct { + // EmailAddresses undocumented + EmailAddresses []string `json:"EmailAddresses,omitempty"` + // MailTipsOptions undocumented + MailTipsOptions *MailTipsType `json:"MailTipsOptions,omitempty"` +} + +// UserTranslateExchangeIDsRequestParameter undocumented +type UserTranslateExchangeIDsRequestParameter struct { + // InputIDs undocumented + InputIDs []string `json:"InputIds,omitempty"` + // TargetIDType undocumented + TargetIDType *ExchangeIDFormat `json:"TargetIdType,omitempty"` + // SourceIDType undocumented + SourceIDType *ExchangeIDFormat `json:"SourceIdType,omitempty"` +} + +// UserRemoveAllDevicesFromManagementRequestParameter undocumented +type UserRemoveAllDevicesFromManagementRequestParameter struct { +} + +// UserWipeManagedAppRegistrationByDeviceTagRequestParameter undocumented +type UserWipeManagedAppRegistrationByDeviceTagRequestParameter struct { + // DeviceTag undocumented + DeviceTag *string `json:"deviceTag,omitempty"` +} + +// UserWipeManagedAppRegistrationsByDeviceTagRequestParameter undocumented +type UserWipeManagedAppRegistrationsByDeviceTagRequestParameter struct { + // DeviceTag undocumented + DeviceTag *string `json:"deviceTag,omitempty"` +} + +// UserExportPersonalDataRequestParameter undocumented +type UserExportPersonalDataRequestParameter struct { + // StorageLocation undocumented + StorageLocation *string `json:"storageLocation,omitempty"` +} + +// Activities returns request builder for UserActivity collection +func (b *UserRequestBuilder) Activities() *UserActivitiesCollectionRequestBuilder { + bb := &UserActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activities" + return bb +} + +// UserActivitiesCollectionRequestBuilder is request builder for UserActivity collection +type UserActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserActivity collection +func (b *UserActivitiesCollectionRequestBuilder) Request() *UserActivitiesCollectionRequest { + return &UserActivitiesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserActivity item +func (b *UserActivitiesCollectionRequestBuilder) ID(id string) *UserActivityRequestBuilder { + bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserActivitiesCollectionRequest is request for UserActivity collection +type UserActivitiesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserActivity collection +func (r *UserActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserActivity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserActivity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserActivity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserActivity collection, max N pages +func (r *UserActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]UserActivity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserActivity collection +func (r *UserActivitiesCollectionRequest) Get(ctx context.Context) ([]UserActivity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserActivity collection +func (r *UserActivitiesCollectionRequest) Add(ctx context.Context, reqObj *UserActivity) (resObj *UserActivity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AgreementAcceptances returns request builder for AgreementAcceptance collection +func (b *UserRequestBuilder) AgreementAcceptances() *UserAgreementAcceptancesCollectionRequestBuilder { + bb := &UserAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agreementAcceptances" + return bb +} + +// UserAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection +type UserAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AgreementAcceptance collection +func (b *UserAgreementAcceptancesCollectionRequestBuilder) Request() *UserAgreementAcceptancesCollectionRequest { + return &UserAgreementAcceptancesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AgreementAcceptance item +func (b *UserAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder { + bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection +type UserAgreementAcceptancesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AgreementAcceptance collection +func (r *UserAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementAcceptance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AgreementAcceptance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AgreementAcceptance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AgreementAcceptance collection, max N pages +func (r *UserAgreementAcceptancesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementAcceptance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AgreementAcceptance collection +func (r *UserAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AgreementAcceptance collection +func (r *UserAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Analytics is navigation property +func (b *UserRequestBuilder) Analytics() *UserAnalyticsRequestBuilder { + bb := &UserAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/analytics" + return bb +} + +// AppRoleAssignments returns request builder for AppRoleAssignment collection +func (b *UserRequestBuilder) AppRoleAssignments() *UserAppRoleAssignmentsCollectionRequestBuilder { + bb := &UserAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appRoleAssignments" + return bb +} + +// UserAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection +type UserAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppRoleAssignment collection +func (b *UserAppRoleAssignmentsCollectionRequestBuilder) Request() *UserAppRoleAssignmentsCollectionRequest { + return &UserAppRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppRoleAssignment item +func (b *UserAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder { + bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection +type UserAppRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppRoleAssignment collection +func (r *UserAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppRoleAssignment collection, max N pages +func (r *UserAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppRoleAssignment collection +func (r *UserAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppRoleAssignment collection +func (r *UserAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Calendar is navigation property +func (b *UserRequestBuilder) Calendar() *CalendarRequestBuilder { + bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendar" + return bb +} + +// CalendarGroups returns request builder for CalendarGroup collection +func (b *UserRequestBuilder) CalendarGroups() *UserCalendarGroupsCollectionRequestBuilder { + bb := &UserCalendarGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarGroups" + return bb +} + +// UserCalendarGroupsCollectionRequestBuilder is request builder for CalendarGroup collection +type UserCalendarGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CalendarGroup collection +func (b *UserCalendarGroupsCollectionRequestBuilder) Request() *UserCalendarGroupsCollectionRequest { + return &UserCalendarGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CalendarGroup item +func (b *UserCalendarGroupsCollectionRequestBuilder) ID(id string) *CalendarGroupRequestBuilder { + bb := &CalendarGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserCalendarGroupsCollectionRequest is request for CalendarGroup collection +type UserCalendarGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CalendarGroup collection +func (r *UserCalendarGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CalendarGroup, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CalendarGroup + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CalendarGroup + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CalendarGroup collection, max N pages +func (r *UserCalendarGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]CalendarGroup, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CalendarGroup collection +func (r *UserCalendarGroupsCollectionRequest) Get(ctx context.Context) ([]CalendarGroup, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CalendarGroup collection +func (r *UserCalendarGroupsCollectionRequest) Add(ctx context.Context, reqObj *CalendarGroup) (resObj *CalendarGroup, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CalendarView returns request builder for Event collection +func (b *UserRequestBuilder) CalendarView() *UserCalendarViewCollectionRequestBuilder { + bb := &UserCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendarView" + return bb +} + +// UserCalendarViewCollectionRequestBuilder is request builder for Event collection +type UserCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *UserCalendarViewCollectionRequestBuilder) Request() *UserCalendarViewCollectionRequest { + return &UserCalendarViewCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *UserCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserCalendarViewCollectionRequest is request for Event collection +type UserCalendarViewCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *UserCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *UserCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *UserCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *UserCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Calendars returns request builder for Calendar collection +func (b *UserRequestBuilder) Calendars() *UserCalendarsCollectionRequestBuilder { + bb := &UserCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/calendars" + return bb +} + +// UserCalendarsCollectionRequestBuilder is request builder for Calendar collection +type UserCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Calendar collection +func (b *UserCalendarsCollectionRequestBuilder) Request() *UserCalendarsCollectionRequest { + return &UserCalendarsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Calendar item +func (b *UserCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder { + bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserCalendarsCollectionRequest is request for Calendar collection +type UserCalendarsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Calendar collection +func (r *UserCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Calendar, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Calendar + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Calendar + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Calendar collection, max N pages +func (r *UserCalendarsCollectionRequest) GetN(ctx context.Context, n int) ([]Calendar, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Calendar collection +func (r *UserCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Calendar collection +func (r *UserCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Chats returns request builder for Chat collection +func (b *UserRequestBuilder) Chats() *UserChatsCollectionRequestBuilder { + bb := &UserChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/chats" + return bb +} + +// UserChatsCollectionRequestBuilder is request builder for Chat collection +type UserChatsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Chat collection +func (b *UserChatsCollectionRequestBuilder) Request() *UserChatsCollectionRequest { + return &UserChatsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Chat item +func (b *UserChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder { + bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserChatsCollectionRequest is request for Chat collection +type UserChatsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Chat collection +func (r *UserChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Chat, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Chat + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Chat + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Chat collection, max N pages +func (r *UserChatsCollectionRequest) GetN(ctx context.Context, n int) ([]Chat, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Chat collection +func (r *UserChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Chat collection +func (r *UserChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ContactFolders returns request builder for ContactFolder collection +func (b *UserRequestBuilder) ContactFolders() *UserContactFoldersCollectionRequestBuilder { + bb := &UserContactFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contactFolders" + return bb +} + +// UserContactFoldersCollectionRequestBuilder is request builder for ContactFolder collection +type UserContactFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ContactFolder collection +func (b *UserContactFoldersCollectionRequestBuilder) Request() *UserContactFoldersCollectionRequest { + return &UserContactFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ContactFolder item +func (b *UserContactFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder { + bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserContactFoldersCollectionRequest is request for ContactFolder collection +type UserContactFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ContactFolder collection +func (r *UserContactFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContactFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ContactFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ContactFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ContactFolder collection, max N pages +func (r *UserContactFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]ContactFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ContactFolder collection +func (r *UserContactFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ContactFolder collection +func (r *UserContactFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Contacts returns request builder for Contact collection +func (b *UserRequestBuilder) Contacts() *UserContactsCollectionRequestBuilder { + bb := &UserContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contacts" + return bb +} + +// UserContactsCollectionRequestBuilder is request builder for Contact collection +type UserContactsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Contact collection +func (b *UserContactsCollectionRequestBuilder) Request() *UserContactsCollectionRequest { + return &UserContactsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Contact item +func (b *UserContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder { + bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserContactsCollectionRequest is request for Contact collection +type UserContactsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Contact collection +func (r *UserContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contact, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Contact + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Contact + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Contact collection, max N pages +func (r *UserContactsCollectionRequest) GetN(ctx context.Context, n int) ([]Contact, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Contact collection +func (r *UserContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Contact collection +func (r *UserContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CreatedObjects returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) CreatedObjects() *UserCreatedObjectsCollectionRequestBuilder { + bb := &UserCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/createdObjects" + return bb +} + +// UserCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection +type UserCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserCreatedObjectsCollectionRequestBuilder) Request() *UserCreatedObjectsCollectionRequest { + return &UserCreatedObjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserCreatedObjectsCollectionRequest is request for DirectoryObject collection +type UserCreatedObjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserCreatedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection +func (b *UserRequestBuilder) DeviceEnrollmentConfigurations() *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder { + bb := &UserDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceEnrollmentConfigurations" + return bb +} + +// UserDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection +type UserDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceEnrollmentConfiguration collection +func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *UserDeviceEnrollmentConfigurationsCollectionRequest { + return &UserDeviceEnrollmentConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceEnrollmentConfiguration item +func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder { + bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection +type UserDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection +func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceEnrollmentConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceEnrollmentConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceEnrollmentConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceEnrollmentConfiguration collection, max N pages +func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceEnrollmentConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceEnrollmentConfiguration collection +func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceEnrollmentConfiguration collection +func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceManagementTroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection +func (b *UserRequestBuilder) DeviceManagementTroubleshootingEvents() *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder { + bb := &UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceManagementTroubleshootingEvents" + return bb +} + +// UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection +type UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceManagementTroubleshootingEvent collection +func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *UserDeviceManagementTroubleshootingEventsCollectionRequest { + return &UserDeviceManagementTroubleshootingEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceManagementTroubleshootingEvent item +func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder { + bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserDeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection +type UserDeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection +func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTroubleshootingEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceManagementTroubleshootingEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceManagementTroubleshootingEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceManagementTroubleshootingEvent collection, max N pages +func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTroubleshootingEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceManagementTroubleshootingEvent collection +func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceManagementTroubleshootingEvent collection +func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Devices returns request builder for Device collection +func (b *UserRequestBuilder) Devices() *UserDevicesCollectionRequestBuilder { + bb := &UserDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/devices" + return bb +} + +// UserDevicesCollectionRequestBuilder is request builder for Device collection +type UserDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Device collection +func (b *UserDevicesCollectionRequestBuilder) Request() *UserDevicesCollectionRequest { + return &UserDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Device item +func (b *UserDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder { + bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserDevicesCollectionRequest is request for Device collection +type UserDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Device collection +func (r *UserDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Device, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Device + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Device + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Device collection, max N pages +func (r *UserDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]Device, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Device collection +func (r *UserDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Device collection +func (r *UserDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectReports returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) DirectReports() *UserDirectReportsCollectionRequestBuilder { + bb := &UserDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directReports" + return bb +} + +// UserDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection +type UserDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserDirectReportsCollectionRequestBuilder) Request() *UserDirectReportsCollectionRequest { + return &UserDirectReportsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserDirectReportsCollectionRequest is request for DirectoryObject collection +type UserDirectReportsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserDirectReportsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Drive is navigation property +func (b *UserRequestBuilder) Drive() *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drive" + return bb +} + +// Drives returns request builder for Drive collection +func (b *UserRequestBuilder) Drives() *UserDrivesCollectionRequestBuilder { + bb := &UserDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drives" + return bb +} + +// UserDrivesCollectionRequestBuilder is request builder for Drive collection +type UserDrivesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Drive collection +func (b *UserDrivesCollectionRequestBuilder) Request() *UserDrivesCollectionRequest { + return &UserDrivesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Drive item +func (b *UserDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserDrivesCollectionRequest is request for Drive collection +type UserDrivesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Drive collection +func (r *UserDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Drive + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Drive + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Drive collection, max N pages +func (r *UserDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Drive collection +func (r *UserDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Drive collection +func (r *UserDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Events returns request builder for Event collection +func (b *UserRequestBuilder) Events() *UserEventsCollectionRequestBuilder { + bb := &UserEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/events" + return bb +} + +// UserEventsCollectionRequestBuilder is request builder for Event collection +type UserEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Event collection +func (b *UserEventsCollectionRequestBuilder) Request() *UserEventsCollectionRequest { + return &UserEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Event item +func (b *UserEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder { + bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserEventsCollectionRequest is request for Event collection +type UserEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Event collection +func (r *UserEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Event + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Event + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Event collection, max N pages +func (r *UserEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Event collection +func (r *UserEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Event collection +func (r *UserEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Extensions returns request builder for Extension collection +func (b *UserRequestBuilder) Extensions() *UserExtensionsCollectionRequestBuilder { + bb := &UserExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/extensions" + return bb +} + +// UserExtensionsCollectionRequestBuilder is request builder for Extension collection +type UserExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Extension collection +func (b *UserExtensionsCollectionRequestBuilder) Request() *UserExtensionsCollectionRequest { + return &UserExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Extension item +func (b *UserExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder { + bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserExtensionsCollectionRequest is request for Extension collection +type UserExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Extension collection +func (r *UserExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Extension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Extension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Extension collection, max N pages +func (r *UserExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Extension collection +func (r *UserExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Extension collection +func (r *UserExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// FollowedSites returns request builder for Site collection +func (b *UserRequestBuilder) FollowedSites() *UserFollowedSitesCollectionRequestBuilder { + bb := &UserFollowedSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/followedSites" + return bb +} + +// UserFollowedSitesCollectionRequestBuilder is request builder for Site collection +type UserFollowedSitesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Site collection +func (b *UserFollowedSitesCollectionRequestBuilder) Request() *UserFollowedSitesCollectionRequest { + return &UserFollowedSitesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Site item +func (b *UserFollowedSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder { + bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserFollowedSitesCollectionRequest is request for Site collection +type UserFollowedSitesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Site collection +func (r *UserFollowedSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Site collection, max N pages +func (r *UserFollowedSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Site collection +func (r *UserFollowedSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Site collection +func (r *UserFollowedSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// InferenceClassification is navigation property +func (b *UserRequestBuilder) InferenceClassification() *InferenceClassificationRequestBuilder { + bb := &InferenceClassificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/inferenceClassification" + return bb +} + +// InformationProtection is navigation property +func (b *UserRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder { + bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/informationProtection" + return bb +} + +// Insights is navigation property +func (b *UserRequestBuilder) Insights() *OfficeGraphInsightsRequestBuilder { + bb := &OfficeGraphInsightsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/insights" + return bb +} + +// JoinedGroups returns request builder for Group collection +func (b *UserRequestBuilder) JoinedGroups() *UserJoinedGroupsCollectionRequestBuilder { + bb := &UserJoinedGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/joinedGroups" + return bb +} + +// UserJoinedGroupsCollectionRequestBuilder is request builder for Group collection +type UserJoinedGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Group collection +func (b *UserJoinedGroupsCollectionRequestBuilder) Request() *UserJoinedGroupsCollectionRequest { + return &UserJoinedGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Group item +func (b *UserJoinedGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder { + bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserJoinedGroupsCollectionRequest is request for Group collection +type UserJoinedGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Group collection +func (r *UserJoinedGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Group, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Group + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Group + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Group collection, max N pages +func (r *UserJoinedGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]Group, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Group collection +func (r *UserJoinedGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Group collection +func (r *UserJoinedGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// JoinedTeams returns request builder for Team collection +func (b *UserRequestBuilder) JoinedTeams() *UserJoinedTeamsCollectionRequestBuilder { + bb := &UserJoinedTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/joinedTeams" + return bb +} + +// UserJoinedTeamsCollectionRequestBuilder is request builder for Team collection +type UserJoinedTeamsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Team collection +func (b *UserJoinedTeamsCollectionRequestBuilder) Request() *UserJoinedTeamsCollectionRequest { + return &UserJoinedTeamsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Team item +func (b *UserJoinedTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder { + bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserJoinedTeamsCollectionRequest is request for Team collection +type UserJoinedTeamsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Team collection +func (r *UserJoinedTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Team, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Team + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Team + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Team collection, max N pages +func (r *UserJoinedTeamsCollectionRequest) GetN(ctx context.Context, n int) ([]Team, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Team collection +func (r *UserJoinedTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Team collection +func (r *UserJoinedTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LicenseDetails returns request builder for LicenseDetails collection +func (b *UserRequestBuilder) LicenseDetails() *UserLicenseDetailsCollectionRequestBuilder { + bb := &UserLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/licenseDetails" + return bb +} + +// UserLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection +type UserLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LicenseDetails collection +func (b *UserLicenseDetailsCollectionRequestBuilder) Request() *UserLicenseDetailsCollectionRequest { + return &UserLicenseDetailsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LicenseDetails item +func (b *UserLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder { + bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserLicenseDetailsCollectionRequest is request for LicenseDetails collection +type UserLicenseDetailsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LicenseDetails collection +func (r *UserLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LicenseDetails, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LicenseDetails + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LicenseDetails + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LicenseDetails collection, max N pages +func (r *UserLicenseDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]LicenseDetails, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LicenseDetails collection +func (r *UserLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LicenseDetails collection +func (r *UserLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MailFolders returns request builder for MailFolder collection +func (b *UserRequestBuilder) MailFolders() *UserMailFoldersCollectionRequestBuilder { + bb := &UserMailFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mailFolders" + return bb +} + +// UserMailFoldersCollectionRequestBuilder is request builder for MailFolder collection +type UserMailFoldersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MailFolder collection +func (b *UserMailFoldersCollectionRequestBuilder) Request() *UserMailFoldersCollectionRequest { + return &UserMailFoldersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MailFolder item +func (b *UserMailFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder { + bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserMailFoldersCollectionRequest is request for MailFolder collection +type UserMailFoldersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MailFolder collection +func (r *UserMailFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailFolder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MailFolder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MailFolder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MailFolder collection, max N pages +func (r *UserMailFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]MailFolder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MailFolder collection +func (r *UserMailFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MailFolder collection +func (r *UserMailFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection +func (b *UserRequestBuilder) ManagedAppRegistrations() *UserManagedAppRegistrationsCollectionRequestBuilder { + bb := &UserManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedAppRegistrations" + return bb +} + +// UserManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection +type UserManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedAppRegistration collection +func (b *UserManagedAppRegistrationsCollectionRequestBuilder) Request() *UserManagedAppRegistrationsCollectionRequest { + return &UserManagedAppRegistrationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedAppRegistration item +func (b *UserManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder { + bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection +type UserManagedAppRegistrationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedAppRegistration collection +func (r *UserManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppRegistration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedAppRegistration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedAppRegistration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedAppRegistration collection, max N pages +func (r *UserManagedAppRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppRegistration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedAppRegistration collection +func (r *UserManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedAppRegistration collection +func (r *UserManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDevices returns request builder for ManagedDevice collection +func (b *UserRequestBuilder) ManagedDevices() *UserManagedDevicesCollectionRequestBuilder { + bb := &UserManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDevices" + return bb +} + +// UserManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection +type UserManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDevice collection +func (b *UserManagedDevicesCollectionRequestBuilder) Request() *UserManagedDevicesCollectionRequest { + return &UserManagedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDevice item +func (b *UserManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder { + bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserManagedDevicesCollectionRequest is request for ManagedDevice collection +type UserManagedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDevice collection +func (r *UserManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDevice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDevice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDevice collection, max N pages +func (r *UserManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDevice collection +func (r *UserManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDevice collection +func (r *UserManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Manager is navigation property +func (b *UserRequestBuilder) Manager() *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/manager" + return bb +} + +// MemberOf returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) MemberOf() *UserMemberOfCollectionRequestBuilder { + bb := &UserMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/memberOf" + return bb +} + +// UserMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type UserMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserMemberOfCollectionRequestBuilder) Request() *UserMemberOfCollectionRequest { + return &UserMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserMemberOfCollectionRequest is request for DirectoryObject collection +type UserMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Messages returns request builder for Message collection +func (b *UserRequestBuilder) Messages() *UserMessagesCollectionRequestBuilder { + bb := &UserMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/messages" + return bb +} + +// UserMessagesCollectionRequestBuilder is request builder for Message collection +type UserMessagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Message collection +func (b *UserMessagesCollectionRequestBuilder) Request() *UserMessagesCollectionRequest { + return &UserMessagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Message item +func (b *UserMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder { + bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserMessagesCollectionRequest is request for Message collection +type UserMessagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Message collection +func (r *UserMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Message, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Message + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Message + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Message collection, max N pages +func (r *UserMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]Message, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Message collection +func (r *UserMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Message collection +func (r *UserMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileAppIntentAndStates returns request builder for MobileAppIntentAndState collection +func (b *UserRequestBuilder) MobileAppIntentAndStates() *UserMobileAppIntentAndStatesCollectionRequestBuilder { + bb := &UserMobileAppIntentAndStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileAppIntentAndStates" + return bb +} + +// UserMobileAppIntentAndStatesCollectionRequestBuilder is request builder for MobileAppIntentAndState collection +type UserMobileAppIntentAndStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppIntentAndState collection +func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) Request() *UserMobileAppIntentAndStatesCollectionRequest { + return &UserMobileAppIntentAndStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppIntentAndState item +func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) ID(id string) *MobileAppIntentAndStateRequestBuilder { + bb := &MobileAppIntentAndStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserMobileAppIntentAndStatesCollectionRequest is request for MobileAppIntentAndState collection +type UserMobileAppIntentAndStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppIntentAndState collection +func (r *UserMobileAppIntentAndStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppIntentAndState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppIntentAndState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppIntentAndState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppIntentAndState collection, max N pages +func (r *UserMobileAppIntentAndStatesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppIntentAndState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppIntentAndState collection +func (r *UserMobileAppIntentAndStatesCollectionRequest) Get(ctx context.Context) ([]MobileAppIntentAndState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppIntentAndState collection +func (r *UserMobileAppIntentAndStatesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppIntentAndState) (resObj *MobileAppIntentAndState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection +func (b *UserRequestBuilder) MobileAppTroubleshootingEvents() *UserMobileAppTroubleshootingEventsCollectionRequestBuilder { + bb := &UserMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/mobileAppTroubleshootingEvents" + return bb +} + +// UserMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection +type UserMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppTroubleshootingEvent collection +func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *UserMobileAppTroubleshootingEventsCollectionRequest { + return &UserMobileAppTroubleshootingEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppTroubleshootingEvent item +func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder { + bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection +type UserMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection +func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppTroubleshootingEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppTroubleshootingEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppTroubleshootingEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppTroubleshootingEvent collection, max N pages +func (r *UserMobileAppTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppTroubleshootingEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppTroubleshootingEvent collection +func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppTroubleshootingEvent collection +func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Notifications returns request builder for Notification collection +func (b *UserRequestBuilder) Notifications() *UserNotificationsCollectionRequestBuilder { + bb := &UserNotificationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/notifications" + return bb +} + +// UserNotificationsCollectionRequestBuilder is request builder for Notification collection +type UserNotificationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Notification collection +func (b *UserNotificationsCollectionRequestBuilder) Request() *UserNotificationsCollectionRequest { + return &UserNotificationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Notification item +func (b *UserNotificationsCollectionRequestBuilder) ID(id string) *NotificationRequestBuilder { + bb := &NotificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserNotificationsCollectionRequest is request for Notification collection +type UserNotificationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Notification collection +func (r *UserNotificationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Notification, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Notification + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Notification + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Notification collection, max N pages +func (r *UserNotificationsCollectionRequest) GetN(ctx context.Context, n int) ([]Notification, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Notification collection +func (r *UserNotificationsCollectionRequest) Get(ctx context.Context) ([]Notification, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Notification collection +func (r *UserNotificationsCollectionRequest) Add(ctx context.Context, reqObj *Notification) (resObj *Notification, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Onenote is navigation property +func (b *UserRequestBuilder) Onenote() *OnenoteRequestBuilder { + bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onenote" + return bb +} + +// OnlineMeetings returns request builder for OnlineMeeting collection +func (b *UserRequestBuilder) OnlineMeetings() *UserOnlineMeetingsCollectionRequestBuilder { + bb := &UserOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onlineMeetings" + return bb +} + +// UserOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection +type UserOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnlineMeeting collection +func (b *UserOnlineMeetingsCollectionRequestBuilder) Request() *UserOnlineMeetingsCollectionRequest { + return &UserOnlineMeetingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnlineMeeting item +func (b *UserOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder { + bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserOnlineMeetingsCollectionRequest is request for OnlineMeeting collection +type UserOnlineMeetingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnlineMeeting collection +func (r *UserOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnlineMeeting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnlineMeeting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnlineMeeting collection, max N pages +func (r *UserOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnlineMeeting collection +func (r *UserOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnlineMeeting collection +func (r *UserOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Outlook is navigation property +func (b *UserRequestBuilder) Outlook() *OutlookUserRequestBuilder { + bb := &OutlookUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/outlook" + return bb +} + +// OwnedDevices returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) OwnedDevices() *UserOwnedDevicesCollectionRequestBuilder { + bb := &UserOwnedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/ownedDevices" + return bb +} + +// UserOwnedDevicesCollectionRequestBuilder is request builder for DirectoryObject collection +type UserOwnedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserOwnedDevicesCollectionRequestBuilder) Request() *UserOwnedDevicesCollectionRequest { + return &UserOwnedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserOwnedDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserOwnedDevicesCollectionRequest is request for DirectoryObject collection +type UserOwnedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserOwnedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserOwnedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserOwnedDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserOwnedDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OwnedObjects returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) OwnedObjects() *UserOwnedObjectsCollectionRequestBuilder { + bb := &UserOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/ownedObjects" + return bb +} + +// UserOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection +type UserOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserOwnedObjectsCollectionRequestBuilder) Request() *UserOwnedObjectsCollectionRequest { + return &UserOwnedObjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserOwnedObjectsCollectionRequest is request for DirectoryObject collection +type UserOwnedObjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserOwnedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// People returns request builder for Person collection +func (b *UserRequestBuilder) People() *UserPeopleCollectionRequestBuilder { + bb := &UserPeopleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/people" + return bb +} + +// UserPeopleCollectionRequestBuilder is request builder for Person collection +type UserPeopleCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Person collection +func (b *UserPeopleCollectionRequestBuilder) Request() *UserPeopleCollectionRequest { + return &UserPeopleCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Person item +func (b *UserPeopleCollectionRequestBuilder) ID(id string) *PersonRequestBuilder { + bb := &PersonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserPeopleCollectionRequest is request for Person collection +type UserPeopleCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Person collection +func (r *UserPeopleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Person, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Person + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Person + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Person collection, max N pages +func (r *UserPeopleCollectionRequest) GetN(ctx context.Context, n int) ([]Person, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Person collection +func (r *UserPeopleCollectionRequest) Get(ctx context.Context) ([]Person, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Person collection +func (r *UserPeopleCollectionRequest) Add(ctx context.Context, reqObj *Person) (resObj *Person, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Photo is navigation property +func (b *UserRequestBuilder) Photo() *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photo" + return bb +} + +// Photos returns request builder for ProfilePhoto collection +func (b *UserRequestBuilder) Photos() *UserPhotosCollectionRequestBuilder { + bb := &UserPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/photos" + return bb +} + +// UserPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection +type UserPhotosCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProfilePhoto collection +func (b *UserPhotosCollectionRequestBuilder) Request() *UserPhotosCollectionRequest { + return &UserPhotosCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProfilePhoto item +func (b *UserPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder { + bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserPhotosCollectionRequest is request for ProfilePhoto collection +type UserPhotosCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProfilePhoto collection +func (r *UserPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProfilePhoto, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProfilePhoto + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProfilePhoto + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProfilePhoto collection, max N pages +func (r *UserPhotosCollectionRequest) GetN(ctx context.Context, n int) ([]ProfilePhoto, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProfilePhoto collection +func (r *UserPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProfilePhoto collection +func (r *UserPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Planner is navigation property +func (b *UserRequestBuilder) Planner() *PlannerUserRequestBuilder { + bb := &PlannerUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/planner" + return bb +} + +// Presence is navigation property +func (b *UserRequestBuilder) Presence() *PresenceRequestBuilder { + bb := &PresenceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/presence" + return bb +} + +// Profile is navigation property +func (b *UserRequestBuilder) Profile() *ProfileRequestBuilder { + bb := &ProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/profile" + return bb +} + +// RegisteredDevices returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) RegisteredDevices() *UserRegisteredDevicesCollectionRequestBuilder { + bb := &UserRegisteredDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/registeredDevices" + return bb +} + +// UserRegisteredDevicesCollectionRequestBuilder is request builder for DirectoryObject collection +type UserRegisteredDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserRegisteredDevicesCollectionRequestBuilder) Request() *UserRegisteredDevicesCollectionRequest { + return &UserRegisteredDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserRegisteredDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserRegisteredDevicesCollectionRequest is request for DirectoryObject collection +type UserRegisteredDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserRegisteredDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserRegisteredDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserRegisteredDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserRegisteredDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScopedRoleMemberOf returns request builder for ScopedRoleMembership collection +func (b *UserRequestBuilder) ScopedRoleMemberOf() *UserScopedRoleMemberOfCollectionRequestBuilder { + bb := &UserScopedRoleMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scopedRoleMemberOf" + return bb +} + +// UserScopedRoleMemberOfCollectionRequestBuilder is request builder for ScopedRoleMembership collection +type UserScopedRoleMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ScopedRoleMembership collection +func (b *UserScopedRoleMemberOfCollectionRequestBuilder) Request() *UserScopedRoleMemberOfCollectionRequest { + return &UserScopedRoleMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ScopedRoleMembership item +func (b *UserScopedRoleMemberOfCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder { + bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserScopedRoleMemberOfCollectionRequest is request for ScopedRoleMembership collection +type UserScopedRoleMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ScopedRoleMembership collection +func (r *UserScopedRoleMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ScopedRoleMembership + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ScopedRoleMembership + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ScopedRoleMembership collection, max N pages +func (r *UserScopedRoleMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ScopedRoleMembership collection +func (r *UserScopedRoleMemberOfCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ScopedRoleMembership collection +func (r *UserScopedRoleMemberOfCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings is navigation property +func (b *UserRequestBuilder) Settings() *UserSettingsRequestBuilder { + bb := &UserSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// Teamwork is navigation property +func (b *UserRequestBuilder) Teamwork() *UserTeamworkRequestBuilder { + bb := &UserTeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamwork" + return bb +} + +// TransitiveMemberOf returns request builder for DirectoryObject collection +func (b *UserRequestBuilder) TransitiveMemberOf() *UserTransitiveMemberOfCollectionRequestBuilder { + bb := &UserTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/transitiveMemberOf" + return bb +} + +// UserTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection +type UserTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *UserTransitiveMemberOfCollectionRequestBuilder) Request() *UserTransitiveMemberOfCollectionRequest { + return &UserTransitiveMemberOfCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *UserTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserTransitiveMemberOfCollectionRequest is request for DirectoryObject collection +type UserTransitiveMemberOfCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *UserTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *UserTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *UserTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *UserTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection +func (b *UserRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder { + bb := &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsInformationProtectionDeviceRegistrations" + return bb +} + +// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection +type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionDeviceRegistration collection +func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest { + return &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionDeviceRegistration item +func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder { + bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection +type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection +func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionDeviceRegistration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionDeviceRegistration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionDeviceRegistration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionDeviceRegistration collection, max N pages +func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionDeviceRegistration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection +func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection +func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// HistoryItems returns request builder for ActivityHistoryItem collection +func (b *UserActivityRequestBuilder) HistoryItems() *UserActivityHistoryItemsCollectionRequestBuilder { + bb := &UserActivityHistoryItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/historyItems" + return bb +} + +// UserActivityHistoryItemsCollectionRequestBuilder is request builder for ActivityHistoryItem collection +type UserActivityHistoryItemsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ActivityHistoryItem collection +func (b *UserActivityHistoryItemsCollectionRequestBuilder) Request() *UserActivityHistoryItemsCollectionRequest { + return &UserActivityHistoryItemsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ActivityHistoryItem item +func (b *UserActivityHistoryItemsCollectionRequestBuilder) ID(id string) *ActivityHistoryItemRequestBuilder { + bb := &ActivityHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserActivityHistoryItemsCollectionRequest is request for ActivityHistoryItem collection +type UserActivityHistoryItemsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ActivityHistoryItem collection +func (r *UserActivityHistoryItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityHistoryItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ActivityHistoryItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ActivityHistoryItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ActivityHistoryItem collection, max N pages +func (r *UserActivityHistoryItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityHistoryItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ActivityHistoryItem collection +func (r *UserActivityHistoryItemsCollectionRequest) Get(ctx context.Context) ([]ActivityHistoryItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ActivityHistoryItem collection +func (r *UserActivityHistoryItemsCollectionRequest) Add(ctx context.Context, reqObj *ActivityHistoryItem) (resObj *ActivityHistoryItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ActivityStatistics returns request builder for ActivityStatistics collection +func (b *UserAnalyticsRequestBuilder) ActivityStatistics() *UserAnalyticsActivityStatisticsCollectionRequestBuilder { + bb := &UserAnalyticsActivityStatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activityStatistics" + return bb +} + +// UserAnalyticsActivityStatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection +type UserAnalyticsActivityStatisticsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ActivityStatistics collection +func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) Request() *UserAnalyticsActivityStatisticsCollectionRequest { + return &UserAnalyticsActivityStatisticsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ActivityStatistics item +func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder { + bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserAnalyticsActivityStatisticsCollectionRequest is request for ActivityStatistics collection +type UserAnalyticsActivityStatisticsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ActivityStatistics collection +func (r *UserAnalyticsActivityStatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityStatistics, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ActivityStatistics + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ActivityStatistics + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ActivityStatistics collection, max N pages +func (r *UserAnalyticsActivityStatisticsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityStatistics, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ActivityStatistics collection +func (r *UserAnalyticsActivityStatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ActivityStatistics collection +func (r *UserAnalyticsActivityStatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// App is navigation property +func (b *UserAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder { + bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/app" + return bb +} + +// DeviceStatuses returns request builder for MobileAppInstallStatus collection +func (b *UserAppInstallStatusRequestBuilder) DeviceStatuses() *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder { + bb := &UserAppInstallStatusDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// UserAppInstallStatusDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection +type UserAppInstallStatusDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileAppInstallStatus collection +func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) Request() *UserAppInstallStatusDeviceStatusesCollectionRequest { + return &UserAppInstallStatusDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileAppInstallStatus item +func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder { + bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserAppInstallStatusDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection +type UserAppInstallStatusDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileAppInstallStatus collection +func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppInstallStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileAppInstallStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileAppInstallStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileAppInstallStatus collection, max N pages +func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppInstallStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileAppInstallStatus collection +func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileAppInstallStatus collection +func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// BestPracticesMetrics is navigation property +func (b *UserExperienceAnalyticsBaselineRequestBuilder) BestPracticesMetrics() *UserExperienceAnalyticsCategoryRequestBuilder { + bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/bestPracticesMetrics" + return bb +} + +// DeviceBootPerformanceMetrics is navigation property +func (b *UserExperienceAnalyticsBaselineRequestBuilder) DeviceBootPerformanceMetrics() *UserExperienceAnalyticsCategoryRequestBuilder { + bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceBootPerformanceMetrics" + return bb +} + +// MetricValues returns request builder for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsCategoryRequestBuilder) MetricValues() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder { + bb := &UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/metricValues" + return bb +} + +// UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) Request() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest { + return &UserExperienceAnalyticsCategoryMetricValuesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsMetric item +func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder { + bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserExperienceAnalyticsCategoryMetricValuesCollectionRequest is request for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsCategoryMetricValuesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsMetric + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsMetric + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages +func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManufacturerRegression returns request builder for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ManufacturerRegression() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder { + bb := &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/manufacturerRegression" + return bb +} + +// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest { + return &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsMetric item +func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder { + bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsMetric + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsMetric + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages +func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ModelRegression returns request builder for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ModelRegression() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder { + bb := &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/modelRegression" + return bb +} + +// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest { + return &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsMetric item +func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder { + bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsMetric + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsMetric + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages +func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OperatingSystemRegression returns request builder for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) OperatingSystemRegression() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder { + bb := &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/operatingSystemRegression" + return bb +} + +// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UserExperienceAnalyticsMetric collection +func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest { + return &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UserExperienceAnalyticsMetric item +func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder { + bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection +type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UserExperienceAnalyticsMetric + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UserExperienceAnalyticsMetric + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages +func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UserExperienceAnalyticsMetric collection +func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceStates returns request builder for DeviceInstallState collection +func (b *UserInstallStateSummaryRequestBuilder) DeviceStates() *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder { + bb := &UserInstallStateSummaryDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStates" + return bb +} + +// UserInstallStateSummaryDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection +type UserInstallStateSummaryDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceInstallState collection +func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) Request() *UserInstallStateSummaryDeviceStatesCollectionRequest { + return &UserInstallStateSummaryDeviceStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceInstallState item +func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder { + bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserInstallStateSummaryDeviceStatesCollectionRequest is request for DeviceInstallState collection +type UserInstallStateSummaryDeviceStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceInstallState collection +func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceInstallState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceInstallState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceInstallState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceInstallState collection, max N pages +func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceInstallState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceInstallState collection +func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceInstallState collection +func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// InstalledApps returns request builder for TeamsAppInstallation collection +func (b *UserTeamworkRequestBuilder) InstalledApps() *UserTeamworkInstalledAppsCollectionRequestBuilder { + bb := &UserTeamworkInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/installedApps" + return bb +} + +// UserTeamworkInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection +type UserTeamworkInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsAppInstallation collection +func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) Request() *UserTeamworkInstalledAppsCollectionRequest { + return &UserTeamworkInstalledAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsAppInstallation item +func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder { + bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// UserTeamworkInstalledAppsCollectionRequest is request for TeamsAppInstallation collection +type UserTeamworkInstalledAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsAppInstallation collection +func (r *UserTeamworkInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsAppInstallation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsAppInstallation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsAppInstallation collection, max N pages +func (r *UserTeamworkInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsAppInstallation collection +func (r *UserTeamworkInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsAppInstallation collection +func (r *UserTeamworkInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go new file mode 100644 index 00000000..e86b2e78 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go @@ -0,0 +1,13 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// VPPTokenSyncLicensesRequestParameter undocumented +type VPPTokenSyncLicensesRequestParameter struct { +} + +// VPPTokenRevokeLicensesRequestParameter undocumented +type VPPTokenRevokeLicensesRequestParameter struct { + // NotifyManagedDevices undocumented + NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go new file mode 100644 index 00000000..2f4ca017 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go @@ -0,0 +1,135 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// Currency is navigation property +func (b *VendorRequestBuilder) Currency() *CurrencyRequestBuilder { + bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/currency" + return bb +} + +// PaymentMethod is navigation property +func (b *VendorRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder { + bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentMethod" + return bb +} + +// PaymentTerm is navigation property +func (b *VendorRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder { + bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/paymentTerm" + return bb +} + +// Picture returns request builder for Picture collection +func (b *VendorRequestBuilder) Picture() *VendorPictureCollectionRequestBuilder { + bb := &VendorPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/picture" + return bb +} + +// VendorPictureCollectionRequestBuilder is request builder for Picture collection +type VendorPictureCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Picture collection +func (b *VendorPictureCollectionRequestBuilder) Request() *VendorPictureCollectionRequest { + return &VendorPictureCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Picture item +func (b *VendorPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder { + bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// VendorPictureCollectionRequest is request for Picture collection +type VendorPictureCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Picture collection +func (r *VendorPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Picture + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Picture + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Picture collection, max N pages +func (r *VendorPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Picture collection +func (r *VendorPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Picture collection +func (r *VendorPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go new file mode 100644 index 00000000..a35e080b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go @@ -0,0 +1,1981 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter undocumented +type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter struct { + // PayloadIDs undocumented + PayloadIDs []string `json:"payloadIds,omitempty"` +} + +// WindowsAutopilotDeploymentProfileAssignRequestParameter undocumented +type WindowsAutopilotDeploymentProfileAssignRequestParameter struct { + // DeviceIDs undocumented + DeviceIDs []string `json:"deviceIds,omitempty"` +} + +// WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter undocumented +type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter struct { + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // AddressableUserName undocumented + AddressableUserName *string `json:"addressableUserName,omitempty"` +} + +// WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter undocumented +type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter struct { +} + +// WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter undocumented +type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter struct { + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // AddressableUserName undocumented + AddressableUserName *string `json:"addressableUserName,omitempty"` + // GroupTag undocumented + GroupTag *string `json:"groupTag,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter undocumented +type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter struct { + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // AddressableUserName undocumented + AddressableUserName *string `json:"addressableUserName,omitempty"` + // ResourceAccountName undocumented + ResourceAccountName *string `json:"resourceAccountName,omitempty"` +} + +// WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter undocumented +type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter struct { +} + +// WindowsAutopilotSettingsSyncRequestParameter undocumented +type WindowsAutopilotSettingsSyncRequestParameter struct { +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter undocumented +type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter struct { + // WdacPolicyAssignments undocumented + WdacPolicyAssignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"wdacPolicyAssignments,omitempty"` +} + +// WindowsFeatureUpdateProfileAssignRequestParameter undocumented +type WindowsFeatureUpdateProfileAssignRequestParameter struct { + // Assignments undocumented + Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"` +} + +// WindowsInformationProtectionAssignRequestParameter undocumented +type WindowsInformationProtectionAssignRequestParameter struct { + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} + +// WindowsInformationProtectionDeviceRegistrationWipeRequestParameter undocumented +type WindowsInformationProtectionDeviceRegistrationWipeRequestParameter struct { +} + +// WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter undocumented +type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter struct { +} + +// WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter undocumented +type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter struct { +} + +// AssignedDevices returns request builder for WindowsAutopilotDeviceIdentity collection +func (b *WindowsAutopilotDeploymentProfileRequestBuilder) AssignedDevices() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignedDevices" + return bb +} + +// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection +type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsAutopilotDeviceIdentity collection +func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest { + return &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsAutopilotDeviceIdentity item +func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection +type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection +func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsAutopilotDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsAutopilotDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsAutopilotDeviceIdentity collection, max N pages +func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeviceIdentity, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsAutopilotDeviceIdentity collection +func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsAutopilotDeviceIdentity collection +func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for WindowsAutopilotDeploymentProfileAssignment collection +func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assignments() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment collection +type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsAutopilotDeploymentProfileAssignment collection +func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest { + return &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsAutopilotDeploymentProfileAssignment item +func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest is request for WindowsAutopilotDeploymentProfileAssignment collection +type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsAutopilotDeploymentProfileAssignment collection +func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeploymentProfileAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsAutopilotDeploymentProfileAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsAutopilotDeploymentProfileAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsAutopilotDeploymentProfileAssignment collection, max N pages +func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeploymentProfileAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment collection +func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfileAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsAutopilotDeploymentProfileAssignment collection +func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploymentProfile is navigation property +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) DeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploymentProfile" + return bb +} + +// IntendedDeploymentProfile is navigation property +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) IntendedDeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/intendedDeploymentProfile" + return bb +} + +// Assignments returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assignments() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment item +func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsDefenderApplicationControlSupplementalPolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsDefenderApplicationControlSupplementalPolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection, max N pages +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeploySummary is navigation property +func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeploySummary() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deploySummary" + return bb +} + +// DeviceStatuses returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeviceStatuses() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceStatuses" + return bb +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus item +func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection, max N pages +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policy is navigation property +func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Policy() *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policy" + return bb +} + +// NetworkAccessConfigurations returns request builder for DeviceConfiguration collection +func (b *WindowsDomainJoinConfigurationRequestBuilder) NetworkAccessConfigurations() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder { + bb := &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/networkAccessConfigurations" + return bb +} + +// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection +type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DeviceConfiguration collection +func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) Request() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest { + return &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DeviceConfiguration item +func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder { + bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest is request for DeviceConfiguration collection +type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DeviceConfiguration collection +func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DeviceConfiguration collection, max N pages +func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DeviceConfiguration collection +func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DeviceConfiguration collection +func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for WindowsFeatureUpdateProfileAssignment collection +func (b *WindowsFeatureUpdateProfileRequestBuilder) Assignments() *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder { + bb := &WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment collection +type WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsFeatureUpdateProfileAssignment collection +func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentsCollectionRequest { + return &WindowsFeatureUpdateProfileAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsFeatureUpdateProfileAssignment item +func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileAssignmentRequestBuilder { + bb := &WindowsFeatureUpdateProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsFeatureUpdateProfileAssignmentsCollectionRequest is request for WindowsFeatureUpdateProfileAssignment collection +type WindowsFeatureUpdateProfileAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsFeatureUpdateProfileAssignment collection +func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsFeatureUpdateProfileAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsFeatureUpdateProfileAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsFeatureUpdateProfileAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsFeatureUpdateProfileAssignment collection, max N pages +func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsFeatureUpdateProfileAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsFeatureUpdateProfileAssignment collection +func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfileAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsFeatureUpdateProfileAssignment collection +func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) (resObj *WindowsFeatureUpdateProfileAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceUpdateStates returns request builder for WindowsUpdateState collection +func (b *WindowsFeatureUpdateProfileRequestBuilder) DeviceUpdateStates() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder { + bb := &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceUpdateStates" + return bb +} + +// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder is request builder for WindowsUpdateState collection +type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsUpdateState collection +func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest { + return &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsUpdateState item +func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) ID(id string) *WindowsUpdateStateRequestBuilder { + bb := &WindowsUpdateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest is request for WindowsUpdateState collection +type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsUpdateState collection +func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsUpdateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsUpdateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsUpdateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsUpdateState collection, max N pages +func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsUpdateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsUpdateState collection +func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsUpdateState collection +func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsUpdateState) (resObj *WindowsUpdateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection +func (b *WindowsInformationProtectionRequestBuilder) Assignments() *WindowsInformationProtectionAssignmentsCollectionRequestBuilder { + bb := &WindowsInformationProtectionAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/assignments" + return bb +} + +// WindowsInformationProtectionAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection +type WindowsInformationProtectionAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TargetedManagedAppPolicyAssignment collection +func (b *WindowsInformationProtectionAssignmentsCollectionRequestBuilder) Request() *WindowsInformationProtectionAssignmentsCollectionRequest { + return &WindowsInformationProtectionAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TargetedManagedAppPolicyAssignment item +func (b *WindowsInformationProtectionAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder { + bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsInformationProtectionAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection +type WindowsInformationProtectionAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection +func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TargetedManagedAppPolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TargetedManagedAppPolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages +func (r *WindowsInformationProtectionAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TargetedManagedAppPolicyAssignment collection +func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TargetedManagedAppPolicyAssignment collection +func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ExemptAppLockerFiles returns request builder for WindowsInformationProtectionAppLockerFile collection +func (b *WindowsInformationProtectionRequestBuilder) ExemptAppLockerFiles() *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder { + bb := &WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/exemptAppLockerFiles" + return bb +} + +// WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile collection +type WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionAppLockerFile collection +func (b *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder) Request() *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest { + return &WindowsInformationProtectionExemptAppLockerFilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionAppLockerFile item +func (b *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLockerFileRequestBuilder { + bb := &WindowsInformationProtectionAppLockerFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsInformationProtectionExemptAppLockerFilesCollectionRequest is request for WindowsInformationProtectionAppLockerFile collection +type WindowsInformationProtectionExemptAppLockerFilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLockerFile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionAppLockerFile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionAppLockerFile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionAppLockerFile collection, max N pages +func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLockerFile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) (resObj *WindowsInformationProtectionAppLockerFile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ProtectedAppLockerFiles returns request builder for WindowsInformationProtectionAppLockerFile collection +func (b *WindowsInformationProtectionRequestBuilder) ProtectedAppLockerFiles() *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder { + bb := &WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/protectedAppLockerFiles" + return bb +} + +// WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile collection +type WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsInformationProtectionAppLockerFile collection +func (b *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder) Request() *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest { + return &WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsInformationProtectionAppLockerFile item +func (b *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLockerFileRequestBuilder { + bb := &WindowsInformationProtectionAppLockerFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest is request for WindowsInformationProtectionAppLockerFile collection +type WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLockerFile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsInformationProtectionAppLockerFile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsInformationProtectionAppLockerFile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsInformationProtectionAppLockerFile collection, max N pages +func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLockerFile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsInformationProtectionAppLockerFile collection +func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) (resObj *WindowsInformationProtectionAppLockerFile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// WindowsDevicesProtectionState returns request builder for WindowsProtectionState collection +func (b *WindowsMalwareInformationRequestBuilder) WindowsDevicesProtectionState() *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder { + bb := &WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/windowsDevicesProtectionState" + return bb +} + +// WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder is request builder for WindowsProtectionState collection +type WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsProtectionState collection +func (b *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder) Request() *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest { + return &WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsProtectionState item +func (b *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder) ID(id string) *WindowsProtectionStateRequestBuilder { + bb := &WindowsProtectionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest is request for WindowsProtectionState collection +type WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsProtectionState collection +func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsProtectionState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsProtectionState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsProtectionState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsProtectionState collection, max N pages +func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsProtectionState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsProtectionState collection +func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Get(ctx context.Context) ([]WindowsProtectionState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsProtectionState collection +func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Add(ctx context.Context, reqObj *WindowsProtectionState) (resObj *WindowsProtectionState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// HealthStates returns request builder for WindowsManagementAppHealthState collection +func (b *WindowsManagementAppRequestBuilder) HealthStates() *WindowsManagementAppHealthStatesCollectionRequestBuilder { + bb := &WindowsManagementAppHealthStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/healthStates" + return bb +} + +// WindowsManagementAppHealthStatesCollectionRequestBuilder is request builder for WindowsManagementAppHealthState collection +type WindowsManagementAppHealthStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsManagementAppHealthState collection +func (b *WindowsManagementAppHealthStatesCollectionRequestBuilder) Request() *WindowsManagementAppHealthStatesCollectionRequest { + return &WindowsManagementAppHealthStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsManagementAppHealthState item +func (b *WindowsManagementAppHealthStatesCollectionRequestBuilder) ID(id string) *WindowsManagementAppHealthStateRequestBuilder { + bb := &WindowsManagementAppHealthStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsManagementAppHealthStatesCollectionRequest is request for WindowsManagementAppHealthState collection +type WindowsManagementAppHealthStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsManagementAppHealthState collection +func (r *WindowsManagementAppHealthStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsManagementAppHealthState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsManagementAppHealthState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsManagementAppHealthState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsManagementAppHealthState collection, max N pages +func (r *WindowsManagementAppHealthStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsManagementAppHealthState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsManagementAppHealthState collection +func (r *WindowsManagementAppHealthStatesCollectionRequest) Get(ctx context.Context) ([]WindowsManagementAppHealthState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsManagementAppHealthState collection +func (r *WindowsManagementAppHealthStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsManagementAppHealthState) (resObj *WindowsManagementAppHealthState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *WindowsPhone81ImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RootCertificate is navigation property +func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) RootCertificate() *WindowsPhone81TrustedRootCertificateRequestBuilder { + bb := &WindowsPhone81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} + +// IdentityCertificate is navigation property +func (b *WindowsPhone81VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsPhone81CertificateProfileBaseRequestBuilder { + bb := &WindowsPhone81CertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} + +// DetectedMalwareState returns request builder for WindowsDeviceMalwareState collection +func (b *WindowsProtectionStateRequestBuilder) DetectedMalwareState() *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder { + bb := &WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/detectedMalwareState" + return bb +} + +// WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder is request builder for WindowsDeviceMalwareState collection +type WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsDeviceMalwareState collection +func (b *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder) Request() *WindowsProtectionStateDetectedMalwareStateCollectionRequest { + return &WindowsProtectionStateDetectedMalwareStateCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsDeviceMalwareState item +func (b *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder) ID(id string) *WindowsDeviceMalwareStateRequestBuilder { + bb := &WindowsDeviceMalwareStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsProtectionStateDetectedMalwareStateCollectionRequest is request for WindowsDeviceMalwareState collection +type WindowsProtectionStateDetectedMalwareStateCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsDeviceMalwareState collection +func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDeviceMalwareState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsDeviceMalwareState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsDeviceMalwareState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsDeviceMalwareState collection, max N pages +func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDeviceMalwareState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsDeviceMalwareState collection +func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Get(ctx context.Context) ([]WindowsDeviceMalwareState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsDeviceMalwareState collection +func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Add(ctx context.Context, reqObj *WindowsDeviceMalwareState) (resObj *WindowsDeviceMalwareState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CommittedContainedApps returns request builder for MobileContainedApp collection +func (b *WindowsUniversalAppXRequestBuilder) CommittedContainedApps() *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder { + bb := &WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/committedContainedApps" + return bb +} + +// WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection +type WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MobileContainedApp collection +func (b *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder) Request() *WindowsUniversalAppXCommittedContainedAppsCollectionRequest { + return &WindowsUniversalAppXCommittedContainedAppsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MobileContainedApp item +func (b *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder { + bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsUniversalAppXCommittedContainedAppsCollectionRequest is request for MobileContainedApp collection +type WindowsUniversalAppXCommittedContainedAppsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MobileContainedApp collection +func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MobileContainedApp + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MobileContainedApp + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MobileContainedApp collection, max N pages +func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MobileContainedApp collection +func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MobileContainedApp collection +func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DeviceUpdateStates returns request builder for WindowsUpdateState collection +func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) DeviceUpdateStates() *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder { + bb := &WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceUpdateStates" + return bb +} + +// WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder is request builder for WindowsUpdateState collection +type WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsUpdateState collection +func (b *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest { + return &WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsUpdateState item +func (b *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder) ID(id string) *WindowsUpdateStateRequestBuilder { + bb := &WindowsUpdateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest is request for WindowsUpdateState collection +type WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsUpdateState collection +func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsUpdateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsUpdateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsUpdateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsUpdateState collection, max N pages +func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsUpdateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsUpdateState collection +func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsUpdateState collection +func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsUpdateState) (resObj *WindowsUpdateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificateForClientAuthentication is navigation property +func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *WindowsCertificateProfileBaseRequestBuilder { + bb := &WindowsCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificateForClientAuthentication" + return bb +} + +// RootCertificatesForServerValidation returns request builder for Windows81TrustedRootCertificate collection +func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) RootCertificatesForServerValidation() *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder { + bb := &WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificatesForServerValidation" + return bb +} + +// WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder is request builder for Windows81TrustedRootCertificate collection +type WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Windows81TrustedRootCertificate collection +func (b *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) Request() *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest { + return &WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Windows81TrustedRootCertificate item +func (b *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) ID(id string) *Windows81TrustedRootCertificateRequestBuilder { + bb := &Windows81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest is request for Windows81TrustedRootCertificate collection +type WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Windows81TrustedRootCertificate collection +func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Windows81TrustedRootCertificate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Windows81TrustedRootCertificate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Windows81TrustedRootCertificate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Windows81TrustedRootCertificate collection, max N pages +func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) GetN(ctx context.Context, n int) ([]Windows81TrustedRootCertificate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Windows81TrustedRootCertificate collection +func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]Windows81TrustedRootCertificate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Windows81TrustedRootCertificate collection +func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Add(ctx context.Context, reqObj *Windows81TrustedRootCertificate) (resObj *Windows81TrustedRootCertificate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go new file mode 100644 index 00000000..bbe62069 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go @@ -0,0 +1,325 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PrivacyAccessControls returns request builder for WindowsPrivacyDataAccessControlItem collection +func (b *Windows10GeneralConfigurationRequestBuilder) PrivacyAccessControls() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder { + bb := &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privacyAccessControls" + return bb +} + +// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder is request builder for WindowsPrivacyDataAccessControlItem collection +type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WindowsPrivacyDataAccessControlItem collection +func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) Request() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest { + return &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WindowsPrivacyDataAccessControlItem item +func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) ID(id string) *WindowsPrivacyDataAccessControlItemRequestBuilder { + bb := &WindowsPrivacyDataAccessControlItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest is request for WindowsPrivacyDataAccessControlItem collection +type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WindowsPrivacyDataAccessControlItem collection +func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsPrivacyDataAccessControlItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WindowsPrivacyDataAccessControlItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WindowsPrivacyDataAccessControlItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WindowsPrivacyDataAccessControlItem collection, max N pages +func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsPrivacyDataAccessControlItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WindowsPrivacyDataAccessControlItem collection +func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Get(ctx context.Context) ([]WindowsPrivacyDataAccessControlItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WindowsPrivacyDataAccessControlItem collection +func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Add(ctx context.Context, reqObj *WindowsPrivacyDataAccessControlItem) (resObj *WindowsPrivacyDataAccessControlItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *Windows10PkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityCertificate is navigation property +func (b *Windows10VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsCertificateProfileBaseRequestBuilder { + bb := &WindowsCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityCertificate" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go new file mode 100644 index 00000000..77815fab --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection +func (b *Windows81SCEPCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder { + bb := &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/managedDeviceCertificateStates" + return bb +} + +// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection +type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ManagedDeviceCertificateState collection +func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest { + return &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ManagedDeviceCertificateState item +func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder { + bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection +type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ManagedDeviceCertificateState collection +func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ManagedDeviceCertificateState + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ManagedDeviceCertificateState + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages +func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ManagedDeviceCertificateState collection +func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ManagedDeviceCertificateState collection +func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RootCertificate is navigation property +func (b *Windows81SCEPCertificateProfileRequestBuilder) RootCertificate() *Windows81TrustedRootCertificateRequestBuilder { + bb := &Windows81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rootCertificate" + return bb +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go new file mode 100644 index 00000000..296dffc8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go @@ -0,0 +1,5268 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// WorkbookChartCollectionAddRequestParameter undocumented +type WorkbookChartCollectionAddRequestParameter struct { + // Type undocumented + Type *string `json:"type,omitempty"` + // SourceData undocumented + SourceData json.RawMessage `json:"sourceData,omitempty"` + // SeriesBy undocumented + SeriesBy *string `json:"seriesBy,omitempty"` +} + +// WorkbookNamedItemCollectionAddRequestParameter undocumented +type WorkbookNamedItemCollectionAddRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Reference undocumented + Reference json.RawMessage `json:"reference,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` +} + +// WorkbookNamedItemCollectionAddFormulaLocalRequestParameter undocumented +type WorkbookNamedItemCollectionAddFormulaLocalRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` + // Formula undocumented + Formula *string `json:"formula,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` +} + +// WorkbookPivotTableCollectionRefreshAllRequestParameter undocumented +type WorkbookPivotTableCollectionRefreshAllRequestParameter struct { +} + +// WorkbookTableCollectionAddRequestParameter undocumented +type WorkbookTableCollectionAddRequestParameter struct { + // Address undocumented + Address *string `json:"address,omitempty"` + // HasHeaders undocumented + HasHeaders *bool `json:"hasHeaders,omitempty"` +} + +// WorkbookTableColumnCollectionAddRequestParameter undocumented +type WorkbookTableColumnCollectionAddRequestParameter struct { + // Index undocumented + Index *int `json:"index,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// WorkbookTableRowCollectionAddRequestParameter undocumented +type WorkbookTableRowCollectionAddRequestParameter struct { + // Index undocumented + Index *int `json:"index,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookWorksheetCollectionAddRequestParameter undocumented +type WorkbookWorksheetCollectionAddRequestParameter struct { + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// WorkbookCreateSessionRequestParameter undocumented +type WorkbookCreateSessionRequestParameter struct { + // PersistChanges undocumented + PersistChanges *bool `json:"persistChanges,omitempty"` +} + +// WorkbookCloseSessionRequestParameter undocumented +type WorkbookCloseSessionRequestParameter struct { +} + +// WorkbookRefreshSessionRequestParameter undocumented +type WorkbookRefreshSessionRequestParameter struct { +} + +// WorkbookApplicationCalculateRequestParameter undocumented +type WorkbookApplicationCalculateRequestParameter struct { + // CalculationType undocumented + CalculationType *string `json:"calculationType,omitempty"` +} + +// WorkbookChartSetDataRequestParameter undocumented +type WorkbookChartSetDataRequestParameter struct { + // SourceData undocumented + SourceData json.RawMessage `json:"sourceData,omitempty"` + // SeriesBy undocumented + SeriesBy *string `json:"seriesBy,omitempty"` +} + +// WorkbookChartSetPositionRequestParameter undocumented +type WorkbookChartSetPositionRequestParameter struct { + // StartCell undocumented + StartCell json.RawMessage `json:"startCell,omitempty"` + // EndCell undocumented + EndCell json.RawMessage `json:"endCell,omitempty"` +} + +// WorkbookChartFillClearRequestParameter undocumented +type WorkbookChartFillClearRequestParameter struct { +} + +// WorkbookChartFillSetSolidColorRequestParameter undocumented +type WorkbookChartFillSetSolidColorRequestParameter struct { + // Color undocumented + Color *string `json:"color,omitempty"` +} + +// WorkbookChartLineFormatClearRequestParameter undocumented +type WorkbookChartLineFormatClearRequestParameter struct { +} + +// WorkbookFilterApplyRequestParameter undocumented +type WorkbookFilterApplyRequestParameter struct { + // Criteria undocumented + Criteria *WorkbookFilterCriteria `json:"criteria,omitempty"` +} + +// WorkbookFilterApplyBottomItemsFilterRequestParameter undocumented +type WorkbookFilterApplyBottomItemsFilterRequestParameter struct { + // Count undocumented + Count *int `json:"count,omitempty"` +} + +// WorkbookFilterApplyBottomPercentFilterRequestParameter undocumented +type WorkbookFilterApplyBottomPercentFilterRequestParameter struct { + // Percent undocumented + Percent *int `json:"percent,omitempty"` +} + +// WorkbookFilterApplyCellColorFilterRequestParameter undocumented +type WorkbookFilterApplyCellColorFilterRequestParameter struct { + // Color undocumented + Color *string `json:"color,omitempty"` +} + +// WorkbookFilterApplyCustomFilterRequestParameter undocumented +type WorkbookFilterApplyCustomFilterRequestParameter struct { + // Criteria1 undocumented + Criteria1 *string `json:"criteria1,omitempty"` + // Criteria2 undocumented + Criteria2 *string `json:"criteria2,omitempty"` + // Oper undocumented + Oper *string `json:"oper,omitempty"` +} + +// WorkbookFilterApplyDynamicFilterRequestParameter undocumented +type WorkbookFilterApplyDynamicFilterRequestParameter struct { + // Criteria undocumented + Criteria *string `json:"criteria,omitempty"` +} + +// WorkbookFilterApplyFontColorFilterRequestParameter undocumented +type WorkbookFilterApplyFontColorFilterRequestParameter struct { + // Color undocumented + Color *string `json:"color,omitempty"` +} + +// WorkbookFilterApplyIconFilterRequestParameter undocumented +type WorkbookFilterApplyIconFilterRequestParameter struct { + // Icon undocumented + Icon *WorkbookIcon `json:"icon,omitempty"` +} + +// WorkbookFilterApplyTopItemsFilterRequestParameter undocumented +type WorkbookFilterApplyTopItemsFilterRequestParameter struct { + // Count undocumented + Count *int `json:"count,omitempty"` +} + +// WorkbookFilterApplyTopPercentFilterRequestParameter undocumented +type WorkbookFilterApplyTopPercentFilterRequestParameter struct { + // Percent undocumented + Percent *int `json:"percent,omitempty"` +} + +// WorkbookFilterApplyValuesFilterRequestParameter undocumented +type WorkbookFilterApplyValuesFilterRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFilterClearRequestParameter undocumented +type WorkbookFilterClearRequestParameter struct { +} + +// WorkbookFunctionsAbsRequestParameter undocumented +type WorkbookFunctionsAbsRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAccrIntRequestParameter undocumented +type WorkbookFunctionsAccrIntRequestParameter struct { + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // FirstInterest undocumented + FirstInterest json.RawMessage `json:"firstInterest,omitempty"` + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Par undocumented + Par json.RawMessage `json:"par,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` + // CalcMethod undocumented + CalcMethod json.RawMessage `json:"calcMethod,omitempty"` +} + +// WorkbookFunctionsAccrIntMRequestParameter undocumented +type WorkbookFunctionsAccrIntMRequestParameter struct { + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Par undocumented + Par json.RawMessage `json:"par,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsAcosRequestParameter undocumented +type WorkbookFunctionsAcosRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAcoshRequestParameter undocumented +type WorkbookFunctionsAcoshRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAcotRequestParameter undocumented +type WorkbookFunctionsAcotRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAcothRequestParameter undocumented +type WorkbookFunctionsAcothRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAmorDegrcRequestParameter undocumented +type WorkbookFunctionsAmorDegrcRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // DatePurchased undocumented + DatePurchased json.RawMessage `json:"datePurchased,omitempty"` + // FirstPeriod undocumented + FirstPeriod json.RawMessage `json:"firstPeriod,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Period undocumented + Period json.RawMessage `json:"period,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsAmorLincRequestParameter undocumented +type WorkbookFunctionsAmorLincRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // DatePurchased undocumented + DatePurchased json.RawMessage `json:"datePurchased,omitempty"` + // FirstPeriod undocumented + FirstPeriod json.RawMessage `json:"firstPeriod,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Period undocumented + Period json.RawMessage `json:"period,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsAndRequestParameter undocumented +type WorkbookFunctionsAndRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsArabicRequestParameter undocumented +type WorkbookFunctionsArabicRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsAreasRequestParameter undocumented +type WorkbookFunctionsAreasRequestParameter struct { + // Reference undocumented + Reference json.RawMessage `json:"reference,omitempty"` +} + +// WorkbookFunctionsAscRequestParameter undocumented +type WorkbookFunctionsAscRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsAsinRequestParameter undocumented +type WorkbookFunctionsAsinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAsinhRequestParameter undocumented +type WorkbookFunctionsAsinhRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAtanRequestParameter undocumented +type WorkbookFunctionsAtanRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAtan2RequestParameter undocumented +type WorkbookFunctionsAtan2RequestParameter struct { + // XNum undocumented + XNum json.RawMessage `json:"xNum,omitempty"` + // YNum undocumented + YNum json.RawMessage `json:"yNum,omitempty"` +} + +// WorkbookFunctionsAtanhRequestParameter undocumented +type WorkbookFunctionsAtanhRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsAveDevRequestParameter undocumented +type WorkbookFunctionsAveDevRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsAverageRequestParameter undocumented +type WorkbookFunctionsAverageRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsAverageARequestParameter undocumented +type WorkbookFunctionsAverageARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsAverageIfRequestParameter undocumented +type WorkbookFunctionsAverageIfRequestParameter struct { + // Range undocumented + Range json.RawMessage `json:"range,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` + // AverageRange undocumented + AverageRange json.RawMessage `json:"averageRange,omitempty"` +} + +// WorkbookFunctionsAverageIfsRequestParameter undocumented +type WorkbookFunctionsAverageIfsRequestParameter struct { + // AverageRange undocumented + AverageRange json.RawMessage `json:"averageRange,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsBahtTextRequestParameter undocumented +type WorkbookFunctionsBahtTextRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsBaseRequestParameter undocumented +type WorkbookFunctionsBaseRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Radix undocumented + Radix json.RawMessage `json:"radix,omitempty"` + // MinLength undocumented + MinLength json.RawMessage `json:"minLength,omitempty"` +} + +// WorkbookFunctionsBesselIRequestParameter undocumented +type WorkbookFunctionsBesselIRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // N undocumented + N json.RawMessage `json:"n,omitempty"` +} + +// WorkbookFunctionsBesselJRequestParameter undocumented +type WorkbookFunctionsBesselJRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // N undocumented + N json.RawMessage `json:"n,omitempty"` +} + +// WorkbookFunctionsBesselKRequestParameter undocumented +type WorkbookFunctionsBesselKRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // N undocumented + N json.RawMessage `json:"n,omitempty"` +} + +// WorkbookFunctionsBesselYRequestParameter undocumented +type WorkbookFunctionsBesselYRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // N undocumented + N json.RawMessage `json:"n,omitempty"` +} + +// WorkbookFunctionsBeta_DistRequestParameter undocumented +type WorkbookFunctionsBeta_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // Beta undocumented + Beta json.RawMessage `json:"beta,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` + // A undocumented + A json.RawMessage `json:"A,omitempty"` + // B undocumented + B json.RawMessage `json:"B,omitempty"` +} + +// WorkbookFunctionsBeta_InvRequestParameter undocumented +type WorkbookFunctionsBeta_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // Beta undocumented + Beta json.RawMessage `json:"beta,omitempty"` + // A undocumented + A json.RawMessage `json:"A,omitempty"` + // B undocumented + B json.RawMessage `json:"B,omitempty"` +} + +// WorkbookFunctionsBin2DecRequestParameter undocumented +type WorkbookFunctionsBin2DecRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsBin2HexRequestParameter undocumented +type WorkbookFunctionsBin2HexRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsBin2OctRequestParameter undocumented +type WorkbookFunctionsBin2OctRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsBinom_DistRequestParameter undocumented +type WorkbookFunctionsBinom_DistRequestParameter struct { + // NumberS undocumented + NumberS json.RawMessage `json:"numberS,omitempty"` + // Trials undocumented + Trials json.RawMessage `json:"trials,omitempty"` + // ProbabilityS undocumented + ProbabilityS json.RawMessage `json:"probabilityS,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsBinom_Dist_RangeRequestParameter undocumented +type WorkbookFunctionsBinom_Dist_RangeRequestParameter struct { + // Trials undocumented + Trials json.RawMessage `json:"trials,omitempty"` + // ProbabilityS undocumented + ProbabilityS json.RawMessage `json:"probabilityS,omitempty"` + // NumberS undocumented + NumberS json.RawMessage `json:"numberS,omitempty"` + // NumberS2 undocumented + NumberS2 json.RawMessage `json:"numberS2,omitempty"` +} + +// WorkbookFunctionsBinom_InvRequestParameter undocumented +type WorkbookFunctionsBinom_InvRequestParameter struct { + // Trials undocumented + Trials json.RawMessage `json:"trials,omitempty"` + // ProbabilityS undocumented + ProbabilityS json.RawMessage `json:"probabilityS,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` +} + +// WorkbookFunctionsBitandRequestParameter undocumented +type WorkbookFunctionsBitandRequestParameter struct { + // Number1 undocumented + Number1 json.RawMessage `json:"number1,omitempty"` + // Number2 undocumented + Number2 json.RawMessage `json:"number2,omitempty"` +} + +// WorkbookFunctionsBitlshiftRequestParameter undocumented +type WorkbookFunctionsBitlshiftRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // ShiftAmount undocumented + ShiftAmount json.RawMessage `json:"shiftAmount,omitempty"` +} + +// WorkbookFunctionsBitorRequestParameter undocumented +type WorkbookFunctionsBitorRequestParameter struct { + // Number1 undocumented + Number1 json.RawMessage `json:"number1,omitempty"` + // Number2 undocumented + Number2 json.RawMessage `json:"number2,omitempty"` +} + +// WorkbookFunctionsBitrshiftRequestParameter undocumented +type WorkbookFunctionsBitrshiftRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // ShiftAmount undocumented + ShiftAmount json.RawMessage `json:"shiftAmount,omitempty"` +} + +// WorkbookFunctionsBitxorRequestParameter undocumented +type WorkbookFunctionsBitxorRequestParameter struct { + // Number1 undocumented + Number1 json.RawMessage `json:"number1,omitempty"` + // Number2 undocumented + Number2 json.RawMessage `json:"number2,omitempty"` +} + +// WorkbookFunctionsCeiling_MathRequestParameter undocumented +type WorkbookFunctionsCeiling_MathRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` + // Mode undocumented + Mode json.RawMessage `json:"mode,omitempty"` +} + +// WorkbookFunctionsCeiling_PreciseRequestParameter undocumented +type WorkbookFunctionsCeiling_PreciseRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsCharRequestParameter undocumented +type WorkbookFunctionsCharRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsChiSq_DistRequestParameter undocumented +type WorkbookFunctionsChiSq_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsChiSq_Dist_RTRequestParameter undocumented +type WorkbookFunctionsChiSq_Dist_RTRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsChiSq_InvRequestParameter undocumented +type WorkbookFunctionsChiSq_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsChiSq_Inv_RTRequestParameter undocumented +type WorkbookFunctionsChiSq_Inv_RTRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsChooseRequestParameter undocumented +type WorkbookFunctionsChooseRequestParameter struct { + // IndexNum undocumented + IndexNum json.RawMessage `json:"indexNum,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsCleanRequestParameter undocumented +type WorkbookFunctionsCleanRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsCodeRequestParameter undocumented +type WorkbookFunctionsCodeRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsColumnsRequestParameter undocumented +type WorkbookFunctionsColumnsRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` +} + +// WorkbookFunctionsCombinRequestParameter undocumented +type WorkbookFunctionsCombinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumberChosen undocumented + NumberChosen json.RawMessage `json:"numberChosen,omitempty"` +} + +// WorkbookFunctionsCombinaRequestParameter undocumented +type WorkbookFunctionsCombinaRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumberChosen undocumented + NumberChosen json.RawMessage `json:"numberChosen,omitempty"` +} + +// WorkbookFunctionsComplexRequestParameter undocumented +type WorkbookFunctionsComplexRequestParameter struct { + // RealNum undocumented + RealNum json.RawMessage `json:"realNum,omitempty"` + // INum undocumented + INum json.RawMessage `json:"iNum,omitempty"` + // Suffix undocumented + Suffix json.RawMessage `json:"suffix,omitempty"` +} + +// WorkbookFunctionsConcatenateRequestParameter undocumented +type WorkbookFunctionsConcatenateRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsConfidence_NormRequestParameter undocumented +type WorkbookFunctionsConfidence_NormRequestParameter struct { + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` + // Size undocumented + Size json.RawMessage `json:"size,omitempty"` +} + +// WorkbookFunctionsConfidence_TRequestParameter undocumented +type WorkbookFunctionsConfidence_TRequestParameter struct { + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` + // Size undocumented + Size json.RawMessage `json:"size,omitempty"` +} + +// WorkbookFunctionsConvertRequestParameter undocumented +type WorkbookFunctionsConvertRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // FromUnit undocumented + FromUnit json.RawMessage `json:"fromUnit,omitempty"` + // ToUnit undocumented + ToUnit json.RawMessage `json:"toUnit,omitempty"` +} + +// WorkbookFunctionsCosRequestParameter undocumented +type WorkbookFunctionsCosRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCoshRequestParameter undocumented +type WorkbookFunctionsCoshRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCotRequestParameter undocumented +type WorkbookFunctionsCotRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCothRequestParameter undocumented +type WorkbookFunctionsCothRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCountRequestParameter undocumented +type WorkbookFunctionsCountRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsCountARequestParameter undocumented +type WorkbookFunctionsCountARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsCountBlankRequestParameter undocumented +type WorkbookFunctionsCountBlankRequestParameter struct { + // Range undocumented + Range json.RawMessage `json:"range,omitempty"` +} + +// WorkbookFunctionsCountIfRequestParameter undocumented +type WorkbookFunctionsCountIfRequestParameter struct { + // Range undocumented + Range json.RawMessage `json:"range,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsCountIfsRequestParameter undocumented +type WorkbookFunctionsCountIfsRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsCoupDayBsRequestParameter undocumented +type WorkbookFunctionsCoupDayBsRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCoupDaysRequestParameter undocumented +type WorkbookFunctionsCoupDaysRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCoupDaysNcRequestParameter undocumented +type WorkbookFunctionsCoupDaysNcRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCoupNcdRequestParameter undocumented +type WorkbookFunctionsCoupNcdRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCoupNumRequestParameter undocumented +type WorkbookFunctionsCoupNumRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCoupPcdRequestParameter undocumented +type WorkbookFunctionsCoupPcdRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsCscRequestParameter undocumented +type WorkbookFunctionsCscRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCschRequestParameter undocumented +type WorkbookFunctionsCschRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsCumIPmtRequestParameter undocumented +type WorkbookFunctionsCumIPmtRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // StartPeriod undocumented + StartPeriod json.RawMessage `json:"startPeriod,omitempty"` + // EndPeriod undocumented + EndPeriod json.RawMessage `json:"endPeriod,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsCumPrincRequestParameter undocumented +type WorkbookFunctionsCumPrincRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // StartPeriod undocumented + StartPeriod json.RawMessage `json:"startPeriod,omitempty"` + // EndPeriod undocumented + EndPeriod json.RawMessage `json:"endPeriod,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsDaverageRequestParameter undocumented +type WorkbookFunctionsDaverageRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDcountRequestParameter undocumented +type WorkbookFunctionsDcountRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDcountARequestParameter undocumented +type WorkbookFunctionsDcountARequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDgetRequestParameter undocumented +type WorkbookFunctionsDgetRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDmaxRequestParameter undocumented +type WorkbookFunctionsDmaxRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDminRequestParameter undocumented +type WorkbookFunctionsDminRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDproductRequestParameter undocumented +type WorkbookFunctionsDproductRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDstDevRequestParameter undocumented +type WorkbookFunctionsDstDevRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDstDevPRequestParameter undocumented +type WorkbookFunctionsDstDevPRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDsumRequestParameter undocumented +type WorkbookFunctionsDsumRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDvarRequestParameter undocumented +type WorkbookFunctionsDvarRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDvarPRequestParameter undocumented +type WorkbookFunctionsDvarPRequestParameter struct { + // Database undocumented + Database json.RawMessage `json:"database,omitempty"` + // Field undocumented + Field json.RawMessage `json:"field,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` +} + +// WorkbookFunctionsDateRequestParameter undocumented +type WorkbookFunctionsDateRequestParameter struct { + // Year undocumented + Year json.RawMessage `json:"year,omitempty"` + // Month undocumented + Month json.RawMessage `json:"month,omitempty"` + // Day undocumented + Day json.RawMessage `json:"day,omitempty"` +} + +// WorkbookFunctionsDatevalueRequestParameter undocumented +type WorkbookFunctionsDatevalueRequestParameter struct { + // DateText undocumented + DateText json.RawMessage `json:"dateText,omitempty"` +} + +// WorkbookFunctionsDayRequestParameter undocumented +type WorkbookFunctionsDayRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsDaysRequestParameter undocumented +type WorkbookFunctionsDaysRequestParameter struct { + // EndDate undocumented + EndDate json.RawMessage `json:"endDate,omitempty"` + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` +} + +// WorkbookFunctionsDays360RequestParameter undocumented +type WorkbookFunctionsDays360RequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // EndDate undocumented + EndDate json.RawMessage `json:"endDate,omitempty"` + // Method undocumented + Method json.RawMessage `json:"method,omitempty"` +} + +// WorkbookFunctionsDbRequestParameter undocumented +type WorkbookFunctionsDbRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Life undocumented + Life json.RawMessage `json:"life,omitempty"` + // Period undocumented + Period json.RawMessage `json:"period,omitempty"` + // Month undocumented + Month json.RawMessage `json:"month,omitempty"` +} + +// WorkbookFunctionsDbcsRequestParameter undocumented +type WorkbookFunctionsDbcsRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsDdbRequestParameter undocumented +type WorkbookFunctionsDdbRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Life undocumented + Life json.RawMessage `json:"life,omitempty"` + // Period undocumented + Period json.RawMessage `json:"period,omitempty"` + // Factor undocumented + Factor json.RawMessage `json:"factor,omitempty"` +} + +// WorkbookFunctionsDec2BinRequestParameter undocumented +type WorkbookFunctionsDec2BinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsDec2HexRequestParameter undocumented +type WorkbookFunctionsDec2HexRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsDec2OctRequestParameter undocumented +type WorkbookFunctionsDec2OctRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsDecimalRequestParameter undocumented +type WorkbookFunctionsDecimalRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Radix undocumented + Radix json.RawMessage `json:"radix,omitempty"` +} + +// WorkbookFunctionsDegreesRequestParameter undocumented +type WorkbookFunctionsDegreesRequestParameter struct { + // Angle undocumented + Angle json.RawMessage `json:"angle,omitempty"` +} + +// WorkbookFunctionsDeltaRequestParameter undocumented +type WorkbookFunctionsDeltaRequestParameter struct { + // Number1 undocumented + Number1 json.RawMessage `json:"number1,omitempty"` + // Number2 undocumented + Number2 json.RawMessage `json:"number2,omitempty"` +} + +// WorkbookFunctionsDevSqRequestParameter undocumented +type WorkbookFunctionsDevSqRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsDiscRequestParameter undocumented +type WorkbookFunctionsDiscRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsDollarRequestParameter undocumented +type WorkbookFunctionsDollarRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Decimals undocumented + Decimals json.RawMessage `json:"decimals,omitempty"` +} + +// WorkbookFunctionsDollarDeRequestParameter undocumented +type WorkbookFunctionsDollarDeRequestParameter struct { + // FractionalDollar undocumented + FractionalDollar json.RawMessage `json:"fractionalDollar,omitempty"` + // Fraction undocumented + Fraction json.RawMessage `json:"fraction,omitempty"` +} + +// WorkbookFunctionsDollarFrRequestParameter undocumented +type WorkbookFunctionsDollarFrRequestParameter struct { + // DecimalDollar undocumented + DecimalDollar json.RawMessage `json:"decimalDollar,omitempty"` + // Fraction undocumented + Fraction json.RawMessage `json:"fraction,omitempty"` +} + +// WorkbookFunctionsDurationRequestParameter undocumented +type WorkbookFunctionsDurationRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Coupon undocumented + Coupon json.RawMessage `json:"coupon,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsEcma_CeilingRequestParameter undocumented +type WorkbookFunctionsEcma_CeilingRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsEdateRequestParameter undocumented +type WorkbookFunctionsEdateRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // Months undocumented + Months json.RawMessage `json:"months,omitempty"` +} + +// WorkbookFunctionsEffectRequestParameter undocumented +type WorkbookFunctionsEffectRequestParameter struct { + // NominalRate undocumented + NominalRate json.RawMessage `json:"nominalRate,omitempty"` + // Npery undocumented + Npery json.RawMessage `json:"npery,omitempty"` +} + +// WorkbookFunctionsEoMonthRequestParameter undocumented +type WorkbookFunctionsEoMonthRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // Months undocumented + Months json.RawMessage `json:"months,omitempty"` +} + +// WorkbookFunctionsErfRequestParameter undocumented +type WorkbookFunctionsErfRequestParameter struct { + // LowerLimit undocumented + LowerLimit json.RawMessage `json:"lowerLimit,omitempty"` + // UpperLimit undocumented + UpperLimit json.RawMessage `json:"upperLimit,omitempty"` +} + +// WorkbookFunctionsErfCRequestParameter undocumented +type WorkbookFunctionsErfCRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsErfC_PreciseRequestParameter undocumented +type WorkbookFunctionsErfC_PreciseRequestParameter struct { + // X undocumented + X json.RawMessage `json:"X,omitempty"` +} + +// WorkbookFunctionsErf_PreciseRequestParameter undocumented +type WorkbookFunctionsErf_PreciseRequestParameter struct { + // X undocumented + X json.RawMessage `json:"X,omitempty"` +} + +// WorkbookFunctionsError_TypeRequestParameter undocumented +type WorkbookFunctionsError_TypeRequestParameter struct { + // ErrorVal undocumented + ErrorVal json.RawMessage `json:"errorVal,omitempty"` +} + +// WorkbookFunctionsEvenRequestParameter undocumented +type WorkbookFunctionsEvenRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsExactRequestParameter undocumented +type WorkbookFunctionsExactRequestParameter struct { + // Text1 undocumented + Text1 json.RawMessage `json:"text1,omitempty"` + // Text2 undocumented + Text2 json.RawMessage `json:"text2,omitempty"` +} + +// WorkbookFunctionsExpRequestParameter undocumented +type WorkbookFunctionsExpRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsExpon_DistRequestParameter undocumented +type WorkbookFunctionsExpon_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Lambda undocumented + Lambda json.RawMessage `json:"lambda,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsFvscheduleRequestParameter undocumented +type WorkbookFunctionsFvscheduleRequestParameter struct { + // Principal undocumented + Principal json.RawMessage `json:"principal,omitempty"` + // Schedule undocumented + Schedule json.RawMessage `json:"schedule,omitempty"` +} + +// WorkbookFunctionsF_DistRequestParameter undocumented +type WorkbookFunctionsF_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom1 undocumented + DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"` + // DegFreedom2 undocumented + DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsF_Dist_RTRequestParameter undocumented +type WorkbookFunctionsF_Dist_RTRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom1 undocumented + DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"` + // DegFreedom2 undocumented + DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"` +} + +// WorkbookFunctionsF_InvRequestParameter undocumented +type WorkbookFunctionsF_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom1 undocumented + DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"` + // DegFreedom2 undocumented + DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"` +} + +// WorkbookFunctionsF_Inv_RTRequestParameter undocumented +type WorkbookFunctionsF_Inv_RTRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom1 undocumented + DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"` + // DegFreedom2 undocumented + DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"` +} + +// WorkbookFunctionsFactRequestParameter undocumented +type WorkbookFunctionsFactRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsFactDoubleRequestParameter undocumented +type WorkbookFunctionsFactDoubleRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsFalseRequestParameter undocumented +type WorkbookFunctionsFalseRequestParameter struct { +} + +// WorkbookFunctionsFindRequestParameter undocumented +type WorkbookFunctionsFindRequestParameter struct { + // FindText undocumented + FindText json.RawMessage `json:"findText,omitempty"` + // WithinText undocumented + WithinText json.RawMessage `json:"withinText,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` +} + +// WorkbookFunctionsFindBRequestParameter undocumented +type WorkbookFunctionsFindBRequestParameter struct { + // FindText undocumented + FindText json.RawMessage `json:"findText,omitempty"` + // WithinText undocumented + WithinText json.RawMessage `json:"withinText,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` +} + +// WorkbookFunctionsFisherRequestParameter undocumented +type WorkbookFunctionsFisherRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsFisherInvRequestParameter undocumented +type WorkbookFunctionsFisherInvRequestParameter struct { + // Y undocumented + Y json.RawMessage `json:"y,omitempty"` +} + +// WorkbookFunctionsFixedRequestParameter undocumented +type WorkbookFunctionsFixedRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Decimals undocumented + Decimals json.RawMessage `json:"decimals,omitempty"` + // NoCommas undocumented + NoCommas json.RawMessage `json:"noCommas,omitempty"` +} + +// WorkbookFunctionsFloor_MathRequestParameter undocumented +type WorkbookFunctionsFloor_MathRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` + // Mode undocumented + Mode json.RawMessage `json:"mode,omitempty"` +} + +// WorkbookFunctionsFloor_PreciseRequestParameter undocumented +type WorkbookFunctionsFloor_PreciseRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsFvRequestParameter undocumented +type WorkbookFunctionsFvRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pmt undocumented + Pmt json.RawMessage `json:"pmt,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsGammaRequestParameter undocumented +type WorkbookFunctionsGammaRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsGammaLnRequestParameter undocumented +type WorkbookFunctionsGammaLnRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsGammaLn_PreciseRequestParameter undocumented +type WorkbookFunctionsGammaLn_PreciseRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsGamma_DistRequestParameter undocumented +type WorkbookFunctionsGamma_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // Beta undocumented + Beta json.RawMessage `json:"beta,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsGamma_InvRequestParameter undocumented +type WorkbookFunctionsGamma_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // Beta undocumented + Beta json.RawMessage `json:"beta,omitempty"` +} + +// WorkbookFunctionsGaussRequestParameter undocumented +type WorkbookFunctionsGaussRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsGcdRequestParameter undocumented +type WorkbookFunctionsGcdRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsGeStepRequestParameter undocumented +type WorkbookFunctionsGeStepRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Step undocumented + Step json.RawMessage `json:"step,omitempty"` +} + +// WorkbookFunctionsGeoMeanRequestParameter undocumented +type WorkbookFunctionsGeoMeanRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsHlookupRequestParameter undocumented +type WorkbookFunctionsHlookupRequestParameter struct { + // LookupValue undocumented + LookupValue json.RawMessage `json:"lookupValue,omitempty"` + // TableArray undocumented + TableArray json.RawMessage `json:"tableArray,omitempty"` + // RowIndexNum undocumented + RowIndexNum json.RawMessage `json:"rowIndexNum,omitempty"` + // RangeLookup undocumented + RangeLookup json.RawMessage `json:"rangeLookup,omitempty"` +} + +// WorkbookFunctionsHarMeanRequestParameter undocumented +type WorkbookFunctionsHarMeanRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsHex2BinRequestParameter undocumented +type WorkbookFunctionsHex2BinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsHex2DecRequestParameter undocumented +type WorkbookFunctionsHex2DecRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsHex2OctRequestParameter undocumented +type WorkbookFunctionsHex2OctRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsHourRequestParameter undocumented +type WorkbookFunctionsHourRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsHypGeom_DistRequestParameter undocumented +type WorkbookFunctionsHypGeom_DistRequestParameter struct { + // SampleS undocumented + SampleS json.RawMessage `json:"sampleS,omitempty"` + // NumberSample undocumented + NumberSample json.RawMessage `json:"numberSample,omitempty"` + // PopulationS undocumented + PopulationS json.RawMessage `json:"populationS,omitempty"` + // NumberPop undocumented + NumberPop json.RawMessage `json:"numberPop,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsHyperlinkRequestParameter undocumented +type WorkbookFunctionsHyperlinkRequestParameter struct { + // LinkLocation undocumented + LinkLocation json.RawMessage `json:"linkLocation,omitempty"` + // FriendlyName undocumented + FriendlyName json.RawMessage `json:"friendlyName,omitempty"` +} + +// WorkbookFunctionsIso_CeilingRequestParameter undocumented +type WorkbookFunctionsIso_CeilingRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsIfRequestParameter undocumented +type WorkbookFunctionsIfRequestParameter struct { + // LogicalTest undocumented + LogicalTest json.RawMessage `json:"logicalTest,omitempty"` + // ValueIfTrue undocumented + ValueIfTrue json.RawMessage `json:"valueIfTrue,omitempty"` + // ValueIfFalse undocumented + ValueIfFalse json.RawMessage `json:"valueIfFalse,omitempty"` +} + +// WorkbookFunctionsImAbsRequestParameter undocumented +type WorkbookFunctionsImAbsRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImArgumentRequestParameter undocumented +type WorkbookFunctionsImArgumentRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImConjugateRequestParameter undocumented +type WorkbookFunctionsImConjugateRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImCosRequestParameter undocumented +type WorkbookFunctionsImCosRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImCoshRequestParameter undocumented +type WorkbookFunctionsImCoshRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImCotRequestParameter undocumented +type WorkbookFunctionsImCotRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImCscRequestParameter undocumented +type WorkbookFunctionsImCscRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImCschRequestParameter undocumented +type WorkbookFunctionsImCschRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImDivRequestParameter undocumented +type WorkbookFunctionsImDivRequestParameter struct { + // Inumber1 undocumented + Inumber1 json.RawMessage `json:"inumber1,omitempty"` + // Inumber2 undocumented + Inumber2 json.RawMessage `json:"inumber2,omitempty"` +} + +// WorkbookFunctionsImExpRequestParameter undocumented +type WorkbookFunctionsImExpRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImLnRequestParameter undocumented +type WorkbookFunctionsImLnRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImLog10RequestParameter undocumented +type WorkbookFunctionsImLog10RequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImLog2RequestParameter undocumented +type WorkbookFunctionsImLog2RequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImPowerRequestParameter undocumented +type WorkbookFunctionsImPowerRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsImProductRequestParameter undocumented +type WorkbookFunctionsImProductRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsImRealRequestParameter undocumented +type WorkbookFunctionsImRealRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSecRequestParameter undocumented +type WorkbookFunctionsImSecRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSechRequestParameter undocumented +type WorkbookFunctionsImSechRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSinRequestParameter undocumented +type WorkbookFunctionsImSinRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSinhRequestParameter undocumented +type WorkbookFunctionsImSinhRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSqrtRequestParameter undocumented +type WorkbookFunctionsImSqrtRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImSubRequestParameter undocumented +type WorkbookFunctionsImSubRequestParameter struct { + // Inumber1 undocumented + Inumber1 json.RawMessage `json:"inumber1,omitempty"` + // Inumber2 undocumented + Inumber2 json.RawMessage `json:"inumber2,omitempty"` +} + +// WorkbookFunctionsImSumRequestParameter undocumented +type WorkbookFunctionsImSumRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsImTanRequestParameter undocumented +type WorkbookFunctionsImTanRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsImaginaryRequestParameter undocumented +type WorkbookFunctionsImaginaryRequestParameter struct { + // Inumber undocumented + Inumber json.RawMessage `json:"inumber,omitempty"` +} + +// WorkbookFunctionsIntRequestParameter undocumented +type WorkbookFunctionsIntRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsIntRateRequestParameter undocumented +type WorkbookFunctionsIntRateRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Investment undocumented + Investment json.RawMessage `json:"investment,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsIpmtRequestParameter undocumented +type WorkbookFunctionsIpmtRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Per undocumented + Per json.RawMessage `json:"per,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsIrrRequestParameter undocumented +type WorkbookFunctionsIrrRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Guess undocumented + Guess json.RawMessage `json:"guess,omitempty"` +} + +// WorkbookFunctionsIsErrRequestParameter undocumented +type WorkbookFunctionsIsErrRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsErrorRequestParameter undocumented +type WorkbookFunctionsIsErrorRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsEvenRequestParameter undocumented +type WorkbookFunctionsIsEvenRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsIsFormulaRequestParameter undocumented +type WorkbookFunctionsIsFormulaRequestParameter struct { + // Reference undocumented + Reference json.RawMessage `json:"reference,omitempty"` +} + +// WorkbookFunctionsIsLogicalRequestParameter undocumented +type WorkbookFunctionsIsLogicalRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsNARequestParameter undocumented +type WorkbookFunctionsIsNARequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsNonTextRequestParameter undocumented +type WorkbookFunctionsIsNonTextRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsNumberRequestParameter undocumented +type WorkbookFunctionsIsNumberRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsOddRequestParameter undocumented +type WorkbookFunctionsIsOddRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsIsTextRequestParameter undocumented +type WorkbookFunctionsIsTextRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsIsoWeekNumRequestParameter undocumented +type WorkbookFunctionsIsoWeekNumRequestParameter struct { + // Date undocumented + Date json.RawMessage `json:"date,omitempty"` +} + +// WorkbookFunctionsIspmtRequestParameter undocumented +type WorkbookFunctionsIspmtRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Per undocumented + Per json.RawMessage `json:"per,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` +} + +// WorkbookFunctionsIsrefRequestParameter undocumented +type WorkbookFunctionsIsrefRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsKurtRequestParameter undocumented +type WorkbookFunctionsKurtRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsLargeRequestParameter undocumented +type WorkbookFunctionsLargeRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // K undocumented + K json.RawMessage `json:"k,omitempty"` +} + +// WorkbookFunctionsLcmRequestParameter undocumented +type WorkbookFunctionsLcmRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsLeftRequestParameter undocumented +type WorkbookFunctionsLeftRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // NumChars undocumented + NumChars json.RawMessage `json:"numChars,omitempty"` +} + +// WorkbookFunctionsLeftbRequestParameter undocumented +type WorkbookFunctionsLeftbRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // NumBytes undocumented + NumBytes json.RawMessage `json:"numBytes,omitempty"` +} + +// WorkbookFunctionsLenRequestParameter undocumented +type WorkbookFunctionsLenRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsLenbRequestParameter undocumented +type WorkbookFunctionsLenbRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsLnRequestParameter undocumented +type WorkbookFunctionsLnRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsLogRequestParameter undocumented +type WorkbookFunctionsLogRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Base undocumented + Base json.RawMessage `json:"base,omitempty"` +} + +// WorkbookFunctionsLog10RequestParameter undocumented +type WorkbookFunctionsLog10RequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsLogNorm_DistRequestParameter undocumented +type WorkbookFunctionsLogNorm_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsLogNorm_InvRequestParameter undocumented +type WorkbookFunctionsLogNorm_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` +} + +// WorkbookFunctionsLookupRequestParameter undocumented +type WorkbookFunctionsLookupRequestParameter struct { + // LookupValue undocumented + LookupValue json.RawMessage `json:"lookupValue,omitempty"` + // LookupVector undocumented + LookupVector json.RawMessage `json:"lookupVector,omitempty"` + // ResultVector undocumented + ResultVector json.RawMessage `json:"resultVector,omitempty"` +} + +// WorkbookFunctionsLowerRequestParameter undocumented +type WorkbookFunctionsLowerRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsMdurationRequestParameter undocumented +type WorkbookFunctionsMdurationRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Coupon undocumented + Coupon json.RawMessage `json:"coupon,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsMirrRequestParameter undocumented +type WorkbookFunctionsMirrRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // FinanceRate undocumented + FinanceRate json.RawMessage `json:"financeRate,omitempty"` + // ReinvestRate undocumented + ReinvestRate json.RawMessage `json:"reinvestRate,omitempty"` +} + +// WorkbookFunctionsMroundRequestParameter undocumented +type WorkbookFunctionsMroundRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Multiple undocumented + Multiple json.RawMessage `json:"multiple,omitempty"` +} + +// WorkbookFunctionsMatchRequestParameter undocumented +type WorkbookFunctionsMatchRequestParameter struct { + // LookupValue undocumented + LookupValue json.RawMessage `json:"lookupValue,omitempty"` + // LookupArray undocumented + LookupArray json.RawMessage `json:"lookupArray,omitempty"` + // MatchType undocumented + MatchType json.RawMessage `json:"matchType,omitempty"` +} + +// WorkbookFunctionsMaxRequestParameter undocumented +type WorkbookFunctionsMaxRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsMaxARequestParameter undocumented +type WorkbookFunctionsMaxARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsMedianRequestParameter undocumented +type WorkbookFunctionsMedianRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsMidRequestParameter undocumented +type WorkbookFunctionsMidRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` + // NumChars undocumented + NumChars json.RawMessage `json:"numChars,omitempty"` +} + +// WorkbookFunctionsMidbRequestParameter undocumented +type WorkbookFunctionsMidbRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` + // NumBytes undocumented + NumBytes json.RawMessage `json:"numBytes,omitempty"` +} + +// WorkbookFunctionsMinRequestParameter undocumented +type WorkbookFunctionsMinRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsMinARequestParameter undocumented +type WorkbookFunctionsMinARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsMinuteRequestParameter undocumented +type WorkbookFunctionsMinuteRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsModRequestParameter undocumented +type WorkbookFunctionsModRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Divisor undocumented + Divisor json.RawMessage `json:"divisor,omitempty"` +} + +// WorkbookFunctionsMonthRequestParameter undocumented +type WorkbookFunctionsMonthRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsMultiNomialRequestParameter undocumented +type WorkbookFunctionsMultiNomialRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsNRequestParameter undocumented +type WorkbookFunctionsNRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsNperRequestParameter undocumented +type WorkbookFunctionsNperRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pmt undocumented + Pmt json.RawMessage `json:"pmt,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsNaRequestParameter undocumented +type WorkbookFunctionsNaRequestParameter struct { +} + +// WorkbookFunctionsNegBinom_DistRequestParameter undocumented +type WorkbookFunctionsNegBinom_DistRequestParameter struct { + // NumberF undocumented + NumberF json.RawMessage `json:"numberF,omitempty"` + // NumberS undocumented + NumberS json.RawMessage `json:"numberS,omitempty"` + // ProbabilityS undocumented + ProbabilityS json.RawMessage `json:"probabilityS,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsNetworkDaysRequestParameter undocumented +type WorkbookFunctionsNetworkDaysRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // EndDate undocumented + EndDate json.RawMessage `json:"endDate,omitempty"` + // Holidays undocumented + Holidays json.RawMessage `json:"holidays,omitempty"` +} + +// WorkbookFunctionsNetworkDays_IntlRequestParameter undocumented +type WorkbookFunctionsNetworkDays_IntlRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // EndDate undocumented + EndDate json.RawMessage `json:"endDate,omitempty"` + // Weekend undocumented + Weekend json.RawMessage `json:"weekend,omitempty"` + // Holidays undocumented + Holidays json.RawMessage `json:"holidays,omitempty"` +} + +// WorkbookFunctionsNominalRequestParameter undocumented +type WorkbookFunctionsNominalRequestParameter struct { + // EffectRate undocumented + EffectRate json.RawMessage `json:"effectRate,omitempty"` + // Npery undocumented + Npery json.RawMessage `json:"npery,omitempty"` +} + +// WorkbookFunctionsNorm_DistRequestParameter undocumented +type WorkbookFunctionsNorm_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsNorm_InvRequestParameter undocumented +type WorkbookFunctionsNorm_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` +} + +// WorkbookFunctionsNorm_S_DistRequestParameter undocumented +type WorkbookFunctionsNorm_S_DistRequestParameter struct { + // Z undocumented + Z json.RawMessage `json:"z,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsNorm_S_InvRequestParameter undocumented +type WorkbookFunctionsNorm_S_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` +} + +// WorkbookFunctionsNotRequestParameter undocumented +type WorkbookFunctionsNotRequestParameter struct { + // Logical undocumented + Logical json.RawMessage `json:"logical,omitempty"` +} + +// WorkbookFunctionsNowRequestParameter undocumented +type WorkbookFunctionsNowRequestParameter struct { +} + +// WorkbookFunctionsNpvRequestParameter undocumented +type WorkbookFunctionsNpvRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsNumberValueRequestParameter undocumented +type WorkbookFunctionsNumberValueRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // DecimalSeparator undocumented + DecimalSeparator json.RawMessage `json:"decimalSeparator,omitempty"` + // GroupSeparator undocumented + GroupSeparator json.RawMessage `json:"groupSeparator,omitempty"` +} + +// WorkbookFunctionsOct2BinRequestParameter undocumented +type WorkbookFunctionsOct2BinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsOct2DecRequestParameter undocumented +type WorkbookFunctionsOct2DecRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsOct2HexRequestParameter undocumented +type WorkbookFunctionsOct2HexRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Places undocumented + Places json.RawMessage `json:"places,omitempty"` +} + +// WorkbookFunctionsOddRequestParameter undocumented +type WorkbookFunctionsOddRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsOddFPriceRequestParameter undocumented +type WorkbookFunctionsOddFPriceRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // FirstCoupon undocumented + FirstCoupon json.RawMessage `json:"firstCoupon,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsOddFYieldRequestParameter undocumented +type WorkbookFunctionsOddFYieldRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // FirstCoupon undocumented + FirstCoupon json.RawMessage `json:"firstCoupon,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsOddLPriceRequestParameter undocumented +type WorkbookFunctionsOddLPriceRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // LastInterest undocumented + LastInterest json.RawMessage `json:"lastInterest,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsOddLYieldRequestParameter undocumented +type WorkbookFunctionsOddLYieldRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // LastInterest undocumented + LastInterest json.RawMessage `json:"lastInterest,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsOrRequestParameter undocumented +type WorkbookFunctionsOrRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsPdurationRequestParameter undocumented +type WorkbookFunctionsPdurationRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` +} + +// WorkbookFunctionsPercentRank_ExcRequestParameter undocumented +type WorkbookFunctionsPercentRank_ExcRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsPercentRank_IncRequestParameter undocumented +type WorkbookFunctionsPercentRank_IncRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Significance undocumented + Significance json.RawMessage `json:"significance,omitempty"` +} + +// WorkbookFunctionsPercentile_ExcRequestParameter undocumented +type WorkbookFunctionsPercentile_ExcRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // K undocumented + K json.RawMessage `json:"k,omitempty"` +} + +// WorkbookFunctionsPercentile_IncRequestParameter undocumented +type WorkbookFunctionsPercentile_IncRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // K undocumented + K json.RawMessage `json:"k,omitempty"` +} + +// WorkbookFunctionsPermutRequestParameter undocumented +type WorkbookFunctionsPermutRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumberChosen undocumented + NumberChosen json.RawMessage `json:"numberChosen,omitempty"` +} + +// WorkbookFunctionsPermutationaRequestParameter undocumented +type WorkbookFunctionsPermutationaRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumberChosen undocumented + NumberChosen json.RawMessage `json:"numberChosen,omitempty"` +} + +// WorkbookFunctionsPhiRequestParameter undocumented +type WorkbookFunctionsPhiRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` +} + +// WorkbookFunctionsPiRequestParameter undocumented +type WorkbookFunctionsPiRequestParameter struct { +} + +// WorkbookFunctionsPmtRequestParameter undocumented +type WorkbookFunctionsPmtRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsPoisson_DistRequestParameter undocumented +type WorkbookFunctionsPoisson_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsPowerRequestParameter undocumented +type WorkbookFunctionsPowerRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Power undocumented + Power json.RawMessage `json:"power,omitempty"` +} + +// WorkbookFunctionsPpmtRequestParameter undocumented +type WorkbookFunctionsPpmtRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Per undocumented + Per json.RawMessage `json:"per,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsPriceRequestParameter undocumented +type WorkbookFunctionsPriceRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsPriceDiscRequestParameter undocumented +type WorkbookFunctionsPriceDiscRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Discount undocumented + Discount json.RawMessage `json:"discount,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsPriceMatRequestParameter undocumented +type WorkbookFunctionsPriceMatRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Yld undocumented + Yld json.RawMessage `json:"yld,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsProductRequestParameter undocumented +type WorkbookFunctionsProductRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsProperRequestParameter undocumented +type WorkbookFunctionsProperRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsPvRequestParameter undocumented +type WorkbookFunctionsPvRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pmt undocumented + Pmt json.RawMessage `json:"pmt,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` +} + +// WorkbookFunctionsQuartile_ExcRequestParameter undocumented +type WorkbookFunctionsQuartile_ExcRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // Quart undocumented + Quart json.RawMessage `json:"quart,omitempty"` +} + +// WorkbookFunctionsQuartile_IncRequestParameter undocumented +type WorkbookFunctionsQuartile_IncRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // Quart undocumented + Quart json.RawMessage `json:"quart,omitempty"` +} + +// WorkbookFunctionsQuotientRequestParameter undocumented +type WorkbookFunctionsQuotientRequestParameter struct { + // Numerator undocumented + Numerator json.RawMessage `json:"numerator,omitempty"` + // Denominator undocumented + Denominator json.RawMessage `json:"denominator,omitempty"` +} + +// WorkbookFunctionsRadiansRequestParameter undocumented +type WorkbookFunctionsRadiansRequestParameter struct { + // Angle undocumented + Angle json.RawMessage `json:"angle,omitempty"` +} + +// WorkbookFunctionsRandRequestParameter undocumented +type WorkbookFunctionsRandRequestParameter struct { +} + +// WorkbookFunctionsRandBetweenRequestParameter undocumented +type WorkbookFunctionsRandBetweenRequestParameter struct { + // Bottom undocumented + Bottom json.RawMessage `json:"bottom,omitempty"` + // Top undocumented + Top json.RawMessage `json:"top,omitempty"` +} + +// WorkbookFunctionsRank_AvgRequestParameter undocumented +type WorkbookFunctionsRank_AvgRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Ref undocumented + Ref json.RawMessage `json:"ref,omitempty"` + // Order undocumented + Order json.RawMessage `json:"order,omitempty"` +} + +// WorkbookFunctionsRank_EqRequestParameter undocumented +type WorkbookFunctionsRank_EqRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Ref undocumented + Ref json.RawMessage `json:"ref,omitempty"` + // Order undocumented + Order json.RawMessage `json:"order,omitempty"` +} + +// WorkbookFunctionsRateRequestParameter undocumented +type WorkbookFunctionsRateRequestParameter struct { + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pmt undocumented + Pmt json.RawMessage `json:"pmt,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` + // Type undocumented + Type json.RawMessage `json:"type,omitempty"` + // Guess undocumented + Guess json.RawMessage `json:"guess,omitempty"` +} + +// WorkbookFunctionsReceivedRequestParameter undocumented +type WorkbookFunctionsReceivedRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Investment undocumented + Investment json.RawMessage `json:"investment,omitempty"` + // Discount undocumented + Discount json.RawMessage `json:"discount,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsReplaceRequestParameter undocumented +type WorkbookFunctionsReplaceRequestParameter struct { + // OldText undocumented + OldText json.RawMessage `json:"oldText,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` + // NumChars undocumented + NumChars json.RawMessage `json:"numChars,omitempty"` + // NewText undocumented + NewText json.RawMessage `json:"newText,omitempty"` +} + +// WorkbookFunctionsReplaceBRequestParameter undocumented +type WorkbookFunctionsReplaceBRequestParameter struct { + // OldText undocumented + OldText json.RawMessage `json:"oldText,omitempty"` + // StartNum undocumented + StartNum json.RawMessage `json:"startNum,omitempty"` + // NumBytes undocumented + NumBytes json.RawMessage `json:"numBytes,omitempty"` + // NewText undocumented + NewText json.RawMessage `json:"newText,omitempty"` +} + +// WorkbookFunctionsReptRequestParameter undocumented +type WorkbookFunctionsReptRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // NumberTimes undocumented + NumberTimes json.RawMessage `json:"numberTimes,omitempty"` +} + +// WorkbookFunctionsRightRequestParameter undocumented +type WorkbookFunctionsRightRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // NumChars undocumented + NumChars json.RawMessage `json:"numChars,omitempty"` +} + +// WorkbookFunctionsRightbRequestParameter undocumented +type WorkbookFunctionsRightbRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // NumBytes undocumented + NumBytes json.RawMessage `json:"numBytes,omitempty"` +} + +// WorkbookFunctionsRomanRequestParameter undocumented +type WorkbookFunctionsRomanRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Form undocumented + Form json.RawMessage `json:"form,omitempty"` +} + +// WorkbookFunctionsRoundRequestParameter undocumented +type WorkbookFunctionsRoundRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumDigits undocumented + NumDigits json.RawMessage `json:"numDigits,omitempty"` +} + +// WorkbookFunctionsRoundDownRequestParameter undocumented +type WorkbookFunctionsRoundDownRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumDigits undocumented + NumDigits json.RawMessage `json:"numDigits,omitempty"` +} + +// WorkbookFunctionsRoundUpRequestParameter undocumented +type WorkbookFunctionsRoundUpRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumDigits undocumented + NumDigits json.RawMessage `json:"numDigits,omitempty"` +} + +// WorkbookFunctionsRowsRequestParameter undocumented +type WorkbookFunctionsRowsRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` +} + +// WorkbookFunctionsRriRequestParameter undocumented +type WorkbookFunctionsRriRequestParameter struct { + // Nper undocumented + Nper json.RawMessage `json:"nper,omitempty"` + // Pv undocumented + Pv json.RawMessage `json:"pv,omitempty"` + // Fv undocumented + Fv json.RawMessage `json:"fv,omitempty"` +} + +// WorkbookFunctionsSecRequestParameter undocumented +type WorkbookFunctionsSecRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSechRequestParameter undocumented +type WorkbookFunctionsSechRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSecondRequestParameter undocumented +type WorkbookFunctionsSecondRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsSeriesSumRequestParameter undocumented +type WorkbookFunctionsSeriesSumRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // N undocumented + N json.RawMessage `json:"n,omitempty"` + // M undocumented + M json.RawMessage `json:"m,omitempty"` + // Coefficients undocumented + Coefficients json.RawMessage `json:"coefficients,omitempty"` +} + +// WorkbookFunctionsSheetRequestParameter undocumented +type WorkbookFunctionsSheetRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsSheetsRequestParameter undocumented +type WorkbookFunctionsSheetsRequestParameter struct { + // Reference undocumented + Reference json.RawMessage `json:"reference,omitempty"` +} + +// WorkbookFunctionsSignRequestParameter undocumented +type WorkbookFunctionsSignRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSinRequestParameter undocumented +type WorkbookFunctionsSinRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSinhRequestParameter undocumented +type WorkbookFunctionsSinhRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSkewRequestParameter undocumented +type WorkbookFunctionsSkewRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSkew_pRequestParameter undocumented +type WorkbookFunctionsSkew_pRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSlnRequestParameter undocumented +type WorkbookFunctionsSlnRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Life undocumented + Life json.RawMessage `json:"life,omitempty"` +} + +// WorkbookFunctionsSmallRequestParameter undocumented +type WorkbookFunctionsSmallRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // K undocumented + K json.RawMessage `json:"k,omitempty"` +} + +// WorkbookFunctionsSqrtRequestParameter undocumented +type WorkbookFunctionsSqrtRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsSqrtPiRequestParameter undocumented +type WorkbookFunctionsSqrtPiRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsStDevARequestParameter undocumented +type WorkbookFunctionsStDevARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsStDevPARequestParameter undocumented +type WorkbookFunctionsStDevPARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsStDev_PRequestParameter undocumented +type WorkbookFunctionsStDev_PRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsStDev_SRequestParameter undocumented +type WorkbookFunctionsStDev_SRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsStandardizeRequestParameter undocumented +type WorkbookFunctionsStandardizeRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Mean undocumented + Mean json.RawMessage `json:"mean,omitempty"` + // StandardDev undocumented + StandardDev json.RawMessage `json:"standardDev,omitempty"` +} + +// WorkbookFunctionsSubstituteRequestParameter undocumented +type WorkbookFunctionsSubstituteRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // OldText undocumented + OldText json.RawMessage `json:"oldText,omitempty"` + // NewText undocumented + NewText json.RawMessage `json:"newText,omitempty"` + // InstanceNum undocumented + InstanceNum json.RawMessage `json:"instanceNum,omitempty"` +} + +// WorkbookFunctionsSubtotalRequestParameter undocumented +type WorkbookFunctionsSubtotalRequestParameter struct { + // FunctionNum undocumented + FunctionNum json.RawMessage `json:"functionNum,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSumRequestParameter undocumented +type WorkbookFunctionsSumRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSumIfRequestParameter undocumented +type WorkbookFunctionsSumIfRequestParameter struct { + // Range undocumented + Range json.RawMessage `json:"range,omitempty"` + // Criteria undocumented + Criteria json.RawMessage `json:"criteria,omitempty"` + // SumRange undocumented + SumRange json.RawMessage `json:"sumRange,omitempty"` +} + +// WorkbookFunctionsSumIfsRequestParameter undocumented +type WorkbookFunctionsSumIfsRequestParameter struct { + // SumRange undocumented + SumRange json.RawMessage `json:"sumRange,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSumSqRequestParameter undocumented +type WorkbookFunctionsSumSqRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsSydRequestParameter undocumented +type WorkbookFunctionsSydRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Life undocumented + Life json.RawMessage `json:"life,omitempty"` + // Per undocumented + Per json.RawMessage `json:"per,omitempty"` +} + +// WorkbookFunctionsTRequestParameter undocumented +type WorkbookFunctionsTRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsTbillEqRequestParameter undocumented +type WorkbookFunctionsTbillEqRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Discount undocumented + Discount json.RawMessage `json:"discount,omitempty"` +} + +// WorkbookFunctionsTbillPriceRequestParameter undocumented +type WorkbookFunctionsTbillPriceRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Discount undocumented + Discount json.RawMessage `json:"discount,omitempty"` +} + +// WorkbookFunctionsTbillYieldRequestParameter undocumented +type WorkbookFunctionsTbillYieldRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` +} + +// WorkbookFunctionsT_DistRequestParameter undocumented +type WorkbookFunctionsT_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsT_Dist_2TRequestParameter undocumented +type WorkbookFunctionsT_Dist_2TRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsT_Dist_RTRequestParameter undocumented +type WorkbookFunctionsT_Dist_RTRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsT_InvRequestParameter undocumented +type WorkbookFunctionsT_InvRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsT_Inv_2TRequestParameter undocumented +type WorkbookFunctionsT_Inv_2TRequestParameter struct { + // Probability undocumented + Probability json.RawMessage `json:"probability,omitempty"` + // DegFreedom undocumented + DegFreedom json.RawMessage `json:"degFreedom,omitempty"` +} + +// WorkbookFunctionsTanRequestParameter undocumented +type WorkbookFunctionsTanRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsTanhRequestParameter undocumented +type WorkbookFunctionsTanhRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsTextRequestParameter undocumented +type WorkbookFunctionsTextRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` + // FormatText undocumented + FormatText json.RawMessage `json:"formatText,omitempty"` +} + +// WorkbookFunctionsTimeRequestParameter undocumented +type WorkbookFunctionsTimeRequestParameter struct { + // Hour undocumented + Hour json.RawMessage `json:"hour,omitempty"` + // Minute undocumented + Minute json.RawMessage `json:"minute,omitempty"` + // Second undocumented + Second json.RawMessage `json:"second,omitempty"` +} + +// WorkbookFunctionsTimevalueRequestParameter undocumented +type WorkbookFunctionsTimevalueRequestParameter struct { + // TimeText undocumented + TimeText json.RawMessage `json:"timeText,omitempty"` +} + +// WorkbookFunctionsTodayRequestParameter undocumented +type WorkbookFunctionsTodayRequestParameter struct { +} + +// WorkbookFunctionsTrimRequestParameter undocumented +type WorkbookFunctionsTrimRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsTrimMeanRequestParameter undocumented +type WorkbookFunctionsTrimMeanRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // Percent undocumented + Percent json.RawMessage `json:"percent,omitempty"` +} + +// WorkbookFunctionsTrueRequestParameter undocumented +type WorkbookFunctionsTrueRequestParameter struct { +} + +// WorkbookFunctionsTruncRequestParameter undocumented +type WorkbookFunctionsTruncRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // NumDigits undocumented + NumDigits json.RawMessage `json:"numDigits,omitempty"` +} + +// WorkbookFunctionsTypeRequestParameter undocumented +type WorkbookFunctionsTypeRequestParameter struct { + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctionsUsdollarRequestParameter undocumented +type WorkbookFunctionsUsdollarRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` + // Decimals undocumented + Decimals json.RawMessage `json:"decimals,omitempty"` +} + +// WorkbookFunctionsUnicharRequestParameter undocumented +type WorkbookFunctionsUnicharRequestParameter struct { + // Number undocumented + Number json.RawMessage `json:"number,omitempty"` +} + +// WorkbookFunctionsUnicodeRequestParameter undocumented +type WorkbookFunctionsUnicodeRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsUpperRequestParameter undocumented +type WorkbookFunctionsUpperRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsVlookupRequestParameter undocumented +type WorkbookFunctionsVlookupRequestParameter struct { + // LookupValue undocumented + LookupValue json.RawMessage `json:"lookupValue,omitempty"` + // TableArray undocumented + TableArray json.RawMessage `json:"tableArray,omitempty"` + // ColIndexNum undocumented + ColIndexNum json.RawMessage `json:"colIndexNum,omitempty"` + // RangeLookup undocumented + RangeLookup json.RawMessage `json:"rangeLookup,omitempty"` +} + +// WorkbookFunctionsValueRequestParameter undocumented +type WorkbookFunctionsValueRequestParameter struct { + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` +} + +// WorkbookFunctionsVarARequestParameter undocumented +type WorkbookFunctionsVarARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsVarPARequestParameter undocumented +type WorkbookFunctionsVarPARequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsVar_PRequestParameter undocumented +type WorkbookFunctionsVar_PRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsVar_SRequestParameter undocumented +type WorkbookFunctionsVar_SRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsVdbRequestParameter undocumented +type WorkbookFunctionsVdbRequestParameter struct { + // Cost undocumented + Cost json.RawMessage `json:"cost,omitempty"` + // Salvage undocumented + Salvage json.RawMessage `json:"salvage,omitempty"` + // Life undocumented + Life json.RawMessage `json:"life,omitempty"` + // StartPeriod undocumented + StartPeriod json.RawMessage `json:"startPeriod,omitempty"` + // EndPeriod undocumented + EndPeriod json.RawMessage `json:"endPeriod,omitempty"` + // Factor undocumented + Factor json.RawMessage `json:"factor,omitempty"` + // NoSwitch undocumented + NoSwitch json.RawMessage `json:"noSwitch,omitempty"` +} + +// WorkbookFunctionsWeekNumRequestParameter undocumented +type WorkbookFunctionsWeekNumRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` + // ReturnType undocumented + ReturnType json.RawMessage `json:"returnType,omitempty"` +} + +// WorkbookFunctionsWeekdayRequestParameter undocumented +type WorkbookFunctionsWeekdayRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` + // ReturnType undocumented + ReturnType json.RawMessage `json:"returnType,omitempty"` +} + +// WorkbookFunctionsWeibull_DistRequestParameter undocumented +type WorkbookFunctionsWeibull_DistRequestParameter struct { + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Alpha undocumented + Alpha json.RawMessage `json:"alpha,omitempty"` + // Beta undocumented + Beta json.RawMessage `json:"beta,omitempty"` + // Cumulative undocumented + Cumulative json.RawMessage `json:"cumulative,omitempty"` +} + +// WorkbookFunctionsWorkDayRequestParameter undocumented +type WorkbookFunctionsWorkDayRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // Days undocumented + Days json.RawMessage `json:"days,omitempty"` + // Holidays undocumented + Holidays json.RawMessage `json:"holidays,omitempty"` +} + +// WorkbookFunctionsWorkDay_IntlRequestParameter undocumented +type WorkbookFunctionsWorkDay_IntlRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // Days undocumented + Days json.RawMessage `json:"days,omitempty"` + // Weekend undocumented + Weekend json.RawMessage `json:"weekend,omitempty"` + // Holidays undocumented + Holidays json.RawMessage `json:"holidays,omitempty"` +} + +// WorkbookFunctionsXirrRequestParameter undocumented +type WorkbookFunctionsXirrRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Dates undocumented + Dates json.RawMessage `json:"dates,omitempty"` + // Guess undocumented + Guess json.RawMessage `json:"guess,omitempty"` +} + +// WorkbookFunctionsXnpvRequestParameter undocumented +type WorkbookFunctionsXnpvRequestParameter struct { + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Dates undocumented + Dates json.RawMessage `json:"dates,omitempty"` +} + +// WorkbookFunctionsXorRequestParameter undocumented +type WorkbookFunctionsXorRequestParameter struct { + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFunctionsYearRequestParameter undocumented +type WorkbookFunctionsYearRequestParameter struct { + // SerialNumber undocumented + SerialNumber json.RawMessage `json:"serialNumber,omitempty"` +} + +// WorkbookFunctionsYearFracRequestParameter undocumented +type WorkbookFunctionsYearFracRequestParameter struct { + // StartDate undocumented + StartDate json.RawMessage `json:"startDate,omitempty"` + // EndDate undocumented + EndDate json.RawMessage `json:"endDate,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsYieldRequestParameter undocumented +type WorkbookFunctionsYieldRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Frequency undocumented + Frequency json.RawMessage `json:"frequency,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsYieldDiscRequestParameter undocumented +type WorkbookFunctionsYieldDiscRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Redemption undocumented + Redemption json.RawMessage `json:"redemption,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsYieldMatRequestParameter undocumented +type WorkbookFunctionsYieldMatRequestParameter struct { + // Settlement undocumented + Settlement json.RawMessage `json:"settlement,omitempty"` + // Maturity undocumented + Maturity json.RawMessage `json:"maturity,omitempty"` + // Issue undocumented + Issue json.RawMessage `json:"issue,omitempty"` + // Rate undocumented + Rate json.RawMessage `json:"rate,omitempty"` + // Pr undocumented + Pr json.RawMessage `json:"pr,omitempty"` + // Basis undocumented + Basis json.RawMessage `json:"basis,omitempty"` +} + +// WorkbookFunctionsZ_TestRequestParameter undocumented +type WorkbookFunctionsZ_TestRequestParameter struct { + // Array undocumented + Array json.RawMessage `json:"array,omitempty"` + // X undocumented + X json.RawMessage `json:"x,omitempty"` + // Sigma undocumented + Sigma json.RawMessage `json:"sigma,omitempty"` +} + +// WorkbookPivotTableRefreshRequestParameter undocumented +type WorkbookPivotTableRefreshRequestParameter struct { +} + +// WorkbookRangeClearRequestParameter undocumented +type WorkbookRangeClearRequestParameter struct { + // ApplyTo undocumented + ApplyTo *string `json:"applyTo,omitempty"` +} + +// WorkbookRangeDeleteRequestParameter undocumented +type WorkbookRangeDeleteRequestParameter struct { + // Shift undocumented + Shift *string `json:"shift,omitempty"` +} + +// WorkbookRangeInsertRequestParameter undocumented +type WorkbookRangeInsertRequestParameter struct { + // Shift undocumented + Shift *string `json:"shift,omitempty"` +} + +// WorkbookRangeMergeRequestParameter undocumented +type WorkbookRangeMergeRequestParameter struct { + // Across undocumented + Across *bool `json:"across,omitempty"` +} + +// WorkbookRangeUnmergeRequestParameter undocumented +type WorkbookRangeUnmergeRequestParameter struct { +} + +// WorkbookRangeFillClearRequestParameter undocumented +type WorkbookRangeFillClearRequestParameter struct { +} + +// WorkbookRangeFormatAutofitColumnsRequestParameter undocumented +type WorkbookRangeFormatAutofitColumnsRequestParameter struct { +} + +// WorkbookRangeFormatAutofitRowsRequestParameter undocumented +type WorkbookRangeFormatAutofitRowsRequestParameter struct { +} + +// WorkbookRangeSortApplyRequestParameter undocumented +type WorkbookRangeSortApplyRequestParameter struct { + // Fields undocumented + Fields []WorkbookSortField `json:"fields,omitempty"` + // MatchCase undocumented + MatchCase *bool `json:"matchCase,omitempty"` + // HasHeaders undocumented + HasHeaders *bool `json:"hasHeaders,omitempty"` + // Orientation undocumented + Orientation *string `json:"orientation,omitempty"` + // Method undocumented + Method *string `json:"method,omitempty"` +} + +// WorkbookTableClearFiltersRequestParameter undocumented +type WorkbookTableClearFiltersRequestParameter struct { +} + +// WorkbookTableConvertToRangeRequestParameter undocumented +type WorkbookTableConvertToRangeRequestParameter struct { +} + +// WorkbookTableReapplyFiltersRequestParameter undocumented +type WorkbookTableReapplyFiltersRequestParameter struct { +} + +// WorkbookTableSortApplyRequestParameter undocumented +type WorkbookTableSortApplyRequestParameter struct { + // Fields undocumented + Fields []WorkbookSortField `json:"fields,omitempty"` + // MatchCase undocumented + MatchCase *bool `json:"matchCase,omitempty"` + // Method undocumented + Method *string `json:"method,omitempty"` +} + +// WorkbookTableSortClearRequestParameter undocumented +type WorkbookTableSortClearRequestParameter struct { +} + +// WorkbookTableSortReapplyRequestParameter undocumented +type WorkbookTableSortReapplyRequestParameter struct { +} + +// WorkbookWorksheetProtectionProtectRequestParameter undocumented +type WorkbookWorksheetProtectionProtectRequestParameter struct { + // Options undocumented + Options *WorkbookWorksheetProtectionOptions `json:"options,omitempty"` +} + +// WorkbookWorksheetProtectionUnprotectRequestParameter undocumented +type WorkbookWorksheetProtectionUnprotectRequestParameter struct { +} + +// Application is navigation property +func (b *WorkbookRequestBuilder) Application() *WorkbookApplicationRequestBuilder { + bb := &WorkbookApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/application" + return bb +} + +// Comments returns request builder for WorkbookComment collection +func (b *WorkbookRequestBuilder) Comments() *WorkbookCommentsCollectionRequestBuilder { + bb := &WorkbookCommentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/comments" + return bb +} + +// WorkbookCommentsCollectionRequestBuilder is request builder for WorkbookComment collection +type WorkbookCommentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookComment collection +func (b *WorkbookCommentsCollectionRequestBuilder) Request() *WorkbookCommentsCollectionRequest { + return &WorkbookCommentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookComment item +func (b *WorkbookCommentsCollectionRequestBuilder) ID(id string) *WorkbookCommentRequestBuilder { + bb := &WorkbookCommentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookCommentsCollectionRequest is request for WorkbookComment collection +type WorkbookCommentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookComment collection +func (r *WorkbookCommentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookComment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookComment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookComment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookComment collection, max N pages +func (r *WorkbookCommentsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookComment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookComment collection +func (r *WorkbookCommentsCollectionRequest) Get(ctx context.Context) ([]WorkbookComment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookComment collection +func (r *WorkbookCommentsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookComment) (resObj *WorkbookComment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Functions is navigation property +func (b *WorkbookRequestBuilder) Functions() *WorkbookFunctionsRequestBuilder { + bb := &WorkbookFunctionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/functions" + return bb +} + +// Names returns request builder for WorkbookNamedItem collection +func (b *WorkbookRequestBuilder) Names() *WorkbookNamesCollectionRequestBuilder { + bb := &WorkbookNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/names" + return bb +} + +// WorkbookNamesCollectionRequestBuilder is request builder for WorkbookNamedItem collection +type WorkbookNamesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookNamedItem collection +func (b *WorkbookNamesCollectionRequestBuilder) Request() *WorkbookNamesCollectionRequest { + return &WorkbookNamesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookNamedItem item +func (b *WorkbookNamesCollectionRequestBuilder) ID(id string) *WorkbookNamedItemRequestBuilder { + bb := &WorkbookNamedItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookNamesCollectionRequest is request for WorkbookNamedItem collection +type WorkbookNamesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookNamedItem collection +func (r *WorkbookNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookNamedItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookNamedItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookNamedItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookNamedItem collection, max N pages +func (r *WorkbookNamesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookNamedItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookNamedItem collection +func (r *WorkbookNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookNamedItem collection +func (r *WorkbookNamesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookNamedItem) (resObj *WorkbookNamedItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Tables returns request builder for WorkbookTable collection +func (b *WorkbookRequestBuilder) Tables() *WorkbookTablesCollectionRequestBuilder { + bb := &WorkbookTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tables" + return bb +} + +// WorkbookTablesCollectionRequestBuilder is request builder for WorkbookTable collection +type WorkbookTablesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookTable collection +func (b *WorkbookTablesCollectionRequestBuilder) Request() *WorkbookTablesCollectionRequest { + return &WorkbookTablesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookTable item +func (b *WorkbookTablesCollectionRequestBuilder) ID(id string) *WorkbookTableRequestBuilder { + bb := &WorkbookTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookTablesCollectionRequest is request for WorkbookTable collection +type WorkbookTablesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookTable collection +func (r *WorkbookTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTable, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookTable + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookTable + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookTable collection, max N pages +func (r *WorkbookTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTable, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookTable collection +func (r *WorkbookTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookTable collection +func (r *WorkbookTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTable) (resObj *WorkbookTable, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Worksheets returns request builder for WorkbookWorksheet collection +func (b *WorkbookRequestBuilder) Worksheets() *WorkbookWorksheetsCollectionRequestBuilder { + bb := &WorkbookWorksheetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheets" + return bb +} + +// WorkbookWorksheetsCollectionRequestBuilder is request builder for WorkbookWorksheet collection +type WorkbookWorksheetsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookWorksheet collection +func (b *WorkbookWorksheetsCollectionRequestBuilder) Request() *WorkbookWorksheetsCollectionRequest { + return &WorkbookWorksheetsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookWorksheet item +func (b *WorkbookWorksheetsCollectionRequestBuilder) ID(id string) *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookWorksheetsCollectionRequest is request for WorkbookWorksheet collection +type WorkbookWorksheetsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookWorksheet collection +func (r *WorkbookWorksheetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookWorksheet, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookWorksheet + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookWorksheet + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookWorksheet collection, max N pages +func (r *WorkbookWorksheetsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookWorksheet, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookWorksheet collection +func (r *WorkbookWorksheetsCollectionRequest) Get(ctx context.Context) ([]WorkbookWorksheet, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookWorksheet collection +func (r *WorkbookWorksheetsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookWorksheet) (resObj *WorkbookWorksheet, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Axes is navigation property +func (b *WorkbookChartRequestBuilder) Axes() *WorkbookChartAxesRequestBuilder { + bb := &WorkbookChartAxesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/axes" + return bb +} + +// DataLabels is navigation property +func (b *WorkbookChartRequestBuilder) DataLabels() *WorkbookChartDataLabelsRequestBuilder { + bb := &WorkbookChartDataLabelsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dataLabels" + return bb +} + +// Format is navigation property +func (b *WorkbookChartRequestBuilder) Format() *WorkbookChartAreaFormatRequestBuilder { + bb := &WorkbookChartAreaFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Legend is navigation property +func (b *WorkbookChartRequestBuilder) Legend() *WorkbookChartLegendRequestBuilder { + bb := &WorkbookChartLegendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/legend" + return bb +} + +// Series returns request builder for WorkbookChartSeries collection +func (b *WorkbookChartRequestBuilder) Series() *WorkbookChartSeriesCollectionRequestBuilder { + bb := &WorkbookChartSeriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/series" + return bb +} + +// WorkbookChartSeriesCollectionRequestBuilder is request builder for WorkbookChartSeries collection +type WorkbookChartSeriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookChartSeries collection +func (b *WorkbookChartSeriesCollectionRequestBuilder) Request() *WorkbookChartSeriesCollectionRequest { + return &WorkbookChartSeriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookChartSeries item +func (b *WorkbookChartSeriesCollectionRequestBuilder) ID(id string) *WorkbookChartSeriesRequestBuilder { + bb := &WorkbookChartSeriesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookChartSeriesCollectionRequest is request for WorkbookChartSeries collection +type WorkbookChartSeriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookChartSeries collection +func (r *WorkbookChartSeriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChartSeries, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookChartSeries + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookChartSeries + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookChartSeries collection, max N pages +func (r *WorkbookChartSeriesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChartSeries, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookChartSeries collection +func (r *WorkbookChartSeriesCollectionRequest) Get(ctx context.Context) ([]WorkbookChartSeries, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookChartSeries collection +func (r *WorkbookChartSeriesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChartSeries) (resObj *WorkbookChartSeries, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Title is navigation property +func (b *WorkbookChartRequestBuilder) Title() *WorkbookChartTitleRequestBuilder { + bb := &WorkbookChartTitleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/title" + return bb +} + +// Worksheet is navigation property +func (b *WorkbookChartRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheet" + return bb +} + +// Fill is navigation property +func (b *WorkbookChartAreaFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Font is navigation property +func (b *WorkbookChartAreaFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// CategoryAxis is navigation property +func (b *WorkbookChartAxesRequestBuilder) CategoryAxis() *WorkbookChartAxisRequestBuilder { + bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/categoryAxis" + return bb +} + +// SeriesAxis is navigation property +func (b *WorkbookChartAxesRequestBuilder) SeriesAxis() *WorkbookChartAxisRequestBuilder { + bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/seriesAxis" + return bb +} + +// ValueAxis is navigation property +func (b *WorkbookChartAxesRequestBuilder) ValueAxis() *WorkbookChartAxisRequestBuilder { + bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/valueAxis" + return bb +} + +// Format is navigation property +func (b *WorkbookChartAxisRequestBuilder) Format() *WorkbookChartAxisFormatRequestBuilder { + bb := &WorkbookChartAxisFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// MajorGridlines is navigation property +func (b *WorkbookChartAxisRequestBuilder) MajorGridlines() *WorkbookChartGridlinesRequestBuilder { + bb := &WorkbookChartGridlinesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/majorGridlines" + return bb +} + +// MinorGridlines is navigation property +func (b *WorkbookChartAxisRequestBuilder) MinorGridlines() *WorkbookChartGridlinesRequestBuilder { + bb := &WorkbookChartGridlinesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/minorGridlines" + return bb +} + +// Title is navigation property +func (b *WorkbookChartAxisRequestBuilder) Title() *WorkbookChartAxisTitleRequestBuilder { + bb := &WorkbookChartAxisTitleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/title" + return bb +} + +// Font is navigation property +func (b *WorkbookChartAxisFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Line is navigation property +func (b *WorkbookChartAxisFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder { + bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/line" + return bb +} + +// Format is navigation property +func (b *WorkbookChartAxisTitleRequestBuilder) Format() *WorkbookChartAxisTitleFormatRequestBuilder { + bb := &WorkbookChartAxisTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Font is navigation property +func (b *WorkbookChartAxisTitleFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Fill is navigation property +func (b *WorkbookChartDataLabelFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Font is navigation property +func (b *WorkbookChartDataLabelFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Format is navigation property +func (b *WorkbookChartDataLabelsRequestBuilder) Format() *WorkbookChartDataLabelFormatRequestBuilder { + bb := &WorkbookChartDataLabelFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Format is navigation property +func (b *WorkbookChartGridlinesRequestBuilder) Format() *WorkbookChartGridlinesFormatRequestBuilder { + bb := &WorkbookChartGridlinesFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Line is navigation property +func (b *WorkbookChartGridlinesFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder { + bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/line" + return bb +} + +// Format is navigation property +func (b *WorkbookChartLegendRequestBuilder) Format() *WorkbookChartLegendFormatRequestBuilder { + bb := &WorkbookChartLegendFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Fill is navigation property +func (b *WorkbookChartLegendFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Font is navigation property +func (b *WorkbookChartLegendFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Format is navigation property +func (b *WorkbookChartPointRequestBuilder) Format() *WorkbookChartPointFormatRequestBuilder { + bb := &WorkbookChartPointFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Fill is navigation property +func (b *WorkbookChartPointFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Format is navigation property +func (b *WorkbookChartSeriesRequestBuilder) Format() *WorkbookChartSeriesFormatRequestBuilder { + bb := &WorkbookChartSeriesFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Points returns request builder for WorkbookChartPoint collection +func (b *WorkbookChartSeriesRequestBuilder) Points() *WorkbookChartSeriesPointsCollectionRequestBuilder { + bb := &WorkbookChartSeriesPointsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/points" + return bb +} + +// WorkbookChartSeriesPointsCollectionRequestBuilder is request builder for WorkbookChartPoint collection +type WorkbookChartSeriesPointsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookChartPoint collection +func (b *WorkbookChartSeriesPointsCollectionRequestBuilder) Request() *WorkbookChartSeriesPointsCollectionRequest { + return &WorkbookChartSeriesPointsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookChartPoint item +func (b *WorkbookChartSeriesPointsCollectionRequestBuilder) ID(id string) *WorkbookChartPointRequestBuilder { + bb := &WorkbookChartPointRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookChartSeriesPointsCollectionRequest is request for WorkbookChartPoint collection +type WorkbookChartSeriesPointsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookChartPoint collection +func (r *WorkbookChartSeriesPointsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChartPoint, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookChartPoint + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookChartPoint + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookChartPoint collection, max N pages +func (r *WorkbookChartSeriesPointsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChartPoint, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookChartPoint collection +func (r *WorkbookChartSeriesPointsCollectionRequest) Get(ctx context.Context) ([]WorkbookChartPoint, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookChartPoint collection +func (r *WorkbookChartSeriesPointsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChartPoint) (resObj *WorkbookChartPoint, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Fill is navigation property +func (b *WorkbookChartSeriesFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Line is navigation property +func (b *WorkbookChartSeriesFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder { + bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/line" + return bb +} + +// Format is navigation property +func (b *WorkbookChartTitleRequestBuilder) Format() *WorkbookChartTitleFormatRequestBuilder { + bb := &WorkbookChartTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Fill is navigation property +func (b *WorkbookChartTitleFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder { + bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Font is navigation property +func (b *WorkbookChartTitleFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder { + bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Replies returns request builder for WorkbookCommentReply collection +func (b *WorkbookCommentRequestBuilder) Replies() *WorkbookCommentRepliesCollectionRequestBuilder { + bb := &WorkbookCommentRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/replies" + return bb +} + +// WorkbookCommentRepliesCollectionRequestBuilder is request builder for WorkbookCommentReply collection +type WorkbookCommentRepliesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookCommentReply collection +func (b *WorkbookCommentRepliesCollectionRequestBuilder) Request() *WorkbookCommentRepliesCollectionRequest { + return &WorkbookCommentRepliesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookCommentReply item +func (b *WorkbookCommentRepliesCollectionRequestBuilder) ID(id string) *WorkbookCommentReplyRequestBuilder { + bb := &WorkbookCommentReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookCommentRepliesCollectionRequest is request for WorkbookCommentReply collection +type WorkbookCommentRepliesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookCommentReply collection +func (r *WorkbookCommentRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookCommentReply, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookCommentReply + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookCommentReply + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookCommentReply collection, max N pages +func (r *WorkbookCommentRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookCommentReply, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookCommentReply collection +func (r *WorkbookCommentRepliesCollectionRequest) Get(ctx context.Context) ([]WorkbookCommentReply, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookCommentReply collection +func (r *WorkbookCommentRepliesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookCommentReply) (resObj *WorkbookCommentReply, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Worksheet is navigation property +func (b *WorkbookNamedItemRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheet" + return bb +} + +// Worksheet is navigation property +func (b *WorkbookPivotTableRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheet" + return bb +} + +// Format is navigation property +func (b *WorkbookRangeRequestBuilder) Format() *WorkbookRangeFormatRequestBuilder { + bb := &WorkbookRangeFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/format" + return bb +} + +// Sort is navigation property +func (b *WorkbookRangeRequestBuilder) Sort() *WorkbookRangeSortRequestBuilder { + bb := &WorkbookRangeSortRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sort" + return bb +} + +// Worksheet is navigation property +func (b *WorkbookRangeRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheet" + return bb +} + +// Borders returns request builder for WorkbookRangeBorder collection +func (b *WorkbookRangeFormatRequestBuilder) Borders() *WorkbookRangeFormatBordersCollectionRequestBuilder { + bb := &WorkbookRangeFormatBordersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/borders" + return bb +} + +// WorkbookRangeFormatBordersCollectionRequestBuilder is request builder for WorkbookRangeBorder collection +type WorkbookRangeFormatBordersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookRangeBorder collection +func (b *WorkbookRangeFormatBordersCollectionRequestBuilder) Request() *WorkbookRangeFormatBordersCollectionRequest { + return &WorkbookRangeFormatBordersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookRangeBorder item +func (b *WorkbookRangeFormatBordersCollectionRequestBuilder) ID(id string) *WorkbookRangeBorderRequestBuilder { + bb := &WorkbookRangeBorderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookRangeFormatBordersCollectionRequest is request for WorkbookRangeBorder collection +type WorkbookRangeFormatBordersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookRangeBorder collection +func (r *WorkbookRangeFormatBordersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookRangeBorder, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookRangeBorder + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookRangeBorder + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookRangeBorder collection, max N pages +func (r *WorkbookRangeFormatBordersCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookRangeBorder, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookRangeBorder collection +func (r *WorkbookRangeFormatBordersCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeBorder, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookRangeBorder collection +func (r *WorkbookRangeFormatBordersCollectionRequest) Add(ctx context.Context, reqObj *WorkbookRangeBorder) (resObj *WorkbookRangeBorder, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Fill is navigation property +func (b *WorkbookRangeFormatRequestBuilder) Fill() *WorkbookRangeFillRequestBuilder { + bb := &WorkbookRangeFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/fill" + return bb +} + +// Font is navigation property +func (b *WorkbookRangeFormatRequestBuilder) Font() *WorkbookRangeFontRequestBuilder { + bb := &WorkbookRangeFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/font" + return bb +} + +// Protection is navigation property +func (b *WorkbookRangeFormatRequestBuilder) Protection() *WorkbookFormatProtectionRequestBuilder { + bb := &WorkbookFormatProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/protection" + return bb +} + +// Rows returns request builder for WorkbookRangeView collection +func (b *WorkbookRangeViewRequestBuilder) Rows() *WorkbookRangeViewRowsCollectionRequestBuilder { + bb := &WorkbookRangeViewRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rows" + return bb +} + +// WorkbookRangeViewRowsCollectionRequestBuilder is request builder for WorkbookRangeView collection +type WorkbookRangeViewRowsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookRangeView collection +func (b *WorkbookRangeViewRowsCollectionRequestBuilder) Request() *WorkbookRangeViewRowsCollectionRequest { + return &WorkbookRangeViewRowsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookRangeView item +func (b *WorkbookRangeViewRowsCollectionRequestBuilder) ID(id string) *WorkbookRangeViewRequestBuilder { + bb := &WorkbookRangeViewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookRangeViewRowsCollectionRequest is request for WorkbookRangeView collection +type WorkbookRangeViewRowsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookRangeView collection +func (r *WorkbookRangeViewRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookRangeView, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookRangeView + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookRangeView + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookRangeView collection, max N pages +func (r *WorkbookRangeViewRowsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookRangeView, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookRangeView collection +func (r *WorkbookRangeViewRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeView, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookRangeView collection +func (r *WorkbookRangeViewRowsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookRangeView) (resObj *WorkbookRangeView, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Columns returns request builder for WorkbookTableColumn collection +func (b *WorkbookTableRequestBuilder) Columns() *WorkbookTableColumnsCollectionRequestBuilder { + bb := &WorkbookTableColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/columns" + return bb +} + +// WorkbookTableColumnsCollectionRequestBuilder is request builder for WorkbookTableColumn collection +type WorkbookTableColumnsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookTableColumn collection +func (b *WorkbookTableColumnsCollectionRequestBuilder) Request() *WorkbookTableColumnsCollectionRequest { + return &WorkbookTableColumnsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookTableColumn item +func (b *WorkbookTableColumnsCollectionRequestBuilder) ID(id string) *WorkbookTableColumnRequestBuilder { + bb := &WorkbookTableColumnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookTableColumnsCollectionRequest is request for WorkbookTableColumn collection +type WorkbookTableColumnsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookTableColumn collection +func (r *WorkbookTableColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTableColumn, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookTableColumn + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookTableColumn + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookTableColumn collection, max N pages +func (r *WorkbookTableColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTableColumn, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookTableColumn collection +func (r *WorkbookTableColumnsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableColumn, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookTableColumn collection +func (r *WorkbookTableColumnsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTableColumn) (resObj *WorkbookTableColumn, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Rows returns request builder for WorkbookTableRow collection +func (b *WorkbookTableRequestBuilder) Rows() *WorkbookTableRowsCollectionRequestBuilder { + bb := &WorkbookTableRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/rows" + return bb +} + +// WorkbookTableRowsCollectionRequestBuilder is request builder for WorkbookTableRow collection +type WorkbookTableRowsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookTableRow collection +func (b *WorkbookTableRowsCollectionRequestBuilder) Request() *WorkbookTableRowsCollectionRequest { + return &WorkbookTableRowsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookTableRow item +func (b *WorkbookTableRowsCollectionRequestBuilder) ID(id string) *WorkbookTableRowRequestBuilder { + bb := &WorkbookTableRowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookTableRowsCollectionRequest is request for WorkbookTableRow collection +type WorkbookTableRowsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookTableRow collection +func (r *WorkbookTableRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTableRow, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookTableRow + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookTableRow + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookTableRow collection, max N pages +func (r *WorkbookTableRowsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTableRow, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookTableRow collection +func (r *WorkbookTableRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableRow, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookTableRow collection +func (r *WorkbookTableRowsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTableRow) (resObj *WorkbookTableRow, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sort is navigation property +func (b *WorkbookTableRequestBuilder) Sort() *WorkbookTableSortRequestBuilder { + bb := &WorkbookTableSortRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sort" + return bb +} + +// Worksheet is navigation property +func (b *WorkbookTableRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder { + bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/worksheet" + return bb +} + +// Filter is navigation property +func (b *WorkbookTableColumnRequestBuilder) Filter() *WorkbookFilterRequestBuilder { + bb := &WorkbookFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/filter" + return bb +} + +// Charts returns request builder for WorkbookChart collection +func (b *WorkbookWorksheetRequestBuilder) Charts() *WorkbookWorksheetChartsCollectionRequestBuilder { + bb := &WorkbookWorksheetChartsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/charts" + return bb +} + +// WorkbookWorksheetChartsCollectionRequestBuilder is request builder for WorkbookChart collection +type WorkbookWorksheetChartsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookChart collection +func (b *WorkbookWorksheetChartsCollectionRequestBuilder) Request() *WorkbookWorksheetChartsCollectionRequest { + return &WorkbookWorksheetChartsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookChart item +func (b *WorkbookWorksheetChartsCollectionRequestBuilder) ID(id string) *WorkbookChartRequestBuilder { + bb := &WorkbookChartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookWorksheetChartsCollectionRequest is request for WorkbookChart collection +type WorkbookWorksheetChartsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookChart collection +func (r *WorkbookWorksheetChartsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChart, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookChart + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookChart + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookChart collection, max N pages +func (r *WorkbookWorksheetChartsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChart, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookChart collection +func (r *WorkbookWorksheetChartsCollectionRequest) Get(ctx context.Context) ([]WorkbookChart, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookChart collection +func (r *WorkbookWorksheetChartsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChart) (resObj *WorkbookChart, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Names returns request builder for WorkbookNamedItem collection +func (b *WorkbookWorksheetRequestBuilder) Names() *WorkbookWorksheetNamesCollectionRequestBuilder { + bb := &WorkbookWorksheetNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/names" + return bb +} + +// WorkbookWorksheetNamesCollectionRequestBuilder is request builder for WorkbookNamedItem collection +type WorkbookWorksheetNamesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookNamedItem collection +func (b *WorkbookWorksheetNamesCollectionRequestBuilder) Request() *WorkbookWorksheetNamesCollectionRequest { + return &WorkbookWorksheetNamesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookNamedItem item +func (b *WorkbookWorksheetNamesCollectionRequestBuilder) ID(id string) *WorkbookNamedItemRequestBuilder { + bb := &WorkbookNamedItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookWorksheetNamesCollectionRequest is request for WorkbookNamedItem collection +type WorkbookWorksheetNamesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookNamedItem collection +func (r *WorkbookWorksheetNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookNamedItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookNamedItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookNamedItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookNamedItem collection, max N pages +func (r *WorkbookWorksheetNamesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookNamedItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookNamedItem collection +func (r *WorkbookWorksheetNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookNamedItem collection +func (r *WorkbookWorksheetNamesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookNamedItem) (resObj *WorkbookNamedItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PivotTables returns request builder for WorkbookPivotTable collection +func (b *WorkbookWorksheetRequestBuilder) PivotTables() *WorkbookWorksheetPivotTablesCollectionRequestBuilder { + bb := &WorkbookWorksheetPivotTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/pivotTables" + return bb +} + +// WorkbookWorksheetPivotTablesCollectionRequestBuilder is request builder for WorkbookPivotTable collection +type WorkbookWorksheetPivotTablesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookPivotTable collection +func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) Request() *WorkbookWorksheetPivotTablesCollectionRequest { + return &WorkbookWorksheetPivotTablesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookPivotTable item +func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) ID(id string) *WorkbookPivotTableRequestBuilder { + bb := &WorkbookPivotTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookWorksheetPivotTablesCollectionRequest is request for WorkbookPivotTable collection +type WorkbookWorksheetPivotTablesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookPivotTable collection +func (r *WorkbookWorksheetPivotTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookPivotTable, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookPivotTable + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookPivotTable + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookPivotTable collection, max N pages +func (r *WorkbookWorksheetPivotTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookPivotTable, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookPivotTable collection +func (r *WorkbookWorksheetPivotTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookPivotTable, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookPivotTable collection +func (r *WorkbookWorksheetPivotTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookPivotTable) (resObj *WorkbookPivotTable, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Protection is navigation property +func (b *WorkbookWorksheetRequestBuilder) Protection() *WorkbookWorksheetProtectionRequestBuilder { + bb := &WorkbookWorksheetProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/protection" + return bb +} + +// Tables returns request builder for WorkbookTable collection +func (b *WorkbookWorksheetRequestBuilder) Tables() *WorkbookWorksheetTablesCollectionRequestBuilder { + bb := &WorkbookWorksheetTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/tables" + return bb +} + +// WorkbookWorksheetTablesCollectionRequestBuilder is request builder for WorkbookTable collection +type WorkbookWorksheetTablesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for WorkbookTable collection +func (b *WorkbookWorksheetTablesCollectionRequestBuilder) Request() *WorkbookWorksheetTablesCollectionRequest { + return &WorkbookWorksheetTablesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for WorkbookTable item +func (b *WorkbookWorksheetTablesCollectionRequestBuilder) ID(id string) *WorkbookTableRequestBuilder { + bb := &WorkbookTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// WorkbookWorksheetTablesCollectionRequest is request for WorkbookTable collection +type WorkbookWorksheetTablesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for WorkbookTable collection +func (r *WorkbookWorksheetTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTable, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []WorkbookTable + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []WorkbookTable + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for WorkbookTable collection, max N pages +func (r *WorkbookWorksheetTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTable, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for WorkbookTable collection +func (r *WorkbookWorksheetTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for WorkbookTable collection +func (r *WorkbookWorksheetTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTable) (resObj *WorkbookTable, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go new file mode 100644 index 00000000..37903b1b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ACLType undocumented +type ACLType string + +const ( + // ACLTypeVUser undocumented + ACLTypeVUser ACLType = "user" + // ACLTypeVGroup undocumented + ACLTypeVGroup ACLType = "group" + // ACLTypeVEveryone undocumented + ACLTypeVEveryone ACLType = "everyone" + // ACLTypeVEveryoneExceptGuests undocumented + ACLTypeVEveryoneExceptGuests ACLType = "everyoneExceptGuests" +) + +var ( + // ACLTypePUser is a pointer to ACLTypeVUser + ACLTypePUser = &_ACLTypePUser + // ACLTypePGroup is a pointer to ACLTypeVGroup + ACLTypePGroup = &_ACLTypePGroup + // ACLTypePEveryone is a pointer to ACLTypeVEveryone + ACLTypePEveryone = &_ACLTypePEveryone + // ACLTypePEveryoneExceptGuests is a pointer to ACLTypeVEveryoneExceptGuests + ACLTypePEveryoneExceptGuests = &_ACLTypePEveryoneExceptGuests +) + +var ( + _ACLTypePUser = ACLTypeVUser + _ACLTypePGroup = ACLTypeVGroup + _ACLTypePEveryone = ACLTypeVEveryone + _ACLTypePEveryoneExceptGuests = ACLTypeVEveryoneExceptGuests +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go new file mode 100644 index 00000000..d777e794 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go @@ -0,0 +1,84 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AccessLevel undocumented +type AccessLevel string + +const ( + // AccessLevelVEveryone undocumented + AccessLevelVEveryone AccessLevel = "everyone" + // AccessLevelVInvited undocumented + AccessLevelVInvited AccessLevel = "invited" + // AccessLevelVLocked undocumented + AccessLevelVLocked AccessLevel = "locked" + // AccessLevelVSameEnterprise undocumented + AccessLevelVSameEnterprise AccessLevel = "sameEnterprise" + // AccessLevelVSameEnterpriseAndFederated undocumented + AccessLevelVSameEnterpriseAndFederated AccessLevel = "sameEnterpriseAndFederated" +) + +var ( + // AccessLevelPEveryone is a pointer to AccessLevelVEveryone + AccessLevelPEveryone = &_AccessLevelPEveryone + // AccessLevelPInvited is a pointer to AccessLevelVInvited + AccessLevelPInvited = &_AccessLevelPInvited + // AccessLevelPLocked is a pointer to AccessLevelVLocked + AccessLevelPLocked = &_AccessLevelPLocked + // AccessLevelPSameEnterprise is a pointer to AccessLevelVSameEnterprise + AccessLevelPSameEnterprise = &_AccessLevelPSameEnterprise + // AccessLevelPSameEnterpriseAndFederated is a pointer to AccessLevelVSameEnterpriseAndFederated + AccessLevelPSameEnterpriseAndFederated = &_AccessLevelPSameEnterpriseAndFederated +) + +var ( + _AccessLevelPEveryone = AccessLevelVEveryone + _AccessLevelPInvited = AccessLevelVInvited + _AccessLevelPLocked = AccessLevelVLocked + _AccessLevelPSameEnterprise = AccessLevelVSameEnterprise + _AccessLevelPSameEnterpriseAndFederated = AccessLevelVSameEnterpriseAndFederated +) + +// AccessScope undocumented +type AccessScope string + +const ( + // AccessScopeVInOrganization undocumented + AccessScopeVInOrganization AccessScope = "inOrganization" + // AccessScopeVNotInOrganization undocumented + AccessScopeVNotInOrganization AccessScope = "notInOrganization" +) + +var ( + // AccessScopePInOrganization is a pointer to AccessScopeVInOrganization + AccessScopePInOrganization = &_AccessScopePInOrganization + // AccessScopePNotInOrganization is a pointer to AccessScopeVNotInOrganization + AccessScopePNotInOrganization = &_AccessScopePNotInOrganization +) + +var ( + _AccessScopePInOrganization = AccessScopeVInOrganization + _AccessScopePNotInOrganization = AccessScopeVNotInOrganization +) + +// AccessType undocumented +type AccessType string + +const ( + // AccessTypeVGrant undocumented + AccessTypeVGrant AccessType = "grant" + // AccessTypeVDeny undocumented + AccessTypeVDeny AccessType = "deny" +) + +var ( + // AccessTypePGrant is a pointer to AccessTypeVGrant + AccessTypePGrant = &_AccessTypePGrant + // AccessTypePDeny is a pointer to AccessTypeVDeny + AccessTypePDeny = &_AccessTypePDeny +) + +var ( + _AccessTypePGrant = AccessTypeVGrant + _AccessTypePDeny = AccessTypeVDeny +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go new file mode 100644 index 00000000..1c198528 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AccountStatus undocumented +type AccountStatus string + +const ( + // AccountStatusVUnknown undocumented + AccountStatusVUnknown AccountStatus = "unknown" + // AccountStatusVStaged undocumented + AccountStatusVStaged AccountStatus = "staged" + // AccountStatusVActive undocumented + AccountStatusVActive AccountStatus = "active" + // AccountStatusVSuspended undocumented + AccountStatusVSuspended AccountStatus = "suspended" + // AccountStatusVDeleted undocumented + AccountStatusVDeleted AccountStatus = "deleted" + // AccountStatusVUnknownFutureValue undocumented + AccountStatusVUnknownFutureValue AccountStatus = "unknownFutureValue" +) + +var ( + // AccountStatusPUnknown is a pointer to AccountStatusVUnknown + AccountStatusPUnknown = &_AccountStatusPUnknown + // AccountStatusPStaged is a pointer to AccountStatusVStaged + AccountStatusPStaged = &_AccountStatusPStaged + // AccountStatusPActive is a pointer to AccountStatusVActive + AccountStatusPActive = &_AccountStatusPActive + // AccountStatusPSuspended is a pointer to AccountStatusVSuspended + AccountStatusPSuspended = &_AccountStatusPSuspended + // AccountStatusPDeleted is a pointer to AccountStatusVDeleted + AccountStatusPDeleted = &_AccountStatusPDeleted + // AccountStatusPUnknownFutureValue is a pointer to AccountStatusVUnknownFutureValue + AccountStatusPUnknownFutureValue = &_AccountStatusPUnknownFutureValue +) + +var ( + _AccountStatusPUnknown = AccountStatusVUnknown + _AccountStatusPStaged = AccountStatusVStaged + _AccountStatusPActive = AccountStatusVActive + _AccountStatusPSuspended = AccountStatusVSuspended + _AccountStatusPDeleted = AccountStatusVDeleted + _AccountStatusPUnknownFutureValue = AccountStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go new file mode 100644 index 00000000..8b40a3e2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go @@ -0,0 +1,82 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ActionSource undocumented +type ActionSource string + +const ( + // ActionSourceVManual undocumented + ActionSourceVManual ActionSource = "manual" + // ActionSourceVAutomatic undocumented + ActionSourceVAutomatic ActionSource = "automatic" + // ActionSourceVRecommended undocumented + ActionSourceVRecommended ActionSource = "recommended" + // ActionSourceVDefault undocumented + ActionSourceVDefault ActionSource = "default" +) + +var ( + // ActionSourcePManual is a pointer to ActionSourceVManual + ActionSourcePManual = &_ActionSourcePManual + // ActionSourcePAutomatic is a pointer to ActionSourceVAutomatic + ActionSourcePAutomatic = &_ActionSourcePAutomatic + // ActionSourcePRecommended is a pointer to ActionSourceVRecommended + ActionSourcePRecommended = &_ActionSourcePRecommended + // ActionSourcePDefault is a pointer to ActionSourceVDefault + ActionSourcePDefault = &_ActionSourcePDefault +) + +var ( + _ActionSourcePManual = ActionSourceVManual + _ActionSourcePAutomatic = ActionSourceVAutomatic + _ActionSourcePRecommended = ActionSourceVRecommended + _ActionSourcePDefault = ActionSourceVDefault +) + +// ActionState undocumented +type ActionState string + +const ( + // ActionStateVNone undocumented + ActionStateVNone ActionState = "none" + // ActionStateVPending undocumented + ActionStateVPending ActionState = "pending" + // ActionStateVCanceled undocumented + ActionStateVCanceled ActionState = "canceled" + // ActionStateVActive undocumented + ActionStateVActive ActionState = "active" + // ActionStateVDone undocumented + ActionStateVDone ActionState = "done" + // ActionStateVFailed undocumented + ActionStateVFailed ActionState = "failed" + // ActionStateVNotSupported undocumented + ActionStateVNotSupported ActionState = "notSupported" +) + +var ( + // ActionStatePNone is a pointer to ActionStateVNone + ActionStatePNone = &_ActionStatePNone + // ActionStatePPending is a pointer to ActionStateVPending + ActionStatePPending = &_ActionStatePPending + // ActionStatePCanceled is a pointer to ActionStateVCanceled + ActionStatePCanceled = &_ActionStatePCanceled + // ActionStatePActive is a pointer to ActionStateVActive + ActionStatePActive = &_ActionStatePActive + // ActionStatePDone is a pointer to ActionStateVDone + ActionStatePDone = &_ActionStatePDone + // ActionStatePFailed is a pointer to ActionStateVFailed + ActionStatePFailed = &_ActionStatePFailed + // ActionStatePNotSupported is a pointer to ActionStateVNotSupported + ActionStatePNotSupported = &_ActionStatePNotSupported +) + +var ( + _ActionStatePNone = ActionStateVNone + _ActionStatePPending = ActionStateVPending + _ActionStatePCanceled = ActionStateVCanceled + _ActionStatePActive = ActionStateVActive + _ActionStatePDone = ActionStateVDone + _ActionStatePFailed = ActionStateVFailed + _ActionStatePNotSupported = ActionStateVNotSupported +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go new file mode 100644 index 00000000..8cdfa92a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go @@ -0,0 +1,62 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ActivityDomain undocumented +type ActivityDomain string + +const ( + // ActivityDomainVUnknown undocumented + ActivityDomainVUnknown ActivityDomain = "unknown" + // ActivityDomainVWork undocumented + ActivityDomainVWork ActivityDomain = "work" + // ActivityDomainVPersonal undocumented + ActivityDomainVPersonal ActivityDomain = "personal" + // ActivityDomainVUnrestricted undocumented + ActivityDomainVUnrestricted ActivityDomain = "unrestricted" +) + +var ( + // ActivityDomainPUnknown is a pointer to ActivityDomainVUnknown + ActivityDomainPUnknown = &_ActivityDomainPUnknown + // ActivityDomainPWork is a pointer to ActivityDomainVWork + ActivityDomainPWork = &_ActivityDomainPWork + // ActivityDomainPPersonal is a pointer to ActivityDomainVPersonal + ActivityDomainPPersonal = &_ActivityDomainPPersonal + // ActivityDomainPUnrestricted is a pointer to ActivityDomainVUnrestricted + ActivityDomainPUnrestricted = &_ActivityDomainPUnrestricted +) + +var ( + _ActivityDomainPUnknown = ActivityDomainVUnknown + _ActivityDomainPWork = ActivityDomainVWork + _ActivityDomainPPersonal = ActivityDomainVPersonal + _ActivityDomainPUnrestricted = ActivityDomainVUnrestricted +) + +// ActivityType undocumented +type ActivityType string + +const ( + // ActivityTypeVSignin undocumented + ActivityTypeVSignin ActivityType = "signin" + // ActivityTypeVUser undocumented + ActivityTypeVUser ActivityType = "user" + // ActivityTypeVUnknownFutureValue undocumented + ActivityTypeVUnknownFutureValue ActivityType = "unknownFutureValue" +) + +var ( + // ActivityTypePSignin is a pointer to ActivityTypeVSignin + ActivityTypePSignin = &_ActivityTypePSignin + // ActivityTypePUser is a pointer to ActivityTypeVUser + ActivityTypePUser = &_ActivityTypePUser + // ActivityTypePUnknownFutureValue is a pointer to ActivityTypeVUnknownFutureValue + ActivityTypePUnknownFutureValue = &_ActivityTypePUnknownFutureValue +) + +var ( + _ActivityTypePSignin = ActivityTypeVSignin + _ActivityTypePUser = ActivityTypeVUser + _ActivityTypePUnknownFutureValue = ActivityTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go new file mode 100644 index 00000000..dfdc338d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AdminConsentState undocumented +type AdminConsentState string + +const ( + // AdminConsentStateVNotConfigured undocumented + AdminConsentStateVNotConfigured AdminConsentState = "notConfigured" + // AdminConsentStateVGranted undocumented + AdminConsentStateVGranted AdminConsentState = "granted" + // AdminConsentStateVNotGranted undocumented + AdminConsentStateVNotGranted AdminConsentState = "notGranted" +) + +var ( + // AdminConsentStatePNotConfigured is a pointer to AdminConsentStateVNotConfigured + AdminConsentStatePNotConfigured = &_AdminConsentStatePNotConfigured + // AdminConsentStatePGranted is a pointer to AdminConsentStateVGranted + AdminConsentStatePGranted = &_AdminConsentStatePGranted + // AdminConsentStatePNotGranted is a pointer to AdminConsentStateVNotGranted + AdminConsentStatePNotGranted = &_AdminConsentStatePNotGranted +) + +var ( + _AdminConsentStatePNotConfigured = AdminConsentStateVNotConfigured + _AdminConsentStatePGranted = AdminConsentStateVGranted + _AdminConsentStatePNotGranted = AdminConsentStateVNotGranted +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go new file mode 100644 index 00000000..5f367885 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AdministratorConfiguredDeviceComplianceState undocumented +type AdministratorConfiguredDeviceComplianceState string + +const ( + // AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy undocumented + AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy AdministratorConfiguredDeviceComplianceState = "basedOnDeviceCompliancePolicy" + // AdministratorConfiguredDeviceComplianceStateVNonCompliant undocumented + AdministratorConfiguredDeviceComplianceStateVNonCompliant AdministratorConfiguredDeviceComplianceState = "nonCompliant" +) + +var ( + // AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy is a pointer to AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy + AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy = &_AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy + // AdministratorConfiguredDeviceComplianceStatePNonCompliant is a pointer to AdministratorConfiguredDeviceComplianceStateVNonCompliant + AdministratorConfiguredDeviceComplianceStatePNonCompliant = &_AdministratorConfiguredDeviceComplianceStatePNonCompliant +) + +var ( + _AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy = AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy + _AdministratorConfiguredDeviceComplianceStatePNonCompliant = AdministratorConfiguredDeviceComplianceStateVNonCompliant +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go new file mode 100644 index 00000000..22149cd9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go @@ -0,0 +1,100 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AdvancedBitLockerState undocumented +type AdvancedBitLockerState string + +const ( + // AdvancedBitLockerStateVSuccess undocumented + AdvancedBitLockerStateVSuccess AdvancedBitLockerState = "success" + // AdvancedBitLockerStateVNoUserConsent undocumented + AdvancedBitLockerStateVNoUserConsent AdvancedBitLockerState = "noUserConsent" + // AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch undocumented + AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch AdvancedBitLockerState = "osVolumeEncryptionMethodMismatch" + // AdvancedBitLockerStateVOsVolumeTpmRequired undocumented + AdvancedBitLockerStateVOsVolumeTpmRequired AdvancedBitLockerState = "osVolumeTpmRequired" + // AdvancedBitLockerStateVOsVolumeTpmOnlyRequired undocumented + AdvancedBitLockerStateVOsVolumeTpmOnlyRequired AdvancedBitLockerState = "osVolumeTpmOnlyRequired" + // AdvancedBitLockerStateVOsVolumeTpmPinRequired undocumented + AdvancedBitLockerStateVOsVolumeTpmPinRequired AdvancedBitLockerState = "osVolumeTpmPinRequired" + // AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired undocumented + AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired AdvancedBitLockerState = "osVolumeTpmStartupKeyRequired" + // AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired undocumented + AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired AdvancedBitLockerState = "osVolumeTpmPinStartupKeyRequired" + // AdvancedBitLockerStateVOsVolumeUnprotected undocumented + AdvancedBitLockerStateVOsVolumeUnprotected AdvancedBitLockerState = "osVolumeUnprotected" + // AdvancedBitLockerStateVRecoveryKeyBackupFailed undocumented + AdvancedBitLockerStateVRecoveryKeyBackupFailed AdvancedBitLockerState = "recoveryKeyBackupFailed" + // AdvancedBitLockerStateVFixedDriveNotEncrypted undocumented + AdvancedBitLockerStateVFixedDriveNotEncrypted AdvancedBitLockerState = "fixedDriveNotEncrypted" + // AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch undocumented + AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch AdvancedBitLockerState = "fixedDriveEncryptionMethodMismatch" + // AdvancedBitLockerStateVLoggedOnUserNonAdmin undocumented + AdvancedBitLockerStateVLoggedOnUserNonAdmin AdvancedBitLockerState = "loggedOnUserNonAdmin" + // AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured undocumented + AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured AdvancedBitLockerState = "windowsRecoveryEnvironmentNotConfigured" + // AdvancedBitLockerStateVTpmNotAvailable undocumented + AdvancedBitLockerStateVTpmNotAvailable AdvancedBitLockerState = "tpmNotAvailable" + // AdvancedBitLockerStateVTpmNotReady undocumented + AdvancedBitLockerStateVTpmNotReady AdvancedBitLockerState = "tpmNotReady" + // AdvancedBitLockerStateVNetworkError undocumented + AdvancedBitLockerStateVNetworkError AdvancedBitLockerState = "networkError" +) + +var ( + // AdvancedBitLockerStatePSuccess is a pointer to AdvancedBitLockerStateVSuccess + AdvancedBitLockerStatePSuccess = &_AdvancedBitLockerStatePSuccess + // AdvancedBitLockerStatePNoUserConsent is a pointer to AdvancedBitLockerStateVNoUserConsent + AdvancedBitLockerStatePNoUserConsent = &_AdvancedBitLockerStatePNoUserConsent + // AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch is a pointer to AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch + AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch = &_AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch + // AdvancedBitLockerStatePOsVolumeTpmRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmRequired + AdvancedBitLockerStatePOsVolumeTpmRequired = &_AdvancedBitLockerStatePOsVolumeTpmRequired + // AdvancedBitLockerStatePOsVolumeTpmOnlyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmOnlyRequired + AdvancedBitLockerStatePOsVolumeTpmOnlyRequired = &_AdvancedBitLockerStatePOsVolumeTpmOnlyRequired + // AdvancedBitLockerStatePOsVolumeTpmPinRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmPinRequired + AdvancedBitLockerStatePOsVolumeTpmPinRequired = &_AdvancedBitLockerStatePOsVolumeTpmPinRequired + // AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired + AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired = &_AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired + // AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired + AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired = &_AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired + // AdvancedBitLockerStatePOsVolumeUnprotected is a pointer to AdvancedBitLockerStateVOsVolumeUnprotected + AdvancedBitLockerStatePOsVolumeUnprotected = &_AdvancedBitLockerStatePOsVolumeUnprotected + // AdvancedBitLockerStatePRecoveryKeyBackupFailed is a pointer to AdvancedBitLockerStateVRecoveryKeyBackupFailed + AdvancedBitLockerStatePRecoveryKeyBackupFailed = &_AdvancedBitLockerStatePRecoveryKeyBackupFailed + // AdvancedBitLockerStatePFixedDriveNotEncrypted is a pointer to AdvancedBitLockerStateVFixedDriveNotEncrypted + AdvancedBitLockerStatePFixedDriveNotEncrypted = &_AdvancedBitLockerStatePFixedDriveNotEncrypted + // AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch is a pointer to AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch + AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch = &_AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch + // AdvancedBitLockerStatePLoggedOnUserNonAdmin is a pointer to AdvancedBitLockerStateVLoggedOnUserNonAdmin + AdvancedBitLockerStatePLoggedOnUserNonAdmin = &_AdvancedBitLockerStatePLoggedOnUserNonAdmin + // AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured is a pointer to AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured + AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured = &_AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured + // AdvancedBitLockerStatePTpmNotAvailable is a pointer to AdvancedBitLockerStateVTpmNotAvailable + AdvancedBitLockerStatePTpmNotAvailable = &_AdvancedBitLockerStatePTpmNotAvailable + // AdvancedBitLockerStatePTpmNotReady is a pointer to AdvancedBitLockerStateVTpmNotReady + AdvancedBitLockerStatePTpmNotReady = &_AdvancedBitLockerStatePTpmNotReady + // AdvancedBitLockerStatePNetworkError is a pointer to AdvancedBitLockerStateVNetworkError + AdvancedBitLockerStatePNetworkError = &_AdvancedBitLockerStatePNetworkError +) + +var ( + _AdvancedBitLockerStatePSuccess = AdvancedBitLockerStateVSuccess + _AdvancedBitLockerStatePNoUserConsent = AdvancedBitLockerStateVNoUserConsent + _AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch = AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch + _AdvancedBitLockerStatePOsVolumeTpmRequired = AdvancedBitLockerStateVOsVolumeTpmRequired + _AdvancedBitLockerStatePOsVolumeTpmOnlyRequired = AdvancedBitLockerStateVOsVolumeTpmOnlyRequired + _AdvancedBitLockerStatePOsVolumeTpmPinRequired = AdvancedBitLockerStateVOsVolumeTpmPinRequired + _AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired = AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired + _AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired = AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired + _AdvancedBitLockerStatePOsVolumeUnprotected = AdvancedBitLockerStateVOsVolumeUnprotected + _AdvancedBitLockerStatePRecoveryKeyBackupFailed = AdvancedBitLockerStateVRecoveryKeyBackupFailed + _AdvancedBitLockerStatePFixedDriveNotEncrypted = AdvancedBitLockerStateVFixedDriveNotEncrypted + _AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch = AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch + _AdvancedBitLockerStatePLoggedOnUserNonAdmin = AdvancedBitLockerStateVLoggedOnUserNonAdmin + _AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured = AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured + _AdvancedBitLockerStatePTpmNotAvailable = AdvancedBitLockerStateVTpmNotAvailable + _AdvancedBitLockerStatePTpmNotReady = AdvancedBitLockerStateVTpmNotReady + _AdvancedBitLockerStatePNetworkError = AdvancedBitLockerStateVNetworkError +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go new file mode 100644 index 00000000..b1bc869f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AgentStatus undocumented +type AgentStatus string + +const ( + // AgentStatusVActive undocumented + AgentStatusVActive AgentStatus = "active" + // AgentStatusVInactive undocumented + AgentStatusVInactive AgentStatus = "inactive" +) + +var ( + // AgentStatusPActive is a pointer to AgentStatusVActive + AgentStatusPActive = &_AgentStatusPActive + // AgentStatusPInactive is a pointer to AgentStatusVInactive + AgentStatusPInactive = &_AgentStatusPInactive +) + +var ( + _AgentStatusPActive = AgentStatusVActive + _AgentStatusPInactive = AgentStatusVInactive +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go new file mode 100644 index 00000000..c56b8bd8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AgreementAcceptanceState undocumented +type AgreementAcceptanceState string + +const ( + // AgreementAcceptanceStateVAccepted undocumented + AgreementAcceptanceStateVAccepted AgreementAcceptanceState = "accepted" + // AgreementAcceptanceStateVDeclined undocumented + AgreementAcceptanceStateVDeclined AgreementAcceptanceState = "declined" +) + +var ( + // AgreementAcceptanceStatePAccepted is a pointer to AgreementAcceptanceStateVAccepted + AgreementAcceptanceStatePAccepted = &_AgreementAcceptanceStatePAccepted + // AgreementAcceptanceStatePDeclined is a pointer to AgreementAcceptanceStateVDeclined + AgreementAcceptanceStatePDeclined = &_AgreementAcceptanceStatePDeclined +) + +var ( + _AgreementAcceptanceStatePAccepted = AgreementAcceptanceStateVAccepted + _AgreementAcceptanceStatePDeclined = AgreementAcceptanceStateVDeclined +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go new file mode 100644 index 00000000..ba83ba61 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go @@ -0,0 +1,124 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AlertFeedback undocumented +type AlertFeedback string + +const ( + // AlertFeedbackVUnknown undocumented + AlertFeedbackVUnknown AlertFeedback = "unknown" + // AlertFeedbackVTruePositive undocumented + AlertFeedbackVTruePositive AlertFeedback = "truePositive" + // AlertFeedbackVFalsePositive undocumented + AlertFeedbackVFalsePositive AlertFeedback = "falsePositive" + // AlertFeedbackVBenignPositive undocumented + AlertFeedbackVBenignPositive AlertFeedback = "benignPositive" + // AlertFeedbackVUnknownFutureValue undocumented + AlertFeedbackVUnknownFutureValue AlertFeedback = "unknownFutureValue" +) + +var ( + // AlertFeedbackPUnknown is a pointer to AlertFeedbackVUnknown + AlertFeedbackPUnknown = &_AlertFeedbackPUnknown + // AlertFeedbackPTruePositive is a pointer to AlertFeedbackVTruePositive + AlertFeedbackPTruePositive = &_AlertFeedbackPTruePositive + // AlertFeedbackPFalsePositive is a pointer to AlertFeedbackVFalsePositive + AlertFeedbackPFalsePositive = &_AlertFeedbackPFalsePositive + // AlertFeedbackPBenignPositive is a pointer to AlertFeedbackVBenignPositive + AlertFeedbackPBenignPositive = &_AlertFeedbackPBenignPositive + // AlertFeedbackPUnknownFutureValue is a pointer to AlertFeedbackVUnknownFutureValue + AlertFeedbackPUnknownFutureValue = &_AlertFeedbackPUnknownFutureValue +) + +var ( + _AlertFeedbackPUnknown = AlertFeedbackVUnknown + _AlertFeedbackPTruePositive = AlertFeedbackVTruePositive + _AlertFeedbackPFalsePositive = AlertFeedbackVFalsePositive + _AlertFeedbackPBenignPositive = AlertFeedbackVBenignPositive + _AlertFeedbackPUnknownFutureValue = AlertFeedbackVUnknownFutureValue +) + +// AlertSeverity undocumented +type AlertSeverity string + +const ( + // AlertSeverityVUnknown undocumented + AlertSeverityVUnknown AlertSeverity = "unknown" + // AlertSeverityVInformational undocumented + AlertSeverityVInformational AlertSeverity = "informational" + // AlertSeverityVLow undocumented + AlertSeverityVLow AlertSeverity = "low" + // AlertSeverityVMedium undocumented + AlertSeverityVMedium AlertSeverity = "medium" + // AlertSeverityVHigh undocumented + AlertSeverityVHigh AlertSeverity = "high" + // AlertSeverityVUnknownFutureValue undocumented + AlertSeverityVUnknownFutureValue AlertSeverity = "unknownFutureValue" +) + +var ( + // AlertSeverityPUnknown is a pointer to AlertSeverityVUnknown + AlertSeverityPUnknown = &_AlertSeverityPUnknown + // AlertSeverityPInformational is a pointer to AlertSeverityVInformational + AlertSeverityPInformational = &_AlertSeverityPInformational + // AlertSeverityPLow is a pointer to AlertSeverityVLow + AlertSeverityPLow = &_AlertSeverityPLow + // AlertSeverityPMedium is a pointer to AlertSeverityVMedium + AlertSeverityPMedium = &_AlertSeverityPMedium + // AlertSeverityPHigh is a pointer to AlertSeverityVHigh + AlertSeverityPHigh = &_AlertSeverityPHigh + // AlertSeverityPUnknownFutureValue is a pointer to AlertSeverityVUnknownFutureValue + AlertSeverityPUnknownFutureValue = &_AlertSeverityPUnknownFutureValue +) + +var ( + _AlertSeverityPUnknown = AlertSeverityVUnknown + _AlertSeverityPInformational = AlertSeverityVInformational + _AlertSeverityPLow = AlertSeverityVLow + _AlertSeverityPMedium = AlertSeverityVMedium + _AlertSeverityPHigh = AlertSeverityVHigh + _AlertSeverityPUnknownFutureValue = AlertSeverityVUnknownFutureValue +) + +// AlertStatus undocumented +type AlertStatus string + +const ( + // AlertStatusVUnknown undocumented + AlertStatusVUnknown AlertStatus = "unknown" + // AlertStatusVNewAlert undocumented + AlertStatusVNewAlert AlertStatus = "newAlert" + // AlertStatusVInProgress undocumented + AlertStatusVInProgress AlertStatus = "inProgress" + // AlertStatusVResolved undocumented + AlertStatusVResolved AlertStatus = "resolved" + // AlertStatusVDismissed undocumented + AlertStatusVDismissed AlertStatus = "dismissed" + // AlertStatusVUnknownFutureValue undocumented + AlertStatusVUnknownFutureValue AlertStatus = "unknownFutureValue" +) + +var ( + // AlertStatusPUnknown is a pointer to AlertStatusVUnknown + AlertStatusPUnknown = &_AlertStatusPUnknown + // AlertStatusPNewAlert is a pointer to AlertStatusVNewAlert + AlertStatusPNewAlert = &_AlertStatusPNewAlert + // AlertStatusPInProgress is a pointer to AlertStatusVInProgress + AlertStatusPInProgress = &_AlertStatusPInProgress + // AlertStatusPResolved is a pointer to AlertStatusVResolved + AlertStatusPResolved = &_AlertStatusPResolved + // AlertStatusPDismissed is a pointer to AlertStatusVDismissed + AlertStatusPDismissed = &_AlertStatusPDismissed + // AlertStatusPUnknownFutureValue is a pointer to AlertStatusVUnknownFutureValue + AlertStatusPUnknownFutureValue = &_AlertStatusPUnknownFutureValue +) + +var ( + _AlertStatusPUnknown = AlertStatusVUnknown + _AlertStatusPNewAlert = AlertStatusVNewAlert + _AlertStatusPInProgress = AlertStatusVInProgress + _AlertStatusPResolved = AlertStatusVResolved + _AlertStatusPDismissed = AlertStatusVDismissed + _AlertStatusPUnknownFutureValue = AlertStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go new file mode 100644 index 00000000..dcca8371 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Alignment undocumented +type Alignment string + +const ( + // AlignmentVLeft undocumented + AlignmentVLeft Alignment = "left" + // AlignmentVRight undocumented + AlignmentVRight Alignment = "right" + // AlignmentVCenter undocumented + AlignmentVCenter Alignment = "center" +) + +var ( + // AlignmentPLeft is a pointer to AlignmentVLeft + AlignmentPLeft = &_AlignmentPLeft + // AlignmentPRight is a pointer to AlignmentVRight + AlignmentPRight = &_AlignmentPRight + // AlignmentPCenter is a pointer to AlignmentVCenter + AlignmentPCenter = &_AlignmentPCenter +) + +var ( + _AlignmentPLeft = AlignmentVLeft + _AlignmentPRight = AlignmentVRight + _AlignmentPCenter = AlignmentVCenter +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go new file mode 100644 index 00000000..b34924cf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AllowedAudiences undocumented +type AllowedAudiences string + +const ( + // AllowedAudiencesVMe undocumented + AllowedAudiencesVMe AllowedAudiences = "me" + // AllowedAudiencesVFamily undocumented + AllowedAudiencesVFamily AllowedAudiences = "family" + // AllowedAudiencesVContacts undocumented + AllowedAudiencesVContacts AllowedAudiences = "contacts" + // AllowedAudiencesVGroupMembers undocumented + AllowedAudiencesVGroupMembers AllowedAudiences = "groupMembers" + // AllowedAudiencesVOrganization undocumented + AllowedAudiencesVOrganization AllowedAudiences = "organization" + // AllowedAudiencesVFederatedOrganizations undocumented + AllowedAudiencesVFederatedOrganizations AllowedAudiences = "federatedOrganizations" + // AllowedAudiencesVEveryone undocumented + AllowedAudiencesVEveryone AllowedAudiences = "everyone" + // AllowedAudiencesVUnknownFutureValue undocumented + AllowedAudiencesVUnknownFutureValue AllowedAudiences = "unknownFutureValue" +) + +var ( + // AllowedAudiencesPMe is a pointer to AllowedAudiencesVMe + AllowedAudiencesPMe = &_AllowedAudiencesPMe + // AllowedAudiencesPFamily is a pointer to AllowedAudiencesVFamily + AllowedAudiencesPFamily = &_AllowedAudiencesPFamily + // AllowedAudiencesPContacts is a pointer to AllowedAudiencesVContacts + AllowedAudiencesPContacts = &_AllowedAudiencesPContacts + // AllowedAudiencesPGroupMembers is a pointer to AllowedAudiencesVGroupMembers + AllowedAudiencesPGroupMembers = &_AllowedAudiencesPGroupMembers + // AllowedAudiencesPOrganization is a pointer to AllowedAudiencesVOrganization + AllowedAudiencesPOrganization = &_AllowedAudiencesPOrganization + // AllowedAudiencesPFederatedOrganizations is a pointer to AllowedAudiencesVFederatedOrganizations + AllowedAudiencesPFederatedOrganizations = &_AllowedAudiencesPFederatedOrganizations + // AllowedAudiencesPEveryone is a pointer to AllowedAudiencesVEveryone + AllowedAudiencesPEveryone = &_AllowedAudiencesPEveryone + // AllowedAudiencesPUnknownFutureValue is a pointer to AllowedAudiencesVUnknownFutureValue + AllowedAudiencesPUnknownFutureValue = &_AllowedAudiencesPUnknownFutureValue +) + +var ( + _AllowedAudiencesPMe = AllowedAudiencesVMe + _AllowedAudiencesPFamily = AllowedAudiencesVFamily + _AllowedAudiencesPContacts = AllowedAudiencesVContacts + _AllowedAudiencesPGroupMembers = AllowedAudiencesVGroupMembers + _AllowedAudiencesPOrganization = AllowedAudiencesVOrganization + _AllowedAudiencesPFederatedOrganizations = AllowedAudiencesVFederatedOrganizations + _AllowedAudiencesPEveryone = AllowedAudiencesVEveryone + _AllowedAudiencesPUnknownFutureValue = AllowedAudiencesVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go new file mode 100644 index 00000000..b26f7937 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AnalyticsActivityType undocumented +type AnalyticsActivityType string + +const ( + // AnalyticsActivityTypeVEmail undocumented + AnalyticsActivityTypeVEmail AnalyticsActivityType = "Email" + // AnalyticsActivityTypeVMeeting undocumented + AnalyticsActivityTypeVMeeting AnalyticsActivityType = "Meeting" + // AnalyticsActivityTypeVFocus undocumented + AnalyticsActivityTypeVFocus AnalyticsActivityType = "Focus" + // AnalyticsActivityTypeVChat undocumented + AnalyticsActivityTypeVChat AnalyticsActivityType = "Chat" + // AnalyticsActivityTypeVCall undocumented + AnalyticsActivityTypeVCall AnalyticsActivityType = "Call" +) + +var ( + // AnalyticsActivityTypePEmail is a pointer to AnalyticsActivityTypeVEmail + AnalyticsActivityTypePEmail = &_AnalyticsActivityTypePEmail + // AnalyticsActivityTypePMeeting is a pointer to AnalyticsActivityTypeVMeeting + AnalyticsActivityTypePMeeting = &_AnalyticsActivityTypePMeeting + // AnalyticsActivityTypePFocus is a pointer to AnalyticsActivityTypeVFocus + AnalyticsActivityTypePFocus = &_AnalyticsActivityTypePFocus + // AnalyticsActivityTypePChat is a pointer to AnalyticsActivityTypeVChat + AnalyticsActivityTypePChat = &_AnalyticsActivityTypePChat + // AnalyticsActivityTypePCall is a pointer to AnalyticsActivityTypeVCall + AnalyticsActivityTypePCall = &_AnalyticsActivityTypePCall +) + +var ( + _AnalyticsActivityTypePEmail = AnalyticsActivityTypeVEmail + _AnalyticsActivityTypePMeeting = AnalyticsActivityTypeVMeeting + _AnalyticsActivityTypePFocus = AnalyticsActivityTypeVFocus + _AnalyticsActivityTypePChat = AnalyticsActivityTypeVChat + _AnalyticsActivityTypePCall = AnalyticsActivityTypeVCall +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go new file mode 100644 index 00000000..f8124e40 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go @@ -0,0 +1,1224 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AndroidDeviceOwnerAppAutoUpdatePolicyType undocumented +type AndroidDeviceOwnerAppAutoUpdatePolicyType string + +const ( + // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured undocumented + AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured AndroidDeviceOwnerAppAutoUpdatePolicyType = "notConfigured" + // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice undocumented + AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice AndroidDeviceOwnerAppAutoUpdatePolicyType = "userChoice" + // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever undocumented + AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever AndroidDeviceOwnerAppAutoUpdatePolicyType = "never" + // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly undocumented + AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly AndroidDeviceOwnerAppAutoUpdatePolicyType = "wiFiOnly" + // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways undocumented + AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways AndroidDeviceOwnerAppAutoUpdatePolicyType = "always" +) + +var ( + // AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured + AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured + // AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice + AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice + // AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever + AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever + // AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly + AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly + // AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways + AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways +) + +var ( + _AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured + _AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice + _AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever + _AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly + _AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways +) + +// AndroidDeviceOwnerBatteryPluggedMode undocumented +type AndroidDeviceOwnerBatteryPluggedMode string + +const ( + // AndroidDeviceOwnerBatteryPluggedModeVNotConfigured undocumented + AndroidDeviceOwnerBatteryPluggedModeVNotConfigured AndroidDeviceOwnerBatteryPluggedMode = "notConfigured" + // AndroidDeviceOwnerBatteryPluggedModeVAc undocumented + AndroidDeviceOwnerBatteryPluggedModeVAc AndroidDeviceOwnerBatteryPluggedMode = "ac" + // AndroidDeviceOwnerBatteryPluggedModeVUsb undocumented + AndroidDeviceOwnerBatteryPluggedModeVUsb AndroidDeviceOwnerBatteryPluggedMode = "usb" + // AndroidDeviceOwnerBatteryPluggedModeVWireless undocumented + AndroidDeviceOwnerBatteryPluggedModeVWireless AndroidDeviceOwnerBatteryPluggedMode = "wireless" +) + +var ( + // AndroidDeviceOwnerBatteryPluggedModePNotConfigured is a pointer to AndroidDeviceOwnerBatteryPluggedModeVNotConfigured + AndroidDeviceOwnerBatteryPluggedModePNotConfigured = &_AndroidDeviceOwnerBatteryPluggedModePNotConfigured + // AndroidDeviceOwnerBatteryPluggedModePAc is a pointer to AndroidDeviceOwnerBatteryPluggedModeVAc + AndroidDeviceOwnerBatteryPluggedModePAc = &_AndroidDeviceOwnerBatteryPluggedModePAc + // AndroidDeviceOwnerBatteryPluggedModePUsb is a pointer to AndroidDeviceOwnerBatteryPluggedModeVUsb + AndroidDeviceOwnerBatteryPluggedModePUsb = &_AndroidDeviceOwnerBatteryPluggedModePUsb + // AndroidDeviceOwnerBatteryPluggedModePWireless is a pointer to AndroidDeviceOwnerBatteryPluggedModeVWireless + AndroidDeviceOwnerBatteryPluggedModePWireless = &_AndroidDeviceOwnerBatteryPluggedModePWireless +) + +var ( + _AndroidDeviceOwnerBatteryPluggedModePNotConfigured = AndroidDeviceOwnerBatteryPluggedModeVNotConfigured + _AndroidDeviceOwnerBatteryPluggedModePAc = AndroidDeviceOwnerBatteryPluggedModeVAc + _AndroidDeviceOwnerBatteryPluggedModePUsb = AndroidDeviceOwnerBatteryPluggedModeVUsb + _AndroidDeviceOwnerBatteryPluggedModePWireless = AndroidDeviceOwnerBatteryPluggedModeVWireless +) + +// AndroidDeviceOwnerDefaultAppPermissionPolicyType undocumented +type AndroidDeviceOwnerDefaultAppPermissionPolicyType string + +const ( + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault undocumented + AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault AndroidDeviceOwnerDefaultAppPermissionPolicyType = "deviceDefault" + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt undocumented + AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt AndroidDeviceOwnerDefaultAppPermissionPolicyType = "prompt" + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant undocumented + AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant AndroidDeviceOwnerDefaultAppPermissionPolicyType = "autoGrant" + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny undocumented + AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny AndroidDeviceOwnerDefaultAppPermissionPolicyType = "autoDeny" +) + +var ( + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault + AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt + AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant + AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant + // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny + AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny +) + +var ( + _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault + _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt + _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant + _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny +) + +// AndroidDeviceOwnerPlayStoreMode undocumented +type AndroidDeviceOwnerPlayStoreMode string + +const ( + // AndroidDeviceOwnerPlayStoreModeVNotConfigured undocumented + AndroidDeviceOwnerPlayStoreModeVNotConfigured AndroidDeviceOwnerPlayStoreMode = "notConfigured" + // AndroidDeviceOwnerPlayStoreModeVAllowList undocumented + AndroidDeviceOwnerPlayStoreModeVAllowList AndroidDeviceOwnerPlayStoreMode = "allowList" + // AndroidDeviceOwnerPlayStoreModeVBlockList undocumented + AndroidDeviceOwnerPlayStoreModeVBlockList AndroidDeviceOwnerPlayStoreMode = "blockList" +) + +var ( + // AndroidDeviceOwnerPlayStoreModePNotConfigured is a pointer to AndroidDeviceOwnerPlayStoreModeVNotConfigured + AndroidDeviceOwnerPlayStoreModePNotConfigured = &_AndroidDeviceOwnerPlayStoreModePNotConfigured + // AndroidDeviceOwnerPlayStoreModePAllowList is a pointer to AndroidDeviceOwnerPlayStoreModeVAllowList + AndroidDeviceOwnerPlayStoreModePAllowList = &_AndroidDeviceOwnerPlayStoreModePAllowList + // AndroidDeviceOwnerPlayStoreModePBlockList is a pointer to AndroidDeviceOwnerPlayStoreModeVBlockList + AndroidDeviceOwnerPlayStoreModePBlockList = &_AndroidDeviceOwnerPlayStoreModePBlockList +) + +var ( + _AndroidDeviceOwnerPlayStoreModePNotConfigured = AndroidDeviceOwnerPlayStoreModeVNotConfigured + _AndroidDeviceOwnerPlayStoreModePAllowList = AndroidDeviceOwnerPlayStoreModeVAllowList + _AndroidDeviceOwnerPlayStoreModePBlockList = AndroidDeviceOwnerPlayStoreModeVBlockList +) + +// AndroidDeviceOwnerRequiredPasswordType undocumented +type AndroidDeviceOwnerRequiredPasswordType string + +const ( + // AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault undocumented + AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault AndroidDeviceOwnerRequiredPasswordType = "deviceDefault" + // AndroidDeviceOwnerRequiredPasswordTypeVRequired undocumented + AndroidDeviceOwnerRequiredPasswordTypeVRequired AndroidDeviceOwnerRequiredPasswordType = "required" + // AndroidDeviceOwnerRequiredPasswordTypeVNumeric undocumented + AndroidDeviceOwnerRequiredPasswordTypeVNumeric AndroidDeviceOwnerRequiredPasswordType = "numeric" + // AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex undocumented + AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex AndroidDeviceOwnerRequiredPasswordType = "numericComplex" + // AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic undocumented + AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic AndroidDeviceOwnerRequiredPasswordType = "alphabetic" + // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric undocumented + AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric AndroidDeviceOwnerRequiredPasswordType = "alphanumeric" + // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols undocumented + AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols AndroidDeviceOwnerRequiredPasswordType = "alphanumericWithSymbols" + // AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric undocumented + AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric AndroidDeviceOwnerRequiredPasswordType = "lowSecurityBiometric" + // AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword undocumented + AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword AndroidDeviceOwnerRequiredPasswordType = "customPassword" +) + +var ( + // AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault + AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault = &_AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault + // AndroidDeviceOwnerRequiredPasswordTypePRequired is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVRequired + AndroidDeviceOwnerRequiredPasswordTypePRequired = &_AndroidDeviceOwnerRequiredPasswordTypePRequired + // AndroidDeviceOwnerRequiredPasswordTypePNumeric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumeric + AndroidDeviceOwnerRequiredPasswordTypePNumeric = &_AndroidDeviceOwnerRequiredPasswordTypePNumeric + // AndroidDeviceOwnerRequiredPasswordTypePNumericComplex is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex + AndroidDeviceOwnerRequiredPasswordTypePNumericComplex = &_AndroidDeviceOwnerRequiredPasswordTypePNumericComplex + // AndroidDeviceOwnerRequiredPasswordTypePAlphabetic is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic + AndroidDeviceOwnerRequiredPasswordTypePAlphabetic = &_AndroidDeviceOwnerRequiredPasswordTypePAlphabetic + // AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric + AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric = &_AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric + // AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols + AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols + // AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric + AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric = &_AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric + // AndroidDeviceOwnerRequiredPasswordTypePCustomPassword is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword + AndroidDeviceOwnerRequiredPasswordTypePCustomPassword = &_AndroidDeviceOwnerRequiredPasswordTypePCustomPassword +) + +var ( + _AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault = AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault + _AndroidDeviceOwnerRequiredPasswordTypePRequired = AndroidDeviceOwnerRequiredPasswordTypeVRequired + _AndroidDeviceOwnerRequiredPasswordTypePNumeric = AndroidDeviceOwnerRequiredPasswordTypeVNumeric + _AndroidDeviceOwnerRequiredPasswordTypePNumericComplex = AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex + _AndroidDeviceOwnerRequiredPasswordTypePAlphabetic = AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic + _AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric = AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric + _AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols = AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols + _AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric = AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric + _AndroidDeviceOwnerRequiredPasswordTypePCustomPassword = AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword +) + +// AndroidDeviceOwnerSystemUpdateInstallType undocumented +type AndroidDeviceOwnerSystemUpdateInstallType string + +const ( + // AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault undocumented + AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault AndroidDeviceOwnerSystemUpdateInstallType = "deviceDefault" + // AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone undocumented + AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone AndroidDeviceOwnerSystemUpdateInstallType = "postpone" + // AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed undocumented + AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed AndroidDeviceOwnerSystemUpdateInstallType = "windowed" + // AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic undocumented + AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic AndroidDeviceOwnerSystemUpdateInstallType = "automatic" +) + +var ( + // AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault + AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault = &_AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault + // AndroidDeviceOwnerSystemUpdateInstallTypePPostpone is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone + AndroidDeviceOwnerSystemUpdateInstallTypePPostpone = &_AndroidDeviceOwnerSystemUpdateInstallTypePPostpone + // AndroidDeviceOwnerSystemUpdateInstallTypePWindowed is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed + AndroidDeviceOwnerSystemUpdateInstallTypePWindowed = &_AndroidDeviceOwnerSystemUpdateInstallTypePWindowed + // AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic + AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic = &_AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic +) + +var ( + _AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault = AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault + _AndroidDeviceOwnerSystemUpdateInstallTypePPostpone = AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone + _AndroidDeviceOwnerSystemUpdateInstallTypePWindowed = AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed + _AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic = AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic +) + +// AndroidDeviceOwnerVirtualHomeButtonType undocumented +type AndroidDeviceOwnerVirtualHomeButtonType string + +const ( + // AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured undocumented + AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured AndroidDeviceOwnerVirtualHomeButtonType = "notConfigured" + // AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp undocumented + AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp AndroidDeviceOwnerVirtualHomeButtonType = "swipeUp" + // AndroidDeviceOwnerVirtualHomeButtonTypeVFloating undocumented + AndroidDeviceOwnerVirtualHomeButtonTypeVFloating AndroidDeviceOwnerVirtualHomeButtonType = "floating" +) + +var ( + // AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured + AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured = &_AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured + // AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp + AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp = &_AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp + // AndroidDeviceOwnerVirtualHomeButtonTypePFloating is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVFloating + AndroidDeviceOwnerVirtualHomeButtonTypePFloating = &_AndroidDeviceOwnerVirtualHomeButtonTypePFloating +) + +var ( + _AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured = AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured + _AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp = AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp + _AndroidDeviceOwnerVirtualHomeButtonTypePFloating = AndroidDeviceOwnerVirtualHomeButtonTypeVFloating +) + +// AndroidDeviceOwnerWiFiSecurityType undocumented +type AndroidDeviceOwnerWiFiSecurityType string + +const ( + // AndroidDeviceOwnerWiFiSecurityTypeVOpen undocumented + AndroidDeviceOwnerWiFiSecurityTypeVOpen AndroidDeviceOwnerWiFiSecurityType = "open" + // AndroidDeviceOwnerWiFiSecurityTypeVWep undocumented + AndroidDeviceOwnerWiFiSecurityTypeVWep AndroidDeviceOwnerWiFiSecurityType = "wep" + // AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal undocumented + AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal AndroidDeviceOwnerWiFiSecurityType = "wpaPersonal" + // AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise undocumented + AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise AndroidDeviceOwnerWiFiSecurityType = "wpaEnterprise" +) + +var ( + // AndroidDeviceOwnerWiFiSecurityTypePOpen is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVOpen + AndroidDeviceOwnerWiFiSecurityTypePOpen = &_AndroidDeviceOwnerWiFiSecurityTypePOpen + // AndroidDeviceOwnerWiFiSecurityTypePWep is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWep + AndroidDeviceOwnerWiFiSecurityTypePWep = &_AndroidDeviceOwnerWiFiSecurityTypePWep + // AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal + AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal = &_AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal + // AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise + AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise = &_AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise +) + +var ( + _AndroidDeviceOwnerWiFiSecurityTypePOpen = AndroidDeviceOwnerWiFiSecurityTypeVOpen + _AndroidDeviceOwnerWiFiSecurityTypePWep = AndroidDeviceOwnerWiFiSecurityTypeVWep + _AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal = AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal + _AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise = AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise +) + +// AndroidEapType undocumented +type AndroidEapType string + +const ( + // AndroidEapTypeVEapTLS undocumented + AndroidEapTypeVEapTLS AndroidEapType = "eapTls" + // AndroidEapTypeVEapTtls undocumented + AndroidEapTypeVEapTtls AndroidEapType = "eapTtls" + // AndroidEapTypeVPeap undocumented + AndroidEapTypeVPeap AndroidEapType = "peap" +) + +var ( + // AndroidEapTypePEapTLS is a pointer to AndroidEapTypeVEapTLS + AndroidEapTypePEapTLS = &_AndroidEapTypePEapTLS + // AndroidEapTypePEapTtls is a pointer to AndroidEapTypeVEapTtls + AndroidEapTypePEapTtls = &_AndroidEapTypePEapTtls + // AndroidEapTypePPeap is a pointer to AndroidEapTypeVPeap + AndroidEapTypePPeap = &_AndroidEapTypePPeap +) + +var ( + _AndroidEapTypePEapTLS = AndroidEapTypeVEapTLS + _AndroidEapTypePEapTtls = AndroidEapTypeVEapTtls + _AndroidEapTypePPeap = AndroidEapTypeVPeap +) + +// AndroidForWorkAppConfigurationSchemaItemDataType undocumented +type AndroidForWorkAppConfigurationSchemaItemDataType string + +const ( + // AndroidForWorkAppConfigurationSchemaItemDataTypeVBool undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVBool AndroidForWorkAppConfigurationSchemaItemDataType = "bool" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger AndroidForWorkAppConfigurationSchemaItemDataType = "integer" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVString undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVString AndroidForWorkAppConfigurationSchemaItemDataType = "string" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice AndroidForWorkAppConfigurationSchemaItemDataType = "choice" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect AndroidForWorkAppConfigurationSchemaItemDataType = "multiselect" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle AndroidForWorkAppConfigurationSchemaItemDataType = "bundle" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray AndroidForWorkAppConfigurationSchemaItemDataType = "bundleArray" + // AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden undocumented + AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden AndroidForWorkAppConfigurationSchemaItemDataType = "hidden" +) + +var ( + // AndroidForWorkAppConfigurationSchemaItemDataTypePBool is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBool + AndroidForWorkAppConfigurationSchemaItemDataTypePBool = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBool + // AndroidForWorkAppConfigurationSchemaItemDataTypePInteger is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger + AndroidForWorkAppConfigurationSchemaItemDataTypePInteger = &_AndroidForWorkAppConfigurationSchemaItemDataTypePInteger + // AndroidForWorkAppConfigurationSchemaItemDataTypePString is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVString + AndroidForWorkAppConfigurationSchemaItemDataTypePString = &_AndroidForWorkAppConfigurationSchemaItemDataTypePString + // AndroidForWorkAppConfigurationSchemaItemDataTypePChoice is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice + AndroidForWorkAppConfigurationSchemaItemDataTypePChoice = &_AndroidForWorkAppConfigurationSchemaItemDataTypePChoice + // AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect + AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect = &_AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect + // AndroidForWorkAppConfigurationSchemaItemDataTypePBundle is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle + AndroidForWorkAppConfigurationSchemaItemDataTypePBundle = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBundle + // AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray + AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray + // AndroidForWorkAppConfigurationSchemaItemDataTypePHidden is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden + AndroidForWorkAppConfigurationSchemaItemDataTypePHidden = &_AndroidForWorkAppConfigurationSchemaItemDataTypePHidden +) + +var ( + _AndroidForWorkAppConfigurationSchemaItemDataTypePBool = AndroidForWorkAppConfigurationSchemaItemDataTypeVBool + _AndroidForWorkAppConfigurationSchemaItemDataTypePInteger = AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger + _AndroidForWorkAppConfigurationSchemaItemDataTypePString = AndroidForWorkAppConfigurationSchemaItemDataTypeVString + _AndroidForWorkAppConfigurationSchemaItemDataTypePChoice = AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice + _AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect = AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect + _AndroidForWorkAppConfigurationSchemaItemDataTypePBundle = AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle + _AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray = AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray + _AndroidForWorkAppConfigurationSchemaItemDataTypePHidden = AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden +) + +// AndroidForWorkBindStatus undocumented +type AndroidForWorkBindStatus string + +const ( + // AndroidForWorkBindStatusVNotBound undocumented + AndroidForWorkBindStatusVNotBound AndroidForWorkBindStatus = "notBound" + // AndroidForWorkBindStatusVBound undocumented + AndroidForWorkBindStatusVBound AndroidForWorkBindStatus = "bound" + // AndroidForWorkBindStatusVBoundAndValidated undocumented + AndroidForWorkBindStatusVBoundAndValidated AndroidForWorkBindStatus = "boundAndValidated" + // AndroidForWorkBindStatusVUnbinding undocumented + AndroidForWorkBindStatusVUnbinding AndroidForWorkBindStatus = "unbinding" +) + +var ( + // AndroidForWorkBindStatusPNotBound is a pointer to AndroidForWorkBindStatusVNotBound + AndroidForWorkBindStatusPNotBound = &_AndroidForWorkBindStatusPNotBound + // AndroidForWorkBindStatusPBound is a pointer to AndroidForWorkBindStatusVBound + AndroidForWorkBindStatusPBound = &_AndroidForWorkBindStatusPBound + // AndroidForWorkBindStatusPBoundAndValidated is a pointer to AndroidForWorkBindStatusVBoundAndValidated + AndroidForWorkBindStatusPBoundAndValidated = &_AndroidForWorkBindStatusPBoundAndValidated + // AndroidForWorkBindStatusPUnbinding is a pointer to AndroidForWorkBindStatusVUnbinding + AndroidForWorkBindStatusPUnbinding = &_AndroidForWorkBindStatusPUnbinding +) + +var ( + _AndroidForWorkBindStatusPNotBound = AndroidForWorkBindStatusVNotBound + _AndroidForWorkBindStatusPBound = AndroidForWorkBindStatusVBound + _AndroidForWorkBindStatusPBoundAndValidated = AndroidForWorkBindStatusVBoundAndValidated + _AndroidForWorkBindStatusPUnbinding = AndroidForWorkBindStatusVUnbinding +) + +// AndroidForWorkCrossProfileDataSharingType undocumented +type AndroidForWorkCrossProfileDataSharingType string + +const ( + // AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault undocumented + AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault AndroidForWorkCrossProfileDataSharingType = "deviceDefault" + // AndroidForWorkCrossProfileDataSharingTypeVPreventAny undocumented + AndroidForWorkCrossProfileDataSharingTypeVPreventAny AndroidForWorkCrossProfileDataSharingType = "preventAny" + // AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork undocumented + AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork AndroidForWorkCrossProfileDataSharingType = "allowPersonalToWork" + // AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions undocumented + AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions AndroidForWorkCrossProfileDataSharingType = "noRestrictions" +) + +var ( + // AndroidForWorkCrossProfileDataSharingTypePDeviceDefault is a pointer to AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault + AndroidForWorkCrossProfileDataSharingTypePDeviceDefault = &_AndroidForWorkCrossProfileDataSharingTypePDeviceDefault + // AndroidForWorkCrossProfileDataSharingTypePPreventAny is a pointer to AndroidForWorkCrossProfileDataSharingTypeVPreventAny + AndroidForWorkCrossProfileDataSharingTypePPreventAny = &_AndroidForWorkCrossProfileDataSharingTypePPreventAny + // AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork is a pointer to AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork + AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork = &_AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork + // AndroidForWorkCrossProfileDataSharingTypePNoRestrictions is a pointer to AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions + AndroidForWorkCrossProfileDataSharingTypePNoRestrictions = &_AndroidForWorkCrossProfileDataSharingTypePNoRestrictions +) + +var ( + _AndroidForWorkCrossProfileDataSharingTypePDeviceDefault = AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault + _AndroidForWorkCrossProfileDataSharingTypePPreventAny = AndroidForWorkCrossProfileDataSharingTypeVPreventAny + _AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork = AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork + _AndroidForWorkCrossProfileDataSharingTypePNoRestrictions = AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions +) + +// AndroidForWorkDefaultAppPermissionPolicyType undocumented +type AndroidForWorkDefaultAppPermissionPolicyType string + +const ( + // AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault undocumented + AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault AndroidForWorkDefaultAppPermissionPolicyType = "deviceDefault" + // AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt undocumented + AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt AndroidForWorkDefaultAppPermissionPolicyType = "prompt" + // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant undocumented + AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant AndroidForWorkDefaultAppPermissionPolicyType = "autoGrant" + // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny undocumented + AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny AndroidForWorkDefaultAppPermissionPolicyType = "autoDeny" +) + +var ( + // AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault + AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault + // AndroidForWorkDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt + AndroidForWorkDefaultAppPermissionPolicyTypePPrompt = &_AndroidForWorkDefaultAppPermissionPolicyTypePPrompt + // AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant + AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant + // AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny + AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny +) + +var ( + _AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault = AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault + _AndroidForWorkDefaultAppPermissionPolicyTypePPrompt = AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt + _AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant = AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant + _AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny = AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny +) + +// AndroidForWorkEnrollmentTarget undocumented +type AndroidForWorkEnrollmentTarget string + +const ( + // AndroidForWorkEnrollmentTargetVNone undocumented + AndroidForWorkEnrollmentTargetVNone AndroidForWorkEnrollmentTarget = "none" + // AndroidForWorkEnrollmentTargetVAll undocumented + AndroidForWorkEnrollmentTargetVAll AndroidForWorkEnrollmentTarget = "all" + // AndroidForWorkEnrollmentTargetVTargeted undocumented + AndroidForWorkEnrollmentTargetVTargeted AndroidForWorkEnrollmentTarget = "targeted" + // AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented + AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidForWorkEnrollmentTarget = "targetedAsEnrollmentRestrictions" +) + +var ( + // AndroidForWorkEnrollmentTargetPNone is a pointer to AndroidForWorkEnrollmentTargetVNone + AndroidForWorkEnrollmentTargetPNone = &_AndroidForWorkEnrollmentTargetPNone + // AndroidForWorkEnrollmentTargetPAll is a pointer to AndroidForWorkEnrollmentTargetVAll + AndroidForWorkEnrollmentTargetPAll = &_AndroidForWorkEnrollmentTargetPAll + // AndroidForWorkEnrollmentTargetPTargeted is a pointer to AndroidForWorkEnrollmentTargetVTargeted + AndroidForWorkEnrollmentTargetPTargeted = &_AndroidForWorkEnrollmentTargetPTargeted + // AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions is a pointer to AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions + AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions = &_AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions +) + +var ( + _AndroidForWorkEnrollmentTargetPNone = AndroidForWorkEnrollmentTargetVNone + _AndroidForWorkEnrollmentTargetPAll = AndroidForWorkEnrollmentTargetVAll + _AndroidForWorkEnrollmentTargetPTargeted = AndroidForWorkEnrollmentTargetVTargeted + _AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions = AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions +) + +// AndroidForWorkRequiredPasswordType undocumented +type AndroidForWorkRequiredPasswordType string + +const ( + // AndroidForWorkRequiredPasswordTypeVDeviceDefault undocumented + AndroidForWorkRequiredPasswordTypeVDeviceDefault AndroidForWorkRequiredPasswordType = "deviceDefault" + // AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric undocumented + AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric AndroidForWorkRequiredPasswordType = "lowSecurityBiometric" + // AndroidForWorkRequiredPasswordTypeVRequired undocumented + AndroidForWorkRequiredPasswordTypeVRequired AndroidForWorkRequiredPasswordType = "required" + // AndroidForWorkRequiredPasswordTypeVAtLeastNumeric undocumented + AndroidForWorkRequiredPasswordTypeVAtLeastNumeric AndroidForWorkRequiredPasswordType = "atLeastNumeric" + // AndroidForWorkRequiredPasswordTypeVNumericComplex undocumented + AndroidForWorkRequiredPasswordTypeVNumericComplex AndroidForWorkRequiredPasswordType = "numericComplex" + // AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic undocumented + AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic AndroidForWorkRequiredPasswordType = "atLeastAlphabetic" + // AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric undocumented + AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric AndroidForWorkRequiredPasswordType = "atLeastAlphanumeric" + // AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols undocumented + AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols AndroidForWorkRequiredPasswordType = "alphanumericWithSymbols" +) + +var ( + // AndroidForWorkRequiredPasswordTypePDeviceDefault is a pointer to AndroidForWorkRequiredPasswordTypeVDeviceDefault + AndroidForWorkRequiredPasswordTypePDeviceDefault = &_AndroidForWorkRequiredPasswordTypePDeviceDefault + // AndroidForWorkRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric + AndroidForWorkRequiredPasswordTypePLowSecurityBiometric = &_AndroidForWorkRequiredPasswordTypePLowSecurityBiometric + // AndroidForWorkRequiredPasswordTypePRequired is a pointer to AndroidForWorkRequiredPasswordTypeVRequired + AndroidForWorkRequiredPasswordTypePRequired = &_AndroidForWorkRequiredPasswordTypePRequired + // AndroidForWorkRequiredPasswordTypePAtLeastNumeric is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastNumeric + AndroidForWorkRequiredPasswordTypePAtLeastNumeric = &_AndroidForWorkRequiredPasswordTypePAtLeastNumeric + // AndroidForWorkRequiredPasswordTypePNumericComplex is a pointer to AndroidForWorkRequiredPasswordTypeVNumericComplex + AndroidForWorkRequiredPasswordTypePNumericComplex = &_AndroidForWorkRequiredPasswordTypePNumericComplex + // AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic + AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic = &_AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic + // AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric + AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric = &_AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric + // AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols + AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols +) + +var ( + _AndroidForWorkRequiredPasswordTypePDeviceDefault = AndroidForWorkRequiredPasswordTypeVDeviceDefault + _AndroidForWorkRequiredPasswordTypePLowSecurityBiometric = AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric + _AndroidForWorkRequiredPasswordTypePRequired = AndroidForWorkRequiredPasswordTypeVRequired + _AndroidForWorkRequiredPasswordTypePAtLeastNumeric = AndroidForWorkRequiredPasswordTypeVAtLeastNumeric + _AndroidForWorkRequiredPasswordTypePNumericComplex = AndroidForWorkRequiredPasswordTypeVNumericComplex + _AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic = AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic + _AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric = AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric + _AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols = AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols +) + +// AndroidForWorkSyncStatus undocumented +type AndroidForWorkSyncStatus string + +const ( + // AndroidForWorkSyncStatusVSuccess undocumented + AndroidForWorkSyncStatusVSuccess AndroidForWorkSyncStatus = "success" + // AndroidForWorkSyncStatusVCredentialsNotValid undocumented + AndroidForWorkSyncStatusVCredentialsNotValid AndroidForWorkSyncStatus = "credentialsNotValid" + // AndroidForWorkSyncStatusVAndroidForWorkAPIError undocumented + AndroidForWorkSyncStatusVAndroidForWorkAPIError AndroidForWorkSyncStatus = "androidForWorkApiError" + // AndroidForWorkSyncStatusVManagementServiceError undocumented + AndroidForWorkSyncStatusVManagementServiceError AndroidForWorkSyncStatus = "managementServiceError" + // AndroidForWorkSyncStatusVUnknownError undocumented + AndroidForWorkSyncStatusVUnknownError AndroidForWorkSyncStatus = "unknownError" + // AndroidForWorkSyncStatusVNone undocumented + AndroidForWorkSyncStatusVNone AndroidForWorkSyncStatus = "none" +) + +var ( + // AndroidForWorkSyncStatusPSuccess is a pointer to AndroidForWorkSyncStatusVSuccess + AndroidForWorkSyncStatusPSuccess = &_AndroidForWorkSyncStatusPSuccess + // AndroidForWorkSyncStatusPCredentialsNotValid is a pointer to AndroidForWorkSyncStatusVCredentialsNotValid + AndroidForWorkSyncStatusPCredentialsNotValid = &_AndroidForWorkSyncStatusPCredentialsNotValid + // AndroidForWorkSyncStatusPAndroidForWorkAPIError is a pointer to AndroidForWorkSyncStatusVAndroidForWorkAPIError + AndroidForWorkSyncStatusPAndroidForWorkAPIError = &_AndroidForWorkSyncStatusPAndroidForWorkAPIError + // AndroidForWorkSyncStatusPManagementServiceError is a pointer to AndroidForWorkSyncStatusVManagementServiceError + AndroidForWorkSyncStatusPManagementServiceError = &_AndroidForWorkSyncStatusPManagementServiceError + // AndroidForWorkSyncStatusPUnknownError is a pointer to AndroidForWorkSyncStatusVUnknownError + AndroidForWorkSyncStatusPUnknownError = &_AndroidForWorkSyncStatusPUnknownError + // AndroidForWorkSyncStatusPNone is a pointer to AndroidForWorkSyncStatusVNone + AndroidForWorkSyncStatusPNone = &_AndroidForWorkSyncStatusPNone +) + +var ( + _AndroidForWorkSyncStatusPSuccess = AndroidForWorkSyncStatusVSuccess + _AndroidForWorkSyncStatusPCredentialsNotValid = AndroidForWorkSyncStatusVCredentialsNotValid + _AndroidForWorkSyncStatusPAndroidForWorkAPIError = AndroidForWorkSyncStatusVAndroidForWorkAPIError + _AndroidForWorkSyncStatusPManagementServiceError = AndroidForWorkSyncStatusVManagementServiceError + _AndroidForWorkSyncStatusPUnknownError = AndroidForWorkSyncStatusVUnknownError + _AndroidForWorkSyncStatusPNone = AndroidForWorkSyncStatusVNone +) + +// AndroidForWorkVPNConnectionType undocumented +type AndroidForWorkVPNConnectionType string + +const ( + // AndroidForWorkVPNConnectionTypeVCiscoAnyConnect undocumented + AndroidForWorkVPNConnectionTypeVCiscoAnyConnect AndroidForWorkVPNConnectionType = "ciscoAnyConnect" + // AndroidForWorkVPNConnectionTypeVPulseSecure undocumented + AndroidForWorkVPNConnectionTypeVPulseSecure AndroidForWorkVPNConnectionType = "pulseSecure" + // AndroidForWorkVPNConnectionTypeVF5EdgeClient undocumented + AndroidForWorkVPNConnectionTypeVF5EdgeClient AndroidForWorkVPNConnectionType = "f5EdgeClient" + // AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect undocumented + AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect AndroidForWorkVPNConnectionType = "dellSonicWallMobileConnect" + // AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN undocumented + AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN AndroidForWorkVPNConnectionType = "checkPointCapsuleVpn" + // AndroidForWorkVPNConnectionTypeVCitrix undocumented + AndroidForWorkVPNConnectionTypeVCitrix AndroidForWorkVPNConnectionType = "citrix" +) + +var ( + // AndroidForWorkVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidForWorkVPNConnectionTypeVCiscoAnyConnect + AndroidForWorkVPNConnectionTypePCiscoAnyConnect = &_AndroidForWorkVPNConnectionTypePCiscoAnyConnect + // AndroidForWorkVPNConnectionTypePPulseSecure is a pointer to AndroidForWorkVPNConnectionTypeVPulseSecure + AndroidForWorkVPNConnectionTypePPulseSecure = &_AndroidForWorkVPNConnectionTypePPulseSecure + // AndroidForWorkVPNConnectionTypePF5EdgeClient is a pointer to AndroidForWorkVPNConnectionTypeVF5EdgeClient + AndroidForWorkVPNConnectionTypePF5EdgeClient = &_AndroidForWorkVPNConnectionTypePF5EdgeClient + // AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect + AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect + // AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN + AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN + // AndroidForWorkVPNConnectionTypePCitrix is a pointer to AndroidForWorkVPNConnectionTypeVCitrix + AndroidForWorkVPNConnectionTypePCitrix = &_AndroidForWorkVPNConnectionTypePCitrix +) + +var ( + _AndroidForWorkVPNConnectionTypePCiscoAnyConnect = AndroidForWorkVPNConnectionTypeVCiscoAnyConnect + _AndroidForWorkVPNConnectionTypePPulseSecure = AndroidForWorkVPNConnectionTypeVPulseSecure + _AndroidForWorkVPNConnectionTypePF5EdgeClient = AndroidForWorkVPNConnectionTypeVF5EdgeClient + _AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect = AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect + _AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN = AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN + _AndroidForWorkVPNConnectionTypePCitrix = AndroidForWorkVPNConnectionTypeVCitrix +) + +// AndroidKeyguardFeature undocumented +type AndroidKeyguardFeature string + +const ( + // AndroidKeyguardFeatureVNotConfigured undocumented + AndroidKeyguardFeatureVNotConfigured AndroidKeyguardFeature = "notConfigured" + // AndroidKeyguardFeatureVCamera undocumented + AndroidKeyguardFeatureVCamera AndroidKeyguardFeature = "camera" + // AndroidKeyguardFeatureVNotifications undocumented + AndroidKeyguardFeatureVNotifications AndroidKeyguardFeature = "notifications" + // AndroidKeyguardFeatureVUnredactedNotifications undocumented + AndroidKeyguardFeatureVUnredactedNotifications AndroidKeyguardFeature = "unredactedNotifications" + // AndroidKeyguardFeatureVTrustAgents undocumented + AndroidKeyguardFeatureVTrustAgents AndroidKeyguardFeature = "trustAgents" + // AndroidKeyguardFeatureVFingerprint undocumented + AndroidKeyguardFeatureVFingerprint AndroidKeyguardFeature = "fingerprint" + // AndroidKeyguardFeatureVRemoteInput undocumented + AndroidKeyguardFeatureVRemoteInput AndroidKeyguardFeature = "remoteInput" + // AndroidKeyguardFeatureVAllFeatures undocumented + AndroidKeyguardFeatureVAllFeatures AndroidKeyguardFeature = "allFeatures" +) + +var ( + // AndroidKeyguardFeaturePNotConfigured is a pointer to AndroidKeyguardFeatureVNotConfigured + AndroidKeyguardFeaturePNotConfigured = &_AndroidKeyguardFeaturePNotConfigured + // AndroidKeyguardFeaturePCamera is a pointer to AndroidKeyguardFeatureVCamera + AndroidKeyguardFeaturePCamera = &_AndroidKeyguardFeaturePCamera + // AndroidKeyguardFeaturePNotifications is a pointer to AndroidKeyguardFeatureVNotifications + AndroidKeyguardFeaturePNotifications = &_AndroidKeyguardFeaturePNotifications + // AndroidKeyguardFeaturePUnredactedNotifications is a pointer to AndroidKeyguardFeatureVUnredactedNotifications + AndroidKeyguardFeaturePUnredactedNotifications = &_AndroidKeyguardFeaturePUnredactedNotifications + // AndroidKeyguardFeaturePTrustAgents is a pointer to AndroidKeyguardFeatureVTrustAgents + AndroidKeyguardFeaturePTrustAgents = &_AndroidKeyguardFeaturePTrustAgents + // AndroidKeyguardFeaturePFingerprint is a pointer to AndroidKeyguardFeatureVFingerprint + AndroidKeyguardFeaturePFingerprint = &_AndroidKeyguardFeaturePFingerprint + // AndroidKeyguardFeaturePRemoteInput is a pointer to AndroidKeyguardFeatureVRemoteInput + AndroidKeyguardFeaturePRemoteInput = &_AndroidKeyguardFeaturePRemoteInput + // AndroidKeyguardFeaturePAllFeatures is a pointer to AndroidKeyguardFeatureVAllFeatures + AndroidKeyguardFeaturePAllFeatures = &_AndroidKeyguardFeaturePAllFeatures +) + +var ( + _AndroidKeyguardFeaturePNotConfigured = AndroidKeyguardFeatureVNotConfigured + _AndroidKeyguardFeaturePCamera = AndroidKeyguardFeatureVCamera + _AndroidKeyguardFeaturePNotifications = AndroidKeyguardFeatureVNotifications + _AndroidKeyguardFeaturePUnredactedNotifications = AndroidKeyguardFeatureVUnredactedNotifications + _AndroidKeyguardFeaturePTrustAgents = AndroidKeyguardFeatureVTrustAgents + _AndroidKeyguardFeaturePFingerprint = AndroidKeyguardFeatureVFingerprint + _AndroidKeyguardFeaturePRemoteInput = AndroidKeyguardFeatureVRemoteInput + _AndroidKeyguardFeaturePAllFeatures = AndroidKeyguardFeatureVAllFeatures +) + +// AndroidManagedAppSafetyNetAppsVerificationType undocumented +type AndroidManagedAppSafetyNetAppsVerificationType string + +const ( + // AndroidManagedAppSafetyNetAppsVerificationTypeVNone undocumented + AndroidManagedAppSafetyNetAppsVerificationTypeVNone AndroidManagedAppSafetyNetAppsVerificationType = "none" + // AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled undocumented + AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled AndroidManagedAppSafetyNetAppsVerificationType = "enabled" +) + +var ( + // AndroidManagedAppSafetyNetAppsVerificationTypePNone is a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVNone + AndroidManagedAppSafetyNetAppsVerificationTypePNone = &_AndroidManagedAppSafetyNetAppsVerificationTypePNone + // AndroidManagedAppSafetyNetAppsVerificationTypePEnabled is a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled + AndroidManagedAppSafetyNetAppsVerificationTypePEnabled = &_AndroidManagedAppSafetyNetAppsVerificationTypePEnabled +) + +var ( + _AndroidManagedAppSafetyNetAppsVerificationTypePNone = AndroidManagedAppSafetyNetAppsVerificationTypeVNone + _AndroidManagedAppSafetyNetAppsVerificationTypePEnabled = AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled +) + +// AndroidManagedAppSafetyNetDeviceAttestationType undocumented +type AndroidManagedAppSafetyNetDeviceAttestationType string + +const ( + // AndroidManagedAppSafetyNetDeviceAttestationTypeVNone undocumented + AndroidManagedAppSafetyNetDeviceAttestationTypeVNone AndroidManagedAppSafetyNetDeviceAttestationType = "none" + // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity undocumented + AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity AndroidManagedAppSafetyNetDeviceAttestationType = "basicIntegrity" + // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification undocumented + AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification AndroidManagedAppSafetyNetDeviceAttestationType = "basicIntegrityAndDeviceCertification" +) + +var ( + // AndroidManagedAppSafetyNetDeviceAttestationTypePNone is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVNone + AndroidManagedAppSafetyNetDeviceAttestationTypePNone = &_AndroidManagedAppSafetyNetDeviceAttestationTypePNone + // AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity + AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity = &_AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity + // AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification + AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification = &_AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification +) + +var ( + _AndroidManagedAppSafetyNetDeviceAttestationTypePNone = AndroidManagedAppSafetyNetDeviceAttestationTypeVNone + _AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity = AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity + _AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification = AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification +) + +// AndroidManagedStoreAccountAppSyncStatus undocumented +type AndroidManagedStoreAccountAppSyncStatus string + +const ( + // AndroidManagedStoreAccountAppSyncStatusVSuccess undocumented + AndroidManagedStoreAccountAppSyncStatusVSuccess AndroidManagedStoreAccountAppSyncStatus = "success" + // AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid undocumented + AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid AndroidManagedStoreAccountAppSyncStatus = "credentialsNotValid" + // AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError undocumented + AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError AndroidManagedStoreAccountAppSyncStatus = "androidForWorkApiError" + // AndroidManagedStoreAccountAppSyncStatusVManagementServiceError undocumented + AndroidManagedStoreAccountAppSyncStatusVManagementServiceError AndroidManagedStoreAccountAppSyncStatus = "managementServiceError" + // AndroidManagedStoreAccountAppSyncStatusVUnknownError undocumented + AndroidManagedStoreAccountAppSyncStatusVUnknownError AndroidManagedStoreAccountAppSyncStatus = "unknownError" + // AndroidManagedStoreAccountAppSyncStatusVNone undocumented + AndroidManagedStoreAccountAppSyncStatusVNone AndroidManagedStoreAccountAppSyncStatus = "none" +) + +var ( + // AndroidManagedStoreAccountAppSyncStatusPSuccess is a pointer to AndroidManagedStoreAccountAppSyncStatusVSuccess + AndroidManagedStoreAccountAppSyncStatusPSuccess = &_AndroidManagedStoreAccountAppSyncStatusPSuccess + // AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid is a pointer to AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid + AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid = &_AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid + // AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError is a pointer to AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError + AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError = &_AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError + // AndroidManagedStoreAccountAppSyncStatusPManagementServiceError is a pointer to AndroidManagedStoreAccountAppSyncStatusVManagementServiceError + AndroidManagedStoreAccountAppSyncStatusPManagementServiceError = &_AndroidManagedStoreAccountAppSyncStatusPManagementServiceError + // AndroidManagedStoreAccountAppSyncStatusPUnknownError is a pointer to AndroidManagedStoreAccountAppSyncStatusVUnknownError + AndroidManagedStoreAccountAppSyncStatusPUnknownError = &_AndroidManagedStoreAccountAppSyncStatusPUnknownError + // AndroidManagedStoreAccountAppSyncStatusPNone is a pointer to AndroidManagedStoreAccountAppSyncStatusVNone + AndroidManagedStoreAccountAppSyncStatusPNone = &_AndroidManagedStoreAccountAppSyncStatusPNone +) + +var ( + _AndroidManagedStoreAccountAppSyncStatusPSuccess = AndroidManagedStoreAccountAppSyncStatusVSuccess + _AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid = AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid + _AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError = AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError + _AndroidManagedStoreAccountAppSyncStatusPManagementServiceError = AndroidManagedStoreAccountAppSyncStatusVManagementServiceError + _AndroidManagedStoreAccountAppSyncStatusPUnknownError = AndroidManagedStoreAccountAppSyncStatusVUnknownError + _AndroidManagedStoreAccountAppSyncStatusPNone = AndroidManagedStoreAccountAppSyncStatusVNone +) + +// AndroidManagedStoreAccountBindStatus undocumented +type AndroidManagedStoreAccountBindStatus string + +const ( + // AndroidManagedStoreAccountBindStatusVNotBound undocumented + AndroidManagedStoreAccountBindStatusVNotBound AndroidManagedStoreAccountBindStatus = "notBound" + // AndroidManagedStoreAccountBindStatusVBound undocumented + AndroidManagedStoreAccountBindStatusVBound AndroidManagedStoreAccountBindStatus = "bound" + // AndroidManagedStoreAccountBindStatusVBoundAndValidated undocumented + AndroidManagedStoreAccountBindStatusVBoundAndValidated AndroidManagedStoreAccountBindStatus = "boundAndValidated" + // AndroidManagedStoreAccountBindStatusVUnbinding undocumented + AndroidManagedStoreAccountBindStatusVUnbinding AndroidManagedStoreAccountBindStatus = "unbinding" +) + +var ( + // AndroidManagedStoreAccountBindStatusPNotBound is a pointer to AndroidManagedStoreAccountBindStatusVNotBound + AndroidManagedStoreAccountBindStatusPNotBound = &_AndroidManagedStoreAccountBindStatusPNotBound + // AndroidManagedStoreAccountBindStatusPBound is a pointer to AndroidManagedStoreAccountBindStatusVBound + AndroidManagedStoreAccountBindStatusPBound = &_AndroidManagedStoreAccountBindStatusPBound + // AndroidManagedStoreAccountBindStatusPBoundAndValidated is a pointer to AndroidManagedStoreAccountBindStatusVBoundAndValidated + AndroidManagedStoreAccountBindStatusPBoundAndValidated = &_AndroidManagedStoreAccountBindStatusPBoundAndValidated + // AndroidManagedStoreAccountBindStatusPUnbinding is a pointer to AndroidManagedStoreAccountBindStatusVUnbinding + AndroidManagedStoreAccountBindStatusPUnbinding = &_AndroidManagedStoreAccountBindStatusPUnbinding +) + +var ( + _AndroidManagedStoreAccountBindStatusPNotBound = AndroidManagedStoreAccountBindStatusVNotBound + _AndroidManagedStoreAccountBindStatusPBound = AndroidManagedStoreAccountBindStatusVBound + _AndroidManagedStoreAccountBindStatusPBoundAndValidated = AndroidManagedStoreAccountBindStatusVBoundAndValidated + _AndroidManagedStoreAccountBindStatusPUnbinding = AndroidManagedStoreAccountBindStatusVUnbinding +) + +// AndroidManagedStoreAccountEnrollmentTarget undocumented +type AndroidManagedStoreAccountEnrollmentTarget string + +const ( + // AndroidManagedStoreAccountEnrollmentTargetVNone undocumented + AndroidManagedStoreAccountEnrollmentTargetVNone AndroidManagedStoreAccountEnrollmentTarget = "none" + // AndroidManagedStoreAccountEnrollmentTargetVAll undocumented + AndroidManagedStoreAccountEnrollmentTargetVAll AndroidManagedStoreAccountEnrollmentTarget = "all" + // AndroidManagedStoreAccountEnrollmentTargetVTargeted undocumented + AndroidManagedStoreAccountEnrollmentTargetVTargeted AndroidManagedStoreAccountEnrollmentTarget = "targeted" + // AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented + AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidManagedStoreAccountEnrollmentTarget = "targetedAsEnrollmentRestrictions" +) + +var ( + // AndroidManagedStoreAccountEnrollmentTargetPNone is a pointer to AndroidManagedStoreAccountEnrollmentTargetVNone + AndroidManagedStoreAccountEnrollmentTargetPNone = &_AndroidManagedStoreAccountEnrollmentTargetPNone + // AndroidManagedStoreAccountEnrollmentTargetPAll is a pointer to AndroidManagedStoreAccountEnrollmentTargetVAll + AndroidManagedStoreAccountEnrollmentTargetPAll = &_AndroidManagedStoreAccountEnrollmentTargetPAll + // AndroidManagedStoreAccountEnrollmentTargetPTargeted is a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargeted + AndroidManagedStoreAccountEnrollmentTargetPTargeted = &_AndroidManagedStoreAccountEnrollmentTargetPTargeted + // AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions is a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions + AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions = &_AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions +) + +var ( + _AndroidManagedStoreAccountEnrollmentTargetPNone = AndroidManagedStoreAccountEnrollmentTargetVNone + _AndroidManagedStoreAccountEnrollmentTargetPAll = AndroidManagedStoreAccountEnrollmentTargetVAll + _AndroidManagedStoreAccountEnrollmentTargetPTargeted = AndroidManagedStoreAccountEnrollmentTargetVTargeted + _AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions = AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions +) + +// AndroidManagedStoreAppConfigurationSchemaItemDataType undocumented +type AndroidManagedStoreAppConfigurationSchemaItemDataType string + +const ( + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool AndroidManagedStoreAppConfigurationSchemaItemDataType = "bool" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger AndroidManagedStoreAppConfigurationSchemaItemDataType = "integer" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString AndroidManagedStoreAppConfigurationSchemaItemDataType = "string" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice AndroidManagedStoreAppConfigurationSchemaItemDataType = "choice" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect AndroidManagedStoreAppConfigurationSchemaItemDataType = "multiselect" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle AndroidManagedStoreAppConfigurationSchemaItemDataType = "bundle" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray AndroidManagedStoreAppConfigurationSchemaItemDataType = "bundleArray" + // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden undocumented + AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden AndroidManagedStoreAppConfigurationSchemaItemDataType = "hidden" +) + +var ( + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool + AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger + AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePString is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString + AndroidManagedStoreAppConfigurationSchemaItemDataTypePString = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePString + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice + AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect + AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle + AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray + AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray + // AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden + AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden +) + +var ( + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePString = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray + _AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden +) + +// AndroidPermissionActionType undocumented +type AndroidPermissionActionType string + +const ( + // AndroidPermissionActionTypeVPrompt undocumented + AndroidPermissionActionTypeVPrompt AndroidPermissionActionType = "prompt" + // AndroidPermissionActionTypeVAutoGrant undocumented + AndroidPermissionActionTypeVAutoGrant AndroidPermissionActionType = "autoGrant" + // AndroidPermissionActionTypeVAutoDeny undocumented + AndroidPermissionActionTypeVAutoDeny AndroidPermissionActionType = "autoDeny" +) + +var ( + // AndroidPermissionActionTypePPrompt is a pointer to AndroidPermissionActionTypeVPrompt + AndroidPermissionActionTypePPrompt = &_AndroidPermissionActionTypePPrompt + // AndroidPermissionActionTypePAutoGrant is a pointer to AndroidPermissionActionTypeVAutoGrant + AndroidPermissionActionTypePAutoGrant = &_AndroidPermissionActionTypePAutoGrant + // AndroidPermissionActionTypePAutoDeny is a pointer to AndroidPermissionActionTypeVAutoDeny + AndroidPermissionActionTypePAutoDeny = &_AndroidPermissionActionTypePAutoDeny +) + +var ( + _AndroidPermissionActionTypePPrompt = AndroidPermissionActionTypeVPrompt + _AndroidPermissionActionTypePAutoGrant = AndroidPermissionActionTypeVAutoGrant + _AndroidPermissionActionTypePAutoDeny = AndroidPermissionActionTypeVAutoDeny +) + +// AndroidRequiredPasswordType undocumented +type AndroidRequiredPasswordType string + +const ( + // AndroidRequiredPasswordTypeVDeviceDefault undocumented + AndroidRequiredPasswordTypeVDeviceDefault AndroidRequiredPasswordType = "deviceDefault" + // AndroidRequiredPasswordTypeVAlphabetic undocumented + AndroidRequiredPasswordTypeVAlphabetic AndroidRequiredPasswordType = "alphabetic" + // AndroidRequiredPasswordTypeVAlphanumeric undocumented + AndroidRequiredPasswordTypeVAlphanumeric AndroidRequiredPasswordType = "alphanumeric" + // AndroidRequiredPasswordTypeVAlphanumericWithSymbols undocumented + AndroidRequiredPasswordTypeVAlphanumericWithSymbols AndroidRequiredPasswordType = "alphanumericWithSymbols" + // AndroidRequiredPasswordTypeVLowSecurityBiometric undocumented + AndroidRequiredPasswordTypeVLowSecurityBiometric AndroidRequiredPasswordType = "lowSecurityBiometric" + // AndroidRequiredPasswordTypeVNumeric undocumented + AndroidRequiredPasswordTypeVNumeric AndroidRequiredPasswordType = "numeric" + // AndroidRequiredPasswordTypeVNumericComplex undocumented + AndroidRequiredPasswordTypeVNumericComplex AndroidRequiredPasswordType = "numericComplex" + // AndroidRequiredPasswordTypeVAny undocumented + AndroidRequiredPasswordTypeVAny AndroidRequiredPasswordType = "any" +) + +var ( + // AndroidRequiredPasswordTypePDeviceDefault is a pointer to AndroidRequiredPasswordTypeVDeviceDefault + AndroidRequiredPasswordTypePDeviceDefault = &_AndroidRequiredPasswordTypePDeviceDefault + // AndroidRequiredPasswordTypePAlphabetic is a pointer to AndroidRequiredPasswordTypeVAlphabetic + AndroidRequiredPasswordTypePAlphabetic = &_AndroidRequiredPasswordTypePAlphabetic + // AndroidRequiredPasswordTypePAlphanumeric is a pointer to AndroidRequiredPasswordTypeVAlphanumeric + AndroidRequiredPasswordTypePAlphanumeric = &_AndroidRequiredPasswordTypePAlphanumeric + // AndroidRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidRequiredPasswordTypeVAlphanumericWithSymbols + AndroidRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidRequiredPasswordTypePAlphanumericWithSymbols + // AndroidRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidRequiredPasswordTypeVLowSecurityBiometric + AndroidRequiredPasswordTypePLowSecurityBiometric = &_AndroidRequiredPasswordTypePLowSecurityBiometric + // AndroidRequiredPasswordTypePNumeric is a pointer to AndroidRequiredPasswordTypeVNumeric + AndroidRequiredPasswordTypePNumeric = &_AndroidRequiredPasswordTypePNumeric + // AndroidRequiredPasswordTypePNumericComplex is a pointer to AndroidRequiredPasswordTypeVNumericComplex + AndroidRequiredPasswordTypePNumericComplex = &_AndroidRequiredPasswordTypePNumericComplex + // AndroidRequiredPasswordTypePAny is a pointer to AndroidRequiredPasswordTypeVAny + AndroidRequiredPasswordTypePAny = &_AndroidRequiredPasswordTypePAny +) + +var ( + _AndroidRequiredPasswordTypePDeviceDefault = AndroidRequiredPasswordTypeVDeviceDefault + _AndroidRequiredPasswordTypePAlphabetic = AndroidRequiredPasswordTypeVAlphabetic + _AndroidRequiredPasswordTypePAlphanumeric = AndroidRequiredPasswordTypeVAlphanumeric + _AndroidRequiredPasswordTypePAlphanumericWithSymbols = AndroidRequiredPasswordTypeVAlphanumericWithSymbols + _AndroidRequiredPasswordTypePLowSecurityBiometric = AndroidRequiredPasswordTypeVLowSecurityBiometric + _AndroidRequiredPasswordTypePNumeric = AndroidRequiredPasswordTypeVNumeric + _AndroidRequiredPasswordTypePNumericComplex = AndroidRequiredPasswordTypeVNumericComplex + _AndroidRequiredPasswordTypePAny = AndroidRequiredPasswordTypeVAny +) + +// AndroidUsernameSource undocumented +type AndroidUsernameSource string + +const ( + // AndroidUsernameSourceVUsername undocumented + AndroidUsernameSourceVUsername AndroidUsernameSource = "username" + // AndroidUsernameSourceVUserPrincipalName undocumented + AndroidUsernameSourceVUserPrincipalName AndroidUsernameSource = "userPrincipalName" + // AndroidUsernameSourceVSamAccountName undocumented + AndroidUsernameSourceVSamAccountName AndroidUsernameSource = "samAccountName" + // AndroidUsernameSourceVPrimarySMTPAddress undocumented + AndroidUsernameSourceVPrimarySMTPAddress AndroidUsernameSource = "primarySmtpAddress" +) + +var ( + // AndroidUsernameSourcePUsername is a pointer to AndroidUsernameSourceVUsername + AndroidUsernameSourcePUsername = &_AndroidUsernameSourcePUsername + // AndroidUsernameSourcePUserPrincipalName is a pointer to AndroidUsernameSourceVUserPrincipalName + AndroidUsernameSourcePUserPrincipalName = &_AndroidUsernameSourcePUserPrincipalName + // AndroidUsernameSourcePSamAccountName is a pointer to AndroidUsernameSourceVSamAccountName + AndroidUsernameSourcePSamAccountName = &_AndroidUsernameSourcePSamAccountName + // AndroidUsernameSourcePPrimarySMTPAddress is a pointer to AndroidUsernameSourceVPrimarySMTPAddress + AndroidUsernameSourcePPrimarySMTPAddress = &_AndroidUsernameSourcePPrimarySMTPAddress +) + +var ( + _AndroidUsernameSourcePUsername = AndroidUsernameSourceVUsername + _AndroidUsernameSourcePUserPrincipalName = AndroidUsernameSourceVUserPrincipalName + _AndroidUsernameSourcePSamAccountName = AndroidUsernameSourceVSamAccountName + _AndroidUsernameSourcePPrimarySMTPAddress = AndroidUsernameSourceVPrimarySMTPAddress +) + +// AndroidVPNConnectionType undocumented +type AndroidVPNConnectionType string + +const ( + // AndroidVPNConnectionTypeVCiscoAnyConnect undocumented + AndroidVPNConnectionTypeVCiscoAnyConnect AndroidVPNConnectionType = "ciscoAnyConnect" + // AndroidVPNConnectionTypeVPulseSecure undocumented + AndroidVPNConnectionTypeVPulseSecure AndroidVPNConnectionType = "pulseSecure" + // AndroidVPNConnectionTypeVF5EdgeClient undocumented + AndroidVPNConnectionTypeVF5EdgeClient AndroidVPNConnectionType = "f5EdgeClient" + // AndroidVPNConnectionTypeVDellSonicWallMobileConnect undocumented + AndroidVPNConnectionTypeVDellSonicWallMobileConnect AndroidVPNConnectionType = "dellSonicWallMobileConnect" + // AndroidVPNConnectionTypeVCheckPointCapsuleVPN undocumented + AndroidVPNConnectionTypeVCheckPointCapsuleVPN AndroidVPNConnectionType = "checkPointCapsuleVpn" + // AndroidVPNConnectionTypeVCitrix undocumented + AndroidVPNConnectionTypeVCitrix AndroidVPNConnectionType = "citrix" +) + +var ( + // AndroidVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidVPNConnectionTypeVCiscoAnyConnect + AndroidVPNConnectionTypePCiscoAnyConnect = &_AndroidVPNConnectionTypePCiscoAnyConnect + // AndroidVPNConnectionTypePPulseSecure is a pointer to AndroidVPNConnectionTypeVPulseSecure + AndroidVPNConnectionTypePPulseSecure = &_AndroidVPNConnectionTypePPulseSecure + // AndroidVPNConnectionTypePF5EdgeClient is a pointer to AndroidVPNConnectionTypeVF5EdgeClient + AndroidVPNConnectionTypePF5EdgeClient = &_AndroidVPNConnectionTypePF5EdgeClient + // AndroidVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidVPNConnectionTypeVDellSonicWallMobileConnect + AndroidVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidVPNConnectionTypePDellSonicWallMobileConnect + // AndroidVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidVPNConnectionTypeVCheckPointCapsuleVPN + AndroidVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidVPNConnectionTypePCheckPointCapsuleVPN + // AndroidVPNConnectionTypePCitrix is a pointer to AndroidVPNConnectionTypeVCitrix + AndroidVPNConnectionTypePCitrix = &_AndroidVPNConnectionTypePCitrix +) + +var ( + _AndroidVPNConnectionTypePCiscoAnyConnect = AndroidVPNConnectionTypeVCiscoAnyConnect + _AndroidVPNConnectionTypePPulseSecure = AndroidVPNConnectionTypeVPulseSecure + _AndroidVPNConnectionTypePF5EdgeClient = AndroidVPNConnectionTypeVF5EdgeClient + _AndroidVPNConnectionTypePDellSonicWallMobileConnect = AndroidVPNConnectionTypeVDellSonicWallMobileConnect + _AndroidVPNConnectionTypePCheckPointCapsuleVPN = AndroidVPNConnectionTypeVCheckPointCapsuleVPN + _AndroidVPNConnectionTypePCitrix = AndroidVPNConnectionTypeVCitrix +) + +// AndroidWiFiSecurityType undocumented +type AndroidWiFiSecurityType string + +const ( + // AndroidWiFiSecurityTypeVOpen undocumented + AndroidWiFiSecurityTypeVOpen AndroidWiFiSecurityType = "open" + // AndroidWiFiSecurityTypeVWpaEnterprise undocumented + AndroidWiFiSecurityTypeVWpaEnterprise AndroidWiFiSecurityType = "wpaEnterprise" + // AndroidWiFiSecurityTypeVWpa2Enterprise undocumented + AndroidWiFiSecurityTypeVWpa2Enterprise AndroidWiFiSecurityType = "wpa2Enterprise" +) + +var ( + // AndroidWiFiSecurityTypePOpen is a pointer to AndroidWiFiSecurityTypeVOpen + AndroidWiFiSecurityTypePOpen = &_AndroidWiFiSecurityTypePOpen + // AndroidWiFiSecurityTypePWpaEnterprise is a pointer to AndroidWiFiSecurityTypeVWpaEnterprise + AndroidWiFiSecurityTypePWpaEnterprise = &_AndroidWiFiSecurityTypePWpaEnterprise + // AndroidWiFiSecurityTypePWpa2Enterprise is a pointer to AndroidWiFiSecurityTypeVWpa2Enterprise + AndroidWiFiSecurityTypePWpa2Enterprise = &_AndroidWiFiSecurityTypePWpa2Enterprise +) + +var ( + _AndroidWiFiSecurityTypePOpen = AndroidWiFiSecurityTypeVOpen + _AndroidWiFiSecurityTypePWpaEnterprise = AndroidWiFiSecurityTypeVWpaEnterprise + _AndroidWiFiSecurityTypePWpa2Enterprise = AndroidWiFiSecurityTypeVWpa2Enterprise +) + +// AndroidWorkProfileCrossProfileDataSharingType undocumented +type AndroidWorkProfileCrossProfileDataSharingType string + +const ( + // AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault undocumented + AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault AndroidWorkProfileCrossProfileDataSharingType = "deviceDefault" + // AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny undocumented + AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny AndroidWorkProfileCrossProfileDataSharingType = "preventAny" + // AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork undocumented + AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork AndroidWorkProfileCrossProfileDataSharingType = "allowPersonalToWork" + // AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions undocumented + AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions AndroidWorkProfileCrossProfileDataSharingType = "noRestrictions" +) + +var ( + // AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault + AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault = &_AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault + // AndroidWorkProfileCrossProfileDataSharingTypePPreventAny is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny + AndroidWorkProfileCrossProfileDataSharingTypePPreventAny = &_AndroidWorkProfileCrossProfileDataSharingTypePPreventAny + // AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork + AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork = &_AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork + // AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions + AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions = &_AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions +) + +var ( + _AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault = AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault + _AndroidWorkProfileCrossProfileDataSharingTypePPreventAny = AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny + _AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork = AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork + _AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions = AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions +) + +// AndroidWorkProfileDefaultAppPermissionPolicyType undocumented +type AndroidWorkProfileDefaultAppPermissionPolicyType string + +const ( + // AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault undocumented + AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault AndroidWorkProfileDefaultAppPermissionPolicyType = "deviceDefault" + // AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt undocumented + AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt AndroidWorkProfileDefaultAppPermissionPolicyType = "prompt" + // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant undocumented + AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant AndroidWorkProfileDefaultAppPermissionPolicyType = "autoGrant" + // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny undocumented + AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny AndroidWorkProfileDefaultAppPermissionPolicyType = "autoDeny" +) + +var ( + // AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault + AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault + // AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt + AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt + // AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant + AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant + // AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny + AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny +) + +var ( + _AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault = AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault + _AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt = AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt + _AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant = AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant + _AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny = AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny +) + +// AndroidWorkProfileRequiredPasswordType undocumented +type AndroidWorkProfileRequiredPasswordType string + +const ( + // AndroidWorkProfileRequiredPasswordTypeVDeviceDefault undocumented + AndroidWorkProfileRequiredPasswordTypeVDeviceDefault AndroidWorkProfileRequiredPasswordType = "deviceDefault" + // AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric undocumented + AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric AndroidWorkProfileRequiredPasswordType = "lowSecurityBiometric" + // AndroidWorkProfileRequiredPasswordTypeVRequired undocumented + AndroidWorkProfileRequiredPasswordTypeVRequired AndroidWorkProfileRequiredPasswordType = "required" + // AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric undocumented + AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric AndroidWorkProfileRequiredPasswordType = "atLeastNumeric" + // AndroidWorkProfileRequiredPasswordTypeVNumericComplex undocumented + AndroidWorkProfileRequiredPasswordTypeVNumericComplex AndroidWorkProfileRequiredPasswordType = "numericComplex" + // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic undocumented + AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic AndroidWorkProfileRequiredPasswordType = "atLeastAlphabetic" + // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric undocumented + AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric AndroidWorkProfileRequiredPasswordType = "atLeastAlphanumeric" + // AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols undocumented + AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols AndroidWorkProfileRequiredPasswordType = "alphanumericWithSymbols" +) + +var ( + // AndroidWorkProfileRequiredPasswordTypePDeviceDefault is a pointer to AndroidWorkProfileRequiredPasswordTypeVDeviceDefault + AndroidWorkProfileRequiredPasswordTypePDeviceDefault = &_AndroidWorkProfileRequiredPasswordTypePDeviceDefault + // AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric + AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric = &_AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric + // AndroidWorkProfileRequiredPasswordTypePRequired is a pointer to AndroidWorkProfileRequiredPasswordTypeVRequired + AndroidWorkProfileRequiredPasswordTypePRequired = &_AndroidWorkProfileRequiredPasswordTypePRequired + // AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric + AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric = &_AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric + // AndroidWorkProfileRequiredPasswordTypePNumericComplex is a pointer to AndroidWorkProfileRequiredPasswordTypeVNumericComplex + AndroidWorkProfileRequiredPasswordTypePNumericComplex = &_AndroidWorkProfileRequiredPasswordTypePNumericComplex + // AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic + AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic = &_AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic + // AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric + AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric = &_AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric + // AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols + AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols +) + +var ( + _AndroidWorkProfileRequiredPasswordTypePDeviceDefault = AndroidWorkProfileRequiredPasswordTypeVDeviceDefault + _AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric = AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric + _AndroidWorkProfileRequiredPasswordTypePRequired = AndroidWorkProfileRequiredPasswordTypeVRequired + _AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric = AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric + _AndroidWorkProfileRequiredPasswordTypePNumericComplex = AndroidWorkProfileRequiredPasswordTypeVNumericComplex + _AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic = AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic + _AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric = AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric + _AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols = AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols +) + +// AndroidWorkProfileVPNConnectionType undocumented +type AndroidWorkProfileVPNConnectionType string + +const ( + // AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect undocumented + AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect AndroidWorkProfileVPNConnectionType = "ciscoAnyConnect" + // AndroidWorkProfileVPNConnectionTypeVPulseSecure undocumented + AndroidWorkProfileVPNConnectionTypeVPulseSecure AndroidWorkProfileVPNConnectionType = "pulseSecure" + // AndroidWorkProfileVPNConnectionTypeVF5EdgeClient undocumented + AndroidWorkProfileVPNConnectionTypeVF5EdgeClient AndroidWorkProfileVPNConnectionType = "f5EdgeClient" + // AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect undocumented + AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect AndroidWorkProfileVPNConnectionType = "dellSonicWallMobileConnect" + // AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN undocumented + AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN AndroidWorkProfileVPNConnectionType = "checkPointCapsuleVpn" + // AndroidWorkProfileVPNConnectionTypeVCitrix undocumented + AndroidWorkProfileVPNConnectionTypeVCitrix AndroidWorkProfileVPNConnectionType = "citrix" + // AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect undocumented + AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect AndroidWorkProfileVPNConnectionType = "paloAltoGlobalProtect" +) + +var ( + // AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect + AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect = &_AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect + // AndroidWorkProfileVPNConnectionTypePPulseSecure is a pointer to AndroidWorkProfileVPNConnectionTypeVPulseSecure + AndroidWorkProfileVPNConnectionTypePPulseSecure = &_AndroidWorkProfileVPNConnectionTypePPulseSecure + // AndroidWorkProfileVPNConnectionTypePF5EdgeClient is a pointer to AndroidWorkProfileVPNConnectionTypeVF5EdgeClient + AndroidWorkProfileVPNConnectionTypePF5EdgeClient = &_AndroidWorkProfileVPNConnectionTypePF5EdgeClient + // AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect + AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect + // AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN + AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN + // AndroidWorkProfileVPNConnectionTypePCitrix is a pointer to AndroidWorkProfileVPNConnectionTypeVCitrix + AndroidWorkProfileVPNConnectionTypePCitrix = &_AndroidWorkProfileVPNConnectionTypePCitrix + // AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect is a pointer to AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect + AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect = &_AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect +) + +var ( + _AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect = AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect + _AndroidWorkProfileVPNConnectionTypePPulseSecure = AndroidWorkProfileVPNConnectionTypeVPulseSecure + _AndroidWorkProfileVPNConnectionTypePF5EdgeClient = AndroidWorkProfileVPNConnectionTypeVF5EdgeClient + _AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect = AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect + _AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN = AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN + _AndroidWorkProfileVPNConnectionTypePCitrix = AndroidWorkProfileVPNConnectionTypeVCitrix + _AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect = AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go new file mode 100644 index 00000000..8a7c0d14 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AnniversaryType undocumented +type AnniversaryType string + +const ( + // AnniversaryTypeVBirthday undocumented + AnniversaryTypeVBirthday AnniversaryType = "birthday" + // AnniversaryTypeVWedding undocumented + AnniversaryTypeVWedding AnniversaryType = "wedding" + // AnniversaryTypeVUnknownFutureValue undocumented + AnniversaryTypeVUnknownFutureValue AnniversaryType = "unknownFutureValue" +) + +var ( + // AnniversaryTypePBirthday is a pointer to AnniversaryTypeVBirthday + AnniversaryTypePBirthday = &_AnniversaryTypePBirthday + // AnniversaryTypePWedding is a pointer to AnniversaryTypeVWedding + AnniversaryTypePWedding = &_AnniversaryTypePWedding + // AnniversaryTypePUnknownFutureValue is a pointer to AnniversaryTypeVUnknownFutureValue + AnniversaryTypePUnknownFutureValue = &_AnniversaryTypePUnknownFutureValue +) + +var ( + _AnniversaryTypePBirthday = AnniversaryTypeVBirthday + _AnniversaryTypePWedding = AnniversaryTypeVWedding + _AnniversaryTypePUnknownFutureValue = AnniversaryTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go new file mode 100644 index 00000000..a11ffea5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go @@ -0,0 +1,212 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AppInstallControlType undocumented +type AppInstallControlType string + +const ( + // AppInstallControlTypeVNotConfigured undocumented + AppInstallControlTypeVNotConfigured AppInstallControlType = "notConfigured" + // AppInstallControlTypeVAnywhere undocumented + AppInstallControlTypeVAnywhere AppInstallControlType = "anywhere" + // AppInstallControlTypeVStoreOnly undocumented + AppInstallControlTypeVStoreOnly AppInstallControlType = "storeOnly" + // AppInstallControlTypeVRecommendations undocumented + AppInstallControlTypeVRecommendations AppInstallControlType = "recommendations" + // AppInstallControlTypeVPreferStore undocumented + AppInstallControlTypeVPreferStore AppInstallControlType = "preferStore" +) + +var ( + // AppInstallControlTypePNotConfigured is a pointer to AppInstallControlTypeVNotConfigured + AppInstallControlTypePNotConfigured = &_AppInstallControlTypePNotConfigured + // AppInstallControlTypePAnywhere is a pointer to AppInstallControlTypeVAnywhere + AppInstallControlTypePAnywhere = &_AppInstallControlTypePAnywhere + // AppInstallControlTypePStoreOnly is a pointer to AppInstallControlTypeVStoreOnly + AppInstallControlTypePStoreOnly = &_AppInstallControlTypePStoreOnly + // AppInstallControlTypePRecommendations is a pointer to AppInstallControlTypeVRecommendations + AppInstallControlTypePRecommendations = &_AppInstallControlTypePRecommendations + // AppInstallControlTypePPreferStore is a pointer to AppInstallControlTypeVPreferStore + AppInstallControlTypePPreferStore = &_AppInstallControlTypePPreferStore +) + +var ( + _AppInstallControlTypePNotConfigured = AppInstallControlTypeVNotConfigured + _AppInstallControlTypePAnywhere = AppInstallControlTypeVAnywhere + _AppInstallControlTypePStoreOnly = AppInstallControlTypeVStoreOnly + _AppInstallControlTypePRecommendations = AppInstallControlTypeVRecommendations + _AppInstallControlTypePPreferStore = AppInstallControlTypeVPreferStore +) + +// AppListType undocumented +type AppListType string + +const ( + // AppListTypeVNone undocumented + AppListTypeVNone AppListType = "none" + // AppListTypeVAppsInListCompliant undocumented + AppListTypeVAppsInListCompliant AppListType = "appsInListCompliant" + // AppListTypeVAppsNotInListCompliant undocumented + AppListTypeVAppsNotInListCompliant AppListType = "appsNotInListCompliant" +) + +var ( + // AppListTypePNone is a pointer to AppListTypeVNone + AppListTypePNone = &_AppListTypePNone + // AppListTypePAppsInListCompliant is a pointer to AppListTypeVAppsInListCompliant + AppListTypePAppsInListCompliant = &_AppListTypePAppsInListCompliant + // AppListTypePAppsNotInListCompliant is a pointer to AppListTypeVAppsNotInListCompliant + AppListTypePAppsNotInListCompliant = &_AppListTypePAppsNotInListCompliant +) + +var ( + _AppListTypePNone = AppListTypeVNone + _AppListTypePAppsInListCompliant = AppListTypeVAppsInListCompliant + _AppListTypePAppsNotInListCompliant = AppListTypeVAppsNotInListCompliant +) + +// AppLockerApplicationControlType undocumented +type AppLockerApplicationControlType string + +const ( + // AppLockerApplicationControlTypeVNotConfigured undocumented + AppLockerApplicationControlTypeVNotConfigured AppLockerApplicationControlType = "notConfigured" + // AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps undocumented + AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps AppLockerApplicationControlType = "enforceComponentsAndStoreApps" + // AppLockerApplicationControlTypeVAuditComponentsAndStoreApps undocumented + AppLockerApplicationControlTypeVAuditComponentsAndStoreApps AppLockerApplicationControlType = "auditComponentsAndStoreApps" + // AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker undocumented + AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = "enforceComponentsStoreAppsAndSmartlocker" + // AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker undocumented + AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = "auditComponentsStoreAppsAndSmartlocker" +) + +var ( + // AppLockerApplicationControlTypePNotConfigured is a pointer to AppLockerApplicationControlTypeVNotConfigured + AppLockerApplicationControlTypePNotConfigured = &_AppLockerApplicationControlTypePNotConfigured + // AppLockerApplicationControlTypePEnforceComponentsAndStoreApps is a pointer to AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps + AppLockerApplicationControlTypePEnforceComponentsAndStoreApps = &_AppLockerApplicationControlTypePEnforceComponentsAndStoreApps + // AppLockerApplicationControlTypePAuditComponentsAndStoreApps is a pointer to AppLockerApplicationControlTypeVAuditComponentsAndStoreApps + AppLockerApplicationControlTypePAuditComponentsAndStoreApps = &_AppLockerApplicationControlTypePAuditComponentsAndStoreApps + // AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker is a pointer to AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker + AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker = &_AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker + // AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker is a pointer to AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker + AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker = &_AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker +) + +var ( + _AppLockerApplicationControlTypePNotConfigured = AppLockerApplicationControlTypeVNotConfigured + _AppLockerApplicationControlTypePEnforceComponentsAndStoreApps = AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps + _AppLockerApplicationControlTypePAuditComponentsAndStoreApps = AppLockerApplicationControlTypeVAuditComponentsAndStoreApps + _AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker = AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker + _AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker = AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker +) + +// AppLogDecryptionAlgorithm undocumented +type AppLogDecryptionAlgorithm string + +const ( + // AppLogDecryptionAlgorithmVAes256 undocumented + AppLogDecryptionAlgorithmVAes256 AppLogDecryptionAlgorithm = "aes256" +) + +var ( + // AppLogDecryptionAlgorithmPAes256 is a pointer to AppLogDecryptionAlgorithmVAes256 + AppLogDecryptionAlgorithmPAes256 = &_AppLogDecryptionAlgorithmPAes256 +) + +var ( + _AppLogDecryptionAlgorithmPAes256 = AppLogDecryptionAlgorithmVAes256 +) + +// AppLogUploadState undocumented +type AppLogUploadState string + +const ( + // AppLogUploadStateVPending undocumented + AppLogUploadStateVPending AppLogUploadState = "pending" + // AppLogUploadStateVCompleted undocumented + AppLogUploadStateVCompleted AppLogUploadState = "completed" + // AppLogUploadStateVFailed undocumented + AppLogUploadStateVFailed AppLogUploadState = "failed" +) + +var ( + // AppLogUploadStatePPending is a pointer to AppLogUploadStateVPending + AppLogUploadStatePPending = &_AppLogUploadStatePPending + // AppLogUploadStatePCompleted is a pointer to AppLogUploadStateVCompleted + AppLogUploadStatePCompleted = &_AppLogUploadStatePCompleted + // AppLogUploadStatePFailed is a pointer to AppLogUploadStateVFailed + AppLogUploadStatePFailed = &_AppLogUploadStatePFailed +) + +var ( + _AppLogUploadStatePPending = AppLogUploadStateVPending + _AppLogUploadStatePCompleted = AppLogUploadStateVCompleted + _AppLogUploadStatePFailed = AppLogUploadStateVFailed +) + +// AppManagementLevel undocumented +type AppManagementLevel string + +const ( + // AppManagementLevelVUnspecified undocumented + AppManagementLevelVUnspecified AppManagementLevel = "unspecified" + // AppManagementLevelVUnmanaged undocumented + AppManagementLevelVUnmanaged AppManagementLevel = "unmanaged" + // AppManagementLevelVMDM undocumented + AppManagementLevelVMDM AppManagementLevel = "mdm" + // AppManagementLevelVAndroidEnterprise undocumented + AppManagementLevelVAndroidEnterprise AppManagementLevel = "androidEnterprise" +) + +var ( + // AppManagementLevelPUnspecified is a pointer to AppManagementLevelVUnspecified + AppManagementLevelPUnspecified = &_AppManagementLevelPUnspecified + // AppManagementLevelPUnmanaged is a pointer to AppManagementLevelVUnmanaged + AppManagementLevelPUnmanaged = &_AppManagementLevelPUnmanaged + // AppManagementLevelPMDM is a pointer to AppManagementLevelVMDM + AppManagementLevelPMDM = &_AppManagementLevelPMDM + // AppManagementLevelPAndroidEnterprise is a pointer to AppManagementLevelVAndroidEnterprise + AppManagementLevelPAndroidEnterprise = &_AppManagementLevelPAndroidEnterprise +) + +var ( + _AppManagementLevelPUnspecified = AppManagementLevelVUnspecified + _AppManagementLevelPUnmanaged = AppManagementLevelVUnmanaged + _AppManagementLevelPMDM = AppManagementLevelVMDM + _AppManagementLevelPAndroidEnterprise = AppManagementLevelVAndroidEnterprise +) + +// AppVulnerabilityTaskMitigationType undocumented +type AppVulnerabilityTaskMitigationType string + +const ( + // AppVulnerabilityTaskMitigationTypeVUnknown undocumented + AppVulnerabilityTaskMitigationTypeVUnknown AppVulnerabilityTaskMitigationType = "unknown" + // AppVulnerabilityTaskMitigationTypeVUpdate undocumented + AppVulnerabilityTaskMitigationTypeVUpdate AppVulnerabilityTaskMitigationType = "update" + // AppVulnerabilityTaskMitigationTypeVUninstall undocumented + AppVulnerabilityTaskMitigationTypeVUninstall AppVulnerabilityTaskMitigationType = "uninstall" + // AppVulnerabilityTaskMitigationTypeVSecurityConfiguration undocumented + AppVulnerabilityTaskMitigationTypeVSecurityConfiguration AppVulnerabilityTaskMitigationType = "securityConfiguration" +) + +var ( + // AppVulnerabilityTaskMitigationTypePUnknown is a pointer to AppVulnerabilityTaskMitigationTypeVUnknown + AppVulnerabilityTaskMitigationTypePUnknown = &_AppVulnerabilityTaskMitigationTypePUnknown + // AppVulnerabilityTaskMitigationTypePUpdate is a pointer to AppVulnerabilityTaskMitigationTypeVUpdate + AppVulnerabilityTaskMitigationTypePUpdate = &_AppVulnerabilityTaskMitigationTypePUpdate + // AppVulnerabilityTaskMitigationTypePUninstall is a pointer to AppVulnerabilityTaskMitigationTypeVUninstall + AppVulnerabilityTaskMitigationTypePUninstall = &_AppVulnerabilityTaskMitigationTypePUninstall + // AppVulnerabilityTaskMitigationTypePSecurityConfiguration is a pointer to AppVulnerabilityTaskMitigationTypeVSecurityConfiguration + AppVulnerabilityTaskMitigationTypePSecurityConfiguration = &_AppVulnerabilityTaskMitigationTypePSecurityConfiguration +) + +var ( + _AppVulnerabilityTaskMitigationTypePUnknown = AppVulnerabilityTaskMitigationTypeVUnknown + _AppVulnerabilityTaskMitigationTypePUpdate = AppVulnerabilityTaskMitigationTypeVUpdate + _AppVulnerabilityTaskMitigationTypePUninstall = AppVulnerabilityTaskMitigationTypeVUninstall + _AppVulnerabilityTaskMitigationTypePSecurityConfiguration = AppVulnerabilityTaskMitigationTypeVSecurityConfiguration +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go new file mode 100644 index 00000000..ced6525b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go @@ -0,0 +1,159 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AppleSubjectNameFormat undocumented +type AppleSubjectNameFormat string + +const ( + // AppleSubjectNameFormatVCommonName undocumented + AppleSubjectNameFormatVCommonName AppleSubjectNameFormat = "commonName" + // AppleSubjectNameFormatVCommonNameAsEmail undocumented + AppleSubjectNameFormatVCommonNameAsEmail AppleSubjectNameFormat = "commonNameAsEmail" + // AppleSubjectNameFormatVCustom undocumented + AppleSubjectNameFormatVCustom AppleSubjectNameFormat = "custom" + // AppleSubjectNameFormatVCommonNameIncludingEmail undocumented + AppleSubjectNameFormatVCommonNameIncludingEmail AppleSubjectNameFormat = "commonNameIncludingEmail" + // AppleSubjectNameFormatVCommonNameAsIMEI undocumented + AppleSubjectNameFormatVCommonNameAsIMEI AppleSubjectNameFormat = "commonNameAsIMEI" + // AppleSubjectNameFormatVCommonNameAsSerialNumber undocumented + AppleSubjectNameFormatVCommonNameAsSerialNumber AppleSubjectNameFormat = "commonNameAsSerialNumber" +) + +var ( + // AppleSubjectNameFormatPCommonName is a pointer to AppleSubjectNameFormatVCommonName + AppleSubjectNameFormatPCommonName = &_AppleSubjectNameFormatPCommonName + // AppleSubjectNameFormatPCommonNameAsEmail is a pointer to AppleSubjectNameFormatVCommonNameAsEmail + AppleSubjectNameFormatPCommonNameAsEmail = &_AppleSubjectNameFormatPCommonNameAsEmail + // AppleSubjectNameFormatPCustom is a pointer to AppleSubjectNameFormatVCustom + AppleSubjectNameFormatPCustom = &_AppleSubjectNameFormatPCustom + // AppleSubjectNameFormatPCommonNameIncludingEmail is a pointer to AppleSubjectNameFormatVCommonNameIncludingEmail + AppleSubjectNameFormatPCommonNameIncludingEmail = &_AppleSubjectNameFormatPCommonNameIncludingEmail + // AppleSubjectNameFormatPCommonNameAsIMEI is a pointer to AppleSubjectNameFormatVCommonNameAsIMEI + AppleSubjectNameFormatPCommonNameAsIMEI = &_AppleSubjectNameFormatPCommonNameAsIMEI + // AppleSubjectNameFormatPCommonNameAsSerialNumber is a pointer to AppleSubjectNameFormatVCommonNameAsSerialNumber + AppleSubjectNameFormatPCommonNameAsSerialNumber = &_AppleSubjectNameFormatPCommonNameAsSerialNumber +) + +var ( + _AppleSubjectNameFormatPCommonName = AppleSubjectNameFormatVCommonName + _AppleSubjectNameFormatPCommonNameAsEmail = AppleSubjectNameFormatVCommonNameAsEmail + _AppleSubjectNameFormatPCustom = AppleSubjectNameFormatVCustom + _AppleSubjectNameFormatPCommonNameIncludingEmail = AppleSubjectNameFormatVCommonNameIncludingEmail + _AppleSubjectNameFormatPCommonNameAsIMEI = AppleSubjectNameFormatVCommonNameAsIMEI + _AppleSubjectNameFormatPCommonNameAsSerialNumber = AppleSubjectNameFormatVCommonNameAsSerialNumber +) + +// AppleUserInitiatedEnrollmentType undocumented +type AppleUserInitiatedEnrollmentType string + +const ( + // AppleUserInitiatedEnrollmentTypeVUnknown undocumented + AppleUserInitiatedEnrollmentTypeVUnknown AppleUserInitiatedEnrollmentType = "unknown" + // AppleUserInitiatedEnrollmentTypeVDevice undocumented + AppleUserInitiatedEnrollmentTypeVDevice AppleUserInitiatedEnrollmentType = "device" + // AppleUserInitiatedEnrollmentTypeVUser undocumented + AppleUserInitiatedEnrollmentTypeVUser AppleUserInitiatedEnrollmentType = "user" +) + +var ( + // AppleUserInitiatedEnrollmentTypePUnknown is a pointer to AppleUserInitiatedEnrollmentTypeVUnknown + AppleUserInitiatedEnrollmentTypePUnknown = &_AppleUserInitiatedEnrollmentTypePUnknown + // AppleUserInitiatedEnrollmentTypePDevice is a pointer to AppleUserInitiatedEnrollmentTypeVDevice + AppleUserInitiatedEnrollmentTypePDevice = &_AppleUserInitiatedEnrollmentTypePDevice + // AppleUserInitiatedEnrollmentTypePUser is a pointer to AppleUserInitiatedEnrollmentTypeVUser + AppleUserInitiatedEnrollmentTypePUser = &_AppleUserInitiatedEnrollmentTypePUser +) + +var ( + _AppleUserInitiatedEnrollmentTypePUnknown = AppleUserInitiatedEnrollmentTypeVUnknown + _AppleUserInitiatedEnrollmentTypePDevice = AppleUserInitiatedEnrollmentTypeVDevice + _AppleUserInitiatedEnrollmentTypePUser = AppleUserInitiatedEnrollmentTypeVUser +) + +// AppleVPNConnectionType undocumented +type AppleVPNConnectionType string + +const ( + // AppleVPNConnectionTypeVCiscoAnyConnect undocumented + AppleVPNConnectionTypeVCiscoAnyConnect AppleVPNConnectionType = "ciscoAnyConnect" + // AppleVPNConnectionTypeVPulseSecure undocumented + AppleVPNConnectionTypeVPulseSecure AppleVPNConnectionType = "pulseSecure" + // AppleVPNConnectionTypeVF5EdgeClient undocumented + AppleVPNConnectionTypeVF5EdgeClient AppleVPNConnectionType = "f5EdgeClient" + // AppleVPNConnectionTypeVDellSonicWallMobileConnect undocumented + AppleVPNConnectionTypeVDellSonicWallMobileConnect AppleVPNConnectionType = "dellSonicWallMobileConnect" + // AppleVPNConnectionTypeVCheckPointCapsuleVPN undocumented + AppleVPNConnectionTypeVCheckPointCapsuleVPN AppleVPNConnectionType = "checkPointCapsuleVpn" + // AppleVPNConnectionTypeVCustomVPN undocumented + AppleVPNConnectionTypeVCustomVPN AppleVPNConnectionType = "customVpn" + // AppleVPNConnectionTypeVCiscoIPSec undocumented + AppleVPNConnectionTypeVCiscoIPSec AppleVPNConnectionType = "ciscoIPSec" + // AppleVPNConnectionTypeVCitrix undocumented + AppleVPNConnectionTypeVCitrix AppleVPNConnectionType = "citrix" + // AppleVPNConnectionTypeVCiscoAnyConnectV2 undocumented + AppleVPNConnectionTypeVCiscoAnyConnectV2 AppleVPNConnectionType = "ciscoAnyConnectV2" + // AppleVPNConnectionTypeVPaloAltoGlobalProtect undocumented + AppleVPNConnectionTypeVPaloAltoGlobalProtect AppleVPNConnectionType = "paloAltoGlobalProtect" + // AppleVPNConnectionTypeVZscalerPrivateAccess undocumented + AppleVPNConnectionTypeVZscalerPrivateAccess AppleVPNConnectionType = "zscalerPrivateAccess" + // AppleVPNConnectionTypeVF5Access2018 undocumented + AppleVPNConnectionTypeVF5Access2018 AppleVPNConnectionType = "f5Access2018" + // AppleVPNConnectionTypeVCitrixSso undocumented + AppleVPNConnectionTypeVCitrixSso AppleVPNConnectionType = "citrixSso" + // AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 undocumented + AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 AppleVPNConnectionType = "paloAltoGlobalProtectV2" + // AppleVPNConnectionTypeVIkEv2 undocumented + AppleVPNConnectionTypeVIkEv2 AppleVPNConnectionType = "ikEv2" +) + +var ( + // AppleVPNConnectionTypePCiscoAnyConnect is a pointer to AppleVPNConnectionTypeVCiscoAnyConnect + AppleVPNConnectionTypePCiscoAnyConnect = &_AppleVPNConnectionTypePCiscoAnyConnect + // AppleVPNConnectionTypePPulseSecure is a pointer to AppleVPNConnectionTypeVPulseSecure + AppleVPNConnectionTypePPulseSecure = &_AppleVPNConnectionTypePPulseSecure + // AppleVPNConnectionTypePF5EdgeClient is a pointer to AppleVPNConnectionTypeVF5EdgeClient + AppleVPNConnectionTypePF5EdgeClient = &_AppleVPNConnectionTypePF5EdgeClient + // AppleVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AppleVPNConnectionTypeVDellSonicWallMobileConnect + AppleVPNConnectionTypePDellSonicWallMobileConnect = &_AppleVPNConnectionTypePDellSonicWallMobileConnect + // AppleVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AppleVPNConnectionTypeVCheckPointCapsuleVPN + AppleVPNConnectionTypePCheckPointCapsuleVPN = &_AppleVPNConnectionTypePCheckPointCapsuleVPN + // AppleVPNConnectionTypePCustomVPN is a pointer to AppleVPNConnectionTypeVCustomVPN + AppleVPNConnectionTypePCustomVPN = &_AppleVPNConnectionTypePCustomVPN + // AppleVPNConnectionTypePCiscoIPSec is a pointer to AppleVPNConnectionTypeVCiscoIPSec + AppleVPNConnectionTypePCiscoIPSec = &_AppleVPNConnectionTypePCiscoIPSec + // AppleVPNConnectionTypePCitrix is a pointer to AppleVPNConnectionTypeVCitrix + AppleVPNConnectionTypePCitrix = &_AppleVPNConnectionTypePCitrix + // AppleVPNConnectionTypePCiscoAnyConnectV2 is a pointer to AppleVPNConnectionTypeVCiscoAnyConnectV2 + AppleVPNConnectionTypePCiscoAnyConnectV2 = &_AppleVPNConnectionTypePCiscoAnyConnectV2 + // AppleVPNConnectionTypePPaloAltoGlobalProtect is a pointer to AppleVPNConnectionTypeVPaloAltoGlobalProtect + AppleVPNConnectionTypePPaloAltoGlobalProtect = &_AppleVPNConnectionTypePPaloAltoGlobalProtect + // AppleVPNConnectionTypePZscalerPrivateAccess is a pointer to AppleVPNConnectionTypeVZscalerPrivateAccess + AppleVPNConnectionTypePZscalerPrivateAccess = &_AppleVPNConnectionTypePZscalerPrivateAccess + // AppleVPNConnectionTypePF5Access2018 is a pointer to AppleVPNConnectionTypeVF5Access2018 + AppleVPNConnectionTypePF5Access2018 = &_AppleVPNConnectionTypePF5Access2018 + // AppleVPNConnectionTypePCitrixSso is a pointer to AppleVPNConnectionTypeVCitrixSso + AppleVPNConnectionTypePCitrixSso = &_AppleVPNConnectionTypePCitrixSso + // AppleVPNConnectionTypePPaloAltoGlobalProtectV2 is a pointer to AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 + AppleVPNConnectionTypePPaloAltoGlobalProtectV2 = &_AppleVPNConnectionTypePPaloAltoGlobalProtectV2 + // AppleVPNConnectionTypePIkEv2 is a pointer to AppleVPNConnectionTypeVIkEv2 + AppleVPNConnectionTypePIkEv2 = &_AppleVPNConnectionTypePIkEv2 +) + +var ( + _AppleVPNConnectionTypePCiscoAnyConnect = AppleVPNConnectionTypeVCiscoAnyConnect + _AppleVPNConnectionTypePPulseSecure = AppleVPNConnectionTypeVPulseSecure + _AppleVPNConnectionTypePF5EdgeClient = AppleVPNConnectionTypeVF5EdgeClient + _AppleVPNConnectionTypePDellSonicWallMobileConnect = AppleVPNConnectionTypeVDellSonicWallMobileConnect + _AppleVPNConnectionTypePCheckPointCapsuleVPN = AppleVPNConnectionTypeVCheckPointCapsuleVPN + _AppleVPNConnectionTypePCustomVPN = AppleVPNConnectionTypeVCustomVPN + _AppleVPNConnectionTypePCiscoIPSec = AppleVPNConnectionTypeVCiscoIPSec + _AppleVPNConnectionTypePCitrix = AppleVPNConnectionTypeVCitrix + _AppleVPNConnectionTypePCiscoAnyConnectV2 = AppleVPNConnectionTypeVCiscoAnyConnectV2 + _AppleVPNConnectionTypePPaloAltoGlobalProtect = AppleVPNConnectionTypeVPaloAltoGlobalProtect + _AppleVPNConnectionTypePZscalerPrivateAccess = AppleVPNConnectionTypeVZscalerPrivateAccess + _AppleVPNConnectionTypePF5Access2018 = AppleVPNConnectionTypeVF5Access2018 + _AppleVPNConnectionTypePCitrixSso = AppleVPNConnectionTypeVCitrixSso + _AppleVPNConnectionTypePPaloAltoGlobalProtectV2 = AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 + _AppleVPNConnectionTypePIkEv2 = AppleVPNConnectionTypeVIkEv2 +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go new file mode 100644 index 00000000..fcebdbf6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go @@ -0,0 +1,242 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ApplicationGuardBlockClipboardSharingType undocumented +type ApplicationGuardBlockClipboardSharingType string + +const ( + // ApplicationGuardBlockClipboardSharingTypeVNotConfigured undocumented + ApplicationGuardBlockClipboardSharingTypeVNotConfigured ApplicationGuardBlockClipboardSharingType = "notConfigured" + // ApplicationGuardBlockClipboardSharingTypeVBlockBoth undocumented + ApplicationGuardBlockClipboardSharingTypeVBlockBoth ApplicationGuardBlockClipboardSharingType = "blockBoth" + // ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer undocumented + ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer ApplicationGuardBlockClipboardSharingType = "blockHostToContainer" + // ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost undocumented + ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost ApplicationGuardBlockClipboardSharingType = "blockContainerToHost" + // ApplicationGuardBlockClipboardSharingTypeVBlockNone undocumented + ApplicationGuardBlockClipboardSharingTypeVBlockNone ApplicationGuardBlockClipboardSharingType = "blockNone" +) + +var ( + // ApplicationGuardBlockClipboardSharingTypePNotConfigured is a pointer to ApplicationGuardBlockClipboardSharingTypeVNotConfigured + ApplicationGuardBlockClipboardSharingTypePNotConfigured = &_ApplicationGuardBlockClipboardSharingTypePNotConfigured + // ApplicationGuardBlockClipboardSharingTypePBlockBoth is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockBoth + ApplicationGuardBlockClipboardSharingTypePBlockBoth = &_ApplicationGuardBlockClipboardSharingTypePBlockBoth + // ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer + ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer = &_ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer + // ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost + ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost = &_ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost + // ApplicationGuardBlockClipboardSharingTypePBlockNone is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockNone + ApplicationGuardBlockClipboardSharingTypePBlockNone = &_ApplicationGuardBlockClipboardSharingTypePBlockNone +) + +var ( + _ApplicationGuardBlockClipboardSharingTypePNotConfigured = ApplicationGuardBlockClipboardSharingTypeVNotConfigured + _ApplicationGuardBlockClipboardSharingTypePBlockBoth = ApplicationGuardBlockClipboardSharingTypeVBlockBoth + _ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer = ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer + _ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost = ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost + _ApplicationGuardBlockClipboardSharingTypePBlockNone = ApplicationGuardBlockClipboardSharingTypeVBlockNone +) + +// ApplicationGuardBlockFileTransferType undocumented +type ApplicationGuardBlockFileTransferType string + +const ( + // ApplicationGuardBlockFileTransferTypeVNotConfigured undocumented + ApplicationGuardBlockFileTransferTypeVNotConfigured ApplicationGuardBlockFileTransferType = "notConfigured" + // ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile undocumented + ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile ApplicationGuardBlockFileTransferType = "blockImageAndTextFile" + // ApplicationGuardBlockFileTransferTypeVBlockImageFile undocumented + ApplicationGuardBlockFileTransferTypeVBlockImageFile ApplicationGuardBlockFileTransferType = "blockImageFile" + // ApplicationGuardBlockFileTransferTypeVBlockNone undocumented + ApplicationGuardBlockFileTransferTypeVBlockNone ApplicationGuardBlockFileTransferType = "blockNone" + // ApplicationGuardBlockFileTransferTypeVBlockTextFile undocumented + ApplicationGuardBlockFileTransferTypeVBlockTextFile ApplicationGuardBlockFileTransferType = "blockTextFile" +) + +var ( + // ApplicationGuardBlockFileTransferTypePNotConfigured is a pointer to ApplicationGuardBlockFileTransferTypeVNotConfigured + ApplicationGuardBlockFileTransferTypePNotConfigured = &_ApplicationGuardBlockFileTransferTypePNotConfigured + // ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile + ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile = &_ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile + // ApplicationGuardBlockFileTransferTypePBlockImageFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageFile + ApplicationGuardBlockFileTransferTypePBlockImageFile = &_ApplicationGuardBlockFileTransferTypePBlockImageFile + // ApplicationGuardBlockFileTransferTypePBlockNone is a pointer to ApplicationGuardBlockFileTransferTypeVBlockNone + ApplicationGuardBlockFileTransferTypePBlockNone = &_ApplicationGuardBlockFileTransferTypePBlockNone + // ApplicationGuardBlockFileTransferTypePBlockTextFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockTextFile + ApplicationGuardBlockFileTransferTypePBlockTextFile = &_ApplicationGuardBlockFileTransferTypePBlockTextFile +) + +var ( + _ApplicationGuardBlockFileTransferTypePNotConfigured = ApplicationGuardBlockFileTransferTypeVNotConfigured + _ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile = ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile + _ApplicationGuardBlockFileTransferTypePBlockImageFile = ApplicationGuardBlockFileTransferTypeVBlockImageFile + _ApplicationGuardBlockFileTransferTypePBlockNone = ApplicationGuardBlockFileTransferTypeVBlockNone + _ApplicationGuardBlockFileTransferTypePBlockTextFile = ApplicationGuardBlockFileTransferTypeVBlockTextFile +) + +// ApplicationGuardEnabledOptions undocumented +type ApplicationGuardEnabledOptions string + +const ( + // ApplicationGuardEnabledOptionsVNotConfigured undocumented + ApplicationGuardEnabledOptionsVNotConfigured ApplicationGuardEnabledOptions = "notConfigured" + // ApplicationGuardEnabledOptionsVEnabledForEdge undocumented + ApplicationGuardEnabledOptionsVEnabledForEdge ApplicationGuardEnabledOptions = "enabledForEdge" + // ApplicationGuardEnabledOptionsVEnabledForOffice undocumented + ApplicationGuardEnabledOptionsVEnabledForOffice ApplicationGuardEnabledOptions = "enabledForOffice" + // ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice undocumented + ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice ApplicationGuardEnabledOptions = "enabledForEdgeAndOffice" +) + +var ( + // ApplicationGuardEnabledOptionsPNotConfigured is a pointer to ApplicationGuardEnabledOptionsVNotConfigured + ApplicationGuardEnabledOptionsPNotConfigured = &_ApplicationGuardEnabledOptionsPNotConfigured + // ApplicationGuardEnabledOptionsPEnabledForEdge is a pointer to ApplicationGuardEnabledOptionsVEnabledForEdge + ApplicationGuardEnabledOptionsPEnabledForEdge = &_ApplicationGuardEnabledOptionsPEnabledForEdge + // ApplicationGuardEnabledOptionsPEnabledForOffice is a pointer to ApplicationGuardEnabledOptionsVEnabledForOffice + ApplicationGuardEnabledOptionsPEnabledForOffice = &_ApplicationGuardEnabledOptionsPEnabledForOffice + // ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice is a pointer to ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice + ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice = &_ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice +) + +var ( + _ApplicationGuardEnabledOptionsPNotConfigured = ApplicationGuardEnabledOptionsVNotConfigured + _ApplicationGuardEnabledOptionsPEnabledForEdge = ApplicationGuardEnabledOptionsVEnabledForEdge + _ApplicationGuardEnabledOptionsPEnabledForOffice = ApplicationGuardEnabledOptionsVEnabledForOffice + _ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice = ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice +) + +// ApplicationIdentityType undocumented +type ApplicationIdentityType string + +const ( + // ApplicationIdentityTypeVAadApplication undocumented + ApplicationIdentityTypeVAadApplication ApplicationIdentityType = "aadApplication" + // ApplicationIdentityTypeVBot undocumented + ApplicationIdentityTypeVBot ApplicationIdentityType = "bot" + // ApplicationIdentityTypeVTenantBot undocumented + ApplicationIdentityTypeVTenantBot ApplicationIdentityType = "tenantBot" + // ApplicationIdentityTypeVOffice365Connector undocumented + ApplicationIdentityTypeVOffice365Connector ApplicationIdentityType = "office365Connector" + // ApplicationIdentityTypeVOutgoingWebhook undocumented + ApplicationIdentityTypeVOutgoingWebhook ApplicationIdentityType = "outgoingWebhook" +) + +var ( + // ApplicationIdentityTypePAadApplication is a pointer to ApplicationIdentityTypeVAadApplication + ApplicationIdentityTypePAadApplication = &_ApplicationIdentityTypePAadApplication + // ApplicationIdentityTypePBot is a pointer to ApplicationIdentityTypeVBot + ApplicationIdentityTypePBot = &_ApplicationIdentityTypePBot + // ApplicationIdentityTypePTenantBot is a pointer to ApplicationIdentityTypeVTenantBot + ApplicationIdentityTypePTenantBot = &_ApplicationIdentityTypePTenantBot + // ApplicationIdentityTypePOffice365Connector is a pointer to ApplicationIdentityTypeVOffice365Connector + ApplicationIdentityTypePOffice365Connector = &_ApplicationIdentityTypePOffice365Connector + // ApplicationIdentityTypePOutgoingWebhook is a pointer to ApplicationIdentityTypeVOutgoingWebhook + ApplicationIdentityTypePOutgoingWebhook = &_ApplicationIdentityTypePOutgoingWebhook +) + +var ( + _ApplicationIdentityTypePAadApplication = ApplicationIdentityTypeVAadApplication + _ApplicationIdentityTypePBot = ApplicationIdentityTypeVBot + _ApplicationIdentityTypePTenantBot = ApplicationIdentityTypeVTenantBot + _ApplicationIdentityTypePOffice365Connector = ApplicationIdentityTypeVOffice365Connector + _ApplicationIdentityTypePOutgoingWebhook = ApplicationIdentityTypeVOutgoingWebhook +) + +// ApplicationMode undocumented +type ApplicationMode string + +const ( + // ApplicationModeVManual undocumented + ApplicationModeVManual ApplicationMode = "manual" + // ApplicationModeVAutomatic undocumented + ApplicationModeVAutomatic ApplicationMode = "automatic" + // ApplicationModeVRecommended undocumented + ApplicationModeVRecommended ApplicationMode = "recommended" +) + +var ( + // ApplicationModePManual is a pointer to ApplicationModeVManual + ApplicationModePManual = &_ApplicationModePManual + // ApplicationModePAutomatic is a pointer to ApplicationModeVAutomatic + ApplicationModePAutomatic = &_ApplicationModePAutomatic + // ApplicationModePRecommended is a pointer to ApplicationModeVRecommended + ApplicationModePRecommended = &_ApplicationModePRecommended +) + +var ( + _ApplicationModePManual = ApplicationModeVManual + _ApplicationModePAutomatic = ApplicationModeVAutomatic + _ApplicationModePRecommended = ApplicationModeVRecommended +) + +// ApplicationPermissionsRequired undocumented +type ApplicationPermissionsRequired string + +const ( + // ApplicationPermissionsRequiredVUnknown undocumented + ApplicationPermissionsRequiredVUnknown ApplicationPermissionsRequired = "unknown" + // ApplicationPermissionsRequiredVAnonymous undocumented + ApplicationPermissionsRequiredVAnonymous ApplicationPermissionsRequired = "anonymous" + // ApplicationPermissionsRequiredVGuest undocumented + ApplicationPermissionsRequiredVGuest ApplicationPermissionsRequired = "guest" + // ApplicationPermissionsRequiredVUser undocumented + ApplicationPermissionsRequiredVUser ApplicationPermissionsRequired = "user" + // ApplicationPermissionsRequiredVAdministrator undocumented + ApplicationPermissionsRequiredVAdministrator ApplicationPermissionsRequired = "administrator" + // ApplicationPermissionsRequiredVSystem undocumented + ApplicationPermissionsRequiredVSystem ApplicationPermissionsRequired = "system" + // ApplicationPermissionsRequiredVUnknownFutureValue undocumented + ApplicationPermissionsRequiredVUnknownFutureValue ApplicationPermissionsRequired = "unknownFutureValue" +) + +var ( + // ApplicationPermissionsRequiredPUnknown is a pointer to ApplicationPermissionsRequiredVUnknown + ApplicationPermissionsRequiredPUnknown = &_ApplicationPermissionsRequiredPUnknown + // ApplicationPermissionsRequiredPAnonymous is a pointer to ApplicationPermissionsRequiredVAnonymous + ApplicationPermissionsRequiredPAnonymous = &_ApplicationPermissionsRequiredPAnonymous + // ApplicationPermissionsRequiredPGuest is a pointer to ApplicationPermissionsRequiredVGuest + ApplicationPermissionsRequiredPGuest = &_ApplicationPermissionsRequiredPGuest + // ApplicationPermissionsRequiredPUser is a pointer to ApplicationPermissionsRequiredVUser + ApplicationPermissionsRequiredPUser = &_ApplicationPermissionsRequiredPUser + // ApplicationPermissionsRequiredPAdministrator is a pointer to ApplicationPermissionsRequiredVAdministrator + ApplicationPermissionsRequiredPAdministrator = &_ApplicationPermissionsRequiredPAdministrator + // ApplicationPermissionsRequiredPSystem is a pointer to ApplicationPermissionsRequiredVSystem + ApplicationPermissionsRequiredPSystem = &_ApplicationPermissionsRequiredPSystem + // ApplicationPermissionsRequiredPUnknownFutureValue is a pointer to ApplicationPermissionsRequiredVUnknownFutureValue + ApplicationPermissionsRequiredPUnknownFutureValue = &_ApplicationPermissionsRequiredPUnknownFutureValue +) + +var ( + _ApplicationPermissionsRequiredPUnknown = ApplicationPermissionsRequiredVUnknown + _ApplicationPermissionsRequiredPAnonymous = ApplicationPermissionsRequiredVAnonymous + _ApplicationPermissionsRequiredPGuest = ApplicationPermissionsRequiredVGuest + _ApplicationPermissionsRequiredPUser = ApplicationPermissionsRequiredVUser + _ApplicationPermissionsRequiredPAdministrator = ApplicationPermissionsRequiredVAdministrator + _ApplicationPermissionsRequiredPSystem = ApplicationPermissionsRequiredVSystem + _ApplicationPermissionsRequiredPUnknownFutureValue = ApplicationPermissionsRequiredVUnknownFutureValue +) + +// ApplicationType undocumented +type ApplicationType string + +const ( + // ApplicationTypeVUniversal undocumented + ApplicationTypeVUniversal ApplicationType = "universal" + // ApplicationTypeVDesktop undocumented + ApplicationTypeVDesktop ApplicationType = "desktop" +) + +var ( + // ApplicationTypePUniversal is a pointer to ApplicationTypeVUniversal + ApplicationTypePUniversal = &_ApplicationTypePUniversal + // ApplicationTypePDesktop is a pointer to ApplicationTypeVDesktop + ApplicationTypePDesktop = &_ApplicationTypePDesktop +) + +var ( + _ApplicationTypePUniversal = ApplicationTypeVUniversal + _ApplicationTypePDesktop = ApplicationTypeVDesktop +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go new file mode 100644 index 00000000..9f9d3fdc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AppliedConditionalAccessPolicyResult undocumented +type AppliedConditionalAccessPolicyResult string + +const ( + // AppliedConditionalAccessPolicyResultVSuccess undocumented + AppliedConditionalAccessPolicyResultVSuccess AppliedConditionalAccessPolicyResult = "success" + // AppliedConditionalAccessPolicyResultVFailure undocumented + AppliedConditionalAccessPolicyResultVFailure AppliedConditionalAccessPolicyResult = "failure" + // AppliedConditionalAccessPolicyResultVNotApplied undocumented + AppliedConditionalAccessPolicyResultVNotApplied AppliedConditionalAccessPolicyResult = "notApplied" + // AppliedConditionalAccessPolicyResultVNotEnabled undocumented + AppliedConditionalAccessPolicyResultVNotEnabled AppliedConditionalAccessPolicyResult = "notEnabled" + // AppliedConditionalAccessPolicyResultVUnknown undocumented + AppliedConditionalAccessPolicyResultVUnknown AppliedConditionalAccessPolicyResult = "unknown" + // AppliedConditionalAccessPolicyResultVUnknownFutureValue undocumented + AppliedConditionalAccessPolicyResultVUnknownFutureValue AppliedConditionalAccessPolicyResult = "unknownFutureValue" + // AppliedConditionalAccessPolicyResultVReportOnlySuccess undocumented + AppliedConditionalAccessPolicyResultVReportOnlySuccess AppliedConditionalAccessPolicyResult = "reportOnlySuccess" + // AppliedConditionalAccessPolicyResultVReportOnlyFailure undocumented + AppliedConditionalAccessPolicyResultVReportOnlyFailure AppliedConditionalAccessPolicyResult = "reportOnlyFailure" + // AppliedConditionalAccessPolicyResultVReportOnlyNotApplied undocumented + AppliedConditionalAccessPolicyResultVReportOnlyNotApplied AppliedConditionalAccessPolicyResult = "reportOnlyNotApplied" + // AppliedConditionalAccessPolicyResultVReportOnlyInterrupted undocumented + AppliedConditionalAccessPolicyResultVReportOnlyInterrupted AppliedConditionalAccessPolicyResult = "reportOnlyInterrupted" +) + +var ( + // AppliedConditionalAccessPolicyResultPSuccess is a pointer to AppliedConditionalAccessPolicyResultVSuccess + AppliedConditionalAccessPolicyResultPSuccess = &_AppliedConditionalAccessPolicyResultPSuccess + // AppliedConditionalAccessPolicyResultPFailure is a pointer to AppliedConditionalAccessPolicyResultVFailure + AppliedConditionalAccessPolicyResultPFailure = &_AppliedConditionalAccessPolicyResultPFailure + // AppliedConditionalAccessPolicyResultPNotApplied is a pointer to AppliedConditionalAccessPolicyResultVNotApplied + AppliedConditionalAccessPolicyResultPNotApplied = &_AppliedConditionalAccessPolicyResultPNotApplied + // AppliedConditionalAccessPolicyResultPNotEnabled is a pointer to AppliedConditionalAccessPolicyResultVNotEnabled + AppliedConditionalAccessPolicyResultPNotEnabled = &_AppliedConditionalAccessPolicyResultPNotEnabled + // AppliedConditionalAccessPolicyResultPUnknown is a pointer to AppliedConditionalAccessPolicyResultVUnknown + AppliedConditionalAccessPolicyResultPUnknown = &_AppliedConditionalAccessPolicyResultPUnknown + // AppliedConditionalAccessPolicyResultPUnknownFutureValue is a pointer to AppliedConditionalAccessPolicyResultVUnknownFutureValue + AppliedConditionalAccessPolicyResultPUnknownFutureValue = &_AppliedConditionalAccessPolicyResultPUnknownFutureValue + // AppliedConditionalAccessPolicyResultPReportOnlySuccess is a pointer to AppliedConditionalAccessPolicyResultVReportOnlySuccess + AppliedConditionalAccessPolicyResultPReportOnlySuccess = &_AppliedConditionalAccessPolicyResultPReportOnlySuccess + // AppliedConditionalAccessPolicyResultPReportOnlyFailure is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyFailure + AppliedConditionalAccessPolicyResultPReportOnlyFailure = &_AppliedConditionalAccessPolicyResultPReportOnlyFailure + // AppliedConditionalAccessPolicyResultPReportOnlyNotApplied is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyNotApplied + AppliedConditionalAccessPolicyResultPReportOnlyNotApplied = &_AppliedConditionalAccessPolicyResultPReportOnlyNotApplied + // AppliedConditionalAccessPolicyResultPReportOnlyInterrupted is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyInterrupted + AppliedConditionalAccessPolicyResultPReportOnlyInterrupted = &_AppliedConditionalAccessPolicyResultPReportOnlyInterrupted +) + +var ( + _AppliedConditionalAccessPolicyResultPSuccess = AppliedConditionalAccessPolicyResultVSuccess + _AppliedConditionalAccessPolicyResultPFailure = AppliedConditionalAccessPolicyResultVFailure + _AppliedConditionalAccessPolicyResultPNotApplied = AppliedConditionalAccessPolicyResultVNotApplied + _AppliedConditionalAccessPolicyResultPNotEnabled = AppliedConditionalAccessPolicyResultVNotEnabled + _AppliedConditionalAccessPolicyResultPUnknown = AppliedConditionalAccessPolicyResultVUnknown + _AppliedConditionalAccessPolicyResultPUnknownFutureValue = AppliedConditionalAccessPolicyResultVUnknownFutureValue + _AppliedConditionalAccessPolicyResultPReportOnlySuccess = AppliedConditionalAccessPolicyResultVReportOnlySuccess + _AppliedConditionalAccessPolicyResultPReportOnlyFailure = AppliedConditionalAccessPolicyResultVReportOnlyFailure + _AppliedConditionalAccessPolicyResultPReportOnlyNotApplied = AppliedConditionalAccessPolicyResultVReportOnlyNotApplied + _AppliedConditionalAccessPolicyResultPReportOnlyInterrupted = AppliedConditionalAccessPolicyResultVReportOnlyInterrupted +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go new file mode 100644 index 00000000..6a6d3407 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ApprovalState undocumented +type ApprovalState string + +const ( + // ApprovalStateVPending undocumented + ApprovalStateVPending ApprovalState = "pending" + // ApprovalStateVApproved undocumented + ApprovalStateVApproved ApprovalState = "approved" + // ApprovalStateVDenied undocumented + ApprovalStateVDenied ApprovalState = "denied" + // ApprovalStateVAborted undocumented + ApprovalStateVAborted ApprovalState = "aborted" + // ApprovalStateVCanceled undocumented + ApprovalStateVCanceled ApprovalState = "canceled" +) + +var ( + // ApprovalStatePPending is a pointer to ApprovalStateVPending + ApprovalStatePPending = &_ApprovalStatePPending + // ApprovalStatePApproved is a pointer to ApprovalStateVApproved + ApprovalStatePApproved = &_ApprovalStatePApproved + // ApprovalStatePDenied is a pointer to ApprovalStateVDenied + ApprovalStatePDenied = &_ApprovalStatePDenied + // ApprovalStatePAborted is a pointer to ApprovalStateVAborted + ApprovalStatePAborted = &_ApprovalStatePAborted + // ApprovalStatePCanceled is a pointer to ApprovalStateVCanceled + ApprovalStatePCanceled = &_ApprovalStatePCanceled +) + +var ( + _ApprovalStatePPending = ApprovalStateVPending + _ApprovalStatePApproved = ApprovalStateVApproved + _ApprovalStatePDenied = ApprovalStateVDenied + _ApprovalStatePAborted = ApprovalStateVAborted + _ApprovalStatePCanceled = ApprovalStateVCanceled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go new file mode 100644 index 00000000..e9b6c577 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AssignmentMethod undocumented +type AssignmentMethod string + +const ( + // AssignmentMethodVStandard undocumented + AssignmentMethodVStandard AssignmentMethod = "standard" + // AssignmentMethodVPrivileged undocumented + AssignmentMethodVPrivileged AssignmentMethod = "privileged" + // AssignmentMethodVAuto undocumented + AssignmentMethodVAuto AssignmentMethod = "auto" +) + +var ( + // AssignmentMethodPStandard is a pointer to AssignmentMethodVStandard + AssignmentMethodPStandard = &_AssignmentMethodPStandard + // AssignmentMethodPPrivileged is a pointer to AssignmentMethodVPrivileged + AssignmentMethodPPrivileged = &_AssignmentMethodPPrivileged + // AssignmentMethodPAuto is a pointer to AssignmentMethodVAuto + AssignmentMethodPAuto = &_AssignmentMethodPAuto +) + +var ( + _AssignmentMethodPStandard = AssignmentMethodVStandard + _AssignmentMethodPPrivileged = AssignmentMethodVPrivileged + _AssignmentMethodPAuto = AssignmentMethodVAuto +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go new file mode 100644 index 00000000..d5fb8d9a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AttachmentType undocumented +type AttachmentType string + +const ( + // AttachmentTypeVFile undocumented + AttachmentTypeVFile AttachmentType = "file" + // AttachmentTypeVItem undocumented + AttachmentTypeVItem AttachmentType = "item" + // AttachmentTypeVReference undocumented + AttachmentTypeVReference AttachmentType = "reference" +) + +var ( + // AttachmentTypePFile is a pointer to AttachmentTypeVFile + AttachmentTypePFile = &_AttachmentTypePFile + // AttachmentTypePItem is a pointer to AttachmentTypeVItem + AttachmentTypePItem = &_AttachmentTypePItem + // AttachmentTypePReference is a pointer to AttachmentTypeVReference + AttachmentTypePReference = &_AttachmentTypePReference +) + +var ( + _AttachmentTypePFile = AttachmentTypeVFile + _AttachmentTypePItem = AttachmentTypeVItem + _AttachmentTypePReference = AttachmentTypeVReference +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go new file mode 100644 index 00000000..25b5cec1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AttendeeType undocumented +type AttendeeType string + +const ( + // AttendeeTypeVRequired undocumented + AttendeeTypeVRequired AttendeeType = "required" + // AttendeeTypeVOptional undocumented + AttendeeTypeVOptional AttendeeType = "optional" + // AttendeeTypeVResource undocumented + AttendeeTypeVResource AttendeeType = "resource" +) + +var ( + // AttendeeTypePRequired is a pointer to AttendeeTypeVRequired + AttendeeTypePRequired = &_AttendeeTypePRequired + // AttendeeTypePOptional is a pointer to AttendeeTypeVOptional + AttendeeTypePOptional = &_AttendeeTypePOptional + // AttendeeTypePResource is a pointer to AttendeeTypeVResource + AttendeeTypePResource = &_AttendeeTypePResource +) + +var ( + _AttendeeTypePRequired = AttendeeTypeVRequired + _AttendeeTypePOptional = AttendeeTypeVOptional + _AttendeeTypePResource = AttendeeTypeVResource +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go new file mode 100644 index 00000000..d54ef26c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AttributeFlowBehavior undocumented +type AttributeFlowBehavior string + +const ( + // AttributeFlowBehaviorVFlowWhenChanged undocumented + AttributeFlowBehaviorVFlowWhenChanged AttributeFlowBehavior = "FlowWhenChanged" + // AttributeFlowBehaviorVFlowAlways undocumented + AttributeFlowBehaviorVFlowAlways AttributeFlowBehavior = "FlowAlways" +) + +var ( + // AttributeFlowBehaviorPFlowWhenChanged is a pointer to AttributeFlowBehaviorVFlowWhenChanged + AttributeFlowBehaviorPFlowWhenChanged = &_AttributeFlowBehaviorPFlowWhenChanged + // AttributeFlowBehaviorPFlowAlways is a pointer to AttributeFlowBehaviorVFlowAlways + AttributeFlowBehaviorPFlowAlways = &_AttributeFlowBehaviorPFlowAlways +) + +var ( + _AttributeFlowBehaviorPFlowWhenChanged = AttributeFlowBehaviorVFlowWhenChanged + _AttributeFlowBehaviorPFlowAlways = AttributeFlowBehaviorVFlowAlways +) + +// AttributeFlowType undocumented +type AttributeFlowType string + +const ( + // AttributeFlowTypeVAlways undocumented + AttributeFlowTypeVAlways AttributeFlowType = "Always" + // AttributeFlowTypeVObjectAddOnly undocumented + AttributeFlowTypeVObjectAddOnly AttributeFlowType = "ObjectAddOnly" + // AttributeFlowTypeVMultiValueAddOnly undocumented + AttributeFlowTypeVMultiValueAddOnly AttributeFlowType = "MultiValueAddOnly" +) + +var ( + // AttributeFlowTypePAlways is a pointer to AttributeFlowTypeVAlways + AttributeFlowTypePAlways = &_AttributeFlowTypePAlways + // AttributeFlowTypePObjectAddOnly is a pointer to AttributeFlowTypeVObjectAddOnly + AttributeFlowTypePObjectAddOnly = &_AttributeFlowTypePObjectAddOnly + // AttributeFlowTypePMultiValueAddOnly is a pointer to AttributeFlowTypeVMultiValueAddOnly + AttributeFlowTypePMultiValueAddOnly = &_AttributeFlowTypePMultiValueAddOnly +) + +var ( + _AttributeFlowTypePAlways = AttributeFlowTypeVAlways + _AttributeFlowTypePObjectAddOnly = AttributeFlowTypeVObjectAddOnly + _AttributeFlowTypePMultiValueAddOnly = AttributeFlowTypeVMultiValueAddOnly +) + +// AttributeMappingSourceType undocumented +type AttributeMappingSourceType string + +const ( + // AttributeMappingSourceTypeVAttribute undocumented + AttributeMappingSourceTypeVAttribute AttributeMappingSourceType = "Attribute" + // AttributeMappingSourceTypeVConstant undocumented + AttributeMappingSourceTypeVConstant AttributeMappingSourceType = "Constant" + // AttributeMappingSourceTypeVFunction undocumented + AttributeMappingSourceTypeVFunction AttributeMappingSourceType = "Function" +) + +var ( + // AttributeMappingSourceTypePAttribute is a pointer to AttributeMappingSourceTypeVAttribute + AttributeMappingSourceTypePAttribute = &_AttributeMappingSourceTypePAttribute + // AttributeMappingSourceTypePConstant is a pointer to AttributeMappingSourceTypeVConstant + AttributeMappingSourceTypePConstant = &_AttributeMappingSourceTypePConstant + // AttributeMappingSourceTypePFunction is a pointer to AttributeMappingSourceTypeVFunction + AttributeMappingSourceTypePFunction = &_AttributeMappingSourceTypePFunction +) + +var ( + _AttributeMappingSourceTypePAttribute = AttributeMappingSourceTypeVAttribute + _AttributeMappingSourceTypePConstant = AttributeMappingSourceTypeVConstant + _AttributeMappingSourceTypePFunction = AttributeMappingSourceTypeVFunction +) + +// AttributeType undocumented +type AttributeType string + +const ( + // AttributeTypeVDateTime undocumented + AttributeTypeVDateTime AttributeType = "DateTime" + // AttributeTypeVBoolean undocumented + AttributeTypeVBoolean AttributeType = "Boolean" + // AttributeTypeVBinary undocumented + AttributeTypeVBinary AttributeType = "Binary" + // AttributeTypeVReference undocumented + AttributeTypeVReference AttributeType = "Reference" + // AttributeTypeVInteger undocumented + AttributeTypeVInteger AttributeType = "Integer" + // AttributeTypeVString undocumented + AttributeTypeVString AttributeType = "String" +) + +var ( + // AttributeTypePDateTime is a pointer to AttributeTypeVDateTime + AttributeTypePDateTime = &_AttributeTypePDateTime + // AttributeTypePBoolean is a pointer to AttributeTypeVBoolean + AttributeTypePBoolean = &_AttributeTypePBoolean + // AttributeTypePBinary is a pointer to AttributeTypeVBinary + AttributeTypePBinary = &_AttributeTypePBinary + // AttributeTypePReference is a pointer to AttributeTypeVReference + AttributeTypePReference = &_AttributeTypePReference + // AttributeTypePInteger is a pointer to AttributeTypeVInteger + AttributeTypePInteger = &_AttributeTypePInteger + // AttributeTypePString is a pointer to AttributeTypeVString + AttributeTypePString = &_AttributeTypePString +) + +var ( + _AttributeTypePDateTime = AttributeTypeVDateTime + _AttributeTypePBoolean = AttributeTypeVBoolean + _AttributeTypePBinary = AttributeTypeVBinary + _AttributeTypePReference = AttributeTypeVReference + _AttributeTypePInteger = AttributeTypeVInteger + _AttributeTypePString = AttributeTypeVString +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go new file mode 100644 index 00000000..bae64b60 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go @@ -0,0 +1,80 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AuthMethodsType undocumented +type AuthMethodsType string + +const ( + // AuthMethodsTypeVEmail undocumented + AuthMethodsTypeVEmail AuthMethodsType = "email" + // AuthMethodsTypeVMobileSMS undocumented + AuthMethodsTypeVMobileSMS AuthMethodsType = "mobileSMS" + // AuthMethodsTypeVMobilePhone undocumented + AuthMethodsTypeVMobilePhone AuthMethodsType = "mobilePhone" + // AuthMethodsTypeVOfficePhone undocumented + AuthMethodsTypeVOfficePhone AuthMethodsType = "officePhone" + // AuthMethodsTypeVSecurityQuestion undocumented + AuthMethodsTypeVSecurityQuestion AuthMethodsType = "securityQuestion" + // AuthMethodsTypeVAppNotification undocumented + AuthMethodsTypeVAppNotification AuthMethodsType = "appNotification" + // AuthMethodsTypeVAppNotificationCode undocumented + AuthMethodsTypeVAppNotificationCode AuthMethodsType = "appNotificationCode" + // AuthMethodsTypeVAppNotificationAndCode undocumented + AuthMethodsTypeVAppNotificationAndCode AuthMethodsType = "appNotificationAndCode" + // AuthMethodsTypeVAppPassword undocumented + AuthMethodsTypeVAppPassword AuthMethodsType = "appPassword" + // AuthMethodsTypeVFido undocumented + AuthMethodsTypeVFido AuthMethodsType = "fido" + // AuthMethodsTypeVAlternateMobilePhone undocumented + AuthMethodsTypeVAlternateMobilePhone AuthMethodsType = "alternateMobilePhone" + // AuthMethodsTypeVMobilePhoneAndSMS undocumented + AuthMethodsTypeVMobilePhoneAndSMS AuthMethodsType = "mobilePhoneAndSMS" + // AuthMethodsTypeVUnknownFutureValue undocumented + AuthMethodsTypeVUnknownFutureValue AuthMethodsType = "unknownFutureValue" +) + +var ( + // AuthMethodsTypePEmail is a pointer to AuthMethodsTypeVEmail + AuthMethodsTypePEmail = &_AuthMethodsTypePEmail + // AuthMethodsTypePMobileSMS is a pointer to AuthMethodsTypeVMobileSMS + AuthMethodsTypePMobileSMS = &_AuthMethodsTypePMobileSMS + // AuthMethodsTypePMobilePhone is a pointer to AuthMethodsTypeVMobilePhone + AuthMethodsTypePMobilePhone = &_AuthMethodsTypePMobilePhone + // AuthMethodsTypePOfficePhone is a pointer to AuthMethodsTypeVOfficePhone + AuthMethodsTypePOfficePhone = &_AuthMethodsTypePOfficePhone + // AuthMethodsTypePSecurityQuestion is a pointer to AuthMethodsTypeVSecurityQuestion + AuthMethodsTypePSecurityQuestion = &_AuthMethodsTypePSecurityQuestion + // AuthMethodsTypePAppNotification is a pointer to AuthMethodsTypeVAppNotification + AuthMethodsTypePAppNotification = &_AuthMethodsTypePAppNotification + // AuthMethodsTypePAppNotificationCode is a pointer to AuthMethodsTypeVAppNotificationCode + AuthMethodsTypePAppNotificationCode = &_AuthMethodsTypePAppNotificationCode + // AuthMethodsTypePAppNotificationAndCode is a pointer to AuthMethodsTypeVAppNotificationAndCode + AuthMethodsTypePAppNotificationAndCode = &_AuthMethodsTypePAppNotificationAndCode + // AuthMethodsTypePAppPassword is a pointer to AuthMethodsTypeVAppPassword + AuthMethodsTypePAppPassword = &_AuthMethodsTypePAppPassword + // AuthMethodsTypePFido is a pointer to AuthMethodsTypeVFido + AuthMethodsTypePFido = &_AuthMethodsTypePFido + // AuthMethodsTypePAlternateMobilePhone is a pointer to AuthMethodsTypeVAlternateMobilePhone + AuthMethodsTypePAlternateMobilePhone = &_AuthMethodsTypePAlternateMobilePhone + // AuthMethodsTypePMobilePhoneAndSMS is a pointer to AuthMethodsTypeVMobilePhoneAndSMS + AuthMethodsTypePMobilePhoneAndSMS = &_AuthMethodsTypePMobilePhoneAndSMS + // AuthMethodsTypePUnknownFutureValue is a pointer to AuthMethodsTypeVUnknownFutureValue + AuthMethodsTypePUnknownFutureValue = &_AuthMethodsTypePUnknownFutureValue +) + +var ( + _AuthMethodsTypePEmail = AuthMethodsTypeVEmail + _AuthMethodsTypePMobileSMS = AuthMethodsTypeVMobileSMS + _AuthMethodsTypePMobilePhone = AuthMethodsTypeVMobilePhone + _AuthMethodsTypePOfficePhone = AuthMethodsTypeVOfficePhone + _AuthMethodsTypePSecurityQuestion = AuthMethodsTypeVSecurityQuestion + _AuthMethodsTypePAppNotification = AuthMethodsTypeVAppNotification + _AuthMethodsTypePAppNotificationCode = AuthMethodsTypeVAppNotificationCode + _AuthMethodsTypePAppNotificationAndCode = AuthMethodsTypeVAppNotificationAndCode + _AuthMethodsTypePAppPassword = AuthMethodsTypeVAppPassword + _AuthMethodsTypePFido = AuthMethodsTypeVFido + _AuthMethodsTypePAlternateMobilePhone = AuthMethodsTypeVAlternateMobilePhone + _AuthMethodsTypePMobilePhoneAndSMS = AuthMethodsTypeVMobilePhoneAndSMS + _AuthMethodsTypePUnknownFutureValue = AuthMethodsTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go new file mode 100644 index 00000000..8200a8ab --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go @@ -0,0 +1,52 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AutoAdmittedUsersType undocumented +type AutoAdmittedUsersType string + +const ( + // AutoAdmittedUsersTypeVEveryoneInCompany undocumented + AutoAdmittedUsersTypeVEveryoneInCompany AutoAdmittedUsersType = "everyoneInCompany" + // AutoAdmittedUsersTypeVEveryone undocumented + AutoAdmittedUsersTypeVEveryone AutoAdmittedUsersType = "everyone" +) + +var ( + // AutoAdmittedUsersTypePEveryoneInCompany is a pointer to AutoAdmittedUsersTypeVEveryoneInCompany + AutoAdmittedUsersTypePEveryoneInCompany = &_AutoAdmittedUsersTypePEveryoneInCompany + // AutoAdmittedUsersTypePEveryone is a pointer to AutoAdmittedUsersTypeVEveryone + AutoAdmittedUsersTypePEveryone = &_AutoAdmittedUsersTypePEveryone +) + +var ( + _AutoAdmittedUsersTypePEveryoneInCompany = AutoAdmittedUsersTypeVEveryoneInCompany + _AutoAdmittedUsersTypePEveryone = AutoAdmittedUsersTypeVEveryone +) + +// AutoRestartNotificationDismissalMethod undocumented +type AutoRestartNotificationDismissalMethod string + +const ( + // AutoRestartNotificationDismissalMethodVNotConfigured undocumented + AutoRestartNotificationDismissalMethodVNotConfigured AutoRestartNotificationDismissalMethod = "notConfigured" + // AutoRestartNotificationDismissalMethodVAutomatic undocumented + AutoRestartNotificationDismissalMethodVAutomatic AutoRestartNotificationDismissalMethod = "automatic" + // AutoRestartNotificationDismissalMethodVUser undocumented + AutoRestartNotificationDismissalMethodVUser AutoRestartNotificationDismissalMethod = "user" +) + +var ( + // AutoRestartNotificationDismissalMethodPNotConfigured is a pointer to AutoRestartNotificationDismissalMethodVNotConfigured + AutoRestartNotificationDismissalMethodPNotConfigured = &_AutoRestartNotificationDismissalMethodPNotConfigured + // AutoRestartNotificationDismissalMethodPAutomatic is a pointer to AutoRestartNotificationDismissalMethodVAutomatic + AutoRestartNotificationDismissalMethodPAutomatic = &_AutoRestartNotificationDismissalMethodPAutomatic + // AutoRestartNotificationDismissalMethodPUser is a pointer to AutoRestartNotificationDismissalMethodVUser + AutoRestartNotificationDismissalMethodPUser = &_AutoRestartNotificationDismissalMethodPUser +) + +var ( + _AutoRestartNotificationDismissalMethodPNotConfigured = AutoRestartNotificationDismissalMethodVNotConfigured + _AutoRestartNotificationDismissalMethodPAutomatic = AutoRestartNotificationDismissalMethodVAutomatic + _AutoRestartNotificationDismissalMethodPUser = AutoRestartNotificationDismissalMethodVUser +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go new file mode 100644 index 00000000..d963325c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go @@ -0,0 +1,77 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AutomaticRepliesStatus undocumented +type AutomaticRepliesStatus string + +const ( + // AutomaticRepliesStatusVDisabled undocumented + AutomaticRepliesStatusVDisabled AutomaticRepliesStatus = "disabled" + // AutomaticRepliesStatusVAlwaysEnabled undocumented + AutomaticRepliesStatusVAlwaysEnabled AutomaticRepliesStatus = "alwaysEnabled" + // AutomaticRepliesStatusVScheduled undocumented + AutomaticRepliesStatusVScheduled AutomaticRepliesStatus = "scheduled" +) + +var ( + // AutomaticRepliesStatusPDisabled is a pointer to AutomaticRepliesStatusVDisabled + AutomaticRepliesStatusPDisabled = &_AutomaticRepliesStatusPDisabled + // AutomaticRepliesStatusPAlwaysEnabled is a pointer to AutomaticRepliesStatusVAlwaysEnabled + AutomaticRepliesStatusPAlwaysEnabled = &_AutomaticRepliesStatusPAlwaysEnabled + // AutomaticRepliesStatusPScheduled is a pointer to AutomaticRepliesStatusVScheduled + AutomaticRepliesStatusPScheduled = &_AutomaticRepliesStatusPScheduled +) + +var ( + _AutomaticRepliesStatusPDisabled = AutomaticRepliesStatusVDisabled + _AutomaticRepliesStatusPAlwaysEnabled = AutomaticRepliesStatusVAlwaysEnabled + _AutomaticRepliesStatusPScheduled = AutomaticRepliesStatusVScheduled +) + +// AutomaticUpdateMode undocumented +type AutomaticUpdateMode string + +const ( + // AutomaticUpdateModeVUserDefined undocumented + AutomaticUpdateModeVUserDefined AutomaticUpdateMode = "userDefined" + // AutomaticUpdateModeVNotifyDownload undocumented + AutomaticUpdateModeVNotifyDownload AutomaticUpdateMode = "notifyDownload" + // AutomaticUpdateModeVAutoInstallAtMaintenanceTime undocumented + AutomaticUpdateModeVAutoInstallAtMaintenanceTime AutomaticUpdateMode = "autoInstallAtMaintenanceTime" + // AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime undocumented + AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime AutomaticUpdateMode = "autoInstallAndRebootAtMaintenanceTime" + // AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime undocumented + AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime AutomaticUpdateMode = "autoInstallAndRebootAtScheduledTime" + // AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl undocumented + AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl AutomaticUpdateMode = "autoInstallAndRebootWithoutEndUserControl" + // AutomaticUpdateModeVWindowsDefault undocumented + AutomaticUpdateModeVWindowsDefault AutomaticUpdateMode = "windowsDefault" +) + +var ( + // AutomaticUpdateModePUserDefined is a pointer to AutomaticUpdateModeVUserDefined + AutomaticUpdateModePUserDefined = &_AutomaticUpdateModePUserDefined + // AutomaticUpdateModePNotifyDownload is a pointer to AutomaticUpdateModeVNotifyDownload + AutomaticUpdateModePNotifyDownload = &_AutomaticUpdateModePNotifyDownload + // AutomaticUpdateModePAutoInstallAtMaintenanceTime is a pointer to AutomaticUpdateModeVAutoInstallAtMaintenanceTime + AutomaticUpdateModePAutoInstallAtMaintenanceTime = &_AutomaticUpdateModePAutoInstallAtMaintenanceTime + // AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime is a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime + AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime = &_AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime + // AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime is a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime + AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime = &_AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime + // AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl is a pointer to AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl + AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl = &_AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl + // AutomaticUpdateModePWindowsDefault is a pointer to AutomaticUpdateModeVWindowsDefault + AutomaticUpdateModePWindowsDefault = &_AutomaticUpdateModePWindowsDefault +) + +var ( + _AutomaticUpdateModePUserDefined = AutomaticUpdateModeVUserDefined + _AutomaticUpdateModePNotifyDownload = AutomaticUpdateModeVNotifyDownload + _AutomaticUpdateModePAutoInstallAtMaintenanceTime = AutomaticUpdateModeVAutoInstallAtMaintenanceTime + _AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime = AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime + _AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime = AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime + _AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl = AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl + _AutomaticUpdateModePWindowsDefault = AutomaticUpdateModeVWindowsDefault +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go new file mode 100644 index 00000000..6e1590c0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AzureADLicenseType undocumented +type AzureADLicenseType string + +const ( + // AzureADLicenseTypeVNone undocumented + AzureADLicenseTypeVNone AzureADLicenseType = "none" + // AzureADLicenseTypeVFree undocumented + AzureADLicenseTypeVFree AzureADLicenseType = "free" + // AzureADLicenseTypeVBasic undocumented + AzureADLicenseTypeVBasic AzureADLicenseType = "basic" + // AzureADLicenseTypeVPremiumP1 undocumented + AzureADLicenseTypeVPremiumP1 AzureADLicenseType = "premiumP1" + // AzureADLicenseTypeVPremiumP2 undocumented + AzureADLicenseTypeVPremiumP2 AzureADLicenseType = "premiumP2" + // AzureADLicenseTypeVUnknownFutureValue undocumented + AzureADLicenseTypeVUnknownFutureValue AzureADLicenseType = "unknownFutureValue" +) + +var ( + // AzureADLicenseTypePNone is a pointer to AzureADLicenseTypeVNone + AzureADLicenseTypePNone = &_AzureADLicenseTypePNone + // AzureADLicenseTypePFree is a pointer to AzureADLicenseTypeVFree + AzureADLicenseTypePFree = &_AzureADLicenseTypePFree + // AzureADLicenseTypePBasic is a pointer to AzureADLicenseTypeVBasic + AzureADLicenseTypePBasic = &_AzureADLicenseTypePBasic + // AzureADLicenseTypePPremiumP1 is a pointer to AzureADLicenseTypeVPremiumP1 + AzureADLicenseTypePPremiumP1 = &_AzureADLicenseTypePPremiumP1 + // AzureADLicenseTypePPremiumP2 is a pointer to AzureADLicenseTypeVPremiumP2 + AzureADLicenseTypePPremiumP2 = &_AzureADLicenseTypePPremiumP2 + // AzureADLicenseTypePUnknownFutureValue is a pointer to AzureADLicenseTypeVUnknownFutureValue + AzureADLicenseTypePUnknownFutureValue = &_AzureADLicenseTypePUnknownFutureValue +) + +var ( + _AzureADLicenseTypePNone = AzureADLicenseTypeVNone + _AzureADLicenseTypePFree = AzureADLicenseTypeVFree + _AzureADLicenseTypePBasic = AzureADLicenseTypeVBasic + _AzureADLicenseTypePPremiumP1 = AzureADLicenseTypeVPremiumP1 + _AzureADLicenseTypePPremiumP2 = AzureADLicenseTypeVPremiumP2 + _AzureADLicenseTypePUnknownFutureValue = AzureADLicenseTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go new file mode 100644 index 00000000..926da36d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BinaryManagementConditionExpressionOperatorType undocumented +type BinaryManagementConditionExpressionOperatorType string + +const ( + // BinaryManagementConditionExpressionOperatorTypeVOr undocumented + BinaryManagementConditionExpressionOperatorTypeVOr BinaryManagementConditionExpressionOperatorType = "or" + // BinaryManagementConditionExpressionOperatorTypeVAnd undocumented + BinaryManagementConditionExpressionOperatorTypeVAnd BinaryManagementConditionExpressionOperatorType = "and" +) + +var ( + // BinaryManagementConditionExpressionOperatorTypePOr is a pointer to BinaryManagementConditionExpressionOperatorTypeVOr + BinaryManagementConditionExpressionOperatorTypePOr = &_BinaryManagementConditionExpressionOperatorTypePOr + // BinaryManagementConditionExpressionOperatorTypePAnd is a pointer to BinaryManagementConditionExpressionOperatorTypeVAnd + BinaryManagementConditionExpressionOperatorTypePAnd = &_BinaryManagementConditionExpressionOperatorTypePAnd +) + +var ( + _BinaryManagementConditionExpressionOperatorTypePOr = BinaryManagementConditionExpressionOperatorTypeVOr + _BinaryManagementConditionExpressionOperatorTypePAnd = BinaryManagementConditionExpressionOperatorTypeVAnd +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go new file mode 100644 index 00000000..a0d84b3d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go @@ -0,0 +1,89 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BitLockerEncryptionMethod undocumented +type BitLockerEncryptionMethod string + +const ( + // BitLockerEncryptionMethodVAesCbc128 undocumented + BitLockerEncryptionMethodVAesCbc128 BitLockerEncryptionMethod = "aesCbc128" + // BitLockerEncryptionMethodVAesCbc256 undocumented + BitLockerEncryptionMethodVAesCbc256 BitLockerEncryptionMethod = "aesCbc256" + // BitLockerEncryptionMethodVXtsAes128 undocumented + BitLockerEncryptionMethodVXtsAes128 BitLockerEncryptionMethod = "xtsAes128" + // BitLockerEncryptionMethodVXtsAes256 undocumented + BitLockerEncryptionMethodVXtsAes256 BitLockerEncryptionMethod = "xtsAes256" +) + +var ( + // BitLockerEncryptionMethodPAesCbc128 is a pointer to BitLockerEncryptionMethodVAesCbc128 + BitLockerEncryptionMethodPAesCbc128 = &_BitLockerEncryptionMethodPAesCbc128 + // BitLockerEncryptionMethodPAesCbc256 is a pointer to BitLockerEncryptionMethodVAesCbc256 + BitLockerEncryptionMethodPAesCbc256 = &_BitLockerEncryptionMethodPAesCbc256 + // BitLockerEncryptionMethodPXtsAes128 is a pointer to BitLockerEncryptionMethodVXtsAes128 + BitLockerEncryptionMethodPXtsAes128 = &_BitLockerEncryptionMethodPXtsAes128 + // BitLockerEncryptionMethodPXtsAes256 is a pointer to BitLockerEncryptionMethodVXtsAes256 + BitLockerEncryptionMethodPXtsAes256 = &_BitLockerEncryptionMethodPXtsAes256 +) + +var ( + _BitLockerEncryptionMethodPAesCbc128 = BitLockerEncryptionMethodVAesCbc128 + _BitLockerEncryptionMethodPAesCbc256 = BitLockerEncryptionMethodVAesCbc256 + _BitLockerEncryptionMethodPXtsAes128 = BitLockerEncryptionMethodVXtsAes128 + _BitLockerEncryptionMethodPXtsAes256 = BitLockerEncryptionMethodVXtsAes256 +) + +// BitLockerRecoveryInformationType undocumented +type BitLockerRecoveryInformationType string + +const ( + // BitLockerRecoveryInformationTypeVPasswordAndKey undocumented + BitLockerRecoveryInformationTypeVPasswordAndKey BitLockerRecoveryInformationType = "passwordAndKey" + // BitLockerRecoveryInformationTypeVPasswordOnly undocumented + BitLockerRecoveryInformationTypeVPasswordOnly BitLockerRecoveryInformationType = "passwordOnly" +) + +var ( + // BitLockerRecoveryInformationTypePPasswordAndKey is a pointer to BitLockerRecoveryInformationTypeVPasswordAndKey + BitLockerRecoveryInformationTypePPasswordAndKey = &_BitLockerRecoveryInformationTypePPasswordAndKey + // BitLockerRecoveryInformationTypePPasswordOnly is a pointer to BitLockerRecoveryInformationTypeVPasswordOnly + BitLockerRecoveryInformationTypePPasswordOnly = &_BitLockerRecoveryInformationTypePPasswordOnly +) + +var ( + _BitLockerRecoveryInformationTypePPasswordAndKey = BitLockerRecoveryInformationTypeVPasswordAndKey + _BitLockerRecoveryInformationTypePPasswordOnly = BitLockerRecoveryInformationTypeVPasswordOnly +) + +// BitLockerRecoveryPasswordRotationType undocumented +type BitLockerRecoveryPasswordRotationType string + +const ( + // BitLockerRecoveryPasswordRotationTypeVNotConfigured undocumented + BitLockerRecoveryPasswordRotationTypeVNotConfigured BitLockerRecoveryPasswordRotationType = "notConfigured" + // BitLockerRecoveryPasswordRotationTypeVDisabled undocumented + BitLockerRecoveryPasswordRotationTypeVDisabled BitLockerRecoveryPasswordRotationType = "disabled" + // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd undocumented + BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd BitLockerRecoveryPasswordRotationType = "enabledForAzureAd" + // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid undocumented + BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid BitLockerRecoveryPasswordRotationType = "enabledForAzureAdAndHybrid" +) + +var ( + // BitLockerRecoveryPasswordRotationTypePNotConfigured is a pointer to BitLockerRecoveryPasswordRotationTypeVNotConfigured + BitLockerRecoveryPasswordRotationTypePNotConfigured = &_BitLockerRecoveryPasswordRotationTypePNotConfigured + // BitLockerRecoveryPasswordRotationTypePDisabled is a pointer to BitLockerRecoveryPasswordRotationTypeVDisabled + BitLockerRecoveryPasswordRotationTypePDisabled = &_BitLockerRecoveryPasswordRotationTypePDisabled + // BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd is a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd + BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd = &_BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd + // BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid is a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid + BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid = &_BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid +) + +var ( + _BitLockerRecoveryPasswordRotationTypePNotConfigured = BitLockerRecoveryPasswordRotationTypeVNotConfigured + _BitLockerRecoveryPasswordRotationTypePDisabled = BitLockerRecoveryPasswordRotationTypeVDisabled + _BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd = BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd + _BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid = BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go new file mode 100644 index 00000000..0580cb13 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BodyType undocumented +type BodyType string + +const ( + // BodyTypeVText undocumented + BodyTypeVText BodyType = "text" + // BodyTypeVHTML undocumented + BodyTypeVHTML BodyType = "html" +) + +var ( + // BodyTypePText is a pointer to BodyTypeVText + BodyTypePText = &_BodyTypePText + // BodyTypePHTML is a pointer to BodyTypeVHTML + BodyTypePHTML = &_BodyTypePHTML +) + +var ( + _BodyTypePText = BodyTypeVText + _BodyTypePHTML = BodyTypeVHTML +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go new file mode 100644 index 00000000..a673e697 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go @@ -0,0 +1,183 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BookingInvoiceStatus undocumented +type BookingInvoiceStatus string + +const ( + // BookingInvoiceStatusVDraft undocumented + BookingInvoiceStatusVDraft BookingInvoiceStatus = "draft" + // BookingInvoiceStatusVReviewing undocumented + BookingInvoiceStatusVReviewing BookingInvoiceStatus = "reviewing" + // BookingInvoiceStatusVOpen undocumented + BookingInvoiceStatusVOpen BookingInvoiceStatus = "open" + // BookingInvoiceStatusVCanceled undocumented + BookingInvoiceStatusVCanceled BookingInvoiceStatus = "canceled" + // BookingInvoiceStatusVPaid undocumented + BookingInvoiceStatusVPaid BookingInvoiceStatus = "paid" + // BookingInvoiceStatusVCorrective undocumented + BookingInvoiceStatusVCorrective BookingInvoiceStatus = "corrective" +) + +var ( + // BookingInvoiceStatusPDraft is a pointer to BookingInvoiceStatusVDraft + BookingInvoiceStatusPDraft = &_BookingInvoiceStatusPDraft + // BookingInvoiceStatusPReviewing is a pointer to BookingInvoiceStatusVReviewing + BookingInvoiceStatusPReviewing = &_BookingInvoiceStatusPReviewing + // BookingInvoiceStatusPOpen is a pointer to BookingInvoiceStatusVOpen + BookingInvoiceStatusPOpen = &_BookingInvoiceStatusPOpen + // BookingInvoiceStatusPCanceled is a pointer to BookingInvoiceStatusVCanceled + BookingInvoiceStatusPCanceled = &_BookingInvoiceStatusPCanceled + // BookingInvoiceStatusPPaid is a pointer to BookingInvoiceStatusVPaid + BookingInvoiceStatusPPaid = &_BookingInvoiceStatusPPaid + // BookingInvoiceStatusPCorrective is a pointer to BookingInvoiceStatusVCorrective + BookingInvoiceStatusPCorrective = &_BookingInvoiceStatusPCorrective +) + +var ( + _BookingInvoiceStatusPDraft = BookingInvoiceStatusVDraft + _BookingInvoiceStatusPReviewing = BookingInvoiceStatusVReviewing + _BookingInvoiceStatusPOpen = BookingInvoiceStatusVOpen + _BookingInvoiceStatusPCanceled = BookingInvoiceStatusVCanceled + _BookingInvoiceStatusPPaid = BookingInvoiceStatusVPaid + _BookingInvoiceStatusPCorrective = BookingInvoiceStatusVCorrective +) + +// BookingPriceType undocumented +type BookingPriceType string + +const ( + // BookingPriceTypeVUndefined undocumented + BookingPriceTypeVUndefined BookingPriceType = "undefined" + // BookingPriceTypeVFixedPrice undocumented + BookingPriceTypeVFixedPrice BookingPriceType = "fixedPrice" + // BookingPriceTypeVStartingAt undocumented + BookingPriceTypeVStartingAt BookingPriceType = "startingAt" + // BookingPriceTypeVHourly undocumented + BookingPriceTypeVHourly BookingPriceType = "hourly" + // BookingPriceTypeVFree undocumented + BookingPriceTypeVFree BookingPriceType = "free" + // BookingPriceTypeVPriceVaries undocumented + BookingPriceTypeVPriceVaries BookingPriceType = "priceVaries" + // BookingPriceTypeVCallUs undocumented + BookingPriceTypeVCallUs BookingPriceType = "callUs" + // BookingPriceTypeVNotSet undocumented + BookingPriceTypeVNotSet BookingPriceType = "notSet" +) + +var ( + // BookingPriceTypePUndefined is a pointer to BookingPriceTypeVUndefined + BookingPriceTypePUndefined = &_BookingPriceTypePUndefined + // BookingPriceTypePFixedPrice is a pointer to BookingPriceTypeVFixedPrice + BookingPriceTypePFixedPrice = &_BookingPriceTypePFixedPrice + // BookingPriceTypePStartingAt is a pointer to BookingPriceTypeVStartingAt + BookingPriceTypePStartingAt = &_BookingPriceTypePStartingAt + // BookingPriceTypePHourly is a pointer to BookingPriceTypeVHourly + BookingPriceTypePHourly = &_BookingPriceTypePHourly + // BookingPriceTypePFree is a pointer to BookingPriceTypeVFree + BookingPriceTypePFree = &_BookingPriceTypePFree + // BookingPriceTypePPriceVaries is a pointer to BookingPriceTypeVPriceVaries + BookingPriceTypePPriceVaries = &_BookingPriceTypePPriceVaries + // BookingPriceTypePCallUs is a pointer to BookingPriceTypeVCallUs + BookingPriceTypePCallUs = &_BookingPriceTypePCallUs + // BookingPriceTypePNotSet is a pointer to BookingPriceTypeVNotSet + BookingPriceTypePNotSet = &_BookingPriceTypePNotSet +) + +var ( + _BookingPriceTypePUndefined = BookingPriceTypeVUndefined + _BookingPriceTypePFixedPrice = BookingPriceTypeVFixedPrice + _BookingPriceTypePStartingAt = BookingPriceTypeVStartingAt + _BookingPriceTypePHourly = BookingPriceTypeVHourly + _BookingPriceTypePFree = BookingPriceTypeVFree + _BookingPriceTypePPriceVaries = BookingPriceTypeVPriceVaries + _BookingPriceTypePCallUs = BookingPriceTypeVCallUs + _BookingPriceTypePNotSet = BookingPriceTypeVNotSet +) + +// BookingReminderRecipients undocumented +type BookingReminderRecipients string + +const ( + // BookingReminderRecipientsVAllAttendees undocumented + BookingReminderRecipientsVAllAttendees BookingReminderRecipients = "allAttendees" + // BookingReminderRecipientsVStaff undocumented + BookingReminderRecipientsVStaff BookingReminderRecipients = "staff" + // BookingReminderRecipientsVCustomer undocumented + BookingReminderRecipientsVCustomer BookingReminderRecipients = "customer" +) + +var ( + // BookingReminderRecipientsPAllAttendees is a pointer to BookingReminderRecipientsVAllAttendees + BookingReminderRecipientsPAllAttendees = &_BookingReminderRecipientsPAllAttendees + // BookingReminderRecipientsPStaff is a pointer to BookingReminderRecipientsVStaff + BookingReminderRecipientsPStaff = &_BookingReminderRecipientsPStaff + // BookingReminderRecipientsPCustomer is a pointer to BookingReminderRecipientsVCustomer + BookingReminderRecipientsPCustomer = &_BookingReminderRecipientsPCustomer +) + +var ( + _BookingReminderRecipientsPAllAttendees = BookingReminderRecipientsVAllAttendees + _BookingReminderRecipientsPStaff = BookingReminderRecipientsVStaff + _BookingReminderRecipientsPCustomer = BookingReminderRecipientsVCustomer +) + +// BookingStaffRole undocumented +type BookingStaffRole string + +const ( + // BookingStaffRoleVGuest undocumented + BookingStaffRoleVGuest BookingStaffRole = "guest" + // BookingStaffRoleVAdministrator undocumented + BookingStaffRoleVAdministrator BookingStaffRole = "administrator" + // BookingStaffRoleVViewer undocumented + BookingStaffRoleVViewer BookingStaffRole = "viewer" + // BookingStaffRoleVExternalGuest undocumented + BookingStaffRoleVExternalGuest BookingStaffRole = "externalGuest" +) + +var ( + // BookingStaffRolePGuest is a pointer to BookingStaffRoleVGuest + BookingStaffRolePGuest = &_BookingStaffRolePGuest + // BookingStaffRolePAdministrator is a pointer to BookingStaffRoleVAdministrator + BookingStaffRolePAdministrator = &_BookingStaffRolePAdministrator + // BookingStaffRolePViewer is a pointer to BookingStaffRoleVViewer + BookingStaffRolePViewer = &_BookingStaffRolePViewer + // BookingStaffRolePExternalGuest is a pointer to BookingStaffRoleVExternalGuest + BookingStaffRolePExternalGuest = &_BookingStaffRolePExternalGuest +) + +var ( + _BookingStaffRolePGuest = BookingStaffRoleVGuest + _BookingStaffRolePAdministrator = BookingStaffRoleVAdministrator + _BookingStaffRolePViewer = BookingStaffRoleVViewer + _BookingStaffRolePExternalGuest = BookingStaffRoleVExternalGuest +) + +// BookingType undocumented +type BookingType string + +const ( + // BookingTypeVUnknown undocumented + BookingTypeVUnknown BookingType = "unknown" + // BookingTypeVStandard undocumented + BookingTypeVStandard BookingType = "standard" + // BookingTypeVReserved undocumented + BookingTypeVReserved BookingType = "reserved" +) + +var ( + // BookingTypePUnknown is a pointer to BookingTypeVUnknown + BookingTypePUnknown = &_BookingTypePUnknown + // BookingTypePStandard is a pointer to BookingTypeVStandard + BookingTypePStandard = &_BookingTypePStandard + // BookingTypePReserved is a pointer to BookingTypeVReserved + BookingTypePReserved = &_BookingTypePReserved +) + +var ( + _BookingTypePUnknown = BookingTypeVUnknown + _BookingTypePStandard = BookingTypeVStandard + _BookingTypePReserved = BookingTypeVReserved +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go new file mode 100644 index 00000000..d5525c22 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BrowserSyncSetting undocumented +type BrowserSyncSetting string + +const ( + // BrowserSyncSettingVNotConfigured undocumented + BrowserSyncSettingVNotConfigured BrowserSyncSetting = "notConfigured" + // BrowserSyncSettingVBlockedWithUserOverride undocumented + BrowserSyncSettingVBlockedWithUserOverride BrowserSyncSetting = "blockedWithUserOverride" + // BrowserSyncSettingVBlocked undocumented + BrowserSyncSettingVBlocked BrowserSyncSetting = "blocked" +) + +var ( + // BrowserSyncSettingPNotConfigured is a pointer to BrowserSyncSettingVNotConfigured + BrowserSyncSettingPNotConfigured = &_BrowserSyncSettingPNotConfigured + // BrowserSyncSettingPBlockedWithUserOverride is a pointer to BrowserSyncSettingVBlockedWithUserOverride + BrowserSyncSettingPBlockedWithUserOverride = &_BrowserSyncSettingPBlockedWithUserOverride + // BrowserSyncSettingPBlocked is a pointer to BrowserSyncSettingVBlocked + BrowserSyncSettingPBlocked = &_BrowserSyncSettingPBlocked +) + +var ( + _BrowserSyncSettingPNotConfigured = BrowserSyncSettingVNotConfigured + _BrowserSyncSettingPBlockedWithUserOverride = BrowserSyncSettingVBlockedWithUserOverride + _BrowserSyncSettingPBlocked = BrowserSyncSettingVBlocked +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go new file mode 100644 index 00000000..e93f6ff3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go @@ -0,0 +1,193 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CalendarColor undocumented +type CalendarColor string + +const ( + // CalendarColorVLightBlue undocumented + CalendarColorVLightBlue CalendarColor = "lightBlue" + // CalendarColorVLightGreen undocumented + CalendarColorVLightGreen CalendarColor = "lightGreen" + // CalendarColorVLightOrange undocumented + CalendarColorVLightOrange CalendarColor = "lightOrange" + // CalendarColorVLightGray undocumented + CalendarColorVLightGray CalendarColor = "lightGray" + // CalendarColorVLightYellow undocumented + CalendarColorVLightYellow CalendarColor = "lightYellow" + // CalendarColorVLightTeal undocumented + CalendarColorVLightTeal CalendarColor = "lightTeal" + // CalendarColorVLightPink undocumented + CalendarColorVLightPink CalendarColor = "lightPink" + // CalendarColorVLightBrown undocumented + CalendarColorVLightBrown CalendarColor = "lightBrown" + // CalendarColorVLightRed undocumented + CalendarColorVLightRed CalendarColor = "lightRed" + // CalendarColorVMaxColor undocumented + CalendarColorVMaxColor CalendarColor = "maxColor" + // CalendarColorVAuto undocumented + CalendarColorVAuto CalendarColor = "auto" +) + +var ( + // CalendarColorPLightBlue is a pointer to CalendarColorVLightBlue + CalendarColorPLightBlue = &_CalendarColorPLightBlue + // CalendarColorPLightGreen is a pointer to CalendarColorVLightGreen + CalendarColorPLightGreen = &_CalendarColorPLightGreen + // CalendarColorPLightOrange is a pointer to CalendarColorVLightOrange + CalendarColorPLightOrange = &_CalendarColorPLightOrange + // CalendarColorPLightGray is a pointer to CalendarColorVLightGray + CalendarColorPLightGray = &_CalendarColorPLightGray + // CalendarColorPLightYellow is a pointer to CalendarColorVLightYellow + CalendarColorPLightYellow = &_CalendarColorPLightYellow + // CalendarColorPLightTeal is a pointer to CalendarColorVLightTeal + CalendarColorPLightTeal = &_CalendarColorPLightTeal + // CalendarColorPLightPink is a pointer to CalendarColorVLightPink + CalendarColorPLightPink = &_CalendarColorPLightPink + // CalendarColorPLightBrown is a pointer to CalendarColorVLightBrown + CalendarColorPLightBrown = &_CalendarColorPLightBrown + // CalendarColorPLightRed is a pointer to CalendarColorVLightRed + CalendarColorPLightRed = &_CalendarColorPLightRed + // CalendarColorPMaxColor is a pointer to CalendarColorVMaxColor + CalendarColorPMaxColor = &_CalendarColorPMaxColor + // CalendarColorPAuto is a pointer to CalendarColorVAuto + CalendarColorPAuto = &_CalendarColorPAuto +) + +var ( + _CalendarColorPLightBlue = CalendarColorVLightBlue + _CalendarColorPLightGreen = CalendarColorVLightGreen + _CalendarColorPLightOrange = CalendarColorVLightOrange + _CalendarColorPLightGray = CalendarColorVLightGray + _CalendarColorPLightYellow = CalendarColorVLightYellow + _CalendarColorPLightTeal = CalendarColorVLightTeal + _CalendarColorPLightPink = CalendarColorVLightPink + _CalendarColorPLightBrown = CalendarColorVLightBrown + _CalendarColorPLightRed = CalendarColorVLightRed + _CalendarColorPMaxColor = CalendarColorVMaxColor + _CalendarColorPAuto = CalendarColorVAuto +) + +// CalendarRoleType undocumented +type CalendarRoleType string + +const ( + // CalendarRoleTypeVNone undocumented + CalendarRoleTypeVNone CalendarRoleType = "none" + // CalendarRoleTypeVFreeBusyRead undocumented + CalendarRoleTypeVFreeBusyRead CalendarRoleType = "freeBusyRead" + // CalendarRoleTypeVLimitedRead undocumented + CalendarRoleTypeVLimitedRead CalendarRoleType = "limitedRead" + // CalendarRoleTypeVRead undocumented + CalendarRoleTypeVRead CalendarRoleType = "read" + // CalendarRoleTypeVWrite undocumented + CalendarRoleTypeVWrite CalendarRoleType = "write" + // CalendarRoleTypeVDelegateWithoutPrivateEventAccess undocumented + CalendarRoleTypeVDelegateWithoutPrivateEventAccess CalendarRoleType = "delegateWithoutPrivateEventAccess" + // CalendarRoleTypeVDelegateWithPrivateEventAccess undocumented + CalendarRoleTypeVDelegateWithPrivateEventAccess CalendarRoleType = "delegateWithPrivateEventAccess" + // CalendarRoleTypeVCustom undocumented + CalendarRoleTypeVCustom CalendarRoleType = "custom" +) + +var ( + // CalendarRoleTypePNone is a pointer to CalendarRoleTypeVNone + CalendarRoleTypePNone = &_CalendarRoleTypePNone + // CalendarRoleTypePFreeBusyRead is a pointer to CalendarRoleTypeVFreeBusyRead + CalendarRoleTypePFreeBusyRead = &_CalendarRoleTypePFreeBusyRead + // CalendarRoleTypePLimitedRead is a pointer to CalendarRoleTypeVLimitedRead + CalendarRoleTypePLimitedRead = &_CalendarRoleTypePLimitedRead + // CalendarRoleTypePRead is a pointer to CalendarRoleTypeVRead + CalendarRoleTypePRead = &_CalendarRoleTypePRead + // CalendarRoleTypePWrite is a pointer to CalendarRoleTypeVWrite + CalendarRoleTypePWrite = &_CalendarRoleTypePWrite + // CalendarRoleTypePDelegateWithoutPrivateEventAccess is a pointer to CalendarRoleTypeVDelegateWithoutPrivateEventAccess + CalendarRoleTypePDelegateWithoutPrivateEventAccess = &_CalendarRoleTypePDelegateWithoutPrivateEventAccess + // CalendarRoleTypePDelegateWithPrivateEventAccess is a pointer to CalendarRoleTypeVDelegateWithPrivateEventAccess + CalendarRoleTypePDelegateWithPrivateEventAccess = &_CalendarRoleTypePDelegateWithPrivateEventAccess + // CalendarRoleTypePCustom is a pointer to CalendarRoleTypeVCustom + CalendarRoleTypePCustom = &_CalendarRoleTypePCustom +) + +var ( + _CalendarRoleTypePNone = CalendarRoleTypeVNone + _CalendarRoleTypePFreeBusyRead = CalendarRoleTypeVFreeBusyRead + _CalendarRoleTypePLimitedRead = CalendarRoleTypeVLimitedRead + _CalendarRoleTypePRead = CalendarRoleTypeVRead + _CalendarRoleTypePWrite = CalendarRoleTypeVWrite + _CalendarRoleTypePDelegateWithoutPrivateEventAccess = CalendarRoleTypeVDelegateWithoutPrivateEventAccess + _CalendarRoleTypePDelegateWithPrivateEventAccess = CalendarRoleTypeVDelegateWithPrivateEventAccess + _CalendarRoleTypePCustom = CalendarRoleTypeVCustom +) + +// CalendarSharingAction undocumented +type CalendarSharingAction string + +const ( + // CalendarSharingActionVAccept undocumented + CalendarSharingActionVAccept CalendarSharingAction = "accept" + // CalendarSharingActionVAcceptAndViewCalendar undocumented + CalendarSharingActionVAcceptAndViewCalendar CalendarSharingAction = "acceptAndViewCalendar" + // CalendarSharingActionVViewCalendar undocumented + CalendarSharingActionVViewCalendar CalendarSharingAction = "viewCalendar" + // CalendarSharingActionVAddThisCalendar undocumented + CalendarSharingActionVAddThisCalendar CalendarSharingAction = "addThisCalendar" +) + +var ( + // CalendarSharingActionPAccept is a pointer to CalendarSharingActionVAccept + CalendarSharingActionPAccept = &_CalendarSharingActionPAccept + // CalendarSharingActionPAcceptAndViewCalendar is a pointer to CalendarSharingActionVAcceptAndViewCalendar + CalendarSharingActionPAcceptAndViewCalendar = &_CalendarSharingActionPAcceptAndViewCalendar + // CalendarSharingActionPViewCalendar is a pointer to CalendarSharingActionVViewCalendar + CalendarSharingActionPViewCalendar = &_CalendarSharingActionPViewCalendar + // CalendarSharingActionPAddThisCalendar is a pointer to CalendarSharingActionVAddThisCalendar + CalendarSharingActionPAddThisCalendar = &_CalendarSharingActionPAddThisCalendar +) + +var ( + _CalendarSharingActionPAccept = CalendarSharingActionVAccept + _CalendarSharingActionPAcceptAndViewCalendar = CalendarSharingActionVAcceptAndViewCalendar + _CalendarSharingActionPViewCalendar = CalendarSharingActionVViewCalendar + _CalendarSharingActionPAddThisCalendar = CalendarSharingActionVAddThisCalendar +) + +// CalendarSharingActionImportance undocumented +type CalendarSharingActionImportance string + +const ( + // CalendarSharingActionImportanceVPrimary undocumented + CalendarSharingActionImportanceVPrimary CalendarSharingActionImportance = "primary" + // CalendarSharingActionImportanceVSecondary undocumented + CalendarSharingActionImportanceVSecondary CalendarSharingActionImportance = "secondary" +) + +var ( + // CalendarSharingActionImportancePPrimary is a pointer to CalendarSharingActionImportanceVPrimary + CalendarSharingActionImportancePPrimary = &_CalendarSharingActionImportancePPrimary + // CalendarSharingActionImportancePSecondary is a pointer to CalendarSharingActionImportanceVSecondary + CalendarSharingActionImportancePSecondary = &_CalendarSharingActionImportancePSecondary +) + +var ( + _CalendarSharingActionImportancePPrimary = CalendarSharingActionImportanceVPrimary + _CalendarSharingActionImportancePSecondary = CalendarSharingActionImportanceVSecondary +) + +// CalendarSharingActionType undocumented +type CalendarSharingActionType string + +const ( + // CalendarSharingActionTypeVAccept undocumented + CalendarSharingActionTypeVAccept CalendarSharingActionType = "accept" +) + +var ( + // CalendarSharingActionTypePAccept is a pointer to CalendarSharingActionTypeVAccept + CalendarSharingActionTypePAccept = &_CalendarSharingActionTypePAccept +) + +var ( + _CalendarSharingActionTypePAccept = CalendarSharingActionTypeVAccept +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go new file mode 100644 index 00000000..e3a2f387 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go @@ -0,0 +1,119 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CallDirection undocumented +type CallDirection string + +const ( + // CallDirectionVIncoming undocumented + CallDirectionVIncoming CallDirection = "incoming" + // CallDirectionVOutgoing undocumented + CallDirectionVOutgoing CallDirection = "outgoing" +) + +var ( + // CallDirectionPIncoming is a pointer to CallDirectionVIncoming + CallDirectionPIncoming = &_CallDirectionPIncoming + // CallDirectionPOutgoing is a pointer to CallDirectionVOutgoing + CallDirectionPOutgoing = &_CallDirectionPOutgoing +) + +var ( + _CallDirectionPIncoming = CallDirectionVIncoming + _CallDirectionPOutgoing = CallDirectionVOutgoing +) + +// CallDisposition undocumented +type CallDisposition string + +const ( + // CallDispositionVDefault undocumented + CallDispositionVDefault CallDisposition = "default" + // CallDispositionVSimultaneousRing undocumented + CallDispositionVSimultaneousRing CallDisposition = "simultaneousRing" + // CallDispositionVForward undocumented + CallDispositionVForward CallDisposition = "forward" +) + +var ( + // CallDispositionPDefault is a pointer to CallDispositionVDefault + CallDispositionPDefault = &_CallDispositionPDefault + // CallDispositionPSimultaneousRing is a pointer to CallDispositionVSimultaneousRing + CallDispositionPSimultaneousRing = &_CallDispositionPSimultaneousRing + // CallDispositionPForward is a pointer to CallDispositionVForward + CallDispositionPForward = &_CallDispositionPForward +) + +var ( + _CallDispositionPDefault = CallDispositionVDefault + _CallDispositionPSimultaneousRing = CallDispositionVSimultaneousRing + _CallDispositionPForward = CallDispositionVForward +) + +// CallState undocumented +type CallState string + +const ( + // CallStateVIncoming undocumented + CallStateVIncoming CallState = "incoming" + // CallStateVEstablishing undocumented + CallStateVEstablishing CallState = "establishing" + // CallStateVRinging undocumented + CallStateVRinging CallState = "ringing" + // CallStateVEstablished undocumented + CallStateVEstablished CallState = "established" + // CallStateVHold undocumented + CallStateVHold CallState = "hold" + // CallStateVTransferring undocumented + CallStateVTransferring CallState = "transferring" + // CallStateVTransferAccepted undocumented + CallStateVTransferAccepted CallState = "transferAccepted" + // CallStateVRedirecting undocumented + CallStateVRedirecting CallState = "redirecting" + // CallStateVTerminating undocumented + CallStateVTerminating CallState = "terminating" + // CallStateVTerminated undocumented + CallStateVTerminated CallState = "terminated" + // CallStateVUnknownFutureValue undocumented + CallStateVUnknownFutureValue CallState = "unknownFutureValue" +) + +var ( + // CallStatePIncoming is a pointer to CallStateVIncoming + CallStatePIncoming = &_CallStatePIncoming + // CallStatePEstablishing is a pointer to CallStateVEstablishing + CallStatePEstablishing = &_CallStatePEstablishing + // CallStatePRinging is a pointer to CallStateVRinging + CallStatePRinging = &_CallStatePRinging + // CallStatePEstablished is a pointer to CallStateVEstablished + CallStatePEstablished = &_CallStatePEstablished + // CallStatePHold is a pointer to CallStateVHold + CallStatePHold = &_CallStatePHold + // CallStatePTransferring is a pointer to CallStateVTransferring + CallStatePTransferring = &_CallStatePTransferring + // CallStatePTransferAccepted is a pointer to CallStateVTransferAccepted + CallStatePTransferAccepted = &_CallStatePTransferAccepted + // CallStatePRedirecting is a pointer to CallStateVRedirecting + CallStatePRedirecting = &_CallStatePRedirecting + // CallStatePTerminating is a pointer to CallStateVTerminating + CallStatePTerminating = &_CallStatePTerminating + // CallStatePTerminated is a pointer to CallStateVTerminated + CallStatePTerminated = &_CallStatePTerminated + // CallStatePUnknownFutureValue is a pointer to CallStateVUnknownFutureValue + CallStatePUnknownFutureValue = &_CallStatePUnknownFutureValue +) + +var ( + _CallStatePIncoming = CallStateVIncoming + _CallStatePEstablishing = CallStateVEstablishing + _CallStatePRinging = CallStateVRinging + _CallStatePEstablished = CallStateVEstablished + _CallStatePHold = CallStateVHold + _CallStatePTransferring = CallStateVTransferring + _CallStatePTransferAccepted = CallStateVTransferAccepted + _CallStatePRedirecting = CallStateVRedirecting + _CallStatePTerminating = CallStateVTerminating + _CallStatePTerminated = CallStateVTerminated + _CallStatePUnknownFutureValue = CallStateVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go new file mode 100644 index 00000000..b719d312 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go @@ -0,0 +1,145 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CategoryColor undocumented +type CategoryColor string + +const ( + // CategoryColorVPreset0 undocumented + CategoryColorVPreset0 CategoryColor = "preset0" + // CategoryColorVPreset1 undocumented + CategoryColorVPreset1 CategoryColor = "preset1" + // CategoryColorVPreset2 undocumented + CategoryColorVPreset2 CategoryColor = "preset2" + // CategoryColorVPreset3 undocumented + CategoryColorVPreset3 CategoryColor = "preset3" + // CategoryColorVPreset4 undocumented + CategoryColorVPreset4 CategoryColor = "preset4" + // CategoryColorVPreset5 undocumented + CategoryColorVPreset5 CategoryColor = "preset5" + // CategoryColorVPreset6 undocumented + CategoryColorVPreset6 CategoryColor = "preset6" + // CategoryColorVPreset7 undocumented + CategoryColorVPreset7 CategoryColor = "preset7" + // CategoryColorVPreset8 undocumented + CategoryColorVPreset8 CategoryColor = "preset8" + // CategoryColorVPreset9 undocumented + CategoryColorVPreset9 CategoryColor = "preset9" + // CategoryColorVPreset10 undocumented + CategoryColorVPreset10 CategoryColor = "preset10" + // CategoryColorVPreset11 undocumented + CategoryColorVPreset11 CategoryColor = "preset11" + // CategoryColorVPreset12 undocumented + CategoryColorVPreset12 CategoryColor = "preset12" + // CategoryColorVPreset13 undocumented + CategoryColorVPreset13 CategoryColor = "preset13" + // CategoryColorVPreset14 undocumented + CategoryColorVPreset14 CategoryColor = "preset14" + // CategoryColorVPreset15 undocumented + CategoryColorVPreset15 CategoryColor = "preset15" + // CategoryColorVPreset16 undocumented + CategoryColorVPreset16 CategoryColor = "preset16" + // CategoryColorVPreset17 undocumented + CategoryColorVPreset17 CategoryColor = "preset17" + // CategoryColorVPreset18 undocumented + CategoryColorVPreset18 CategoryColor = "preset18" + // CategoryColorVPreset19 undocumented + CategoryColorVPreset19 CategoryColor = "preset19" + // CategoryColorVPreset20 undocumented + CategoryColorVPreset20 CategoryColor = "preset20" + // CategoryColorVPreset21 undocumented + CategoryColorVPreset21 CategoryColor = "preset21" + // CategoryColorVPreset22 undocumented + CategoryColorVPreset22 CategoryColor = "preset22" + // CategoryColorVPreset23 undocumented + CategoryColorVPreset23 CategoryColor = "preset23" + // CategoryColorVPreset24 undocumented + CategoryColorVPreset24 CategoryColor = "preset24" + // CategoryColorVNone undocumented + CategoryColorVNone CategoryColor = "none" +) + +var ( + // CategoryColorPPreset0 is a pointer to CategoryColorVPreset0 + CategoryColorPPreset0 = &_CategoryColorPPreset0 + // CategoryColorPPreset1 is a pointer to CategoryColorVPreset1 + CategoryColorPPreset1 = &_CategoryColorPPreset1 + // CategoryColorPPreset2 is a pointer to CategoryColorVPreset2 + CategoryColorPPreset2 = &_CategoryColorPPreset2 + // CategoryColorPPreset3 is a pointer to CategoryColorVPreset3 + CategoryColorPPreset3 = &_CategoryColorPPreset3 + // CategoryColorPPreset4 is a pointer to CategoryColorVPreset4 + CategoryColorPPreset4 = &_CategoryColorPPreset4 + // CategoryColorPPreset5 is a pointer to CategoryColorVPreset5 + CategoryColorPPreset5 = &_CategoryColorPPreset5 + // CategoryColorPPreset6 is a pointer to CategoryColorVPreset6 + CategoryColorPPreset6 = &_CategoryColorPPreset6 + // CategoryColorPPreset7 is a pointer to CategoryColorVPreset7 + CategoryColorPPreset7 = &_CategoryColorPPreset7 + // CategoryColorPPreset8 is a pointer to CategoryColorVPreset8 + CategoryColorPPreset8 = &_CategoryColorPPreset8 + // CategoryColorPPreset9 is a pointer to CategoryColorVPreset9 + CategoryColorPPreset9 = &_CategoryColorPPreset9 + // CategoryColorPPreset10 is a pointer to CategoryColorVPreset10 + CategoryColorPPreset10 = &_CategoryColorPPreset10 + // CategoryColorPPreset11 is a pointer to CategoryColorVPreset11 + CategoryColorPPreset11 = &_CategoryColorPPreset11 + // CategoryColorPPreset12 is a pointer to CategoryColorVPreset12 + CategoryColorPPreset12 = &_CategoryColorPPreset12 + // CategoryColorPPreset13 is a pointer to CategoryColorVPreset13 + CategoryColorPPreset13 = &_CategoryColorPPreset13 + // CategoryColorPPreset14 is a pointer to CategoryColorVPreset14 + CategoryColorPPreset14 = &_CategoryColorPPreset14 + // CategoryColorPPreset15 is a pointer to CategoryColorVPreset15 + CategoryColorPPreset15 = &_CategoryColorPPreset15 + // CategoryColorPPreset16 is a pointer to CategoryColorVPreset16 + CategoryColorPPreset16 = &_CategoryColorPPreset16 + // CategoryColorPPreset17 is a pointer to CategoryColorVPreset17 + CategoryColorPPreset17 = &_CategoryColorPPreset17 + // CategoryColorPPreset18 is a pointer to CategoryColorVPreset18 + CategoryColorPPreset18 = &_CategoryColorPPreset18 + // CategoryColorPPreset19 is a pointer to CategoryColorVPreset19 + CategoryColorPPreset19 = &_CategoryColorPPreset19 + // CategoryColorPPreset20 is a pointer to CategoryColorVPreset20 + CategoryColorPPreset20 = &_CategoryColorPPreset20 + // CategoryColorPPreset21 is a pointer to CategoryColorVPreset21 + CategoryColorPPreset21 = &_CategoryColorPPreset21 + // CategoryColorPPreset22 is a pointer to CategoryColorVPreset22 + CategoryColorPPreset22 = &_CategoryColorPPreset22 + // CategoryColorPPreset23 is a pointer to CategoryColorVPreset23 + CategoryColorPPreset23 = &_CategoryColorPPreset23 + // CategoryColorPPreset24 is a pointer to CategoryColorVPreset24 + CategoryColorPPreset24 = &_CategoryColorPPreset24 + // CategoryColorPNone is a pointer to CategoryColorVNone + CategoryColorPNone = &_CategoryColorPNone +) + +var ( + _CategoryColorPPreset0 = CategoryColorVPreset0 + _CategoryColorPPreset1 = CategoryColorVPreset1 + _CategoryColorPPreset2 = CategoryColorVPreset2 + _CategoryColorPPreset3 = CategoryColorVPreset3 + _CategoryColorPPreset4 = CategoryColorVPreset4 + _CategoryColorPPreset5 = CategoryColorVPreset5 + _CategoryColorPPreset6 = CategoryColorVPreset6 + _CategoryColorPPreset7 = CategoryColorVPreset7 + _CategoryColorPPreset8 = CategoryColorVPreset8 + _CategoryColorPPreset9 = CategoryColorVPreset9 + _CategoryColorPPreset10 = CategoryColorVPreset10 + _CategoryColorPPreset11 = CategoryColorVPreset11 + _CategoryColorPPreset12 = CategoryColorVPreset12 + _CategoryColorPPreset13 = CategoryColorVPreset13 + _CategoryColorPPreset14 = CategoryColorVPreset14 + _CategoryColorPPreset15 = CategoryColorVPreset15 + _CategoryColorPPreset16 = CategoryColorVPreset16 + _CategoryColorPPreset17 = CategoryColorVPreset17 + _CategoryColorPPreset18 = CategoryColorVPreset18 + _CategoryColorPPreset19 = CategoryColorVPreset19 + _CategoryColorPPreset20 = CategoryColorVPreset20 + _CategoryColorPPreset21 = CategoryColorVPreset21 + _CategoryColorPPreset22 = CategoryColorVPreset22 + _CategoryColorPPreset23 = CategoryColorVPreset23 + _CategoryColorPPreset24 = CategoryColorVPreset24 + _CategoryColorPNone = CategoryColorVNone +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go new file mode 100644 index 00000000..5f93b3d9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go @@ -0,0 +1,265 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CertificateDestinationStore undocumented +type CertificateDestinationStore string + +const ( + // CertificateDestinationStoreVComputerCertStoreRoot undocumented + CertificateDestinationStoreVComputerCertStoreRoot CertificateDestinationStore = "computerCertStoreRoot" + // CertificateDestinationStoreVComputerCertStoreIntermediate undocumented + CertificateDestinationStoreVComputerCertStoreIntermediate CertificateDestinationStore = "computerCertStoreIntermediate" + // CertificateDestinationStoreVUserCertStoreIntermediate undocumented + CertificateDestinationStoreVUserCertStoreIntermediate CertificateDestinationStore = "userCertStoreIntermediate" +) + +var ( + // CertificateDestinationStorePComputerCertStoreRoot is a pointer to CertificateDestinationStoreVComputerCertStoreRoot + CertificateDestinationStorePComputerCertStoreRoot = &_CertificateDestinationStorePComputerCertStoreRoot + // CertificateDestinationStorePComputerCertStoreIntermediate is a pointer to CertificateDestinationStoreVComputerCertStoreIntermediate + CertificateDestinationStorePComputerCertStoreIntermediate = &_CertificateDestinationStorePComputerCertStoreIntermediate + // CertificateDestinationStorePUserCertStoreIntermediate is a pointer to CertificateDestinationStoreVUserCertStoreIntermediate + CertificateDestinationStorePUserCertStoreIntermediate = &_CertificateDestinationStorePUserCertStoreIntermediate +) + +var ( + _CertificateDestinationStorePComputerCertStoreRoot = CertificateDestinationStoreVComputerCertStoreRoot + _CertificateDestinationStorePComputerCertStoreIntermediate = CertificateDestinationStoreVComputerCertStoreIntermediate + _CertificateDestinationStorePUserCertStoreIntermediate = CertificateDestinationStoreVUserCertStoreIntermediate +) + +// CertificateIssuanceStates undocumented +type CertificateIssuanceStates string + +const ( + // CertificateIssuanceStatesVUnknown undocumented + CertificateIssuanceStatesVUnknown CertificateIssuanceStates = "unknown" + // CertificateIssuanceStatesVChallengeIssued undocumented + CertificateIssuanceStatesVChallengeIssued CertificateIssuanceStates = "challengeIssued" + // CertificateIssuanceStatesVChallengeIssueFailed undocumented + CertificateIssuanceStatesVChallengeIssueFailed CertificateIssuanceStates = "challengeIssueFailed" + // CertificateIssuanceStatesVRequestCreationFailed undocumented + CertificateIssuanceStatesVRequestCreationFailed CertificateIssuanceStates = "requestCreationFailed" + // CertificateIssuanceStatesVRequestSubmitFailed undocumented + CertificateIssuanceStatesVRequestSubmitFailed CertificateIssuanceStates = "requestSubmitFailed" + // CertificateIssuanceStatesVChallengeValidationSucceeded undocumented + CertificateIssuanceStatesVChallengeValidationSucceeded CertificateIssuanceStates = "challengeValidationSucceeded" + // CertificateIssuanceStatesVChallengeValidationFailed undocumented + CertificateIssuanceStatesVChallengeValidationFailed CertificateIssuanceStates = "challengeValidationFailed" + // CertificateIssuanceStatesVIssueFailed undocumented + CertificateIssuanceStatesVIssueFailed CertificateIssuanceStates = "issueFailed" + // CertificateIssuanceStatesVIssuePending undocumented + CertificateIssuanceStatesVIssuePending CertificateIssuanceStates = "issuePending" + // CertificateIssuanceStatesVIssued undocumented + CertificateIssuanceStatesVIssued CertificateIssuanceStates = "issued" + // CertificateIssuanceStatesVResponseProcessingFailed undocumented + CertificateIssuanceStatesVResponseProcessingFailed CertificateIssuanceStates = "responseProcessingFailed" + // CertificateIssuanceStatesVResponsePending undocumented + CertificateIssuanceStatesVResponsePending CertificateIssuanceStates = "responsePending" + // CertificateIssuanceStatesVEnrollmentSucceeded undocumented + CertificateIssuanceStatesVEnrollmentSucceeded CertificateIssuanceStates = "enrollmentSucceeded" + // CertificateIssuanceStatesVEnrollmentNotNeeded undocumented + CertificateIssuanceStatesVEnrollmentNotNeeded CertificateIssuanceStates = "enrollmentNotNeeded" + // CertificateIssuanceStatesVRevoked undocumented + CertificateIssuanceStatesVRevoked CertificateIssuanceStates = "revoked" + // CertificateIssuanceStatesVRemovedFromCollection undocumented + CertificateIssuanceStatesVRemovedFromCollection CertificateIssuanceStates = "removedFromCollection" + // CertificateIssuanceStatesVRenewVerified undocumented + CertificateIssuanceStatesVRenewVerified CertificateIssuanceStates = "renewVerified" + // CertificateIssuanceStatesVInstallFailed undocumented + CertificateIssuanceStatesVInstallFailed CertificateIssuanceStates = "installFailed" + // CertificateIssuanceStatesVInstalled undocumented + CertificateIssuanceStatesVInstalled CertificateIssuanceStates = "installed" + // CertificateIssuanceStatesVDeleteFailed undocumented + CertificateIssuanceStatesVDeleteFailed CertificateIssuanceStates = "deleteFailed" + // CertificateIssuanceStatesVDeleted undocumented + CertificateIssuanceStatesVDeleted CertificateIssuanceStates = "deleted" + // CertificateIssuanceStatesVRenewalRequested undocumented + CertificateIssuanceStatesVRenewalRequested CertificateIssuanceStates = "renewalRequested" + // CertificateIssuanceStatesVRequested undocumented + CertificateIssuanceStatesVRequested CertificateIssuanceStates = "requested" +) + +var ( + // CertificateIssuanceStatesPUnknown is a pointer to CertificateIssuanceStatesVUnknown + CertificateIssuanceStatesPUnknown = &_CertificateIssuanceStatesPUnknown + // CertificateIssuanceStatesPChallengeIssued is a pointer to CertificateIssuanceStatesVChallengeIssued + CertificateIssuanceStatesPChallengeIssued = &_CertificateIssuanceStatesPChallengeIssued + // CertificateIssuanceStatesPChallengeIssueFailed is a pointer to CertificateIssuanceStatesVChallengeIssueFailed + CertificateIssuanceStatesPChallengeIssueFailed = &_CertificateIssuanceStatesPChallengeIssueFailed + // CertificateIssuanceStatesPRequestCreationFailed is a pointer to CertificateIssuanceStatesVRequestCreationFailed + CertificateIssuanceStatesPRequestCreationFailed = &_CertificateIssuanceStatesPRequestCreationFailed + // CertificateIssuanceStatesPRequestSubmitFailed is a pointer to CertificateIssuanceStatesVRequestSubmitFailed + CertificateIssuanceStatesPRequestSubmitFailed = &_CertificateIssuanceStatesPRequestSubmitFailed + // CertificateIssuanceStatesPChallengeValidationSucceeded is a pointer to CertificateIssuanceStatesVChallengeValidationSucceeded + CertificateIssuanceStatesPChallengeValidationSucceeded = &_CertificateIssuanceStatesPChallengeValidationSucceeded + // CertificateIssuanceStatesPChallengeValidationFailed is a pointer to CertificateIssuanceStatesVChallengeValidationFailed + CertificateIssuanceStatesPChallengeValidationFailed = &_CertificateIssuanceStatesPChallengeValidationFailed + // CertificateIssuanceStatesPIssueFailed is a pointer to CertificateIssuanceStatesVIssueFailed + CertificateIssuanceStatesPIssueFailed = &_CertificateIssuanceStatesPIssueFailed + // CertificateIssuanceStatesPIssuePending is a pointer to CertificateIssuanceStatesVIssuePending + CertificateIssuanceStatesPIssuePending = &_CertificateIssuanceStatesPIssuePending + // CertificateIssuanceStatesPIssued is a pointer to CertificateIssuanceStatesVIssued + CertificateIssuanceStatesPIssued = &_CertificateIssuanceStatesPIssued + // CertificateIssuanceStatesPResponseProcessingFailed is a pointer to CertificateIssuanceStatesVResponseProcessingFailed + CertificateIssuanceStatesPResponseProcessingFailed = &_CertificateIssuanceStatesPResponseProcessingFailed + // CertificateIssuanceStatesPResponsePending is a pointer to CertificateIssuanceStatesVResponsePending + CertificateIssuanceStatesPResponsePending = &_CertificateIssuanceStatesPResponsePending + // CertificateIssuanceStatesPEnrollmentSucceeded is a pointer to CertificateIssuanceStatesVEnrollmentSucceeded + CertificateIssuanceStatesPEnrollmentSucceeded = &_CertificateIssuanceStatesPEnrollmentSucceeded + // CertificateIssuanceStatesPEnrollmentNotNeeded is a pointer to CertificateIssuanceStatesVEnrollmentNotNeeded + CertificateIssuanceStatesPEnrollmentNotNeeded = &_CertificateIssuanceStatesPEnrollmentNotNeeded + // CertificateIssuanceStatesPRevoked is a pointer to CertificateIssuanceStatesVRevoked + CertificateIssuanceStatesPRevoked = &_CertificateIssuanceStatesPRevoked + // CertificateIssuanceStatesPRemovedFromCollection is a pointer to CertificateIssuanceStatesVRemovedFromCollection + CertificateIssuanceStatesPRemovedFromCollection = &_CertificateIssuanceStatesPRemovedFromCollection + // CertificateIssuanceStatesPRenewVerified is a pointer to CertificateIssuanceStatesVRenewVerified + CertificateIssuanceStatesPRenewVerified = &_CertificateIssuanceStatesPRenewVerified + // CertificateIssuanceStatesPInstallFailed is a pointer to CertificateIssuanceStatesVInstallFailed + CertificateIssuanceStatesPInstallFailed = &_CertificateIssuanceStatesPInstallFailed + // CertificateIssuanceStatesPInstalled is a pointer to CertificateIssuanceStatesVInstalled + CertificateIssuanceStatesPInstalled = &_CertificateIssuanceStatesPInstalled + // CertificateIssuanceStatesPDeleteFailed is a pointer to CertificateIssuanceStatesVDeleteFailed + CertificateIssuanceStatesPDeleteFailed = &_CertificateIssuanceStatesPDeleteFailed + // CertificateIssuanceStatesPDeleted is a pointer to CertificateIssuanceStatesVDeleted + CertificateIssuanceStatesPDeleted = &_CertificateIssuanceStatesPDeleted + // CertificateIssuanceStatesPRenewalRequested is a pointer to CertificateIssuanceStatesVRenewalRequested + CertificateIssuanceStatesPRenewalRequested = &_CertificateIssuanceStatesPRenewalRequested + // CertificateIssuanceStatesPRequested is a pointer to CertificateIssuanceStatesVRequested + CertificateIssuanceStatesPRequested = &_CertificateIssuanceStatesPRequested +) + +var ( + _CertificateIssuanceStatesPUnknown = CertificateIssuanceStatesVUnknown + _CertificateIssuanceStatesPChallengeIssued = CertificateIssuanceStatesVChallengeIssued + _CertificateIssuanceStatesPChallengeIssueFailed = CertificateIssuanceStatesVChallengeIssueFailed + _CertificateIssuanceStatesPRequestCreationFailed = CertificateIssuanceStatesVRequestCreationFailed + _CertificateIssuanceStatesPRequestSubmitFailed = CertificateIssuanceStatesVRequestSubmitFailed + _CertificateIssuanceStatesPChallengeValidationSucceeded = CertificateIssuanceStatesVChallengeValidationSucceeded + _CertificateIssuanceStatesPChallengeValidationFailed = CertificateIssuanceStatesVChallengeValidationFailed + _CertificateIssuanceStatesPIssueFailed = CertificateIssuanceStatesVIssueFailed + _CertificateIssuanceStatesPIssuePending = CertificateIssuanceStatesVIssuePending + _CertificateIssuanceStatesPIssued = CertificateIssuanceStatesVIssued + _CertificateIssuanceStatesPResponseProcessingFailed = CertificateIssuanceStatesVResponseProcessingFailed + _CertificateIssuanceStatesPResponsePending = CertificateIssuanceStatesVResponsePending + _CertificateIssuanceStatesPEnrollmentSucceeded = CertificateIssuanceStatesVEnrollmentSucceeded + _CertificateIssuanceStatesPEnrollmentNotNeeded = CertificateIssuanceStatesVEnrollmentNotNeeded + _CertificateIssuanceStatesPRevoked = CertificateIssuanceStatesVRevoked + _CertificateIssuanceStatesPRemovedFromCollection = CertificateIssuanceStatesVRemovedFromCollection + _CertificateIssuanceStatesPRenewVerified = CertificateIssuanceStatesVRenewVerified + _CertificateIssuanceStatesPInstallFailed = CertificateIssuanceStatesVInstallFailed + _CertificateIssuanceStatesPInstalled = CertificateIssuanceStatesVInstalled + _CertificateIssuanceStatesPDeleteFailed = CertificateIssuanceStatesVDeleteFailed + _CertificateIssuanceStatesPDeleted = CertificateIssuanceStatesVDeleted + _CertificateIssuanceStatesPRenewalRequested = CertificateIssuanceStatesVRenewalRequested + _CertificateIssuanceStatesPRequested = CertificateIssuanceStatesVRequested +) + +// CertificateRevocationStatus undocumented +type CertificateRevocationStatus string + +const ( + // CertificateRevocationStatusVNone undocumented + CertificateRevocationStatusVNone CertificateRevocationStatus = "none" + // CertificateRevocationStatusVPending undocumented + CertificateRevocationStatusVPending CertificateRevocationStatus = "pending" + // CertificateRevocationStatusVIssued undocumented + CertificateRevocationStatusVIssued CertificateRevocationStatus = "issued" + // CertificateRevocationStatusVFailed undocumented + CertificateRevocationStatusVFailed CertificateRevocationStatus = "failed" + // CertificateRevocationStatusVRevoked undocumented + CertificateRevocationStatusVRevoked CertificateRevocationStatus = "revoked" +) + +var ( + // CertificateRevocationStatusPNone is a pointer to CertificateRevocationStatusVNone + CertificateRevocationStatusPNone = &_CertificateRevocationStatusPNone + // CertificateRevocationStatusPPending is a pointer to CertificateRevocationStatusVPending + CertificateRevocationStatusPPending = &_CertificateRevocationStatusPPending + // CertificateRevocationStatusPIssued is a pointer to CertificateRevocationStatusVIssued + CertificateRevocationStatusPIssued = &_CertificateRevocationStatusPIssued + // CertificateRevocationStatusPFailed is a pointer to CertificateRevocationStatusVFailed + CertificateRevocationStatusPFailed = &_CertificateRevocationStatusPFailed + // CertificateRevocationStatusPRevoked is a pointer to CertificateRevocationStatusVRevoked + CertificateRevocationStatusPRevoked = &_CertificateRevocationStatusPRevoked +) + +var ( + _CertificateRevocationStatusPNone = CertificateRevocationStatusVNone + _CertificateRevocationStatusPPending = CertificateRevocationStatusVPending + _CertificateRevocationStatusPIssued = CertificateRevocationStatusVIssued + _CertificateRevocationStatusPFailed = CertificateRevocationStatusVFailed + _CertificateRevocationStatusPRevoked = CertificateRevocationStatusVRevoked +) + +// CertificateStatus undocumented +type CertificateStatus string + +const ( + // CertificateStatusVNotProvisioned undocumented + CertificateStatusVNotProvisioned CertificateStatus = "notProvisioned" + // CertificateStatusVProvisioned undocumented + CertificateStatusVProvisioned CertificateStatus = "provisioned" +) + +var ( + // CertificateStatusPNotProvisioned is a pointer to CertificateStatusVNotProvisioned + CertificateStatusPNotProvisioned = &_CertificateStatusPNotProvisioned + // CertificateStatusPProvisioned is a pointer to CertificateStatusVProvisioned + CertificateStatusPProvisioned = &_CertificateStatusPProvisioned +) + +var ( + _CertificateStatusPNotProvisioned = CertificateStatusVNotProvisioned + _CertificateStatusPProvisioned = CertificateStatusVProvisioned +) + +// CertificateStore undocumented +type CertificateStore string + +const ( + // CertificateStoreVUser undocumented + CertificateStoreVUser CertificateStore = "user" + // CertificateStoreVMachine undocumented + CertificateStoreVMachine CertificateStore = "machine" +) + +var ( + // CertificateStorePUser is a pointer to CertificateStoreVUser + CertificateStorePUser = &_CertificateStorePUser + // CertificateStorePMachine is a pointer to CertificateStoreVMachine + CertificateStorePMachine = &_CertificateStorePMachine +) + +var ( + _CertificateStorePUser = CertificateStoreVUser + _CertificateStorePMachine = CertificateStoreVMachine +) + +// CertificateValidityPeriodScale undocumented +type CertificateValidityPeriodScale string + +const ( + // CertificateValidityPeriodScaleVDays undocumented + CertificateValidityPeriodScaleVDays CertificateValidityPeriodScale = "days" + // CertificateValidityPeriodScaleVMonths undocumented + CertificateValidityPeriodScaleVMonths CertificateValidityPeriodScale = "months" + // CertificateValidityPeriodScaleVYears undocumented + CertificateValidityPeriodScaleVYears CertificateValidityPeriodScale = "years" +) + +var ( + // CertificateValidityPeriodScalePDays is a pointer to CertificateValidityPeriodScaleVDays + CertificateValidityPeriodScalePDays = &_CertificateValidityPeriodScalePDays + // CertificateValidityPeriodScalePMonths is a pointer to CertificateValidityPeriodScaleVMonths + CertificateValidityPeriodScalePMonths = &_CertificateValidityPeriodScalePMonths + // CertificateValidityPeriodScalePYears is a pointer to CertificateValidityPeriodScaleVYears + CertificateValidityPeriodScalePYears = &_CertificateValidityPeriodScalePYears +) + +var ( + _CertificateValidityPeriodScalePDays = CertificateValidityPeriodScaleVDays + _CertificateValidityPeriodScalePMonths = CertificateValidityPeriodScaleVMonths + _CertificateValidityPeriodScalePYears = CertificateValidityPeriodScaleVYears +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go new file mode 100644 index 00000000..ef7a5ffd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go @@ -0,0 +1,52 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ChangeType undocumented +type ChangeType string + +const ( + // ChangeTypeVCreated undocumented + ChangeTypeVCreated ChangeType = "created" + // ChangeTypeVUpdated undocumented + ChangeTypeVUpdated ChangeType = "updated" + // ChangeTypeVDeleted undocumented + ChangeTypeVDeleted ChangeType = "deleted" +) + +var ( + // ChangeTypePCreated is a pointer to ChangeTypeVCreated + ChangeTypePCreated = &_ChangeTypePCreated + // ChangeTypePUpdated is a pointer to ChangeTypeVUpdated + ChangeTypePUpdated = &_ChangeTypePUpdated + // ChangeTypePDeleted is a pointer to ChangeTypeVDeleted + ChangeTypePDeleted = &_ChangeTypePDeleted +) + +var ( + _ChangeTypePCreated = ChangeTypeVCreated + _ChangeTypePUpdated = ChangeTypeVUpdated + _ChangeTypePDeleted = ChangeTypeVDeleted +) + +// ChangeUefiSettingsPermission undocumented +type ChangeUefiSettingsPermission string + +const ( + // ChangeUefiSettingsPermissionVNotConfiguredOnly undocumented + ChangeUefiSettingsPermissionVNotConfiguredOnly ChangeUefiSettingsPermission = "notConfiguredOnly" + // ChangeUefiSettingsPermissionVNone undocumented + ChangeUefiSettingsPermissionVNone ChangeUefiSettingsPermission = "none" +) + +var ( + // ChangeUefiSettingsPermissionPNotConfiguredOnly is a pointer to ChangeUefiSettingsPermissionVNotConfiguredOnly + ChangeUefiSettingsPermissionPNotConfiguredOnly = &_ChangeUefiSettingsPermissionPNotConfiguredOnly + // ChangeUefiSettingsPermissionPNone is a pointer to ChangeUefiSettingsPermissionVNone + ChangeUefiSettingsPermissionPNone = &_ChangeUefiSettingsPermissionPNone +) + +var ( + _ChangeUefiSettingsPermissionPNotConfiguredOnly = ChangeUefiSettingsPermissionVNotConfiguredOnly + _ChangeUefiSettingsPermissionPNone = ChangeUefiSettingsPermissionVNone +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go new file mode 100644 index 00000000..f83c064c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ChannelMembershipType undocumented +type ChannelMembershipType string + +const ( + // ChannelMembershipTypeVStandard undocumented + ChannelMembershipTypeVStandard ChannelMembershipType = "standard" + // ChannelMembershipTypeVPrivate undocumented + ChannelMembershipTypeVPrivate ChannelMembershipType = "private" + // ChannelMembershipTypeVUnknownFutureValue undocumented + ChannelMembershipTypeVUnknownFutureValue ChannelMembershipType = "unknownFutureValue" +) + +var ( + // ChannelMembershipTypePStandard is a pointer to ChannelMembershipTypeVStandard + ChannelMembershipTypePStandard = &_ChannelMembershipTypePStandard + // ChannelMembershipTypePPrivate is a pointer to ChannelMembershipTypeVPrivate + ChannelMembershipTypePPrivate = &_ChannelMembershipTypePPrivate + // ChannelMembershipTypePUnknownFutureValue is a pointer to ChannelMembershipTypeVUnknownFutureValue + ChannelMembershipTypePUnknownFutureValue = &_ChannelMembershipTypePUnknownFutureValue +) + +var ( + _ChannelMembershipTypePStandard = ChannelMembershipTypeVStandard + _ChannelMembershipTypePPrivate = ChannelMembershipTypeVPrivate + _ChannelMembershipTypePUnknownFutureValue = ChannelMembershipTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go new file mode 100644 index 00000000..d4b6c4e8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go @@ -0,0 +1,60 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ChassisType undocumented +type ChassisType string + +const ( + // ChassisTypeVUnknown undocumented + ChassisTypeVUnknown ChassisType = "unknown" + // ChassisTypeVDesktop undocumented + ChassisTypeVDesktop ChassisType = "desktop" + // ChassisTypeVLaptop undocumented + ChassisTypeVLaptop ChassisType = "laptop" + // ChassisTypeVWorksWorkstation undocumented + ChassisTypeVWorksWorkstation ChassisType = "worksWorkstation" + // ChassisTypeVEnterpriseServer undocumented + ChassisTypeVEnterpriseServer ChassisType = "enterpriseServer" + // ChassisTypeVPhone undocumented + ChassisTypeVPhone ChassisType = "phone" + // ChassisTypeVTablet undocumented + ChassisTypeVTablet ChassisType = "tablet" + // ChassisTypeVMobileOther undocumented + ChassisTypeVMobileOther ChassisType = "mobileOther" + // ChassisTypeVMobileUnknown undocumented + ChassisTypeVMobileUnknown ChassisType = "mobileUnknown" +) + +var ( + // ChassisTypePUnknown is a pointer to ChassisTypeVUnknown + ChassisTypePUnknown = &_ChassisTypePUnknown + // ChassisTypePDesktop is a pointer to ChassisTypeVDesktop + ChassisTypePDesktop = &_ChassisTypePDesktop + // ChassisTypePLaptop is a pointer to ChassisTypeVLaptop + ChassisTypePLaptop = &_ChassisTypePLaptop + // ChassisTypePWorksWorkstation is a pointer to ChassisTypeVWorksWorkstation + ChassisTypePWorksWorkstation = &_ChassisTypePWorksWorkstation + // ChassisTypePEnterpriseServer is a pointer to ChassisTypeVEnterpriseServer + ChassisTypePEnterpriseServer = &_ChassisTypePEnterpriseServer + // ChassisTypePPhone is a pointer to ChassisTypeVPhone + ChassisTypePPhone = &_ChassisTypePPhone + // ChassisTypePTablet is a pointer to ChassisTypeVTablet + ChassisTypePTablet = &_ChassisTypePTablet + // ChassisTypePMobileOther is a pointer to ChassisTypeVMobileOther + ChassisTypePMobileOther = &_ChassisTypePMobileOther + // ChassisTypePMobileUnknown is a pointer to ChassisTypeVMobileUnknown + ChassisTypePMobileUnknown = &_ChassisTypePMobileUnknown +) + +var ( + _ChassisTypePUnknown = ChassisTypeVUnknown + _ChassisTypePDesktop = ChassisTypeVDesktop + _ChassisTypePLaptop = ChassisTypeVLaptop + _ChassisTypePWorksWorkstation = ChassisTypeVWorksWorkstation + _ChassisTypePEnterpriseServer = ChassisTypeVEnterpriseServer + _ChassisTypePPhone = ChassisTypeVPhone + _ChassisTypePTablet = ChassisTypeVTablet + _ChassisTypePMobileOther = ChassisTypeVMobileOther + _ChassisTypePMobileUnknown = ChassisTypeVMobileUnknown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go new file mode 100644 index 00000000..bbbec18b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go @@ -0,0 +1,148 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ChatMessageImportance undocumented +type ChatMessageImportance string + +const ( + // ChatMessageImportanceVNormal undocumented + ChatMessageImportanceVNormal ChatMessageImportance = "normal" + // ChatMessageImportanceVHigh undocumented + ChatMessageImportanceVHigh ChatMessageImportance = "high" + // ChatMessageImportanceVUrgent undocumented + ChatMessageImportanceVUrgent ChatMessageImportance = "urgent" +) + +var ( + // ChatMessageImportancePNormal is a pointer to ChatMessageImportanceVNormal + ChatMessageImportancePNormal = &_ChatMessageImportancePNormal + // ChatMessageImportancePHigh is a pointer to ChatMessageImportanceVHigh + ChatMessageImportancePHigh = &_ChatMessageImportancePHigh + // ChatMessageImportancePUrgent is a pointer to ChatMessageImportanceVUrgent + ChatMessageImportancePUrgent = &_ChatMessageImportancePUrgent +) + +var ( + _ChatMessageImportancePNormal = ChatMessageImportanceVNormal + _ChatMessageImportancePHigh = ChatMessageImportanceVHigh + _ChatMessageImportancePUrgent = ChatMessageImportanceVUrgent +) + +// ChatMessagePolicyViolationDlpActionTypes undocumented +type ChatMessagePolicyViolationDlpActionTypes string + +const ( + // ChatMessagePolicyViolationDlpActionTypesVNone undocumented + ChatMessagePolicyViolationDlpActionTypesVNone ChatMessagePolicyViolationDlpActionTypes = "none" + // ChatMessagePolicyViolationDlpActionTypesVNotifySender undocumented + ChatMessagePolicyViolationDlpActionTypesVNotifySender ChatMessagePolicyViolationDlpActionTypes = "notifySender" + // ChatMessagePolicyViolationDlpActionTypesVBlockAccess undocumented + ChatMessagePolicyViolationDlpActionTypesVBlockAccess ChatMessagePolicyViolationDlpActionTypes = "blockAccess" + // ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal undocumented + ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal ChatMessagePolicyViolationDlpActionTypes = "blockAccessExternal" +) + +var ( + // ChatMessagePolicyViolationDlpActionTypesPNone is a pointer to ChatMessagePolicyViolationDlpActionTypesVNone + ChatMessagePolicyViolationDlpActionTypesPNone = &_ChatMessagePolicyViolationDlpActionTypesPNone + // ChatMessagePolicyViolationDlpActionTypesPNotifySender is a pointer to ChatMessagePolicyViolationDlpActionTypesVNotifySender + ChatMessagePolicyViolationDlpActionTypesPNotifySender = &_ChatMessagePolicyViolationDlpActionTypesPNotifySender + // ChatMessagePolicyViolationDlpActionTypesPBlockAccess is a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccess + ChatMessagePolicyViolationDlpActionTypesPBlockAccess = &_ChatMessagePolicyViolationDlpActionTypesPBlockAccess + // ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal is a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal + ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal = &_ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal +) + +var ( + _ChatMessagePolicyViolationDlpActionTypesPNone = ChatMessagePolicyViolationDlpActionTypesVNone + _ChatMessagePolicyViolationDlpActionTypesPNotifySender = ChatMessagePolicyViolationDlpActionTypesVNotifySender + _ChatMessagePolicyViolationDlpActionTypesPBlockAccess = ChatMessagePolicyViolationDlpActionTypesVBlockAccess + _ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal = ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal +) + +// ChatMessagePolicyViolationUserActionTypes undocumented +type ChatMessagePolicyViolationUserActionTypes string + +const ( + // ChatMessagePolicyViolationUserActionTypesVNone undocumented + ChatMessagePolicyViolationUserActionTypesVNone ChatMessagePolicyViolationUserActionTypes = "none" + // ChatMessagePolicyViolationUserActionTypesVOverride undocumented + ChatMessagePolicyViolationUserActionTypesVOverride ChatMessagePolicyViolationUserActionTypes = "override" + // ChatMessagePolicyViolationUserActionTypesVReportFalsePositive undocumented + ChatMessagePolicyViolationUserActionTypesVReportFalsePositive ChatMessagePolicyViolationUserActionTypes = "reportFalsePositive" +) + +var ( + // ChatMessagePolicyViolationUserActionTypesPNone is a pointer to ChatMessagePolicyViolationUserActionTypesVNone + ChatMessagePolicyViolationUserActionTypesPNone = &_ChatMessagePolicyViolationUserActionTypesPNone + // ChatMessagePolicyViolationUserActionTypesPOverride is a pointer to ChatMessagePolicyViolationUserActionTypesVOverride + ChatMessagePolicyViolationUserActionTypesPOverride = &_ChatMessagePolicyViolationUserActionTypesPOverride + // ChatMessagePolicyViolationUserActionTypesPReportFalsePositive is a pointer to ChatMessagePolicyViolationUserActionTypesVReportFalsePositive + ChatMessagePolicyViolationUserActionTypesPReportFalsePositive = &_ChatMessagePolicyViolationUserActionTypesPReportFalsePositive +) + +var ( + _ChatMessagePolicyViolationUserActionTypesPNone = ChatMessagePolicyViolationUserActionTypesVNone + _ChatMessagePolicyViolationUserActionTypesPOverride = ChatMessagePolicyViolationUserActionTypesVOverride + _ChatMessagePolicyViolationUserActionTypesPReportFalsePositive = ChatMessagePolicyViolationUserActionTypesVReportFalsePositive +) + +// ChatMessagePolicyViolationVerdictDetailsTypes undocumented +type ChatMessagePolicyViolationVerdictDetailsTypes string + +const ( + // ChatMessagePolicyViolationVerdictDetailsTypesVNone undocumented + ChatMessagePolicyViolationVerdictDetailsTypesVNone ChatMessagePolicyViolationVerdictDetailsTypes = "none" + // ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride undocumented + ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride ChatMessagePolicyViolationVerdictDetailsTypes = "allowFalsePositiveOverride" + // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification undocumented + ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification ChatMessagePolicyViolationVerdictDetailsTypes = "allowOverrideWithoutJustification" + // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification undocumented + ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification ChatMessagePolicyViolationVerdictDetailsTypes = "allowOverrideWithJustification" +) + +var ( + // ChatMessagePolicyViolationVerdictDetailsTypesPNone is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVNone + ChatMessagePolicyViolationVerdictDetailsTypesPNone = &_ChatMessagePolicyViolationVerdictDetailsTypesPNone + // ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride + ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride + // ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification + ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification + // ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification + ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification +) + +var ( + _ChatMessagePolicyViolationVerdictDetailsTypesPNone = ChatMessagePolicyViolationVerdictDetailsTypesVNone + _ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride = ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride + _ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification = ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification + _ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification = ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification +) + +// ChatMessageType undocumented +type ChatMessageType string + +const ( + // ChatMessageTypeVMessage undocumented + ChatMessageTypeVMessage ChatMessageType = "message" + // ChatMessageTypeVChatEvent undocumented + ChatMessageTypeVChatEvent ChatMessageType = "chatEvent" + // ChatMessageTypeVTyping undocumented + ChatMessageTypeVTyping ChatMessageType = "typing" +) + +var ( + // ChatMessageTypePMessage is a pointer to ChatMessageTypeVMessage + ChatMessageTypePMessage = &_ChatMessageTypePMessage + // ChatMessageTypePChatEvent is a pointer to ChatMessageTypeVChatEvent + ChatMessageTypePChatEvent = &_ChatMessageTypePChatEvent + // ChatMessageTypePTyping is a pointer to ChatMessageTypeVTyping + ChatMessageTypePTyping = &_ChatMessageTypePTyping +) + +var ( + _ChatMessageTypePMessage = ChatMessageTypeVMessage + _ChatMessageTypePChatEvent = ChatMessageTypeVChatEvent + _ChatMessageTypePTyping = ChatMessageTypeVTyping +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go new file mode 100644 index 00000000..7c870975 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ClonableTeamParts undocumented +type ClonableTeamParts string + +const ( + // ClonableTeamPartsVApps undocumented + ClonableTeamPartsVApps ClonableTeamParts = "apps" + // ClonableTeamPartsVTabs undocumented + ClonableTeamPartsVTabs ClonableTeamParts = "tabs" + // ClonableTeamPartsVSettings undocumented + ClonableTeamPartsVSettings ClonableTeamParts = "settings" + // ClonableTeamPartsVChannels undocumented + ClonableTeamPartsVChannels ClonableTeamParts = "channels" + // ClonableTeamPartsVMembers undocumented + ClonableTeamPartsVMembers ClonableTeamParts = "members" +) + +var ( + // ClonableTeamPartsPApps is a pointer to ClonableTeamPartsVApps + ClonableTeamPartsPApps = &_ClonableTeamPartsPApps + // ClonableTeamPartsPTabs is a pointer to ClonableTeamPartsVTabs + ClonableTeamPartsPTabs = &_ClonableTeamPartsPTabs + // ClonableTeamPartsPSettings is a pointer to ClonableTeamPartsVSettings + ClonableTeamPartsPSettings = &_ClonableTeamPartsPSettings + // ClonableTeamPartsPChannels is a pointer to ClonableTeamPartsVChannels + ClonableTeamPartsPChannels = &_ClonableTeamPartsPChannels + // ClonableTeamPartsPMembers is a pointer to ClonableTeamPartsVMembers + ClonableTeamPartsPMembers = &_ClonableTeamPartsPMembers +) + +var ( + _ClonableTeamPartsPApps = ClonableTeamPartsVApps + _ClonableTeamPartsPTabs = ClonableTeamPartsVTabs + _ClonableTeamPartsPSettings = ClonableTeamPartsVSettings + _ClonableTeamPartsPChannels = ClonableTeamPartsVChannels + _ClonableTeamPartsPMembers = ClonableTeamPartsVMembers +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go new file mode 100644 index 00000000..3430fe40 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CloudAppSecuritySessionControlType undocumented +type CloudAppSecuritySessionControlType string + +const ( + // CloudAppSecuritySessionControlTypeVMcasConfigured undocumented + CloudAppSecuritySessionControlTypeVMcasConfigured CloudAppSecuritySessionControlType = "mcasConfigured" + // CloudAppSecuritySessionControlTypeVMonitorOnly undocumented + CloudAppSecuritySessionControlTypeVMonitorOnly CloudAppSecuritySessionControlType = "monitorOnly" + // CloudAppSecuritySessionControlTypeVBlockDownloads undocumented + CloudAppSecuritySessionControlTypeVBlockDownloads CloudAppSecuritySessionControlType = "blockDownloads" +) + +var ( + // CloudAppSecuritySessionControlTypePMcasConfigured is a pointer to CloudAppSecuritySessionControlTypeVMcasConfigured + CloudAppSecuritySessionControlTypePMcasConfigured = &_CloudAppSecuritySessionControlTypePMcasConfigured + // CloudAppSecuritySessionControlTypePMonitorOnly is a pointer to CloudAppSecuritySessionControlTypeVMonitorOnly + CloudAppSecuritySessionControlTypePMonitorOnly = &_CloudAppSecuritySessionControlTypePMonitorOnly + // CloudAppSecuritySessionControlTypePBlockDownloads is a pointer to CloudAppSecuritySessionControlTypeVBlockDownloads + CloudAppSecuritySessionControlTypePBlockDownloads = &_CloudAppSecuritySessionControlTypePBlockDownloads +) + +var ( + _CloudAppSecuritySessionControlTypePMcasConfigured = CloudAppSecuritySessionControlTypeVMcasConfigured + _CloudAppSecuritySessionControlTypePMonitorOnly = CloudAppSecuritySessionControlTypeVMonitorOnly + _CloudAppSecuritySessionControlTypePBlockDownloads = CloudAppSecuritySessionControlTypeVBlockDownloads +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go new file mode 100644 index 00000000..b5f6bb5a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CompanyPortalAction undocumented +type CompanyPortalAction string + +const ( + // CompanyPortalActionVUnknown undocumented + CompanyPortalActionVUnknown CompanyPortalAction = "unknown" + // CompanyPortalActionVRemove undocumented + CompanyPortalActionVRemove CompanyPortalAction = "remove" + // CompanyPortalActionVReset undocumented + CompanyPortalActionVReset CompanyPortalAction = "reset" +) + +var ( + // CompanyPortalActionPUnknown is a pointer to CompanyPortalActionVUnknown + CompanyPortalActionPUnknown = &_CompanyPortalActionPUnknown + // CompanyPortalActionPRemove is a pointer to CompanyPortalActionVRemove + CompanyPortalActionPRemove = &_CompanyPortalActionPRemove + // CompanyPortalActionPReset is a pointer to CompanyPortalActionVReset + CompanyPortalActionPReset = &_CompanyPortalActionPReset +) + +var ( + _CompanyPortalActionPUnknown = CompanyPortalActionVUnknown + _CompanyPortalActionPRemove = CompanyPortalActionVRemove + _CompanyPortalActionPReset = CompanyPortalActionVReset +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go new file mode 100644 index 00000000..beb750cf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go @@ -0,0 +1,102 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ComplianceState undocumented +type ComplianceState string + +const ( + // ComplianceStateVUnknown undocumented + ComplianceStateVUnknown ComplianceState = "unknown" + // ComplianceStateVCompliant undocumented + ComplianceStateVCompliant ComplianceState = "compliant" + // ComplianceStateVNoncompliant undocumented + ComplianceStateVNoncompliant ComplianceState = "noncompliant" + // ComplianceStateVConflict undocumented + ComplianceStateVConflict ComplianceState = "conflict" + // ComplianceStateVError undocumented + ComplianceStateVError ComplianceState = "error" + // ComplianceStateVInGracePeriod undocumented + ComplianceStateVInGracePeriod ComplianceState = "inGracePeriod" + // ComplianceStateVConfigManager undocumented + ComplianceStateVConfigManager ComplianceState = "configManager" +) + +var ( + // ComplianceStatePUnknown is a pointer to ComplianceStateVUnknown + ComplianceStatePUnknown = &_ComplianceStatePUnknown + // ComplianceStatePCompliant is a pointer to ComplianceStateVCompliant + ComplianceStatePCompliant = &_ComplianceStatePCompliant + // ComplianceStatePNoncompliant is a pointer to ComplianceStateVNoncompliant + ComplianceStatePNoncompliant = &_ComplianceStatePNoncompliant + // ComplianceStatePConflict is a pointer to ComplianceStateVConflict + ComplianceStatePConflict = &_ComplianceStatePConflict + // ComplianceStatePError is a pointer to ComplianceStateVError + ComplianceStatePError = &_ComplianceStatePError + // ComplianceStatePInGracePeriod is a pointer to ComplianceStateVInGracePeriod + ComplianceStatePInGracePeriod = &_ComplianceStatePInGracePeriod + // ComplianceStatePConfigManager is a pointer to ComplianceStateVConfigManager + ComplianceStatePConfigManager = &_ComplianceStatePConfigManager +) + +var ( + _ComplianceStatePUnknown = ComplianceStateVUnknown + _ComplianceStatePCompliant = ComplianceStateVCompliant + _ComplianceStatePNoncompliant = ComplianceStateVNoncompliant + _ComplianceStatePConflict = ComplianceStateVConflict + _ComplianceStatePError = ComplianceStateVError + _ComplianceStatePInGracePeriod = ComplianceStateVInGracePeriod + _ComplianceStatePConfigManager = ComplianceStateVConfigManager +) + +// ComplianceStatus undocumented +type ComplianceStatus string + +const ( + // ComplianceStatusVUnknown undocumented + ComplianceStatusVUnknown ComplianceStatus = "unknown" + // ComplianceStatusVNotApplicable undocumented + ComplianceStatusVNotApplicable ComplianceStatus = "notApplicable" + // ComplianceStatusVCompliant undocumented + ComplianceStatusVCompliant ComplianceStatus = "compliant" + // ComplianceStatusVRemediated undocumented + ComplianceStatusVRemediated ComplianceStatus = "remediated" + // ComplianceStatusVNonCompliant undocumented + ComplianceStatusVNonCompliant ComplianceStatus = "nonCompliant" + // ComplianceStatusVError undocumented + ComplianceStatusVError ComplianceStatus = "error" + // ComplianceStatusVConflict undocumented + ComplianceStatusVConflict ComplianceStatus = "conflict" + // ComplianceStatusVNotAssigned undocumented + ComplianceStatusVNotAssigned ComplianceStatus = "notAssigned" +) + +var ( + // ComplianceStatusPUnknown is a pointer to ComplianceStatusVUnknown + ComplianceStatusPUnknown = &_ComplianceStatusPUnknown + // ComplianceStatusPNotApplicable is a pointer to ComplianceStatusVNotApplicable + ComplianceStatusPNotApplicable = &_ComplianceStatusPNotApplicable + // ComplianceStatusPCompliant is a pointer to ComplianceStatusVCompliant + ComplianceStatusPCompliant = &_ComplianceStatusPCompliant + // ComplianceStatusPRemediated is a pointer to ComplianceStatusVRemediated + ComplianceStatusPRemediated = &_ComplianceStatusPRemediated + // ComplianceStatusPNonCompliant is a pointer to ComplianceStatusVNonCompliant + ComplianceStatusPNonCompliant = &_ComplianceStatusPNonCompliant + // ComplianceStatusPError is a pointer to ComplianceStatusVError + ComplianceStatusPError = &_ComplianceStatusPError + // ComplianceStatusPConflict is a pointer to ComplianceStatusVConflict + ComplianceStatusPConflict = &_ComplianceStatusPConflict + // ComplianceStatusPNotAssigned is a pointer to ComplianceStatusVNotAssigned + ComplianceStatusPNotAssigned = &_ComplianceStatusPNotAssigned +) + +var ( + _ComplianceStatusPUnknown = ComplianceStatusVUnknown + _ComplianceStatusPNotApplicable = ComplianceStatusVNotApplicable + _ComplianceStatusPCompliant = ComplianceStatusVCompliant + _ComplianceStatusPRemediated = ComplianceStatusVRemediated + _ComplianceStatusPNonCompliant = ComplianceStatusVNonCompliant + _ComplianceStatusPError = ComplianceStatusVError + _ComplianceStatusPConflict = ComplianceStatusVConflict + _ComplianceStatusPNotAssigned = ComplianceStatusVNotAssigned +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go new file mode 100644 index 00000000..876c770d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go @@ -0,0 +1,20 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Component undocumented +type Component string + +const ( + // ComponentVLabel undocumented + ComponentVLabel Component = "Label" +) + +var ( + // ComponentPLabel is a pointer to ComponentVLabel + ComponentPLabel = &_ComponentPLabel +) + +var ( + _ComponentPLabel = ComponentVLabel +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go new file mode 100644 index 00000000..bf2f1297 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go @@ -0,0 +1,250 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ConditionalAccessClientApp undocumented +type ConditionalAccessClientApp string + +const ( + // ConditionalAccessClientAppVBrowser undocumented + ConditionalAccessClientAppVBrowser ConditionalAccessClientApp = "browser" + // ConditionalAccessClientAppVModern undocumented + ConditionalAccessClientAppVModern ConditionalAccessClientApp = "modern" + // ConditionalAccessClientAppVEasSupported undocumented + ConditionalAccessClientAppVEasSupported ConditionalAccessClientApp = "easSupported" + // ConditionalAccessClientAppVEasUnsupported undocumented + ConditionalAccessClientAppVEasUnsupported ConditionalAccessClientApp = "easUnsupported" + // ConditionalAccessClientAppVOther undocumented + ConditionalAccessClientAppVOther ConditionalAccessClientApp = "other" +) + +var ( + // ConditionalAccessClientAppPBrowser is a pointer to ConditionalAccessClientAppVBrowser + ConditionalAccessClientAppPBrowser = &_ConditionalAccessClientAppPBrowser + // ConditionalAccessClientAppPModern is a pointer to ConditionalAccessClientAppVModern + ConditionalAccessClientAppPModern = &_ConditionalAccessClientAppPModern + // ConditionalAccessClientAppPEasSupported is a pointer to ConditionalAccessClientAppVEasSupported + ConditionalAccessClientAppPEasSupported = &_ConditionalAccessClientAppPEasSupported + // ConditionalAccessClientAppPEasUnsupported is a pointer to ConditionalAccessClientAppVEasUnsupported + ConditionalAccessClientAppPEasUnsupported = &_ConditionalAccessClientAppPEasUnsupported + // ConditionalAccessClientAppPOther is a pointer to ConditionalAccessClientAppVOther + ConditionalAccessClientAppPOther = &_ConditionalAccessClientAppPOther +) + +var ( + _ConditionalAccessClientAppPBrowser = ConditionalAccessClientAppVBrowser + _ConditionalAccessClientAppPModern = ConditionalAccessClientAppVModern + _ConditionalAccessClientAppPEasSupported = ConditionalAccessClientAppVEasSupported + _ConditionalAccessClientAppPEasUnsupported = ConditionalAccessClientAppVEasUnsupported + _ConditionalAccessClientAppPOther = ConditionalAccessClientAppVOther +) + +// ConditionalAccessConditions undocumented +type ConditionalAccessConditions string + +const ( + // ConditionalAccessConditionsVNone undocumented + ConditionalAccessConditionsVNone ConditionalAccessConditions = "none" + // ConditionalAccessConditionsVApplication undocumented + ConditionalAccessConditionsVApplication ConditionalAccessConditions = "application" + // ConditionalAccessConditionsVUsers undocumented + ConditionalAccessConditionsVUsers ConditionalAccessConditions = "users" + // ConditionalAccessConditionsVDevicePlatform undocumented + ConditionalAccessConditionsVDevicePlatform ConditionalAccessConditions = "devicePlatform" + // ConditionalAccessConditionsVLocation undocumented + ConditionalAccessConditionsVLocation ConditionalAccessConditions = "location" + // ConditionalAccessConditionsVClientType undocumented + ConditionalAccessConditionsVClientType ConditionalAccessConditions = "clientType" + // ConditionalAccessConditionsVSignInRisk undocumented + ConditionalAccessConditionsVSignInRisk ConditionalAccessConditions = "signInRisk" + // ConditionalAccessConditionsVUserRisk undocumented + ConditionalAccessConditionsVUserRisk ConditionalAccessConditions = "userRisk" + // ConditionalAccessConditionsVTime undocumented + ConditionalAccessConditionsVTime ConditionalAccessConditions = "time" + // ConditionalAccessConditionsVDeviceState undocumented + ConditionalAccessConditionsVDeviceState ConditionalAccessConditions = "deviceState" + // ConditionalAccessConditionsVClient undocumented + ConditionalAccessConditionsVClient ConditionalAccessConditions = "client" +) + +var ( + // ConditionalAccessConditionsPNone is a pointer to ConditionalAccessConditionsVNone + ConditionalAccessConditionsPNone = &_ConditionalAccessConditionsPNone + // ConditionalAccessConditionsPApplication is a pointer to ConditionalAccessConditionsVApplication + ConditionalAccessConditionsPApplication = &_ConditionalAccessConditionsPApplication + // ConditionalAccessConditionsPUsers is a pointer to ConditionalAccessConditionsVUsers + ConditionalAccessConditionsPUsers = &_ConditionalAccessConditionsPUsers + // ConditionalAccessConditionsPDevicePlatform is a pointer to ConditionalAccessConditionsVDevicePlatform + ConditionalAccessConditionsPDevicePlatform = &_ConditionalAccessConditionsPDevicePlatform + // ConditionalAccessConditionsPLocation is a pointer to ConditionalAccessConditionsVLocation + ConditionalAccessConditionsPLocation = &_ConditionalAccessConditionsPLocation + // ConditionalAccessConditionsPClientType is a pointer to ConditionalAccessConditionsVClientType + ConditionalAccessConditionsPClientType = &_ConditionalAccessConditionsPClientType + // ConditionalAccessConditionsPSignInRisk is a pointer to ConditionalAccessConditionsVSignInRisk + ConditionalAccessConditionsPSignInRisk = &_ConditionalAccessConditionsPSignInRisk + // ConditionalAccessConditionsPUserRisk is a pointer to ConditionalAccessConditionsVUserRisk + ConditionalAccessConditionsPUserRisk = &_ConditionalAccessConditionsPUserRisk + // ConditionalAccessConditionsPTime is a pointer to ConditionalAccessConditionsVTime + ConditionalAccessConditionsPTime = &_ConditionalAccessConditionsPTime + // ConditionalAccessConditionsPDeviceState is a pointer to ConditionalAccessConditionsVDeviceState + ConditionalAccessConditionsPDeviceState = &_ConditionalAccessConditionsPDeviceState + // ConditionalAccessConditionsPClient is a pointer to ConditionalAccessConditionsVClient + ConditionalAccessConditionsPClient = &_ConditionalAccessConditionsPClient +) + +var ( + _ConditionalAccessConditionsPNone = ConditionalAccessConditionsVNone + _ConditionalAccessConditionsPApplication = ConditionalAccessConditionsVApplication + _ConditionalAccessConditionsPUsers = ConditionalAccessConditionsVUsers + _ConditionalAccessConditionsPDevicePlatform = ConditionalAccessConditionsVDevicePlatform + _ConditionalAccessConditionsPLocation = ConditionalAccessConditionsVLocation + _ConditionalAccessConditionsPClientType = ConditionalAccessConditionsVClientType + _ConditionalAccessConditionsPSignInRisk = ConditionalAccessConditionsVSignInRisk + _ConditionalAccessConditionsPUserRisk = ConditionalAccessConditionsVUserRisk + _ConditionalAccessConditionsPTime = ConditionalAccessConditionsVTime + _ConditionalAccessConditionsPDeviceState = ConditionalAccessConditionsVDeviceState + _ConditionalAccessConditionsPClient = ConditionalAccessConditionsVClient +) + +// ConditionalAccessDevicePlatform undocumented +type ConditionalAccessDevicePlatform string + +const ( + // ConditionalAccessDevicePlatformVAndroid undocumented + ConditionalAccessDevicePlatformVAndroid ConditionalAccessDevicePlatform = "android" + // ConditionalAccessDevicePlatformVIOS undocumented + ConditionalAccessDevicePlatformVIOS ConditionalAccessDevicePlatform = "iOS" + // ConditionalAccessDevicePlatformVWindows undocumented + ConditionalAccessDevicePlatformVWindows ConditionalAccessDevicePlatform = "windows" + // ConditionalAccessDevicePlatformVWindowsPhone undocumented + ConditionalAccessDevicePlatformVWindowsPhone ConditionalAccessDevicePlatform = "windowsPhone" + // ConditionalAccessDevicePlatformVMacOS undocumented + ConditionalAccessDevicePlatformVMacOS ConditionalAccessDevicePlatform = "macOS" + // ConditionalAccessDevicePlatformVAll undocumented + ConditionalAccessDevicePlatformVAll ConditionalAccessDevicePlatform = "all" +) + +var ( + // ConditionalAccessDevicePlatformPAndroid is a pointer to ConditionalAccessDevicePlatformVAndroid + ConditionalAccessDevicePlatformPAndroid = &_ConditionalAccessDevicePlatformPAndroid + // ConditionalAccessDevicePlatformPIOS is a pointer to ConditionalAccessDevicePlatformVIOS + ConditionalAccessDevicePlatformPIOS = &_ConditionalAccessDevicePlatformPIOS + // ConditionalAccessDevicePlatformPWindows is a pointer to ConditionalAccessDevicePlatformVWindows + ConditionalAccessDevicePlatformPWindows = &_ConditionalAccessDevicePlatformPWindows + // ConditionalAccessDevicePlatformPWindowsPhone is a pointer to ConditionalAccessDevicePlatformVWindowsPhone + ConditionalAccessDevicePlatformPWindowsPhone = &_ConditionalAccessDevicePlatformPWindowsPhone + // ConditionalAccessDevicePlatformPMacOS is a pointer to ConditionalAccessDevicePlatformVMacOS + ConditionalAccessDevicePlatformPMacOS = &_ConditionalAccessDevicePlatformPMacOS + // ConditionalAccessDevicePlatformPAll is a pointer to ConditionalAccessDevicePlatformVAll + ConditionalAccessDevicePlatformPAll = &_ConditionalAccessDevicePlatformPAll +) + +var ( + _ConditionalAccessDevicePlatformPAndroid = ConditionalAccessDevicePlatformVAndroid + _ConditionalAccessDevicePlatformPIOS = ConditionalAccessDevicePlatformVIOS + _ConditionalAccessDevicePlatformPWindows = ConditionalAccessDevicePlatformVWindows + _ConditionalAccessDevicePlatformPWindowsPhone = ConditionalAccessDevicePlatformVWindowsPhone + _ConditionalAccessDevicePlatformPMacOS = ConditionalAccessDevicePlatformVMacOS + _ConditionalAccessDevicePlatformPAll = ConditionalAccessDevicePlatformVAll +) + +// ConditionalAccessGrantControl undocumented +type ConditionalAccessGrantControl string + +const ( + // ConditionalAccessGrantControlVBlock undocumented + ConditionalAccessGrantControlVBlock ConditionalAccessGrantControl = "block" + // ConditionalAccessGrantControlVMFA undocumented + ConditionalAccessGrantControlVMFA ConditionalAccessGrantControl = "mfa" + // ConditionalAccessGrantControlVCompliantDevice undocumented + ConditionalAccessGrantControlVCompliantDevice ConditionalAccessGrantControl = "compliantDevice" + // ConditionalAccessGrantControlVDomainJoinedDevice undocumented + ConditionalAccessGrantControlVDomainJoinedDevice ConditionalAccessGrantControl = "domainJoinedDevice" + // ConditionalAccessGrantControlVApprovedApplication undocumented + ConditionalAccessGrantControlVApprovedApplication ConditionalAccessGrantControl = "approvedApplication" + // ConditionalAccessGrantControlVCompliantApplication undocumented + ConditionalAccessGrantControlVCompliantApplication ConditionalAccessGrantControl = "compliantApplication" +) + +var ( + // ConditionalAccessGrantControlPBlock is a pointer to ConditionalAccessGrantControlVBlock + ConditionalAccessGrantControlPBlock = &_ConditionalAccessGrantControlPBlock + // ConditionalAccessGrantControlPMFA is a pointer to ConditionalAccessGrantControlVMFA + ConditionalAccessGrantControlPMFA = &_ConditionalAccessGrantControlPMFA + // ConditionalAccessGrantControlPCompliantDevice is a pointer to ConditionalAccessGrantControlVCompliantDevice + ConditionalAccessGrantControlPCompliantDevice = &_ConditionalAccessGrantControlPCompliantDevice + // ConditionalAccessGrantControlPDomainJoinedDevice is a pointer to ConditionalAccessGrantControlVDomainJoinedDevice + ConditionalAccessGrantControlPDomainJoinedDevice = &_ConditionalAccessGrantControlPDomainJoinedDevice + // ConditionalAccessGrantControlPApprovedApplication is a pointer to ConditionalAccessGrantControlVApprovedApplication + ConditionalAccessGrantControlPApprovedApplication = &_ConditionalAccessGrantControlPApprovedApplication + // ConditionalAccessGrantControlPCompliantApplication is a pointer to ConditionalAccessGrantControlVCompliantApplication + ConditionalAccessGrantControlPCompliantApplication = &_ConditionalAccessGrantControlPCompliantApplication +) + +var ( + _ConditionalAccessGrantControlPBlock = ConditionalAccessGrantControlVBlock + _ConditionalAccessGrantControlPMFA = ConditionalAccessGrantControlVMFA + _ConditionalAccessGrantControlPCompliantDevice = ConditionalAccessGrantControlVCompliantDevice + _ConditionalAccessGrantControlPDomainJoinedDevice = ConditionalAccessGrantControlVDomainJoinedDevice + _ConditionalAccessGrantControlPApprovedApplication = ConditionalAccessGrantControlVApprovedApplication + _ConditionalAccessGrantControlPCompliantApplication = ConditionalAccessGrantControlVCompliantApplication +) + +// ConditionalAccessPolicyState undocumented +type ConditionalAccessPolicyState string + +const ( + // ConditionalAccessPolicyStateVEnabled undocumented + ConditionalAccessPolicyStateVEnabled ConditionalAccessPolicyState = "enabled" + // ConditionalAccessPolicyStateVDisabled undocumented + ConditionalAccessPolicyStateVDisabled ConditionalAccessPolicyState = "disabled" + // ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced undocumented + ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced ConditionalAccessPolicyState = "enabledForReportingButNotEnforced" +) + +var ( + // ConditionalAccessPolicyStatePEnabled is a pointer to ConditionalAccessPolicyStateVEnabled + ConditionalAccessPolicyStatePEnabled = &_ConditionalAccessPolicyStatePEnabled + // ConditionalAccessPolicyStatePDisabled is a pointer to ConditionalAccessPolicyStateVDisabled + ConditionalAccessPolicyStatePDisabled = &_ConditionalAccessPolicyStatePDisabled + // ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced is a pointer to ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced + ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced = &_ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced +) + +var ( + _ConditionalAccessPolicyStatePEnabled = ConditionalAccessPolicyStateVEnabled + _ConditionalAccessPolicyStatePDisabled = ConditionalAccessPolicyStateVDisabled + _ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced = ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced +) + +// ConditionalAccessStatus undocumented +type ConditionalAccessStatus string + +const ( + // ConditionalAccessStatusVSuccess undocumented + ConditionalAccessStatusVSuccess ConditionalAccessStatus = "success" + // ConditionalAccessStatusVFailure undocumented + ConditionalAccessStatusVFailure ConditionalAccessStatus = "failure" + // ConditionalAccessStatusVNotApplied undocumented + ConditionalAccessStatusVNotApplied ConditionalAccessStatus = "notApplied" + // ConditionalAccessStatusVUnknownFutureValue undocumented + ConditionalAccessStatusVUnknownFutureValue ConditionalAccessStatus = "unknownFutureValue" +) + +var ( + // ConditionalAccessStatusPSuccess is a pointer to ConditionalAccessStatusVSuccess + ConditionalAccessStatusPSuccess = &_ConditionalAccessStatusPSuccess + // ConditionalAccessStatusPFailure is a pointer to ConditionalAccessStatusVFailure + ConditionalAccessStatusPFailure = &_ConditionalAccessStatusPFailure + // ConditionalAccessStatusPNotApplied is a pointer to ConditionalAccessStatusVNotApplied + ConditionalAccessStatusPNotApplied = &_ConditionalAccessStatusPNotApplied + // ConditionalAccessStatusPUnknownFutureValue is a pointer to ConditionalAccessStatusVUnknownFutureValue + ConditionalAccessStatusPUnknownFutureValue = &_ConditionalAccessStatusPUnknownFutureValue +) + +var ( + _ConditionalAccessStatusPSuccess = ConditionalAccessStatusVSuccess + _ConditionalAccessStatusPFailure = ConditionalAccessStatusVFailure + _ConditionalAccessStatusPNotApplied = ConditionalAccessStatusVNotApplied + _ConditionalAccessStatusPUnknownFutureValue = ConditionalAccessStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go new file mode 100644 index 00000000..65d48f57 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ConfigurationManagerActionType undocumented +type ConfigurationManagerActionType string + +const ( + // ConfigurationManagerActionTypeVRefreshMachinePolicy undocumented + ConfigurationManagerActionTypeVRefreshMachinePolicy ConfigurationManagerActionType = "refreshMachinePolicy" + // ConfigurationManagerActionTypeVRefreshUserPolicy undocumented + ConfigurationManagerActionTypeVRefreshUserPolicy ConfigurationManagerActionType = "refreshUserPolicy" + // ConfigurationManagerActionTypeVWakeUpClient undocumented + ConfigurationManagerActionTypeVWakeUpClient ConfigurationManagerActionType = "wakeUpClient" + // ConfigurationManagerActionTypeVAppEvaluation undocumented + ConfigurationManagerActionTypeVAppEvaluation ConfigurationManagerActionType = "appEvaluation" +) + +var ( + // ConfigurationManagerActionTypePRefreshMachinePolicy is a pointer to ConfigurationManagerActionTypeVRefreshMachinePolicy + ConfigurationManagerActionTypePRefreshMachinePolicy = &_ConfigurationManagerActionTypePRefreshMachinePolicy + // ConfigurationManagerActionTypePRefreshUserPolicy is a pointer to ConfigurationManagerActionTypeVRefreshUserPolicy + ConfigurationManagerActionTypePRefreshUserPolicy = &_ConfigurationManagerActionTypePRefreshUserPolicy + // ConfigurationManagerActionTypePWakeUpClient is a pointer to ConfigurationManagerActionTypeVWakeUpClient + ConfigurationManagerActionTypePWakeUpClient = &_ConfigurationManagerActionTypePWakeUpClient + // ConfigurationManagerActionTypePAppEvaluation is a pointer to ConfigurationManagerActionTypeVAppEvaluation + ConfigurationManagerActionTypePAppEvaluation = &_ConfigurationManagerActionTypePAppEvaluation +) + +var ( + _ConfigurationManagerActionTypePRefreshMachinePolicy = ConfigurationManagerActionTypeVRefreshMachinePolicy + _ConfigurationManagerActionTypePRefreshUserPolicy = ConfigurationManagerActionTypeVRefreshUserPolicy + _ConfigurationManagerActionTypePWakeUpClient = ConfigurationManagerActionTypeVWakeUpClient + _ConfigurationManagerActionTypePAppEvaluation = ConfigurationManagerActionTypeVAppEvaluation +) + +// ConfigurationManagerClientState undocumented +type ConfigurationManagerClientState string + +const ( + // ConfigurationManagerClientStateVUnknown undocumented + ConfigurationManagerClientStateVUnknown ConfigurationManagerClientState = "unknown" + // ConfigurationManagerClientStateVInstalled undocumented + ConfigurationManagerClientStateVInstalled ConfigurationManagerClientState = "installed" + // ConfigurationManagerClientStateVHealthy undocumented + ConfigurationManagerClientStateVHealthy ConfigurationManagerClientState = "healthy" + // ConfigurationManagerClientStateVInstallFailed undocumented + ConfigurationManagerClientStateVInstallFailed ConfigurationManagerClientState = "installFailed" + // ConfigurationManagerClientStateVUpdateFailed undocumented + ConfigurationManagerClientStateVUpdateFailed ConfigurationManagerClientState = "updateFailed" + // ConfigurationManagerClientStateVCommunicationError undocumented + ConfigurationManagerClientStateVCommunicationError ConfigurationManagerClientState = "communicationError" +) + +var ( + // ConfigurationManagerClientStatePUnknown is a pointer to ConfigurationManagerClientStateVUnknown + ConfigurationManagerClientStatePUnknown = &_ConfigurationManagerClientStatePUnknown + // ConfigurationManagerClientStatePInstalled is a pointer to ConfigurationManagerClientStateVInstalled + ConfigurationManagerClientStatePInstalled = &_ConfigurationManagerClientStatePInstalled + // ConfigurationManagerClientStatePHealthy is a pointer to ConfigurationManagerClientStateVHealthy + ConfigurationManagerClientStatePHealthy = &_ConfigurationManagerClientStatePHealthy + // ConfigurationManagerClientStatePInstallFailed is a pointer to ConfigurationManagerClientStateVInstallFailed + ConfigurationManagerClientStatePInstallFailed = &_ConfigurationManagerClientStatePInstallFailed + // ConfigurationManagerClientStatePUpdateFailed is a pointer to ConfigurationManagerClientStateVUpdateFailed + ConfigurationManagerClientStatePUpdateFailed = &_ConfigurationManagerClientStatePUpdateFailed + // ConfigurationManagerClientStatePCommunicationError is a pointer to ConfigurationManagerClientStateVCommunicationError + ConfigurationManagerClientStatePCommunicationError = &_ConfigurationManagerClientStatePCommunicationError +) + +var ( + _ConfigurationManagerClientStatePUnknown = ConfigurationManagerClientStateVUnknown + _ConfigurationManagerClientStatePInstalled = ConfigurationManagerClientStateVInstalled + _ConfigurationManagerClientStatePHealthy = ConfigurationManagerClientStateVHealthy + _ConfigurationManagerClientStatePInstallFailed = ConfigurationManagerClientStateVInstallFailed + _ConfigurationManagerClientStatePUpdateFailed = ConfigurationManagerClientStateVUpdateFailed + _ConfigurationManagerClientStatePCommunicationError = ConfigurationManagerClientStateVCommunicationError +) + +// ConfigurationUsage undocumented +type ConfigurationUsage string + +const ( + // ConfigurationUsageVBlocked undocumented + ConfigurationUsageVBlocked ConfigurationUsage = "blocked" + // ConfigurationUsageVRequired undocumented + ConfigurationUsageVRequired ConfigurationUsage = "required" + // ConfigurationUsageVAllowed undocumented + ConfigurationUsageVAllowed ConfigurationUsage = "allowed" +) + +var ( + // ConfigurationUsagePBlocked is a pointer to ConfigurationUsageVBlocked + ConfigurationUsagePBlocked = &_ConfigurationUsagePBlocked + // ConfigurationUsagePRequired is a pointer to ConfigurationUsageVRequired + ConfigurationUsagePRequired = &_ConfigurationUsagePRequired + // ConfigurationUsagePAllowed is a pointer to ConfigurationUsageVAllowed + ConfigurationUsagePAllowed = &_ConfigurationUsagePAllowed +) + +var ( + _ConfigurationUsagePBlocked = ConfigurationUsageVBlocked + _ConfigurationUsagePRequired = ConfigurationUsageVRequired + _ConfigurationUsagePAllowed = ConfigurationUsageVAllowed +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go new file mode 100644 index 00000000..0c448c90 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go @@ -0,0 +1,109 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ConnectionDirection undocumented +type ConnectionDirection string + +const ( + // ConnectionDirectionVUnknown undocumented + ConnectionDirectionVUnknown ConnectionDirection = "unknown" + // ConnectionDirectionVInbound undocumented + ConnectionDirectionVInbound ConnectionDirection = "inbound" + // ConnectionDirectionVOutbound undocumented + ConnectionDirectionVOutbound ConnectionDirection = "outbound" + // ConnectionDirectionVUnknownFutureValue undocumented + ConnectionDirectionVUnknownFutureValue ConnectionDirection = "unknownFutureValue" +) + +var ( + // ConnectionDirectionPUnknown is a pointer to ConnectionDirectionVUnknown + ConnectionDirectionPUnknown = &_ConnectionDirectionPUnknown + // ConnectionDirectionPInbound is a pointer to ConnectionDirectionVInbound + ConnectionDirectionPInbound = &_ConnectionDirectionPInbound + // ConnectionDirectionPOutbound is a pointer to ConnectionDirectionVOutbound + ConnectionDirectionPOutbound = &_ConnectionDirectionPOutbound + // ConnectionDirectionPUnknownFutureValue is a pointer to ConnectionDirectionVUnknownFutureValue + ConnectionDirectionPUnknownFutureValue = &_ConnectionDirectionPUnknownFutureValue +) + +var ( + _ConnectionDirectionPUnknown = ConnectionDirectionVUnknown + _ConnectionDirectionPInbound = ConnectionDirectionVInbound + _ConnectionDirectionPOutbound = ConnectionDirectionVOutbound + _ConnectionDirectionPUnknownFutureValue = ConnectionDirectionVUnknownFutureValue +) + +// ConnectionOperationStatus undocumented +type ConnectionOperationStatus string + +const ( + // ConnectionOperationStatusVUnspecified undocumented + ConnectionOperationStatusVUnspecified ConnectionOperationStatus = "unspecified" + // ConnectionOperationStatusVInprogress undocumented + ConnectionOperationStatusVInprogress ConnectionOperationStatus = "inprogress" + // ConnectionOperationStatusVCompleted undocumented + ConnectionOperationStatusVCompleted ConnectionOperationStatus = "completed" + // ConnectionOperationStatusVFailed undocumented + ConnectionOperationStatusVFailed ConnectionOperationStatus = "failed" +) + +var ( + // ConnectionOperationStatusPUnspecified is a pointer to ConnectionOperationStatusVUnspecified + ConnectionOperationStatusPUnspecified = &_ConnectionOperationStatusPUnspecified + // ConnectionOperationStatusPInprogress is a pointer to ConnectionOperationStatusVInprogress + ConnectionOperationStatusPInprogress = &_ConnectionOperationStatusPInprogress + // ConnectionOperationStatusPCompleted is a pointer to ConnectionOperationStatusVCompleted + ConnectionOperationStatusPCompleted = &_ConnectionOperationStatusPCompleted + // ConnectionOperationStatusPFailed is a pointer to ConnectionOperationStatusVFailed + ConnectionOperationStatusPFailed = &_ConnectionOperationStatusPFailed +) + +var ( + _ConnectionOperationStatusPUnspecified = ConnectionOperationStatusVUnspecified + _ConnectionOperationStatusPInprogress = ConnectionOperationStatusVInprogress + _ConnectionOperationStatusPCompleted = ConnectionOperationStatusVCompleted + _ConnectionOperationStatusPFailed = ConnectionOperationStatusVFailed +) + +// ConnectionStatus undocumented +type ConnectionStatus string + +const ( + // ConnectionStatusVUnknown undocumented + ConnectionStatusVUnknown ConnectionStatus = "unknown" + // ConnectionStatusVAttempted undocumented + ConnectionStatusVAttempted ConnectionStatus = "attempted" + // ConnectionStatusVSucceeded undocumented + ConnectionStatusVSucceeded ConnectionStatus = "succeeded" + // ConnectionStatusVBlocked undocumented + ConnectionStatusVBlocked ConnectionStatus = "blocked" + // ConnectionStatusVFailed undocumented + ConnectionStatusVFailed ConnectionStatus = "failed" + // ConnectionStatusVUnknownFutureValue undocumented + ConnectionStatusVUnknownFutureValue ConnectionStatus = "unknownFutureValue" +) + +var ( + // ConnectionStatusPUnknown is a pointer to ConnectionStatusVUnknown + ConnectionStatusPUnknown = &_ConnectionStatusPUnknown + // ConnectionStatusPAttempted is a pointer to ConnectionStatusVAttempted + ConnectionStatusPAttempted = &_ConnectionStatusPAttempted + // ConnectionStatusPSucceeded is a pointer to ConnectionStatusVSucceeded + ConnectionStatusPSucceeded = &_ConnectionStatusPSucceeded + // ConnectionStatusPBlocked is a pointer to ConnectionStatusVBlocked + ConnectionStatusPBlocked = &_ConnectionStatusPBlocked + // ConnectionStatusPFailed is a pointer to ConnectionStatusVFailed + ConnectionStatusPFailed = &_ConnectionStatusPFailed + // ConnectionStatusPUnknownFutureValue is a pointer to ConnectionStatusVUnknownFutureValue + ConnectionStatusPUnknownFutureValue = &_ConnectionStatusPUnknownFutureValue +) + +var ( + _ConnectionStatusPUnknown = ConnectionStatusVUnknown + _ConnectionStatusPAttempted = ConnectionStatusVAttempted + _ConnectionStatusPSucceeded = ConnectionStatusVSucceeded + _ConnectionStatusPBlocked = ConnectionStatusVBlocked + _ConnectionStatusPFailed = ConnectionStatusVFailed + _ConnectionStatusPUnknownFutureValue = ConnectionStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go new file mode 100644 index 00000000..025099eb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ContactRelationship undocumented +type ContactRelationship string + +const ( + // ContactRelationshipVParent undocumented + ContactRelationshipVParent ContactRelationship = "parent" + // ContactRelationshipVRelative undocumented + ContactRelationshipVRelative ContactRelationship = "relative" + // ContactRelationshipVAide undocumented + ContactRelationshipVAide ContactRelationship = "aide" + // ContactRelationshipVDoctor undocumented + ContactRelationshipVDoctor ContactRelationship = "doctor" + // ContactRelationshipVGuardian undocumented + ContactRelationshipVGuardian ContactRelationship = "guardian" + // ContactRelationshipVChild undocumented + ContactRelationshipVChild ContactRelationship = "child" + // ContactRelationshipVOther undocumented + ContactRelationshipVOther ContactRelationship = "other" + // ContactRelationshipVUnknownFutureValue undocumented + ContactRelationshipVUnknownFutureValue ContactRelationship = "unknownFutureValue" +) + +var ( + // ContactRelationshipPParent is a pointer to ContactRelationshipVParent + ContactRelationshipPParent = &_ContactRelationshipPParent + // ContactRelationshipPRelative is a pointer to ContactRelationshipVRelative + ContactRelationshipPRelative = &_ContactRelationshipPRelative + // ContactRelationshipPAide is a pointer to ContactRelationshipVAide + ContactRelationshipPAide = &_ContactRelationshipPAide + // ContactRelationshipPDoctor is a pointer to ContactRelationshipVDoctor + ContactRelationshipPDoctor = &_ContactRelationshipPDoctor + // ContactRelationshipPGuardian is a pointer to ContactRelationshipVGuardian + ContactRelationshipPGuardian = &_ContactRelationshipPGuardian + // ContactRelationshipPChild is a pointer to ContactRelationshipVChild + ContactRelationshipPChild = &_ContactRelationshipPChild + // ContactRelationshipPOther is a pointer to ContactRelationshipVOther + ContactRelationshipPOther = &_ContactRelationshipPOther + // ContactRelationshipPUnknownFutureValue is a pointer to ContactRelationshipVUnknownFutureValue + ContactRelationshipPUnknownFutureValue = &_ContactRelationshipPUnknownFutureValue +) + +var ( + _ContactRelationshipPParent = ContactRelationshipVParent + _ContactRelationshipPRelative = ContactRelationshipVRelative + _ContactRelationshipPAide = ContactRelationshipVAide + _ContactRelationshipPDoctor = ContactRelationshipVDoctor + _ContactRelationshipPGuardian = ContactRelationshipVGuardian + _ContactRelationshipPChild = ContactRelationshipVChild + _ContactRelationshipPOther = ContactRelationshipVOther + _ContactRelationshipPUnknownFutureValue = ContactRelationshipVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go new file mode 100644 index 00000000..246edcc3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ContentAlignment undocumented +type ContentAlignment string + +const ( + // ContentAlignmentVLeft undocumented + ContentAlignmentVLeft ContentAlignment = "left" + // ContentAlignmentVRight undocumented + ContentAlignmentVRight ContentAlignment = "right" + // ContentAlignmentVCenter undocumented + ContentAlignmentVCenter ContentAlignment = "center" +) + +var ( + // ContentAlignmentPLeft is a pointer to ContentAlignmentVLeft + ContentAlignmentPLeft = &_ContentAlignmentPLeft + // ContentAlignmentPRight is a pointer to ContentAlignmentVRight + ContentAlignmentPRight = &_ContentAlignmentPRight + // ContentAlignmentPCenter is a pointer to ContentAlignmentVCenter + ContentAlignmentPCenter = &_ContentAlignmentPCenter +) + +var ( + _ContentAlignmentPLeft = ContentAlignmentVLeft + _ContentAlignmentPRight = ContentAlignmentVRight + _ContentAlignmentPCenter = ContentAlignmentVCenter +) + +// ContentFormat undocumented +type ContentFormat string + +const ( + // ContentFormatVDefault undocumented + ContentFormatVDefault ContentFormat = "default" + // ContentFormatVEmail undocumented + ContentFormatVEmail ContentFormat = "email" +) + +var ( + // ContentFormatPDefault is a pointer to ContentFormatVDefault + ContentFormatPDefault = &_ContentFormatPDefault + // ContentFormatPEmail is a pointer to ContentFormatVEmail + ContentFormatPEmail = &_ContentFormatPEmail +) + +var ( + _ContentFormatPDefault = ContentFormatVDefault + _ContentFormatPEmail = ContentFormatVEmail +) + +// ContentState undocumented +type ContentState string + +const ( + // ContentStateVRest undocumented + ContentStateVRest ContentState = "rest" + // ContentStateVMotion undocumented + ContentStateVMotion ContentState = "motion" + // ContentStateVUse undocumented + ContentStateVUse ContentState = "use" +) + +var ( + // ContentStatePRest is a pointer to ContentStateVRest + ContentStatePRest = &_ContentStatePRest + // ContentStatePMotion is a pointer to ContentStateVMotion + ContentStatePMotion = &_ContentStatePMotion + // ContentStatePUse is a pointer to ContentStateVUse + ContentStatePUse = &_ContentStatePUse +) + +var ( + _ContentStatePRest = ContentStateVRest + _ContentStatePMotion = ContentStateVMotion + _ContentStatePUse = ContentStateVUse +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go new file mode 100644 index 00000000..5e7dd1a3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ConversationIdentityType undocumented +type ConversationIdentityType string + +const ( + // ConversationIdentityTypeVTeam undocumented + ConversationIdentityTypeVTeam ConversationIdentityType = "team" + // ConversationIdentityTypeVChannel undocumented + ConversationIdentityTypeVChannel ConversationIdentityType = "channel" +) + +var ( + // ConversationIdentityTypePTeam is a pointer to ConversationIdentityTypeVTeam + ConversationIdentityTypePTeam = &_ConversationIdentityTypePTeam + // ConversationIdentityTypePChannel is a pointer to ConversationIdentityTypeVChannel + ConversationIdentityTypePChannel = &_ConversationIdentityTypePChannel +) + +var ( + _ConversationIdentityTypePTeam = ConversationIdentityTypeVTeam + _ConversationIdentityTypePChannel = ConversationIdentityTypeVChannel +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go new file mode 100644 index 00000000..b9916bf4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DMAGuardDeviceEnumerationPolicyType undocumented +type DMAGuardDeviceEnumerationPolicyType string + +const ( + // DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault undocumented + DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault DMAGuardDeviceEnumerationPolicyType = "deviceDefault" + // DMAGuardDeviceEnumerationPolicyTypeVBlockAll undocumented + DMAGuardDeviceEnumerationPolicyTypeVBlockAll DMAGuardDeviceEnumerationPolicyType = "blockAll" + // DMAGuardDeviceEnumerationPolicyTypeVAllowAll undocumented + DMAGuardDeviceEnumerationPolicyTypeVAllowAll DMAGuardDeviceEnumerationPolicyType = "allowAll" +) + +var ( + // DMAGuardDeviceEnumerationPolicyTypePDeviceDefault is a pointer to DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault + DMAGuardDeviceEnumerationPolicyTypePDeviceDefault = &_DMAGuardDeviceEnumerationPolicyTypePDeviceDefault + // DMAGuardDeviceEnumerationPolicyTypePBlockAll is a pointer to DMAGuardDeviceEnumerationPolicyTypeVBlockAll + DMAGuardDeviceEnumerationPolicyTypePBlockAll = &_DMAGuardDeviceEnumerationPolicyTypePBlockAll + // DMAGuardDeviceEnumerationPolicyTypePAllowAll is a pointer to DMAGuardDeviceEnumerationPolicyTypeVAllowAll + DMAGuardDeviceEnumerationPolicyTypePAllowAll = &_DMAGuardDeviceEnumerationPolicyTypePAllowAll +) + +var ( + _DMAGuardDeviceEnumerationPolicyTypePDeviceDefault = DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault + _DMAGuardDeviceEnumerationPolicyTypePBlockAll = DMAGuardDeviceEnumerationPolicyTypeVBlockAll + _DMAGuardDeviceEnumerationPolicyTypePAllowAll = DMAGuardDeviceEnumerationPolicyTypeVAllowAll +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go new file mode 100644 index 00000000..cd1639ff --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DataPolicyOperationStatus undocumented +type DataPolicyOperationStatus string + +const ( + // DataPolicyOperationStatusVNotStarted undocumented + DataPolicyOperationStatusVNotStarted DataPolicyOperationStatus = "notStarted" + // DataPolicyOperationStatusVRunning undocumented + DataPolicyOperationStatusVRunning DataPolicyOperationStatus = "running" + // DataPolicyOperationStatusVComplete undocumented + DataPolicyOperationStatusVComplete DataPolicyOperationStatus = "complete" + // DataPolicyOperationStatusVFailed undocumented + DataPolicyOperationStatusVFailed DataPolicyOperationStatus = "failed" + // DataPolicyOperationStatusVUnknownFutureValue undocumented + DataPolicyOperationStatusVUnknownFutureValue DataPolicyOperationStatus = "unknownFutureValue" +) + +var ( + // DataPolicyOperationStatusPNotStarted is a pointer to DataPolicyOperationStatusVNotStarted + DataPolicyOperationStatusPNotStarted = &_DataPolicyOperationStatusPNotStarted + // DataPolicyOperationStatusPRunning is a pointer to DataPolicyOperationStatusVRunning + DataPolicyOperationStatusPRunning = &_DataPolicyOperationStatusPRunning + // DataPolicyOperationStatusPComplete is a pointer to DataPolicyOperationStatusVComplete + DataPolicyOperationStatusPComplete = &_DataPolicyOperationStatusPComplete + // DataPolicyOperationStatusPFailed is a pointer to DataPolicyOperationStatusVFailed + DataPolicyOperationStatusPFailed = &_DataPolicyOperationStatusPFailed + // DataPolicyOperationStatusPUnknownFutureValue is a pointer to DataPolicyOperationStatusVUnknownFutureValue + DataPolicyOperationStatusPUnknownFutureValue = &_DataPolicyOperationStatusPUnknownFutureValue +) + +var ( + _DataPolicyOperationStatusPNotStarted = DataPolicyOperationStatusVNotStarted + _DataPolicyOperationStatusPRunning = DataPolicyOperationStatusVRunning + _DataPolicyOperationStatusPComplete = DataPolicyOperationStatusVComplete + _DataPolicyOperationStatusPFailed = DataPolicyOperationStatusVFailed + _DataPolicyOperationStatusPUnknownFutureValue = DataPolicyOperationStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go new file mode 100644 index 00000000..1ba48eaf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DayOfWeek undocumented +type DayOfWeek string + +const ( + // DayOfWeekVSunday undocumented + DayOfWeekVSunday DayOfWeek = "sunday" + // DayOfWeekVMonday undocumented + DayOfWeekVMonday DayOfWeek = "monday" + // DayOfWeekVTuesday undocumented + DayOfWeekVTuesday DayOfWeek = "tuesday" + // DayOfWeekVWednesday undocumented + DayOfWeekVWednesday DayOfWeek = "wednesday" + // DayOfWeekVThursday undocumented + DayOfWeekVThursday DayOfWeek = "thursday" + // DayOfWeekVFriday undocumented + DayOfWeekVFriday DayOfWeek = "friday" + // DayOfWeekVSaturday undocumented + DayOfWeekVSaturday DayOfWeek = "saturday" +) + +var ( + // DayOfWeekPSunday is a pointer to DayOfWeekVSunday + DayOfWeekPSunday = &_DayOfWeekPSunday + // DayOfWeekPMonday is a pointer to DayOfWeekVMonday + DayOfWeekPMonday = &_DayOfWeekPMonday + // DayOfWeekPTuesday is a pointer to DayOfWeekVTuesday + DayOfWeekPTuesday = &_DayOfWeekPTuesday + // DayOfWeekPWednesday is a pointer to DayOfWeekVWednesday + DayOfWeekPWednesday = &_DayOfWeekPWednesday + // DayOfWeekPThursday is a pointer to DayOfWeekVThursday + DayOfWeekPThursday = &_DayOfWeekPThursday + // DayOfWeekPFriday is a pointer to DayOfWeekVFriday + DayOfWeekPFriday = &_DayOfWeekPFriday + // DayOfWeekPSaturday is a pointer to DayOfWeekVSaturday + DayOfWeekPSaturday = &_DayOfWeekPSaturday +) + +var ( + _DayOfWeekPSunday = DayOfWeekVSunday + _DayOfWeekPMonday = DayOfWeekVMonday + _DayOfWeekPTuesday = DayOfWeekVTuesday + _DayOfWeekPWednesday = DayOfWeekVWednesday + _DayOfWeekPThursday = DayOfWeekVThursday + _DayOfWeekPFriday = DayOfWeekVFriday + _DayOfWeekPSaturday = DayOfWeekVSaturday +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go new file mode 100644 index 00000000..1fc3d291 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go @@ -0,0 +1,360 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DefenderAttackSurfaceType undocumented +type DefenderAttackSurfaceType string + +const ( + // DefenderAttackSurfaceTypeVUserDefined undocumented + DefenderAttackSurfaceTypeVUserDefined DefenderAttackSurfaceType = "userDefined" + // DefenderAttackSurfaceTypeVBlock undocumented + DefenderAttackSurfaceTypeVBlock DefenderAttackSurfaceType = "block" + // DefenderAttackSurfaceTypeVAuditMode undocumented + DefenderAttackSurfaceTypeVAuditMode DefenderAttackSurfaceType = "auditMode" +) + +var ( + // DefenderAttackSurfaceTypePUserDefined is a pointer to DefenderAttackSurfaceTypeVUserDefined + DefenderAttackSurfaceTypePUserDefined = &_DefenderAttackSurfaceTypePUserDefined + // DefenderAttackSurfaceTypePBlock is a pointer to DefenderAttackSurfaceTypeVBlock + DefenderAttackSurfaceTypePBlock = &_DefenderAttackSurfaceTypePBlock + // DefenderAttackSurfaceTypePAuditMode is a pointer to DefenderAttackSurfaceTypeVAuditMode + DefenderAttackSurfaceTypePAuditMode = &_DefenderAttackSurfaceTypePAuditMode +) + +var ( + _DefenderAttackSurfaceTypePUserDefined = DefenderAttackSurfaceTypeVUserDefined + _DefenderAttackSurfaceTypePBlock = DefenderAttackSurfaceTypeVBlock + _DefenderAttackSurfaceTypePAuditMode = DefenderAttackSurfaceTypeVAuditMode +) + +// DefenderCloudBlockLevelType undocumented +type DefenderCloudBlockLevelType string + +const ( + // DefenderCloudBlockLevelTypeVNotConfigured undocumented + DefenderCloudBlockLevelTypeVNotConfigured DefenderCloudBlockLevelType = "notConfigured" + // DefenderCloudBlockLevelTypeVHigh undocumented + DefenderCloudBlockLevelTypeVHigh DefenderCloudBlockLevelType = "high" + // DefenderCloudBlockLevelTypeVHighPlus undocumented + DefenderCloudBlockLevelTypeVHighPlus DefenderCloudBlockLevelType = "highPlus" + // DefenderCloudBlockLevelTypeVZeroTolerance undocumented + DefenderCloudBlockLevelTypeVZeroTolerance DefenderCloudBlockLevelType = "zeroTolerance" +) + +var ( + // DefenderCloudBlockLevelTypePNotConfigured is a pointer to DefenderCloudBlockLevelTypeVNotConfigured + DefenderCloudBlockLevelTypePNotConfigured = &_DefenderCloudBlockLevelTypePNotConfigured + // DefenderCloudBlockLevelTypePHigh is a pointer to DefenderCloudBlockLevelTypeVHigh + DefenderCloudBlockLevelTypePHigh = &_DefenderCloudBlockLevelTypePHigh + // DefenderCloudBlockLevelTypePHighPlus is a pointer to DefenderCloudBlockLevelTypeVHighPlus + DefenderCloudBlockLevelTypePHighPlus = &_DefenderCloudBlockLevelTypePHighPlus + // DefenderCloudBlockLevelTypePZeroTolerance is a pointer to DefenderCloudBlockLevelTypeVZeroTolerance + DefenderCloudBlockLevelTypePZeroTolerance = &_DefenderCloudBlockLevelTypePZeroTolerance +) + +var ( + _DefenderCloudBlockLevelTypePNotConfigured = DefenderCloudBlockLevelTypeVNotConfigured + _DefenderCloudBlockLevelTypePHigh = DefenderCloudBlockLevelTypeVHigh + _DefenderCloudBlockLevelTypePHighPlus = DefenderCloudBlockLevelTypeVHighPlus + _DefenderCloudBlockLevelTypePZeroTolerance = DefenderCloudBlockLevelTypeVZeroTolerance +) + +// DefenderMonitorFileActivity undocumented +type DefenderMonitorFileActivity string + +const ( + // DefenderMonitorFileActivityVUserDefined undocumented + DefenderMonitorFileActivityVUserDefined DefenderMonitorFileActivity = "userDefined" + // DefenderMonitorFileActivityVDisable undocumented + DefenderMonitorFileActivityVDisable DefenderMonitorFileActivity = "disable" + // DefenderMonitorFileActivityVMonitorAllFiles undocumented + DefenderMonitorFileActivityVMonitorAllFiles DefenderMonitorFileActivity = "monitorAllFiles" + // DefenderMonitorFileActivityVMonitorIncomingFilesOnly undocumented + DefenderMonitorFileActivityVMonitorIncomingFilesOnly DefenderMonitorFileActivity = "monitorIncomingFilesOnly" + // DefenderMonitorFileActivityVMonitorOutgoingFilesOnly undocumented + DefenderMonitorFileActivityVMonitorOutgoingFilesOnly DefenderMonitorFileActivity = "monitorOutgoingFilesOnly" +) + +var ( + // DefenderMonitorFileActivityPUserDefined is a pointer to DefenderMonitorFileActivityVUserDefined + DefenderMonitorFileActivityPUserDefined = &_DefenderMonitorFileActivityPUserDefined + // DefenderMonitorFileActivityPDisable is a pointer to DefenderMonitorFileActivityVDisable + DefenderMonitorFileActivityPDisable = &_DefenderMonitorFileActivityPDisable + // DefenderMonitorFileActivityPMonitorAllFiles is a pointer to DefenderMonitorFileActivityVMonitorAllFiles + DefenderMonitorFileActivityPMonitorAllFiles = &_DefenderMonitorFileActivityPMonitorAllFiles + // DefenderMonitorFileActivityPMonitorIncomingFilesOnly is a pointer to DefenderMonitorFileActivityVMonitorIncomingFilesOnly + DefenderMonitorFileActivityPMonitorIncomingFilesOnly = &_DefenderMonitorFileActivityPMonitorIncomingFilesOnly + // DefenderMonitorFileActivityPMonitorOutgoingFilesOnly is a pointer to DefenderMonitorFileActivityVMonitorOutgoingFilesOnly + DefenderMonitorFileActivityPMonitorOutgoingFilesOnly = &_DefenderMonitorFileActivityPMonitorOutgoingFilesOnly +) + +var ( + _DefenderMonitorFileActivityPUserDefined = DefenderMonitorFileActivityVUserDefined + _DefenderMonitorFileActivityPDisable = DefenderMonitorFileActivityVDisable + _DefenderMonitorFileActivityPMonitorAllFiles = DefenderMonitorFileActivityVMonitorAllFiles + _DefenderMonitorFileActivityPMonitorIncomingFilesOnly = DefenderMonitorFileActivityVMonitorIncomingFilesOnly + _DefenderMonitorFileActivityPMonitorOutgoingFilesOnly = DefenderMonitorFileActivityVMonitorOutgoingFilesOnly +) + +// DefenderPotentiallyUnwantedAppAction undocumented +type DefenderPotentiallyUnwantedAppAction string + +const ( + // DefenderPotentiallyUnwantedAppActionVDeviceDefault undocumented + DefenderPotentiallyUnwantedAppActionVDeviceDefault DefenderPotentiallyUnwantedAppAction = "deviceDefault" + // DefenderPotentiallyUnwantedAppActionVBlock undocumented + DefenderPotentiallyUnwantedAppActionVBlock DefenderPotentiallyUnwantedAppAction = "block" + // DefenderPotentiallyUnwantedAppActionVAudit undocumented + DefenderPotentiallyUnwantedAppActionVAudit DefenderPotentiallyUnwantedAppAction = "audit" +) + +var ( + // DefenderPotentiallyUnwantedAppActionPDeviceDefault is a pointer to DefenderPotentiallyUnwantedAppActionVDeviceDefault + DefenderPotentiallyUnwantedAppActionPDeviceDefault = &_DefenderPotentiallyUnwantedAppActionPDeviceDefault + // DefenderPotentiallyUnwantedAppActionPBlock is a pointer to DefenderPotentiallyUnwantedAppActionVBlock + DefenderPotentiallyUnwantedAppActionPBlock = &_DefenderPotentiallyUnwantedAppActionPBlock + // DefenderPotentiallyUnwantedAppActionPAudit is a pointer to DefenderPotentiallyUnwantedAppActionVAudit + DefenderPotentiallyUnwantedAppActionPAudit = &_DefenderPotentiallyUnwantedAppActionPAudit +) + +var ( + _DefenderPotentiallyUnwantedAppActionPDeviceDefault = DefenderPotentiallyUnwantedAppActionVDeviceDefault + _DefenderPotentiallyUnwantedAppActionPBlock = DefenderPotentiallyUnwantedAppActionVBlock + _DefenderPotentiallyUnwantedAppActionPAudit = DefenderPotentiallyUnwantedAppActionVAudit +) + +// DefenderPromptForSampleSubmission undocumented +type DefenderPromptForSampleSubmission string + +const ( + // DefenderPromptForSampleSubmissionVUserDefined undocumented + DefenderPromptForSampleSubmissionVUserDefined DefenderPromptForSampleSubmission = "userDefined" + // DefenderPromptForSampleSubmissionVAlwaysPrompt undocumented + DefenderPromptForSampleSubmissionVAlwaysPrompt DefenderPromptForSampleSubmission = "alwaysPrompt" + // DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData undocumented + DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData DefenderPromptForSampleSubmission = "promptBeforeSendingPersonalData" + // DefenderPromptForSampleSubmissionVNeverSendData undocumented + DefenderPromptForSampleSubmissionVNeverSendData DefenderPromptForSampleSubmission = "neverSendData" + // DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting undocumented + DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting DefenderPromptForSampleSubmission = "sendAllDataWithoutPrompting" +) + +var ( + // DefenderPromptForSampleSubmissionPUserDefined is a pointer to DefenderPromptForSampleSubmissionVUserDefined + DefenderPromptForSampleSubmissionPUserDefined = &_DefenderPromptForSampleSubmissionPUserDefined + // DefenderPromptForSampleSubmissionPAlwaysPrompt is a pointer to DefenderPromptForSampleSubmissionVAlwaysPrompt + DefenderPromptForSampleSubmissionPAlwaysPrompt = &_DefenderPromptForSampleSubmissionPAlwaysPrompt + // DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData is a pointer to DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData + DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData = &_DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData + // DefenderPromptForSampleSubmissionPNeverSendData is a pointer to DefenderPromptForSampleSubmissionVNeverSendData + DefenderPromptForSampleSubmissionPNeverSendData = &_DefenderPromptForSampleSubmissionPNeverSendData + // DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting is a pointer to DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting + DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting = &_DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting +) + +var ( + _DefenderPromptForSampleSubmissionPUserDefined = DefenderPromptForSampleSubmissionVUserDefined + _DefenderPromptForSampleSubmissionPAlwaysPrompt = DefenderPromptForSampleSubmissionVAlwaysPrompt + _DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData = DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData + _DefenderPromptForSampleSubmissionPNeverSendData = DefenderPromptForSampleSubmissionVNeverSendData + _DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting = DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting +) + +// DefenderProtectionType undocumented +type DefenderProtectionType string + +const ( + // DefenderProtectionTypeVUserDefined undocumented + DefenderProtectionTypeVUserDefined DefenderProtectionType = "userDefined" + // DefenderProtectionTypeVEnable undocumented + DefenderProtectionTypeVEnable DefenderProtectionType = "enable" + // DefenderProtectionTypeVAuditMode undocumented + DefenderProtectionTypeVAuditMode DefenderProtectionType = "auditMode" +) + +var ( + // DefenderProtectionTypePUserDefined is a pointer to DefenderProtectionTypeVUserDefined + DefenderProtectionTypePUserDefined = &_DefenderProtectionTypePUserDefined + // DefenderProtectionTypePEnable is a pointer to DefenderProtectionTypeVEnable + DefenderProtectionTypePEnable = &_DefenderProtectionTypePEnable + // DefenderProtectionTypePAuditMode is a pointer to DefenderProtectionTypeVAuditMode + DefenderProtectionTypePAuditMode = &_DefenderProtectionTypePAuditMode +) + +var ( + _DefenderProtectionTypePUserDefined = DefenderProtectionTypeVUserDefined + _DefenderProtectionTypePEnable = DefenderProtectionTypeVEnable + _DefenderProtectionTypePAuditMode = DefenderProtectionTypeVAuditMode +) + +// DefenderScanType undocumented +type DefenderScanType string + +const ( + // DefenderScanTypeVUserDefined undocumented + DefenderScanTypeVUserDefined DefenderScanType = "userDefined" + // DefenderScanTypeVDisabled undocumented + DefenderScanTypeVDisabled DefenderScanType = "disabled" + // DefenderScanTypeVQuick undocumented + DefenderScanTypeVQuick DefenderScanType = "quick" + // DefenderScanTypeVFull undocumented + DefenderScanTypeVFull DefenderScanType = "full" +) + +var ( + // DefenderScanTypePUserDefined is a pointer to DefenderScanTypeVUserDefined + DefenderScanTypePUserDefined = &_DefenderScanTypePUserDefined + // DefenderScanTypePDisabled is a pointer to DefenderScanTypeVDisabled + DefenderScanTypePDisabled = &_DefenderScanTypePDisabled + // DefenderScanTypePQuick is a pointer to DefenderScanTypeVQuick + DefenderScanTypePQuick = &_DefenderScanTypePQuick + // DefenderScanTypePFull is a pointer to DefenderScanTypeVFull + DefenderScanTypePFull = &_DefenderScanTypePFull +) + +var ( + _DefenderScanTypePUserDefined = DefenderScanTypeVUserDefined + _DefenderScanTypePDisabled = DefenderScanTypeVDisabled + _DefenderScanTypePQuick = DefenderScanTypeVQuick + _DefenderScanTypePFull = DefenderScanTypeVFull +) + +// DefenderSecurityCenterITContactDisplayType undocumented +type DefenderSecurityCenterITContactDisplayType string + +const ( + // DefenderSecurityCenterITContactDisplayTypeVNotConfigured undocumented + DefenderSecurityCenterITContactDisplayTypeVNotConfigured DefenderSecurityCenterITContactDisplayType = "notConfigured" + // DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications undocumented + DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications DefenderSecurityCenterITContactDisplayType = "displayInAppAndInNotifications" + // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp undocumented + DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp DefenderSecurityCenterITContactDisplayType = "displayOnlyInApp" + // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications undocumented + DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications DefenderSecurityCenterITContactDisplayType = "displayOnlyInNotifications" +) + +var ( + // DefenderSecurityCenterITContactDisplayTypePNotConfigured is a pointer to DefenderSecurityCenterITContactDisplayTypeVNotConfigured + DefenderSecurityCenterITContactDisplayTypePNotConfigured = &_DefenderSecurityCenterITContactDisplayTypePNotConfigured + // DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications + DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications = &_DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications + // DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp + DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp = &_DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp + // DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications + DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications = &_DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications +) + +var ( + _DefenderSecurityCenterITContactDisplayTypePNotConfigured = DefenderSecurityCenterITContactDisplayTypeVNotConfigured + _DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications = DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications + _DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp = DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp + _DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications = DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications +) + +// DefenderSecurityCenterNotificationsFromAppType undocumented +type DefenderSecurityCenterNotificationsFromAppType string + +const ( + // DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured undocumented + DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured DefenderSecurityCenterNotificationsFromAppType = "notConfigured" + // DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications undocumented + DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications DefenderSecurityCenterNotificationsFromAppType = "blockNoncriticalNotifications" + // DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications undocumented + DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications DefenderSecurityCenterNotificationsFromAppType = "blockAllNotifications" +) + +var ( + // DefenderSecurityCenterNotificationsFromAppTypePNotConfigured is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured + DefenderSecurityCenterNotificationsFromAppTypePNotConfigured = &_DefenderSecurityCenterNotificationsFromAppTypePNotConfigured + // DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications + DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications = &_DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications + // DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications + DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications = &_DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications +) + +var ( + _DefenderSecurityCenterNotificationsFromAppTypePNotConfigured = DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured + _DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications = DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications + _DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications = DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications +) + +// DefenderSubmitSamplesConsentType undocumented +type DefenderSubmitSamplesConsentType string + +const ( + // DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically undocumented + DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically DefenderSubmitSamplesConsentType = "sendSafeSamplesAutomatically" + // DefenderSubmitSamplesConsentTypeVAlwaysPrompt undocumented + DefenderSubmitSamplesConsentTypeVAlwaysPrompt DefenderSubmitSamplesConsentType = "alwaysPrompt" + // DefenderSubmitSamplesConsentTypeVNeverSend undocumented + DefenderSubmitSamplesConsentTypeVNeverSend DefenderSubmitSamplesConsentType = "neverSend" + // DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically undocumented + DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically DefenderSubmitSamplesConsentType = "sendAllSamplesAutomatically" +) + +var ( + // DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically is a pointer to DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically + DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically = &_DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically + // DefenderSubmitSamplesConsentTypePAlwaysPrompt is a pointer to DefenderSubmitSamplesConsentTypeVAlwaysPrompt + DefenderSubmitSamplesConsentTypePAlwaysPrompt = &_DefenderSubmitSamplesConsentTypePAlwaysPrompt + // DefenderSubmitSamplesConsentTypePNeverSend is a pointer to DefenderSubmitSamplesConsentTypeVNeverSend + DefenderSubmitSamplesConsentTypePNeverSend = &_DefenderSubmitSamplesConsentTypePNeverSend + // DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically is a pointer to DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically + DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically = &_DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically +) + +var ( + _DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically = DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically + _DefenderSubmitSamplesConsentTypePAlwaysPrompt = DefenderSubmitSamplesConsentTypeVAlwaysPrompt + _DefenderSubmitSamplesConsentTypePNeverSend = DefenderSubmitSamplesConsentTypeVNeverSend + _DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically = DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically +) + +// DefenderThreatAction undocumented +type DefenderThreatAction string + +const ( + // DefenderThreatActionVDeviceDefault undocumented + DefenderThreatActionVDeviceDefault DefenderThreatAction = "deviceDefault" + // DefenderThreatActionVClean undocumented + DefenderThreatActionVClean DefenderThreatAction = "clean" + // DefenderThreatActionVQuarantine undocumented + DefenderThreatActionVQuarantine DefenderThreatAction = "quarantine" + // DefenderThreatActionVRemove undocumented + DefenderThreatActionVRemove DefenderThreatAction = "remove" + // DefenderThreatActionVAllow undocumented + DefenderThreatActionVAllow DefenderThreatAction = "allow" + // DefenderThreatActionVUserDefined undocumented + DefenderThreatActionVUserDefined DefenderThreatAction = "userDefined" + // DefenderThreatActionVBlock undocumented + DefenderThreatActionVBlock DefenderThreatAction = "block" +) + +var ( + // DefenderThreatActionPDeviceDefault is a pointer to DefenderThreatActionVDeviceDefault + DefenderThreatActionPDeviceDefault = &_DefenderThreatActionPDeviceDefault + // DefenderThreatActionPClean is a pointer to DefenderThreatActionVClean + DefenderThreatActionPClean = &_DefenderThreatActionPClean + // DefenderThreatActionPQuarantine is a pointer to DefenderThreatActionVQuarantine + DefenderThreatActionPQuarantine = &_DefenderThreatActionPQuarantine + // DefenderThreatActionPRemove is a pointer to DefenderThreatActionVRemove + DefenderThreatActionPRemove = &_DefenderThreatActionPRemove + // DefenderThreatActionPAllow is a pointer to DefenderThreatActionVAllow + DefenderThreatActionPAllow = &_DefenderThreatActionPAllow + // DefenderThreatActionPUserDefined is a pointer to DefenderThreatActionVUserDefined + DefenderThreatActionPUserDefined = &_DefenderThreatActionPUserDefined + // DefenderThreatActionPBlock is a pointer to DefenderThreatActionVBlock + DefenderThreatActionPBlock = &_DefenderThreatActionPBlock +) + +var ( + _DefenderThreatActionPDeviceDefault = DefenderThreatActionVDeviceDefault + _DefenderThreatActionPClean = DefenderThreatActionVClean + _DefenderThreatActionPQuarantine = DefenderThreatActionVQuarantine + _DefenderThreatActionPRemove = DefenderThreatActionVRemove + _DefenderThreatActionPAllow = DefenderThreatActionVAllow + _DefenderThreatActionPUserDefined = DefenderThreatActionVUserDefined + _DefenderThreatActionPBlock = DefenderThreatActionVBlock +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go new file mode 100644 index 00000000..80b7302c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DelegateMeetingMessageDeliveryOptions undocumented +type DelegateMeetingMessageDeliveryOptions string + +const ( + // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal undocumented + DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal DelegateMeetingMessageDeliveryOptions = "sendToDelegateAndInformationToPrincipal" + // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal undocumented + DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal DelegateMeetingMessageDeliveryOptions = "sendToDelegateAndPrincipal" + // DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly undocumented + DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly DelegateMeetingMessageDeliveryOptions = "sendToDelegateOnly" +) + +var ( + // DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal + DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal + // DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal + DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal + // DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly + DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly +) + +var ( + _DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal = DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal + _DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal = DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal + _DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly = DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go new file mode 100644 index 00000000..e73cf3db --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go @@ -0,0 +1,62 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DeliveryOptimizationGroupIDOptionsType undocumented +type DeliveryOptimizationGroupIDOptionsType string + +const ( + // DeliveryOptimizationGroupIDOptionsTypeVNotConfigured undocumented + DeliveryOptimizationGroupIDOptionsTypeVNotConfigured DeliveryOptimizationGroupIDOptionsType = "notConfigured" + // DeliveryOptimizationGroupIDOptionsTypeVAdSite undocumented + DeliveryOptimizationGroupIDOptionsTypeVAdSite DeliveryOptimizationGroupIDOptionsType = "adSite" + // DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid undocumented + DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid DeliveryOptimizationGroupIDOptionsType = "authenticatedDomainSid" + // DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption undocumented + DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption DeliveryOptimizationGroupIDOptionsType = "dhcpUserOption" + // DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix undocumented + DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix DeliveryOptimizationGroupIDOptionsType = "dnsSuffix" +) + +var ( + // DeliveryOptimizationGroupIDOptionsTypePNotConfigured is a pointer to DeliveryOptimizationGroupIDOptionsTypeVNotConfigured + DeliveryOptimizationGroupIDOptionsTypePNotConfigured = &_DeliveryOptimizationGroupIDOptionsTypePNotConfigured + // DeliveryOptimizationGroupIDOptionsTypePAdSite is a pointer to DeliveryOptimizationGroupIDOptionsTypeVAdSite + DeliveryOptimizationGroupIDOptionsTypePAdSite = &_DeliveryOptimizationGroupIDOptionsTypePAdSite + // DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid is a pointer to DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid + DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid = &_DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid + // DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption is a pointer to DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption + DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption = &_DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption + // DeliveryOptimizationGroupIDOptionsTypePDNSSuffix is a pointer to DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix + DeliveryOptimizationGroupIDOptionsTypePDNSSuffix = &_DeliveryOptimizationGroupIDOptionsTypePDNSSuffix +) + +var ( + _DeliveryOptimizationGroupIDOptionsTypePNotConfigured = DeliveryOptimizationGroupIDOptionsTypeVNotConfigured + _DeliveryOptimizationGroupIDOptionsTypePAdSite = DeliveryOptimizationGroupIDOptionsTypeVAdSite + _DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid = DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid + _DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption = DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption + _DeliveryOptimizationGroupIDOptionsTypePDNSSuffix = DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix +) + +// DeliveryOptimizationRestrictPeerSelectionByOptions undocumented +type DeliveryOptimizationRestrictPeerSelectionByOptions string + +const ( + // DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured undocumented + DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured DeliveryOptimizationRestrictPeerSelectionByOptions = "notConfigured" + // DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask undocumented + DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask DeliveryOptimizationRestrictPeerSelectionByOptions = "subnetMask" +) + +var ( + // DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured is a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured + DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured = &_DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured + // DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask is a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask + DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask = &_DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask +) + +var ( + _DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured = DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured + _DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask = DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go new file mode 100644 index 00000000..2641b1bc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DepTokenType undocumented +type DepTokenType string + +const ( + // DepTokenTypeVNone undocumented + DepTokenTypeVNone DepTokenType = "none" + // DepTokenTypeVDep undocumented + DepTokenTypeVDep DepTokenType = "dep" + // DepTokenTypeVAppleSchoolManager undocumented + DepTokenTypeVAppleSchoolManager DepTokenType = "appleSchoolManager" +) + +var ( + // DepTokenTypePNone is a pointer to DepTokenTypeVNone + DepTokenTypePNone = &_DepTokenTypePNone + // DepTokenTypePDep is a pointer to DepTokenTypeVDep + DepTokenTypePDep = &_DepTokenTypePDep + // DepTokenTypePAppleSchoolManager is a pointer to DepTokenTypeVAppleSchoolManager + DepTokenTypePAppleSchoolManager = &_DepTokenTypePAppleSchoolManager +) + +var ( + _DepTokenTypePNone = DepTokenTypeVNone + _DepTokenTypePDep = DepTokenTypeVDep + _DepTokenTypePAppleSchoolManager = DepTokenTypeVAppleSchoolManager +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go new file mode 100644 index 00000000..b22d508f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DerivedCredentialProviderType undocumented +type DerivedCredentialProviderType string + +const ( + // DerivedCredentialProviderTypeVNotConfigured undocumented + DerivedCredentialProviderTypeVNotConfigured DerivedCredentialProviderType = "notConfigured" + // DerivedCredentialProviderTypeVEntrustDataCard undocumented + DerivedCredentialProviderTypeVEntrustDataCard DerivedCredentialProviderType = "entrustDataCard" + // DerivedCredentialProviderTypeVPurebred undocumented + DerivedCredentialProviderTypeVPurebred DerivedCredentialProviderType = "purebred" + // DerivedCredentialProviderTypeVXTec undocumented + DerivedCredentialProviderTypeVXTec DerivedCredentialProviderType = "xTec" + // DerivedCredentialProviderTypeVIntercede undocumented + DerivedCredentialProviderTypeVIntercede DerivedCredentialProviderType = "intercede" +) + +var ( + // DerivedCredentialProviderTypePNotConfigured is a pointer to DerivedCredentialProviderTypeVNotConfigured + DerivedCredentialProviderTypePNotConfigured = &_DerivedCredentialProviderTypePNotConfigured + // DerivedCredentialProviderTypePEntrustDataCard is a pointer to DerivedCredentialProviderTypeVEntrustDataCard + DerivedCredentialProviderTypePEntrustDataCard = &_DerivedCredentialProviderTypePEntrustDataCard + // DerivedCredentialProviderTypePPurebred is a pointer to DerivedCredentialProviderTypeVPurebred + DerivedCredentialProviderTypePPurebred = &_DerivedCredentialProviderTypePPurebred + // DerivedCredentialProviderTypePXTec is a pointer to DerivedCredentialProviderTypeVXTec + DerivedCredentialProviderTypePXTec = &_DerivedCredentialProviderTypePXTec + // DerivedCredentialProviderTypePIntercede is a pointer to DerivedCredentialProviderTypeVIntercede + DerivedCredentialProviderTypePIntercede = &_DerivedCredentialProviderTypePIntercede +) + +var ( + _DerivedCredentialProviderTypePNotConfigured = DerivedCredentialProviderTypeVNotConfigured + _DerivedCredentialProviderTypePEntrustDataCard = DerivedCredentialProviderTypeVEntrustDataCard + _DerivedCredentialProviderTypePPurebred = DerivedCredentialProviderTypeVPurebred + _DerivedCredentialProviderTypePXTec = DerivedCredentialProviderTypeVXTec + _DerivedCredentialProviderTypePIntercede = DerivedCredentialProviderTypeVIntercede +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go new file mode 100644 index 00000000..8f74dcdf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go @@ -0,0 +1,1602 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DeviceAndAppManagementAssignmentSource undocumented +type DeviceAndAppManagementAssignmentSource string + +const ( + // DeviceAndAppManagementAssignmentSourceVDirect undocumented + DeviceAndAppManagementAssignmentSourceVDirect DeviceAndAppManagementAssignmentSource = "direct" + // DeviceAndAppManagementAssignmentSourceVPolicySets undocumented + DeviceAndAppManagementAssignmentSourceVPolicySets DeviceAndAppManagementAssignmentSource = "policySets" +) + +var ( + // DeviceAndAppManagementAssignmentSourcePDirect is a pointer to DeviceAndAppManagementAssignmentSourceVDirect + DeviceAndAppManagementAssignmentSourcePDirect = &_DeviceAndAppManagementAssignmentSourcePDirect + // DeviceAndAppManagementAssignmentSourcePPolicySets is a pointer to DeviceAndAppManagementAssignmentSourceVPolicySets + DeviceAndAppManagementAssignmentSourcePPolicySets = &_DeviceAndAppManagementAssignmentSourcePPolicySets +) + +var ( + _DeviceAndAppManagementAssignmentSourcePDirect = DeviceAndAppManagementAssignmentSourceVDirect + _DeviceAndAppManagementAssignmentSourcePPolicySets = DeviceAndAppManagementAssignmentSourceVPolicySets +) + +// DeviceAppManagementTaskCategory undocumented +type DeviceAppManagementTaskCategory string + +const ( + // DeviceAppManagementTaskCategoryVUnknown undocumented + DeviceAppManagementTaskCategoryVUnknown DeviceAppManagementTaskCategory = "unknown" + // DeviceAppManagementTaskCategoryVAdvancedThreatProtection undocumented + DeviceAppManagementTaskCategoryVAdvancedThreatProtection DeviceAppManagementTaskCategory = "advancedThreatProtection" +) + +var ( + // DeviceAppManagementTaskCategoryPUnknown is a pointer to DeviceAppManagementTaskCategoryVUnknown + DeviceAppManagementTaskCategoryPUnknown = &_DeviceAppManagementTaskCategoryPUnknown + // DeviceAppManagementTaskCategoryPAdvancedThreatProtection is a pointer to DeviceAppManagementTaskCategoryVAdvancedThreatProtection + DeviceAppManagementTaskCategoryPAdvancedThreatProtection = &_DeviceAppManagementTaskCategoryPAdvancedThreatProtection +) + +var ( + _DeviceAppManagementTaskCategoryPUnknown = DeviceAppManagementTaskCategoryVUnknown + _DeviceAppManagementTaskCategoryPAdvancedThreatProtection = DeviceAppManagementTaskCategoryVAdvancedThreatProtection +) + +// DeviceAppManagementTaskPriority undocumented +type DeviceAppManagementTaskPriority string + +const ( + // DeviceAppManagementTaskPriorityVNone undocumented + DeviceAppManagementTaskPriorityVNone DeviceAppManagementTaskPriority = "none" + // DeviceAppManagementTaskPriorityVHigh undocumented + DeviceAppManagementTaskPriorityVHigh DeviceAppManagementTaskPriority = "high" + // DeviceAppManagementTaskPriorityVLow undocumented + DeviceAppManagementTaskPriorityVLow DeviceAppManagementTaskPriority = "low" +) + +var ( + // DeviceAppManagementTaskPriorityPNone is a pointer to DeviceAppManagementTaskPriorityVNone + DeviceAppManagementTaskPriorityPNone = &_DeviceAppManagementTaskPriorityPNone + // DeviceAppManagementTaskPriorityPHigh is a pointer to DeviceAppManagementTaskPriorityVHigh + DeviceAppManagementTaskPriorityPHigh = &_DeviceAppManagementTaskPriorityPHigh + // DeviceAppManagementTaskPriorityPLow is a pointer to DeviceAppManagementTaskPriorityVLow + DeviceAppManagementTaskPriorityPLow = &_DeviceAppManagementTaskPriorityPLow +) + +var ( + _DeviceAppManagementTaskPriorityPNone = DeviceAppManagementTaskPriorityVNone + _DeviceAppManagementTaskPriorityPHigh = DeviceAppManagementTaskPriorityVHigh + _DeviceAppManagementTaskPriorityPLow = DeviceAppManagementTaskPriorityVLow +) + +// DeviceAppManagementTaskStatus undocumented +type DeviceAppManagementTaskStatus string + +const ( + // DeviceAppManagementTaskStatusVUnknown undocumented + DeviceAppManagementTaskStatusVUnknown DeviceAppManagementTaskStatus = "unknown" + // DeviceAppManagementTaskStatusVPending undocumented + DeviceAppManagementTaskStatusVPending DeviceAppManagementTaskStatus = "pending" + // DeviceAppManagementTaskStatusVActive undocumented + DeviceAppManagementTaskStatusVActive DeviceAppManagementTaskStatus = "active" + // DeviceAppManagementTaskStatusVCompleted undocumented + DeviceAppManagementTaskStatusVCompleted DeviceAppManagementTaskStatus = "completed" + // DeviceAppManagementTaskStatusVRejected undocumented + DeviceAppManagementTaskStatusVRejected DeviceAppManagementTaskStatus = "rejected" +) + +var ( + // DeviceAppManagementTaskStatusPUnknown is a pointer to DeviceAppManagementTaskStatusVUnknown + DeviceAppManagementTaskStatusPUnknown = &_DeviceAppManagementTaskStatusPUnknown + // DeviceAppManagementTaskStatusPPending is a pointer to DeviceAppManagementTaskStatusVPending + DeviceAppManagementTaskStatusPPending = &_DeviceAppManagementTaskStatusPPending + // DeviceAppManagementTaskStatusPActive is a pointer to DeviceAppManagementTaskStatusVActive + DeviceAppManagementTaskStatusPActive = &_DeviceAppManagementTaskStatusPActive + // DeviceAppManagementTaskStatusPCompleted is a pointer to DeviceAppManagementTaskStatusVCompleted + DeviceAppManagementTaskStatusPCompleted = &_DeviceAppManagementTaskStatusPCompleted + // DeviceAppManagementTaskStatusPRejected is a pointer to DeviceAppManagementTaskStatusVRejected + DeviceAppManagementTaskStatusPRejected = &_DeviceAppManagementTaskStatusPRejected +) + +var ( + _DeviceAppManagementTaskStatusPUnknown = DeviceAppManagementTaskStatusVUnknown + _DeviceAppManagementTaskStatusPPending = DeviceAppManagementTaskStatusVPending + _DeviceAppManagementTaskStatusPActive = DeviceAppManagementTaskStatusVActive + _DeviceAppManagementTaskStatusPCompleted = DeviceAppManagementTaskStatusVCompleted + _DeviceAppManagementTaskStatusPRejected = DeviceAppManagementTaskStatusVRejected +) + +// DeviceComplianceActionType undocumented +type DeviceComplianceActionType string + +const ( + // DeviceComplianceActionTypeVNoAction undocumented + DeviceComplianceActionTypeVNoAction DeviceComplianceActionType = "noAction" + // DeviceComplianceActionTypeVNotification undocumented + DeviceComplianceActionTypeVNotification DeviceComplianceActionType = "notification" + // DeviceComplianceActionTypeVBlock undocumented + DeviceComplianceActionTypeVBlock DeviceComplianceActionType = "block" + // DeviceComplianceActionTypeVRetire undocumented + DeviceComplianceActionTypeVRetire DeviceComplianceActionType = "retire" + // DeviceComplianceActionTypeVWipe undocumented + DeviceComplianceActionTypeVWipe DeviceComplianceActionType = "wipe" + // DeviceComplianceActionTypeVRemoveResourceAccessProfiles undocumented + DeviceComplianceActionTypeVRemoveResourceAccessProfiles DeviceComplianceActionType = "removeResourceAccessProfiles" + // DeviceComplianceActionTypeVPushNotification undocumented + DeviceComplianceActionTypeVPushNotification DeviceComplianceActionType = "pushNotification" + // DeviceComplianceActionTypeVRemoteLock undocumented + DeviceComplianceActionTypeVRemoteLock DeviceComplianceActionType = "remoteLock" +) + +var ( + // DeviceComplianceActionTypePNoAction is a pointer to DeviceComplianceActionTypeVNoAction + DeviceComplianceActionTypePNoAction = &_DeviceComplianceActionTypePNoAction + // DeviceComplianceActionTypePNotification is a pointer to DeviceComplianceActionTypeVNotification + DeviceComplianceActionTypePNotification = &_DeviceComplianceActionTypePNotification + // DeviceComplianceActionTypePBlock is a pointer to DeviceComplianceActionTypeVBlock + DeviceComplianceActionTypePBlock = &_DeviceComplianceActionTypePBlock + // DeviceComplianceActionTypePRetire is a pointer to DeviceComplianceActionTypeVRetire + DeviceComplianceActionTypePRetire = &_DeviceComplianceActionTypePRetire + // DeviceComplianceActionTypePWipe is a pointer to DeviceComplianceActionTypeVWipe + DeviceComplianceActionTypePWipe = &_DeviceComplianceActionTypePWipe + // DeviceComplianceActionTypePRemoveResourceAccessProfiles is a pointer to DeviceComplianceActionTypeVRemoveResourceAccessProfiles + DeviceComplianceActionTypePRemoveResourceAccessProfiles = &_DeviceComplianceActionTypePRemoveResourceAccessProfiles + // DeviceComplianceActionTypePPushNotification is a pointer to DeviceComplianceActionTypeVPushNotification + DeviceComplianceActionTypePPushNotification = &_DeviceComplianceActionTypePPushNotification + // DeviceComplianceActionTypePRemoteLock is a pointer to DeviceComplianceActionTypeVRemoteLock + DeviceComplianceActionTypePRemoteLock = &_DeviceComplianceActionTypePRemoteLock +) + +var ( + _DeviceComplianceActionTypePNoAction = DeviceComplianceActionTypeVNoAction + _DeviceComplianceActionTypePNotification = DeviceComplianceActionTypeVNotification + _DeviceComplianceActionTypePBlock = DeviceComplianceActionTypeVBlock + _DeviceComplianceActionTypePRetire = DeviceComplianceActionTypeVRetire + _DeviceComplianceActionTypePWipe = DeviceComplianceActionTypeVWipe + _DeviceComplianceActionTypePRemoveResourceAccessProfiles = DeviceComplianceActionTypeVRemoveResourceAccessProfiles + _DeviceComplianceActionTypePPushNotification = DeviceComplianceActionTypeVPushNotification + _DeviceComplianceActionTypePRemoteLock = DeviceComplianceActionTypeVRemoteLock +) + +// DeviceEnrollmentFailureReason undocumented +type DeviceEnrollmentFailureReason string + +const ( + // DeviceEnrollmentFailureReasonVUnknown undocumented + DeviceEnrollmentFailureReasonVUnknown DeviceEnrollmentFailureReason = "unknown" + // DeviceEnrollmentFailureReasonVAuthentication undocumented + DeviceEnrollmentFailureReasonVAuthentication DeviceEnrollmentFailureReason = "authentication" + // DeviceEnrollmentFailureReasonVAuthorization undocumented + DeviceEnrollmentFailureReasonVAuthorization DeviceEnrollmentFailureReason = "authorization" + // DeviceEnrollmentFailureReasonVAccountValidation undocumented + DeviceEnrollmentFailureReasonVAccountValidation DeviceEnrollmentFailureReason = "accountValidation" + // DeviceEnrollmentFailureReasonVUserValidation undocumented + DeviceEnrollmentFailureReasonVUserValidation DeviceEnrollmentFailureReason = "userValidation" + // DeviceEnrollmentFailureReasonVDeviceNotSupported undocumented + DeviceEnrollmentFailureReasonVDeviceNotSupported DeviceEnrollmentFailureReason = "deviceNotSupported" + // DeviceEnrollmentFailureReasonVInMaintenance undocumented + DeviceEnrollmentFailureReasonVInMaintenance DeviceEnrollmentFailureReason = "inMaintenance" + // DeviceEnrollmentFailureReasonVBadRequest undocumented + DeviceEnrollmentFailureReasonVBadRequest DeviceEnrollmentFailureReason = "badRequest" + // DeviceEnrollmentFailureReasonVFeatureNotSupported undocumented + DeviceEnrollmentFailureReasonVFeatureNotSupported DeviceEnrollmentFailureReason = "featureNotSupported" + // DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced undocumented + DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced DeviceEnrollmentFailureReason = "enrollmentRestrictionsEnforced" + // DeviceEnrollmentFailureReasonVClientDisconnected undocumented + DeviceEnrollmentFailureReasonVClientDisconnected DeviceEnrollmentFailureReason = "clientDisconnected" + // DeviceEnrollmentFailureReasonVUserAbandonment undocumented + DeviceEnrollmentFailureReasonVUserAbandonment DeviceEnrollmentFailureReason = "userAbandonment" +) + +var ( + // DeviceEnrollmentFailureReasonPUnknown is a pointer to DeviceEnrollmentFailureReasonVUnknown + DeviceEnrollmentFailureReasonPUnknown = &_DeviceEnrollmentFailureReasonPUnknown + // DeviceEnrollmentFailureReasonPAuthentication is a pointer to DeviceEnrollmentFailureReasonVAuthentication + DeviceEnrollmentFailureReasonPAuthentication = &_DeviceEnrollmentFailureReasonPAuthentication + // DeviceEnrollmentFailureReasonPAuthorization is a pointer to DeviceEnrollmentFailureReasonVAuthorization + DeviceEnrollmentFailureReasonPAuthorization = &_DeviceEnrollmentFailureReasonPAuthorization + // DeviceEnrollmentFailureReasonPAccountValidation is a pointer to DeviceEnrollmentFailureReasonVAccountValidation + DeviceEnrollmentFailureReasonPAccountValidation = &_DeviceEnrollmentFailureReasonPAccountValidation + // DeviceEnrollmentFailureReasonPUserValidation is a pointer to DeviceEnrollmentFailureReasonVUserValidation + DeviceEnrollmentFailureReasonPUserValidation = &_DeviceEnrollmentFailureReasonPUserValidation + // DeviceEnrollmentFailureReasonPDeviceNotSupported is a pointer to DeviceEnrollmentFailureReasonVDeviceNotSupported + DeviceEnrollmentFailureReasonPDeviceNotSupported = &_DeviceEnrollmentFailureReasonPDeviceNotSupported + // DeviceEnrollmentFailureReasonPInMaintenance is a pointer to DeviceEnrollmentFailureReasonVInMaintenance + DeviceEnrollmentFailureReasonPInMaintenance = &_DeviceEnrollmentFailureReasonPInMaintenance + // DeviceEnrollmentFailureReasonPBadRequest is a pointer to DeviceEnrollmentFailureReasonVBadRequest + DeviceEnrollmentFailureReasonPBadRequest = &_DeviceEnrollmentFailureReasonPBadRequest + // DeviceEnrollmentFailureReasonPFeatureNotSupported is a pointer to DeviceEnrollmentFailureReasonVFeatureNotSupported + DeviceEnrollmentFailureReasonPFeatureNotSupported = &_DeviceEnrollmentFailureReasonPFeatureNotSupported + // DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced is a pointer to DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced + DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced = &_DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced + // DeviceEnrollmentFailureReasonPClientDisconnected is a pointer to DeviceEnrollmentFailureReasonVClientDisconnected + DeviceEnrollmentFailureReasonPClientDisconnected = &_DeviceEnrollmentFailureReasonPClientDisconnected + // DeviceEnrollmentFailureReasonPUserAbandonment is a pointer to DeviceEnrollmentFailureReasonVUserAbandonment + DeviceEnrollmentFailureReasonPUserAbandonment = &_DeviceEnrollmentFailureReasonPUserAbandonment +) + +var ( + _DeviceEnrollmentFailureReasonPUnknown = DeviceEnrollmentFailureReasonVUnknown + _DeviceEnrollmentFailureReasonPAuthentication = DeviceEnrollmentFailureReasonVAuthentication + _DeviceEnrollmentFailureReasonPAuthorization = DeviceEnrollmentFailureReasonVAuthorization + _DeviceEnrollmentFailureReasonPAccountValidation = DeviceEnrollmentFailureReasonVAccountValidation + _DeviceEnrollmentFailureReasonPUserValidation = DeviceEnrollmentFailureReasonVUserValidation + _DeviceEnrollmentFailureReasonPDeviceNotSupported = DeviceEnrollmentFailureReasonVDeviceNotSupported + _DeviceEnrollmentFailureReasonPInMaintenance = DeviceEnrollmentFailureReasonVInMaintenance + _DeviceEnrollmentFailureReasonPBadRequest = DeviceEnrollmentFailureReasonVBadRequest + _DeviceEnrollmentFailureReasonPFeatureNotSupported = DeviceEnrollmentFailureReasonVFeatureNotSupported + _DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced = DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced + _DeviceEnrollmentFailureReasonPClientDisconnected = DeviceEnrollmentFailureReasonVClientDisconnected + _DeviceEnrollmentFailureReasonPUserAbandonment = DeviceEnrollmentFailureReasonVUserAbandonment +) + +// DeviceEnrollmentType undocumented +type DeviceEnrollmentType string + +const ( + // DeviceEnrollmentTypeVUnknown undocumented + DeviceEnrollmentTypeVUnknown DeviceEnrollmentType = "unknown" + // DeviceEnrollmentTypeVUserEnrollment undocumented + DeviceEnrollmentTypeVUserEnrollment DeviceEnrollmentType = "userEnrollment" + // DeviceEnrollmentTypeVDeviceEnrollmentManager undocumented + DeviceEnrollmentTypeVDeviceEnrollmentManager DeviceEnrollmentType = "deviceEnrollmentManager" + // DeviceEnrollmentTypeVAppleBulkWithUser undocumented + DeviceEnrollmentTypeVAppleBulkWithUser DeviceEnrollmentType = "appleBulkWithUser" + // DeviceEnrollmentTypeVAppleBulkWithoutUser undocumented + DeviceEnrollmentTypeVAppleBulkWithoutUser DeviceEnrollmentType = "appleBulkWithoutUser" + // DeviceEnrollmentTypeVWindowsAzureADJoin undocumented + DeviceEnrollmentTypeVWindowsAzureADJoin DeviceEnrollmentType = "windowsAzureADJoin" + // DeviceEnrollmentTypeVWindowsBulkUserless undocumented + DeviceEnrollmentTypeVWindowsBulkUserless DeviceEnrollmentType = "windowsBulkUserless" + // DeviceEnrollmentTypeVWindowsAutoEnrollment undocumented + DeviceEnrollmentTypeVWindowsAutoEnrollment DeviceEnrollmentType = "windowsAutoEnrollment" + // DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin undocumented + DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin DeviceEnrollmentType = "windowsBulkAzureDomainJoin" + // DeviceEnrollmentTypeVWindowsCoManagement undocumented + DeviceEnrollmentTypeVWindowsCoManagement DeviceEnrollmentType = "windowsCoManagement" + // DeviceEnrollmentTypeVAppleUserEnrollment undocumented + DeviceEnrollmentTypeVAppleUserEnrollment DeviceEnrollmentType = "appleUserEnrollment" + // DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount undocumented + DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount DeviceEnrollmentType = "appleUserEnrollmentWithServiceAccount" +) + +var ( + // DeviceEnrollmentTypePUnknown is a pointer to DeviceEnrollmentTypeVUnknown + DeviceEnrollmentTypePUnknown = &_DeviceEnrollmentTypePUnknown + // DeviceEnrollmentTypePUserEnrollment is a pointer to DeviceEnrollmentTypeVUserEnrollment + DeviceEnrollmentTypePUserEnrollment = &_DeviceEnrollmentTypePUserEnrollment + // DeviceEnrollmentTypePDeviceEnrollmentManager is a pointer to DeviceEnrollmentTypeVDeviceEnrollmentManager + DeviceEnrollmentTypePDeviceEnrollmentManager = &_DeviceEnrollmentTypePDeviceEnrollmentManager + // DeviceEnrollmentTypePAppleBulkWithUser is a pointer to DeviceEnrollmentTypeVAppleBulkWithUser + DeviceEnrollmentTypePAppleBulkWithUser = &_DeviceEnrollmentTypePAppleBulkWithUser + // DeviceEnrollmentTypePAppleBulkWithoutUser is a pointer to DeviceEnrollmentTypeVAppleBulkWithoutUser + DeviceEnrollmentTypePAppleBulkWithoutUser = &_DeviceEnrollmentTypePAppleBulkWithoutUser + // DeviceEnrollmentTypePWindowsAzureADJoin is a pointer to DeviceEnrollmentTypeVWindowsAzureADJoin + DeviceEnrollmentTypePWindowsAzureADJoin = &_DeviceEnrollmentTypePWindowsAzureADJoin + // DeviceEnrollmentTypePWindowsBulkUserless is a pointer to DeviceEnrollmentTypeVWindowsBulkUserless + DeviceEnrollmentTypePWindowsBulkUserless = &_DeviceEnrollmentTypePWindowsBulkUserless + // DeviceEnrollmentTypePWindowsAutoEnrollment is a pointer to DeviceEnrollmentTypeVWindowsAutoEnrollment + DeviceEnrollmentTypePWindowsAutoEnrollment = &_DeviceEnrollmentTypePWindowsAutoEnrollment + // DeviceEnrollmentTypePWindowsBulkAzureDomainJoin is a pointer to DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin + DeviceEnrollmentTypePWindowsBulkAzureDomainJoin = &_DeviceEnrollmentTypePWindowsBulkAzureDomainJoin + // DeviceEnrollmentTypePWindowsCoManagement is a pointer to DeviceEnrollmentTypeVWindowsCoManagement + DeviceEnrollmentTypePWindowsCoManagement = &_DeviceEnrollmentTypePWindowsCoManagement + // DeviceEnrollmentTypePAppleUserEnrollment is a pointer to DeviceEnrollmentTypeVAppleUserEnrollment + DeviceEnrollmentTypePAppleUserEnrollment = &_DeviceEnrollmentTypePAppleUserEnrollment + // DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount is a pointer to DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount + DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount = &_DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount +) + +var ( + _DeviceEnrollmentTypePUnknown = DeviceEnrollmentTypeVUnknown + _DeviceEnrollmentTypePUserEnrollment = DeviceEnrollmentTypeVUserEnrollment + _DeviceEnrollmentTypePDeviceEnrollmentManager = DeviceEnrollmentTypeVDeviceEnrollmentManager + _DeviceEnrollmentTypePAppleBulkWithUser = DeviceEnrollmentTypeVAppleBulkWithUser + _DeviceEnrollmentTypePAppleBulkWithoutUser = DeviceEnrollmentTypeVAppleBulkWithoutUser + _DeviceEnrollmentTypePWindowsAzureADJoin = DeviceEnrollmentTypeVWindowsAzureADJoin + _DeviceEnrollmentTypePWindowsBulkUserless = DeviceEnrollmentTypeVWindowsBulkUserless + _DeviceEnrollmentTypePWindowsAutoEnrollment = DeviceEnrollmentTypeVWindowsAutoEnrollment + _DeviceEnrollmentTypePWindowsBulkAzureDomainJoin = DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin + _DeviceEnrollmentTypePWindowsCoManagement = DeviceEnrollmentTypeVWindowsCoManagement + _DeviceEnrollmentTypePAppleUserEnrollment = DeviceEnrollmentTypeVAppleUserEnrollment + _DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount = DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount +) + +// DeviceGuardLocalSystemAuthorityCredentialGuardState undocumented +type DeviceGuardLocalSystemAuthorityCredentialGuardState string + +const ( + // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = "running" + // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired DeviceGuardLocalSystemAuthorityCredentialGuardState = "rebootRequired" + // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed DeviceGuardLocalSystemAuthorityCredentialGuardState = "notLicensed" + // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardState = "notConfigured" + // DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = "virtualizationBasedSecurityNotRunning" +) + +var ( + // DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning + DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning + // DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired + DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired + // DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed + DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed + // DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured + DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured + // DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning + DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning +) + +var ( + _DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning = DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning + _DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired = DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired + _DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed = DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed + _DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured = DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured + _DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning = DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning +) + +// DeviceGuardLocalSystemAuthorityCredentialGuardType undocumented +type DeviceGuardLocalSystemAuthorityCredentialGuardType string + +const ( + // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardType = "notConfigured" + // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = "enableWithUEFILock" + // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock undocumented + DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = "enableWithoutUEFILock" +) + +var ( + // DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured + DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured + // DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock + DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock + // DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock + DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock +) + +var ( + _DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured + _DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock + _DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock +) + +// DeviceGuardVirtualizationBasedSecurityHardwareRequirementState undocumented +type DeviceGuardVirtualizationBasedSecurityHardwareRequirementState string + +const ( + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements undocumented + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "meetHardwareRequirements" + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired undocumented + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "secureBootRequired" + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired undocumented + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "dmaProtectionRequired" + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM undocumented + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "hyperVNotSupportedForGuestVM" + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable undocumented + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "hyperVNotAvailable" +) + +var ( + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable + DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable +) + +var ( + _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements + _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired + _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired + _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM + _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable +) + +// DeviceGuardVirtualizationBasedSecurityState undocumented +type DeviceGuardVirtualizationBasedSecurityState string + +const ( + // DeviceGuardVirtualizationBasedSecurityStateVRunning undocumented + DeviceGuardVirtualizationBasedSecurityStateVRunning DeviceGuardVirtualizationBasedSecurityState = "running" + // DeviceGuardVirtualizationBasedSecurityStateVRebootRequired undocumented + DeviceGuardVirtualizationBasedSecurityStateVRebootRequired DeviceGuardVirtualizationBasedSecurityState = "rebootRequired" + // DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture undocumented + DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture DeviceGuardVirtualizationBasedSecurityState = "require64BitArchitecture" + // DeviceGuardVirtualizationBasedSecurityStateVNotLicensed undocumented + DeviceGuardVirtualizationBasedSecurityStateVNotLicensed DeviceGuardVirtualizationBasedSecurityState = "notLicensed" + // DeviceGuardVirtualizationBasedSecurityStateVNotConfigured undocumented + DeviceGuardVirtualizationBasedSecurityStateVNotConfigured DeviceGuardVirtualizationBasedSecurityState = "notConfigured" + // DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements undocumented + DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityState = "doesNotMeetHardwareRequirements" + // DeviceGuardVirtualizationBasedSecurityStateVOther undocumented + DeviceGuardVirtualizationBasedSecurityStateVOther DeviceGuardVirtualizationBasedSecurityState = "other" +) + +var ( + // DeviceGuardVirtualizationBasedSecurityStatePRunning is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRunning + DeviceGuardVirtualizationBasedSecurityStatePRunning = &_DeviceGuardVirtualizationBasedSecurityStatePRunning + // DeviceGuardVirtualizationBasedSecurityStatePRebootRequired is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRebootRequired + DeviceGuardVirtualizationBasedSecurityStatePRebootRequired = &_DeviceGuardVirtualizationBasedSecurityStatePRebootRequired + // DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture + DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture = &_DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture + // DeviceGuardVirtualizationBasedSecurityStatePNotLicensed is a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotLicensed + DeviceGuardVirtualizationBasedSecurityStatePNotLicensed = &_DeviceGuardVirtualizationBasedSecurityStatePNotLicensed + // DeviceGuardVirtualizationBasedSecurityStatePNotConfigured is a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotConfigured + DeviceGuardVirtualizationBasedSecurityStatePNotConfigured = &_DeviceGuardVirtualizationBasedSecurityStatePNotConfigured + // DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements is a pointer to DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements + DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements = &_DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements + // DeviceGuardVirtualizationBasedSecurityStatePOther is a pointer to DeviceGuardVirtualizationBasedSecurityStateVOther + DeviceGuardVirtualizationBasedSecurityStatePOther = &_DeviceGuardVirtualizationBasedSecurityStatePOther +) + +var ( + _DeviceGuardVirtualizationBasedSecurityStatePRunning = DeviceGuardVirtualizationBasedSecurityStateVRunning + _DeviceGuardVirtualizationBasedSecurityStatePRebootRequired = DeviceGuardVirtualizationBasedSecurityStateVRebootRequired + _DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture = DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture + _DeviceGuardVirtualizationBasedSecurityStatePNotLicensed = DeviceGuardVirtualizationBasedSecurityStateVNotLicensed + _DeviceGuardVirtualizationBasedSecurityStatePNotConfigured = DeviceGuardVirtualizationBasedSecurityStateVNotConfigured + _DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements = DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements + _DeviceGuardVirtualizationBasedSecurityStatePOther = DeviceGuardVirtualizationBasedSecurityStateVOther +) + +// DeviceManagementApplicabilityRuleType undocumented +type DeviceManagementApplicabilityRuleType string + +const ( + // DeviceManagementApplicabilityRuleTypeVInclude undocumented + DeviceManagementApplicabilityRuleTypeVInclude DeviceManagementApplicabilityRuleType = "include" + // DeviceManagementApplicabilityRuleTypeVExclude undocumented + DeviceManagementApplicabilityRuleTypeVExclude DeviceManagementApplicabilityRuleType = "exclude" +) + +var ( + // DeviceManagementApplicabilityRuleTypePInclude is a pointer to DeviceManagementApplicabilityRuleTypeVInclude + DeviceManagementApplicabilityRuleTypePInclude = &_DeviceManagementApplicabilityRuleTypePInclude + // DeviceManagementApplicabilityRuleTypePExclude is a pointer to DeviceManagementApplicabilityRuleTypeVExclude + DeviceManagementApplicabilityRuleTypePExclude = &_DeviceManagementApplicabilityRuleTypePExclude +) + +var ( + _DeviceManagementApplicabilityRuleTypePInclude = DeviceManagementApplicabilityRuleTypeVInclude + _DeviceManagementApplicabilityRuleTypePExclude = DeviceManagementApplicabilityRuleTypeVExclude +) + +// DeviceManagementComparisonResult undocumented +type DeviceManagementComparisonResult string + +const ( + // DeviceManagementComparisonResultVUnknown undocumented + DeviceManagementComparisonResultVUnknown DeviceManagementComparisonResult = "unknown" + // DeviceManagementComparisonResultVEqual undocumented + DeviceManagementComparisonResultVEqual DeviceManagementComparisonResult = "equal" + // DeviceManagementComparisonResultVNotEqual undocumented + DeviceManagementComparisonResultVNotEqual DeviceManagementComparisonResult = "notEqual" + // DeviceManagementComparisonResultVAdded undocumented + DeviceManagementComparisonResultVAdded DeviceManagementComparisonResult = "added" + // DeviceManagementComparisonResultVRemoved undocumented + DeviceManagementComparisonResultVRemoved DeviceManagementComparisonResult = "removed" +) + +var ( + // DeviceManagementComparisonResultPUnknown is a pointer to DeviceManagementComparisonResultVUnknown + DeviceManagementComparisonResultPUnknown = &_DeviceManagementComparisonResultPUnknown + // DeviceManagementComparisonResultPEqual is a pointer to DeviceManagementComparisonResultVEqual + DeviceManagementComparisonResultPEqual = &_DeviceManagementComparisonResultPEqual + // DeviceManagementComparisonResultPNotEqual is a pointer to DeviceManagementComparisonResultVNotEqual + DeviceManagementComparisonResultPNotEqual = &_DeviceManagementComparisonResultPNotEqual + // DeviceManagementComparisonResultPAdded is a pointer to DeviceManagementComparisonResultVAdded + DeviceManagementComparisonResultPAdded = &_DeviceManagementComparisonResultPAdded + // DeviceManagementComparisonResultPRemoved is a pointer to DeviceManagementComparisonResultVRemoved + DeviceManagementComparisonResultPRemoved = &_DeviceManagementComparisonResultPRemoved +) + +var ( + _DeviceManagementComparisonResultPUnknown = DeviceManagementComparisonResultVUnknown + _DeviceManagementComparisonResultPEqual = DeviceManagementComparisonResultVEqual + _DeviceManagementComparisonResultPNotEqual = DeviceManagementComparisonResultVNotEqual + _DeviceManagementComparisonResultPAdded = DeviceManagementComparisonResultVAdded + _DeviceManagementComparisonResultPRemoved = DeviceManagementComparisonResultVRemoved +) + +// DeviceManagementDerivedCredentialIssuer undocumented +type DeviceManagementDerivedCredentialIssuer string + +const ( + // DeviceManagementDerivedCredentialIssuerVIntercede undocumented + DeviceManagementDerivedCredentialIssuerVIntercede DeviceManagementDerivedCredentialIssuer = "intercede" + // DeviceManagementDerivedCredentialIssuerVEntrustDatacard undocumented + DeviceManagementDerivedCredentialIssuerVEntrustDatacard DeviceManagementDerivedCredentialIssuer = "entrustDatacard" + // DeviceManagementDerivedCredentialIssuerVPurebred undocumented + DeviceManagementDerivedCredentialIssuerVPurebred DeviceManagementDerivedCredentialIssuer = "purebred" +) + +var ( + // DeviceManagementDerivedCredentialIssuerPIntercede is a pointer to DeviceManagementDerivedCredentialIssuerVIntercede + DeviceManagementDerivedCredentialIssuerPIntercede = &_DeviceManagementDerivedCredentialIssuerPIntercede + // DeviceManagementDerivedCredentialIssuerPEntrustDatacard is a pointer to DeviceManagementDerivedCredentialIssuerVEntrustDatacard + DeviceManagementDerivedCredentialIssuerPEntrustDatacard = &_DeviceManagementDerivedCredentialIssuerPEntrustDatacard + // DeviceManagementDerivedCredentialIssuerPPurebred is a pointer to DeviceManagementDerivedCredentialIssuerVPurebred + DeviceManagementDerivedCredentialIssuerPPurebred = &_DeviceManagementDerivedCredentialIssuerPPurebred +) + +var ( + _DeviceManagementDerivedCredentialIssuerPIntercede = DeviceManagementDerivedCredentialIssuerVIntercede + _DeviceManagementDerivedCredentialIssuerPEntrustDatacard = DeviceManagementDerivedCredentialIssuerVEntrustDatacard + _DeviceManagementDerivedCredentialIssuerPPurebred = DeviceManagementDerivedCredentialIssuerVPurebred +) + +// DeviceManagementDerivedCredentialNotificationType undocumented +type DeviceManagementDerivedCredentialNotificationType string + +const ( + // DeviceManagementDerivedCredentialNotificationTypeVNone undocumented + DeviceManagementDerivedCredentialNotificationTypeVNone DeviceManagementDerivedCredentialNotificationType = "none" + // DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal undocumented + DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal DeviceManagementDerivedCredentialNotificationType = "companyPortal" + // DeviceManagementDerivedCredentialNotificationTypeVEmail undocumented + DeviceManagementDerivedCredentialNotificationTypeVEmail DeviceManagementDerivedCredentialNotificationType = "email" +) + +var ( + // DeviceManagementDerivedCredentialNotificationTypePNone is a pointer to DeviceManagementDerivedCredentialNotificationTypeVNone + DeviceManagementDerivedCredentialNotificationTypePNone = &_DeviceManagementDerivedCredentialNotificationTypePNone + // DeviceManagementDerivedCredentialNotificationTypePCompanyPortal is a pointer to DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal + DeviceManagementDerivedCredentialNotificationTypePCompanyPortal = &_DeviceManagementDerivedCredentialNotificationTypePCompanyPortal + // DeviceManagementDerivedCredentialNotificationTypePEmail is a pointer to DeviceManagementDerivedCredentialNotificationTypeVEmail + DeviceManagementDerivedCredentialNotificationTypePEmail = &_DeviceManagementDerivedCredentialNotificationTypePEmail +) + +var ( + _DeviceManagementDerivedCredentialNotificationTypePNone = DeviceManagementDerivedCredentialNotificationTypeVNone + _DeviceManagementDerivedCredentialNotificationTypePCompanyPortal = DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal + _DeviceManagementDerivedCredentialNotificationTypePEmail = DeviceManagementDerivedCredentialNotificationTypeVEmail +) + +// DeviceManagementDomainJoinConnectorState undocumented +type DeviceManagementDomainJoinConnectorState string + +const ( + // DeviceManagementDomainJoinConnectorStateVActive undocumented + DeviceManagementDomainJoinConnectorStateVActive DeviceManagementDomainJoinConnectorState = "active" + // DeviceManagementDomainJoinConnectorStateVError undocumented + DeviceManagementDomainJoinConnectorStateVError DeviceManagementDomainJoinConnectorState = "error" + // DeviceManagementDomainJoinConnectorStateVInactive undocumented + DeviceManagementDomainJoinConnectorStateVInactive DeviceManagementDomainJoinConnectorState = "inactive" +) + +var ( + // DeviceManagementDomainJoinConnectorStatePActive is a pointer to DeviceManagementDomainJoinConnectorStateVActive + DeviceManagementDomainJoinConnectorStatePActive = &_DeviceManagementDomainJoinConnectorStatePActive + // DeviceManagementDomainJoinConnectorStatePError is a pointer to DeviceManagementDomainJoinConnectorStateVError + DeviceManagementDomainJoinConnectorStatePError = &_DeviceManagementDomainJoinConnectorStatePError + // DeviceManagementDomainJoinConnectorStatePInactive is a pointer to DeviceManagementDomainJoinConnectorStateVInactive + DeviceManagementDomainJoinConnectorStatePInactive = &_DeviceManagementDomainJoinConnectorStatePInactive +) + +var ( + _DeviceManagementDomainJoinConnectorStatePActive = DeviceManagementDomainJoinConnectorStateVActive + _DeviceManagementDomainJoinConnectorStatePError = DeviceManagementDomainJoinConnectorStateVError + _DeviceManagementDomainJoinConnectorStatePInactive = DeviceManagementDomainJoinConnectorStateVInactive +) + +// DeviceManagementExchangeAccessLevel undocumented +type DeviceManagementExchangeAccessLevel string + +const ( + // DeviceManagementExchangeAccessLevelVNone undocumented + DeviceManagementExchangeAccessLevelVNone DeviceManagementExchangeAccessLevel = "none" + // DeviceManagementExchangeAccessLevelVAllow undocumented + DeviceManagementExchangeAccessLevelVAllow DeviceManagementExchangeAccessLevel = "allow" + // DeviceManagementExchangeAccessLevelVBlock undocumented + DeviceManagementExchangeAccessLevelVBlock DeviceManagementExchangeAccessLevel = "block" + // DeviceManagementExchangeAccessLevelVQuarantine undocumented + DeviceManagementExchangeAccessLevelVQuarantine DeviceManagementExchangeAccessLevel = "quarantine" +) + +var ( + // DeviceManagementExchangeAccessLevelPNone is a pointer to DeviceManagementExchangeAccessLevelVNone + DeviceManagementExchangeAccessLevelPNone = &_DeviceManagementExchangeAccessLevelPNone + // DeviceManagementExchangeAccessLevelPAllow is a pointer to DeviceManagementExchangeAccessLevelVAllow + DeviceManagementExchangeAccessLevelPAllow = &_DeviceManagementExchangeAccessLevelPAllow + // DeviceManagementExchangeAccessLevelPBlock is a pointer to DeviceManagementExchangeAccessLevelVBlock + DeviceManagementExchangeAccessLevelPBlock = &_DeviceManagementExchangeAccessLevelPBlock + // DeviceManagementExchangeAccessLevelPQuarantine is a pointer to DeviceManagementExchangeAccessLevelVQuarantine + DeviceManagementExchangeAccessLevelPQuarantine = &_DeviceManagementExchangeAccessLevelPQuarantine +) + +var ( + _DeviceManagementExchangeAccessLevelPNone = DeviceManagementExchangeAccessLevelVNone + _DeviceManagementExchangeAccessLevelPAllow = DeviceManagementExchangeAccessLevelVAllow + _DeviceManagementExchangeAccessLevelPBlock = DeviceManagementExchangeAccessLevelVBlock + _DeviceManagementExchangeAccessLevelPQuarantine = DeviceManagementExchangeAccessLevelVQuarantine +) + +// DeviceManagementExchangeAccessRuleType undocumented +type DeviceManagementExchangeAccessRuleType string + +const ( + // DeviceManagementExchangeAccessRuleTypeVFamily undocumented + DeviceManagementExchangeAccessRuleTypeVFamily DeviceManagementExchangeAccessRuleType = "family" + // DeviceManagementExchangeAccessRuleTypeVModel undocumented + DeviceManagementExchangeAccessRuleTypeVModel DeviceManagementExchangeAccessRuleType = "model" +) + +var ( + // DeviceManagementExchangeAccessRuleTypePFamily is a pointer to DeviceManagementExchangeAccessRuleTypeVFamily + DeviceManagementExchangeAccessRuleTypePFamily = &_DeviceManagementExchangeAccessRuleTypePFamily + // DeviceManagementExchangeAccessRuleTypePModel is a pointer to DeviceManagementExchangeAccessRuleTypeVModel + DeviceManagementExchangeAccessRuleTypePModel = &_DeviceManagementExchangeAccessRuleTypePModel +) + +var ( + _DeviceManagementExchangeAccessRuleTypePFamily = DeviceManagementExchangeAccessRuleTypeVFamily + _DeviceManagementExchangeAccessRuleTypePModel = DeviceManagementExchangeAccessRuleTypeVModel +) + +// DeviceManagementExchangeAccessState undocumented +type DeviceManagementExchangeAccessState string + +const ( + // DeviceManagementExchangeAccessStateVNone undocumented + DeviceManagementExchangeAccessStateVNone DeviceManagementExchangeAccessState = "none" + // DeviceManagementExchangeAccessStateVUnknown undocumented + DeviceManagementExchangeAccessStateVUnknown DeviceManagementExchangeAccessState = "unknown" + // DeviceManagementExchangeAccessStateVAllowed undocumented + DeviceManagementExchangeAccessStateVAllowed DeviceManagementExchangeAccessState = "allowed" + // DeviceManagementExchangeAccessStateVBlocked undocumented + DeviceManagementExchangeAccessStateVBlocked DeviceManagementExchangeAccessState = "blocked" + // DeviceManagementExchangeAccessStateVQuarantined undocumented + DeviceManagementExchangeAccessStateVQuarantined DeviceManagementExchangeAccessState = "quarantined" +) + +var ( + // DeviceManagementExchangeAccessStatePNone is a pointer to DeviceManagementExchangeAccessStateVNone + DeviceManagementExchangeAccessStatePNone = &_DeviceManagementExchangeAccessStatePNone + // DeviceManagementExchangeAccessStatePUnknown is a pointer to DeviceManagementExchangeAccessStateVUnknown + DeviceManagementExchangeAccessStatePUnknown = &_DeviceManagementExchangeAccessStatePUnknown + // DeviceManagementExchangeAccessStatePAllowed is a pointer to DeviceManagementExchangeAccessStateVAllowed + DeviceManagementExchangeAccessStatePAllowed = &_DeviceManagementExchangeAccessStatePAllowed + // DeviceManagementExchangeAccessStatePBlocked is a pointer to DeviceManagementExchangeAccessStateVBlocked + DeviceManagementExchangeAccessStatePBlocked = &_DeviceManagementExchangeAccessStatePBlocked + // DeviceManagementExchangeAccessStatePQuarantined is a pointer to DeviceManagementExchangeAccessStateVQuarantined + DeviceManagementExchangeAccessStatePQuarantined = &_DeviceManagementExchangeAccessStatePQuarantined +) + +var ( + _DeviceManagementExchangeAccessStatePNone = DeviceManagementExchangeAccessStateVNone + _DeviceManagementExchangeAccessStatePUnknown = DeviceManagementExchangeAccessStateVUnknown + _DeviceManagementExchangeAccessStatePAllowed = DeviceManagementExchangeAccessStateVAllowed + _DeviceManagementExchangeAccessStatePBlocked = DeviceManagementExchangeAccessStateVBlocked + _DeviceManagementExchangeAccessStatePQuarantined = DeviceManagementExchangeAccessStateVQuarantined +) + +// DeviceManagementExchangeAccessStateReason undocumented +type DeviceManagementExchangeAccessStateReason string + +const ( + // DeviceManagementExchangeAccessStateReasonVNone undocumented + DeviceManagementExchangeAccessStateReasonVNone DeviceManagementExchangeAccessStateReason = "none" + // DeviceManagementExchangeAccessStateReasonVUnknown undocumented + DeviceManagementExchangeAccessStateReasonVUnknown DeviceManagementExchangeAccessStateReason = "unknown" + // DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule undocumented + DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule DeviceManagementExchangeAccessStateReason = "exchangeGlobalRule" + // DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule undocumented + DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule DeviceManagementExchangeAccessStateReason = "exchangeIndividualRule" + // DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule undocumented + DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule DeviceManagementExchangeAccessStateReason = "exchangeDeviceRule" + // DeviceManagementExchangeAccessStateReasonVExchangeUpgrade undocumented + DeviceManagementExchangeAccessStateReasonVExchangeUpgrade DeviceManagementExchangeAccessStateReason = "exchangeUpgrade" + // DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy undocumented + DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy DeviceManagementExchangeAccessStateReason = "exchangeMailboxPolicy" + // DeviceManagementExchangeAccessStateReasonVOther undocumented + DeviceManagementExchangeAccessStateReasonVOther DeviceManagementExchangeAccessStateReason = "other" + // DeviceManagementExchangeAccessStateReasonVCompliant undocumented + DeviceManagementExchangeAccessStateReasonVCompliant DeviceManagementExchangeAccessStateReason = "compliant" + // DeviceManagementExchangeAccessStateReasonVNotCompliant undocumented + DeviceManagementExchangeAccessStateReasonVNotCompliant DeviceManagementExchangeAccessStateReason = "notCompliant" + // DeviceManagementExchangeAccessStateReasonVNotEnrolled undocumented + DeviceManagementExchangeAccessStateReasonVNotEnrolled DeviceManagementExchangeAccessStateReason = "notEnrolled" + // DeviceManagementExchangeAccessStateReasonVUnknownLocation undocumented + DeviceManagementExchangeAccessStateReasonVUnknownLocation DeviceManagementExchangeAccessStateReason = "unknownLocation" + // DeviceManagementExchangeAccessStateReasonVMFARequired undocumented + DeviceManagementExchangeAccessStateReasonVMFARequired DeviceManagementExchangeAccessStateReason = "mfaRequired" + // DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy undocumented + DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy DeviceManagementExchangeAccessStateReason = "azureADBlockDueToAccessPolicy" + // DeviceManagementExchangeAccessStateReasonVCompromisedPassword undocumented + DeviceManagementExchangeAccessStateReasonVCompromisedPassword DeviceManagementExchangeAccessStateReason = "compromisedPassword" + // DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp undocumented + DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp DeviceManagementExchangeAccessStateReason = "deviceNotKnownWithManagedApp" +) + +var ( + // DeviceManagementExchangeAccessStateReasonPNone is a pointer to DeviceManagementExchangeAccessStateReasonVNone + DeviceManagementExchangeAccessStateReasonPNone = &_DeviceManagementExchangeAccessStateReasonPNone + // DeviceManagementExchangeAccessStateReasonPUnknown is a pointer to DeviceManagementExchangeAccessStateReasonVUnknown + DeviceManagementExchangeAccessStateReasonPUnknown = &_DeviceManagementExchangeAccessStateReasonPUnknown + // DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule + DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule = &_DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule + // DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule + DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule = &_DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule + // DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule + DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule = &_DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule + // DeviceManagementExchangeAccessStateReasonPExchangeUpgrade is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeUpgrade + DeviceManagementExchangeAccessStateReasonPExchangeUpgrade = &_DeviceManagementExchangeAccessStateReasonPExchangeUpgrade + // DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy + DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy = &_DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy + // DeviceManagementExchangeAccessStateReasonPOther is a pointer to DeviceManagementExchangeAccessStateReasonVOther + DeviceManagementExchangeAccessStateReasonPOther = &_DeviceManagementExchangeAccessStateReasonPOther + // DeviceManagementExchangeAccessStateReasonPCompliant is a pointer to DeviceManagementExchangeAccessStateReasonVCompliant + DeviceManagementExchangeAccessStateReasonPCompliant = &_DeviceManagementExchangeAccessStateReasonPCompliant + // DeviceManagementExchangeAccessStateReasonPNotCompliant is a pointer to DeviceManagementExchangeAccessStateReasonVNotCompliant + DeviceManagementExchangeAccessStateReasonPNotCompliant = &_DeviceManagementExchangeAccessStateReasonPNotCompliant + // DeviceManagementExchangeAccessStateReasonPNotEnrolled is a pointer to DeviceManagementExchangeAccessStateReasonVNotEnrolled + DeviceManagementExchangeAccessStateReasonPNotEnrolled = &_DeviceManagementExchangeAccessStateReasonPNotEnrolled + // DeviceManagementExchangeAccessStateReasonPUnknownLocation is a pointer to DeviceManagementExchangeAccessStateReasonVUnknownLocation + DeviceManagementExchangeAccessStateReasonPUnknownLocation = &_DeviceManagementExchangeAccessStateReasonPUnknownLocation + // DeviceManagementExchangeAccessStateReasonPMFARequired is a pointer to DeviceManagementExchangeAccessStateReasonVMFARequired + DeviceManagementExchangeAccessStateReasonPMFARequired = &_DeviceManagementExchangeAccessStateReasonPMFARequired + // DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy is a pointer to DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy + DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy = &_DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy + // DeviceManagementExchangeAccessStateReasonPCompromisedPassword is a pointer to DeviceManagementExchangeAccessStateReasonVCompromisedPassword + DeviceManagementExchangeAccessStateReasonPCompromisedPassword = &_DeviceManagementExchangeAccessStateReasonPCompromisedPassword + // DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp is a pointer to DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp + DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp = &_DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp +) + +var ( + _DeviceManagementExchangeAccessStateReasonPNone = DeviceManagementExchangeAccessStateReasonVNone + _DeviceManagementExchangeAccessStateReasonPUnknown = DeviceManagementExchangeAccessStateReasonVUnknown + _DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule = DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule + _DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule = DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule + _DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule = DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule + _DeviceManagementExchangeAccessStateReasonPExchangeUpgrade = DeviceManagementExchangeAccessStateReasonVExchangeUpgrade + _DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy = DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy + _DeviceManagementExchangeAccessStateReasonPOther = DeviceManagementExchangeAccessStateReasonVOther + _DeviceManagementExchangeAccessStateReasonPCompliant = DeviceManagementExchangeAccessStateReasonVCompliant + _DeviceManagementExchangeAccessStateReasonPNotCompliant = DeviceManagementExchangeAccessStateReasonVNotCompliant + _DeviceManagementExchangeAccessStateReasonPNotEnrolled = DeviceManagementExchangeAccessStateReasonVNotEnrolled + _DeviceManagementExchangeAccessStateReasonPUnknownLocation = DeviceManagementExchangeAccessStateReasonVUnknownLocation + _DeviceManagementExchangeAccessStateReasonPMFARequired = DeviceManagementExchangeAccessStateReasonVMFARequired + _DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy = DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy + _DeviceManagementExchangeAccessStateReasonPCompromisedPassword = DeviceManagementExchangeAccessStateReasonVCompromisedPassword + _DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp = DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp +) + +// DeviceManagementExchangeConnectorStatus undocumented +type DeviceManagementExchangeConnectorStatus string + +const ( + // DeviceManagementExchangeConnectorStatusVNone undocumented + DeviceManagementExchangeConnectorStatusVNone DeviceManagementExchangeConnectorStatus = "none" + // DeviceManagementExchangeConnectorStatusVConnectionPending undocumented + DeviceManagementExchangeConnectorStatusVConnectionPending DeviceManagementExchangeConnectorStatus = "connectionPending" + // DeviceManagementExchangeConnectorStatusVConnected undocumented + DeviceManagementExchangeConnectorStatusVConnected DeviceManagementExchangeConnectorStatus = "connected" + // DeviceManagementExchangeConnectorStatusVDisconnected undocumented + DeviceManagementExchangeConnectorStatusVDisconnected DeviceManagementExchangeConnectorStatus = "disconnected" +) + +var ( + // DeviceManagementExchangeConnectorStatusPNone is a pointer to DeviceManagementExchangeConnectorStatusVNone + DeviceManagementExchangeConnectorStatusPNone = &_DeviceManagementExchangeConnectorStatusPNone + // DeviceManagementExchangeConnectorStatusPConnectionPending is a pointer to DeviceManagementExchangeConnectorStatusVConnectionPending + DeviceManagementExchangeConnectorStatusPConnectionPending = &_DeviceManagementExchangeConnectorStatusPConnectionPending + // DeviceManagementExchangeConnectorStatusPConnected is a pointer to DeviceManagementExchangeConnectorStatusVConnected + DeviceManagementExchangeConnectorStatusPConnected = &_DeviceManagementExchangeConnectorStatusPConnected + // DeviceManagementExchangeConnectorStatusPDisconnected is a pointer to DeviceManagementExchangeConnectorStatusVDisconnected + DeviceManagementExchangeConnectorStatusPDisconnected = &_DeviceManagementExchangeConnectorStatusPDisconnected +) + +var ( + _DeviceManagementExchangeConnectorStatusPNone = DeviceManagementExchangeConnectorStatusVNone + _DeviceManagementExchangeConnectorStatusPConnectionPending = DeviceManagementExchangeConnectorStatusVConnectionPending + _DeviceManagementExchangeConnectorStatusPConnected = DeviceManagementExchangeConnectorStatusVConnected + _DeviceManagementExchangeConnectorStatusPDisconnected = DeviceManagementExchangeConnectorStatusVDisconnected +) + +// DeviceManagementExchangeConnectorSyncType undocumented +type DeviceManagementExchangeConnectorSyncType string + +const ( + // DeviceManagementExchangeConnectorSyncTypeVFullSync undocumented + DeviceManagementExchangeConnectorSyncTypeVFullSync DeviceManagementExchangeConnectorSyncType = "fullSync" + // DeviceManagementExchangeConnectorSyncTypeVDeltaSync undocumented + DeviceManagementExchangeConnectorSyncTypeVDeltaSync DeviceManagementExchangeConnectorSyncType = "deltaSync" +) + +var ( + // DeviceManagementExchangeConnectorSyncTypePFullSync is a pointer to DeviceManagementExchangeConnectorSyncTypeVFullSync + DeviceManagementExchangeConnectorSyncTypePFullSync = &_DeviceManagementExchangeConnectorSyncTypePFullSync + // DeviceManagementExchangeConnectorSyncTypePDeltaSync is a pointer to DeviceManagementExchangeConnectorSyncTypeVDeltaSync + DeviceManagementExchangeConnectorSyncTypePDeltaSync = &_DeviceManagementExchangeConnectorSyncTypePDeltaSync +) + +var ( + _DeviceManagementExchangeConnectorSyncTypePFullSync = DeviceManagementExchangeConnectorSyncTypeVFullSync + _DeviceManagementExchangeConnectorSyncTypePDeltaSync = DeviceManagementExchangeConnectorSyncTypeVDeltaSync +) + +// DeviceManagementExchangeConnectorType undocumented +type DeviceManagementExchangeConnectorType string + +const ( + // DeviceManagementExchangeConnectorTypeVOnPremises undocumented + DeviceManagementExchangeConnectorTypeVOnPremises DeviceManagementExchangeConnectorType = "onPremises" + // DeviceManagementExchangeConnectorTypeVHosted undocumented + DeviceManagementExchangeConnectorTypeVHosted DeviceManagementExchangeConnectorType = "hosted" + // DeviceManagementExchangeConnectorTypeVServiceToService undocumented + DeviceManagementExchangeConnectorTypeVServiceToService DeviceManagementExchangeConnectorType = "serviceToService" + // DeviceManagementExchangeConnectorTypeVDedicated undocumented + DeviceManagementExchangeConnectorTypeVDedicated DeviceManagementExchangeConnectorType = "dedicated" +) + +var ( + // DeviceManagementExchangeConnectorTypePOnPremises is a pointer to DeviceManagementExchangeConnectorTypeVOnPremises + DeviceManagementExchangeConnectorTypePOnPremises = &_DeviceManagementExchangeConnectorTypePOnPremises + // DeviceManagementExchangeConnectorTypePHosted is a pointer to DeviceManagementExchangeConnectorTypeVHosted + DeviceManagementExchangeConnectorTypePHosted = &_DeviceManagementExchangeConnectorTypePHosted + // DeviceManagementExchangeConnectorTypePServiceToService is a pointer to DeviceManagementExchangeConnectorTypeVServiceToService + DeviceManagementExchangeConnectorTypePServiceToService = &_DeviceManagementExchangeConnectorTypePServiceToService + // DeviceManagementExchangeConnectorTypePDedicated is a pointer to DeviceManagementExchangeConnectorTypeVDedicated + DeviceManagementExchangeConnectorTypePDedicated = &_DeviceManagementExchangeConnectorTypePDedicated +) + +var ( + _DeviceManagementExchangeConnectorTypePOnPremises = DeviceManagementExchangeConnectorTypeVOnPremises + _DeviceManagementExchangeConnectorTypePHosted = DeviceManagementExchangeConnectorTypeVHosted + _DeviceManagementExchangeConnectorTypePServiceToService = DeviceManagementExchangeConnectorTypeVServiceToService + _DeviceManagementExchangeConnectorTypePDedicated = DeviceManagementExchangeConnectorTypeVDedicated +) + +// DeviceManagementPartnerAppType undocumented +type DeviceManagementPartnerAppType string + +const ( + // DeviceManagementPartnerAppTypeVUnknown undocumented + DeviceManagementPartnerAppTypeVUnknown DeviceManagementPartnerAppType = "unknown" + // DeviceManagementPartnerAppTypeVSingleTenantApp undocumented + DeviceManagementPartnerAppTypeVSingleTenantApp DeviceManagementPartnerAppType = "singleTenantApp" + // DeviceManagementPartnerAppTypeVMultiTenantApp undocumented + DeviceManagementPartnerAppTypeVMultiTenantApp DeviceManagementPartnerAppType = "multiTenantApp" +) + +var ( + // DeviceManagementPartnerAppTypePUnknown is a pointer to DeviceManagementPartnerAppTypeVUnknown + DeviceManagementPartnerAppTypePUnknown = &_DeviceManagementPartnerAppTypePUnknown + // DeviceManagementPartnerAppTypePSingleTenantApp is a pointer to DeviceManagementPartnerAppTypeVSingleTenantApp + DeviceManagementPartnerAppTypePSingleTenantApp = &_DeviceManagementPartnerAppTypePSingleTenantApp + // DeviceManagementPartnerAppTypePMultiTenantApp is a pointer to DeviceManagementPartnerAppTypeVMultiTenantApp + DeviceManagementPartnerAppTypePMultiTenantApp = &_DeviceManagementPartnerAppTypePMultiTenantApp +) + +var ( + _DeviceManagementPartnerAppTypePUnknown = DeviceManagementPartnerAppTypeVUnknown + _DeviceManagementPartnerAppTypePSingleTenantApp = DeviceManagementPartnerAppTypeVSingleTenantApp + _DeviceManagementPartnerAppTypePMultiTenantApp = DeviceManagementPartnerAppTypeVMultiTenantApp +) + +// DeviceManagementPartnerTenantState undocumented +type DeviceManagementPartnerTenantState string + +const ( + // DeviceManagementPartnerTenantStateVUnknown undocumented + DeviceManagementPartnerTenantStateVUnknown DeviceManagementPartnerTenantState = "unknown" + // DeviceManagementPartnerTenantStateVUnavailable undocumented + DeviceManagementPartnerTenantStateVUnavailable DeviceManagementPartnerTenantState = "unavailable" + // DeviceManagementPartnerTenantStateVEnabled undocumented + DeviceManagementPartnerTenantStateVEnabled DeviceManagementPartnerTenantState = "enabled" + // DeviceManagementPartnerTenantStateVTerminated undocumented + DeviceManagementPartnerTenantStateVTerminated DeviceManagementPartnerTenantState = "terminated" + // DeviceManagementPartnerTenantStateVRejected undocumented + DeviceManagementPartnerTenantStateVRejected DeviceManagementPartnerTenantState = "rejected" + // DeviceManagementPartnerTenantStateVUnresponsive undocumented + DeviceManagementPartnerTenantStateVUnresponsive DeviceManagementPartnerTenantState = "unresponsive" +) + +var ( + // DeviceManagementPartnerTenantStatePUnknown is a pointer to DeviceManagementPartnerTenantStateVUnknown + DeviceManagementPartnerTenantStatePUnknown = &_DeviceManagementPartnerTenantStatePUnknown + // DeviceManagementPartnerTenantStatePUnavailable is a pointer to DeviceManagementPartnerTenantStateVUnavailable + DeviceManagementPartnerTenantStatePUnavailable = &_DeviceManagementPartnerTenantStatePUnavailable + // DeviceManagementPartnerTenantStatePEnabled is a pointer to DeviceManagementPartnerTenantStateVEnabled + DeviceManagementPartnerTenantStatePEnabled = &_DeviceManagementPartnerTenantStatePEnabled + // DeviceManagementPartnerTenantStatePTerminated is a pointer to DeviceManagementPartnerTenantStateVTerminated + DeviceManagementPartnerTenantStatePTerminated = &_DeviceManagementPartnerTenantStatePTerminated + // DeviceManagementPartnerTenantStatePRejected is a pointer to DeviceManagementPartnerTenantStateVRejected + DeviceManagementPartnerTenantStatePRejected = &_DeviceManagementPartnerTenantStatePRejected + // DeviceManagementPartnerTenantStatePUnresponsive is a pointer to DeviceManagementPartnerTenantStateVUnresponsive + DeviceManagementPartnerTenantStatePUnresponsive = &_DeviceManagementPartnerTenantStatePUnresponsive +) + +var ( + _DeviceManagementPartnerTenantStatePUnknown = DeviceManagementPartnerTenantStateVUnknown + _DeviceManagementPartnerTenantStatePUnavailable = DeviceManagementPartnerTenantStateVUnavailable + _DeviceManagementPartnerTenantStatePEnabled = DeviceManagementPartnerTenantStateVEnabled + _DeviceManagementPartnerTenantStatePTerminated = DeviceManagementPartnerTenantStateVTerminated + _DeviceManagementPartnerTenantStatePRejected = DeviceManagementPartnerTenantStateVRejected + _DeviceManagementPartnerTenantStatePUnresponsive = DeviceManagementPartnerTenantStateVUnresponsive +) + +// DeviceManagementReportFileFormat undocumented +type DeviceManagementReportFileFormat string + +const ( + // DeviceManagementReportFileFormatVCsv undocumented + DeviceManagementReportFileFormatVCsv DeviceManagementReportFileFormat = "csv" + // DeviceManagementReportFileFormatVPdf undocumented + DeviceManagementReportFileFormatVPdf DeviceManagementReportFileFormat = "pdf" +) + +var ( + // DeviceManagementReportFileFormatPCsv is a pointer to DeviceManagementReportFileFormatVCsv + DeviceManagementReportFileFormatPCsv = &_DeviceManagementReportFileFormatPCsv + // DeviceManagementReportFileFormatPPdf is a pointer to DeviceManagementReportFileFormatVPdf + DeviceManagementReportFileFormatPPdf = &_DeviceManagementReportFileFormatPPdf +) + +var ( + _DeviceManagementReportFileFormatPCsv = DeviceManagementReportFileFormatVCsv + _DeviceManagementReportFileFormatPPdf = DeviceManagementReportFileFormatVPdf +) + +// DeviceManagementReportStatus undocumented +type DeviceManagementReportStatus string + +const ( + // DeviceManagementReportStatusVUnknown undocumented + DeviceManagementReportStatusVUnknown DeviceManagementReportStatus = "unknown" + // DeviceManagementReportStatusVNotStarted undocumented + DeviceManagementReportStatusVNotStarted DeviceManagementReportStatus = "notStarted" + // DeviceManagementReportStatusVInProgress undocumented + DeviceManagementReportStatusVInProgress DeviceManagementReportStatus = "inProgress" + // DeviceManagementReportStatusVCompleted undocumented + DeviceManagementReportStatusVCompleted DeviceManagementReportStatus = "completed" + // DeviceManagementReportStatusVFailed undocumented + DeviceManagementReportStatusVFailed DeviceManagementReportStatus = "failed" +) + +var ( + // DeviceManagementReportStatusPUnknown is a pointer to DeviceManagementReportStatusVUnknown + DeviceManagementReportStatusPUnknown = &_DeviceManagementReportStatusPUnknown + // DeviceManagementReportStatusPNotStarted is a pointer to DeviceManagementReportStatusVNotStarted + DeviceManagementReportStatusPNotStarted = &_DeviceManagementReportStatusPNotStarted + // DeviceManagementReportStatusPInProgress is a pointer to DeviceManagementReportStatusVInProgress + DeviceManagementReportStatusPInProgress = &_DeviceManagementReportStatusPInProgress + // DeviceManagementReportStatusPCompleted is a pointer to DeviceManagementReportStatusVCompleted + DeviceManagementReportStatusPCompleted = &_DeviceManagementReportStatusPCompleted + // DeviceManagementReportStatusPFailed is a pointer to DeviceManagementReportStatusVFailed + DeviceManagementReportStatusPFailed = &_DeviceManagementReportStatusPFailed +) + +var ( + _DeviceManagementReportStatusPUnknown = DeviceManagementReportStatusVUnknown + _DeviceManagementReportStatusPNotStarted = DeviceManagementReportStatusVNotStarted + _DeviceManagementReportStatusPInProgress = DeviceManagementReportStatusVInProgress + _DeviceManagementReportStatusPCompleted = DeviceManagementReportStatusVCompleted + _DeviceManagementReportStatusPFailed = DeviceManagementReportStatusVFailed +) + +// DeviceManagementScheduledReportRecurrence undocumented +type DeviceManagementScheduledReportRecurrence string + +const ( + // DeviceManagementScheduledReportRecurrenceVNone undocumented + DeviceManagementScheduledReportRecurrenceVNone DeviceManagementScheduledReportRecurrence = "none" + // DeviceManagementScheduledReportRecurrenceVDaily undocumented + DeviceManagementScheduledReportRecurrenceVDaily DeviceManagementScheduledReportRecurrence = "daily" + // DeviceManagementScheduledReportRecurrenceVWeekly undocumented + DeviceManagementScheduledReportRecurrenceVWeekly DeviceManagementScheduledReportRecurrence = "weekly" + // DeviceManagementScheduledReportRecurrenceVMonthly undocumented + DeviceManagementScheduledReportRecurrenceVMonthly DeviceManagementScheduledReportRecurrence = "monthly" +) + +var ( + // DeviceManagementScheduledReportRecurrencePNone is a pointer to DeviceManagementScheduledReportRecurrenceVNone + DeviceManagementScheduledReportRecurrencePNone = &_DeviceManagementScheduledReportRecurrencePNone + // DeviceManagementScheduledReportRecurrencePDaily is a pointer to DeviceManagementScheduledReportRecurrenceVDaily + DeviceManagementScheduledReportRecurrencePDaily = &_DeviceManagementScheduledReportRecurrencePDaily + // DeviceManagementScheduledReportRecurrencePWeekly is a pointer to DeviceManagementScheduledReportRecurrenceVWeekly + DeviceManagementScheduledReportRecurrencePWeekly = &_DeviceManagementScheduledReportRecurrencePWeekly + // DeviceManagementScheduledReportRecurrencePMonthly is a pointer to DeviceManagementScheduledReportRecurrenceVMonthly + DeviceManagementScheduledReportRecurrencePMonthly = &_DeviceManagementScheduledReportRecurrencePMonthly +) + +var ( + _DeviceManagementScheduledReportRecurrencePNone = DeviceManagementScheduledReportRecurrenceVNone + _DeviceManagementScheduledReportRecurrencePDaily = DeviceManagementScheduledReportRecurrenceVDaily + _DeviceManagementScheduledReportRecurrencePWeekly = DeviceManagementScheduledReportRecurrenceVWeekly + _DeviceManagementScheduledReportRecurrencePMonthly = DeviceManagementScheduledReportRecurrenceVMonthly +) + +// DeviceManagementSubscriptionState undocumented +type DeviceManagementSubscriptionState string + +const ( + // DeviceManagementSubscriptionStateVPending undocumented + DeviceManagementSubscriptionStateVPending DeviceManagementSubscriptionState = "pending" + // DeviceManagementSubscriptionStateVActive undocumented + DeviceManagementSubscriptionStateVActive DeviceManagementSubscriptionState = "active" + // DeviceManagementSubscriptionStateVWarning undocumented + DeviceManagementSubscriptionStateVWarning DeviceManagementSubscriptionState = "warning" + // DeviceManagementSubscriptionStateVDisabled undocumented + DeviceManagementSubscriptionStateVDisabled DeviceManagementSubscriptionState = "disabled" + // DeviceManagementSubscriptionStateVDeleted undocumented + DeviceManagementSubscriptionStateVDeleted DeviceManagementSubscriptionState = "deleted" + // DeviceManagementSubscriptionStateVBlocked undocumented + DeviceManagementSubscriptionStateVBlocked DeviceManagementSubscriptionState = "blocked" + // DeviceManagementSubscriptionStateVLockedOut undocumented + DeviceManagementSubscriptionStateVLockedOut DeviceManagementSubscriptionState = "lockedOut" +) + +var ( + // DeviceManagementSubscriptionStatePPending is a pointer to DeviceManagementSubscriptionStateVPending + DeviceManagementSubscriptionStatePPending = &_DeviceManagementSubscriptionStatePPending + // DeviceManagementSubscriptionStatePActive is a pointer to DeviceManagementSubscriptionStateVActive + DeviceManagementSubscriptionStatePActive = &_DeviceManagementSubscriptionStatePActive + // DeviceManagementSubscriptionStatePWarning is a pointer to DeviceManagementSubscriptionStateVWarning + DeviceManagementSubscriptionStatePWarning = &_DeviceManagementSubscriptionStatePWarning + // DeviceManagementSubscriptionStatePDisabled is a pointer to DeviceManagementSubscriptionStateVDisabled + DeviceManagementSubscriptionStatePDisabled = &_DeviceManagementSubscriptionStatePDisabled + // DeviceManagementSubscriptionStatePDeleted is a pointer to DeviceManagementSubscriptionStateVDeleted + DeviceManagementSubscriptionStatePDeleted = &_DeviceManagementSubscriptionStatePDeleted + // DeviceManagementSubscriptionStatePBlocked is a pointer to DeviceManagementSubscriptionStateVBlocked + DeviceManagementSubscriptionStatePBlocked = &_DeviceManagementSubscriptionStatePBlocked + // DeviceManagementSubscriptionStatePLockedOut is a pointer to DeviceManagementSubscriptionStateVLockedOut + DeviceManagementSubscriptionStatePLockedOut = &_DeviceManagementSubscriptionStatePLockedOut +) + +var ( + _DeviceManagementSubscriptionStatePPending = DeviceManagementSubscriptionStateVPending + _DeviceManagementSubscriptionStatePActive = DeviceManagementSubscriptionStateVActive + _DeviceManagementSubscriptionStatePWarning = DeviceManagementSubscriptionStateVWarning + _DeviceManagementSubscriptionStatePDisabled = DeviceManagementSubscriptionStateVDisabled + _DeviceManagementSubscriptionStatePDeleted = DeviceManagementSubscriptionStateVDeleted + _DeviceManagementSubscriptionStatePBlocked = DeviceManagementSubscriptionStateVBlocked + _DeviceManagementSubscriptionStatePLockedOut = DeviceManagementSubscriptionStateVLockedOut +) + +// DeviceManagementSubscriptions undocumented +type DeviceManagementSubscriptions string + +const ( + // DeviceManagementSubscriptionsVNone undocumented + DeviceManagementSubscriptionsVNone DeviceManagementSubscriptions = "none" + // DeviceManagementSubscriptionsVIntune undocumented + DeviceManagementSubscriptionsVIntune DeviceManagementSubscriptions = "intune" + // DeviceManagementSubscriptionsVOffice365 undocumented + DeviceManagementSubscriptionsVOffice365 DeviceManagementSubscriptions = "office365" + // DeviceManagementSubscriptionsVIntunePremium undocumented + DeviceManagementSubscriptionsVIntunePremium DeviceManagementSubscriptions = "intunePremium" + // DeviceManagementSubscriptionsVIntune_EDU undocumented + DeviceManagementSubscriptionsVIntune_EDU DeviceManagementSubscriptions = "intune_EDU" + // DeviceManagementSubscriptionsVIntune_SMB undocumented + DeviceManagementSubscriptionsVIntune_SMB DeviceManagementSubscriptions = "intune_SMB" +) + +var ( + // DeviceManagementSubscriptionsPNone is a pointer to DeviceManagementSubscriptionsVNone + DeviceManagementSubscriptionsPNone = &_DeviceManagementSubscriptionsPNone + // DeviceManagementSubscriptionsPIntune is a pointer to DeviceManagementSubscriptionsVIntune + DeviceManagementSubscriptionsPIntune = &_DeviceManagementSubscriptionsPIntune + // DeviceManagementSubscriptionsPOffice365 is a pointer to DeviceManagementSubscriptionsVOffice365 + DeviceManagementSubscriptionsPOffice365 = &_DeviceManagementSubscriptionsPOffice365 + // DeviceManagementSubscriptionsPIntunePremium is a pointer to DeviceManagementSubscriptionsVIntunePremium + DeviceManagementSubscriptionsPIntunePremium = &_DeviceManagementSubscriptionsPIntunePremium + // DeviceManagementSubscriptionsPIntune_EDU is a pointer to DeviceManagementSubscriptionsVIntune_EDU + DeviceManagementSubscriptionsPIntune_EDU = &_DeviceManagementSubscriptionsPIntune_EDU + // DeviceManagementSubscriptionsPIntune_SMB is a pointer to DeviceManagementSubscriptionsVIntune_SMB + DeviceManagementSubscriptionsPIntune_SMB = &_DeviceManagementSubscriptionsPIntune_SMB +) + +var ( + _DeviceManagementSubscriptionsPNone = DeviceManagementSubscriptionsVNone + _DeviceManagementSubscriptionsPIntune = DeviceManagementSubscriptionsVIntune + _DeviceManagementSubscriptionsPOffice365 = DeviceManagementSubscriptionsVOffice365 + _DeviceManagementSubscriptionsPIntunePremium = DeviceManagementSubscriptionsVIntunePremium + _DeviceManagementSubscriptionsPIntune_EDU = DeviceManagementSubscriptionsVIntune_EDU + _DeviceManagementSubscriptionsPIntune_SMB = DeviceManagementSubscriptionsVIntune_SMB +) + +// DeviceManagementTemplateType undocumented +type DeviceManagementTemplateType string + +const ( + // DeviceManagementTemplateTypeVSecurityBaseline undocumented + DeviceManagementTemplateTypeVSecurityBaseline DeviceManagementTemplateType = "securityBaseline" + // DeviceManagementTemplateTypeVSpecializedDevices undocumented + DeviceManagementTemplateTypeVSpecializedDevices DeviceManagementTemplateType = "specializedDevices" + // DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline undocumented + DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline DeviceManagementTemplateType = "advancedThreatProtectionSecurityBaseline" + // DeviceManagementTemplateTypeVDeviceConfiguration undocumented + DeviceManagementTemplateTypeVDeviceConfiguration DeviceManagementTemplateType = "deviceConfiguration" + // DeviceManagementTemplateTypeVCustom undocumented + DeviceManagementTemplateTypeVCustom DeviceManagementTemplateType = "custom" + // DeviceManagementTemplateTypeVSecurityTemplate undocumented + DeviceManagementTemplateTypeVSecurityTemplate DeviceManagementTemplateType = "securityTemplate" + // DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline undocumented + DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline DeviceManagementTemplateType = "microsoftEdgeSecurityBaseline" + // DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline undocumented + DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline DeviceManagementTemplateType = "microsoftOffice365ProPlusSecurityBaseline" +) + +var ( + // DeviceManagementTemplateTypePSecurityBaseline is a pointer to DeviceManagementTemplateTypeVSecurityBaseline + DeviceManagementTemplateTypePSecurityBaseline = &_DeviceManagementTemplateTypePSecurityBaseline + // DeviceManagementTemplateTypePSpecializedDevices is a pointer to DeviceManagementTemplateTypeVSpecializedDevices + DeviceManagementTemplateTypePSpecializedDevices = &_DeviceManagementTemplateTypePSpecializedDevices + // DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline is a pointer to DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline + DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline = &_DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline + // DeviceManagementTemplateTypePDeviceConfiguration is a pointer to DeviceManagementTemplateTypeVDeviceConfiguration + DeviceManagementTemplateTypePDeviceConfiguration = &_DeviceManagementTemplateTypePDeviceConfiguration + // DeviceManagementTemplateTypePCustom is a pointer to DeviceManagementTemplateTypeVCustom + DeviceManagementTemplateTypePCustom = &_DeviceManagementTemplateTypePCustom + // DeviceManagementTemplateTypePSecurityTemplate is a pointer to DeviceManagementTemplateTypeVSecurityTemplate + DeviceManagementTemplateTypePSecurityTemplate = &_DeviceManagementTemplateTypePSecurityTemplate + // DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline is a pointer to DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline + DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline = &_DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline + // DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline is a pointer to DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline + DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline = &_DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline +) + +var ( + _DeviceManagementTemplateTypePSecurityBaseline = DeviceManagementTemplateTypeVSecurityBaseline + _DeviceManagementTemplateTypePSpecializedDevices = DeviceManagementTemplateTypeVSpecializedDevices + _DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline = DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline + _DeviceManagementTemplateTypePDeviceConfiguration = DeviceManagementTemplateTypeVDeviceConfiguration + _DeviceManagementTemplateTypePCustom = DeviceManagementTemplateTypeVCustom + _DeviceManagementTemplateTypePSecurityTemplate = DeviceManagementTemplateTypeVSecurityTemplate + _DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline = DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline + _DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline = DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline +) + +// DeviceManangementIntentValueType undocumented +type DeviceManangementIntentValueType string + +const ( + // DeviceManangementIntentValueTypeVInteger undocumented + DeviceManangementIntentValueTypeVInteger DeviceManangementIntentValueType = "integer" + // DeviceManangementIntentValueTypeVBoolean undocumented + DeviceManangementIntentValueTypeVBoolean DeviceManangementIntentValueType = "boolean" + // DeviceManangementIntentValueTypeVString undocumented + DeviceManangementIntentValueTypeVString DeviceManangementIntentValueType = "string" + // DeviceManangementIntentValueTypeVComplex undocumented + DeviceManangementIntentValueTypeVComplex DeviceManangementIntentValueType = "complex" + // DeviceManangementIntentValueTypeVCollection undocumented + DeviceManangementIntentValueTypeVCollection DeviceManangementIntentValueType = "collection" + // DeviceManangementIntentValueTypeVAbstractComplex undocumented + DeviceManangementIntentValueTypeVAbstractComplex DeviceManangementIntentValueType = "abstractComplex" +) + +var ( + // DeviceManangementIntentValueTypePInteger is a pointer to DeviceManangementIntentValueTypeVInteger + DeviceManangementIntentValueTypePInteger = &_DeviceManangementIntentValueTypePInteger + // DeviceManangementIntentValueTypePBoolean is a pointer to DeviceManangementIntentValueTypeVBoolean + DeviceManangementIntentValueTypePBoolean = &_DeviceManangementIntentValueTypePBoolean + // DeviceManangementIntentValueTypePString is a pointer to DeviceManangementIntentValueTypeVString + DeviceManangementIntentValueTypePString = &_DeviceManangementIntentValueTypePString + // DeviceManangementIntentValueTypePComplex is a pointer to DeviceManangementIntentValueTypeVComplex + DeviceManangementIntentValueTypePComplex = &_DeviceManangementIntentValueTypePComplex + // DeviceManangementIntentValueTypePCollection is a pointer to DeviceManangementIntentValueTypeVCollection + DeviceManangementIntentValueTypePCollection = &_DeviceManangementIntentValueTypePCollection + // DeviceManangementIntentValueTypePAbstractComplex is a pointer to DeviceManangementIntentValueTypeVAbstractComplex + DeviceManangementIntentValueTypePAbstractComplex = &_DeviceManangementIntentValueTypePAbstractComplex +) + +var ( + _DeviceManangementIntentValueTypePInteger = DeviceManangementIntentValueTypeVInteger + _DeviceManangementIntentValueTypePBoolean = DeviceManangementIntentValueTypeVBoolean + _DeviceManangementIntentValueTypePString = DeviceManangementIntentValueTypeVString + _DeviceManangementIntentValueTypePComplex = DeviceManangementIntentValueTypeVComplex + _DeviceManangementIntentValueTypePCollection = DeviceManangementIntentValueTypeVCollection + _DeviceManangementIntentValueTypePAbstractComplex = DeviceManangementIntentValueTypeVAbstractComplex +) + +// DevicePlatformType undocumented +type DevicePlatformType string + +const ( + // DevicePlatformTypeVAndroid undocumented + DevicePlatformTypeVAndroid DevicePlatformType = "android" + // DevicePlatformTypeVAndroidForWork undocumented + DevicePlatformTypeVAndroidForWork DevicePlatformType = "androidForWork" + // DevicePlatformTypeVIOS undocumented + DevicePlatformTypeVIOS DevicePlatformType = "iOS" + // DevicePlatformTypeVMacOS undocumented + DevicePlatformTypeVMacOS DevicePlatformType = "macOS" + // DevicePlatformTypeVWindowsPhone81 undocumented + DevicePlatformTypeVWindowsPhone81 DevicePlatformType = "windowsPhone81" + // DevicePlatformTypeVWindows81AndLater undocumented + DevicePlatformTypeVWindows81AndLater DevicePlatformType = "windows81AndLater" + // DevicePlatformTypeVWindows10AndLater undocumented + DevicePlatformTypeVWindows10AndLater DevicePlatformType = "windows10AndLater" + // DevicePlatformTypeVAndroidWorkProfile undocumented + DevicePlatformTypeVAndroidWorkProfile DevicePlatformType = "androidWorkProfile" + // DevicePlatformTypeVUnknown undocumented + DevicePlatformTypeVUnknown DevicePlatformType = "unknown" +) + +var ( + // DevicePlatformTypePAndroid is a pointer to DevicePlatformTypeVAndroid + DevicePlatformTypePAndroid = &_DevicePlatformTypePAndroid + // DevicePlatformTypePAndroidForWork is a pointer to DevicePlatformTypeVAndroidForWork + DevicePlatformTypePAndroidForWork = &_DevicePlatformTypePAndroidForWork + // DevicePlatformTypePIOS is a pointer to DevicePlatformTypeVIOS + DevicePlatformTypePIOS = &_DevicePlatformTypePIOS + // DevicePlatformTypePMacOS is a pointer to DevicePlatformTypeVMacOS + DevicePlatformTypePMacOS = &_DevicePlatformTypePMacOS + // DevicePlatformTypePWindowsPhone81 is a pointer to DevicePlatformTypeVWindowsPhone81 + DevicePlatformTypePWindowsPhone81 = &_DevicePlatformTypePWindowsPhone81 + // DevicePlatformTypePWindows81AndLater is a pointer to DevicePlatformTypeVWindows81AndLater + DevicePlatformTypePWindows81AndLater = &_DevicePlatformTypePWindows81AndLater + // DevicePlatformTypePWindows10AndLater is a pointer to DevicePlatformTypeVWindows10AndLater + DevicePlatformTypePWindows10AndLater = &_DevicePlatformTypePWindows10AndLater + // DevicePlatformTypePAndroidWorkProfile is a pointer to DevicePlatformTypeVAndroidWorkProfile + DevicePlatformTypePAndroidWorkProfile = &_DevicePlatformTypePAndroidWorkProfile + // DevicePlatformTypePUnknown is a pointer to DevicePlatformTypeVUnknown + DevicePlatformTypePUnknown = &_DevicePlatformTypePUnknown +) + +var ( + _DevicePlatformTypePAndroid = DevicePlatformTypeVAndroid + _DevicePlatformTypePAndroidForWork = DevicePlatformTypeVAndroidForWork + _DevicePlatformTypePIOS = DevicePlatformTypeVIOS + _DevicePlatformTypePMacOS = DevicePlatformTypeVMacOS + _DevicePlatformTypePWindowsPhone81 = DevicePlatformTypeVWindowsPhone81 + _DevicePlatformTypePWindows81AndLater = DevicePlatformTypeVWindows81AndLater + _DevicePlatformTypePWindows10AndLater = DevicePlatformTypeVWindows10AndLater + _DevicePlatformTypePAndroidWorkProfile = DevicePlatformTypeVAndroidWorkProfile + _DevicePlatformTypePUnknown = DevicePlatformTypeVUnknown +) + +// DeviceRegistrationState undocumented +type DeviceRegistrationState string + +const ( + // DeviceRegistrationStateVNotRegistered undocumented + DeviceRegistrationStateVNotRegistered DeviceRegistrationState = "notRegistered" + // DeviceRegistrationStateVRegistered undocumented + DeviceRegistrationStateVRegistered DeviceRegistrationState = "registered" + // DeviceRegistrationStateVRevoked undocumented + DeviceRegistrationStateVRevoked DeviceRegistrationState = "revoked" + // DeviceRegistrationStateVKeyConflict undocumented + DeviceRegistrationStateVKeyConflict DeviceRegistrationState = "keyConflict" + // DeviceRegistrationStateVApprovalPending undocumented + DeviceRegistrationStateVApprovalPending DeviceRegistrationState = "approvalPending" + // DeviceRegistrationStateVCertificateReset undocumented + DeviceRegistrationStateVCertificateReset DeviceRegistrationState = "certificateReset" + // DeviceRegistrationStateVNotRegisteredPendingEnrollment undocumented + DeviceRegistrationStateVNotRegisteredPendingEnrollment DeviceRegistrationState = "notRegisteredPendingEnrollment" + // DeviceRegistrationStateVUnknown undocumented + DeviceRegistrationStateVUnknown DeviceRegistrationState = "unknown" +) + +var ( + // DeviceRegistrationStatePNotRegistered is a pointer to DeviceRegistrationStateVNotRegistered + DeviceRegistrationStatePNotRegistered = &_DeviceRegistrationStatePNotRegistered + // DeviceRegistrationStatePRegistered is a pointer to DeviceRegistrationStateVRegistered + DeviceRegistrationStatePRegistered = &_DeviceRegistrationStatePRegistered + // DeviceRegistrationStatePRevoked is a pointer to DeviceRegistrationStateVRevoked + DeviceRegistrationStatePRevoked = &_DeviceRegistrationStatePRevoked + // DeviceRegistrationStatePKeyConflict is a pointer to DeviceRegistrationStateVKeyConflict + DeviceRegistrationStatePKeyConflict = &_DeviceRegistrationStatePKeyConflict + // DeviceRegistrationStatePApprovalPending is a pointer to DeviceRegistrationStateVApprovalPending + DeviceRegistrationStatePApprovalPending = &_DeviceRegistrationStatePApprovalPending + // DeviceRegistrationStatePCertificateReset is a pointer to DeviceRegistrationStateVCertificateReset + DeviceRegistrationStatePCertificateReset = &_DeviceRegistrationStatePCertificateReset + // DeviceRegistrationStatePNotRegisteredPendingEnrollment is a pointer to DeviceRegistrationStateVNotRegisteredPendingEnrollment + DeviceRegistrationStatePNotRegisteredPendingEnrollment = &_DeviceRegistrationStatePNotRegisteredPendingEnrollment + // DeviceRegistrationStatePUnknown is a pointer to DeviceRegistrationStateVUnknown + DeviceRegistrationStatePUnknown = &_DeviceRegistrationStatePUnknown +) + +var ( + _DeviceRegistrationStatePNotRegistered = DeviceRegistrationStateVNotRegistered + _DeviceRegistrationStatePRegistered = DeviceRegistrationStateVRegistered + _DeviceRegistrationStatePRevoked = DeviceRegistrationStateVRevoked + _DeviceRegistrationStatePKeyConflict = DeviceRegistrationStateVKeyConflict + _DeviceRegistrationStatePApprovalPending = DeviceRegistrationStateVApprovalPending + _DeviceRegistrationStatePCertificateReset = DeviceRegistrationStateVCertificateReset + _DeviceRegistrationStatePNotRegisteredPendingEnrollment = DeviceRegistrationStateVNotRegisteredPendingEnrollment + _DeviceRegistrationStatePUnknown = DeviceRegistrationStateVUnknown +) + +// DeviceThreatProtectionLevel undocumented +type DeviceThreatProtectionLevel string + +const ( + // DeviceThreatProtectionLevelVUnavailable undocumented + DeviceThreatProtectionLevelVUnavailable DeviceThreatProtectionLevel = "unavailable" + // DeviceThreatProtectionLevelVSecured undocumented + DeviceThreatProtectionLevelVSecured DeviceThreatProtectionLevel = "secured" + // DeviceThreatProtectionLevelVLow undocumented + DeviceThreatProtectionLevelVLow DeviceThreatProtectionLevel = "low" + // DeviceThreatProtectionLevelVMedium undocumented + DeviceThreatProtectionLevelVMedium DeviceThreatProtectionLevel = "medium" + // DeviceThreatProtectionLevelVHigh undocumented + DeviceThreatProtectionLevelVHigh DeviceThreatProtectionLevel = "high" + // DeviceThreatProtectionLevelVNotSet undocumented + DeviceThreatProtectionLevelVNotSet DeviceThreatProtectionLevel = "notSet" +) + +var ( + // DeviceThreatProtectionLevelPUnavailable is a pointer to DeviceThreatProtectionLevelVUnavailable + DeviceThreatProtectionLevelPUnavailable = &_DeviceThreatProtectionLevelPUnavailable + // DeviceThreatProtectionLevelPSecured is a pointer to DeviceThreatProtectionLevelVSecured + DeviceThreatProtectionLevelPSecured = &_DeviceThreatProtectionLevelPSecured + // DeviceThreatProtectionLevelPLow is a pointer to DeviceThreatProtectionLevelVLow + DeviceThreatProtectionLevelPLow = &_DeviceThreatProtectionLevelPLow + // DeviceThreatProtectionLevelPMedium is a pointer to DeviceThreatProtectionLevelVMedium + DeviceThreatProtectionLevelPMedium = &_DeviceThreatProtectionLevelPMedium + // DeviceThreatProtectionLevelPHigh is a pointer to DeviceThreatProtectionLevelVHigh + DeviceThreatProtectionLevelPHigh = &_DeviceThreatProtectionLevelPHigh + // DeviceThreatProtectionLevelPNotSet is a pointer to DeviceThreatProtectionLevelVNotSet + DeviceThreatProtectionLevelPNotSet = &_DeviceThreatProtectionLevelPNotSet +) + +var ( + _DeviceThreatProtectionLevelPUnavailable = DeviceThreatProtectionLevelVUnavailable + _DeviceThreatProtectionLevelPSecured = DeviceThreatProtectionLevelVSecured + _DeviceThreatProtectionLevelPLow = DeviceThreatProtectionLevelVLow + _DeviceThreatProtectionLevelPMedium = DeviceThreatProtectionLevelVMedium + _DeviceThreatProtectionLevelPHigh = DeviceThreatProtectionLevelVHigh + _DeviceThreatProtectionLevelPNotSet = DeviceThreatProtectionLevelVNotSet +) + +// DeviceType undocumented +type DeviceType string + +const ( + // DeviceTypeVDesktop undocumented + DeviceTypeVDesktop DeviceType = "desktop" + // DeviceTypeVWindowsRT undocumented + DeviceTypeVWindowsRT DeviceType = "windowsRT" + // DeviceTypeVWinMO6 undocumented + DeviceTypeVWinMO6 DeviceType = "winMO6" + // DeviceTypeVNokia undocumented + DeviceTypeVNokia DeviceType = "nokia" + // DeviceTypeVWindowsPhone undocumented + DeviceTypeVWindowsPhone DeviceType = "windowsPhone" + // DeviceTypeVMac undocumented + DeviceTypeVMac DeviceType = "mac" + // DeviceTypeVWinCE undocumented + DeviceTypeVWinCE DeviceType = "winCE" + // DeviceTypeVWinEmbedded undocumented + DeviceTypeVWinEmbedded DeviceType = "winEmbedded" + // DeviceTypeVIPhone undocumented + DeviceTypeVIPhone DeviceType = "iPhone" + // DeviceTypeVIPad undocumented + DeviceTypeVIPad DeviceType = "iPad" + // DeviceTypeVIPod undocumented + DeviceTypeVIPod DeviceType = "iPod" + // DeviceTypeVAndroid undocumented + DeviceTypeVAndroid DeviceType = "android" + // DeviceTypeVISocConsumer undocumented + DeviceTypeVISocConsumer DeviceType = "iSocConsumer" + // DeviceTypeVUnix undocumented + DeviceTypeVUnix DeviceType = "unix" + // DeviceTypeVMacMDM undocumented + DeviceTypeVMacMDM DeviceType = "macMDM" + // DeviceTypeVHoloLens undocumented + DeviceTypeVHoloLens DeviceType = "holoLens" + // DeviceTypeVSurfaceHub undocumented + DeviceTypeVSurfaceHub DeviceType = "surfaceHub" + // DeviceTypeVAndroidForWork undocumented + DeviceTypeVAndroidForWork DeviceType = "androidForWork" + // DeviceTypeVAndroidEnterprise undocumented + DeviceTypeVAndroidEnterprise DeviceType = "androidEnterprise" + // DeviceTypeVBlackberry undocumented + DeviceTypeVBlackberry DeviceType = "blackberry" + // DeviceTypeVPalm undocumented + DeviceTypeVPalm DeviceType = "palm" + // DeviceTypeVUnknown undocumented + DeviceTypeVUnknown DeviceType = "unknown" +) + +var ( + // DeviceTypePDesktop is a pointer to DeviceTypeVDesktop + DeviceTypePDesktop = &_DeviceTypePDesktop + // DeviceTypePWindowsRT is a pointer to DeviceTypeVWindowsRT + DeviceTypePWindowsRT = &_DeviceTypePWindowsRT + // DeviceTypePWinMO6 is a pointer to DeviceTypeVWinMO6 + DeviceTypePWinMO6 = &_DeviceTypePWinMO6 + // DeviceTypePNokia is a pointer to DeviceTypeVNokia + DeviceTypePNokia = &_DeviceTypePNokia + // DeviceTypePWindowsPhone is a pointer to DeviceTypeVWindowsPhone + DeviceTypePWindowsPhone = &_DeviceTypePWindowsPhone + // DeviceTypePMac is a pointer to DeviceTypeVMac + DeviceTypePMac = &_DeviceTypePMac + // DeviceTypePWinCE is a pointer to DeviceTypeVWinCE + DeviceTypePWinCE = &_DeviceTypePWinCE + // DeviceTypePWinEmbedded is a pointer to DeviceTypeVWinEmbedded + DeviceTypePWinEmbedded = &_DeviceTypePWinEmbedded + // DeviceTypePIPhone is a pointer to DeviceTypeVIPhone + DeviceTypePIPhone = &_DeviceTypePIPhone + // DeviceTypePIPad is a pointer to DeviceTypeVIPad + DeviceTypePIPad = &_DeviceTypePIPad + // DeviceTypePIPod is a pointer to DeviceTypeVIPod + DeviceTypePIPod = &_DeviceTypePIPod + // DeviceTypePAndroid is a pointer to DeviceTypeVAndroid + DeviceTypePAndroid = &_DeviceTypePAndroid + // DeviceTypePISocConsumer is a pointer to DeviceTypeVISocConsumer + DeviceTypePISocConsumer = &_DeviceTypePISocConsumer + // DeviceTypePUnix is a pointer to DeviceTypeVUnix + DeviceTypePUnix = &_DeviceTypePUnix + // DeviceTypePMacMDM is a pointer to DeviceTypeVMacMDM + DeviceTypePMacMDM = &_DeviceTypePMacMDM + // DeviceTypePHoloLens is a pointer to DeviceTypeVHoloLens + DeviceTypePHoloLens = &_DeviceTypePHoloLens + // DeviceTypePSurfaceHub is a pointer to DeviceTypeVSurfaceHub + DeviceTypePSurfaceHub = &_DeviceTypePSurfaceHub + // DeviceTypePAndroidForWork is a pointer to DeviceTypeVAndroidForWork + DeviceTypePAndroidForWork = &_DeviceTypePAndroidForWork + // DeviceTypePAndroidEnterprise is a pointer to DeviceTypeVAndroidEnterprise + DeviceTypePAndroidEnterprise = &_DeviceTypePAndroidEnterprise + // DeviceTypePBlackberry is a pointer to DeviceTypeVBlackberry + DeviceTypePBlackberry = &_DeviceTypePBlackberry + // DeviceTypePPalm is a pointer to DeviceTypeVPalm + DeviceTypePPalm = &_DeviceTypePPalm + // DeviceTypePUnknown is a pointer to DeviceTypeVUnknown + DeviceTypePUnknown = &_DeviceTypePUnknown +) + +var ( + _DeviceTypePDesktop = DeviceTypeVDesktop + _DeviceTypePWindowsRT = DeviceTypeVWindowsRT + _DeviceTypePWinMO6 = DeviceTypeVWinMO6 + _DeviceTypePNokia = DeviceTypeVNokia + _DeviceTypePWindowsPhone = DeviceTypeVWindowsPhone + _DeviceTypePMac = DeviceTypeVMac + _DeviceTypePWinCE = DeviceTypeVWinCE + _DeviceTypePWinEmbedded = DeviceTypeVWinEmbedded + _DeviceTypePIPhone = DeviceTypeVIPhone + _DeviceTypePIPad = DeviceTypeVIPad + _DeviceTypePIPod = DeviceTypeVIPod + _DeviceTypePAndroid = DeviceTypeVAndroid + _DeviceTypePISocConsumer = DeviceTypeVISocConsumer + _DeviceTypePUnix = DeviceTypeVUnix + _DeviceTypePMacMDM = DeviceTypeVMacMDM + _DeviceTypePHoloLens = DeviceTypeVHoloLens + _DeviceTypePSurfaceHub = DeviceTypeVSurfaceHub + _DeviceTypePAndroidForWork = DeviceTypeVAndroidForWork + _DeviceTypePAndroidEnterprise = DeviceTypeVAndroidEnterprise + _DeviceTypePBlackberry = DeviceTypeVBlackberry + _DeviceTypePPalm = DeviceTypeVPalm + _DeviceTypePUnknown = DeviceTypeVUnknown +) + +// DeviceTypes undocumented +type DeviceTypes string + +const ( + // DeviceTypesVDesktop undocumented + DeviceTypesVDesktop DeviceTypes = "desktop" + // DeviceTypesVWindowsRT undocumented + DeviceTypesVWindowsRT DeviceTypes = "windowsRT" + // DeviceTypesVWinMO6 undocumented + DeviceTypesVWinMO6 DeviceTypes = "winMO6" + // DeviceTypesVNokia undocumented + DeviceTypesVNokia DeviceTypes = "nokia" + // DeviceTypesVWindowsPhone undocumented + DeviceTypesVWindowsPhone DeviceTypes = "windowsPhone" + // DeviceTypesVMac undocumented + DeviceTypesVMac DeviceTypes = "mac" + // DeviceTypesVWinCE undocumented + DeviceTypesVWinCE DeviceTypes = "winCE" + // DeviceTypesVWinEmbedded undocumented + DeviceTypesVWinEmbedded DeviceTypes = "winEmbedded" + // DeviceTypesVIPhone undocumented + DeviceTypesVIPhone DeviceTypes = "iPhone" + // DeviceTypesVIPad undocumented + DeviceTypesVIPad DeviceTypes = "iPad" + // DeviceTypesVIPod undocumented + DeviceTypesVIPod DeviceTypes = "iPod" + // DeviceTypesVAndroid undocumented + DeviceTypesVAndroid DeviceTypes = "android" + // DeviceTypesVISocConsumer undocumented + DeviceTypesVISocConsumer DeviceTypes = "iSocConsumer" + // DeviceTypesVUnix undocumented + DeviceTypesVUnix DeviceTypes = "unix" + // DeviceTypesVMacMDM undocumented + DeviceTypesVMacMDM DeviceTypes = "macMDM" + // DeviceTypesVHoloLens undocumented + DeviceTypesVHoloLens DeviceTypes = "holoLens" + // DeviceTypesVSurfaceHub undocumented + DeviceTypesVSurfaceHub DeviceTypes = "surfaceHub" + // DeviceTypesVAndroidForWork undocumented + DeviceTypesVAndroidForWork DeviceTypes = "androidForWork" + // DeviceTypesVAndroidEnterprise undocumented + DeviceTypesVAndroidEnterprise DeviceTypes = "androidEnterprise" + // DeviceTypesVBlackberry undocumented + DeviceTypesVBlackberry DeviceTypes = "blackberry" + // DeviceTypesVPalm undocumented + DeviceTypesVPalm DeviceTypes = "palm" + // DeviceTypesVUnknown undocumented + DeviceTypesVUnknown DeviceTypes = "unknown" +) + +var ( + // DeviceTypesPDesktop is a pointer to DeviceTypesVDesktop + DeviceTypesPDesktop = &_DeviceTypesPDesktop + // DeviceTypesPWindowsRT is a pointer to DeviceTypesVWindowsRT + DeviceTypesPWindowsRT = &_DeviceTypesPWindowsRT + // DeviceTypesPWinMO6 is a pointer to DeviceTypesVWinMO6 + DeviceTypesPWinMO6 = &_DeviceTypesPWinMO6 + // DeviceTypesPNokia is a pointer to DeviceTypesVNokia + DeviceTypesPNokia = &_DeviceTypesPNokia + // DeviceTypesPWindowsPhone is a pointer to DeviceTypesVWindowsPhone + DeviceTypesPWindowsPhone = &_DeviceTypesPWindowsPhone + // DeviceTypesPMac is a pointer to DeviceTypesVMac + DeviceTypesPMac = &_DeviceTypesPMac + // DeviceTypesPWinCE is a pointer to DeviceTypesVWinCE + DeviceTypesPWinCE = &_DeviceTypesPWinCE + // DeviceTypesPWinEmbedded is a pointer to DeviceTypesVWinEmbedded + DeviceTypesPWinEmbedded = &_DeviceTypesPWinEmbedded + // DeviceTypesPIPhone is a pointer to DeviceTypesVIPhone + DeviceTypesPIPhone = &_DeviceTypesPIPhone + // DeviceTypesPIPad is a pointer to DeviceTypesVIPad + DeviceTypesPIPad = &_DeviceTypesPIPad + // DeviceTypesPIPod is a pointer to DeviceTypesVIPod + DeviceTypesPIPod = &_DeviceTypesPIPod + // DeviceTypesPAndroid is a pointer to DeviceTypesVAndroid + DeviceTypesPAndroid = &_DeviceTypesPAndroid + // DeviceTypesPISocConsumer is a pointer to DeviceTypesVISocConsumer + DeviceTypesPISocConsumer = &_DeviceTypesPISocConsumer + // DeviceTypesPUnix is a pointer to DeviceTypesVUnix + DeviceTypesPUnix = &_DeviceTypesPUnix + // DeviceTypesPMacMDM is a pointer to DeviceTypesVMacMDM + DeviceTypesPMacMDM = &_DeviceTypesPMacMDM + // DeviceTypesPHoloLens is a pointer to DeviceTypesVHoloLens + DeviceTypesPHoloLens = &_DeviceTypesPHoloLens + // DeviceTypesPSurfaceHub is a pointer to DeviceTypesVSurfaceHub + DeviceTypesPSurfaceHub = &_DeviceTypesPSurfaceHub + // DeviceTypesPAndroidForWork is a pointer to DeviceTypesVAndroidForWork + DeviceTypesPAndroidForWork = &_DeviceTypesPAndroidForWork + // DeviceTypesPAndroidEnterprise is a pointer to DeviceTypesVAndroidEnterprise + DeviceTypesPAndroidEnterprise = &_DeviceTypesPAndroidEnterprise + // DeviceTypesPBlackberry is a pointer to DeviceTypesVBlackberry + DeviceTypesPBlackberry = &_DeviceTypesPBlackberry + // DeviceTypesPPalm is a pointer to DeviceTypesVPalm + DeviceTypesPPalm = &_DeviceTypesPPalm + // DeviceTypesPUnknown is a pointer to DeviceTypesVUnknown + DeviceTypesPUnknown = &_DeviceTypesPUnknown +) + +var ( + _DeviceTypesPDesktop = DeviceTypesVDesktop + _DeviceTypesPWindowsRT = DeviceTypesVWindowsRT + _DeviceTypesPWinMO6 = DeviceTypesVWinMO6 + _DeviceTypesPNokia = DeviceTypesVNokia + _DeviceTypesPWindowsPhone = DeviceTypesVWindowsPhone + _DeviceTypesPMac = DeviceTypesVMac + _DeviceTypesPWinCE = DeviceTypesVWinCE + _DeviceTypesPWinEmbedded = DeviceTypesVWinEmbedded + _DeviceTypesPIPhone = DeviceTypesVIPhone + _DeviceTypesPIPad = DeviceTypesVIPad + _DeviceTypesPIPod = DeviceTypesVIPod + _DeviceTypesPAndroid = DeviceTypesVAndroid + _DeviceTypesPISocConsumer = DeviceTypesVISocConsumer + _DeviceTypesPUnix = DeviceTypesVUnix + _DeviceTypesPMacMDM = DeviceTypesVMacMDM + _DeviceTypesPHoloLens = DeviceTypesVHoloLens + _DeviceTypesPSurfaceHub = DeviceTypesVSurfaceHub + _DeviceTypesPAndroidForWork = DeviceTypesVAndroidForWork + _DeviceTypesPAndroidEnterprise = DeviceTypesVAndroidEnterprise + _DeviceTypesPBlackberry = DeviceTypesVBlackberry + _DeviceTypesPPalm = DeviceTypesVPalm + _DeviceTypesPUnknown = DeviceTypesVUnknown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go new file mode 100644 index 00000000..d24a2852 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DiagnosticDataSubmissionMode undocumented +type DiagnosticDataSubmissionMode string + +const ( + // DiagnosticDataSubmissionModeVUserDefined undocumented + DiagnosticDataSubmissionModeVUserDefined DiagnosticDataSubmissionMode = "userDefined" + // DiagnosticDataSubmissionModeVNone undocumented + DiagnosticDataSubmissionModeVNone DiagnosticDataSubmissionMode = "none" + // DiagnosticDataSubmissionModeVBasic undocumented + DiagnosticDataSubmissionModeVBasic DiagnosticDataSubmissionMode = "basic" + // DiagnosticDataSubmissionModeVEnhanced undocumented + DiagnosticDataSubmissionModeVEnhanced DiagnosticDataSubmissionMode = "enhanced" + // DiagnosticDataSubmissionModeVFull undocumented + DiagnosticDataSubmissionModeVFull DiagnosticDataSubmissionMode = "full" +) + +var ( + // DiagnosticDataSubmissionModePUserDefined is a pointer to DiagnosticDataSubmissionModeVUserDefined + DiagnosticDataSubmissionModePUserDefined = &_DiagnosticDataSubmissionModePUserDefined + // DiagnosticDataSubmissionModePNone is a pointer to DiagnosticDataSubmissionModeVNone + DiagnosticDataSubmissionModePNone = &_DiagnosticDataSubmissionModePNone + // DiagnosticDataSubmissionModePBasic is a pointer to DiagnosticDataSubmissionModeVBasic + DiagnosticDataSubmissionModePBasic = &_DiagnosticDataSubmissionModePBasic + // DiagnosticDataSubmissionModePEnhanced is a pointer to DiagnosticDataSubmissionModeVEnhanced + DiagnosticDataSubmissionModePEnhanced = &_DiagnosticDataSubmissionModePEnhanced + // DiagnosticDataSubmissionModePFull is a pointer to DiagnosticDataSubmissionModeVFull + DiagnosticDataSubmissionModePFull = &_DiagnosticDataSubmissionModePFull +) + +var ( + _DiagnosticDataSubmissionModePUserDefined = DiagnosticDataSubmissionModeVUserDefined + _DiagnosticDataSubmissionModePNone = DiagnosticDataSubmissionModeVNone + _DiagnosticDataSubmissionModePBasic = DiagnosticDataSubmissionModeVBasic + _DiagnosticDataSubmissionModePEnhanced = DiagnosticDataSubmissionModeVEnhanced + _DiagnosticDataSubmissionModePFull = DiagnosticDataSubmissionModeVFull +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go new file mode 100644 index 00000000..68f841ab --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DiamondModel undocumented +type DiamondModel string + +const ( + // DiamondModelVUnknown undocumented + DiamondModelVUnknown DiamondModel = "unknown" + // DiamondModelVAdversary undocumented + DiamondModelVAdversary DiamondModel = "adversary" + // DiamondModelVCapability undocumented + DiamondModelVCapability DiamondModel = "capability" + // DiamondModelVInfrastructure undocumented + DiamondModelVInfrastructure DiamondModel = "infrastructure" + // DiamondModelVVictim undocumented + DiamondModelVVictim DiamondModel = "victim" + // DiamondModelVUnknownFutureValue undocumented + DiamondModelVUnknownFutureValue DiamondModel = "unknownFutureValue" +) + +var ( + // DiamondModelPUnknown is a pointer to DiamondModelVUnknown + DiamondModelPUnknown = &_DiamondModelPUnknown + // DiamondModelPAdversary is a pointer to DiamondModelVAdversary + DiamondModelPAdversary = &_DiamondModelPAdversary + // DiamondModelPCapability is a pointer to DiamondModelVCapability + DiamondModelPCapability = &_DiamondModelPCapability + // DiamondModelPInfrastructure is a pointer to DiamondModelVInfrastructure + DiamondModelPInfrastructure = &_DiamondModelPInfrastructure + // DiamondModelPVictim is a pointer to DiamondModelVVictim + DiamondModelPVictim = &_DiamondModelPVictim + // DiamondModelPUnknownFutureValue is a pointer to DiamondModelVUnknownFutureValue + DiamondModelPUnknownFutureValue = &_DiamondModelPUnknownFutureValue +) + +var ( + _DiamondModelPUnknown = DiamondModelVUnknown + _DiamondModelPAdversary = DiamondModelVAdversary + _DiamondModelPCapability = DiamondModelVCapability + _DiamondModelPInfrastructure = DiamondModelVInfrastructure + _DiamondModelPVictim = DiamondModelVVictim + _DiamondModelPUnknownFutureValue = DiamondModelVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go new file mode 100644 index 00000000..5431f8d3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DirectoryDefinitionDiscoverabilities undocumented +type DirectoryDefinitionDiscoverabilities string + +const ( + // DirectoryDefinitionDiscoverabilitiesVNone undocumented + DirectoryDefinitionDiscoverabilitiesVNone DirectoryDefinitionDiscoverabilities = "None" + // DirectoryDefinitionDiscoverabilitiesVAttributeNames undocumented + DirectoryDefinitionDiscoverabilitiesVAttributeNames DirectoryDefinitionDiscoverabilities = "AttributeNames" + // DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes undocumented + DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes DirectoryDefinitionDiscoverabilities = "AttributeDataTypes" + // DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly undocumented + DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly DirectoryDefinitionDiscoverabilities = "AttributeReadOnly" + // DirectoryDefinitionDiscoverabilitiesVReferenceAttributes undocumented + DirectoryDefinitionDiscoverabilitiesVReferenceAttributes DirectoryDefinitionDiscoverabilities = "ReferenceAttributes" + // DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue undocumented + DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue DirectoryDefinitionDiscoverabilities = "UnknownFutureValue" +) + +var ( + // DirectoryDefinitionDiscoverabilitiesPNone is a pointer to DirectoryDefinitionDiscoverabilitiesVNone + DirectoryDefinitionDiscoverabilitiesPNone = &_DirectoryDefinitionDiscoverabilitiesPNone + // DirectoryDefinitionDiscoverabilitiesPAttributeNames is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeNames + DirectoryDefinitionDiscoverabilitiesPAttributeNames = &_DirectoryDefinitionDiscoverabilitiesPAttributeNames + // DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes + DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes = &_DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes + // DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly + DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly = &_DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly + // DirectoryDefinitionDiscoverabilitiesPReferenceAttributes is a pointer to DirectoryDefinitionDiscoverabilitiesVReferenceAttributes + DirectoryDefinitionDiscoverabilitiesPReferenceAttributes = &_DirectoryDefinitionDiscoverabilitiesPReferenceAttributes + // DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue is a pointer to DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue + DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue = &_DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue +) + +var ( + _DirectoryDefinitionDiscoverabilitiesPNone = DirectoryDefinitionDiscoverabilitiesVNone + _DirectoryDefinitionDiscoverabilitiesPAttributeNames = DirectoryDefinitionDiscoverabilitiesVAttributeNames + _DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes = DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes + _DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly = DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly + _DirectoryDefinitionDiscoverabilitiesPReferenceAttributes = DirectoryDefinitionDiscoverabilitiesVReferenceAttributes + _DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue = DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go new file mode 100644 index 00000000..3c830830 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DiscoverySource undocumented +type DiscoverySource string + +const ( + // DiscoverySourceVUnknown undocumented + DiscoverySourceVUnknown DiscoverySource = "unknown" + // DiscoverySourceVAdminImport undocumented + DiscoverySourceVAdminImport DiscoverySource = "adminImport" + // DiscoverySourceVDeviceEnrollmentProgram undocumented + DiscoverySourceVDeviceEnrollmentProgram DiscoverySource = "deviceEnrollmentProgram" +) + +var ( + // DiscoverySourcePUnknown is a pointer to DiscoverySourceVUnknown + DiscoverySourcePUnknown = &_DiscoverySourcePUnknown + // DiscoverySourcePAdminImport is a pointer to DiscoverySourceVAdminImport + DiscoverySourcePAdminImport = &_DiscoverySourcePAdminImport + // DiscoverySourcePDeviceEnrollmentProgram is a pointer to DiscoverySourceVDeviceEnrollmentProgram + DiscoverySourcePDeviceEnrollmentProgram = &_DiscoverySourcePDeviceEnrollmentProgram +) + +var ( + _DiscoverySourcePUnknown = DiscoverySourceVUnknown + _DiscoverySourcePAdminImport = DiscoverySourceVAdminImport + _DiscoverySourcePDeviceEnrollmentProgram = DiscoverySourceVDeviceEnrollmentProgram +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go new file mode 100644 index 00000000..8726d003 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DiskType undocumented +type DiskType string + +const ( + // DiskTypeVUnkown undocumented + DiskTypeVUnkown DiskType = "unkown" + // DiskTypeVHdd undocumented + DiskTypeVHdd DiskType = "hdd" + // DiskTypeVSsd undocumented + DiskTypeVSsd DiskType = "ssd" +) + +var ( + // DiskTypePUnkown is a pointer to DiskTypeVUnkown + DiskTypePUnkown = &_DiskTypePUnkown + // DiskTypePHdd is a pointer to DiskTypeVHdd + DiskTypePHdd = &_DiskTypePHdd + // DiskTypePSsd is a pointer to DiskTypeVSsd + DiskTypePSsd = &_DiskTypePSsd +) + +var ( + _DiskTypePUnkown = DiskTypeVUnkown + _DiskTypePHdd = DiskTypeVHdd + _DiskTypePSsd = DiskTypeVSsd +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go new file mode 100644 index 00000000..449004d4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DlpAction undocumented +type DlpAction string + +const ( + // DlpActionVNotifyUser undocumented + DlpActionVNotifyUser DlpAction = "notifyUser" + // DlpActionVBlockAccess undocumented + DlpActionVBlockAccess DlpAction = "blockAccess" + // DlpActionVDeviceRestriction undocumented + DlpActionVDeviceRestriction DlpAction = "deviceRestriction" +) + +var ( + // DlpActionPNotifyUser is a pointer to DlpActionVNotifyUser + DlpActionPNotifyUser = &_DlpActionPNotifyUser + // DlpActionPBlockAccess is a pointer to DlpActionVBlockAccess + DlpActionPBlockAccess = &_DlpActionPBlockAccess + // DlpActionPDeviceRestriction is a pointer to DlpActionVDeviceRestriction + DlpActionPDeviceRestriction = &_DlpActionPDeviceRestriction +) + +var ( + _DlpActionPNotifyUser = DlpActionVNotifyUser + _DlpActionPBlockAccess = DlpActionVBlockAccess + _DlpActionPDeviceRestriction = DlpActionVDeviceRestriction +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go new file mode 100644 index 00000000..7fa753ed --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DomainNameSource undocumented +type DomainNameSource string + +const ( + // DomainNameSourceVFullDomainName undocumented + DomainNameSourceVFullDomainName DomainNameSource = "fullDomainName" + // DomainNameSourceVNetBiosDomainName undocumented + DomainNameSourceVNetBiosDomainName DomainNameSource = "netBiosDomainName" +) + +var ( + // DomainNameSourcePFullDomainName is a pointer to DomainNameSourceVFullDomainName + DomainNameSourcePFullDomainName = &_DomainNameSourcePFullDomainName + // DomainNameSourcePNetBiosDomainName is a pointer to DomainNameSourceVNetBiosDomainName + DomainNameSourcePNetBiosDomainName = &_DomainNameSourcePNetBiosDomainName +) + +var ( + _DomainNameSourcePFullDomainName = DomainNameSourceVFullDomainName + _DomainNameSourcePNetBiosDomainName = DomainNameSourceVNetBiosDomainName +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go new file mode 100644 index 00000000..a813676c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go @@ -0,0 +1,77 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EapFastConfiguration undocumented +type EapFastConfiguration string + +const ( + // EapFastConfigurationVNoProtectedAccessCredential undocumented + EapFastConfigurationVNoProtectedAccessCredential EapFastConfiguration = "noProtectedAccessCredential" + // EapFastConfigurationVUseProtectedAccessCredential undocumented + EapFastConfigurationVUseProtectedAccessCredential EapFastConfiguration = "useProtectedAccessCredential" + // EapFastConfigurationVUseProtectedAccessCredentialAndProvision undocumented + EapFastConfigurationVUseProtectedAccessCredentialAndProvision EapFastConfiguration = "useProtectedAccessCredentialAndProvision" + // EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously undocumented + EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously EapFastConfiguration = "useProtectedAccessCredentialAndProvisionAnonymously" +) + +var ( + // EapFastConfigurationPNoProtectedAccessCredential is a pointer to EapFastConfigurationVNoProtectedAccessCredential + EapFastConfigurationPNoProtectedAccessCredential = &_EapFastConfigurationPNoProtectedAccessCredential + // EapFastConfigurationPUseProtectedAccessCredential is a pointer to EapFastConfigurationVUseProtectedAccessCredential + EapFastConfigurationPUseProtectedAccessCredential = &_EapFastConfigurationPUseProtectedAccessCredential + // EapFastConfigurationPUseProtectedAccessCredentialAndProvision is a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvision + EapFastConfigurationPUseProtectedAccessCredentialAndProvision = &_EapFastConfigurationPUseProtectedAccessCredentialAndProvision + // EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously is a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously + EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously = &_EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously +) + +var ( + _EapFastConfigurationPNoProtectedAccessCredential = EapFastConfigurationVNoProtectedAccessCredential + _EapFastConfigurationPUseProtectedAccessCredential = EapFastConfigurationVUseProtectedAccessCredential + _EapFastConfigurationPUseProtectedAccessCredentialAndProvision = EapFastConfigurationVUseProtectedAccessCredentialAndProvision + _EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously = EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously +) + +// EapType undocumented +type EapType string + +const ( + // EapTypeVEapTLS undocumented + EapTypeVEapTLS EapType = "eapTls" + // EapTypeVLeap undocumented + EapTypeVLeap EapType = "leap" + // EapTypeVEapSim undocumented + EapTypeVEapSim EapType = "eapSim" + // EapTypeVEapTtls undocumented + EapTypeVEapTtls EapType = "eapTtls" + // EapTypeVPeap undocumented + EapTypeVPeap EapType = "peap" + // EapTypeVEapFast undocumented + EapTypeVEapFast EapType = "eapFast" +) + +var ( + // EapTypePEapTLS is a pointer to EapTypeVEapTLS + EapTypePEapTLS = &_EapTypePEapTLS + // EapTypePLeap is a pointer to EapTypeVLeap + EapTypePLeap = &_EapTypePLeap + // EapTypePEapSim is a pointer to EapTypeVEapSim + EapTypePEapSim = &_EapTypePEapSim + // EapTypePEapTtls is a pointer to EapTypeVEapTtls + EapTypePEapTtls = &_EapTypePEapTtls + // EapTypePPeap is a pointer to EapTypeVPeap + EapTypePPeap = &_EapTypePPeap + // EapTypePEapFast is a pointer to EapTypeVEapFast + EapTypePEapFast = &_EapTypePEapFast +) + +var ( + _EapTypePEapTLS = EapTypeVEapTLS + _EapTypePLeap = EapTypeVLeap + _EapTypePEapSim = EapTypeVEapSim + _EapTypePEapTtls = EapTypeVEapTtls + _EapTypePPeap = EapTypeVPeap + _EapTypePEapFast = EapTypeVEapFast +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go new file mode 100644 index 00000000..e7d91544 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go @@ -0,0 +1,72 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EasAuthenticationMethod undocumented +type EasAuthenticationMethod string + +const ( + // EasAuthenticationMethodVUsernameAndPassword undocumented + EasAuthenticationMethodVUsernameAndPassword EasAuthenticationMethod = "usernameAndPassword" + // EasAuthenticationMethodVCertificate undocumented + EasAuthenticationMethodVCertificate EasAuthenticationMethod = "certificate" + // EasAuthenticationMethodVDerivedCredential undocumented + EasAuthenticationMethodVDerivedCredential EasAuthenticationMethod = "derivedCredential" +) + +var ( + // EasAuthenticationMethodPUsernameAndPassword is a pointer to EasAuthenticationMethodVUsernameAndPassword + EasAuthenticationMethodPUsernameAndPassword = &_EasAuthenticationMethodPUsernameAndPassword + // EasAuthenticationMethodPCertificate is a pointer to EasAuthenticationMethodVCertificate + EasAuthenticationMethodPCertificate = &_EasAuthenticationMethodPCertificate + // EasAuthenticationMethodPDerivedCredential is a pointer to EasAuthenticationMethodVDerivedCredential + EasAuthenticationMethodPDerivedCredential = &_EasAuthenticationMethodPDerivedCredential +) + +var ( + _EasAuthenticationMethodPUsernameAndPassword = EasAuthenticationMethodVUsernameAndPassword + _EasAuthenticationMethodPCertificate = EasAuthenticationMethodVCertificate + _EasAuthenticationMethodPDerivedCredential = EasAuthenticationMethodVDerivedCredential +) + +// EasServices undocumented +type EasServices string + +const ( + // EasServicesVNone undocumented + EasServicesVNone EasServices = "none" + // EasServicesVCalendars undocumented + EasServicesVCalendars EasServices = "calendars" + // EasServicesVContacts undocumented + EasServicesVContacts EasServices = "contacts" + // EasServicesVEmail undocumented + EasServicesVEmail EasServices = "email" + // EasServicesVNotes undocumented + EasServicesVNotes EasServices = "notes" + // EasServicesVReminders undocumented + EasServicesVReminders EasServices = "reminders" +) + +var ( + // EasServicesPNone is a pointer to EasServicesVNone + EasServicesPNone = &_EasServicesPNone + // EasServicesPCalendars is a pointer to EasServicesVCalendars + EasServicesPCalendars = &_EasServicesPCalendars + // EasServicesPContacts is a pointer to EasServicesVContacts + EasServicesPContacts = &_EasServicesPContacts + // EasServicesPEmail is a pointer to EasServicesVEmail + EasServicesPEmail = &_EasServicesPEmail + // EasServicesPNotes is a pointer to EasServicesVNotes + EasServicesPNotes = &_EasServicesPNotes + // EasServicesPReminders is a pointer to EasServicesVReminders + EasServicesPReminders = &_EasServicesPReminders +) + +var ( + _EasServicesPNone = EasServicesVNone + _EasServicesPCalendars = EasServicesVCalendars + _EasServicesPContacts = EasServicesVContacts + _EasServicesPEmail = EasServicesVEmail + _EasServicesPNotes = EasServicesVNotes + _EasServicesPReminders = EasServicesVReminders +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go new file mode 100644 index 00000000..d08288b4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go @@ -0,0 +1,163 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EdgeCookiePolicy undocumented +type EdgeCookiePolicy string + +const ( + // EdgeCookiePolicyVUserDefined undocumented + EdgeCookiePolicyVUserDefined EdgeCookiePolicy = "userDefined" + // EdgeCookiePolicyVAllow undocumented + EdgeCookiePolicyVAllow EdgeCookiePolicy = "allow" + // EdgeCookiePolicyVBlockThirdParty undocumented + EdgeCookiePolicyVBlockThirdParty EdgeCookiePolicy = "blockThirdParty" + // EdgeCookiePolicyVBlockAll undocumented + EdgeCookiePolicyVBlockAll EdgeCookiePolicy = "blockAll" +) + +var ( + // EdgeCookiePolicyPUserDefined is a pointer to EdgeCookiePolicyVUserDefined + EdgeCookiePolicyPUserDefined = &_EdgeCookiePolicyPUserDefined + // EdgeCookiePolicyPAllow is a pointer to EdgeCookiePolicyVAllow + EdgeCookiePolicyPAllow = &_EdgeCookiePolicyPAllow + // EdgeCookiePolicyPBlockThirdParty is a pointer to EdgeCookiePolicyVBlockThirdParty + EdgeCookiePolicyPBlockThirdParty = &_EdgeCookiePolicyPBlockThirdParty + // EdgeCookiePolicyPBlockAll is a pointer to EdgeCookiePolicyVBlockAll + EdgeCookiePolicyPBlockAll = &_EdgeCookiePolicyPBlockAll +) + +var ( + _EdgeCookiePolicyPUserDefined = EdgeCookiePolicyVUserDefined + _EdgeCookiePolicyPAllow = EdgeCookiePolicyVAllow + _EdgeCookiePolicyPBlockThirdParty = EdgeCookiePolicyVBlockThirdParty + _EdgeCookiePolicyPBlockAll = EdgeCookiePolicyVBlockAll +) + +// EdgeKioskModeRestrictionType undocumented +type EdgeKioskModeRestrictionType string + +const ( + // EdgeKioskModeRestrictionTypeVNotConfigured undocumented + EdgeKioskModeRestrictionTypeVNotConfigured EdgeKioskModeRestrictionType = "notConfigured" + // EdgeKioskModeRestrictionTypeVDigitalSignage undocumented + EdgeKioskModeRestrictionTypeVDigitalSignage EdgeKioskModeRestrictionType = "digitalSignage" + // EdgeKioskModeRestrictionTypeVNormalMode undocumented + EdgeKioskModeRestrictionTypeVNormalMode EdgeKioskModeRestrictionType = "normalMode" + // EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp undocumented + EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp EdgeKioskModeRestrictionType = "publicBrowsingSingleApp" + // EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp undocumented + EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp EdgeKioskModeRestrictionType = "publicBrowsingMultiApp" +) + +var ( + // EdgeKioskModeRestrictionTypePNotConfigured is a pointer to EdgeKioskModeRestrictionTypeVNotConfigured + EdgeKioskModeRestrictionTypePNotConfigured = &_EdgeKioskModeRestrictionTypePNotConfigured + // EdgeKioskModeRestrictionTypePDigitalSignage is a pointer to EdgeKioskModeRestrictionTypeVDigitalSignage + EdgeKioskModeRestrictionTypePDigitalSignage = &_EdgeKioskModeRestrictionTypePDigitalSignage + // EdgeKioskModeRestrictionTypePNormalMode is a pointer to EdgeKioskModeRestrictionTypeVNormalMode + EdgeKioskModeRestrictionTypePNormalMode = &_EdgeKioskModeRestrictionTypePNormalMode + // EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp is a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp + EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp = &_EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp + // EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp is a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp + EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp = &_EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp +) + +var ( + _EdgeKioskModeRestrictionTypePNotConfigured = EdgeKioskModeRestrictionTypeVNotConfigured + _EdgeKioskModeRestrictionTypePDigitalSignage = EdgeKioskModeRestrictionTypeVDigitalSignage + _EdgeKioskModeRestrictionTypePNormalMode = EdgeKioskModeRestrictionTypeVNormalMode + _EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp = EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp + _EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp = EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp +) + +// EdgeOpenOptions undocumented +type EdgeOpenOptions string + +const ( + // EdgeOpenOptionsVNotConfigured undocumented + EdgeOpenOptionsVNotConfigured EdgeOpenOptions = "notConfigured" + // EdgeOpenOptionsVStartPage undocumented + EdgeOpenOptionsVStartPage EdgeOpenOptions = "startPage" + // EdgeOpenOptionsVNewTabPage undocumented + EdgeOpenOptionsVNewTabPage EdgeOpenOptions = "newTabPage" + // EdgeOpenOptionsVPreviousPages undocumented + EdgeOpenOptionsVPreviousPages EdgeOpenOptions = "previousPages" + // EdgeOpenOptionsVSpecificPages undocumented + EdgeOpenOptionsVSpecificPages EdgeOpenOptions = "specificPages" +) + +var ( + // EdgeOpenOptionsPNotConfigured is a pointer to EdgeOpenOptionsVNotConfigured + EdgeOpenOptionsPNotConfigured = &_EdgeOpenOptionsPNotConfigured + // EdgeOpenOptionsPStartPage is a pointer to EdgeOpenOptionsVStartPage + EdgeOpenOptionsPStartPage = &_EdgeOpenOptionsPStartPage + // EdgeOpenOptionsPNewTabPage is a pointer to EdgeOpenOptionsVNewTabPage + EdgeOpenOptionsPNewTabPage = &_EdgeOpenOptionsPNewTabPage + // EdgeOpenOptionsPPreviousPages is a pointer to EdgeOpenOptionsVPreviousPages + EdgeOpenOptionsPPreviousPages = &_EdgeOpenOptionsPPreviousPages + // EdgeOpenOptionsPSpecificPages is a pointer to EdgeOpenOptionsVSpecificPages + EdgeOpenOptionsPSpecificPages = &_EdgeOpenOptionsPSpecificPages +) + +var ( + _EdgeOpenOptionsPNotConfigured = EdgeOpenOptionsVNotConfigured + _EdgeOpenOptionsPStartPage = EdgeOpenOptionsVStartPage + _EdgeOpenOptionsPNewTabPage = EdgeOpenOptionsVNewTabPage + _EdgeOpenOptionsPPreviousPages = EdgeOpenOptionsVPreviousPages + _EdgeOpenOptionsPSpecificPages = EdgeOpenOptionsVSpecificPages +) + +// EdgeSearchEngineType undocumented +type EdgeSearchEngineType string + +const ( + // EdgeSearchEngineTypeVDefault undocumented + EdgeSearchEngineTypeVDefault EdgeSearchEngineType = "default" + // EdgeSearchEngineTypeVBing undocumented + EdgeSearchEngineTypeVBing EdgeSearchEngineType = "bing" +) + +var ( + // EdgeSearchEngineTypePDefault is a pointer to EdgeSearchEngineTypeVDefault + EdgeSearchEngineTypePDefault = &_EdgeSearchEngineTypePDefault + // EdgeSearchEngineTypePBing is a pointer to EdgeSearchEngineTypeVBing + EdgeSearchEngineTypePBing = &_EdgeSearchEngineTypePBing +) + +var ( + _EdgeSearchEngineTypePDefault = EdgeSearchEngineTypeVDefault + _EdgeSearchEngineTypePBing = EdgeSearchEngineTypeVBing +) + +// EdgeTelemetryMode undocumented +type EdgeTelemetryMode string + +const ( + // EdgeTelemetryModeVNotConfigured undocumented + EdgeTelemetryModeVNotConfigured EdgeTelemetryMode = "notConfigured" + // EdgeTelemetryModeVIntranet undocumented + EdgeTelemetryModeVIntranet EdgeTelemetryMode = "intranet" + // EdgeTelemetryModeVInternet undocumented + EdgeTelemetryModeVInternet EdgeTelemetryMode = "internet" + // EdgeTelemetryModeVIntranetAndInternet undocumented + EdgeTelemetryModeVIntranetAndInternet EdgeTelemetryMode = "intranetAndInternet" +) + +var ( + // EdgeTelemetryModePNotConfigured is a pointer to EdgeTelemetryModeVNotConfigured + EdgeTelemetryModePNotConfigured = &_EdgeTelemetryModePNotConfigured + // EdgeTelemetryModePIntranet is a pointer to EdgeTelemetryModeVIntranet + EdgeTelemetryModePIntranet = &_EdgeTelemetryModePIntranet + // EdgeTelemetryModePInternet is a pointer to EdgeTelemetryModeVInternet + EdgeTelemetryModePInternet = &_EdgeTelemetryModePInternet + // EdgeTelemetryModePIntranetAndInternet is a pointer to EdgeTelemetryModeVIntranetAndInternet + EdgeTelemetryModePIntranetAndInternet = &_EdgeTelemetryModePIntranetAndInternet +) + +var ( + _EdgeTelemetryModePNotConfigured = EdgeTelemetryModeVNotConfigured + _EdgeTelemetryModePIntranet = EdgeTelemetryModeVIntranet + _EdgeTelemetryModePInternet = EdgeTelemetryModeVInternet + _EdgeTelemetryModePIntranetAndInternet = EdgeTelemetryModeVIntranetAndInternet +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go new file mode 100644 index 00000000..0f27aeec --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EditionUpgradeLicenseType undocumented +type EditionUpgradeLicenseType string + +const ( + // EditionUpgradeLicenseTypeVProductKey undocumented + EditionUpgradeLicenseTypeVProductKey EditionUpgradeLicenseType = "productKey" + // EditionUpgradeLicenseTypeVLicenseFile undocumented + EditionUpgradeLicenseTypeVLicenseFile EditionUpgradeLicenseType = "licenseFile" + // EditionUpgradeLicenseTypeVNotConfigured undocumented + EditionUpgradeLicenseTypeVNotConfigured EditionUpgradeLicenseType = "notConfigured" +) + +var ( + // EditionUpgradeLicenseTypePProductKey is a pointer to EditionUpgradeLicenseTypeVProductKey + EditionUpgradeLicenseTypePProductKey = &_EditionUpgradeLicenseTypePProductKey + // EditionUpgradeLicenseTypePLicenseFile is a pointer to EditionUpgradeLicenseTypeVLicenseFile + EditionUpgradeLicenseTypePLicenseFile = &_EditionUpgradeLicenseTypePLicenseFile + // EditionUpgradeLicenseTypePNotConfigured is a pointer to EditionUpgradeLicenseTypeVNotConfigured + EditionUpgradeLicenseTypePNotConfigured = &_EditionUpgradeLicenseTypePNotConfigured +) + +var ( + _EditionUpgradeLicenseTypePProductKey = EditionUpgradeLicenseTypeVProductKey + _EditionUpgradeLicenseTypePLicenseFile = EditionUpgradeLicenseTypeVLicenseFile + _EditionUpgradeLicenseTypePNotConfigured = EditionUpgradeLicenseTypeVNotConfigured +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go new file mode 100644 index 00000000..a784198f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go @@ -0,0 +1,257 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EducationAssignmentStatus undocumented +type EducationAssignmentStatus string + +const ( + // EducationAssignmentStatusVDraft undocumented + EducationAssignmentStatusVDraft EducationAssignmentStatus = "draft" + // EducationAssignmentStatusVPublished undocumented + EducationAssignmentStatusVPublished EducationAssignmentStatus = "published" + // EducationAssignmentStatusVAssigned undocumented + EducationAssignmentStatusVAssigned EducationAssignmentStatus = "assigned" + // EducationAssignmentStatusVUnknownFutureValue undocumented + EducationAssignmentStatusVUnknownFutureValue EducationAssignmentStatus = "unknownFutureValue" +) + +var ( + // EducationAssignmentStatusPDraft is a pointer to EducationAssignmentStatusVDraft + EducationAssignmentStatusPDraft = &_EducationAssignmentStatusPDraft + // EducationAssignmentStatusPPublished is a pointer to EducationAssignmentStatusVPublished + EducationAssignmentStatusPPublished = &_EducationAssignmentStatusPPublished + // EducationAssignmentStatusPAssigned is a pointer to EducationAssignmentStatusVAssigned + EducationAssignmentStatusPAssigned = &_EducationAssignmentStatusPAssigned + // EducationAssignmentStatusPUnknownFutureValue is a pointer to EducationAssignmentStatusVUnknownFutureValue + EducationAssignmentStatusPUnknownFutureValue = &_EducationAssignmentStatusPUnknownFutureValue +) + +var ( + _EducationAssignmentStatusPDraft = EducationAssignmentStatusVDraft + _EducationAssignmentStatusPPublished = EducationAssignmentStatusVPublished + _EducationAssignmentStatusPAssigned = EducationAssignmentStatusVAssigned + _EducationAssignmentStatusPUnknownFutureValue = EducationAssignmentStatusVUnknownFutureValue +) + +// EducationExternalSource undocumented +type EducationExternalSource string + +const ( + // EducationExternalSourceVSis undocumented + EducationExternalSourceVSis EducationExternalSource = "sis" + // EducationExternalSourceVManual undocumented + EducationExternalSourceVManual EducationExternalSource = "manual" + // EducationExternalSourceVUnknownFutureValue undocumented + EducationExternalSourceVUnknownFutureValue EducationExternalSource = "unknownFutureValue" +) + +var ( + // EducationExternalSourcePSis is a pointer to EducationExternalSourceVSis + EducationExternalSourcePSis = &_EducationExternalSourcePSis + // EducationExternalSourcePManual is a pointer to EducationExternalSourceVManual + EducationExternalSourcePManual = &_EducationExternalSourcePManual + // EducationExternalSourcePUnknownFutureValue is a pointer to EducationExternalSourceVUnknownFutureValue + EducationExternalSourcePUnknownFutureValue = &_EducationExternalSourcePUnknownFutureValue +) + +var ( + _EducationExternalSourcePSis = EducationExternalSourceVSis + _EducationExternalSourcePManual = EducationExternalSourceVManual + _EducationExternalSourcePUnknownFutureValue = EducationExternalSourceVUnknownFutureValue +) + +// EducationGender undocumented +type EducationGender string + +const ( + // EducationGenderVFemale undocumented + EducationGenderVFemale EducationGender = "female" + // EducationGenderVMale undocumented + EducationGenderVMale EducationGender = "male" + // EducationGenderVOther undocumented + EducationGenderVOther EducationGender = "other" + // EducationGenderVUnknownFutureValue undocumented + EducationGenderVUnknownFutureValue EducationGender = "unknownFutureValue" +) + +var ( + // EducationGenderPFemale is a pointer to EducationGenderVFemale + EducationGenderPFemale = &_EducationGenderPFemale + // EducationGenderPMale is a pointer to EducationGenderVMale + EducationGenderPMale = &_EducationGenderPMale + // EducationGenderPOther is a pointer to EducationGenderVOther + EducationGenderPOther = &_EducationGenderPOther + // EducationGenderPUnknownFutureValue is a pointer to EducationGenderVUnknownFutureValue + EducationGenderPUnknownFutureValue = &_EducationGenderPUnknownFutureValue +) + +var ( + _EducationGenderPFemale = EducationGenderVFemale + _EducationGenderPMale = EducationGenderVMale + _EducationGenderPOther = EducationGenderVOther + _EducationGenderPUnknownFutureValue = EducationGenderVUnknownFutureValue +) + +// EducationSubmissionStatus undocumented +type EducationSubmissionStatus string + +const ( + // EducationSubmissionStatusVWorking undocumented + EducationSubmissionStatusVWorking EducationSubmissionStatus = "working" + // EducationSubmissionStatusVSubmitted undocumented + EducationSubmissionStatusVSubmitted EducationSubmissionStatus = "submitted" + // EducationSubmissionStatusVReleased undocumented + EducationSubmissionStatusVReleased EducationSubmissionStatus = "released" + // EducationSubmissionStatusVReturned undocumented + EducationSubmissionStatusVReturned EducationSubmissionStatus = "returned" + // EducationSubmissionStatusVUnknownFutureValue undocumented + EducationSubmissionStatusVUnknownFutureValue EducationSubmissionStatus = "unknownFutureValue" +) + +var ( + // EducationSubmissionStatusPWorking is a pointer to EducationSubmissionStatusVWorking + EducationSubmissionStatusPWorking = &_EducationSubmissionStatusPWorking + // EducationSubmissionStatusPSubmitted is a pointer to EducationSubmissionStatusVSubmitted + EducationSubmissionStatusPSubmitted = &_EducationSubmissionStatusPSubmitted + // EducationSubmissionStatusPReleased is a pointer to EducationSubmissionStatusVReleased + EducationSubmissionStatusPReleased = &_EducationSubmissionStatusPReleased + // EducationSubmissionStatusPReturned is a pointer to EducationSubmissionStatusVReturned + EducationSubmissionStatusPReturned = &_EducationSubmissionStatusPReturned + // EducationSubmissionStatusPUnknownFutureValue is a pointer to EducationSubmissionStatusVUnknownFutureValue + EducationSubmissionStatusPUnknownFutureValue = &_EducationSubmissionStatusPUnknownFutureValue +) + +var ( + _EducationSubmissionStatusPWorking = EducationSubmissionStatusVWorking + _EducationSubmissionStatusPSubmitted = EducationSubmissionStatusVSubmitted + _EducationSubmissionStatusPReleased = EducationSubmissionStatusVReleased + _EducationSubmissionStatusPReturned = EducationSubmissionStatusVReturned + _EducationSubmissionStatusPUnknownFutureValue = EducationSubmissionStatusVUnknownFutureValue +) + +// EducationSynchronizationProfileState undocumented +type EducationSynchronizationProfileState string + +const ( + // EducationSynchronizationProfileStateVDeleting undocumented + EducationSynchronizationProfileStateVDeleting EducationSynchronizationProfileState = "deleting" + // EducationSynchronizationProfileStateVDeletionFailed undocumented + EducationSynchronizationProfileStateVDeletionFailed EducationSynchronizationProfileState = "deletionFailed" + // EducationSynchronizationProfileStateVProvisioningFailed undocumented + EducationSynchronizationProfileStateVProvisioningFailed EducationSynchronizationProfileState = "provisioningFailed" + // EducationSynchronizationProfileStateVProvisioned undocumented + EducationSynchronizationProfileStateVProvisioned EducationSynchronizationProfileState = "provisioned" + // EducationSynchronizationProfileStateVProvisioning undocumented + EducationSynchronizationProfileStateVProvisioning EducationSynchronizationProfileState = "provisioning" + // EducationSynchronizationProfileStateVUnknownFutureValue undocumented + EducationSynchronizationProfileStateVUnknownFutureValue EducationSynchronizationProfileState = "unknownFutureValue" +) + +var ( + // EducationSynchronizationProfileStatePDeleting is a pointer to EducationSynchronizationProfileStateVDeleting + EducationSynchronizationProfileStatePDeleting = &_EducationSynchronizationProfileStatePDeleting + // EducationSynchronizationProfileStatePDeletionFailed is a pointer to EducationSynchronizationProfileStateVDeletionFailed + EducationSynchronizationProfileStatePDeletionFailed = &_EducationSynchronizationProfileStatePDeletionFailed + // EducationSynchronizationProfileStatePProvisioningFailed is a pointer to EducationSynchronizationProfileStateVProvisioningFailed + EducationSynchronizationProfileStatePProvisioningFailed = &_EducationSynchronizationProfileStatePProvisioningFailed + // EducationSynchronizationProfileStatePProvisioned is a pointer to EducationSynchronizationProfileStateVProvisioned + EducationSynchronizationProfileStatePProvisioned = &_EducationSynchronizationProfileStatePProvisioned + // EducationSynchronizationProfileStatePProvisioning is a pointer to EducationSynchronizationProfileStateVProvisioning + EducationSynchronizationProfileStatePProvisioning = &_EducationSynchronizationProfileStatePProvisioning + // EducationSynchronizationProfileStatePUnknownFutureValue is a pointer to EducationSynchronizationProfileStateVUnknownFutureValue + EducationSynchronizationProfileStatePUnknownFutureValue = &_EducationSynchronizationProfileStatePUnknownFutureValue +) + +var ( + _EducationSynchronizationProfileStatePDeleting = EducationSynchronizationProfileStateVDeleting + _EducationSynchronizationProfileStatePDeletionFailed = EducationSynchronizationProfileStateVDeletionFailed + _EducationSynchronizationProfileStatePProvisioningFailed = EducationSynchronizationProfileStateVProvisioningFailed + _EducationSynchronizationProfileStatePProvisioned = EducationSynchronizationProfileStateVProvisioned + _EducationSynchronizationProfileStatePProvisioning = EducationSynchronizationProfileStateVProvisioning + _EducationSynchronizationProfileStatePUnknownFutureValue = EducationSynchronizationProfileStateVUnknownFutureValue +) + +// EducationSynchronizationStatus undocumented +type EducationSynchronizationStatus string + +const ( + // EducationSynchronizationStatusVPaused undocumented + EducationSynchronizationStatusVPaused EducationSynchronizationStatus = "paused" + // EducationSynchronizationStatusVInProgress undocumented + EducationSynchronizationStatusVInProgress EducationSynchronizationStatus = "inProgress" + // EducationSynchronizationStatusVSuccess undocumented + EducationSynchronizationStatusVSuccess EducationSynchronizationStatus = "success" + // EducationSynchronizationStatusVError undocumented + EducationSynchronizationStatusVError EducationSynchronizationStatus = "error" + // EducationSynchronizationStatusVValidationError undocumented + EducationSynchronizationStatusVValidationError EducationSynchronizationStatus = "validationError" + // EducationSynchronizationStatusVQuarantined undocumented + EducationSynchronizationStatusVQuarantined EducationSynchronizationStatus = "quarantined" + // EducationSynchronizationStatusVUnknownFutureValue undocumented + EducationSynchronizationStatusVUnknownFutureValue EducationSynchronizationStatus = "unknownFutureValue" +) + +var ( + // EducationSynchronizationStatusPPaused is a pointer to EducationSynchronizationStatusVPaused + EducationSynchronizationStatusPPaused = &_EducationSynchronizationStatusPPaused + // EducationSynchronizationStatusPInProgress is a pointer to EducationSynchronizationStatusVInProgress + EducationSynchronizationStatusPInProgress = &_EducationSynchronizationStatusPInProgress + // EducationSynchronizationStatusPSuccess is a pointer to EducationSynchronizationStatusVSuccess + EducationSynchronizationStatusPSuccess = &_EducationSynchronizationStatusPSuccess + // EducationSynchronizationStatusPError is a pointer to EducationSynchronizationStatusVError + EducationSynchronizationStatusPError = &_EducationSynchronizationStatusPError + // EducationSynchronizationStatusPValidationError is a pointer to EducationSynchronizationStatusVValidationError + EducationSynchronizationStatusPValidationError = &_EducationSynchronizationStatusPValidationError + // EducationSynchronizationStatusPQuarantined is a pointer to EducationSynchronizationStatusVQuarantined + EducationSynchronizationStatusPQuarantined = &_EducationSynchronizationStatusPQuarantined + // EducationSynchronizationStatusPUnknownFutureValue is a pointer to EducationSynchronizationStatusVUnknownFutureValue + EducationSynchronizationStatusPUnknownFutureValue = &_EducationSynchronizationStatusPUnknownFutureValue +) + +var ( + _EducationSynchronizationStatusPPaused = EducationSynchronizationStatusVPaused + _EducationSynchronizationStatusPInProgress = EducationSynchronizationStatusVInProgress + _EducationSynchronizationStatusPSuccess = EducationSynchronizationStatusVSuccess + _EducationSynchronizationStatusPError = EducationSynchronizationStatusVError + _EducationSynchronizationStatusPValidationError = EducationSynchronizationStatusVValidationError + _EducationSynchronizationStatusPQuarantined = EducationSynchronizationStatusVQuarantined + _EducationSynchronizationStatusPUnknownFutureValue = EducationSynchronizationStatusVUnknownFutureValue +) + +// EducationUserRole undocumented +type EducationUserRole string + +const ( + // EducationUserRoleVStudent undocumented + EducationUserRoleVStudent EducationUserRole = "student" + // EducationUserRoleVTeacher undocumented + EducationUserRoleVTeacher EducationUserRole = "teacher" + // EducationUserRoleVNone undocumented + EducationUserRoleVNone EducationUserRole = "none" + // EducationUserRoleVUnknownFutureValue undocumented + EducationUserRoleVUnknownFutureValue EducationUserRole = "unknownFutureValue" + // EducationUserRoleVFaculty undocumented + EducationUserRoleVFaculty EducationUserRole = "faculty" +) + +var ( + // EducationUserRolePStudent is a pointer to EducationUserRoleVStudent + EducationUserRolePStudent = &_EducationUserRolePStudent + // EducationUserRolePTeacher is a pointer to EducationUserRoleVTeacher + EducationUserRolePTeacher = &_EducationUserRolePTeacher + // EducationUserRolePNone is a pointer to EducationUserRoleVNone + EducationUserRolePNone = &_EducationUserRolePNone + // EducationUserRolePUnknownFutureValue is a pointer to EducationUserRoleVUnknownFutureValue + EducationUserRolePUnknownFutureValue = &_EducationUserRolePUnknownFutureValue + // EducationUserRolePFaculty is a pointer to EducationUserRoleVFaculty + EducationUserRolePFaculty = &_EducationUserRolePFaculty +) + +var ( + _EducationUserRolePStudent = EducationUserRoleVStudent + _EducationUserRolePTeacher = EducationUserRoleVTeacher + _EducationUserRolePNone = EducationUserRoleVNone + _EducationUserRolePUnknownFutureValue = EducationUserRoleVUnknownFutureValue + _EducationUserRolePFaculty = EducationUserRoleVFaculty +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go new file mode 100644 index 00000000..27096f13 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go @@ -0,0 +1,193 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EmailCertificateType undocumented +type EmailCertificateType string + +const ( + // EmailCertificateTypeVNone undocumented + EmailCertificateTypeVNone EmailCertificateType = "none" + // EmailCertificateTypeVCertificate undocumented + EmailCertificateTypeVCertificate EmailCertificateType = "certificate" + // EmailCertificateTypeVDerivedCredential undocumented + EmailCertificateTypeVDerivedCredential EmailCertificateType = "derivedCredential" +) + +var ( + // EmailCertificateTypePNone is a pointer to EmailCertificateTypeVNone + EmailCertificateTypePNone = &_EmailCertificateTypePNone + // EmailCertificateTypePCertificate is a pointer to EmailCertificateTypeVCertificate + EmailCertificateTypePCertificate = &_EmailCertificateTypePCertificate + // EmailCertificateTypePDerivedCredential is a pointer to EmailCertificateTypeVDerivedCredential + EmailCertificateTypePDerivedCredential = &_EmailCertificateTypePDerivedCredential +) + +var ( + _EmailCertificateTypePNone = EmailCertificateTypeVNone + _EmailCertificateTypePCertificate = EmailCertificateTypeVCertificate + _EmailCertificateTypePDerivedCredential = EmailCertificateTypeVDerivedCredential +) + +// EmailRole undocumented +type EmailRole string + +const ( + // EmailRoleVUnknown undocumented + EmailRoleVUnknown EmailRole = "unknown" + // EmailRoleVSender undocumented + EmailRoleVSender EmailRole = "sender" + // EmailRoleVRecipient undocumented + EmailRoleVRecipient EmailRole = "recipient" + // EmailRoleVUnknownFutureValue undocumented + EmailRoleVUnknownFutureValue EmailRole = "unknownFutureValue" +) + +var ( + // EmailRolePUnknown is a pointer to EmailRoleVUnknown + EmailRolePUnknown = &_EmailRolePUnknown + // EmailRolePSender is a pointer to EmailRoleVSender + EmailRolePSender = &_EmailRolePSender + // EmailRolePRecipient is a pointer to EmailRoleVRecipient + EmailRolePRecipient = &_EmailRolePRecipient + // EmailRolePUnknownFutureValue is a pointer to EmailRoleVUnknownFutureValue + EmailRolePUnknownFutureValue = &_EmailRolePUnknownFutureValue +) + +var ( + _EmailRolePUnknown = EmailRoleVUnknown + _EmailRolePSender = EmailRoleVSender + _EmailRolePRecipient = EmailRoleVRecipient + _EmailRolePUnknownFutureValue = EmailRoleVUnknownFutureValue +) + +// EmailSyncDuration undocumented +type EmailSyncDuration string + +const ( + // EmailSyncDurationVUserDefined undocumented + EmailSyncDurationVUserDefined EmailSyncDuration = "userDefined" + // EmailSyncDurationVOneDay undocumented + EmailSyncDurationVOneDay EmailSyncDuration = "oneDay" + // EmailSyncDurationVThreeDays undocumented + EmailSyncDurationVThreeDays EmailSyncDuration = "threeDays" + // EmailSyncDurationVOneWeek undocumented + EmailSyncDurationVOneWeek EmailSyncDuration = "oneWeek" + // EmailSyncDurationVTwoWeeks undocumented + EmailSyncDurationVTwoWeeks EmailSyncDuration = "twoWeeks" + // EmailSyncDurationVOneMonth undocumented + EmailSyncDurationVOneMonth EmailSyncDuration = "oneMonth" + // EmailSyncDurationVUnlimited undocumented + EmailSyncDurationVUnlimited EmailSyncDuration = "unlimited" +) + +var ( + // EmailSyncDurationPUserDefined is a pointer to EmailSyncDurationVUserDefined + EmailSyncDurationPUserDefined = &_EmailSyncDurationPUserDefined + // EmailSyncDurationPOneDay is a pointer to EmailSyncDurationVOneDay + EmailSyncDurationPOneDay = &_EmailSyncDurationPOneDay + // EmailSyncDurationPThreeDays is a pointer to EmailSyncDurationVThreeDays + EmailSyncDurationPThreeDays = &_EmailSyncDurationPThreeDays + // EmailSyncDurationPOneWeek is a pointer to EmailSyncDurationVOneWeek + EmailSyncDurationPOneWeek = &_EmailSyncDurationPOneWeek + // EmailSyncDurationPTwoWeeks is a pointer to EmailSyncDurationVTwoWeeks + EmailSyncDurationPTwoWeeks = &_EmailSyncDurationPTwoWeeks + // EmailSyncDurationPOneMonth is a pointer to EmailSyncDurationVOneMonth + EmailSyncDurationPOneMonth = &_EmailSyncDurationPOneMonth + // EmailSyncDurationPUnlimited is a pointer to EmailSyncDurationVUnlimited + EmailSyncDurationPUnlimited = &_EmailSyncDurationPUnlimited +) + +var ( + _EmailSyncDurationPUserDefined = EmailSyncDurationVUserDefined + _EmailSyncDurationPOneDay = EmailSyncDurationVOneDay + _EmailSyncDurationPThreeDays = EmailSyncDurationVThreeDays + _EmailSyncDurationPOneWeek = EmailSyncDurationVOneWeek + _EmailSyncDurationPTwoWeeks = EmailSyncDurationVTwoWeeks + _EmailSyncDurationPOneMonth = EmailSyncDurationVOneMonth + _EmailSyncDurationPUnlimited = EmailSyncDurationVUnlimited +) + +// EmailSyncSchedule undocumented +type EmailSyncSchedule string + +const ( + // EmailSyncScheduleVUserDefined undocumented + EmailSyncScheduleVUserDefined EmailSyncSchedule = "userDefined" + // EmailSyncScheduleVAsMessagesArrive undocumented + EmailSyncScheduleVAsMessagesArrive EmailSyncSchedule = "asMessagesArrive" + // EmailSyncScheduleVManual undocumented + EmailSyncScheduleVManual EmailSyncSchedule = "manual" + // EmailSyncScheduleVFifteenMinutes undocumented + EmailSyncScheduleVFifteenMinutes EmailSyncSchedule = "fifteenMinutes" + // EmailSyncScheduleVThirtyMinutes undocumented + EmailSyncScheduleVThirtyMinutes EmailSyncSchedule = "thirtyMinutes" + // EmailSyncScheduleVSixtyMinutes undocumented + EmailSyncScheduleVSixtyMinutes EmailSyncSchedule = "sixtyMinutes" + // EmailSyncScheduleVBasedOnMyUsage undocumented + EmailSyncScheduleVBasedOnMyUsage EmailSyncSchedule = "basedOnMyUsage" +) + +var ( + // EmailSyncSchedulePUserDefined is a pointer to EmailSyncScheduleVUserDefined + EmailSyncSchedulePUserDefined = &_EmailSyncSchedulePUserDefined + // EmailSyncSchedulePAsMessagesArrive is a pointer to EmailSyncScheduleVAsMessagesArrive + EmailSyncSchedulePAsMessagesArrive = &_EmailSyncSchedulePAsMessagesArrive + // EmailSyncSchedulePManual is a pointer to EmailSyncScheduleVManual + EmailSyncSchedulePManual = &_EmailSyncSchedulePManual + // EmailSyncSchedulePFifteenMinutes is a pointer to EmailSyncScheduleVFifteenMinutes + EmailSyncSchedulePFifteenMinutes = &_EmailSyncSchedulePFifteenMinutes + // EmailSyncSchedulePThirtyMinutes is a pointer to EmailSyncScheduleVThirtyMinutes + EmailSyncSchedulePThirtyMinutes = &_EmailSyncSchedulePThirtyMinutes + // EmailSyncSchedulePSixtyMinutes is a pointer to EmailSyncScheduleVSixtyMinutes + EmailSyncSchedulePSixtyMinutes = &_EmailSyncSchedulePSixtyMinutes + // EmailSyncSchedulePBasedOnMyUsage is a pointer to EmailSyncScheduleVBasedOnMyUsage + EmailSyncSchedulePBasedOnMyUsage = &_EmailSyncSchedulePBasedOnMyUsage +) + +var ( + _EmailSyncSchedulePUserDefined = EmailSyncScheduleVUserDefined + _EmailSyncSchedulePAsMessagesArrive = EmailSyncScheduleVAsMessagesArrive + _EmailSyncSchedulePManual = EmailSyncScheduleVManual + _EmailSyncSchedulePFifteenMinutes = EmailSyncScheduleVFifteenMinutes + _EmailSyncSchedulePThirtyMinutes = EmailSyncScheduleVThirtyMinutes + _EmailSyncSchedulePSixtyMinutes = EmailSyncScheduleVSixtyMinutes + _EmailSyncSchedulePBasedOnMyUsage = EmailSyncScheduleVBasedOnMyUsage +) + +// EmailType undocumented +type EmailType string + +const ( + // EmailTypeVUnknown undocumented + EmailTypeVUnknown EmailType = "unknown" + // EmailTypeVWork undocumented + EmailTypeVWork EmailType = "work" + // EmailTypeVPersonal undocumented + EmailTypeVPersonal EmailType = "personal" + // EmailTypeVMain undocumented + EmailTypeVMain EmailType = "main" + // EmailTypeVOther undocumented + EmailTypeVOther EmailType = "other" +) + +var ( + // EmailTypePUnknown is a pointer to EmailTypeVUnknown + EmailTypePUnknown = &_EmailTypePUnknown + // EmailTypePWork is a pointer to EmailTypeVWork + EmailTypePWork = &_EmailTypePWork + // EmailTypePPersonal is a pointer to EmailTypeVPersonal + EmailTypePPersonal = &_EmailTypePPersonal + // EmailTypePMain is a pointer to EmailTypeVMain + EmailTypePMain = &_EmailTypePMain + // EmailTypePOther is a pointer to EmailTypeVOther + EmailTypePOther = &_EmailTypePOther +) + +var ( + _EmailTypePUnknown = EmailTypeVUnknown + _EmailTypePWork = EmailTypeVWork + _EmailTypePPersonal = EmailTypeVPersonal + _EmailTypePMain = EmailTypeVMain + _EmailTypePOther = EmailTypeVOther +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go new file mode 100644 index 00000000..d5dca325 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EmbeddedSIMDeviceStateValue undocumented +type EmbeddedSIMDeviceStateValue string + +const ( + // EmbeddedSIMDeviceStateValueVNotEvaluated undocumented + EmbeddedSIMDeviceStateValueVNotEvaluated EmbeddedSIMDeviceStateValue = "notEvaluated" + // EmbeddedSIMDeviceStateValueVFailed undocumented + EmbeddedSIMDeviceStateValueVFailed EmbeddedSIMDeviceStateValue = "failed" + // EmbeddedSIMDeviceStateValueVInstalling undocumented + EmbeddedSIMDeviceStateValueVInstalling EmbeddedSIMDeviceStateValue = "installing" + // EmbeddedSIMDeviceStateValueVInstalled undocumented + EmbeddedSIMDeviceStateValueVInstalled EmbeddedSIMDeviceStateValue = "installed" + // EmbeddedSIMDeviceStateValueVDeleting undocumented + EmbeddedSIMDeviceStateValueVDeleting EmbeddedSIMDeviceStateValue = "deleting" + // EmbeddedSIMDeviceStateValueVError undocumented + EmbeddedSIMDeviceStateValueVError EmbeddedSIMDeviceStateValue = "error" + // EmbeddedSIMDeviceStateValueVDeleted undocumented + EmbeddedSIMDeviceStateValueVDeleted EmbeddedSIMDeviceStateValue = "deleted" + // EmbeddedSIMDeviceStateValueVRemovedByUser undocumented + EmbeddedSIMDeviceStateValueVRemovedByUser EmbeddedSIMDeviceStateValue = "removedByUser" +) + +var ( + // EmbeddedSIMDeviceStateValuePNotEvaluated is a pointer to EmbeddedSIMDeviceStateValueVNotEvaluated + EmbeddedSIMDeviceStateValuePNotEvaluated = &_EmbeddedSIMDeviceStateValuePNotEvaluated + // EmbeddedSIMDeviceStateValuePFailed is a pointer to EmbeddedSIMDeviceStateValueVFailed + EmbeddedSIMDeviceStateValuePFailed = &_EmbeddedSIMDeviceStateValuePFailed + // EmbeddedSIMDeviceStateValuePInstalling is a pointer to EmbeddedSIMDeviceStateValueVInstalling + EmbeddedSIMDeviceStateValuePInstalling = &_EmbeddedSIMDeviceStateValuePInstalling + // EmbeddedSIMDeviceStateValuePInstalled is a pointer to EmbeddedSIMDeviceStateValueVInstalled + EmbeddedSIMDeviceStateValuePInstalled = &_EmbeddedSIMDeviceStateValuePInstalled + // EmbeddedSIMDeviceStateValuePDeleting is a pointer to EmbeddedSIMDeviceStateValueVDeleting + EmbeddedSIMDeviceStateValuePDeleting = &_EmbeddedSIMDeviceStateValuePDeleting + // EmbeddedSIMDeviceStateValuePError is a pointer to EmbeddedSIMDeviceStateValueVError + EmbeddedSIMDeviceStateValuePError = &_EmbeddedSIMDeviceStateValuePError + // EmbeddedSIMDeviceStateValuePDeleted is a pointer to EmbeddedSIMDeviceStateValueVDeleted + EmbeddedSIMDeviceStateValuePDeleted = &_EmbeddedSIMDeviceStateValuePDeleted + // EmbeddedSIMDeviceStateValuePRemovedByUser is a pointer to EmbeddedSIMDeviceStateValueVRemovedByUser + EmbeddedSIMDeviceStateValuePRemovedByUser = &_EmbeddedSIMDeviceStateValuePRemovedByUser +) + +var ( + _EmbeddedSIMDeviceStateValuePNotEvaluated = EmbeddedSIMDeviceStateValueVNotEvaluated + _EmbeddedSIMDeviceStateValuePFailed = EmbeddedSIMDeviceStateValueVFailed + _EmbeddedSIMDeviceStateValuePInstalling = EmbeddedSIMDeviceStateValueVInstalling + _EmbeddedSIMDeviceStateValuePInstalled = EmbeddedSIMDeviceStateValueVInstalled + _EmbeddedSIMDeviceStateValuePDeleting = EmbeddedSIMDeviceStateValueVDeleting + _EmbeddedSIMDeviceStateValuePError = EmbeddedSIMDeviceStateValueVError + _EmbeddedSIMDeviceStateValuePDeleted = EmbeddedSIMDeviceStateValueVDeleted + _EmbeddedSIMDeviceStateValuePRemovedByUser = EmbeddedSIMDeviceStateValueVRemovedByUser +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go new file mode 100644 index 00000000..08a936bb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Enablement undocumented +type Enablement string + +const ( + // EnablementVNotConfigured undocumented + EnablementVNotConfigured Enablement = "notConfigured" + // EnablementVEnabled undocumented + EnablementVEnabled Enablement = "enabled" + // EnablementVDisabled undocumented + EnablementVDisabled Enablement = "disabled" +) + +var ( + // EnablementPNotConfigured is a pointer to EnablementVNotConfigured + EnablementPNotConfigured = &_EnablementPNotConfigured + // EnablementPEnabled is a pointer to EnablementVEnabled + EnablementPEnabled = &_EnablementPEnabled + // EnablementPDisabled is a pointer to EnablementVDisabled + EnablementPDisabled = &_EnablementPDisabled +) + +var ( + _EnablementPNotConfigured = EnablementVNotConfigured + _EnablementPEnabled = EnablementVEnabled + _EnablementPDisabled = EnablementVDisabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go new file mode 100644 index 00000000..40a48917 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EncryptWith undocumented +type EncryptWith string + +const ( + // EncryptWithVTemplate undocumented + EncryptWithVTemplate EncryptWith = "template" + // EncryptWithVUserDefinedRights undocumented + EncryptWithVUserDefinedRights EncryptWith = "userDefinedRights" +) + +var ( + // EncryptWithPTemplate is a pointer to EncryptWithVTemplate + EncryptWithPTemplate = &_EncryptWithPTemplate + // EncryptWithPUserDefinedRights is a pointer to EncryptWithVUserDefinedRights + EncryptWithPUserDefinedRights = &_EncryptWithPUserDefinedRights +) + +var ( + _EncryptWithPTemplate = EncryptWithVTemplate + _EncryptWithPUserDefinedRights = EncryptWithVUserDefinedRights +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go new file mode 100644 index 00000000..bedb5d85 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EncryptionReadinessState undocumented +type EncryptionReadinessState string + +const ( + // EncryptionReadinessStateVNotReady undocumented + EncryptionReadinessStateVNotReady EncryptionReadinessState = "notReady" + // EncryptionReadinessStateVReady undocumented + EncryptionReadinessStateVReady EncryptionReadinessState = "ready" +) + +var ( + // EncryptionReadinessStatePNotReady is a pointer to EncryptionReadinessStateVNotReady + EncryptionReadinessStatePNotReady = &_EncryptionReadinessStatePNotReady + // EncryptionReadinessStatePReady is a pointer to EncryptionReadinessStateVReady + EncryptionReadinessStatePReady = &_EncryptionReadinessStatePReady +) + +var ( + _EncryptionReadinessStatePNotReady = EncryptionReadinessStateVNotReady + _EncryptionReadinessStatePReady = EncryptionReadinessStateVReady +) + +// EncryptionState undocumented +type EncryptionState string + +const ( + // EncryptionStateVNotEncrypted undocumented + EncryptionStateVNotEncrypted EncryptionState = "notEncrypted" + // EncryptionStateVEncrypted undocumented + EncryptionStateVEncrypted EncryptionState = "encrypted" +) + +var ( + // EncryptionStatePNotEncrypted is a pointer to EncryptionStateVNotEncrypted + EncryptionStatePNotEncrypted = &_EncryptionStatePNotEncrypted + // EncryptionStatePEncrypted is a pointer to EncryptionStateVEncrypted + EncryptionStatePEncrypted = &_EncryptionStatePEncrypted +) + +var ( + _EncryptionStatePNotEncrypted = EncryptionStateVNotEncrypted + _EncryptionStatePEncrypted = EncryptionStateVEncrypted +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go new file mode 100644 index 00000000..0979544b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EndpointType undocumented +type EndpointType string + +const ( + // EndpointTypeVDefault undocumented + EndpointTypeVDefault EndpointType = "default" + // EndpointTypeVVoicemail undocumented + EndpointTypeVVoicemail EndpointType = "voicemail" + // EndpointTypeVSkypeForBusiness undocumented + EndpointTypeVSkypeForBusiness EndpointType = "skypeForBusiness" + // EndpointTypeVSkypeForBusinessVoipPhone undocumented + EndpointTypeVSkypeForBusinessVoipPhone EndpointType = "skypeForBusinessVoipPhone" + // EndpointTypeVUnknownFutureValue undocumented + EndpointTypeVUnknownFutureValue EndpointType = "unknownFutureValue" +) + +var ( + // EndpointTypePDefault is a pointer to EndpointTypeVDefault + EndpointTypePDefault = &_EndpointTypePDefault + // EndpointTypePVoicemail is a pointer to EndpointTypeVVoicemail + EndpointTypePVoicemail = &_EndpointTypePVoicemail + // EndpointTypePSkypeForBusiness is a pointer to EndpointTypeVSkypeForBusiness + EndpointTypePSkypeForBusiness = &_EndpointTypePSkypeForBusiness + // EndpointTypePSkypeForBusinessVoipPhone is a pointer to EndpointTypeVSkypeForBusinessVoipPhone + EndpointTypePSkypeForBusinessVoipPhone = &_EndpointTypePSkypeForBusinessVoipPhone + // EndpointTypePUnknownFutureValue is a pointer to EndpointTypeVUnknownFutureValue + EndpointTypePUnknownFutureValue = &_EndpointTypePUnknownFutureValue +) + +var ( + _EndpointTypePDefault = EndpointTypeVDefault + _EndpointTypePVoicemail = EndpointTypeVVoicemail + _EndpointTypePSkypeForBusiness = EndpointTypeVSkypeForBusiness + _EndpointTypePSkypeForBusinessVoipPhone = EndpointTypeVSkypeForBusinessVoipPhone + _EndpointTypePUnknownFutureValue = EndpointTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go new file mode 100644 index 00000000..287527c9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EnrollmentState undocumented +type EnrollmentState string + +const ( + // EnrollmentStateVUnknown undocumented + EnrollmentStateVUnknown EnrollmentState = "unknown" + // EnrollmentStateVEnrolled undocumented + EnrollmentStateVEnrolled EnrollmentState = "enrolled" + // EnrollmentStateVPendingReset undocumented + EnrollmentStateVPendingReset EnrollmentState = "pendingReset" + // EnrollmentStateVFailed undocumented + EnrollmentStateVFailed EnrollmentState = "failed" + // EnrollmentStateVNotContacted undocumented + EnrollmentStateVNotContacted EnrollmentState = "notContacted" + // EnrollmentStateVBlocked undocumented + EnrollmentStateVBlocked EnrollmentState = "blocked" +) + +var ( + // EnrollmentStatePUnknown is a pointer to EnrollmentStateVUnknown + EnrollmentStatePUnknown = &_EnrollmentStatePUnknown + // EnrollmentStatePEnrolled is a pointer to EnrollmentStateVEnrolled + EnrollmentStatePEnrolled = &_EnrollmentStatePEnrolled + // EnrollmentStatePPendingReset is a pointer to EnrollmentStateVPendingReset + EnrollmentStatePPendingReset = &_EnrollmentStatePPendingReset + // EnrollmentStatePFailed is a pointer to EnrollmentStateVFailed + EnrollmentStatePFailed = &_EnrollmentStatePFailed + // EnrollmentStatePNotContacted is a pointer to EnrollmentStateVNotContacted + EnrollmentStatePNotContacted = &_EnrollmentStatePNotContacted + // EnrollmentStatePBlocked is a pointer to EnrollmentStateVBlocked + EnrollmentStatePBlocked = &_EnrollmentStatePBlocked +) + +var ( + _EnrollmentStatePUnknown = EnrollmentStateVUnknown + _EnrollmentStatePEnrolled = EnrollmentStateVEnrolled + _EnrollmentStatePPendingReset = EnrollmentStateVPendingReset + _EnrollmentStatePFailed = EnrollmentStateVFailed + _EnrollmentStatePNotContacted = EnrollmentStateVNotContacted + _EnrollmentStatePBlocked = EnrollmentStateVBlocked +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go new file mode 100644 index 00000000..3742e261 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EntityType undocumented +type EntityType string + +const ( + // EntityTypeVEvent undocumented + EntityTypeVEvent EntityType = "event" + // EntityTypeVMessage undocumented + EntityTypeVMessage EntityType = "message" + // EntityTypeVDriveItem undocumented + EntityTypeVDriveItem EntityType = "driveItem" + // EntityTypeVExternalFile undocumented + EntityTypeVExternalFile EntityType = "externalFile" + // EntityTypeVExternalItem undocumented + EntityTypeVExternalItem EntityType = "externalItem" +) + +var ( + // EntityTypePEvent is a pointer to EntityTypeVEvent + EntityTypePEvent = &_EntityTypePEvent + // EntityTypePMessage is a pointer to EntityTypeVMessage + EntityTypePMessage = &_EntityTypePMessage + // EntityTypePDriveItem is a pointer to EntityTypeVDriveItem + EntityTypePDriveItem = &_EntityTypePDriveItem + // EntityTypePExternalFile is a pointer to EntityTypeVExternalFile + EntityTypePExternalFile = &_EntityTypePExternalFile + // EntityTypePExternalItem is a pointer to EntityTypeVExternalItem + EntityTypePExternalItem = &_EntityTypePExternalItem +) + +var ( + _EntityTypePEvent = EntityTypeVEvent + _EntityTypePMessage = EntityTypeVMessage + _EntityTypePDriveItem = EntityTypeVDriveItem + _EntityTypePExternalFile = EntityTypeVExternalFile + _EntityTypePExternalItem = EntityTypeVExternalItem +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go new file mode 100644 index 00000000..5826ef6b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go @@ -0,0 +1,72 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EntryExportStatus undocumented +type EntryExportStatus string + +const ( + // EntryExportStatusVNoop undocumented + EntryExportStatusVNoop EntryExportStatus = "Noop" + // EntryExportStatusVSuccess undocumented + EntryExportStatusVSuccess EntryExportStatus = "Success" + // EntryExportStatusVRetryableError undocumented + EntryExportStatusVRetryableError EntryExportStatus = "RetryableError" + // EntryExportStatusVPermanentError undocumented + EntryExportStatusVPermanentError EntryExportStatus = "PermanentError" + // EntryExportStatusVError undocumented + EntryExportStatusVError EntryExportStatus = "Error" +) + +var ( + // EntryExportStatusPNoop is a pointer to EntryExportStatusVNoop + EntryExportStatusPNoop = &_EntryExportStatusPNoop + // EntryExportStatusPSuccess is a pointer to EntryExportStatusVSuccess + EntryExportStatusPSuccess = &_EntryExportStatusPSuccess + // EntryExportStatusPRetryableError is a pointer to EntryExportStatusVRetryableError + EntryExportStatusPRetryableError = &_EntryExportStatusPRetryableError + // EntryExportStatusPPermanentError is a pointer to EntryExportStatusVPermanentError + EntryExportStatusPPermanentError = &_EntryExportStatusPPermanentError + // EntryExportStatusPError is a pointer to EntryExportStatusVError + EntryExportStatusPError = &_EntryExportStatusPError +) + +var ( + _EntryExportStatusPNoop = EntryExportStatusVNoop + _EntryExportStatusPSuccess = EntryExportStatusVSuccess + _EntryExportStatusPRetryableError = EntryExportStatusVRetryableError + _EntryExportStatusPPermanentError = EntryExportStatusVPermanentError + _EntryExportStatusPError = EntryExportStatusVError +) + +// EntrySyncOperation undocumented +type EntrySyncOperation string + +const ( + // EntrySyncOperationVNone undocumented + EntrySyncOperationVNone EntrySyncOperation = "None" + // EntrySyncOperationVAdd undocumented + EntrySyncOperationVAdd EntrySyncOperation = "Add" + // EntrySyncOperationVDelete undocumented + EntrySyncOperationVDelete EntrySyncOperation = "Delete" + // EntrySyncOperationVUpdate undocumented + EntrySyncOperationVUpdate EntrySyncOperation = "Update" +) + +var ( + // EntrySyncOperationPNone is a pointer to EntrySyncOperationVNone + EntrySyncOperationPNone = &_EntrySyncOperationPNone + // EntrySyncOperationPAdd is a pointer to EntrySyncOperationVAdd + EntrySyncOperationPAdd = &_EntrySyncOperationPAdd + // EntrySyncOperationPDelete is a pointer to EntrySyncOperationVDelete + EntrySyncOperationPDelete = &_EntrySyncOperationPDelete + // EntrySyncOperationPUpdate is a pointer to EntrySyncOperationVUpdate + EntrySyncOperationPUpdate = &_EntrySyncOperationPUpdate +) + +var ( + _EntrySyncOperationPNone = EntrySyncOperationVNone + _EntrySyncOperationPAdd = EntrySyncOperationVAdd + _EntrySyncOperationPDelete = EntrySyncOperationVDelete + _EntrySyncOperationPUpdate = EntrySyncOperationVUpdate +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go new file mode 100644 index 00000000..f59186fa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ErrorCode undocumented +type ErrorCode string + +const ( + // ErrorCodeVNoError undocumented + ErrorCodeVNoError ErrorCode = "noError" + // ErrorCodeVUnauthorized undocumented + ErrorCodeVUnauthorized ErrorCode = "unauthorized" + // ErrorCodeVNotFound undocumented + ErrorCodeVNotFound ErrorCode = "notFound" + // ErrorCodeVDeleted undocumented + ErrorCodeVDeleted ErrorCode = "deleted" +) + +var ( + // ErrorCodePNoError is a pointer to ErrorCodeVNoError + ErrorCodePNoError = &_ErrorCodePNoError + // ErrorCodePUnauthorized is a pointer to ErrorCodeVUnauthorized + ErrorCodePUnauthorized = &_ErrorCodePUnauthorized + // ErrorCodePNotFound is a pointer to ErrorCodeVNotFound + ErrorCodePNotFound = &_ErrorCodePNotFound + // ErrorCodePDeleted is a pointer to ErrorCodeVDeleted + ErrorCodePDeleted = &_ErrorCodePDeleted +) + +var ( + _ErrorCodePNoError = ErrorCodeVNoError + _ErrorCodePUnauthorized = ErrorCodeVUnauthorized + _ErrorCodePNotFound = ErrorCodeVNotFound + _ErrorCodePDeleted = ErrorCodeVDeleted +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go new file mode 100644 index 00000000..bc3f0f9c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EventType undocumented +type EventType string + +const ( + // EventTypeVSingleInstance undocumented + EventTypeVSingleInstance EventType = "singleInstance" + // EventTypeVOccurrence undocumented + EventTypeVOccurrence EventType = "occurrence" + // EventTypeVException undocumented + EventTypeVException EventType = "exception" + // EventTypeVSeriesMaster undocumented + EventTypeVSeriesMaster EventType = "seriesMaster" +) + +var ( + // EventTypePSingleInstance is a pointer to EventTypeVSingleInstance + EventTypePSingleInstance = &_EventTypePSingleInstance + // EventTypePOccurrence is a pointer to EventTypeVOccurrence + EventTypePOccurrence = &_EventTypePOccurrence + // EventTypePException is a pointer to EventTypeVException + EventTypePException = &_EventTypePException + // EventTypePSeriesMaster is a pointer to EventTypeVSeriesMaster + EventTypePSeriesMaster = &_EventTypePSeriesMaster +) + +var ( + _EventTypePSingleInstance = EventTypeVSingleInstance + _EventTypePOccurrence = EventTypeVOccurrence + _EventTypePException = EventTypeVException + _EventTypePSeriesMaster = EventTypeVSeriesMaster +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go new file mode 100644 index 00000000..a34cd922 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ExchangeIDFormat undocumented +type ExchangeIDFormat string + +const ( + // ExchangeIDFormatVEntryID undocumented + ExchangeIDFormatVEntryID ExchangeIDFormat = "entryId" + // ExchangeIDFormatVEwsID undocumented + ExchangeIDFormatVEwsID ExchangeIDFormat = "ewsId" + // ExchangeIDFormatVImmutableEntryID undocumented + ExchangeIDFormatVImmutableEntryID ExchangeIDFormat = "immutableEntryId" + // ExchangeIDFormatVRestID undocumented + ExchangeIDFormatVRestID ExchangeIDFormat = "restId" + // ExchangeIDFormatVRestImmutableEntryID undocumented + ExchangeIDFormatVRestImmutableEntryID ExchangeIDFormat = "restImmutableEntryId" +) + +var ( + // ExchangeIDFormatPEntryID is a pointer to ExchangeIDFormatVEntryID + ExchangeIDFormatPEntryID = &_ExchangeIDFormatPEntryID + // ExchangeIDFormatPEwsID is a pointer to ExchangeIDFormatVEwsID + ExchangeIDFormatPEwsID = &_ExchangeIDFormatPEwsID + // ExchangeIDFormatPImmutableEntryID is a pointer to ExchangeIDFormatVImmutableEntryID + ExchangeIDFormatPImmutableEntryID = &_ExchangeIDFormatPImmutableEntryID + // ExchangeIDFormatPRestID is a pointer to ExchangeIDFormatVRestID + ExchangeIDFormatPRestID = &_ExchangeIDFormatPRestID + // ExchangeIDFormatPRestImmutableEntryID is a pointer to ExchangeIDFormatVRestImmutableEntryID + ExchangeIDFormatPRestImmutableEntryID = &_ExchangeIDFormatPRestImmutableEntryID +) + +var ( + _ExchangeIDFormatPEntryID = ExchangeIDFormatVEntryID + _ExchangeIDFormatPEwsID = ExchangeIDFormatVEwsID + _ExchangeIDFormatPImmutableEntryID = ExchangeIDFormatVImmutableEntryID + _ExchangeIDFormatPRestID = ExchangeIDFormatVRestID + _ExchangeIDFormatPRestImmutableEntryID = ExchangeIDFormatVRestImmutableEntryID +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go new file mode 100644 index 00000000..9c729ebf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ExternalAudienceScope undocumented +type ExternalAudienceScope string + +const ( + // ExternalAudienceScopeVNone undocumented + ExternalAudienceScopeVNone ExternalAudienceScope = "none" + // ExternalAudienceScopeVContactsOnly undocumented + ExternalAudienceScopeVContactsOnly ExternalAudienceScope = "contactsOnly" + // ExternalAudienceScopeVAll undocumented + ExternalAudienceScopeVAll ExternalAudienceScope = "all" +) + +var ( + // ExternalAudienceScopePNone is a pointer to ExternalAudienceScopeVNone + ExternalAudienceScopePNone = &_ExternalAudienceScopePNone + // ExternalAudienceScopePContactsOnly is a pointer to ExternalAudienceScopeVContactsOnly + ExternalAudienceScopePContactsOnly = &_ExternalAudienceScopePContactsOnly + // ExternalAudienceScopePAll is a pointer to ExternalAudienceScopeVAll + ExternalAudienceScopePAll = &_ExternalAudienceScopePAll +) + +var ( + _ExternalAudienceScopePNone = ExternalAudienceScopeVNone + _ExternalAudienceScopePContactsOnly = ExternalAudienceScopeVContactsOnly + _ExternalAudienceScopePAll = ExternalAudienceScopeVAll +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go new file mode 100644 index 00000000..da708169 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FeatureType undocumented +type FeatureType string + +const ( + // FeatureTypeVRegistration undocumented + FeatureTypeVRegistration FeatureType = "registration" + // FeatureTypeVReset undocumented + FeatureTypeVReset FeatureType = "reset" + // FeatureTypeVUnknownFutureValue undocumented + FeatureTypeVUnknownFutureValue FeatureType = "unknownFutureValue" +) + +var ( + // FeatureTypePRegistration is a pointer to FeatureTypeVRegistration + FeatureTypePRegistration = &_FeatureTypePRegistration + // FeatureTypePReset is a pointer to FeatureTypeVReset + FeatureTypePReset = &_FeatureTypePReset + // FeatureTypePUnknownFutureValue is a pointer to FeatureTypeVUnknownFutureValue + FeatureTypePUnknownFutureValue = &_FeatureTypePUnknownFutureValue +) + +var ( + _FeatureTypePRegistration = FeatureTypeVRegistration + _FeatureTypePReset = FeatureTypeVReset + _FeatureTypePUnknownFutureValue = FeatureTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go new file mode 100644 index 00000000..3f59e063 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go @@ -0,0 +1,87 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FileHashType undocumented +type FileHashType string + +const ( + // FileHashTypeVUnknown undocumented + FileHashTypeVUnknown FileHashType = "unknown" + // FileHashTypeVSha1 undocumented + FileHashTypeVSha1 FileHashType = "sha1" + // FileHashTypeVSha256 undocumented + FileHashTypeVSha256 FileHashType = "sha256" + // FileHashTypeVMd5 undocumented + FileHashTypeVMd5 FileHashType = "md5" + // FileHashTypeVAuthenticodeHash256 undocumented + FileHashTypeVAuthenticodeHash256 FileHashType = "authenticodeHash256" + // FileHashTypeVLsHash undocumented + FileHashTypeVLsHash FileHashType = "lsHash" + // FileHashTypeVCtph undocumented + FileHashTypeVCtph FileHashType = "ctph" + // FileHashTypeVUnknownFutureValue undocumented + FileHashTypeVUnknownFutureValue FileHashType = "unknownFutureValue" +) + +var ( + // FileHashTypePUnknown is a pointer to FileHashTypeVUnknown + FileHashTypePUnknown = &_FileHashTypePUnknown + // FileHashTypePSha1 is a pointer to FileHashTypeVSha1 + FileHashTypePSha1 = &_FileHashTypePSha1 + // FileHashTypePSha256 is a pointer to FileHashTypeVSha256 + FileHashTypePSha256 = &_FileHashTypePSha256 + // FileHashTypePMd5 is a pointer to FileHashTypeVMd5 + FileHashTypePMd5 = &_FileHashTypePMd5 + // FileHashTypePAuthenticodeHash256 is a pointer to FileHashTypeVAuthenticodeHash256 + FileHashTypePAuthenticodeHash256 = &_FileHashTypePAuthenticodeHash256 + // FileHashTypePLsHash is a pointer to FileHashTypeVLsHash + FileHashTypePLsHash = &_FileHashTypePLsHash + // FileHashTypePCtph is a pointer to FileHashTypeVCtph + FileHashTypePCtph = &_FileHashTypePCtph + // FileHashTypePUnknownFutureValue is a pointer to FileHashTypeVUnknownFutureValue + FileHashTypePUnknownFutureValue = &_FileHashTypePUnknownFutureValue +) + +var ( + _FileHashTypePUnknown = FileHashTypeVUnknown + _FileHashTypePSha1 = FileHashTypeVSha1 + _FileHashTypePSha256 = FileHashTypeVSha256 + _FileHashTypePMd5 = FileHashTypeVMd5 + _FileHashTypePAuthenticodeHash256 = FileHashTypeVAuthenticodeHash256 + _FileHashTypePLsHash = FileHashTypeVLsHash + _FileHashTypePCtph = FileHashTypeVCtph + _FileHashTypePUnknownFutureValue = FileHashTypeVUnknownFutureValue +) + +// FileVaultState undocumented +type FileVaultState string + +const ( + // FileVaultStateVSuccess undocumented + FileVaultStateVSuccess FileVaultState = "success" + // FileVaultStateVDriveEncryptedByUser undocumented + FileVaultStateVDriveEncryptedByUser FileVaultState = "driveEncryptedByUser" + // FileVaultStateVUserDeferredEncryption undocumented + FileVaultStateVUserDeferredEncryption FileVaultState = "userDeferredEncryption" + // FileVaultStateVEscrowNotEnabled undocumented + FileVaultStateVEscrowNotEnabled FileVaultState = "escrowNotEnabled" +) + +var ( + // FileVaultStatePSuccess is a pointer to FileVaultStateVSuccess + FileVaultStatePSuccess = &_FileVaultStatePSuccess + // FileVaultStatePDriveEncryptedByUser is a pointer to FileVaultStateVDriveEncryptedByUser + FileVaultStatePDriveEncryptedByUser = &_FileVaultStatePDriveEncryptedByUser + // FileVaultStatePUserDeferredEncryption is a pointer to FileVaultStateVUserDeferredEncryption + FileVaultStatePUserDeferredEncryption = &_FileVaultStatePUserDeferredEncryption + // FileVaultStatePEscrowNotEnabled is a pointer to FileVaultStateVEscrowNotEnabled + FileVaultStatePEscrowNotEnabled = &_FileVaultStatePEscrowNotEnabled +) + +var ( + _FileVaultStatePSuccess = FileVaultStateVSuccess + _FileVaultStatePDriveEncryptedByUser = FileVaultStateVDriveEncryptedByUser + _FileVaultStatePUserDeferredEncryption = FileVaultStateVUserDeferredEncryption + _FileVaultStatePEscrowNotEnabled = FileVaultStateVEscrowNotEnabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go new file mode 100644 index 00000000..a7be03e7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go @@ -0,0 +1,99 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FirewallCertificateRevocationListCheckMethodType undocumented +type FirewallCertificateRevocationListCheckMethodType string + +const ( + // FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault undocumented + FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault FirewallCertificateRevocationListCheckMethodType = "deviceDefault" + // FirewallCertificateRevocationListCheckMethodTypeVNone undocumented + FirewallCertificateRevocationListCheckMethodTypeVNone FirewallCertificateRevocationListCheckMethodType = "none" + // FirewallCertificateRevocationListCheckMethodTypeVAttempt undocumented + FirewallCertificateRevocationListCheckMethodTypeVAttempt FirewallCertificateRevocationListCheckMethodType = "attempt" + // FirewallCertificateRevocationListCheckMethodTypeVRequire undocumented + FirewallCertificateRevocationListCheckMethodTypeVRequire FirewallCertificateRevocationListCheckMethodType = "require" +) + +var ( + // FirewallCertificateRevocationListCheckMethodTypePDeviceDefault is a pointer to FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault + FirewallCertificateRevocationListCheckMethodTypePDeviceDefault = &_FirewallCertificateRevocationListCheckMethodTypePDeviceDefault + // FirewallCertificateRevocationListCheckMethodTypePNone is a pointer to FirewallCertificateRevocationListCheckMethodTypeVNone + FirewallCertificateRevocationListCheckMethodTypePNone = &_FirewallCertificateRevocationListCheckMethodTypePNone + // FirewallCertificateRevocationListCheckMethodTypePAttempt is a pointer to FirewallCertificateRevocationListCheckMethodTypeVAttempt + FirewallCertificateRevocationListCheckMethodTypePAttempt = &_FirewallCertificateRevocationListCheckMethodTypePAttempt + // FirewallCertificateRevocationListCheckMethodTypePRequire is a pointer to FirewallCertificateRevocationListCheckMethodTypeVRequire + FirewallCertificateRevocationListCheckMethodTypePRequire = &_FirewallCertificateRevocationListCheckMethodTypePRequire +) + +var ( + _FirewallCertificateRevocationListCheckMethodTypePDeviceDefault = FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault + _FirewallCertificateRevocationListCheckMethodTypePNone = FirewallCertificateRevocationListCheckMethodTypeVNone + _FirewallCertificateRevocationListCheckMethodTypePAttempt = FirewallCertificateRevocationListCheckMethodTypeVAttempt + _FirewallCertificateRevocationListCheckMethodTypePRequire = FirewallCertificateRevocationListCheckMethodTypeVRequire +) + +// FirewallPacketQueueingMethodType undocumented +type FirewallPacketQueueingMethodType string + +const ( + // FirewallPacketQueueingMethodTypeVDeviceDefault undocumented + FirewallPacketQueueingMethodTypeVDeviceDefault FirewallPacketQueueingMethodType = "deviceDefault" + // FirewallPacketQueueingMethodTypeVDisabled undocumented + FirewallPacketQueueingMethodTypeVDisabled FirewallPacketQueueingMethodType = "disabled" + // FirewallPacketQueueingMethodTypeVQueueInbound undocumented + FirewallPacketQueueingMethodTypeVQueueInbound FirewallPacketQueueingMethodType = "queueInbound" + // FirewallPacketQueueingMethodTypeVQueueOutbound undocumented + FirewallPacketQueueingMethodTypeVQueueOutbound FirewallPacketQueueingMethodType = "queueOutbound" + // FirewallPacketQueueingMethodTypeVQueueBoth undocumented + FirewallPacketQueueingMethodTypeVQueueBoth FirewallPacketQueueingMethodType = "queueBoth" +) + +var ( + // FirewallPacketQueueingMethodTypePDeviceDefault is a pointer to FirewallPacketQueueingMethodTypeVDeviceDefault + FirewallPacketQueueingMethodTypePDeviceDefault = &_FirewallPacketQueueingMethodTypePDeviceDefault + // FirewallPacketQueueingMethodTypePDisabled is a pointer to FirewallPacketQueueingMethodTypeVDisabled + FirewallPacketQueueingMethodTypePDisabled = &_FirewallPacketQueueingMethodTypePDisabled + // FirewallPacketQueueingMethodTypePQueueInbound is a pointer to FirewallPacketQueueingMethodTypeVQueueInbound + FirewallPacketQueueingMethodTypePQueueInbound = &_FirewallPacketQueueingMethodTypePQueueInbound + // FirewallPacketQueueingMethodTypePQueueOutbound is a pointer to FirewallPacketQueueingMethodTypeVQueueOutbound + FirewallPacketQueueingMethodTypePQueueOutbound = &_FirewallPacketQueueingMethodTypePQueueOutbound + // FirewallPacketQueueingMethodTypePQueueBoth is a pointer to FirewallPacketQueueingMethodTypeVQueueBoth + FirewallPacketQueueingMethodTypePQueueBoth = &_FirewallPacketQueueingMethodTypePQueueBoth +) + +var ( + _FirewallPacketQueueingMethodTypePDeviceDefault = FirewallPacketQueueingMethodTypeVDeviceDefault + _FirewallPacketQueueingMethodTypePDisabled = FirewallPacketQueueingMethodTypeVDisabled + _FirewallPacketQueueingMethodTypePQueueInbound = FirewallPacketQueueingMethodTypeVQueueInbound + _FirewallPacketQueueingMethodTypePQueueOutbound = FirewallPacketQueueingMethodTypeVQueueOutbound + _FirewallPacketQueueingMethodTypePQueueBoth = FirewallPacketQueueingMethodTypeVQueueBoth +) + +// FirewallPreSharedKeyEncodingMethodType undocumented +type FirewallPreSharedKeyEncodingMethodType string + +const ( + // FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault undocumented + FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault FirewallPreSharedKeyEncodingMethodType = "deviceDefault" + // FirewallPreSharedKeyEncodingMethodTypeVNone undocumented + FirewallPreSharedKeyEncodingMethodTypeVNone FirewallPreSharedKeyEncodingMethodType = "none" + // FirewallPreSharedKeyEncodingMethodTypeVUtF8 undocumented + FirewallPreSharedKeyEncodingMethodTypeVUtF8 FirewallPreSharedKeyEncodingMethodType = "utF8" +) + +var ( + // FirewallPreSharedKeyEncodingMethodTypePDeviceDefault is a pointer to FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault + FirewallPreSharedKeyEncodingMethodTypePDeviceDefault = &_FirewallPreSharedKeyEncodingMethodTypePDeviceDefault + // FirewallPreSharedKeyEncodingMethodTypePNone is a pointer to FirewallPreSharedKeyEncodingMethodTypeVNone + FirewallPreSharedKeyEncodingMethodTypePNone = &_FirewallPreSharedKeyEncodingMethodTypePNone + // FirewallPreSharedKeyEncodingMethodTypePUtF8 is a pointer to FirewallPreSharedKeyEncodingMethodTypeVUtF8 + FirewallPreSharedKeyEncodingMethodTypePUtF8 = &_FirewallPreSharedKeyEncodingMethodTypePUtF8 +) + +var ( + _FirewallPreSharedKeyEncodingMethodTypePDeviceDefault = FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault + _FirewallPreSharedKeyEncodingMethodTypePNone = FirewallPreSharedKeyEncodingMethodTypeVNone + _FirewallPreSharedKeyEncodingMethodTypePUtF8 = FirewallPreSharedKeyEncodingMethodTypeVUtF8 +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go new file mode 100644 index 00000000..c3887b33 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FolderProtectionType undocumented +type FolderProtectionType string + +const ( + // FolderProtectionTypeVUserDefined undocumented + FolderProtectionTypeVUserDefined FolderProtectionType = "userDefined" + // FolderProtectionTypeVEnable undocumented + FolderProtectionTypeVEnable FolderProtectionType = "enable" + // FolderProtectionTypeVAuditMode undocumented + FolderProtectionTypeVAuditMode FolderProtectionType = "auditMode" + // FolderProtectionTypeVBlockDiskModification undocumented + FolderProtectionTypeVBlockDiskModification FolderProtectionType = "blockDiskModification" + // FolderProtectionTypeVAuditDiskModification undocumented + FolderProtectionTypeVAuditDiskModification FolderProtectionType = "auditDiskModification" +) + +var ( + // FolderProtectionTypePUserDefined is a pointer to FolderProtectionTypeVUserDefined + FolderProtectionTypePUserDefined = &_FolderProtectionTypePUserDefined + // FolderProtectionTypePEnable is a pointer to FolderProtectionTypeVEnable + FolderProtectionTypePEnable = &_FolderProtectionTypePEnable + // FolderProtectionTypePAuditMode is a pointer to FolderProtectionTypeVAuditMode + FolderProtectionTypePAuditMode = &_FolderProtectionTypePAuditMode + // FolderProtectionTypePBlockDiskModification is a pointer to FolderProtectionTypeVBlockDiskModification + FolderProtectionTypePBlockDiskModification = &_FolderProtectionTypePBlockDiskModification + // FolderProtectionTypePAuditDiskModification is a pointer to FolderProtectionTypeVAuditDiskModification + FolderProtectionTypePAuditDiskModification = &_FolderProtectionTypePAuditDiskModification +) + +var ( + _FolderProtectionTypePUserDefined = FolderProtectionTypeVUserDefined + _FolderProtectionTypePEnable = FolderProtectionTypeVEnable + _FolderProtectionTypePAuditMode = FolderProtectionTypeVAuditMode + _FolderProtectionTypePBlockDiskModification = FolderProtectionTypeVBlockDiskModification + _FolderProtectionTypePAuditDiskModification = FolderProtectionTypeVAuditDiskModification +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go new file mode 100644 index 00000000..84e9350d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FollowupFlagStatus undocumented +type FollowupFlagStatus string + +const ( + // FollowupFlagStatusVNotFlagged undocumented + FollowupFlagStatusVNotFlagged FollowupFlagStatus = "notFlagged" + // FollowupFlagStatusVComplete undocumented + FollowupFlagStatusVComplete FollowupFlagStatus = "complete" + // FollowupFlagStatusVFlagged undocumented + FollowupFlagStatusVFlagged FollowupFlagStatus = "flagged" +) + +var ( + // FollowupFlagStatusPNotFlagged is a pointer to FollowupFlagStatusVNotFlagged + FollowupFlagStatusPNotFlagged = &_FollowupFlagStatusPNotFlagged + // FollowupFlagStatusPComplete is a pointer to FollowupFlagStatusVComplete + FollowupFlagStatusPComplete = &_FollowupFlagStatusPComplete + // FollowupFlagStatusPFlagged is a pointer to FollowupFlagStatusVFlagged + FollowupFlagStatusPFlagged = &_FollowupFlagStatusPFlagged +) + +var ( + _FollowupFlagStatusPNotFlagged = FollowupFlagStatusVNotFlagged + _FollowupFlagStatusPComplete = FollowupFlagStatusVComplete + _FollowupFlagStatusPFlagged = FollowupFlagStatusVFlagged +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go new file mode 100644 index 00000000..39d73adc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// FreeBusyStatus undocumented +type FreeBusyStatus string + +const ( + // FreeBusyStatusVFree undocumented + FreeBusyStatusVFree FreeBusyStatus = "free" + // FreeBusyStatusVTentative undocumented + FreeBusyStatusVTentative FreeBusyStatus = "tentative" + // FreeBusyStatusVBusy undocumented + FreeBusyStatusVBusy FreeBusyStatus = "busy" + // FreeBusyStatusVOof undocumented + FreeBusyStatusVOof FreeBusyStatus = "oof" + // FreeBusyStatusVWorkingElsewhere undocumented + FreeBusyStatusVWorkingElsewhere FreeBusyStatus = "workingElsewhere" + // FreeBusyStatusVUnknown undocumented + FreeBusyStatusVUnknown FreeBusyStatus = "unknown" +) + +var ( + // FreeBusyStatusPFree is a pointer to FreeBusyStatusVFree + FreeBusyStatusPFree = &_FreeBusyStatusPFree + // FreeBusyStatusPTentative is a pointer to FreeBusyStatusVTentative + FreeBusyStatusPTentative = &_FreeBusyStatusPTentative + // FreeBusyStatusPBusy is a pointer to FreeBusyStatusVBusy + FreeBusyStatusPBusy = &_FreeBusyStatusPBusy + // FreeBusyStatusPOof is a pointer to FreeBusyStatusVOof + FreeBusyStatusPOof = &_FreeBusyStatusPOof + // FreeBusyStatusPWorkingElsewhere is a pointer to FreeBusyStatusVWorkingElsewhere + FreeBusyStatusPWorkingElsewhere = &_FreeBusyStatusPWorkingElsewhere + // FreeBusyStatusPUnknown is a pointer to FreeBusyStatusVUnknown + FreeBusyStatusPUnknown = &_FreeBusyStatusPUnknown +) + +var ( + _FreeBusyStatusPFree = FreeBusyStatusVFree + _FreeBusyStatusPTentative = FreeBusyStatusVTentative + _FreeBusyStatusPBusy = FreeBusyStatusVBusy + _FreeBusyStatusPOof = FreeBusyStatusVOof + _FreeBusyStatusPWorkingElsewhere = FreeBusyStatusVWorkingElsewhere + _FreeBusyStatusPUnknown = FreeBusyStatusVUnknown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go new file mode 100644 index 00000000..3c5b2c7b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// GiphyRatingType undocumented +type GiphyRatingType string + +const ( + // GiphyRatingTypeVStrict undocumented + GiphyRatingTypeVStrict GiphyRatingType = "strict" + // GiphyRatingTypeVModerate undocumented + GiphyRatingTypeVModerate GiphyRatingType = "moderate" + // GiphyRatingTypeVUnknownFutureValue undocumented + GiphyRatingTypeVUnknownFutureValue GiphyRatingType = "unknownFutureValue" +) + +var ( + // GiphyRatingTypePStrict is a pointer to GiphyRatingTypeVStrict + GiphyRatingTypePStrict = &_GiphyRatingTypePStrict + // GiphyRatingTypePModerate is a pointer to GiphyRatingTypeVModerate + GiphyRatingTypePModerate = &_GiphyRatingTypePModerate + // GiphyRatingTypePUnknownFutureValue is a pointer to GiphyRatingTypeVUnknownFutureValue + GiphyRatingTypePUnknownFutureValue = &_GiphyRatingTypePUnknownFutureValue +) + +var ( + _GiphyRatingTypePStrict = GiphyRatingTypeVStrict + _GiphyRatingTypePModerate = GiphyRatingTypeVModerate + _GiphyRatingTypePUnknownFutureValue = GiphyRatingTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go new file mode 100644 index 00000000..325e6ced --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go @@ -0,0 +1,241 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// GroupAccessType undocumented +type GroupAccessType string + +const ( + // GroupAccessTypeVNone undocumented + GroupAccessTypeVNone GroupAccessType = "none" + // GroupAccessTypeVPrivate undocumented + GroupAccessTypeVPrivate GroupAccessType = "private" + // GroupAccessTypeVSecret undocumented + GroupAccessTypeVSecret GroupAccessType = "secret" + // GroupAccessTypeVPublic undocumented + GroupAccessTypeVPublic GroupAccessType = "public" +) + +var ( + // GroupAccessTypePNone is a pointer to GroupAccessTypeVNone + GroupAccessTypePNone = &_GroupAccessTypePNone + // GroupAccessTypePPrivate is a pointer to GroupAccessTypeVPrivate + GroupAccessTypePPrivate = &_GroupAccessTypePPrivate + // GroupAccessTypePSecret is a pointer to GroupAccessTypeVSecret + GroupAccessTypePSecret = &_GroupAccessTypePSecret + // GroupAccessTypePPublic is a pointer to GroupAccessTypeVPublic + GroupAccessTypePPublic = &_GroupAccessTypePPublic +) + +var ( + _GroupAccessTypePNone = GroupAccessTypeVNone + _GroupAccessTypePPrivate = GroupAccessTypeVPrivate + _GroupAccessTypePSecret = GroupAccessTypeVSecret + _GroupAccessTypePPublic = GroupAccessTypeVPublic +) + +// GroupPolicyConfigurationType undocumented +type GroupPolicyConfigurationType string + +const ( + // GroupPolicyConfigurationTypeVPolicy undocumented + GroupPolicyConfigurationTypeVPolicy GroupPolicyConfigurationType = "policy" + // GroupPolicyConfigurationTypeVPreference undocumented + GroupPolicyConfigurationTypeVPreference GroupPolicyConfigurationType = "preference" +) + +var ( + // GroupPolicyConfigurationTypePPolicy is a pointer to GroupPolicyConfigurationTypeVPolicy + GroupPolicyConfigurationTypePPolicy = &_GroupPolicyConfigurationTypePPolicy + // GroupPolicyConfigurationTypePPreference is a pointer to GroupPolicyConfigurationTypeVPreference + GroupPolicyConfigurationTypePPreference = &_GroupPolicyConfigurationTypePPreference +) + +var ( + _GroupPolicyConfigurationTypePPolicy = GroupPolicyConfigurationTypeVPolicy + _GroupPolicyConfigurationTypePPreference = GroupPolicyConfigurationTypeVPreference +) + +// GroupPolicyDefinitionClassType undocumented +type GroupPolicyDefinitionClassType string + +const ( + // GroupPolicyDefinitionClassTypeVUser undocumented + GroupPolicyDefinitionClassTypeVUser GroupPolicyDefinitionClassType = "user" + // GroupPolicyDefinitionClassTypeVMachine undocumented + GroupPolicyDefinitionClassTypeVMachine GroupPolicyDefinitionClassType = "machine" +) + +var ( + // GroupPolicyDefinitionClassTypePUser is a pointer to GroupPolicyDefinitionClassTypeVUser + GroupPolicyDefinitionClassTypePUser = &_GroupPolicyDefinitionClassTypePUser + // GroupPolicyDefinitionClassTypePMachine is a pointer to GroupPolicyDefinitionClassTypeVMachine + GroupPolicyDefinitionClassTypePMachine = &_GroupPolicyDefinitionClassTypePMachine +) + +var ( + _GroupPolicyDefinitionClassTypePUser = GroupPolicyDefinitionClassTypeVUser + _GroupPolicyDefinitionClassTypePMachine = GroupPolicyDefinitionClassTypeVMachine +) + +// GroupPolicyMigrationReadiness undocumented +type GroupPolicyMigrationReadiness string + +const ( + // GroupPolicyMigrationReadinessVNone undocumented + GroupPolicyMigrationReadinessVNone GroupPolicyMigrationReadiness = "none" + // GroupPolicyMigrationReadinessVPartial undocumented + GroupPolicyMigrationReadinessVPartial GroupPolicyMigrationReadiness = "partial" + // GroupPolicyMigrationReadinessVComplete undocumented + GroupPolicyMigrationReadinessVComplete GroupPolicyMigrationReadiness = "complete" + // GroupPolicyMigrationReadinessVError undocumented + GroupPolicyMigrationReadinessVError GroupPolicyMigrationReadiness = "error" + // GroupPolicyMigrationReadinessVNotApplicable undocumented + GroupPolicyMigrationReadinessVNotApplicable GroupPolicyMigrationReadiness = "notApplicable" +) + +var ( + // GroupPolicyMigrationReadinessPNone is a pointer to GroupPolicyMigrationReadinessVNone + GroupPolicyMigrationReadinessPNone = &_GroupPolicyMigrationReadinessPNone + // GroupPolicyMigrationReadinessPPartial is a pointer to GroupPolicyMigrationReadinessVPartial + GroupPolicyMigrationReadinessPPartial = &_GroupPolicyMigrationReadinessPPartial + // GroupPolicyMigrationReadinessPComplete is a pointer to GroupPolicyMigrationReadinessVComplete + GroupPolicyMigrationReadinessPComplete = &_GroupPolicyMigrationReadinessPComplete + // GroupPolicyMigrationReadinessPError is a pointer to GroupPolicyMigrationReadinessVError + GroupPolicyMigrationReadinessPError = &_GroupPolicyMigrationReadinessPError + // GroupPolicyMigrationReadinessPNotApplicable is a pointer to GroupPolicyMigrationReadinessVNotApplicable + GroupPolicyMigrationReadinessPNotApplicable = &_GroupPolicyMigrationReadinessPNotApplicable +) + +var ( + _GroupPolicyMigrationReadinessPNone = GroupPolicyMigrationReadinessVNone + _GroupPolicyMigrationReadinessPPartial = GroupPolicyMigrationReadinessVPartial + _GroupPolicyMigrationReadinessPComplete = GroupPolicyMigrationReadinessVComplete + _GroupPolicyMigrationReadinessPError = GroupPolicyMigrationReadinessVError + _GroupPolicyMigrationReadinessPNotApplicable = GroupPolicyMigrationReadinessVNotApplicable +) + +// GroupPolicySettingScope undocumented +type GroupPolicySettingScope string + +const ( + // GroupPolicySettingScopeVUnknown undocumented + GroupPolicySettingScopeVUnknown GroupPolicySettingScope = "unknown" + // GroupPolicySettingScopeVDevice undocumented + GroupPolicySettingScopeVDevice GroupPolicySettingScope = "device" + // GroupPolicySettingScopeVUser undocumented + GroupPolicySettingScopeVUser GroupPolicySettingScope = "user" +) + +var ( + // GroupPolicySettingScopePUnknown is a pointer to GroupPolicySettingScopeVUnknown + GroupPolicySettingScopePUnknown = &_GroupPolicySettingScopePUnknown + // GroupPolicySettingScopePDevice is a pointer to GroupPolicySettingScopeVDevice + GroupPolicySettingScopePDevice = &_GroupPolicySettingScopePDevice + // GroupPolicySettingScopePUser is a pointer to GroupPolicySettingScopeVUser + GroupPolicySettingScopePUser = &_GroupPolicySettingScopePUser +) + +var ( + _GroupPolicySettingScopePUnknown = GroupPolicySettingScopeVUnknown + _GroupPolicySettingScopePDevice = GroupPolicySettingScopeVDevice + _GroupPolicySettingScopePUser = GroupPolicySettingScopeVUser +) + +// GroupPolicySettingType undocumented +type GroupPolicySettingType string + +const ( + // GroupPolicySettingTypeVUnknown undocumented + GroupPolicySettingTypeVUnknown GroupPolicySettingType = "unknown" + // GroupPolicySettingTypeVPolicy undocumented + GroupPolicySettingTypeVPolicy GroupPolicySettingType = "policy" + // GroupPolicySettingTypeVAccount undocumented + GroupPolicySettingTypeVAccount GroupPolicySettingType = "account" +) + +var ( + // GroupPolicySettingTypePUnknown is a pointer to GroupPolicySettingTypeVUnknown + GroupPolicySettingTypePUnknown = &_GroupPolicySettingTypePUnknown + // GroupPolicySettingTypePPolicy is a pointer to GroupPolicySettingTypeVPolicy + GroupPolicySettingTypePPolicy = &_GroupPolicySettingTypePPolicy + // GroupPolicySettingTypePAccount is a pointer to GroupPolicySettingTypeVAccount + GroupPolicySettingTypePAccount = &_GroupPolicySettingTypePAccount +) + +var ( + _GroupPolicySettingTypePUnknown = GroupPolicySettingTypeVUnknown + _GroupPolicySettingTypePPolicy = GroupPolicySettingTypeVPolicy + _GroupPolicySettingTypePAccount = GroupPolicySettingTypeVAccount +) + +// GroupPolicyType undocumented +type GroupPolicyType string + +const ( + // GroupPolicyTypeVAdmxBacked undocumented + GroupPolicyTypeVAdmxBacked GroupPolicyType = "admxBacked" + // GroupPolicyTypeVAdmxIngested undocumented + GroupPolicyTypeVAdmxIngested GroupPolicyType = "admxIngested" +) + +var ( + // GroupPolicyTypePAdmxBacked is a pointer to GroupPolicyTypeVAdmxBacked + GroupPolicyTypePAdmxBacked = &_GroupPolicyTypePAdmxBacked + // GroupPolicyTypePAdmxIngested is a pointer to GroupPolicyTypeVAdmxIngested + GroupPolicyTypePAdmxIngested = &_GroupPolicyTypePAdmxIngested +) + +var ( + _GroupPolicyTypePAdmxBacked = GroupPolicyTypeVAdmxBacked + _GroupPolicyTypePAdmxIngested = GroupPolicyTypeVAdmxIngested +) + +// GroupPrivacy undocumented +type GroupPrivacy string + +const ( + // GroupPrivacyVPublic undocumented + GroupPrivacyVPublic GroupPrivacy = "public" + // GroupPrivacyVPrivate undocumented + GroupPrivacyVPrivate GroupPrivacy = "private" +) + +var ( + // GroupPrivacyPPublic is a pointer to GroupPrivacyVPublic + GroupPrivacyPPublic = &_GroupPrivacyPPublic + // GroupPrivacyPPrivate is a pointer to GroupPrivacyVPrivate + GroupPrivacyPPrivate = &_GroupPrivacyPPrivate +) + +var ( + _GroupPrivacyPPublic = GroupPrivacyVPublic + _GroupPrivacyPPrivate = GroupPrivacyVPrivate +) + +// GroupType undocumented +type GroupType string + +const ( + // GroupTypeVUnifiedGroups undocumented + GroupTypeVUnifiedGroups GroupType = "unifiedGroups" + // GroupTypeVAzureAD undocumented + GroupTypeVAzureAD GroupType = "azureAD" + // GroupTypeVUnknownFutureValue undocumented + GroupTypeVUnknownFutureValue GroupType = "unknownFutureValue" +) + +var ( + // GroupTypePUnifiedGroups is a pointer to GroupTypeVUnifiedGroups + GroupTypePUnifiedGroups = &_GroupTypePUnifiedGroups + // GroupTypePAzureAD is a pointer to GroupTypeVAzureAD + GroupTypePAzureAD = &_GroupTypePAzureAD + // GroupTypePUnknownFutureValue is a pointer to GroupTypeVUnknownFutureValue + GroupTypePUnknownFutureValue = &_GroupTypePUnknownFutureValue +) + +var ( + _GroupTypePUnifiedGroups = GroupTypeVUnifiedGroups + _GroupTypePAzureAD = GroupTypeVAzureAD + _GroupTypePUnknownFutureValue = GroupTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go new file mode 100644 index 00000000..03bd2de8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// HashAlgorithms undocumented +type HashAlgorithms string + +const ( + // HashAlgorithmsVSha1 undocumented + HashAlgorithmsVSha1 HashAlgorithms = "sha1" + // HashAlgorithmsVSha2 undocumented + HashAlgorithmsVSha2 HashAlgorithms = "sha2" +) + +var ( + // HashAlgorithmsPSha1 is a pointer to HashAlgorithmsVSha1 + HashAlgorithmsPSha1 = &_HashAlgorithmsPSha1 + // HashAlgorithmsPSha2 is a pointer to HashAlgorithmsVSha2 + HashAlgorithmsPSha2 = &_HashAlgorithmsPSha2 +) + +var ( + _HashAlgorithmsPSha1 = HashAlgorithmsVSha1 + _HashAlgorithmsPSha2 = HashAlgorithmsVSha2 +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go new file mode 100644 index 00000000..9f7413d7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// HealthState undocumented +type HealthState string + +const ( + // HealthStateVUnknown undocumented + HealthStateVUnknown HealthState = "unknown" + // HealthStateVHealthy undocumented + HealthStateVHealthy HealthState = "healthy" + // HealthStateVUnhealthy undocumented + HealthStateVUnhealthy HealthState = "unhealthy" +) + +var ( + // HealthStatePUnknown is a pointer to HealthStateVUnknown + HealthStatePUnknown = &_HealthStatePUnknown + // HealthStatePHealthy is a pointer to HealthStateVHealthy + HealthStatePHealthy = &_HealthStatePHealthy + // HealthStatePUnhealthy is a pointer to HealthStateVUnhealthy + HealthStatePUnhealthy = &_HealthStatePUnhealthy +) + +var ( + _HealthStatePUnknown = HealthStateVUnknown + _HealthStatePHealthy = HealthStateVHealthy + _HealthStatePUnhealthy = HealthStateVUnhealthy +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go new file mode 100644 index 00000000..65f01fdb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go @@ -0,0 +1,164 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// IOSNotificationAlertType undocumented +type IOSNotificationAlertType string + +const ( + // IOSNotificationAlertTypeVDeviceDefault undocumented + IOSNotificationAlertTypeVDeviceDefault IOSNotificationAlertType = "deviceDefault" + // IOSNotificationAlertTypeVBanner undocumented + IOSNotificationAlertTypeVBanner IOSNotificationAlertType = "banner" + // IOSNotificationAlertTypeVModal undocumented + IOSNotificationAlertTypeVModal IOSNotificationAlertType = "modal" + // IOSNotificationAlertTypeVNone undocumented + IOSNotificationAlertTypeVNone IOSNotificationAlertType = "none" +) + +var ( + // IOSNotificationAlertTypePDeviceDefault is a pointer to IOSNotificationAlertTypeVDeviceDefault + IOSNotificationAlertTypePDeviceDefault = &_IOSNotificationAlertTypePDeviceDefault + // IOSNotificationAlertTypePBanner is a pointer to IOSNotificationAlertTypeVBanner + IOSNotificationAlertTypePBanner = &_IOSNotificationAlertTypePBanner + // IOSNotificationAlertTypePModal is a pointer to IOSNotificationAlertTypeVModal + IOSNotificationAlertTypePModal = &_IOSNotificationAlertTypePModal + // IOSNotificationAlertTypePNone is a pointer to IOSNotificationAlertTypeVNone + IOSNotificationAlertTypePNone = &_IOSNotificationAlertTypePNone +) + +var ( + _IOSNotificationAlertTypePDeviceDefault = IOSNotificationAlertTypeVDeviceDefault + _IOSNotificationAlertTypePBanner = IOSNotificationAlertTypeVBanner + _IOSNotificationAlertTypePModal = IOSNotificationAlertTypeVModal + _IOSNotificationAlertTypePNone = IOSNotificationAlertTypeVNone +) + +// IOSUpdatesInstallStatus undocumented +type IOSUpdatesInstallStatus string + +const ( + // IOSUpdatesInstallStatusVSuccess undocumented + IOSUpdatesInstallStatusVSuccess IOSUpdatesInstallStatus = "success" + // IOSUpdatesInstallStatusVAvailable undocumented + IOSUpdatesInstallStatusVAvailable IOSUpdatesInstallStatus = "available" + // IOSUpdatesInstallStatusVIdle undocumented + IOSUpdatesInstallStatusVIdle IOSUpdatesInstallStatus = "idle" + // IOSUpdatesInstallStatusVUnknown undocumented + IOSUpdatesInstallStatusVUnknown IOSUpdatesInstallStatus = "unknown" + // IOSUpdatesInstallStatusVDownloading undocumented + IOSUpdatesInstallStatusVDownloading IOSUpdatesInstallStatus = "downloading" + // IOSUpdatesInstallStatusVDownloadFailed undocumented + IOSUpdatesInstallStatusVDownloadFailed IOSUpdatesInstallStatus = "downloadFailed" + // IOSUpdatesInstallStatusVDownloadRequiresComputer undocumented + IOSUpdatesInstallStatusVDownloadRequiresComputer IOSUpdatesInstallStatus = "downloadRequiresComputer" + // IOSUpdatesInstallStatusVDownloadInsufficientSpace undocumented + IOSUpdatesInstallStatusVDownloadInsufficientSpace IOSUpdatesInstallStatus = "downloadInsufficientSpace" + // IOSUpdatesInstallStatusVDownloadInsufficientPower undocumented + IOSUpdatesInstallStatusVDownloadInsufficientPower IOSUpdatesInstallStatus = "downloadInsufficientPower" + // IOSUpdatesInstallStatusVDownloadInsufficientNetwork undocumented + IOSUpdatesInstallStatusVDownloadInsufficientNetwork IOSUpdatesInstallStatus = "downloadInsufficientNetwork" + // IOSUpdatesInstallStatusVInstalling undocumented + IOSUpdatesInstallStatusVInstalling IOSUpdatesInstallStatus = "installing" + // IOSUpdatesInstallStatusVInstallInsufficientSpace undocumented + IOSUpdatesInstallStatusVInstallInsufficientSpace IOSUpdatesInstallStatus = "installInsufficientSpace" + // IOSUpdatesInstallStatusVInstallInsufficientPower undocumented + IOSUpdatesInstallStatusVInstallInsufficientPower IOSUpdatesInstallStatus = "installInsufficientPower" + // IOSUpdatesInstallStatusVInstallPhoneCallInProgress undocumented + IOSUpdatesInstallStatusVInstallPhoneCallInProgress IOSUpdatesInstallStatus = "installPhoneCallInProgress" + // IOSUpdatesInstallStatusVInstallFailed undocumented + IOSUpdatesInstallStatusVInstallFailed IOSUpdatesInstallStatus = "installFailed" + // IOSUpdatesInstallStatusVNotSupportedOperation undocumented + IOSUpdatesInstallStatusVNotSupportedOperation IOSUpdatesInstallStatus = "notSupportedOperation" + // IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError undocumented + IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError IOSUpdatesInstallStatus = "sharedDeviceUserLoggedInError" +) + +var ( + // IOSUpdatesInstallStatusPSuccess is a pointer to IOSUpdatesInstallStatusVSuccess + IOSUpdatesInstallStatusPSuccess = &_IOSUpdatesInstallStatusPSuccess + // IOSUpdatesInstallStatusPAvailable is a pointer to IOSUpdatesInstallStatusVAvailable + IOSUpdatesInstallStatusPAvailable = &_IOSUpdatesInstallStatusPAvailable + // IOSUpdatesInstallStatusPIdle is a pointer to IOSUpdatesInstallStatusVIdle + IOSUpdatesInstallStatusPIdle = &_IOSUpdatesInstallStatusPIdle + // IOSUpdatesInstallStatusPUnknown is a pointer to IOSUpdatesInstallStatusVUnknown + IOSUpdatesInstallStatusPUnknown = &_IOSUpdatesInstallStatusPUnknown + // IOSUpdatesInstallStatusPDownloading is a pointer to IOSUpdatesInstallStatusVDownloading + IOSUpdatesInstallStatusPDownloading = &_IOSUpdatesInstallStatusPDownloading + // IOSUpdatesInstallStatusPDownloadFailed is a pointer to IOSUpdatesInstallStatusVDownloadFailed + IOSUpdatesInstallStatusPDownloadFailed = &_IOSUpdatesInstallStatusPDownloadFailed + // IOSUpdatesInstallStatusPDownloadRequiresComputer is a pointer to IOSUpdatesInstallStatusVDownloadRequiresComputer + IOSUpdatesInstallStatusPDownloadRequiresComputer = &_IOSUpdatesInstallStatusPDownloadRequiresComputer + // IOSUpdatesInstallStatusPDownloadInsufficientSpace is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientSpace + IOSUpdatesInstallStatusPDownloadInsufficientSpace = &_IOSUpdatesInstallStatusPDownloadInsufficientSpace + // IOSUpdatesInstallStatusPDownloadInsufficientPower is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientPower + IOSUpdatesInstallStatusPDownloadInsufficientPower = &_IOSUpdatesInstallStatusPDownloadInsufficientPower + // IOSUpdatesInstallStatusPDownloadInsufficientNetwork is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientNetwork + IOSUpdatesInstallStatusPDownloadInsufficientNetwork = &_IOSUpdatesInstallStatusPDownloadInsufficientNetwork + // IOSUpdatesInstallStatusPInstalling is a pointer to IOSUpdatesInstallStatusVInstalling + IOSUpdatesInstallStatusPInstalling = &_IOSUpdatesInstallStatusPInstalling + // IOSUpdatesInstallStatusPInstallInsufficientSpace is a pointer to IOSUpdatesInstallStatusVInstallInsufficientSpace + IOSUpdatesInstallStatusPInstallInsufficientSpace = &_IOSUpdatesInstallStatusPInstallInsufficientSpace + // IOSUpdatesInstallStatusPInstallInsufficientPower is a pointer to IOSUpdatesInstallStatusVInstallInsufficientPower + IOSUpdatesInstallStatusPInstallInsufficientPower = &_IOSUpdatesInstallStatusPInstallInsufficientPower + // IOSUpdatesInstallStatusPInstallPhoneCallInProgress is a pointer to IOSUpdatesInstallStatusVInstallPhoneCallInProgress + IOSUpdatesInstallStatusPInstallPhoneCallInProgress = &_IOSUpdatesInstallStatusPInstallPhoneCallInProgress + // IOSUpdatesInstallStatusPInstallFailed is a pointer to IOSUpdatesInstallStatusVInstallFailed + IOSUpdatesInstallStatusPInstallFailed = &_IOSUpdatesInstallStatusPInstallFailed + // IOSUpdatesInstallStatusPNotSupportedOperation is a pointer to IOSUpdatesInstallStatusVNotSupportedOperation + IOSUpdatesInstallStatusPNotSupportedOperation = &_IOSUpdatesInstallStatusPNotSupportedOperation + // IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError is a pointer to IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError + IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError = &_IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError +) + +var ( + _IOSUpdatesInstallStatusPSuccess = IOSUpdatesInstallStatusVSuccess + _IOSUpdatesInstallStatusPAvailable = IOSUpdatesInstallStatusVAvailable + _IOSUpdatesInstallStatusPIdle = IOSUpdatesInstallStatusVIdle + _IOSUpdatesInstallStatusPUnknown = IOSUpdatesInstallStatusVUnknown + _IOSUpdatesInstallStatusPDownloading = IOSUpdatesInstallStatusVDownloading + _IOSUpdatesInstallStatusPDownloadFailed = IOSUpdatesInstallStatusVDownloadFailed + _IOSUpdatesInstallStatusPDownloadRequiresComputer = IOSUpdatesInstallStatusVDownloadRequiresComputer + _IOSUpdatesInstallStatusPDownloadInsufficientSpace = IOSUpdatesInstallStatusVDownloadInsufficientSpace + _IOSUpdatesInstallStatusPDownloadInsufficientPower = IOSUpdatesInstallStatusVDownloadInsufficientPower + _IOSUpdatesInstallStatusPDownloadInsufficientNetwork = IOSUpdatesInstallStatusVDownloadInsufficientNetwork + _IOSUpdatesInstallStatusPInstalling = IOSUpdatesInstallStatusVInstalling + _IOSUpdatesInstallStatusPInstallInsufficientSpace = IOSUpdatesInstallStatusVInstallInsufficientSpace + _IOSUpdatesInstallStatusPInstallInsufficientPower = IOSUpdatesInstallStatusVInstallInsufficientPower + _IOSUpdatesInstallStatusPInstallPhoneCallInProgress = IOSUpdatesInstallStatusVInstallPhoneCallInProgress + _IOSUpdatesInstallStatusPInstallFailed = IOSUpdatesInstallStatusVInstallFailed + _IOSUpdatesInstallStatusPNotSupportedOperation = IOSUpdatesInstallStatusVNotSupportedOperation + _IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError = IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError +) + +// IOSWallpaperDisplayLocation undocumented +type IOSWallpaperDisplayLocation string + +const ( + // IOSWallpaperDisplayLocationVNotConfigured undocumented + IOSWallpaperDisplayLocationVNotConfigured IOSWallpaperDisplayLocation = "notConfigured" + // IOSWallpaperDisplayLocationVLockScreen undocumented + IOSWallpaperDisplayLocationVLockScreen IOSWallpaperDisplayLocation = "lockScreen" + // IOSWallpaperDisplayLocationVHomeScreen undocumented + IOSWallpaperDisplayLocationVHomeScreen IOSWallpaperDisplayLocation = "homeScreen" + // IOSWallpaperDisplayLocationVLockAndHomeScreens undocumented + IOSWallpaperDisplayLocationVLockAndHomeScreens IOSWallpaperDisplayLocation = "lockAndHomeScreens" +) + +var ( + // IOSWallpaperDisplayLocationPNotConfigured is a pointer to IOSWallpaperDisplayLocationVNotConfigured + IOSWallpaperDisplayLocationPNotConfigured = &_IOSWallpaperDisplayLocationPNotConfigured + // IOSWallpaperDisplayLocationPLockScreen is a pointer to IOSWallpaperDisplayLocationVLockScreen + IOSWallpaperDisplayLocationPLockScreen = &_IOSWallpaperDisplayLocationPLockScreen + // IOSWallpaperDisplayLocationPHomeScreen is a pointer to IOSWallpaperDisplayLocationVHomeScreen + IOSWallpaperDisplayLocationPHomeScreen = &_IOSWallpaperDisplayLocationPHomeScreen + // IOSWallpaperDisplayLocationPLockAndHomeScreens is a pointer to IOSWallpaperDisplayLocationVLockAndHomeScreens + IOSWallpaperDisplayLocationPLockAndHomeScreens = &_IOSWallpaperDisplayLocationPLockAndHomeScreens +) + +var ( + _IOSWallpaperDisplayLocationPNotConfigured = IOSWallpaperDisplayLocationVNotConfigured + _IOSWallpaperDisplayLocationPLockScreen = IOSWallpaperDisplayLocationVLockScreen + _IOSWallpaperDisplayLocationPHomeScreen = IOSWallpaperDisplayLocationVHomeScreen + _IOSWallpaperDisplayLocationPLockAndHomeScreens = IOSWallpaperDisplayLocationVLockAndHomeScreens +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go new file mode 100644 index 00000000..2e54a4cc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ITunesPairingMode undocumented +type ITunesPairingMode string + +const ( + // ITunesPairingModeVDisallow undocumented + ITunesPairingModeVDisallow ITunesPairingMode = "disallow" + // ITunesPairingModeVAllow undocumented + ITunesPairingModeVAllow ITunesPairingMode = "allow" + // ITunesPairingModeVRequiresCertificate undocumented + ITunesPairingModeVRequiresCertificate ITunesPairingMode = "requiresCertificate" +) + +var ( + // ITunesPairingModePDisallow is a pointer to ITunesPairingModeVDisallow + ITunesPairingModePDisallow = &_ITunesPairingModePDisallow + // ITunesPairingModePAllow is a pointer to ITunesPairingModeVAllow + ITunesPairingModePAllow = &_ITunesPairingModePAllow + // ITunesPairingModePRequiresCertificate is a pointer to ITunesPairingModeVRequiresCertificate + ITunesPairingModePRequiresCertificate = &_ITunesPairingModePRequiresCertificate +) + +var ( + _ITunesPairingModePDisallow = ITunesPairingModeVDisallow + _ITunesPairingModePAllow = ITunesPairingModeVAllow + _ITunesPairingModePRequiresCertificate = ITunesPairingModeVRequiresCertificate +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go new file mode 100644 index 00000000..f6c10ee5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Importance undocumented +type Importance string + +const ( + // ImportanceVLow undocumented + ImportanceVLow Importance = "low" + // ImportanceVNormal undocumented + ImportanceVNormal Importance = "normal" + // ImportanceVHigh undocumented + ImportanceVHigh Importance = "high" +) + +var ( + // ImportancePLow is a pointer to ImportanceVLow + ImportancePLow = &_ImportancePLow + // ImportancePNormal is a pointer to ImportanceVNormal + ImportancePNormal = &_ImportancePNormal + // ImportancePHigh is a pointer to ImportanceVHigh + ImportancePHigh = &_ImportancePHigh +) + +var ( + _ImportancePLow = ImportanceVLow + _ImportancePNormal = ImportanceVNormal + _ImportancePHigh = ImportanceVHigh +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go new file mode 100644 index 00000000..d524d490 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go @@ -0,0 +1,99 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ImportedDeviceIdentityType undocumented +type ImportedDeviceIdentityType string + +const ( + // ImportedDeviceIdentityTypeVUnknown undocumented + ImportedDeviceIdentityTypeVUnknown ImportedDeviceIdentityType = "unknown" + // ImportedDeviceIdentityTypeVImei undocumented + ImportedDeviceIdentityTypeVImei ImportedDeviceIdentityType = "imei" + // ImportedDeviceIdentityTypeVSerialNumber undocumented + ImportedDeviceIdentityTypeVSerialNumber ImportedDeviceIdentityType = "serialNumber" +) + +var ( + // ImportedDeviceIdentityTypePUnknown is a pointer to ImportedDeviceIdentityTypeVUnknown + ImportedDeviceIdentityTypePUnknown = &_ImportedDeviceIdentityTypePUnknown + // ImportedDeviceIdentityTypePImei is a pointer to ImportedDeviceIdentityTypeVImei + ImportedDeviceIdentityTypePImei = &_ImportedDeviceIdentityTypePImei + // ImportedDeviceIdentityTypePSerialNumber is a pointer to ImportedDeviceIdentityTypeVSerialNumber + ImportedDeviceIdentityTypePSerialNumber = &_ImportedDeviceIdentityTypePSerialNumber +) + +var ( + _ImportedDeviceIdentityTypePUnknown = ImportedDeviceIdentityTypeVUnknown + _ImportedDeviceIdentityTypePImei = ImportedDeviceIdentityTypeVImei + _ImportedDeviceIdentityTypePSerialNumber = ImportedDeviceIdentityTypeVSerialNumber +) + +// ImportedWindowsAutopilotDeviceIdentityImportStatus undocumented +type ImportedWindowsAutopilotDeviceIdentityImportStatus string + +const ( + // ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown undocumented + ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown ImportedWindowsAutopilotDeviceIdentityImportStatus = "unknown" + // ImportedWindowsAutopilotDeviceIdentityImportStatusVPending undocumented + ImportedWindowsAutopilotDeviceIdentityImportStatusVPending ImportedWindowsAutopilotDeviceIdentityImportStatus = "pending" + // ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial undocumented + ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial ImportedWindowsAutopilotDeviceIdentityImportStatus = "partial" + // ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete undocumented + ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete ImportedWindowsAutopilotDeviceIdentityImportStatus = "complete" + // ImportedWindowsAutopilotDeviceIdentityImportStatusVError undocumented + ImportedWindowsAutopilotDeviceIdentityImportStatusVError ImportedWindowsAutopilotDeviceIdentityImportStatus = "error" +) + +var ( + // ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown + ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown + // ImportedWindowsAutopilotDeviceIdentityImportStatusPPending is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPending + ImportedWindowsAutopilotDeviceIdentityImportStatusPPending = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPPending + // ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial + ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial + // ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete + ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete + // ImportedWindowsAutopilotDeviceIdentityImportStatusPError is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVError + ImportedWindowsAutopilotDeviceIdentityImportStatusPError = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPError +) + +var ( + _ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown = ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown + _ImportedWindowsAutopilotDeviceIdentityImportStatusPPending = ImportedWindowsAutopilotDeviceIdentityImportStatusVPending + _ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial = ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial + _ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete = ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete + _ImportedWindowsAutopilotDeviceIdentityImportStatusPError = ImportedWindowsAutopilotDeviceIdentityImportStatusVError +) + +// ImportedWindowsAutopilotDeviceIdentityUploadStatus undocumented +type ImportedWindowsAutopilotDeviceIdentityUploadStatus string + +const ( + // ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload undocumented + ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload ImportedWindowsAutopilotDeviceIdentityUploadStatus = "noUpload" + // ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending undocumented + ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending ImportedWindowsAutopilotDeviceIdentityUploadStatus = "pending" + // ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete undocumented + ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete ImportedWindowsAutopilotDeviceIdentityUploadStatus = "complete" + // ImportedWindowsAutopilotDeviceIdentityUploadStatusVError undocumented + ImportedWindowsAutopilotDeviceIdentityUploadStatusVError ImportedWindowsAutopilotDeviceIdentityUploadStatus = "error" +) + +var ( + // ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload + ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload + // ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending + ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending + // ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete + ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete + // ImportedWindowsAutopilotDeviceIdentityUploadStatusPError is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVError + ImportedWindowsAutopilotDeviceIdentityUploadStatusPError = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPError +) + +var ( + _ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload = ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload + _ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending = ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending + _ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete = ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete + _ImportedWindowsAutopilotDeviceIdentityUploadStatusPError = ImportedWindowsAutopilotDeviceIdentityUploadStatusVError +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go new file mode 100644 index 00000000..d3be8718 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InferenceClassificationType undocumented +type InferenceClassificationType string + +const ( + // InferenceClassificationTypeVFocused undocumented + InferenceClassificationTypeVFocused InferenceClassificationType = "focused" + // InferenceClassificationTypeVOther undocumented + InferenceClassificationTypeVOther InferenceClassificationType = "other" +) + +var ( + // InferenceClassificationTypePFocused is a pointer to InferenceClassificationTypeVFocused + InferenceClassificationTypePFocused = &_InferenceClassificationTypePFocused + // InferenceClassificationTypePOther is a pointer to InferenceClassificationTypeVOther + InferenceClassificationTypePOther = &_InferenceClassificationTypePOther +) + +var ( + _InferenceClassificationTypePFocused = InferenceClassificationTypeVFocused + _InferenceClassificationTypePOther = InferenceClassificationTypeVOther +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go new file mode 100644 index 00000000..26550d50 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InitiatorType undocumented +type InitiatorType string + +const ( + // InitiatorTypeVUser undocumented + InitiatorTypeVUser InitiatorType = "user" + // InitiatorTypeVApp undocumented + InitiatorTypeVApp InitiatorType = "app" + // InitiatorTypeVSystem undocumented + InitiatorTypeVSystem InitiatorType = "system" + // InitiatorTypeVUnknownFutureValue undocumented + InitiatorTypeVUnknownFutureValue InitiatorType = "unknownFutureValue" +) + +var ( + // InitiatorTypePUser is a pointer to InitiatorTypeVUser + InitiatorTypePUser = &_InitiatorTypePUser + // InitiatorTypePApp is a pointer to InitiatorTypeVApp + InitiatorTypePApp = &_InitiatorTypePApp + // InitiatorTypePSystem is a pointer to InitiatorTypeVSystem + InitiatorTypePSystem = &_InitiatorTypePSystem + // InitiatorTypePUnknownFutureValue is a pointer to InitiatorTypeVUnknownFutureValue + InitiatorTypePUnknownFutureValue = &_InitiatorTypePUnknownFutureValue +) + +var ( + _InitiatorTypePUser = InitiatorTypeVUser + _InitiatorTypePApp = InitiatorTypeVApp + _InitiatorTypePSystem = InitiatorTypeVSystem + _InitiatorTypePUnknownFutureValue = InitiatorTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go new file mode 100644 index 00000000..16467e85 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InkAccessSetting undocumented +type InkAccessSetting string + +const ( + // InkAccessSettingVNotConfigured undocumented + InkAccessSettingVNotConfigured InkAccessSetting = "notConfigured" + // InkAccessSettingVEnabled undocumented + InkAccessSettingVEnabled InkAccessSetting = "enabled" + // InkAccessSettingVDisabled undocumented + InkAccessSettingVDisabled InkAccessSetting = "disabled" +) + +var ( + // InkAccessSettingPNotConfigured is a pointer to InkAccessSettingVNotConfigured + InkAccessSettingPNotConfigured = &_InkAccessSettingPNotConfigured + // InkAccessSettingPEnabled is a pointer to InkAccessSettingVEnabled + InkAccessSettingPEnabled = &_InkAccessSettingPEnabled + // InkAccessSettingPDisabled is a pointer to InkAccessSettingVDisabled + InkAccessSettingPDisabled = &_InkAccessSettingPDisabled +) + +var ( + _InkAccessSettingPNotConfigured = InkAccessSettingVNotConfigured + _InkAccessSettingPEnabled = InkAccessSettingVEnabled + _InkAccessSettingPDisabled = InkAccessSettingVDisabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go new file mode 100644 index 00000000..8f010113 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go @@ -0,0 +1,77 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InstallIntent undocumented +type InstallIntent string + +const ( + // InstallIntentVAvailable undocumented + InstallIntentVAvailable InstallIntent = "available" + // InstallIntentVRequired undocumented + InstallIntentVRequired InstallIntent = "required" + // InstallIntentVUninstall undocumented + InstallIntentVUninstall InstallIntent = "uninstall" + // InstallIntentVAvailableWithoutEnrollment undocumented + InstallIntentVAvailableWithoutEnrollment InstallIntent = "availableWithoutEnrollment" +) + +var ( + // InstallIntentPAvailable is a pointer to InstallIntentVAvailable + InstallIntentPAvailable = &_InstallIntentPAvailable + // InstallIntentPRequired is a pointer to InstallIntentVRequired + InstallIntentPRequired = &_InstallIntentPRequired + // InstallIntentPUninstall is a pointer to InstallIntentVUninstall + InstallIntentPUninstall = &_InstallIntentPUninstall + // InstallIntentPAvailableWithoutEnrollment is a pointer to InstallIntentVAvailableWithoutEnrollment + InstallIntentPAvailableWithoutEnrollment = &_InstallIntentPAvailableWithoutEnrollment +) + +var ( + _InstallIntentPAvailable = InstallIntentVAvailable + _InstallIntentPRequired = InstallIntentVRequired + _InstallIntentPUninstall = InstallIntentVUninstall + _InstallIntentPAvailableWithoutEnrollment = InstallIntentVAvailableWithoutEnrollment +) + +// InstallState undocumented +type InstallState string + +const ( + // InstallStateVNotApplicable undocumented + InstallStateVNotApplicable InstallState = "notApplicable" + // InstallStateVInstalled undocumented + InstallStateVInstalled InstallState = "installed" + // InstallStateVFailed undocumented + InstallStateVFailed InstallState = "failed" + // InstallStateVNotInstalled undocumented + InstallStateVNotInstalled InstallState = "notInstalled" + // InstallStateVUninstallFailed undocumented + InstallStateVUninstallFailed InstallState = "uninstallFailed" + // InstallStateVUnknown undocumented + InstallStateVUnknown InstallState = "unknown" +) + +var ( + // InstallStatePNotApplicable is a pointer to InstallStateVNotApplicable + InstallStatePNotApplicable = &_InstallStatePNotApplicable + // InstallStatePInstalled is a pointer to InstallStateVInstalled + InstallStatePInstalled = &_InstallStatePInstalled + // InstallStatePFailed is a pointer to InstallStateVFailed + InstallStatePFailed = &_InstallStatePFailed + // InstallStatePNotInstalled is a pointer to InstallStateVNotInstalled + InstallStatePNotInstalled = &_InstallStatePNotInstalled + // InstallStatePUninstallFailed is a pointer to InstallStateVUninstallFailed + InstallStatePUninstallFailed = &_InstallStatePUninstallFailed + // InstallStatePUnknown is a pointer to InstallStateVUnknown + InstallStatePUnknown = &_InstallStatePUnknown +) + +var ( + _InstallStatePNotApplicable = InstallStateVNotApplicable + _InstallStatePInstalled = InstallStateVInstalled + _InstallStatePFailed = InstallStateVFailed + _InstallStatePNotInstalled = InstallStateVNotInstalled + _InstallStatePUninstallFailed = InstallStateVUninstallFailed + _InstallStatePUnknown = InstallStateVUnknown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go new file mode 100644 index 00000000..b1bacb7d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// IntendedPurpose undocumented +type IntendedPurpose string + +const ( + // IntendedPurposeVUnassigned undocumented + IntendedPurposeVUnassigned IntendedPurpose = "unassigned" + // IntendedPurposeVSmimeEncryption undocumented + IntendedPurposeVSmimeEncryption IntendedPurpose = "smimeEncryption" + // IntendedPurposeVSmimeSigning undocumented + IntendedPurposeVSmimeSigning IntendedPurpose = "smimeSigning" + // IntendedPurposeVVPN undocumented + IntendedPurposeVVPN IntendedPurpose = "vpn" + // IntendedPurposeVWiFi undocumented + IntendedPurposeVWiFi IntendedPurpose = "wifi" +) + +var ( + // IntendedPurposePUnassigned is a pointer to IntendedPurposeVUnassigned + IntendedPurposePUnassigned = &_IntendedPurposePUnassigned + // IntendedPurposePSmimeEncryption is a pointer to IntendedPurposeVSmimeEncryption + IntendedPurposePSmimeEncryption = &_IntendedPurposePSmimeEncryption + // IntendedPurposePSmimeSigning is a pointer to IntendedPurposeVSmimeSigning + IntendedPurposePSmimeSigning = &_IntendedPurposePSmimeSigning + // IntendedPurposePVPN is a pointer to IntendedPurposeVVPN + IntendedPurposePVPN = &_IntendedPurposePVPN + // IntendedPurposePWiFi is a pointer to IntendedPurposeVWiFi + IntendedPurposePWiFi = &_IntendedPurposePWiFi +) + +var ( + _IntendedPurposePUnassigned = IntendedPurposeVUnassigned + _IntendedPurposePSmimeEncryption = IntendedPurposeVSmimeEncryption + _IntendedPurposePSmimeSigning = IntendedPurposeVSmimeSigning + _IntendedPurposePVPN = IntendedPurposeVVPN + _IntendedPurposePWiFi = IntendedPurposeVWiFi +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go new file mode 100644 index 00000000..4248eebd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InternetExplorerMessageSetting undocumented +type InternetExplorerMessageSetting string + +const ( + // InternetExplorerMessageSettingVNotConfigured undocumented + InternetExplorerMessageSettingVNotConfigured InternetExplorerMessageSetting = "notConfigured" + // InternetExplorerMessageSettingVDisabled undocumented + InternetExplorerMessageSettingVDisabled InternetExplorerMessageSetting = "disabled" + // InternetExplorerMessageSettingVEnabled undocumented + InternetExplorerMessageSettingVEnabled InternetExplorerMessageSetting = "enabled" + // InternetExplorerMessageSettingVKeepGoing undocumented + InternetExplorerMessageSettingVKeepGoing InternetExplorerMessageSetting = "keepGoing" +) + +var ( + // InternetExplorerMessageSettingPNotConfigured is a pointer to InternetExplorerMessageSettingVNotConfigured + InternetExplorerMessageSettingPNotConfigured = &_InternetExplorerMessageSettingPNotConfigured + // InternetExplorerMessageSettingPDisabled is a pointer to InternetExplorerMessageSettingVDisabled + InternetExplorerMessageSettingPDisabled = &_InternetExplorerMessageSettingPDisabled + // InternetExplorerMessageSettingPEnabled is a pointer to InternetExplorerMessageSettingVEnabled + InternetExplorerMessageSettingPEnabled = &_InternetExplorerMessageSettingPEnabled + // InternetExplorerMessageSettingPKeepGoing is a pointer to InternetExplorerMessageSettingVKeepGoing + InternetExplorerMessageSettingPKeepGoing = &_InternetExplorerMessageSettingPKeepGoing +) + +var ( + _InternetExplorerMessageSettingPNotConfigured = InternetExplorerMessageSettingVNotConfigured + _InternetExplorerMessageSettingPDisabled = InternetExplorerMessageSettingVDisabled + _InternetExplorerMessageSettingPEnabled = InternetExplorerMessageSettingVEnabled + _InternetExplorerMessageSettingPKeepGoing = InternetExplorerMessageSettingVKeepGoing +) + +// InternetSiteSecurityLevel undocumented +type InternetSiteSecurityLevel string + +const ( + // InternetSiteSecurityLevelVUserDefined undocumented + InternetSiteSecurityLevelVUserDefined InternetSiteSecurityLevel = "userDefined" + // InternetSiteSecurityLevelVMedium undocumented + InternetSiteSecurityLevelVMedium InternetSiteSecurityLevel = "medium" + // InternetSiteSecurityLevelVMediumHigh undocumented + InternetSiteSecurityLevelVMediumHigh InternetSiteSecurityLevel = "mediumHigh" + // InternetSiteSecurityLevelVHigh undocumented + InternetSiteSecurityLevelVHigh InternetSiteSecurityLevel = "high" +) + +var ( + // InternetSiteSecurityLevelPUserDefined is a pointer to InternetSiteSecurityLevelVUserDefined + InternetSiteSecurityLevelPUserDefined = &_InternetSiteSecurityLevelPUserDefined + // InternetSiteSecurityLevelPMedium is a pointer to InternetSiteSecurityLevelVMedium + InternetSiteSecurityLevelPMedium = &_InternetSiteSecurityLevelPMedium + // InternetSiteSecurityLevelPMediumHigh is a pointer to InternetSiteSecurityLevelVMediumHigh + InternetSiteSecurityLevelPMediumHigh = &_InternetSiteSecurityLevelPMediumHigh + // InternetSiteSecurityLevelPHigh is a pointer to InternetSiteSecurityLevelVHigh + InternetSiteSecurityLevelPHigh = &_InternetSiteSecurityLevelPHigh +) + +var ( + _InternetSiteSecurityLevelPUserDefined = InternetSiteSecurityLevelVUserDefined + _InternetSiteSecurityLevelPMedium = InternetSiteSecurityLevelVMedium + _InternetSiteSecurityLevelPMediumHigh = InternetSiteSecurityLevelVMediumHigh + _InternetSiteSecurityLevelPHigh = InternetSiteSecurityLevelVHigh +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go new file mode 100644 index 00000000..47fd68f7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// KeySize undocumented +type KeySize string + +const ( + // KeySizeVSize1024 undocumented + KeySizeVSize1024 KeySize = "size1024" + // KeySizeVSize2048 undocumented + KeySizeVSize2048 KeySize = "size2048" +) + +var ( + // KeySizePSize1024 is a pointer to KeySizeVSize1024 + KeySizePSize1024 = &_KeySizePSize1024 + // KeySizePSize2048 is a pointer to KeySizeVSize2048 + KeySizePSize2048 = &_KeySizePSize2048 +) + +var ( + _KeySizePSize1024 = KeySizeVSize1024 + _KeySizePSize2048 = KeySizeVSize2048 +) + +// KeyStorageProviderOption undocumented +type KeyStorageProviderOption string + +const ( + // KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp undocumented + KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp KeyStorageProviderOption = "useTpmKspOtherwiseUseSoftwareKsp" + // KeyStorageProviderOptionVUseTpmKspOtherwiseFail undocumented + KeyStorageProviderOptionVUseTpmKspOtherwiseFail KeyStorageProviderOption = "useTpmKspOtherwiseFail" + // KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail undocumented + KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail KeyStorageProviderOption = "usePassportForWorkKspOtherwiseFail" + // KeyStorageProviderOptionVUseSoftwareKsp undocumented + KeyStorageProviderOptionVUseSoftwareKsp KeyStorageProviderOption = "useSoftwareKsp" +) + +var ( + // KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp is a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp + KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp = &_KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp + // KeyStorageProviderOptionPUseTpmKspOtherwiseFail is a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseFail + KeyStorageProviderOptionPUseTpmKspOtherwiseFail = &_KeyStorageProviderOptionPUseTpmKspOtherwiseFail + // KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail is a pointer to KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail + KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail = &_KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail + // KeyStorageProviderOptionPUseSoftwareKsp is a pointer to KeyStorageProviderOptionVUseSoftwareKsp + KeyStorageProviderOptionPUseSoftwareKsp = &_KeyStorageProviderOptionPUseSoftwareKsp +) + +var ( + _KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp = KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp + _KeyStorageProviderOptionPUseTpmKspOtherwiseFail = KeyStorageProviderOptionVUseTpmKspOtherwiseFail + _KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail = KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail + _KeyStorageProviderOptionPUseSoftwareKsp = KeyStorageProviderOptionVUseSoftwareKsp +) + +// KeyUsages undocumented +type KeyUsages string + +const ( + // KeyUsagesVKeyEncipherment undocumented + KeyUsagesVKeyEncipherment KeyUsages = "keyEncipherment" + // KeyUsagesVDigitalSignature undocumented + KeyUsagesVDigitalSignature KeyUsages = "digitalSignature" +) + +var ( + // KeyUsagesPKeyEncipherment is a pointer to KeyUsagesVKeyEncipherment + KeyUsagesPKeyEncipherment = &_KeyUsagesPKeyEncipherment + // KeyUsagesPDigitalSignature is a pointer to KeyUsagesVDigitalSignature + KeyUsagesPDigitalSignature = &_KeyUsagesPDigitalSignature +) + +var ( + _KeyUsagesPKeyEncipherment = KeyUsagesVKeyEncipherment + _KeyUsagesPDigitalSignature = KeyUsagesVDigitalSignature +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go new file mode 100644 index 00000000..6a983173 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LanManagerAuthenticationLevel undocumented +type LanManagerAuthenticationLevel string + +const ( + // LanManagerAuthenticationLevelVLmAndNltm undocumented + LanManagerAuthenticationLevelVLmAndNltm LanManagerAuthenticationLevel = "lmAndNltm" + // LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 undocumented + LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 LanManagerAuthenticationLevel = "lmNtlmAndNtlmV2" + // LanManagerAuthenticationLevelVLmAndNtlmOnly undocumented + LanManagerAuthenticationLevelVLmAndNtlmOnly LanManagerAuthenticationLevel = "lmAndNtlmOnly" + // LanManagerAuthenticationLevelVLmAndNtlmV2 undocumented + LanManagerAuthenticationLevelVLmAndNtlmV2 LanManagerAuthenticationLevel = "lmAndNtlmV2" + // LanManagerAuthenticationLevelVLmNtlmV2AndNotLm undocumented + LanManagerAuthenticationLevelVLmNtlmV2AndNotLm LanManagerAuthenticationLevel = "lmNtlmV2AndNotLm" + // LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm undocumented + LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm LanManagerAuthenticationLevel = "lmNtlmV2AndNotLmOrNtm" +) + +var ( + // LanManagerAuthenticationLevelPLmAndNltm is a pointer to LanManagerAuthenticationLevelVLmAndNltm + LanManagerAuthenticationLevelPLmAndNltm = &_LanManagerAuthenticationLevelPLmAndNltm + // LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 is a pointer to LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 + LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 = &_LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 + // LanManagerAuthenticationLevelPLmAndNtlmOnly is a pointer to LanManagerAuthenticationLevelVLmAndNtlmOnly + LanManagerAuthenticationLevelPLmAndNtlmOnly = &_LanManagerAuthenticationLevelPLmAndNtlmOnly + // LanManagerAuthenticationLevelPLmAndNtlmV2 is a pointer to LanManagerAuthenticationLevelVLmAndNtlmV2 + LanManagerAuthenticationLevelPLmAndNtlmV2 = &_LanManagerAuthenticationLevelPLmAndNtlmV2 + // LanManagerAuthenticationLevelPLmNtlmV2AndNotLm is a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLm + LanManagerAuthenticationLevelPLmNtlmV2AndNotLm = &_LanManagerAuthenticationLevelPLmNtlmV2AndNotLm + // LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm is a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm + LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm = &_LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm +) + +var ( + _LanManagerAuthenticationLevelPLmAndNltm = LanManagerAuthenticationLevelVLmAndNltm + _LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 = LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 + _LanManagerAuthenticationLevelPLmAndNtlmOnly = LanManagerAuthenticationLevelVLmAndNtlmOnly + _LanManagerAuthenticationLevelPLmAndNtlmV2 = LanManagerAuthenticationLevelVLmAndNtlmV2 + _LanManagerAuthenticationLevelPLmNtlmV2AndNotLm = LanManagerAuthenticationLevelVLmNtlmV2AndNotLm + _LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm = LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go new file mode 100644 index 00000000..92690339 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LanguageProficiencyLevel undocumented +type LanguageProficiencyLevel string + +const ( + // LanguageProficiencyLevelVElementary undocumented + LanguageProficiencyLevelVElementary LanguageProficiencyLevel = "elementary" + // LanguageProficiencyLevelVConversational undocumented + LanguageProficiencyLevelVConversational LanguageProficiencyLevel = "conversational" + // LanguageProficiencyLevelVLimitedWorking undocumented + LanguageProficiencyLevelVLimitedWorking LanguageProficiencyLevel = "limitedWorking" + // LanguageProficiencyLevelVProfessionalWorking undocumented + LanguageProficiencyLevelVProfessionalWorking LanguageProficiencyLevel = "professionalWorking" + // LanguageProficiencyLevelVFullProfessional undocumented + LanguageProficiencyLevelVFullProfessional LanguageProficiencyLevel = "fullProfessional" + // LanguageProficiencyLevelVNativeOrBilingual undocumented + LanguageProficiencyLevelVNativeOrBilingual LanguageProficiencyLevel = "nativeOrBilingual" + // LanguageProficiencyLevelVUnknownFutureValue undocumented + LanguageProficiencyLevelVUnknownFutureValue LanguageProficiencyLevel = "unknownFutureValue" +) + +var ( + // LanguageProficiencyLevelPElementary is a pointer to LanguageProficiencyLevelVElementary + LanguageProficiencyLevelPElementary = &_LanguageProficiencyLevelPElementary + // LanguageProficiencyLevelPConversational is a pointer to LanguageProficiencyLevelVConversational + LanguageProficiencyLevelPConversational = &_LanguageProficiencyLevelPConversational + // LanguageProficiencyLevelPLimitedWorking is a pointer to LanguageProficiencyLevelVLimitedWorking + LanguageProficiencyLevelPLimitedWorking = &_LanguageProficiencyLevelPLimitedWorking + // LanguageProficiencyLevelPProfessionalWorking is a pointer to LanguageProficiencyLevelVProfessionalWorking + LanguageProficiencyLevelPProfessionalWorking = &_LanguageProficiencyLevelPProfessionalWorking + // LanguageProficiencyLevelPFullProfessional is a pointer to LanguageProficiencyLevelVFullProfessional + LanguageProficiencyLevelPFullProfessional = &_LanguageProficiencyLevelPFullProfessional + // LanguageProficiencyLevelPNativeOrBilingual is a pointer to LanguageProficiencyLevelVNativeOrBilingual + LanguageProficiencyLevelPNativeOrBilingual = &_LanguageProficiencyLevelPNativeOrBilingual + // LanguageProficiencyLevelPUnknownFutureValue is a pointer to LanguageProficiencyLevelVUnknownFutureValue + LanguageProficiencyLevelPUnknownFutureValue = &_LanguageProficiencyLevelPUnknownFutureValue +) + +var ( + _LanguageProficiencyLevelPElementary = LanguageProficiencyLevelVElementary + _LanguageProficiencyLevelPConversational = LanguageProficiencyLevelVConversational + _LanguageProficiencyLevelPLimitedWorking = LanguageProficiencyLevelVLimitedWorking + _LanguageProficiencyLevelPProfessionalWorking = LanguageProficiencyLevelVProfessionalWorking + _LanguageProficiencyLevelPFullProfessional = LanguageProficiencyLevelVFullProfessional + _LanguageProficiencyLevelPNativeOrBilingual = LanguageProficiencyLevelVNativeOrBilingual + _LanguageProficiencyLevelPUnknownFutureValue = LanguageProficiencyLevelVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go new file mode 100644 index 00000000..31ba6ff1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go @@ -0,0 +1,242 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LocalSecurityOptionsAdministratorElevationPromptBehaviorType undocumented +type LocalSecurityOptionsAdministratorElevationPromptBehaviorType string + +const ( + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "notConfigured" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "elevateWithoutPrompting" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForCredentialsOnTheSecureDesktop" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsentOnTheSecureDesktop" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForCredentials" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsent" + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries undocumented + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsentForNonWindowsBinaries" +) + +var ( + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent + // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries + LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries +) + +var ( + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent + _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries +) + +// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType undocumented +type LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType string + +const ( + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured undocumented + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "notConfigured" + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators undocumented + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administrators" + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers undocumented + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administratorsAndPowerUsers" + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers undocumented + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administratorsAndInteractiveUsers" +) + +var ( + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers +) + +var ( + _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured + _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators + _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers + _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers +) + +// LocalSecurityOptionsInformationDisplayedOnLockScreenType undocumented +type LocalSecurityOptionsInformationDisplayedOnLockScreenType string + +const ( + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured undocumented + LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationDisplayedOnLockScreenType = "notConfigured" + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators undocumented + LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administrators" + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers undocumented + LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administratorsAndPowerUsers" + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers undocumented + LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administratorsAndInteractiveUsers" +) + +var ( + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured + LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators + LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers + LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers + // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers + LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers +) + +var ( + _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured + _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators + _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers + _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers +) + +// LocalSecurityOptionsInformationShownOnLockScreenType undocumented +type LocalSecurityOptionsInformationShownOnLockScreenType string + +const ( + // LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured undocumented + LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationShownOnLockScreenType = "notConfigured" + // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser undocumented + LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser LocalSecurityOptionsInformationShownOnLockScreenType = "userDisplayNameDomainUser" + // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly undocumented + LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly LocalSecurityOptionsInformationShownOnLockScreenType = "userDisplayNameOnly" + // LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser undocumented + LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser LocalSecurityOptionsInformationShownOnLockScreenType = "doNotDisplayUser" +) + +var ( + // LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured + LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured = &_LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured + // LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser + LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser = &_LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser + // LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly + LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly = &_LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly + // LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser + LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser = &_LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser +) + +var ( + _LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured = LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured + _LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser = LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser + _LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly = LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly + _LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser = LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser +) + +// LocalSecurityOptionsMinimumSessionSecurity undocumented +type LocalSecurityOptionsMinimumSessionSecurity string + +const ( + // LocalSecurityOptionsMinimumSessionSecurityVNone undocumented + LocalSecurityOptionsMinimumSessionSecurityVNone LocalSecurityOptionsMinimumSessionSecurity = "none" + // LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity undocumented + LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity LocalSecurityOptionsMinimumSessionSecurity = "requireNtmlV2SessionSecurity" + // LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption undocumented + LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = "require128BitEncryption" + // LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption undocumented + LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = "ntlmV2And128BitEncryption" +) + +var ( + // LocalSecurityOptionsMinimumSessionSecurityPNone is a pointer to LocalSecurityOptionsMinimumSessionSecurityVNone + LocalSecurityOptionsMinimumSessionSecurityPNone = &_LocalSecurityOptionsMinimumSessionSecurityPNone + // LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity is a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity + LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity = &_LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity + // LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption is a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption + LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption = &_LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption + // LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption is a pointer to LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption + LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption = &_LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption +) + +var ( + _LocalSecurityOptionsMinimumSessionSecurityPNone = LocalSecurityOptionsMinimumSessionSecurityVNone + _LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity = LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity + _LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption = LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption + _LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption = LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption +) + +// LocalSecurityOptionsSmartCardRemovalBehaviorType undocumented +type LocalSecurityOptionsSmartCardRemovalBehaviorType string + +const ( + // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation undocumented + LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation LocalSecurityOptionsSmartCardRemovalBehaviorType = "lockWorkstation" + // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction undocumented + LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction LocalSecurityOptionsSmartCardRemovalBehaviorType = "noAction" + // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff undocumented + LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff LocalSecurityOptionsSmartCardRemovalBehaviorType = "forceLogoff" + // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession undocumented + LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession LocalSecurityOptionsSmartCardRemovalBehaviorType = "disconnectRemoteDesktopSession" +) + +var ( + // LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation + LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation + // LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction + LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction + // LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff + LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff + // LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession + LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession +) + +var ( + _LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation + _LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction + _LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff + _LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession +) + +// LocalSecurityOptionsStandardUserElevationPromptBehaviorType undocumented +type LocalSecurityOptionsStandardUserElevationPromptBehaviorType string + +const ( + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured undocumented + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "notConfigured" + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests undocumented + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "automaticallyDenyElevationRequests" + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "promptForCredentialsOnTheSecureDesktop" + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials undocumented + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "promptForCredentials" +) + +var ( + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop + // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials + LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials +) + +var ( + _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured + _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests + _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop + _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go new file mode 100644 index 00000000..030baf1d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go @@ -0,0 +1,102 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LocationType undocumented +type LocationType string + +const ( + // LocationTypeVDefault undocumented + LocationTypeVDefault LocationType = "default" + // LocationTypeVConferenceRoom undocumented + LocationTypeVConferenceRoom LocationType = "conferenceRoom" + // LocationTypeVHomeAddress undocumented + LocationTypeVHomeAddress LocationType = "homeAddress" + // LocationTypeVBusinessAddress undocumented + LocationTypeVBusinessAddress LocationType = "businessAddress" + // LocationTypeVGeoCoordinates undocumented + LocationTypeVGeoCoordinates LocationType = "geoCoordinates" + // LocationTypeVStreetAddress undocumented + LocationTypeVStreetAddress LocationType = "streetAddress" + // LocationTypeVHotel undocumented + LocationTypeVHotel LocationType = "hotel" + // LocationTypeVRestaurant undocumented + LocationTypeVRestaurant LocationType = "restaurant" + // LocationTypeVLocalBusiness undocumented + LocationTypeVLocalBusiness LocationType = "localBusiness" + // LocationTypeVPostalAddress undocumented + LocationTypeVPostalAddress LocationType = "postalAddress" +) + +var ( + // LocationTypePDefault is a pointer to LocationTypeVDefault + LocationTypePDefault = &_LocationTypePDefault + // LocationTypePConferenceRoom is a pointer to LocationTypeVConferenceRoom + LocationTypePConferenceRoom = &_LocationTypePConferenceRoom + // LocationTypePHomeAddress is a pointer to LocationTypeVHomeAddress + LocationTypePHomeAddress = &_LocationTypePHomeAddress + // LocationTypePBusinessAddress is a pointer to LocationTypeVBusinessAddress + LocationTypePBusinessAddress = &_LocationTypePBusinessAddress + // LocationTypePGeoCoordinates is a pointer to LocationTypeVGeoCoordinates + LocationTypePGeoCoordinates = &_LocationTypePGeoCoordinates + // LocationTypePStreetAddress is a pointer to LocationTypeVStreetAddress + LocationTypePStreetAddress = &_LocationTypePStreetAddress + // LocationTypePHotel is a pointer to LocationTypeVHotel + LocationTypePHotel = &_LocationTypePHotel + // LocationTypePRestaurant is a pointer to LocationTypeVRestaurant + LocationTypePRestaurant = &_LocationTypePRestaurant + // LocationTypePLocalBusiness is a pointer to LocationTypeVLocalBusiness + LocationTypePLocalBusiness = &_LocationTypePLocalBusiness + // LocationTypePPostalAddress is a pointer to LocationTypeVPostalAddress + LocationTypePPostalAddress = &_LocationTypePPostalAddress +) + +var ( + _LocationTypePDefault = LocationTypeVDefault + _LocationTypePConferenceRoom = LocationTypeVConferenceRoom + _LocationTypePHomeAddress = LocationTypeVHomeAddress + _LocationTypePBusinessAddress = LocationTypeVBusinessAddress + _LocationTypePGeoCoordinates = LocationTypeVGeoCoordinates + _LocationTypePStreetAddress = LocationTypeVStreetAddress + _LocationTypePHotel = LocationTypeVHotel + _LocationTypePRestaurant = LocationTypeVRestaurant + _LocationTypePLocalBusiness = LocationTypeVLocalBusiness + _LocationTypePPostalAddress = LocationTypeVPostalAddress +) + +// LocationUniqueIDType undocumented +type LocationUniqueIDType string + +const ( + // LocationUniqueIDTypeVUnknown undocumented + LocationUniqueIDTypeVUnknown LocationUniqueIDType = "unknown" + // LocationUniqueIDTypeVLocationStore undocumented + LocationUniqueIDTypeVLocationStore LocationUniqueIDType = "locationStore" + // LocationUniqueIDTypeVDirectory undocumented + LocationUniqueIDTypeVDirectory LocationUniqueIDType = "directory" + // LocationUniqueIDTypeVPrivate undocumented + LocationUniqueIDTypeVPrivate LocationUniqueIDType = "private" + // LocationUniqueIDTypeVBing undocumented + LocationUniqueIDTypeVBing LocationUniqueIDType = "bing" +) + +var ( + // LocationUniqueIDTypePUnknown is a pointer to LocationUniqueIDTypeVUnknown + LocationUniqueIDTypePUnknown = &_LocationUniqueIDTypePUnknown + // LocationUniqueIDTypePLocationStore is a pointer to LocationUniqueIDTypeVLocationStore + LocationUniqueIDTypePLocationStore = &_LocationUniqueIDTypePLocationStore + // LocationUniqueIDTypePDirectory is a pointer to LocationUniqueIDTypeVDirectory + LocationUniqueIDTypePDirectory = &_LocationUniqueIDTypePDirectory + // LocationUniqueIDTypePPrivate is a pointer to LocationUniqueIDTypeVPrivate + LocationUniqueIDTypePPrivate = &_LocationUniqueIDTypePPrivate + // LocationUniqueIDTypePBing is a pointer to LocationUniqueIDTypeVBing + LocationUniqueIDTypePBing = &_LocationUniqueIDTypePBing +) + +var ( + _LocationUniqueIDTypePUnknown = LocationUniqueIDTypeVUnknown + _LocationUniqueIDTypePLocationStore = LocationUniqueIDTypeVLocationStore + _LocationUniqueIDTypePDirectory = LocationUniqueIDTypeVDirectory + _LocationUniqueIDTypePPrivate = LocationUniqueIDTypeVPrivate + _LocationUniqueIDTypePBing = LocationUniqueIDTypeVBing +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go new file mode 100644 index 00000000..54a9f8e2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LogLevel undocumented +type LogLevel string + +const ( + // LogLevelVLogAlways undocumented + LogLevelVLogAlways LogLevel = "logAlways" + // LogLevelVCritical undocumented + LogLevelVCritical LogLevel = "critical" + // LogLevelVError undocumented + LogLevelVError LogLevel = "error" + // LogLevelVWarning undocumented + LogLevelVWarning LogLevel = "warning" + // LogLevelVInformation undocumented + LogLevelVInformation LogLevel = "information" + // LogLevelVVerbose undocumented + LogLevelVVerbose LogLevel = "verbose" +) + +var ( + // LogLevelPLogAlways is a pointer to LogLevelVLogAlways + LogLevelPLogAlways = &_LogLevelPLogAlways + // LogLevelPCritical is a pointer to LogLevelVCritical + LogLevelPCritical = &_LogLevelPCritical + // LogLevelPError is a pointer to LogLevelVError + LogLevelPError = &_LogLevelPError + // LogLevelPWarning is a pointer to LogLevelVWarning + LogLevelPWarning = &_LogLevelPWarning + // LogLevelPInformation is a pointer to LogLevelVInformation + LogLevelPInformation = &_LogLevelPInformation + // LogLevelPVerbose is a pointer to LogLevelVVerbose + LogLevelPVerbose = &_LogLevelPVerbose +) + +var ( + _LogLevelPLogAlways = LogLevelVLogAlways + _LogLevelPCritical = LogLevelVCritical + _LogLevelPError = LogLevelVError + _LogLevelPWarning = LogLevelVWarning + _LogLevelPInformation = LogLevelVInformation + _LogLevelPVerbose = LogLevelVVerbose +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go new file mode 100644 index 00000000..209b533c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LogonType undocumented +type LogonType string + +const ( + // LogonTypeVUnknown undocumented + LogonTypeVUnknown LogonType = "unknown" + // LogonTypeVInteractive undocumented + LogonTypeVInteractive LogonType = "interactive" + // LogonTypeVRemoteInteractive undocumented + LogonTypeVRemoteInteractive LogonType = "remoteInteractive" + // LogonTypeVNetwork undocumented + LogonTypeVNetwork LogonType = "network" + // LogonTypeVBatch undocumented + LogonTypeVBatch LogonType = "batch" + // LogonTypeVService undocumented + LogonTypeVService LogonType = "service" + // LogonTypeVUnknownFutureValue undocumented + LogonTypeVUnknownFutureValue LogonType = "unknownFutureValue" +) + +var ( + // LogonTypePUnknown is a pointer to LogonTypeVUnknown + LogonTypePUnknown = &_LogonTypePUnknown + // LogonTypePInteractive is a pointer to LogonTypeVInteractive + LogonTypePInteractive = &_LogonTypePInteractive + // LogonTypePRemoteInteractive is a pointer to LogonTypeVRemoteInteractive + LogonTypePRemoteInteractive = &_LogonTypePRemoteInteractive + // LogonTypePNetwork is a pointer to LogonTypeVNetwork + LogonTypePNetwork = &_LogonTypePNetwork + // LogonTypePBatch is a pointer to LogonTypeVBatch + LogonTypePBatch = &_LogonTypePBatch + // LogonTypePService is a pointer to LogonTypeVService + LogonTypePService = &_LogonTypePService + // LogonTypePUnknownFutureValue is a pointer to LogonTypeVUnknownFutureValue + LogonTypePUnknownFutureValue = &_LogonTypePUnknownFutureValue +) + +var ( + _LogonTypePUnknown = LogonTypeVUnknown + _LogonTypePInteractive = LogonTypeVInteractive + _LogonTypePRemoteInteractive = LogonTypeVRemoteInteractive + _LogonTypePNetwork = LogonTypeVNetwork + _LogonTypePBatch = LogonTypeVBatch + _LogonTypePService = LogonTypeVService + _LogonTypePUnknownFutureValue = LogonTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go new file mode 100644 index 00000000..c76b0892 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LostModeState undocumented +type LostModeState string + +const ( + // LostModeStateVDisabled undocumented + LostModeStateVDisabled LostModeState = "disabled" + // LostModeStateVEnabled undocumented + LostModeStateVEnabled LostModeState = "enabled" +) + +var ( + // LostModeStatePDisabled is a pointer to LostModeStateVDisabled + LostModeStatePDisabled = &_LostModeStatePDisabled + // LostModeStatePEnabled is a pointer to LostModeStateVEnabled + LostModeStatePEnabled = &_LostModeStatePEnabled +) + +var ( + _LostModeStatePDisabled = LostModeStateVDisabled + _LostModeStatePEnabled = LostModeStateVEnabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go new file mode 100644 index 00000000..57f402c5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go @@ -0,0 +1,72 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MDMAppConfigKeyType undocumented +type MDMAppConfigKeyType string + +const ( + // MDMAppConfigKeyTypeVStringType undocumented + MDMAppConfigKeyTypeVStringType MDMAppConfigKeyType = "stringType" + // MDMAppConfigKeyTypeVIntegerType undocumented + MDMAppConfigKeyTypeVIntegerType MDMAppConfigKeyType = "integerType" + // MDMAppConfigKeyTypeVRealType undocumented + MDMAppConfigKeyTypeVRealType MDMAppConfigKeyType = "realType" + // MDMAppConfigKeyTypeVBooleanType undocumented + MDMAppConfigKeyTypeVBooleanType MDMAppConfigKeyType = "booleanType" + // MDMAppConfigKeyTypeVTokenType undocumented + MDMAppConfigKeyTypeVTokenType MDMAppConfigKeyType = "tokenType" +) + +var ( + // MDMAppConfigKeyTypePStringType is a pointer to MDMAppConfigKeyTypeVStringType + MDMAppConfigKeyTypePStringType = &_MDMAppConfigKeyTypePStringType + // MDMAppConfigKeyTypePIntegerType is a pointer to MDMAppConfigKeyTypeVIntegerType + MDMAppConfigKeyTypePIntegerType = &_MDMAppConfigKeyTypePIntegerType + // MDMAppConfigKeyTypePRealType is a pointer to MDMAppConfigKeyTypeVRealType + MDMAppConfigKeyTypePRealType = &_MDMAppConfigKeyTypePRealType + // MDMAppConfigKeyTypePBooleanType is a pointer to MDMAppConfigKeyTypeVBooleanType + MDMAppConfigKeyTypePBooleanType = &_MDMAppConfigKeyTypePBooleanType + // MDMAppConfigKeyTypePTokenType is a pointer to MDMAppConfigKeyTypeVTokenType + MDMAppConfigKeyTypePTokenType = &_MDMAppConfigKeyTypePTokenType +) + +var ( + _MDMAppConfigKeyTypePStringType = MDMAppConfigKeyTypeVStringType + _MDMAppConfigKeyTypePIntegerType = MDMAppConfigKeyTypeVIntegerType + _MDMAppConfigKeyTypePRealType = MDMAppConfigKeyTypeVRealType + _MDMAppConfigKeyTypePBooleanType = MDMAppConfigKeyTypeVBooleanType + _MDMAppConfigKeyTypePTokenType = MDMAppConfigKeyTypeVTokenType +) + +// MDMAuthority undocumented +type MDMAuthority string + +const ( + // MDMAuthorityVUnknown undocumented + MDMAuthorityVUnknown MDMAuthority = "unknown" + // MDMAuthorityVIntune undocumented + MDMAuthorityVIntune MDMAuthority = "intune" + // MDMAuthorityVSccm undocumented + MDMAuthorityVSccm MDMAuthority = "sccm" + // MDMAuthorityVOffice365 undocumented + MDMAuthorityVOffice365 MDMAuthority = "office365" +) + +var ( + // MDMAuthorityPUnknown is a pointer to MDMAuthorityVUnknown + MDMAuthorityPUnknown = &_MDMAuthorityPUnknown + // MDMAuthorityPIntune is a pointer to MDMAuthorityVIntune + MDMAuthorityPIntune = &_MDMAuthorityPIntune + // MDMAuthorityPSccm is a pointer to MDMAuthorityVSccm + MDMAuthorityPSccm = &_MDMAuthorityPSccm + // MDMAuthorityPOffice365 is a pointer to MDMAuthorityVOffice365 + MDMAuthorityPOffice365 = &_MDMAuthorityPOffice365 +) + +var ( + _MDMAuthorityPUnknown = MDMAuthorityVUnknown + _MDMAuthorityPIntune = MDMAuthorityVIntune + _MDMAuthorityPSccm = MDMAuthorityVSccm + _MDMAuthorityPOffice365 = MDMAuthorityVOffice365 +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go new file mode 100644 index 00000000..e36b4285 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go @@ -0,0 +1,62 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MacOSFileVaultRecoveryKeyTypes undocumented +type MacOSFileVaultRecoveryKeyTypes string + +const ( + // MacOSFileVaultRecoveryKeyTypesVNotConfigured undocumented + MacOSFileVaultRecoveryKeyTypesVNotConfigured MacOSFileVaultRecoveryKeyTypes = "notConfigured" + // MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey undocumented + MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey MacOSFileVaultRecoveryKeyTypes = "institutionalRecoveryKey" + // MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey undocumented + MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey MacOSFileVaultRecoveryKeyTypes = "personalRecoveryKey" +) + +var ( + // MacOSFileVaultRecoveryKeyTypesPNotConfigured is a pointer to MacOSFileVaultRecoveryKeyTypesVNotConfigured + MacOSFileVaultRecoveryKeyTypesPNotConfigured = &_MacOSFileVaultRecoveryKeyTypesPNotConfigured + // MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey is a pointer to MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey + MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey = &_MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey + // MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey is a pointer to MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey + MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey = &_MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey +) + +var ( + _MacOSFileVaultRecoveryKeyTypesPNotConfigured = MacOSFileVaultRecoveryKeyTypesVNotConfigured + _MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey = MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey + _MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey = MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey +) + +// MacOSGatekeeperAppSources undocumented +type MacOSGatekeeperAppSources string + +const ( + // MacOSGatekeeperAppSourcesVNotConfigured undocumented + MacOSGatekeeperAppSourcesVNotConfigured MacOSGatekeeperAppSources = "notConfigured" + // MacOSGatekeeperAppSourcesVMacAppStore undocumented + MacOSGatekeeperAppSourcesVMacAppStore MacOSGatekeeperAppSources = "macAppStore" + // MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers undocumented + MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers MacOSGatekeeperAppSources = "macAppStoreAndIdentifiedDevelopers" + // MacOSGatekeeperAppSourcesVAnywhere undocumented + MacOSGatekeeperAppSourcesVAnywhere MacOSGatekeeperAppSources = "anywhere" +) + +var ( + // MacOSGatekeeperAppSourcesPNotConfigured is a pointer to MacOSGatekeeperAppSourcesVNotConfigured + MacOSGatekeeperAppSourcesPNotConfigured = &_MacOSGatekeeperAppSourcesPNotConfigured + // MacOSGatekeeperAppSourcesPMacAppStore is a pointer to MacOSGatekeeperAppSourcesVMacAppStore + MacOSGatekeeperAppSourcesPMacAppStore = &_MacOSGatekeeperAppSourcesPMacAppStore + // MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers is a pointer to MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers + MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers = &_MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers + // MacOSGatekeeperAppSourcesPAnywhere is a pointer to MacOSGatekeeperAppSourcesVAnywhere + MacOSGatekeeperAppSourcesPAnywhere = &_MacOSGatekeeperAppSourcesPAnywhere +) + +var ( + _MacOSGatekeeperAppSourcesPNotConfigured = MacOSGatekeeperAppSourcesVNotConfigured + _MacOSGatekeeperAppSourcesPMacAppStore = MacOSGatekeeperAppSourcesVMacAppStore + _MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers = MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers + _MacOSGatekeeperAppSourcesPAnywhere = MacOSGatekeeperAppSourcesVAnywhere +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go new file mode 100644 index 00000000..070871d2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go @@ -0,0 +1,157 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MailDestinationRoutingReason undocumented +type MailDestinationRoutingReason string + +const ( + // MailDestinationRoutingReasonVNone undocumented + MailDestinationRoutingReasonVNone MailDestinationRoutingReason = "none" + // MailDestinationRoutingReasonVMailFlowRule undocumented + MailDestinationRoutingReasonVMailFlowRule MailDestinationRoutingReason = "mailFlowRule" + // MailDestinationRoutingReasonVSafeSender undocumented + MailDestinationRoutingReasonVSafeSender MailDestinationRoutingReason = "safeSender" + // MailDestinationRoutingReasonVBlockedSender undocumented + MailDestinationRoutingReasonVBlockedSender MailDestinationRoutingReason = "blockedSender" + // MailDestinationRoutingReasonVAdvancedSpamFiltering undocumented + MailDestinationRoutingReasonVAdvancedSpamFiltering MailDestinationRoutingReason = "advancedSpamFiltering" + // MailDestinationRoutingReasonVDomainAllowList undocumented + MailDestinationRoutingReasonVDomainAllowList MailDestinationRoutingReason = "domainAllowList" + // MailDestinationRoutingReasonVDomainBlockList undocumented + MailDestinationRoutingReasonVDomainBlockList MailDestinationRoutingReason = "domainBlockList" + // MailDestinationRoutingReasonVNotInAddressBook undocumented + MailDestinationRoutingReasonVNotInAddressBook MailDestinationRoutingReason = "notInAddressBook" + // MailDestinationRoutingReasonVFirstTimeSender undocumented + MailDestinationRoutingReasonVFirstTimeSender MailDestinationRoutingReason = "firstTimeSender" + // MailDestinationRoutingReasonVAutoPurgeToInbox undocumented + MailDestinationRoutingReasonVAutoPurgeToInbox MailDestinationRoutingReason = "autoPurgeToInbox" + // MailDestinationRoutingReasonVAutoPurgeToJunk undocumented + MailDestinationRoutingReasonVAutoPurgeToJunk MailDestinationRoutingReason = "autoPurgeToJunk" + // MailDestinationRoutingReasonVAutoPurgeToDeleted undocumented + MailDestinationRoutingReasonVAutoPurgeToDeleted MailDestinationRoutingReason = "autoPurgeToDeleted" + // MailDestinationRoutingReasonVOutbound undocumented + MailDestinationRoutingReasonVOutbound MailDestinationRoutingReason = "outbound" + // MailDestinationRoutingReasonVNotJunk undocumented + MailDestinationRoutingReasonVNotJunk MailDestinationRoutingReason = "notJunk" + // MailDestinationRoutingReasonVJunk undocumented + MailDestinationRoutingReasonVJunk MailDestinationRoutingReason = "junk" + // MailDestinationRoutingReasonVUnknownFutureValue undocumented + MailDestinationRoutingReasonVUnknownFutureValue MailDestinationRoutingReason = "unknownFutureValue" +) + +var ( + // MailDestinationRoutingReasonPNone is a pointer to MailDestinationRoutingReasonVNone + MailDestinationRoutingReasonPNone = &_MailDestinationRoutingReasonPNone + // MailDestinationRoutingReasonPMailFlowRule is a pointer to MailDestinationRoutingReasonVMailFlowRule + MailDestinationRoutingReasonPMailFlowRule = &_MailDestinationRoutingReasonPMailFlowRule + // MailDestinationRoutingReasonPSafeSender is a pointer to MailDestinationRoutingReasonVSafeSender + MailDestinationRoutingReasonPSafeSender = &_MailDestinationRoutingReasonPSafeSender + // MailDestinationRoutingReasonPBlockedSender is a pointer to MailDestinationRoutingReasonVBlockedSender + MailDestinationRoutingReasonPBlockedSender = &_MailDestinationRoutingReasonPBlockedSender + // MailDestinationRoutingReasonPAdvancedSpamFiltering is a pointer to MailDestinationRoutingReasonVAdvancedSpamFiltering + MailDestinationRoutingReasonPAdvancedSpamFiltering = &_MailDestinationRoutingReasonPAdvancedSpamFiltering + // MailDestinationRoutingReasonPDomainAllowList is a pointer to MailDestinationRoutingReasonVDomainAllowList + MailDestinationRoutingReasonPDomainAllowList = &_MailDestinationRoutingReasonPDomainAllowList + // MailDestinationRoutingReasonPDomainBlockList is a pointer to MailDestinationRoutingReasonVDomainBlockList + MailDestinationRoutingReasonPDomainBlockList = &_MailDestinationRoutingReasonPDomainBlockList + // MailDestinationRoutingReasonPNotInAddressBook is a pointer to MailDestinationRoutingReasonVNotInAddressBook + MailDestinationRoutingReasonPNotInAddressBook = &_MailDestinationRoutingReasonPNotInAddressBook + // MailDestinationRoutingReasonPFirstTimeSender is a pointer to MailDestinationRoutingReasonVFirstTimeSender + MailDestinationRoutingReasonPFirstTimeSender = &_MailDestinationRoutingReasonPFirstTimeSender + // MailDestinationRoutingReasonPAutoPurgeToInbox is a pointer to MailDestinationRoutingReasonVAutoPurgeToInbox + MailDestinationRoutingReasonPAutoPurgeToInbox = &_MailDestinationRoutingReasonPAutoPurgeToInbox + // MailDestinationRoutingReasonPAutoPurgeToJunk is a pointer to MailDestinationRoutingReasonVAutoPurgeToJunk + MailDestinationRoutingReasonPAutoPurgeToJunk = &_MailDestinationRoutingReasonPAutoPurgeToJunk + // MailDestinationRoutingReasonPAutoPurgeToDeleted is a pointer to MailDestinationRoutingReasonVAutoPurgeToDeleted + MailDestinationRoutingReasonPAutoPurgeToDeleted = &_MailDestinationRoutingReasonPAutoPurgeToDeleted + // MailDestinationRoutingReasonPOutbound is a pointer to MailDestinationRoutingReasonVOutbound + MailDestinationRoutingReasonPOutbound = &_MailDestinationRoutingReasonPOutbound + // MailDestinationRoutingReasonPNotJunk is a pointer to MailDestinationRoutingReasonVNotJunk + MailDestinationRoutingReasonPNotJunk = &_MailDestinationRoutingReasonPNotJunk + // MailDestinationRoutingReasonPJunk is a pointer to MailDestinationRoutingReasonVJunk + MailDestinationRoutingReasonPJunk = &_MailDestinationRoutingReasonPJunk + // MailDestinationRoutingReasonPUnknownFutureValue is a pointer to MailDestinationRoutingReasonVUnknownFutureValue + MailDestinationRoutingReasonPUnknownFutureValue = &_MailDestinationRoutingReasonPUnknownFutureValue +) + +var ( + _MailDestinationRoutingReasonPNone = MailDestinationRoutingReasonVNone + _MailDestinationRoutingReasonPMailFlowRule = MailDestinationRoutingReasonVMailFlowRule + _MailDestinationRoutingReasonPSafeSender = MailDestinationRoutingReasonVSafeSender + _MailDestinationRoutingReasonPBlockedSender = MailDestinationRoutingReasonVBlockedSender + _MailDestinationRoutingReasonPAdvancedSpamFiltering = MailDestinationRoutingReasonVAdvancedSpamFiltering + _MailDestinationRoutingReasonPDomainAllowList = MailDestinationRoutingReasonVDomainAllowList + _MailDestinationRoutingReasonPDomainBlockList = MailDestinationRoutingReasonVDomainBlockList + _MailDestinationRoutingReasonPNotInAddressBook = MailDestinationRoutingReasonVNotInAddressBook + _MailDestinationRoutingReasonPFirstTimeSender = MailDestinationRoutingReasonVFirstTimeSender + _MailDestinationRoutingReasonPAutoPurgeToInbox = MailDestinationRoutingReasonVAutoPurgeToInbox + _MailDestinationRoutingReasonPAutoPurgeToJunk = MailDestinationRoutingReasonVAutoPurgeToJunk + _MailDestinationRoutingReasonPAutoPurgeToDeleted = MailDestinationRoutingReasonVAutoPurgeToDeleted + _MailDestinationRoutingReasonPOutbound = MailDestinationRoutingReasonVOutbound + _MailDestinationRoutingReasonPNotJunk = MailDestinationRoutingReasonVNotJunk + _MailDestinationRoutingReasonPJunk = MailDestinationRoutingReasonVJunk + _MailDestinationRoutingReasonPUnknownFutureValue = MailDestinationRoutingReasonVUnknownFutureValue +) + +// MailTipsType undocumented +type MailTipsType string + +const ( + // MailTipsTypeVAutomaticReplies undocumented + MailTipsTypeVAutomaticReplies MailTipsType = "automaticReplies" + // MailTipsTypeVMailboxFullStatus undocumented + MailTipsTypeVMailboxFullStatus MailTipsType = "mailboxFullStatus" + // MailTipsTypeVCustomMailTip undocumented + MailTipsTypeVCustomMailTip MailTipsType = "customMailTip" + // MailTipsTypeVExternalMemberCount undocumented + MailTipsTypeVExternalMemberCount MailTipsType = "externalMemberCount" + // MailTipsTypeVTotalMemberCount undocumented + MailTipsTypeVTotalMemberCount MailTipsType = "totalMemberCount" + // MailTipsTypeVMaxMessageSize undocumented + MailTipsTypeVMaxMessageSize MailTipsType = "maxMessageSize" + // MailTipsTypeVDeliveryRestriction undocumented + MailTipsTypeVDeliveryRestriction MailTipsType = "deliveryRestriction" + // MailTipsTypeVModerationStatus undocumented + MailTipsTypeVModerationStatus MailTipsType = "moderationStatus" + // MailTipsTypeVRecipientScope undocumented + MailTipsTypeVRecipientScope MailTipsType = "recipientScope" + // MailTipsTypeVRecipientSuggestions undocumented + MailTipsTypeVRecipientSuggestions MailTipsType = "recipientSuggestions" +) + +var ( + // MailTipsTypePAutomaticReplies is a pointer to MailTipsTypeVAutomaticReplies + MailTipsTypePAutomaticReplies = &_MailTipsTypePAutomaticReplies + // MailTipsTypePMailboxFullStatus is a pointer to MailTipsTypeVMailboxFullStatus + MailTipsTypePMailboxFullStatus = &_MailTipsTypePMailboxFullStatus + // MailTipsTypePCustomMailTip is a pointer to MailTipsTypeVCustomMailTip + MailTipsTypePCustomMailTip = &_MailTipsTypePCustomMailTip + // MailTipsTypePExternalMemberCount is a pointer to MailTipsTypeVExternalMemberCount + MailTipsTypePExternalMemberCount = &_MailTipsTypePExternalMemberCount + // MailTipsTypePTotalMemberCount is a pointer to MailTipsTypeVTotalMemberCount + MailTipsTypePTotalMemberCount = &_MailTipsTypePTotalMemberCount + // MailTipsTypePMaxMessageSize is a pointer to MailTipsTypeVMaxMessageSize + MailTipsTypePMaxMessageSize = &_MailTipsTypePMaxMessageSize + // MailTipsTypePDeliveryRestriction is a pointer to MailTipsTypeVDeliveryRestriction + MailTipsTypePDeliveryRestriction = &_MailTipsTypePDeliveryRestriction + // MailTipsTypePModerationStatus is a pointer to MailTipsTypeVModerationStatus + MailTipsTypePModerationStatus = &_MailTipsTypePModerationStatus + // MailTipsTypePRecipientScope is a pointer to MailTipsTypeVRecipientScope + MailTipsTypePRecipientScope = &_MailTipsTypePRecipientScope + // MailTipsTypePRecipientSuggestions is a pointer to MailTipsTypeVRecipientSuggestions + MailTipsTypePRecipientSuggestions = &_MailTipsTypePRecipientSuggestions +) + +var ( + _MailTipsTypePAutomaticReplies = MailTipsTypeVAutomaticReplies + _MailTipsTypePMailboxFullStatus = MailTipsTypeVMailboxFullStatus + _MailTipsTypePCustomMailTip = MailTipsTypeVCustomMailTip + _MailTipsTypePExternalMemberCount = MailTipsTypeVExternalMemberCount + _MailTipsTypePTotalMemberCount = MailTipsTypeVTotalMemberCount + _MailTipsTypePMaxMessageSize = MailTipsTypeVMaxMessageSize + _MailTipsTypePDeliveryRestriction = MailTipsTypeVDeliveryRestriction + _MailTipsTypePModerationStatus = MailTipsTypeVModerationStatus + _MailTipsTypePRecipientScope = MailTipsTypeVRecipientScope + _MailTipsTypePRecipientSuggestions = MailTipsTypeVRecipientSuggestions +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go new file mode 100644 index 00000000..47a65f9d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go @@ -0,0 +1,456 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ManagedAppAvailability undocumented +type ManagedAppAvailability string + +const ( + // ManagedAppAvailabilityVGlobal undocumented + ManagedAppAvailabilityVGlobal ManagedAppAvailability = "global" + // ManagedAppAvailabilityVLineOfBusiness undocumented + ManagedAppAvailabilityVLineOfBusiness ManagedAppAvailability = "lineOfBusiness" +) + +var ( + // ManagedAppAvailabilityPGlobal is a pointer to ManagedAppAvailabilityVGlobal + ManagedAppAvailabilityPGlobal = &_ManagedAppAvailabilityPGlobal + // ManagedAppAvailabilityPLineOfBusiness is a pointer to ManagedAppAvailabilityVLineOfBusiness + ManagedAppAvailabilityPLineOfBusiness = &_ManagedAppAvailabilityPLineOfBusiness +) + +var ( + _ManagedAppAvailabilityPGlobal = ManagedAppAvailabilityVGlobal + _ManagedAppAvailabilityPLineOfBusiness = ManagedAppAvailabilityVLineOfBusiness +) + +// ManagedAppClipboardSharingLevel undocumented +type ManagedAppClipboardSharingLevel string + +const ( + // ManagedAppClipboardSharingLevelVAllApps undocumented + ManagedAppClipboardSharingLevelVAllApps ManagedAppClipboardSharingLevel = "allApps" + // ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn undocumented + ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn ManagedAppClipboardSharingLevel = "managedAppsWithPasteIn" + // ManagedAppClipboardSharingLevelVManagedApps undocumented + ManagedAppClipboardSharingLevelVManagedApps ManagedAppClipboardSharingLevel = "managedApps" + // ManagedAppClipboardSharingLevelVBlocked undocumented + ManagedAppClipboardSharingLevelVBlocked ManagedAppClipboardSharingLevel = "blocked" +) + +var ( + // ManagedAppClipboardSharingLevelPAllApps is a pointer to ManagedAppClipboardSharingLevelVAllApps + ManagedAppClipboardSharingLevelPAllApps = &_ManagedAppClipboardSharingLevelPAllApps + // ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn is a pointer to ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn + ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn = &_ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn + // ManagedAppClipboardSharingLevelPManagedApps is a pointer to ManagedAppClipboardSharingLevelVManagedApps + ManagedAppClipboardSharingLevelPManagedApps = &_ManagedAppClipboardSharingLevelPManagedApps + // ManagedAppClipboardSharingLevelPBlocked is a pointer to ManagedAppClipboardSharingLevelVBlocked + ManagedAppClipboardSharingLevelPBlocked = &_ManagedAppClipboardSharingLevelPBlocked +) + +var ( + _ManagedAppClipboardSharingLevelPAllApps = ManagedAppClipboardSharingLevelVAllApps + _ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn = ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn + _ManagedAppClipboardSharingLevelPManagedApps = ManagedAppClipboardSharingLevelVManagedApps + _ManagedAppClipboardSharingLevelPBlocked = ManagedAppClipboardSharingLevelVBlocked +) + +// ManagedAppDataEncryptionType undocumented +type ManagedAppDataEncryptionType string + +const ( + // ManagedAppDataEncryptionTypeVUseDeviceSettings undocumented + ManagedAppDataEncryptionTypeVUseDeviceSettings ManagedAppDataEncryptionType = "useDeviceSettings" + // ManagedAppDataEncryptionTypeVAfterDeviceRestart undocumented + ManagedAppDataEncryptionTypeVAfterDeviceRestart ManagedAppDataEncryptionType = "afterDeviceRestart" + // ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles undocumented + ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles ManagedAppDataEncryptionType = "whenDeviceLockedExceptOpenFiles" + // ManagedAppDataEncryptionTypeVWhenDeviceLocked undocumented + ManagedAppDataEncryptionTypeVWhenDeviceLocked ManagedAppDataEncryptionType = "whenDeviceLocked" +) + +var ( + // ManagedAppDataEncryptionTypePUseDeviceSettings is a pointer to ManagedAppDataEncryptionTypeVUseDeviceSettings + ManagedAppDataEncryptionTypePUseDeviceSettings = &_ManagedAppDataEncryptionTypePUseDeviceSettings + // ManagedAppDataEncryptionTypePAfterDeviceRestart is a pointer to ManagedAppDataEncryptionTypeVAfterDeviceRestart + ManagedAppDataEncryptionTypePAfterDeviceRestart = &_ManagedAppDataEncryptionTypePAfterDeviceRestart + // ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles is a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles + ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles = &_ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles + // ManagedAppDataEncryptionTypePWhenDeviceLocked is a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLocked + ManagedAppDataEncryptionTypePWhenDeviceLocked = &_ManagedAppDataEncryptionTypePWhenDeviceLocked +) + +var ( + _ManagedAppDataEncryptionTypePUseDeviceSettings = ManagedAppDataEncryptionTypeVUseDeviceSettings + _ManagedAppDataEncryptionTypePAfterDeviceRestart = ManagedAppDataEncryptionTypeVAfterDeviceRestart + _ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles = ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles + _ManagedAppDataEncryptionTypePWhenDeviceLocked = ManagedAppDataEncryptionTypeVWhenDeviceLocked +) + +// ManagedAppDataStorageLocation undocumented +type ManagedAppDataStorageLocation string + +const ( + // ManagedAppDataStorageLocationVOneDriveForBusiness undocumented + ManagedAppDataStorageLocationVOneDriveForBusiness ManagedAppDataStorageLocation = "oneDriveForBusiness" + // ManagedAppDataStorageLocationVSharePoint undocumented + ManagedAppDataStorageLocationVSharePoint ManagedAppDataStorageLocation = "sharePoint" + // ManagedAppDataStorageLocationVLocalStorage undocumented + ManagedAppDataStorageLocationVLocalStorage ManagedAppDataStorageLocation = "localStorage" +) + +var ( + // ManagedAppDataStorageLocationPOneDriveForBusiness is a pointer to ManagedAppDataStorageLocationVOneDriveForBusiness + ManagedAppDataStorageLocationPOneDriveForBusiness = &_ManagedAppDataStorageLocationPOneDriveForBusiness + // ManagedAppDataStorageLocationPSharePoint is a pointer to ManagedAppDataStorageLocationVSharePoint + ManagedAppDataStorageLocationPSharePoint = &_ManagedAppDataStorageLocationPSharePoint + // ManagedAppDataStorageLocationPLocalStorage is a pointer to ManagedAppDataStorageLocationVLocalStorage + ManagedAppDataStorageLocationPLocalStorage = &_ManagedAppDataStorageLocationPLocalStorage +) + +var ( + _ManagedAppDataStorageLocationPOneDriveForBusiness = ManagedAppDataStorageLocationVOneDriveForBusiness + _ManagedAppDataStorageLocationPSharePoint = ManagedAppDataStorageLocationVSharePoint + _ManagedAppDataStorageLocationPLocalStorage = ManagedAppDataStorageLocationVLocalStorage +) + +// ManagedAppDataTransferLevel undocumented +type ManagedAppDataTransferLevel string + +const ( + // ManagedAppDataTransferLevelVAllApps undocumented + ManagedAppDataTransferLevelVAllApps ManagedAppDataTransferLevel = "allApps" + // ManagedAppDataTransferLevelVManagedApps undocumented + ManagedAppDataTransferLevelVManagedApps ManagedAppDataTransferLevel = "managedApps" + // ManagedAppDataTransferLevelVNone undocumented + ManagedAppDataTransferLevelVNone ManagedAppDataTransferLevel = "none" +) + +var ( + // ManagedAppDataTransferLevelPAllApps is a pointer to ManagedAppDataTransferLevelVAllApps + ManagedAppDataTransferLevelPAllApps = &_ManagedAppDataTransferLevelPAllApps + // ManagedAppDataTransferLevelPManagedApps is a pointer to ManagedAppDataTransferLevelVManagedApps + ManagedAppDataTransferLevelPManagedApps = &_ManagedAppDataTransferLevelPManagedApps + // ManagedAppDataTransferLevelPNone is a pointer to ManagedAppDataTransferLevelVNone + ManagedAppDataTransferLevelPNone = &_ManagedAppDataTransferLevelPNone +) + +var ( + _ManagedAppDataTransferLevelPAllApps = ManagedAppDataTransferLevelVAllApps + _ManagedAppDataTransferLevelPManagedApps = ManagedAppDataTransferLevelVManagedApps + _ManagedAppDataTransferLevelPNone = ManagedAppDataTransferLevelVNone +) + +// ManagedAppDeviceThreatLevel undocumented +type ManagedAppDeviceThreatLevel string + +const ( + // ManagedAppDeviceThreatLevelVNotConfigured undocumented + ManagedAppDeviceThreatLevelVNotConfigured ManagedAppDeviceThreatLevel = "notConfigured" + // ManagedAppDeviceThreatLevelVSecured undocumented + ManagedAppDeviceThreatLevelVSecured ManagedAppDeviceThreatLevel = "secured" + // ManagedAppDeviceThreatLevelVLow undocumented + ManagedAppDeviceThreatLevelVLow ManagedAppDeviceThreatLevel = "low" + // ManagedAppDeviceThreatLevelVMedium undocumented + ManagedAppDeviceThreatLevelVMedium ManagedAppDeviceThreatLevel = "medium" + // ManagedAppDeviceThreatLevelVHigh undocumented + ManagedAppDeviceThreatLevelVHigh ManagedAppDeviceThreatLevel = "high" +) + +var ( + // ManagedAppDeviceThreatLevelPNotConfigured is a pointer to ManagedAppDeviceThreatLevelVNotConfigured + ManagedAppDeviceThreatLevelPNotConfigured = &_ManagedAppDeviceThreatLevelPNotConfigured + // ManagedAppDeviceThreatLevelPSecured is a pointer to ManagedAppDeviceThreatLevelVSecured + ManagedAppDeviceThreatLevelPSecured = &_ManagedAppDeviceThreatLevelPSecured + // ManagedAppDeviceThreatLevelPLow is a pointer to ManagedAppDeviceThreatLevelVLow + ManagedAppDeviceThreatLevelPLow = &_ManagedAppDeviceThreatLevelPLow + // ManagedAppDeviceThreatLevelPMedium is a pointer to ManagedAppDeviceThreatLevelVMedium + ManagedAppDeviceThreatLevelPMedium = &_ManagedAppDeviceThreatLevelPMedium + // ManagedAppDeviceThreatLevelPHigh is a pointer to ManagedAppDeviceThreatLevelVHigh + ManagedAppDeviceThreatLevelPHigh = &_ManagedAppDeviceThreatLevelPHigh +) + +var ( + _ManagedAppDeviceThreatLevelPNotConfigured = ManagedAppDeviceThreatLevelVNotConfigured + _ManagedAppDeviceThreatLevelPSecured = ManagedAppDeviceThreatLevelVSecured + _ManagedAppDeviceThreatLevelPLow = ManagedAppDeviceThreatLevelVLow + _ManagedAppDeviceThreatLevelPMedium = ManagedAppDeviceThreatLevelVMedium + _ManagedAppDeviceThreatLevelPHigh = ManagedAppDeviceThreatLevelVHigh +) + +// ManagedAppFlaggedReason undocumented +type ManagedAppFlaggedReason string + +const ( + // ManagedAppFlaggedReasonVNone undocumented + ManagedAppFlaggedReasonVNone ManagedAppFlaggedReason = "none" + // ManagedAppFlaggedReasonVRootedDevice undocumented + ManagedAppFlaggedReasonVRootedDevice ManagedAppFlaggedReason = "rootedDevice" + // ManagedAppFlaggedReasonVAndroidBootloaderUnlocked undocumented + ManagedAppFlaggedReasonVAndroidBootloaderUnlocked ManagedAppFlaggedReason = "androidBootloaderUnlocked" + // ManagedAppFlaggedReasonVAndroidFactoryRomModified undocumented + ManagedAppFlaggedReasonVAndroidFactoryRomModified ManagedAppFlaggedReason = "androidFactoryRomModified" +) + +var ( + // ManagedAppFlaggedReasonPNone is a pointer to ManagedAppFlaggedReasonVNone + ManagedAppFlaggedReasonPNone = &_ManagedAppFlaggedReasonPNone + // ManagedAppFlaggedReasonPRootedDevice is a pointer to ManagedAppFlaggedReasonVRootedDevice + ManagedAppFlaggedReasonPRootedDevice = &_ManagedAppFlaggedReasonPRootedDevice + // ManagedAppFlaggedReasonPAndroidBootloaderUnlocked is a pointer to ManagedAppFlaggedReasonVAndroidBootloaderUnlocked + ManagedAppFlaggedReasonPAndroidBootloaderUnlocked = &_ManagedAppFlaggedReasonPAndroidBootloaderUnlocked + // ManagedAppFlaggedReasonPAndroidFactoryRomModified is a pointer to ManagedAppFlaggedReasonVAndroidFactoryRomModified + ManagedAppFlaggedReasonPAndroidFactoryRomModified = &_ManagedAppFlaggedReasonPAndroidFactoryRomModified +) + +var ( + _ManagedAppFlaggedReasonPNone = ManagedAppFlaggedReasonVNone + _ManagedAppFlaggedReasonPRootedDevice = ManagedAppFlaggedReasonVRootedDevice + _ManagedAppFlaggedReasonPAndroidBootloaderUnlocked = ManagedAppFlaggedReasonVAndroidBootloaderUnlocked + _ManagedAppFlaggedReasonPAndroidFactoryRomModified = ManagedAppFlaggedReasonVAndroidFactoryRomModified +) + +// ManagedAppNotificationRestriction undocumented +type ManagedAppNotificationRestriction string + +const ( + // ManagedAppNotificationRestrictionVAllow undocumented + ManagedAppNotificationRestrictionVAllow ManagedAppNotificationRestriction = "allow" + // ManagedAppNotificationRestrictionVBlockOrganizationalData undocumented + ManagedAppNotificationRestrictionVBlockOrganizationalData ManagedAppNotificationRestriction = "blockOrganizationalData" + // ManagedAppNotificationRestrictionVBlock undocumented + ManagedAppNotificationRestrictionVBlock ManagedAppNotificationRestriction = "block" +) + +var ( + // ManagedAppNotificationRestrictionPAllow is a pointer to ManagedAppNotificationRestrictionVAllow + ManagedAppNotificationRestrictionPAllow = &_ManagedAppNotificationRestrictionPAllow + // ManagedAppNotificationRestrictionPBlockOrganizationalData is a pointer to ManagedAppNotificationRestrictionVBlockOrganizationalData + ManagedAppNotificationRestrictionPBlockOrganizationalData = &_ManagedAppNotificationRestrictionPBlockOrganizationalData + // ManagedAppNotificationRestrictionPBlock is a pointer to ManagedAppNotificationRestrictionVBlock + ManagedAppNotificationRestrictionPBlock = &_ManagedAppNotificationRestrictionPBlock +) + +var ( + _ManagedAppNotificationRestrictionPAllow = ManagedAppNotificationRestrictionVAllow + _ManagedAppNotificationRestrictionPBlockOrganizationalData = ManagedAppNotificationRestrictionVBlockOrganizationalData + _ManagedAppNotificationRestrictionPBlock = ManagedAppNotificationRestrictionVBlock +) + +// ManagedAppPinCharacterSet undocumented +type ManagedAppPinCharacterSet string + +const ( + // ManagedAppPinCharacterSetVNumeric undocumented + ManagedAppPinCharacterSetVNumeric ManagedAppPinCharacterSet = "numeric" + // ManagedAppPinCharacterSetVAlphanumericAndSymbol undocumented + ManagedAppPinCharacterSetVAlphanumericAndSymbol ManagedAppPinCharacterSet = "alphanumericAndSymbol" +) + +var ( + // ManagedAppPinCharacterSetPNumeric is a pointer to ManagedAppPinCharacterSetVNumeric + ManagedAppPinCharacterSetPNumeric = &_ManagedAppPinCharacterSetPNumeric + // ManagedAppPinCharacterSetPAlphanumericAndSymbol is a pointer to ManagedAppPinCharacterSetVAlphanumericAndSymbol + ManagedAppPinCharacterSetPAlphanumericAndSymbol = &_ManagedAppPinCharacterSetPAlphanumericAndSymbol +) + +var ( + _ManagedAppPinCharacterSetPNumeric = ManagedAppPinCharacterSetVNumeric + _ManagedAppPinCharacterSetPAlphanumericAndSymbol = ManagedAppPinCharacterSetVAlphanumericAndSymbol +) + +// ManagedAppRemediationAction undocumented +type ManagedAppRemediationAction string + +const ( + // ManagedAppRemediationActionVBlock undocumented + ManagedAppRemediationActionVBlock ManagedAppRemediationAction = "block" + // ManagedAppRemediationActionVWipe undocumented + ManagedAppRemediationActionVWipe ManagedAppRemediationAction = "wipe" + // ManagedAppRemediationActionVWarn undocumented + ManagedAppRemediationActionVWarn ManagedAppRemediationAction = "warn" +) + +var ( + // ManagedAppRemediationActionPBlock is a pointer to ManagedAppRemediationActionVBlock + ManagedAppRemediationActionPBlock = &_ManagedAppRemediationActionPBlock + // ManagedAppRemediationActionPWipe is a pointer to ManagedAppRemediationActionVWipe + ManagedAppRemediationActionPWipe = &_ManagedAppRemediationActionPWipe + // ManagedAppRemediationActionPWarn is a pointer to ManagedAppRemediationActionVWarn + ManagedAppRemediationActionPWarn = &_ManagedAppRemediationActionPWarn +) + +var ( + _ManagedAppRemediationActionPBlock = ManagedAppRemediationActionVBlock + _ManagedAppRemediationActionPWipe = ManagedAppRemediationActionVWipe + _ManagedAppRemediationActionPWarn = ManagedAppRemediationActionVWarn +) + +// ManagedBrowserType undocumented +type ManagedBrowserType string + +const ( + // ManagedBrowserTypeVNotConfigured undocumented + ManagedBrowserTypeVNotConfigured ManagedBrowserType = "notConfigured" + // ManagedBrowserTypeVMicrosoftEdge undocumented + ManagedBrowserTypeVMicrosoftEdge ManagedBrowserType = "microsoftEdge" +) + +var ( + // ManagedBrowserTypePNotConfigured is a pointer to ManagedBrowserTypeVNotConfigured + ManagedBrowserTypePNotConfigured = &_ManagedBrowserTypePNotConfigured + // ManagedBrowserTypePMicrosoftEdge is a pointer to ManagedBrowserTypeVMicrosoftEdge + ManagedBrowserTypePMicrosoftEdge = &_ManagedBrowserTypePMicrosoftEdge +) + +var ( + _ManagedBrowserTypePNotConfigured = ManagedBrowserTypeVNotConfigured + _ManagedBrowserTypePMicrosoftEdge = ManagedBrowserTypeVMicrosoftEdge +) + +// ManagedDeviceOwnerType undocumented +type ManagedDeviceOwnerType string + +const ( + // ManagedDeviceOwnerTypeVUnknown undocumented + ManagedDeviceOwnerTypeVUnknown ManagedDeviceOwnerType = "unknown" + // ManagedDeviceOwnerTypeVCompany undocumented + ManagedDeviceOwnerTypeVCompany ManagedDeviceOwnerType = "company" + // ManagedDeviceOwnerTypeVPersonal undocumented + ManagedDeviceOwnerTypeVPersonal ManagedDeviceOwnerType = "personal" +) + +var ( + // ManagedDeviceOwnerTypePUnknown is a pointer to ManagedDeviceOwnerTypeVUnknown + ManagedDeviceOwnerTypePUnknown = &_ManagedDeviceOwnerTypePUnknown + // ManagedDeviceOwnerTypePCompany is a pointer to ManagedDeviceOwnerTypeVCompany + ManagedDeviceOwnerTypePCompany = &_ManagedDeviceOwnerTypePCompany + // ManagedDeviceOwnerTypePPersonal is a pointer to ManagedDeviceOwnerTypeVPersonal + ManagedDeviceOwnerTypePPersonal = &_ManagedDeviceOwnerTypePPersonal +) + +var ( + _ManagedDeviceOwnerTypePUnknown = ManagedDeviceOwnerTypeVUnknown + _ManagedDeviceOwnerTypePCompany = ManagedDeviceOwnerTypeVCompany + _ManagedDeviceOwnerTypePPersonal = ManagedDeviceOwnerTypeVPersonal +) + +// ManagedDevicePartnerReportedHealthState undocumented +type ManagedDevicePartnerReportedHealthState string + +const ( + // ManagedDevicePartnerReportedHealthStateVUnknown undocumented + ManagedDevicePartnerReportedHealthStateVUnknown ManagedDevicePartnerReportedHealthState = "unknown" + // ManagedDevicePartnerReportedHealthStateVActivated undocumented + ManagedDevicePartnerReportedHealthStateVActivated ManagedDevicePartnerReportedHealthState = "activated" + // ManagedDevicePartnerReportedHealthStateVDeactivated undocumented + ManagedDevicePartnerReportedHealthStateVDeactivated ManagedDevicePartnerReportedHealthState = "deactivated" + // ManagedDevicePartnerReportedHealthStateVSecured undocumented + ManagedDevicePartnerReportedHealthStateVSecured ManagedDevicePartnerReportedHealthState = "secured" + // ManagedDevicePartnerReportedHealthStateVLowSeverity undocumented + ManagedDevicePartnerReportedHealthStateVLowSeverity ManagedDevicePartnerReportedHealthState = "lowSeverity" + // ManagedDevicePartnerReportedHealthStateVMediumSeverity undocumented + ManagedDevicePartnerReportedHealthStateVMediumSeverity ManagedDevicePartnerReportedHealthState = "mediumSeverity" + // ManagedDevicePartnerReportedHealthStateVHighSeverity undocumented + ManagedDevicePartnerReportedHealthStateVHighSeverity ManagedDevicePartnerReportedHealthState = "highSeverity" + // ManagedDevicePartnerReportedHealthStateVUnresponsive undocumented + ManagedDevicePartnerReportedHealthStateVUnresponsive ManagedDevicePartnerReportedHealthState = "unresponsive" + // ManagedDevicePartnerReportedHealthStateVCompromised undocumented + ManagedDevicePartnerReportedHealthStateVCompromised ManagedDevicePartnerReportedHealthState = "compromised" + // ManagedDevicePartnerReportedHealthStateVMisconfigured undocumented + ManagedDevicePartnerReportedHealthStateVMisconfigured ManagedDevicePartnerReportedHealthState = "misconfigured" +) + +var ( + // ManagedDevicePartnerReportedHealthStatePUnknown is a pointer to ManagedDevicePartnerReportedHealthStateVUnknown + ManagedDevicePartnerReportedHealthStatePUnknown = &_ManagedDevicePartnerReportedHealthStatePUnknown + // ManagedDevicePartnerReportedHealthStatePActivated is a pointer to ManagedDevicePartnerReportedHealthStateVActivated + ManagedDevicePartnerReportedHealthStatePActivated = &_ManagedDevicePartnerReportedHealthStatePActivated + // ManagedDevicePartnerReportedHealthStatePDeactivated is a pointer to ManagedDevicePartnerReportedHealthStateVDeactivated + ManagedDevicePartnerReportedHealthStatePDeactivated = &_ManagedDevicePartnerReportedHealthStatePDeactivated + // ManagedDevicePartnerReportedHealthStatePSecured is a pointer to ManagedDevicePartnerReportedHealthStateVSecured + ManagedDevicePartnerReportedHealthStatePSecured = &_ManagedDevicePartnerReportedHealthStatePSecured + // ManagedDevicePartnerReportedHealthStatePLowSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVLowSeverity + ManagedDevicePartnerReportedHealthStatePLowSeverity = &_ManagedDevicePartnerReportedHealthStatePLowSeverity + // ManagedDevicePartnerReportedHealthStatePMediumSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVMediumSeverity + ManagedDevicePartnerReportedHealthStatePMediumSeverity = &_ManagedDevicePartnerReportedHealthStatePMediumSeverity + // ManagedDevicePartnerReportedHealthStatePHighSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVHighSeverity + ManagedDevicePartnerReportedHealthStatePHighSeverity = &_ManagedDevicePartnerReportedHealthStatePHighSeverity + // ManagedDevicePartnerReportedHealthStatePUnresponsive is a pointer to ManagedDevicePartnerReportedHealthStateVUnresponsive + ManagedDevicePartnerReportedHealthStatePUnresponsive = &_ManagedDevicePartnerReportedHealthStatePUnresponsive + // ManagedDevicePartnerReportedHealthStatePCompromised is a pointer to ManagedDevicePartnerReportedHealthStateVCompromised + ManagedDevicePartnerReportedHealthStatePCompromised = &_ManagedDevicePartnerReportedHealthStatePCompromised + // ManagedDevicePartnerReportedHealthStatePMisconfigured is a pointer to ManagedDevicePartnerReportedHealthStateVMisconfigured + ManagedDevicePartnerReportedHealthStatePMisconfigured = &_ManagedDevicePartnerReportedHealthStatePMisconfigured +) + +var ( + _ManagedDevicePartnerReportedHealthStatePUnknown = ManagedDevicePartnerReportedHealthStateVUnknown + _ManagedDevicePartnerReportedHealthStatePActivated = ManagedDevicePartnerReportedHealthStateVActivated + _ManagedDevicePartnerReportedHealthStatePDeactivated = ManagedDevicePartnerReportedHealthStateVDeactivated + _ManagedDevicePartnerReportedHealthStatePSecured = ManagedDevicePartnerReportedHealthStateVSecured + _ManagedDevicePartnerReportedHealthStatePLowSeverity = ManagedDevicePartnerReportedHealthStateVLowSeverity + _ManagedDevicePartnerReportedHealthStatePMediumSeverity = ManagedDevicePartnerReportedHealthStateVMediumSeverity + _ManagedDevicePartnerReportedHealthStatePHighSeverity = ManagedDevicePartnerReportedHealthStateVHighSeverity + _ManagedDevicePartnerReportedHealthStatePUnresponsive = ManagedDevicePartnerReportedHealthStateVUnresponsive + _ManagedDevicePartnerReportedHealthStatePCompromised = ManagedDevicePartnerReportedHealthStateVCompromised + _ManagedDevicePartnerReportedHealthStatePMisconfigured = ManagedDevicePartnerReportedHealthStateVMisconfigured +) + +// ManagedDeviceRemoteAction undocumented +type ManagedDeviceRemoteAction string + +const ( + // ManagedDeviceRemoteActionVRetire undocumented + ManagedDeviceRemoteActionVRetire ManagedDeviceRemoteAction = "retire" + // ManagedDeviceRemoteActionVDelete undocumented + ManagedDeviceRemoteActionVDelete ManagedDeviceRemoteAction = "delete" + // ManagedDeviceRemoteActionVFullScan undocumented + ManagedDeviceRemoteActionVFullScan ManagedDeviceRemoteAction = "fullScan" + // ManagedDeviceRemoteActionVQuickScan undocumented + ManagedDeviceRemoteActionVQuickScan ManagedDeviceRemoteAction = "quickScan" + // ManagedDeviceRemoteActionVSignatureUpdate undocumented + ManagedDeviceRemoteActionVSignatureUpdate ManagedDeviceRemoteAction = "signatureUpdate" + // ManagedDeviceRemoteActionVWipe undocumented + ManagedDeviceRemoteActionVWipe ManagedDeviceRemoteAction = "wipe" + // ManagedDeviceRemoteActionVCustomTextNotification undocumented + ManagedDeviceRemoteActionVCustomTextNotification ManagedDeviceRemoteAction = "customTextNotification" + // ManagedDeviceRemoteActionVRebootNow undocumented + ManagedDeviceRemoteActionVRebootNow ManagedDeviceRemoteAction = "rebootNow" + // ManagedDeviceRemoteActionVSetDeviceName undocumented + ManagedDeviceRemoteActionVSetDeviceName ManagedDeviceRemoteAction = "setDeviceName" +) + +var ( + // ManagedDeviceRemoteActionPRetire is a pointer to ManagedDeviceRemoteActionVRetire + ManagedDeviceRemoteActionPRetire = &_ManagedDeviceRemoteActionPRetire + // ManagedDeviceRemoteActionPDelete is a pointer to ManagedDeviceRemoteActionVDelete + ManagedDeviceRemoteActionPDelete = &_ManagedDeviceRemoteActionPDelete + // ManagedDeviceRemoteActionPFullScan is a pointer to ManagedDeviceRemoteActionVFullScan + ManagedDeviceRemoteActionPFullScan = &_ManagedDeviceRemoteActionPFullScan + // ManagedDeviceRemoteActionPQuickScan is a pointer to ManagedDeviceRemoteActionVQuickScan + ManagedDeviceRemoteActionPQuickScan = &_ManagedDeviceRemoteActionPQuickScan + // ManagedDeviceRemoteActionPSignatureUpdate is a pointer to ManagedDeviceRemoteActionVSignatureUpdate + ManagedDeviceRemoteActionPSignatureUpdate = &_ManagedDeviceRemoteActionPSignatureUpdate + // ManagedDeviceRemoteActionPWipe is a pointer to ManagedDeviceRemoteActionVWipe + ManagedDeviceRemoteActionPWipe = &_ManagedDeviceRemoteActionPWipe + // ManagedDeviceRemoteActionPCustomTextNotification is a pointer to ManagedDeviceRemoteActionVCustomTextNotification + ManagedDeviceRemoteActionPCustomTextNotification = &_ManagedDeviceRemoteActionPCustomTextNotification + // ManagedDeviceRemoteActionPRebootNow is a pointer to ManagedDeviceRemoteActionVRebootNow + ManagedDeviceRemoteActionPRebootNow = &_ManagedDeviceRemoteActionPRebootNow + // ManagedDeviceRemoteActionPSetDeviceName is a pointer to ManagedDeviceRemoteActionVSetDeviceName + ManagedDeviceRemoteActionPSetDeviceName = &_ManagedDeviceRemoteActionPSetDeviceName +) + +var ( + _ManagedDeviceRemoteActionPRetire = ManagedDeviceRemoteActionVRetire + _ManagedDeviceRemoteActionPDelete = ManagedDeviceRemoteActionVDelete + _ManagedDeviceRemoteActionPFullScan = ManagedDeviceRemoteActionVFullScan + _ManagedDeviceRemoteActionPQuickScan = ManagedDeviceRemoteActionVQuickScan + _ManagedDeviceRemoteActionPSignatureUpdate = ManagedDeviceRemoteActionVSignatureUpdate + _ManagedDeviceRemoteActionPWipe = ManagedDeviceRemoteActionVWipe + _ManagedDeviceRemoteActionPCustomTextNotification = ManagedDeviceRemoteActionVCustomTextNotification + _ManagedDeviceRemoteActionPRebootNow = ManagedDeviceRemoteActionVRebootNow + _ManagedDeviceRemoteActionPSetDeviceName = ManagedDeviceRemoteActionVSetDeviceName +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go new file mode 100644 index 00000000..4d4420ef --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go @@ -0,0 +1,147 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ManagementAgentType undocumented +type ManagementAgentType string + +const ( + // ManagementAgentTypeVEas undocumented + ManagementAgentTypeVEas ManagementAgentType = "eas" + // ManagementAgentTypeVMDM undocumented + ManagementAgentTypeVMDM ManagementAgentType = "mdm" + // ManagementAgentTypeVEasMDM undocumented + ManagementAgentTypeVEasMDM ManagementAgentType = "easMdm" + // ManagementAgentTypeVIntuneClient undocumented + ManagementAgentTypeVIntuneClient ManagementAgentType = "intuneClient" + // ManagementAgentTypeVEasIntuneClient undocumented + ManagementAgentTypeVEasIntuneClient ManagementAgentType = "easIntuneClient" + // ManagementAgentTypeVConfigurationManagerClient undocumented + ManagementAgentTypeVConfigurationManagerClient ManagementAgentType = "configurationManagerClient" + // ManagementAgentTypeVConfigurationManagerClientMDM undocumented + ManagementAgentTypeVConfigurationManagerClientMDM ManagementAgentType = "configurationManagerClientMdm" + // ManagementAgentTypeVConfigurationManagerClientMDMEas undocumented + ManagementAgentTypeVConfigurationManagerClientMDMEas ManagementAgentType = "configurationManagerClientMdmEas" + // ManagementAgentTypeVUnknown undocumented + ManagementAgentTypeVUnknown ManagementAgentType = "unknown" + // ManagementAgentTypeVJamf undocumented + ManagementAgentTypeVJamf ManagementAgentType = "jamf" + // ManagementAgentTypeVGoogleCloudDevicePolicyController undocumented + ManagementAgentTypeVGoogleCloudDevicePolicyController ManagementAgentType = "googleCloudDevicePolicyController" + // ManagementAgentTypeVMicrosoft365ManagedMDM undocumented + ManagementAgentTypeVMicrosoft365ManagedMDM ManagementAgentType = "microsoft365ManagedMdm" +) + +var ( + // ManagementAgentTypePEas is a pointer to ManagementAgentTypeVEas + ManagementAgentTypePEas = &_ManagementAgentTypePEas + // ManagementAgentTypePMDM is a pointer to ManagementAgentTypeVMDM + ManagementAgentTypePMDM = &_ManagementAgentTypePMDM + // ManagementAgentTypePEasMDM is a pointer to ManagementAgentTypeVEasMDM + ManagementAgentTypePEasMDM = &_ManagementAgentTypePEasMDM + // ManagementAgentTypePIntuneClient is a pointer to ManagementAgentTypeVIntuneClient + ManagementAgentTypePIntuneClient = &_ManagementAgentTypePIntuneClient + // ManagementAgentTypePEasIntuneClient is a pointer to ManagementAgentTypeVEasIntuneClient + ManagementAgentTypePEasIntuneClient = &_ManagementAgentTypePEasIntuneClient + // ManagementAgentTypePConfigurationManagerClient is a pointer to ManagementAgentTypeVConfigurationManagerClient + ManagementAgentTypePConfigurationManagerClient = &_ManagementAgentTypePConfigurationManagerClient + // ManagementAgentTypePConfigurationManagerClientMDM is a pointer to ManagementAgentTypeVConfigurationManagerClientMDM + ManagementAgentTypePConfigurationManagerClientMDM = &_ManagementAgentTypePConfigurationManagerClientMDM + // ManagementAgentTypePConfigurationManagerClientMDMEas is a pointer to ManagementAgentTypeVConfigurationManagerClientMDMEas + ManagementAgentTypePConfigurationManagerClientMDMEas = &_ManagementAgentTypePConfigurationManagerClientMDMEas + // ManagementAgentTypePUnknown is a pointer to ManagementAgentTypeVUnknown + ManagementAgentTypePUnknown = &_ManagementAgentTypePUnknown + // ManagementAgentTypePJamf is a pointer to ManagementAgentTypeVJamf + ManagementAgentTypePJamf = &_ManagementAgentTypePJamf + // ManagementAgentTypePGoogleCloudDevicePolicyController is a pointer to ManagementAgentTypeVGoogleCloudDevicePolicyController + ManagementAgentTypePGoogleCloudDevicePolicyController = &_ManagementAgentTypePGoogleCloudDevicePolicyController + // ManagementAgentTypePMicrosoft365ManagedMDM is a pointer to ManagementAgentTypeVMicrosoft365ManagedMDM + ManagementAgentTypePMicrosoft365ManagedMDM = &_ManagementAgentTypePMicrosoft365ManagedMDM +) + +var ( + _ManagementAgentTypePEas = ManagementAgentTypeVEas + _ManagementAgentTypePMDM = ManagementAgentTypeVMDM + _ManagementAgentTypePEasMDM = ManagementAgentTypeVEasMDM + _ManagementAgentTypePIntuneClient = ManagementAgentTypeVIntuneClient + _ManagementAgentTypePEasIntuneClient = ManagementAgentTypeVEasIntuneClient + _ManagementAgentTypePConfigurationManagerClient = ManagementAgentTypeVConfigurationManagerClient + _ManagementAgentTypePConfigurationManagerClientMDM = ManagementAgentTypeVConfigurationManagerClientMDM + _ManagementAgentTypePConfigurationManagerClientMDMEas = ManagementAgentTypeVConfigurationManagerClientMDMEas + _ManagementAgentTypePUnknown = ManagementAgentTypeVUnknown + _ManagementAgentTypePJamf = ManagementAgentTypeVJamf + _ManagementAgentTypePGoogleCloudDevicePolicyController = ManagementAgentTypeVGoogleCloudDevicePolicyController + _ManagementAgentTypePMicrosoft365ManagedMDM = ManagementAgentTypeVMicrosoft365ManagedMDM +) + +// ManagementState undocumented +type ManagementState string + +const ( + // ManagementStateVManaged undocumented + ManagementStateVManaged ManagementState = "managed" + // ManagementStateVRetirePending undocumented + ManagementStateVRetirePending ManagementState = "retirePending" + // ManagementStateVRetireFailed undocumented + ManagementStateVRetireFailed ManagementState = "retireFailed" + // ManagementStateVWipePending undocumented + ManagementStateVWipePending ManagementState = "wipePending" + // ManagementStateVWipeFailed undocumented + ManagementStateVWipeFailed ManagementState = "wipeFailed" + // ManagementStateVUnhealthy undocumented + ManagementStateVUnhealthy ManagementState = "unhealthy" + // ManagementStateVDeletePending undocumented + ManagementStateVDeletePending ManagementState = "deletePending" + // ManagementStateVRetireIssued undocumented + ManagementStateVRetireIssued ManagementState = "retireIssued" + // ManagementStateVWipeIssued undocumented + ManagementStateVWipeIssued ManagementState = "wipeIssued" + // ManagementStateVWipeCanceled undocumented + ManagementStateVWipeCanceled ManagementState = "wipeCanceled" + // ManagementStateVRetireCanceled undocumented + ManagementStateVRetireCanceled ManagementState = "retireCanceled" + // ManagementStateVDiscovered undocumented + ManagementStateVDiscovered ManagementState = "discovered" +) + +var ( + // ManagementStatePManaged is a pointer to ManagementStateVManaged + ManagementStatePManaged = &_ManagementStatePManaged + // ManagementStatePRetirePending is a pointer to ManagementStateVRetirePending + ManagementStatePRetirePending = &_ManagementStatePRetirePending + // ManagementStatePRetireFailed is a pointer to ManagementStateVRetireFailed + ManagementStatePRetireFailed = &_ManagementStatePRetireFailed + // ManagementStatePWipePending is a pointer to ManagementStateVWipePending + ManagementStatePWipePending = &_ManagementStatePWipePending + // ManagementStatePWipeFailed is a pointer to ManagementStateVWipeFailed + ManagementStatePWipeFailed = &_ManagementStatePWipeFailed + // ManagementStatePUnhealthy is a pointer to ManagementStateVUnhealthy + ManagementStatePUnhealthy = &_ManagementStatePUnhealthy + // ManagementStatePDeletePending is a pointer to ManagementStateVDeletePending + ManagementStatePDeletePending = &_ManagementStatePDeletePending + // ManagementStatePRetireIssued is a pointer to ManagementStateVRetireIssued + ManagementStatePRetireIssued = &_ManagementStatePRetireIssued + // ManagementStatePWipeIssued is a pointer to ManagementStateVWipeIssued + ManagementStatePWipeIssued = &_ManagementStatePWipeIssued + // ManagementStatePWipeCanceled is a pointer to ManagementStateVWipeCanceled + ManagementStatePWipeCanceled = &_ManagementStatePWipeCanceled + // ManagementStatePRetireCanceled is a pointer to ManagementStateVRetireCanceled + ManagementStatePRetireCanceled = &_ManagementStatePRetireCanceled + // ManagementStatePDiscovered is a pointer to ManagementStateVDiscovered + ManagementStatePDiscovered = &_ManagementStatePDiscovered +) + +var ( + _ManagementStatePManaged = ManagementStateVManaged + _ManagementStatePRetirePending = ManagementStateVRetirePending + _ManagementStatePRetireFailed = ManagementStateVRetireFailed + _ManagementStatePWipePending = ManagementStateVWipePending + _ManagementStatePWipeFailed = ManagementStateVWipeFailed + _ManagementStatePUnhealthy = ManagementStateVUnhealthy + _ManagementStatePDeletePending = ManagementStateVDeletePending + _ManagementStatePRetireIssued = ManagementStateVRetireIssued + _ManagementStatePWipeIssued = ManagementStateVWipeIssued + _ManagementStatePWipeCanceled = ManagementStateVWipeCanceled + _ManagementStatePRetireCanceled = ManagementStateVRetireCanceled + _ManagementStatePDiscovered = ManagementStateVDiscovered +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go new file mode 100644 index 00000000..c644623c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go @@ -0,0 +1,62 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MediaDirection undocumented +type MediaDirection string + +const ( + // MediaDirectionVInactive undocumented + MediaDirectionVInactive MediaDirection = "inactive" + // MediaDirectionVSendOnly undocumented + MediaDirectionVSendOnly MediaDirection = "sendOnly" + // MediaDirectionVReceiveOnly undocumented + MediaDirectionVReceiveOnly MediaDirection = "receiveOnly" + // MediaDirectionVSendReceive undocumented + MediaDirectionVSendReceive MediaDirection = "sendReceive" +) + +var ( + // MediaDirectionPInactive is a pointer to MediaDirectionVInactive + MediaDirectionPInactive = &_MediaDirectionPInactive + // MediaDirectionPSendOnly is a pointer to MediaDirectionVSendOnly + MediaDirectionPSendOnly = &_MediaDirectionPSendOnly + // MediaDirectionPReceiveOnly is a pointer to MediaDirectionVReceiveOnly + MediaDirectionPReceiveOnly = &_MediaDirectionPReceiveOnly + // MediaDirectionPSendReceive is a pointer to MediaDirectionVSendReceive + MediaDirectionPSendReceive = &_MediaDirectionPSendReceive +) + +var ( + _MediaDirectionPInactive = MediaDirectionVInactive + _MediaDirectionPSendOnly = MediaDirectionVSendOnly + _MediaDirectionPReceiveOnly = MediaDirectionVReceiveOnly + _MediaDirectionPSendReceive = MediaDirectionVSendReceive +) + +// MediaState undocumented +type MediaState string + +const ( + // MediaStateVActive undocumented + MediaStateVActive MediaState = "active" + // MediaStateVInactive undocumented + MediaStateVInactive MediaState = "inactive" + // MediaStateVUnknownFutureValue undocumented + MediaStateVUnknownFutureValue MediaState = "unknownFutureValue" +) + +var ( + // MediaStatePActive is a pointer to MediaStateVActive + MediaStatePActive = &_MediaStatePActive + // MediaStatePInactive is a pointer to MediaStateVInactive + MediaStatePInactive = &_MediaStatePInactive + // MediaStatePUnknownFutureValue is a pointer to MediaStateVUnknownFutureValue + MediaStatePUnknownFutureValue = &_MediaStatePUnknownFutureValue +) + +var ( + _MediaStatePActive = MediaStateVActive + _MediaStatePInactive = MediaStateVInactive + _MediaStatePUnknownFutureValue = MediaStateVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go new file mode 100644 index 00000000..11c84546 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MeetingCapabilities undocumented +type MeetingCapabilities string + +const ( + // MeetingCapabilitiesVQuestionAndAnswer undocumented + MeetingCapabilitiesVQuestionAndAnswer MeetingCapabilities = "questionAndAnswer" + // MeetingCapabilitiesVUnknownFutureValue undocumented + MeetingCapabilitiesVUnknownFutureValue MeetingCapabilities = "unknownFutureValue" +) + +var ( + // MeetingCapabilitiesPQuestionAndAnswer is a pointer to MeetingCapabilitiesVQuestionAndAnswer + MeetingCapabilitiesPQuestionAndAnswer = &_MeetingCapabilitiesPQuestionAndAnswer + // MeetingCapabilitiesPUnknownFutureValue is a pointer to MeetingCapabilitiesVUnknownFutureValue + MeetingCapabilitiesPUnknownFutureValue = &_MeetingCapabilitiesPUnknownFutureValue +) + +var ( + _MeetingCapabilitiesPQuestionAndAnswer = MeetingCapabilitiesVQuestionAndAnswer + _MeetingCapabilitiesPUnknownFutureValue = MeetingCapabilitiesVUnknownFutureValue +) + +// MeetingMessageType undocumented +type MeetingMessageType string + +const ( + // MeetingMessageTypeVNone undocumented + MeetingMessageTypeVNone MeetingMessageType = "none" + // MeetingMessageTypeVMeetingRequest undocumented + MeetingMessageTypeVMeetingRequest MeetingMessageType = "meetingRequest" + // MeetingMessageTypeVMeetingCancelled undocumented + MeetingMessageTypeVMeetingCancelled MeetingMessageType = "meetingCancelled" + // MeetingMessageTypeVMeetingAccepted undocumented + MeetingMessageTypeVMeetingAccepted MeetingMessageType = "meetingAccepted" + // MeetingMessageTypeVMeetingTentativelyAccepted undocumented + MeetingMessageTypeVMeetingTentativelyAccepted MeetingMessageType = "meetingTentativelyAccepted" + // MeetingMessageTypeVMeetingDeclined undocumented + MeetingMessageTypeVMeetingDeclined MeetingMessageType = "meetingDeclined" +) + +var ( + // MeetingMessageTypePNone is a pointer to MeetingMessageTypeVNone + MeetingMessageTypePNone = &_MeetingMessageTypePNone + // MeetingMessageTypePMeetingRequest is a pointer to MeetingMessageTypeVMeetingRequest + MeetingMessageTypePMeetingRequest = &_MeetingMessageTypePMeetingRequest + // MeetingMessageTypePMeetingCancelled is a pointer to MeetingMessageTypeVMeetingCancelled + MeetingMessageTypePMeetingCancelled = &_MeetingMessageTypePMeetingCancelled + // MeetingMessageTypePMeetingAccepted is a pointer to MeetingMessageTypeVMeetingAccepted + MeetingMessageTypePMeetingAccepted = &_MeetingMessageTypePMeetingAccepted + // MeetingMessageTypePMeetingTentativelyAccepted is a pointer to MeetingMessageTypeVMeetingTentativelyAccepted + MeetingMessageTypePMeetingTentativelyAccepted = &_MeetingMessageTypePMeetingTentativelyAccepted + // MeetingMessageTypePMeetingDeclined is a pointer to MeetingMessageTypeVMeetingDeclined + MeetingMessageTypePMeetingDeclined = &_MeetingMessageTypePMeetingDeclined +) + +var ( + _MeetingMessageTypePNone = MeetingMessageTypeVNone + _MeetingMessageTypePMeetingRequest = MeetingMessageTypeVMeetingRequest + _MeetingMessageTypePMeetingCancelled = MeetingMessageTypeVMeetingCancelled + _MeetingMessageTypePMeetingAccepted = MeetingMessageTypeVMeetingAccepted + _MeetingMessageTypePMeetingTentativelyAccepted = MeetingMessageTypeVMeetingTentativelyAccepted + _MeetingMessageTypePMeetingDeclined = MeetingMessageTypeVMeetingDeclined +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go new file mode 100644 index 00000000..16f1808a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go @@ -0,0 +1,70 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MessageActionFlag undocumented +type MessageActionFlag string + +const ( + // MessageActionFlagVAny undocumented + MessageActionFlagVAny MessageActionFlag = "any" + // MessageActionFlagVCall undocumented + MessageActionFlagVCall MessageActionFlag = "call" + // MessageActionFlagVDoNotForward undocumented + MessageActionFlagVDoNotForward MessageActionFlag = "doNotForward" + // MessageActionFlagVFollowUp undocumented + MessageActionFlagVFollowUp MessageActionFlag = "followUp" + // MessageActionFlagVFyi undocumented + MessageActionFlagVFyi MessageActionFlag = "fyi" + // MessageActionFlagVForward undocumented + MessageActionFlagVForward MessageActionFlag = "forward" + // MessageActionFlagVNoResponseNecessary undocumented + MessageActionFlagVNoResponseNecessary MessageActionFlag = "noResponseNecessary" + // MessageActionFlagVRead undocumented + MessageActionFlagVRead MessageActionFlag = "read" + // MessageActionFlagVReply undocumented + MessageActionFlagVReply MessageActionFlag = "reply" + // MessageActionFlagVReplyToAll undocumented + MessageActionFlagVReplyToAll MessageActionFlag = "replyToAll" + // MessageActionFlagVReview undocumented + MessageActionFlagVReview MessageActionFlag = "review" +) + +var ( + // MessageActionFlagPAny is a pointer to MessageActionFlagVAny + MessageActionFlagPAny = &_MessageActionFlagPAny + // MessageActionFlagPCall is a pointer to MessageActionFlagVCall + MessageActionFlagPCall = &_MessageActionFlagPCall + // MessageActionFlagPDoNotForward is a pointer to MessageActionFlagVDoNotForward + MessageActionFlagPDoNotForward = &_MessageActionFlagPDoNotForward + // MessageActionFlagPFollowUp is a pointer to MessageActionFlagVFollowUp + MessageActionFlagPFollowUp = &_MessageActionFlagPFollowUp + // MessageActionFlagPFyi is a pointer to MessageActionFlagVFyi + MessageActionFlagPFyi = &_MessageActionFlagPFyi + // MessageActionFlagPForward is a pointer to MessageActionFlagVForward + MessageActionFlagPForward = &_MessageActionFlagPForward + // MessageActionFlagPNoResponseNecessary is a pointer to MessageActionFlagVNoResponseNecessary + MessageActionFlagPNoResponseNecessary = &_MessageActionFlagPNoResponseNecessary + // MessageActionFlagPRead is a pointer to MessageActionFlagVRead + MessageActionFlagPRead = &_MessageActionFlagPRead + // MessageActionFlagPReply is a pointer to MessageActionFlagVReply + MessageActionFlagPReply = &_MessageActionFlagPReply + // MessageActionFlagPReplyToAll is a pointer to MessageActionFlagVReplyToAll + MessageActionFlagPReplyToAll = &_MessageActionFlagPReplyToAll + // MessageActionFlagPReview is a pointer to MessageActionFlagVReview + MessageActionFlagPReview = &_MessageActionFlagPReview +) + +var ( + _MessageActionFlagPAny = MessageActionFlagVAny + _MessageActionFlagPCall = MessageActionFlagVCall + _MessageActionFlagPDoNotForward = MessageActionFlagVDoNotForward + _MessageActionFlagPFollowUp = MessageActionFlagVFollowUp + _MessageActionFlagPFyi = MessageActionFlagVFyi + _MessageActionFlagPForward = MessageActionFlagVForward + _MessageActionFlagPNoResponseNecessary = MessageActionFlagVNoResponseNecessary + _MessageActionFlagPRead = MessageActionFlagVRead + _MessageActionFlagPReply = MessageActionFlagVReply + _MessageActionFlagPReplyToAll = MessageActionFlagVReplyToAll + _MessageActionFlagPReview = MessageActionFlagVReview +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go new file mode 100644 index 00000000..3febbbea --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MeteredConnectionLimitType undocumented +type MeteredConnectionLimitType string + +const ( + // MeteredConnectionLimitTypeVUnrestricted undocumented + MeteredConnectionLimitTypeVUnrestricted MeteredConnectionLimitType = "unrestricted" + // MeteredConnectionLimitTypeVFixed undocumented + MeteredConnectionLimitTypeVFixed MeteredConnectionLimitType = "fixed" + // MeteredConnectionLimitTypeVVariable undocumented + MeteredConnectionLimitTypeVVariable MeteredConnectionLimitType = "variable" +) + +var ( + // MeteredConnectionLimitTypePUnrestricted is a pointer to MeteredConnectionLimitTypeVUnrestricted + MeteredConnectionLimitTypePUnrestricted = &_MeteredConnectionLimitTypePUnrestricted + // MeteredConnectionLimitTypePFixed is a pointer to MeteredConnectionLimitTypeVFixed + MeteredConnectionLimitTypePFixed = &_MeteredConnectionLimitTypePFixed + // MeteredConnectionLimitTypePVariable is a pointer to MeteredConnectionLimitTypeVVariable + MeteredConnectionLimitTypePVariable = &_MeteredConnectionLimitTypePVariable +) + +var ( + _MeteredConnectionLimitTypePUnrestricted = MeteredConnectionLimitTypeVUnrestricted + _MeteredConnectionLimitTypePFixed = MeteredConnectionLimitTypeVFixed + _MeteredConnectionLimitTypePVariable = MeteredConnectionLimitTypeVVariable +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go new file mode 100644 index 00000000..7ea97e61 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MicrosoftEdgeChannel undocumented +type MicrosoftEdgeChannel string + +const ( + // MicrosoftEdgeChannelVDev undocumented + MicrosoftEdgeChannelVDev MicrosoftEdgeChannel = "dev" + // MicrosoftEdgeChannelVBeta undocumented + MicrosoftEdgeChannelVBeta MicrosoftEdgeChannel = "beta" + // MicrosoftEdgeChannelVStable undocumented + MicrosoftEdgeChannelVStable MicrosoftEdgeChannel = "stable" +) + +var ( + // MicrosoftEdgeChannelPDev is a pointer to MicrosoftEdgeChannelVDev + MicrosoftEdgeChannelPDev = &_MicrosoftEdgeChannelPDev + // MicrosoftEdgeChannelPBeta is a pointer to MicrosoftEdgeChannelVBeta + MicrosoftEdgeChannelPBeta = &_MicrosoftEdgeChannelPBeta + // MicrosoftEdgeChannelPStable is a pointer to MicrosoftEdgeChannelVStable + MicrosoftEdgeChannelPStable = &_MicrosoftEdgeChannelPStable +) + +var ( + _MicrosoftEdgeChannelPDev = MicrosoftEdgeChannelVDev + _MicrosoftEdgeChannelPBeta = MicrosoftEdgeChannelVBeta + _MicrosoftEdgeChannelPStable = MicrosoftEdgeChannelVStable +) + +// MicrosoftStoreForBusinessLicenseType undocumented +type MicrosoftStoreForBusinessLicenseType string + +const ( + // MicrosoftStoreForBusinessLicenseTypeVOffline undocumented + MicrosoftStoreForBusinessLicenseTypeVOffline MicrosoftStoreForBusinessLicenseType = "offline" + // MicrosoftStoreForBusinessLicenseTypeVOnline undocumented + MicrosoftStoreForBusinessLicenseTypeVOnline MicrosoftStoreForBusinessLicenseType = "online" +) + +var ( + // MicrosoftStoreForBusinessLicenseTypePOffline is a pointer to MicrosoftStoreForBusinessLicenseTypeVOffline + MicrosoftStoreForBusinessLicenseTypePOffline = &_MicrosoftStoreForBusinessLicenseTypePOffline + // MicrosoftStoreForBusinessLicenseTypePOnline is a pointer to MicrosoftStoreForBusinessLicenseTypeVOnline + MicrosoftStoreForBusinessLicenseTypePOnline = &_MicrosoftStoreForBusinessLicenseTypePOnline +) + +var ( + _MicrosoftStoreForBusinessLicenseTypePOffline = MicrosoftStoreForBusinessLicenseTypeVOffline + _MicrosoftStoreForBusinessLicenseTypePOnline = MicrosoftStoreForBusinessLicenseTypeVOnline +) + +// MicrosoftStoreForBusinessPortalSelectionOptions undocumented +type MicrosoftStoreForBusinessPortalSelectionOptions string + +const ( + // MicrosoftStoreForBusinessPortalSelectionOptionsVNone undocumented + MicrosoftStoreForBusinessPortalSelectionOptionsVNone MicrosoftStoreForBusinessPortalSelectionOptions = "none" + // MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal undocumented + MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal MicrosoftStoreForBusinessPortalSelectionOptions = "companyPortal" + // MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore undocumented + MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore MicrosoftStoreForBusinessPortalSelectionOptions = "privateStore" +) + +var ( + // MicrosoftStoreForBusinessPortalSelectionOptionsPNone is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVNone + MicrosoftStoreForBusinessPortalSelectionOptionsPNone = &_MicrosoftStoreForBusinessPortalSelectionOptionsPNone + // MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal + MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal = &_MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal + // MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore + MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore = &_MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore +) + +var ( + _MicrosoftStoreForBusinessPortalSelectionOptionsPNone = MicrosoftStoreForBusinessPortalSelectionOptionsVNone + _MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal = MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal + _MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore = MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go new file mode 100644 index 00000000..de09954b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MigrationStatus undocumented +type MigrationStatus string + +const ( + // MigrationStatusVReady undocumented + MigrationStatusVReady MigrationStatus = "ready" + // MigrationStatusVNeedsReview undocumented + MigrationStatusVNeedsReview MigrationStatus = "needsReview" + // MigrationStatusVAdditionalStepsRequired undocumented + MigrationStatusVAdditionalStepsRequired MigrationStatus = "additionalStepsRequired" + // MigrationStatusVUnknownFutureValue undocumented + MigrationStatusVUnknownFutureValue MigrationStatus = "unknownFutureValue" +) + +var ( + // MigrationStatusPReady is a pointer to MigrationStatusVReady + MigrationStatusPReady = &_MigrationStatusPReady + // MigrationStatusPNeedsReview is a pointer to MigrationStatusVNeedsReview + MigrationStatusPNeedsReview = &_MigrationStatusPNeedsReview + // MigrationStatusPAdditionalStepsRequired is a pointer to MigrationStatusVAdditionalStepsRequired + MigrationStatusPAdditionalStepsRequired = &_MigrationStatusPAdditionalStepsRequired + // MigrationStatusPUnknownFutureValue is a pointer to MigrationStatusVUnknownFutureValue + MigrationStatusPUnknownFutureValue = &_MigrationStatusPUnknownFutureValue +) + +var ( + _MigrationStatusPReady = MigrationStatusVReady + _MigrationStatusPNeedsReview = MigrationStatusVNeedsReview + _MigrationStatusPAdditionalStepsRequired = MigrationStatusVAdditionalStepsRequired + _MigrationStatusPUnknownFutureValue = MigrationStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go new file mode 100644 index 00000000..7b30ef77 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go @@ -0,0 +1,120 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MiracastChannel undocumented +type MiracastChannel string + +const ( + // MiracastChannelVUserDefined undocumented + MiracastChannelVUserDefined MiracastChannel = "userDefined" + // MiracastChannelVOne undocumented + MiracastChannelVOne MiracastChannel = "one" + // MiracastChannelVTwo undocumented + MiracastChannelVTwo MiracastChannel = "two" + // MiracastChannelVThree undocumented + MiracastChannelVThree MiracastChannel = "three" + // MiracastChannelVFour undocumented + MiracastChannelVFour MiracastChannel = "four" + // MiracastChannelVFive undocumented + MiracastChannelVFive MiracastChannel = "five" + // MiracastChannelVSix undocumented + MiracastChannelVSix MiracastChannel = "six" + // MiracastChannelVSeven undocumented + MiracastChannelVSeven MiracastChannel = "seven" + // MiracastChannelVEight undocumented + MiracastChannelVEight MiracastChannel = "eight" + // MiracastChannelVNine undocumented + MiracastChannelVNine MiracastChannel = "nine" + // MiracastChannelVTen undocumented + MiracastChannelVTen MiracastChannel = "ten" + // MiracastChannelVEleven undocumented + MiracastChannelVEleven MiracastChannel = "eleven" + // MiracastChannelVThirtySix undocumented + MiracastChannelVThirtySix MiracastChannel = "thirtySix" + // MiracastChannelVForty undocumented + MiracastChannelVForty MiracastChannel = "forty" + // MiracastChannelVFortyFour undocumented + MiracastChannelVFortyFour MiracastChannel = "fortyFour" + // MiracastChannelVFortyEight undocumented + MiracastChannelVFortyEight MiracastChannel = "fortyEight" + // MiracastChannelVOneHundredFortyNine undocumented + MiracastChannelVOneHundredFortyNine MiracastChannel = "oneHundredFortyNine" + // MiracastChannelVOneHundredFiftyThree undocumented + MiracastChannelVOneHundredFiftyThree MiracastChannel = "oneHundredFiftyThree" + // MiracastChannelVOneHundredFiftySeven undocumented + MiracastChannelVOneHundredFiftySeven MiracastChannel = "oneHundredFiftySeven" + // MiracastChannelVOneHundredSixtyOne undocumented + MiracastChannelVOneHundredSixtyOne MiracastChannel = "oneHundredSixtyOne" + // MiracastChannelVOneHundredSixtyFive undocumented + MiracastChannelVOneHundredSixtyFive MiracastChannel = "oneHundredSixtyFive" +) + +var ( + // MiracastChannelPUserDefined is a pointer to MiracastChannelVUserDefined + MiracastChannelPUserDefined = &_MiracastChannelPUserDefined + // MiracastChannelPOne is a pointer to MiracastChannelVOne + MiracastChannelPOne = &_MiracastChannelPOne + // MiracastChannelPTwo is a pointer to MiracastChannelVTwo + MiracastChannelPTwo = &_MiracastChannelPTwo + // MiracastChannelPThree is a pointer to MiracastChannelVThree + MiracastChannelPThree = &_MiracastChannelPThree + // MiracastChannelPFour is a pointer to MiracastChannelVFour + MiracastChannelPFour = &_MiracastChannelPFour + // MiracastChannelPFive is a pointer to MiracastChannelVFive + MiracastChannelPFive = &_MiracastChannelPFive + // MiracastChannelPSix is a pointer to MiracastChannelVSix + MiracastChannelPSix = &_MiracastChannelPSix + // MiracastChannelPSeven is a pointer to MiracastChannelVSeven + MiracastChannelPSeven = &_MiracastChannelPSeven + // MiracastChannelPEight is a pointer to MiracastChannelVEight + MiracastChannelPEight = &_MiracastChannelPEight + // MiracastChannelPNine is a pointer to MiracastChannelVNine + MiracastChannelPNine = &_MiracastChannelPNine + // MiracastChannelPTen is a pointer to MiracastChannelVTen + MiracastChannelPTen = &_MiracastChannelPTen + // MiracastChannelPEleven is a pointer to MiracastChannelVEleven + MiracastChannelPEleven = &_MiracastChannelPEleven + // MiracastChannelPThirtySix is a pointer to MiracastChannelVThirtySix + MiracastChannelPThirtySix = &_MiracastChannelPThirtySix + // MiracastChannelPForty is a pointer to MiracastChannelVForty + MiracastChannelPForty = &_MiracastChannelPForty + // MiracastChannelPFortyFour is a pointer to MiracastChannelVFortyFour + MiracastChannelPFortyFour = &_MiracastChannelPFortyFour + // MiracastChannelPFortyEight is a pointer to MiracastChannelVFortyEight + MiracastChannelPFortyEight = &_MiracastChannelPFortyEight + // MiracastChannelPOneHundredFortyNine is a pointer to MiracastChannelVOneHundredFortyNine + MiracastChannelPOneHundredFortyNine = &_MiracastChannelPOneHundredFortyNine + // MiracastChannelPOneHundredFiftyThree is a pointer to MiracastChannelVOneHundredFiftyThree + MiracastChannelPOneHundredFiftyThree = &_MiracastChannelPOneHundredFiftyThree + // MiracastChannelPOneHundredFiftySeven is a pointer to MiracastChannelVOneHundredFiftySeven + MiracastChannelPOneHundredFiftySeven = &_MiracastChannelPOneHundredFiftySeven + // MiracastChannelPOneHundredSixtyOne is a pointer to MiracastChannelVOneHundredSixtyOne + MiracastChannelPOneHundredSixtyOne = &_MiracastChannelPOneHundredSixtyOne + // MiracastChannelPOneHundredSixtyFive is a pointer to MiracastChannelVOneHundredSixtyFive + MiracastChannelPOneHundredSixtyFive = &_MiracastChannelPOneHundredSixtyFive +) + +var ( + _MiracastChannelPUserDefined = MiracastChannelVUserDefined + _MiracastChannelPOne = MiracastChannelVOne + _MiracastChannelPTwo = MiracastChannelVTwo + _MiracastChannelPThree = MiracastChannelVThree + _MiracastChannelPFour = MiracastChannelVFour + _MiracastChannelPFive = MiracastChannelVFive + _MiracastChannelPSix = MiracastChannelVSix + _MiracastChannelPSeven = MiracastChannelVSeven + _MiracastChannelPEight = MiracastChannelVEight + _MiracastChannelPNine = MiracastChannelVNine + _MiracastChannelPTen = MiracastChannelVTen + _MiracastChannelPEleven = MiracastChannelVEleven + _MiracastChannelPThirtySix = MiracastChannelVThirtySix + _MiracastChannelPForty = MiracastChannelVForty + _MiracastChannelPFortyFour = MiracastChannelVFortyFour + _MiracastChannelPFortyEight = MiracastChannelVFortyEight + _MiracastChannelPOneHundredFortyNine = MiracastChannelVOneHundredFortyNine + _MiracastChannelPOneHundredFiftyThree = MiracastChannelVOneHundredFiftyThree + _MiracastChannelPOneHundredFiftySeven = MiracastChannelVOneHundredFiftySeven + _MiracastChannelPOneHundredSixtyOne = MiracastChannelVOneHundredSixtyOne + _MiracastChannelPOneHundredSixtyFive = MiracastChannelVOneHundredSixtyFive +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go new file mode 100644 index 00000000..60e16798 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go @@ -0,0 +1,260 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MobileAppActionType undocumented +type MobileAppActionType string + +const ( + // MobileAppActionTypeVUnknown undocumented + MobileAppActionTypeVUnknown MobileAppActionType = "unknown" + // MobileAppActionTypeVInstallCommandSent undocumented + MobileAppActionTypeVInstallCommandSent MobileAppActionType = "installCommandSent" + // MobileAppActionTypeVInstalled undocumented + MobileAppActionTypeVInstalled MobileAppActionType = "installed" + // MobileAppActionTypeVUninstalled undocumented + MobileAppActionTypeVUninstalled MobileAppActionType = "uninstalled" + // MobileAppActionTypeVUserRequestedInstall undocumented + MobileAppActionTypeVUserRequestedInstall MobileAppActionType = "userRequestedInstall" +) + +var ( + // MobileAppActionTypePUnknown is a pointer to MobileAppActionTypeVUnknown + MobileAppActionTypePUnknown = &_MobileAppActionTypePUnknown + // MobileAppActionTypePInstallCommandSent is a pointer to MobileAppActionTypeVInstallCommandSent + MobileAppActionTypePInstallCommandSent = &_MobileAppActionTypePInstallCommandSent + // MobileAppActionTypePInstalled is a pointer to MobileAppActionTypeVInstalled + MobileAppActionTypePInstalled = &_MobileAppActionTypePInstalled + // MobileAppActionTypePUninstalled is a pointer to MobileAppActionTypeVUninstalled + MobileAppActionTypePUninstalled = &_MobileAppActionTypePUninstalled + // MobileAppActionTypePUserRequestedInstall is a pointer to MobileAppActionTypeVUserRequestedInstall + MobileAppActionTypePUserRequestedInstall = &_MobileAppActionTypePUserRequestedInstall +) + +var ( + _MobileAppActionTypePUnknown = MobileAppActionTypeVUnknown + _MobileAppActionTypePInstallCommandSent = MobileAppActionTypeVInstallCommandSent + _MobileAppActionTypePInstalled = MobileAppActionTypeVInstalled + _MobileAppActionTypePUninstalled = MobileAppActionTypeVUninstalled + _MobileAppActionTypePUserRequestedInstall = MobileAppActionTypeVUserRequestedInstall +) + +// MobileAppContentFileUploadState undocumented +type MobileAppContentFileUploadState string + +const ( + // MobileAppContentFileUploadStateVSuccess undocumented + MobileAppContentFileUploadStateVSuccess MobileAppContentFileUploadState = "success" + // MobileAppContentFileUploadStateVTransientError undocumented + MobileAppContentFileUploadStateVTransientError MobileAppContentFileUploadState = "transientError" + // MobileAppContentFileUploadStateVError undocumented + MobileAppContentFileUploadStateVError MobileAppContentFileUploadState = "error" + // MobileAppContentFileUploadStateVUnknown undocumented + MobileAppContentFileUploadStateVUnknown MobileAppContentFileUploadState = "unknown" + // MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess undocumented + MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess MobileAppContentFileUploadState = "azureStorageUriRequestSuccess" + // MobileAppContentFileUploadStateVAzureStorageURIRequestPending undocumented + MobileAppContentFileUploadStateVAzureStorageURIRequestPending MobileAppContentFileUploadState = "azureStorageUriRequestPending" + // MobileAppContentFileUploadStateVAzureStorageURIRequestFailed undocumented + MobileAppContentFileUploadStateVAzureStorageURIRequestFailed MobileAppContentFileUploadState = "azureStorageUriRequestFailed" + // MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut undocumented + MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut MobileAppContentFileUploadState = "azureStorageUriRequestTimedOut" + // MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess undocumented + MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess MobileAppContentFileUploadState = "azureStorageUriRenewalSuccess" + // MobileAppContentFileUploadStateVAzureStorageURIRenewalPending undocumented + MobileAppContentFileUploadStateVAzureStorageURIRenewalPending MobileAppContentFileUploadState = "azureStorageUriRenewalPending" + // MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed undocumented + MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed MobileAppContentFileUploadState = "azureStorageUriRenewalFailed" + // MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut undocumented + MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut MobileAppContentFileUploadState = "azureStorageUriRenewalTimedOut" + // MobileAppContentFileUploadStateVCommitFileSuccess undocumented + MobileAppContentFileUploadStateVCommitFileSuccess MobileAppContentFileUploadState = "commitFileSuccess" + // MobileAppContentFileUploadStateVCommitFilePending undocumented + MobileAppContentFileUploadStateVCommitFilePending MobileAppContentFileUploadState = "commitFilePending" + // MobileAppContentFileUploadStateVCommitFileFailed undocumented + MobileAppContentFileUploadStateVCommitFileFailed MobileAppContentFileUploadState = "commitFileFailed" + // MobileAppContentFileUploadStateVCommitFileTimedOut undocumented + MobileAppContentFileUploadStateVCommitFileTimedOut MobileAppContentFileUploadState = "commitFileTimedOut" +) + +var ( + // MobileAppContentFileUploadStatePSuccess is a pointer to MobileAppContentFileUploadStateVSuccess + MobileAppContentFileUploadStatePSuccess = &_MobileAppContentFileUploadStatePSuccess + // MobileAppContentFileUploadStatePTransientError is a pointer to MobileAppContentFileUploadStateVTransientError + MobileAppContentFileUploadStatePTransientError = &_MobileAppContentFileUploadStatePTransientError + // MobileAppContentFileUploadStatePError is a pointer to MobileAppContentFileUploadStateVError + MobileAppContentFileUploadStatePError = &_MobileAppContentFileUploadStatePError + // MobileAppContentFileUploadStatePUnknown is a pointer to MobileAppContentFileUploadStateVUnknown + MobileAppContentFileUploadStatePUnknown = &_MobileAppContentFileUploadStatePUnknown + // MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess + MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess = &_MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess + // MobileAppContentFileUploadStatePAzureStorageURIRequestPending is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestPending + MobileAppContentFileUploadStatePAzureStorageURIRequestPending = &_MobileAppContentFileUploadStatePAzureStorageURIRequestPending + // MobileAppContentFileUploadStatePAzureStorageURIRequestFailed is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestFailed + MobileAppContentFileUploadStatePAzureStorageURIRequestFailed = &_MobileAppContentFileUploadStatePAzureStorageURIRequestFailed + // MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut + MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut = &_MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut + // MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess + MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess + // MobileAppContentFileUploadStatePAzureStorageURIRenewalPending is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalPending + MobileAppContentFileUploadStatePAzureStorageURIRenewalPending = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalPending + // MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed + MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed + // MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut + MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut + // MobileAppContentFileUploadStatePCommitFileSuccess is a pointer to MobileAppContentFileUploadStateVCommitFileSuccess + MobileAppContentFileUploadStatePCommitFileSuccess = &_MobileAppContentFileUploadStatePCommitFileSuccess + // MobileAppContentFileUploadStatePCommitFilePending is a pointer to MobileAppContentFileUploadStateVCommitFilePending + MobileAppContentFileUploadStatePCommitFilePending = &_MobileAppContentFileUploadStatePCommitFilePending + // MobileAppContentFileUploadStatePCommitFileFailed is a pointer to MobileAppContentFileUploadStateVCommitFileFailed + MobileAppContentFileUploadStatePCommitFileFailed = &_MobileAppContentFileUploadStatePCommitFileFailed + // MobileAppContentFileUploadStatePCommitFileTimedOut is a pointer to MobileAppContentFileUploadStateVCommitFileTimedOut + MobileAppContentFileUploadStatePCommitFileTimedOut = &_MobileAppContentFileUploadStatePCommitFileTimedOut +) + +var ( + _MobileAppContentFileUploadStatePSuccess = MobileAppContentFileUploadStateVSuccess + _MobileAppContentFileUploadStatePTransientError = MobileAppContentFileUploadStateVTransientError + _MobileAppContentFileUploadStatePError = MobileAppContentFileUploadStateVError + _MobileAppContentFileUploadStatePUnknown = MobileAppContentFileUploadStateVUnknown + _MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess = MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess + _MobileAppContentFileUploadStatePAzureStorageURIRequestPending = MobileAppContentFileUploadStateVAzureStorageURIRequestPending + _MobileAppContentFileUploadStatePAzureStorageURIRequestFailed = MobileAppContentFileUploadStateVAzureStorageURIRequestFailed + _MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut = MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut + _MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess = MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess + _MobileAppContentFileUploadStatePAzureStorageURIRenewalPending = MobileAppContentFileUploadStateVAzureStorageURIRenewalPending + _MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed = MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed + _MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut = MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut + _MobileAppContentFileUploadStatePCommitFileSuccess = MobileAppContentFileUploadStateVCommitFileSuccess + _MobileAppContentFileUploadStatePCommitFilePending = MobileAppContentFileUploadStateVCommitFilePending + _MobileAppContentFileUploadStatePCommitFileFailed = MobileAppContentFileUploadStateVCommitFileFailed + _MobileAppContentFileUploadStatePCommitFileTimedOut = MobileAppContentFileUploadStateVCommitFileTimedOut +) + +// MobileAppDependencyType undocumented +type MobileAppDependencyType string + +const ( + // MobileAppDependencyTypeVDetect undocumented + MobileAppDependencyTypeVDetect MobileAppDependencyType = "detect" + // MobileAppDependencyTypeVAutoInstall undocumented + MobileAppDependencyTypeVAutoInstall MobileAppDependencyType = "autoInstall" +) + +var ( + // MobileAppDependencyTypePDetect is a pointer to MobileAppDependencyTypeVDetect + MobileAppDependencyTypePDetect = &_MobileAppDependencyTypePDetect + // MobileAppDependencyTypePAutoInstall is a pointer to MobileAppDependencyTypeVAutoInstall + MobileAppDependencyTypePAutoInstall = &_MobileAppDependencyTypePAutoInstall +) + +var ( + _MobileAppDependencyTypePDetect = MobileAppDependencyTypeVDetect + _MobileAppDependencyTypePAutoInstall = MobileAppDependencyTypeVAutoInstall +) + +// MobileAppIntent undocumented +type MobileAppIntent string + +const ( + // MobileAppIntentVAvailable undocumented + MobileAppIntentVAvailable MobileAppIntent = "available" + // MobileAppIntentVNotAvailable undocumented + MobileAppIntentVNotAvailable MobileAppIntent = "notAvailable" + // MobileAppIntentVRequiredInstall undocumented + MobileAppIntentVRequiredInstall MobileAppIntent = "requiredInstall" + // MobileAppIntentVRequiredUninstall undocumented + MobileAppIntentVRequiredUninstall MobileAppIntent = "requiredUninstall" + // MobileAppIntentVRequiredAndAvailableInstall undocumented + MobileAppIntentVRequiredAndAvailableInstall MobileAppIntent = "requiredAndAvailableInstall" + // MobileAppIntentVAvailableInstallWithoutEnrollment undocumented + MobileAppIntentVAvailableInstallWithoutEnrollment MobileAppIntent = "availableInstallWithoutEnrollment" + // MobileAppIntentVExclude undocumented + MobileAppIntentVExclude MobileAppIntent = "exclude" +) + +var ( + // MobileAppIntentPAvailable is a pointer to MobileAppIntentVAvailable + MobileAppIntentPAvailable = &_MobileAppIntentPAvailable + // MobileAppIntentPNotAvailable is a pointer to MobileAppIntentVNotAvailable + MobileAppIntentPNotAvailable = &_MobileAppIntentPNotAvailable + // MobileAppIntentPRequiredInstall is a pointer to MobileAppIntentVRequiredInstall + MobileAppIntentPRequiredInstall = &_MobileAppIntentPRequiredInstall + // MobileAppIntentPRequiredUninstall is a pointer to MobileAppIntentVRequiredUninstall + MobileAppIntentPRequiredUninstall = &_MobileAppIntentPRequiredUninstall + // MobileAppIntentPRequiredAndAvailableInstall is a pointer to MobileAppIntentVRequiredAndAvailableInstall + MobileAppIntentPRequiredAndAvailableInstall = &_MobileAppIntentPRequiredAndAvailableInstall + // MobileAppIntentPAvailableInstallWithoutEnrollment is a pointer to MobileAppIntentVAvailableInstallWithoutEnrollment + MobileAppIntentPAvailableInstallWithoutEnrollment = &_MobileAppIntentPAvailableInstallWithoutEnrollment + // MobileAppIntentPExclude is a pointer to MobileAppIntentVExclude + MobileAppIntentPExclude = &_MobileAppIntentPExclude +) + +var ( + _MobileAppIntentPAvailable = MobileAppIntentVAvailable + _MobileAppIntentPNotAvailable = MobileAppIntentVNotAvailable + _MobileAppIntentPRequiredInstall = MobileAppIntentVRequiredInstall + _MobileAppIntentPRequiredUninstall = MobileAppIntentVRequiredUninstall + _MobileAppIntentPRequiredAndAvailableInstall = MobileAppIntentVRequiredAndAvailableInstall + _MobileAppIntentPAvailableInstallWithoutEnrollment = MobileAppIntentVAvailableInstallWithoutEnrollment + _MobileAppIntentPExclude = MobileAppIntentVExclude +) + +// MobileAppPublishingState undocumented +type MobileAppPublishingState string + +const ( + // MobileAppPublishingStateVNotPublished undocumented + MobileAppPublishingStateVNotPublished MobileAppPublishingState = "notPublished" + // MobileAppPublishingStateVProcessing undocumented + MobileAppPublishingStateVProcessing MobileAppPublishingState = "processing" + // MobileAppPublishingStateVPublished undocumented + MobileAppPublishingStateVPublished MobileAppPublishingState = "published" +) + +var ( + // MobileAppPublishingStatePNotPublished is a pointer to MobileAppPublishingStateVNotPublished + MobileAppPublishingStatePNotPublished = &_MobileAppPublishingStatePNotPublished + // MobileAppPublishingStatePProcessing is a pointer to MobileAppPublishingStateVProcessing + MobileAppPublishingStatePProcessing = &_MobileAppPublishingStatePProcessing + // MobileAppPublishingStatePPublished is a pointer to MobileAppPublishingStateVPublished + MobileAppPublishingStatePPublished = &_MobileAppPublishingStatePPublished +) + +var ( + _MobileAppPublishingStatePNotPublished = MobileAppPublishingStateVNotPublished + _MobileAppPublishingStatePProcessing = MobileAppPublishingStateVProcessing + _MobileAppPublishingStatePPublished = MobileAppPublishingStateVPublished +) + +// MobileThreatPartnerTenantState undocumented +type MobileThreatPartnerTenantState string + +const ( + // MobileThreatPartnerTenantStateVUnavailable undocumented + MobileThreatPartnerTenantStateVUnavailable MobileThreatPartnerTenantState = "unavailable" + // MobileThreatPartnerTenantStateVAvailable undocumented + MobileThreatPartnerTenantStateVAvailable MobileThreatPartnerTenantState = "available" + // MobileThreatPartnerTenantStateVEnabled undocumented + MobileThreatPartnerTenantStateVEnabled MobileThreatPartnerTenantState = "enabled" + // MobileThreatPartnerTenantStateVUnresponsive undocumented + MobileThreatPartnerTenantStateVUnresponsive MobileThreatPartnerTenantState = "unresponsive" +) + +var ( + // MobileThreatPartnerTenantStatePUnavailable is a pointer to MobileThreatPartnerTenantStateVUnavailable + MobileThreatPartnerTenantStatePUnavailable = &_MobileThreatPartnerTenantStatePUnavailable + // MobileThreatPartnerTenantStatePAvailable is a pointer to MobileThreatPartnerTenantStateVAvailable + MobileThreatPartnerTenantStatePAvailable = &_MobileThreatPartnerTenantStatePAvailable + // MobileThreatPartnerTenantStatePEnabled is a pointer to MobileThreatPartnerTenantStateVEnabled + MobileThreatPartnerTenantStatePEnabled = &_MobileThreatPartnerTenantStatePEnabled + // MobileThreatPartnerTenantStatePUnresponsive is a pointer to MobileThreatPartnerTenantStateVUnresponsive + MobileThreatPartnerTenantStatePUnresponsive = &_MobileThreatPartnerTenantStatePUnresponsive +) + +var ( + _MobileThreatPartnerTenantStatePUnavailable = MobileThreatPartnerTenantStateVUnavailable + _MobileThreatPartnerTenantStatePAvailable = MobileThreatPartnerTenantStateVAvailable + _MobileThreatPartnerTenantStatePEnabled = MobileThreatPartnerTenantStateVEnabled + _MobileThreatPartnerTenantStatePUnresponsive = MobileThreatPartnerTenantStateVUnresponsive +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go new file mode 100644 index 00000000..2db69227 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Modality undocumented +type Modality string + +const ( + // ModalityVUnknown undocumented + ModalityVUnknown Modality = "unknown" + // ModalityVAudio undocumented + ModalityVAudio Modality = "audio" + // ModalityVVideo undocumented + ModalityVVideo Modality = "video" + // ModalityVVideoBasedScreenSharing undocumented + ModalityVVideoBasedScreenSharing Modality = "videoBasedScreenSharing" + // ModalityVData undocumented + ModalityVData Modality = "data" + // ModalityVUnknownFutureValue undocumented + ModalityVUnknownFutureValue Modality = "unknownFutureValue" +) + +var ( + // ModalityPUnknown is a pointer to ModalityVUnknown + ModalityPUnknown = &_ModalityPUnknown + // ModalityPAudio is a pointer to ModalityVAudio + ModalityPAudio = &_ModalityPAudio + // ModalityPVideo is a pointer to ModalityVVideo + ModalityPVideo = &_ModalityPVideo + // ModalityPVideoBasedScreenSharing is a pointer to ModalityVVideoBasedScreenSharing + ModalityPVideoBasedScreenSharing = &_ModalityPVideoBasedScreenSharing + // ModalityPData is a pointer to ModalityVData + ModalityPData = &_ModalityPData + // ModalityPUnknownFutureValue is a pointer to ModalityVUnknownFutureValue + ModalityPUnknownFutureValue = &_ModalityPUnknownFutureValue +) + +var ( + _ModalityPUnknown = ModalityVUnknown + _ModalityPAudio = ModalityVAudio + _ModalityPVideo = ModalityVVideo + _ModalityPVideoBasedScreenSharing = ModalityVVideoBasedScreenSharing + _ModalityPData = ModalityVData + _ModalityPUnknownFutureValue = ModalityVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go new file mode 100644 index 00000000..e9f91b25 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Mutability undocumented +type Mutability string + +const ( + // MutabilityVReadWrite undocumented + MutabilityVReadWrite Mutability = "ReadWrite" + // MutabilityVReadOnly undocumented + MutabilityVReadOnly Mutability = "ReadOnly" + // MutabilityVImmutable undocumented + MutabilityVImmutable Mutability = "Immutable" + // MutabilityVWriteOnly undocumented + MutabilityVWriteOnly Mutability = "WriteOnly" +) + +var ( + // MutabilityPReadWrite is a pointer to MutabilityVReadWrite + MutabilityPReadWrite = &_MutabilityPReadWrite + // MutabilityPReadOnly is a pointer to MutabilityVReadOnly + MutabilityPReadOnly = &_MutabilityPReadOnly + // MutabilityPImmutable is a pointer to MutabilityVImmutable + MutabilityPImmutable = &_MutabilityPImmutable + // MutabilityPWriteOnly is a pointer to MutabilityVWriteOnly + MutabilityPWriteOnly = &_MutabilityPWriteOnly +) + +var ( + _MutabilityPReadWrite = MutabilityVReadWrite + _MutabilityPReadOnly = MutabilityVReadOnly + _MutabilityPImmutable = MutabilityVImmutable + _MutabilityPWriteOnly = MutabilityVWriteOnly +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go new file mode 100644 index 00000000..5f5daea3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// NDESConnectorState undocumented +type NDESConnectorState string + +const ( + // NDESConnectorStateVNone undocumented + NDESConnectorStateVNone NDESConnectorState = "none" + // NDESConnectorStateVActive undocumented + NDESConnectorStateVActive NDESConnectorState = "active" + // NDESConnectorStateVInactive undocumented + NDESConnectorStateVInactive NDESConnectorState = "inactive" +) + +var ( + // NDESConnectorStatePNone is a pointer to NDESConnectorStateVNone + NDESConnectorStatePNone = &_NDESConnectorStatePNone + // NDESConnectorStatePActive is a pointer to NDESConnectorStateVActive + NDESConnectorStatePActive = &_NDESConnectorStatePActive + // NDESConnectorStatePInactive is a pointer to NDESConnectorStateVInactive + NDESConnectorStatePInactive = &_NDESConnectorStatePInactive +) + +var ( + _NDESConnectorStatePNone = NDESConnectorStateVNone + _NDESConnectorStatePActive = NDESConnectorStateVActive + _NDESConnectorStatePInactive = NDESConnectorStateVInactive +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go new file mode 100644 index 00000000..741b9f75 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// NetworkSingleSignOnType undocumented +type NetworkSingleSignOnType string + +const ( + // NetworkSingleSignOnTypeVDisabled undocumented + NetworkSingleSignOnTypeVDisabled NetworkSingleSignOnType = "disabled" + // NetworkSingleSignOnTypeVPrelogon undocumented + NetworkSingleSignOnTypeVPrelogon NetworkSingleSignOnType = "prelogon" + // NetworkSingleSignOnTypeVPostlogon undocumented + NetworkSingleSignOnTypeVPostlogon NetworkSingleSignOnType = "postlogon" +) + +var ( + // NetworkSingleSignOnTypePDisabled is a pointer to NetworkSingleSignOnTypeVDisabled + NetworkSingleSignOnTypePDisabled = &_NetworkSingleSignOnTypePDisabled + // NetworkSingleSignOnTypePPrelogon is a pointer to NetworkSingleSignOnTypeVPrelogon + NetworkSingleSignOnTypePPrelogon = &_NetworkSingleSignOnTypePPrelogon + // NetworkSingleSignOnTypePPostlogon is a pointer to NetworkSingleSignOnTypeVPostlogon + NetworkSingleSignOnTypePPostlogon = &_NetworkSingleSignOnTypePPostlogon +) + +var ( + _NetworkSingleSignOnTypePDisabled = NetworkSingleSignOnTypeVDisabled + _NetworkSingleSignOnTypePPrelogon = NetworkSingleSignOnTypeVPrelogon + _NetworkSingleSignOnTypePPostlogon = NetworkSingleSignOnTypeVPostlogon +) + +// NetworkType undocumented +type NetworkType string + +const ( + // NetworkTypeVIntranet undocumented + NetworkTypeVIntranet NetworkType = "intranet" + // NetworkTypeVExtranet undocumented + NetworkTypeVExtranet NetworkType = "extranet" + // NetworkTypeVNamedNetwork undocumented + NetworkTypeVNamedNetwork NetworkType = "namedNetwork" + // NetworkTypeVTrusted undocumented + NetworkTypeVTrusted NetworkType = "trusted" + // NetworkTypeVUnknownFutureValue undocumented + NetworkTypeVUnknownFutureValue NetworkType = "unknownFutureValue" +) + +var ( + // NetworkTypePIntranet is a pointer to NetworkTypeVIntranet + NetworkTypePIntranet = &_NetworkTypePIntranet + // NetworkTypePExtranet is a pointer to NetworkTypeVExtranet + NetworkTypePExtranet = &_NetworkTypePExtranet + // NetworkTypePNamedNetwork is a pointer to NetworkTypeVNamedNetwork + NetworkTypePNamedNetwork = &_NetworkTypePNamedNetwork + // NetworkTypePTrusted is a pointer to NetworkTypeVTrusted + NetworkTypePTrusted = &_NetworkTypePTrusted + // NetworkTypePUnknownFutureValue is a pointer to NetworkTypeVUnknownFutureValue + NetworkTypePUnknownFutureValue = &_NetworkTypePUnknownFutureValue +) + +var ( + _NetworkTypePIntranet = NetworkTypeVIntranet + _NetworkTypePExtranet = NetworkTypeVExtranet + _NetworkTypePNamedNetwork = NetworkTypeVNamedNetwork + _NetworkTypePTrusted = NetworkTypeVTrusted + _NetworkTypePUnknownFutureValue = NetworkTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go new file mode 100644 index 00000000..fb8ce5cb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// NonEapAuthenticationMethodForEapTtlsType undocumented +type NonEapAuthenticationMethodForEapTtlsType string + +const ( + // NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword undocumented + NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword NonEapAuthenticationMethodForEapTtlsType = "unencryptedPassword" + // NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol undocumented + NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol NonEapAuthenticationMethodForEapTtlsType = "challengeHandshakeAuthenticationProtocol" + // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap undocumented + NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap NonEapAuthenticationMethodForEapTtlsType = "microsoftChap" + // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo undocumented + NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo NonEapAuthenticationMethodForEapTtlsType = "microsoftChapVersionTwo" +) + +var ( + // NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword + NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword = &_NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword + // NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol + NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol = &_NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol + // NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap + NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap = &_NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap + // NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo + NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo = &_NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo +) + +var ( + _NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword = NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword + _NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol = NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol + _NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap = NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap + _NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo = NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo +) + +// NonEapAuthenticationMethodForPeap undocumented +type NonEapAuthenticationMethodForPeap string + +const ( + // NonEapAuthenticationMethodForPeapVNone undocumented + NonEapAuthenticationMethodForPeapVNone NonEapAuthenticationMethodForPeap = "none" + // NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo undocumented + NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo NonEapAuthenticationMethodForPeap = "microsoftChapVersionTwo" +) + +var ( + // NonEapAuthenticationMethodForPeapPNone is a pointer to NonEapAuthenticationMethodForPeapVNone + NonEapAuthenticationMethodForPeapPNone = &_NonEapAuthenticationMethodForPeapPNone + // NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo is a pointer to NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo + NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo = &_NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo +) + +var ( + _NonEapAuthenticationMethodForPeapPNone = NonEapAuthenticationMethodForPeapVNone + _NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo = NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go new file mode 100644 index 00000000..4e652269 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// NotificationTemplateBrandingOptions undocumented +type NotificationTemplateBrandingOptions string + +const ( + // NotificationTemplateBrandingOptionsVNone undocumented + NotificationTemplateBrandingOptionsVNone NotificationTemplateBrandingOptions = "none" + // NotificationTemplateBrandingOptionsVIncludeCompanyLogo undocumented + NotificationTemplateBrandingOptionsVIncludeCompanyLogo NotificationTemplateBrandingOptions = "includeCompanyLogo" + // NotificationTemplateBrandingOptionsVIncludeCompanyName undocumented + NotificationTemplateBrandingOptionsVIncludeCompanyName NotificationTemplateBrandingOptions = "includeCompanyName" + // NotificationTemplateBrandingOptionsVIncludeContactInformation undocumented + NotificationTemplateBrandingOptionsVIncludeContactInformation NotificationTemplateBrandingOptions = "includeContactInformation" +) + +var ( + // NotificationTemplateBrandingOptionsPNone is a pointer to NotificationTemplateBrandingOptionsVNone + NotificationTemplateBrandingOptionsPNone = &_NotificationTemplateBrandingOptionsPNone + // NotificationTemplateBrandingOptionsPIncludeCompanyLogo is a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyLogo + NotificationTemplateBrandingOptionsPIncludeCompanyLogo = &_NotificationTemplateBrandingOptionsPIncludeCompanyLogo + // NotificationTemplateBrandingOptionsPIncludeCompanyName is a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyName + NotificationTemplateBrandingOptionsPIncludeCompanyName = &_NotificationTemplateBrandingOptionsPIncludeCompanyName + // NotificationTemplateBrandingOptionsPIncludeContactInformation is a pointer to NotificationTemplateBrandingOptionsVIncludeContactInformation + NotificationTemplateBrandingOptionsPIncludeContactInformation = &_NotificationTemplateBrandingOptionsPIncludeContactInformation +) + +var ( + _NotificationTemplateBrandingOptionsPNone = NotificationTemplateBrandingOptionsVNone + _NotificationTemplateBrandingOptionsPIncludeCompanyLogo = NotificationTemplateBrandingOptionsVIncludeCompanyLogo + _NotificationTemplateBrandingOptionsPIncludeCompanyName = NotificationTemplateBrandingOptionsVIncludeCompanyName + _NotificationTemplateBrandingOptionsPIncludeContactInformation = NotificationTemplateBrandingOptionsVIncludeContactInformation +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go new file mode 100644 index 00000000..d85f02f8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ObjectFlowTypes undocumented +type ObjectFlowTypes string + +const ( + // ObjectFlowTypesVNone undocumented + ObjectFlowTypesVNone ObjectFlowTypes = "None" + // ObjectFlowTypesVAdd undocumented + ObjectFlowTypesVAdd ObjectFlowTypes = "Add" + // ObjectFlowTypesVUpdate undocumented + ObjectFlowTypesVUpdate ObjectFlowTypes = "Update" + // ObjectFlowTypesVDelete undocumented + ObjectFlowTypesVDelete ObjectFlowTypes = "Delete" +) + +var ( + // ObjectFlowTypesPNone is a pointer to ObjectFlowTypesVNone + ObjectFlowTypesPNone = &_ObjectFlowTypesPNone + // ObjectFlowTypesPAdd is a pointer to ObjectFlowTypesVAdd + ObjectFlowTypesPAdd = &_ObjectFlowTypesPAdd + // ObjectFlowTypesPUpdate is a pointer to ObjectFlowTypesVUpdate + ObjectFlowTypesPUpdate = &_ObjectFlowTypesPUpdate + // ObjectFlowTypesPDelete is a pointer to ObjectFlowTypesVDelete + ObjectFlowTypesPDelete = &_ObjectFlowTypesPDelete +) + +var ( + _ObjectFlowTypesPNone = ObjectFlowTypesVNone + _ObjectFlowTypesPAdd = ObjectFlowTypesVAdd + _ObjectFlowTypesPUpdate = ObjectFlowTypesVUpdate + _ObjectFlowTypesPDelete = ObjectFlowTypesVDelete +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go new file mode 100644 index 00000000..9bf7a28d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go @@ -0,0 +1,94 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OfficeProductID undocumented +type OfficeProductID string + +const ( + // OfficeProductIDVO365ProPlusRetail undocumented + OfficeProductIDVO365ProPlusRetail OfficeProductID = "o365ProPlusRetail" + // OfficeProductIDVO365BusinessRetail undocumented + OfficeProductIDVO365BusinessRetail OfficeProductID = "o365BusinessRetail" + // OfficeProductIDVVisioProRetail undocumented + OfficeProductIDVVisioProRetail OfficeProductID = "visioProRetail" + // OfficeProductIDVProjectProRetail undocumented + OfficeProductIDVProjectProRetail OfficeProductID = "projectProRetail" +) + +var ( + // OfficeProductIDPO365ProPlusRetail is a pointer to OfficeProductIDVO365ProPlusRetail + OfficeProductIDPO365ProPlusRetail = &_OfficeProductIDPO365ProPlusRetail + // OfficeProductIDPO365BusinessRetail is a pointer to OfficeProductIDVO365BusinessRetail + OfficeProductIDPO365BusinessRetail = &_OfficeProductIDPO365BusinessRetail + // OfficeProductIDPVisioProRetail is a pointer to OfficeProductIDVVisioProRetail + OfficeProductIDPVisioProRetail = &_OfficeProductIDPVisioProRetail + // OfficeProductIDPProjectProRetail is a pointer to OfficeProductIDVProjectProRetail + OfficeProductIDPProjectProRetail = &_OfficeProductIDPProjectProRetail +) + +var ( + _OfficeProductIDPO365ProPlusRetail = OfficeProductIDVO365ProPlusRetail + _OfficeProductIDPO365BusinessRetail = OfficeProductIDVO365BusinessRetail + _OfficeProductIDPVisioProRetail = OfficeProductIDVVisioProRetail + _OfficeProductIDPProjectProRetail = OfficeProductIDVProjectProRetail +) + +// OfficeSuiteInstallProgressDisplayLevel undocumented +type OfficeSuiteInstallProgressDisplayLevel string + +const ( + // OfficeSuiteInstallProgressDisplayLevelVNone undocumented + OfficeSuiteInstallProgressDisplayLevelVNone OfficeSuiteInstallProgressDisplayLevel = "none" + // OfficeSuiteInstallProgressDisplayLevelVFull undocumented + OfficeSuiteInstallProgressDisplayLevelVFull OfficeSuiteInstallProgressDisplayLevel = "full" +) + +var ( + // OfficeSuiteInstallProgressDisplayLevelPNone is a pointer to OfficeSuiteInstallProgressDisplayLevelVNone + OfficeSuiteInstallProgressDisplayLevelPNone = &_OfficeSuiteInstallProgressDisplayLevelPNone + // OfficeSuiteInstallProgressDisplayLevelPFull is a pointer to OfficeSuiteInstallProgressDisplayLevelVFull + OfficeSuiteInstallProgressDisplayLevelPFull = &_OfficeSuiteInstallProgressDisplayLevelPFull +) + +var ( + _OfficeSuiteInstallProgressDisplayLevelPNone = OfficeSuiteInstallProgressDisplayLevelVNone + _OfficeSuiteInstallProgressDisplayLevelPFull = OfficeSuiteInstallProgressDisplayLevelVFull +) + +// OfficeUpdateChannel undocumented +type OfficeUpdateChannel string + +const ( + // OfficeUpdateChannelVNone undocumented + OfficeUpdateChannelVNone OfficeUpdateChannel = "none" + // OfficeUpdateChannelVCurrent undocumented + OfficeUpdateChannelVCurrent OfficeUpdateChannel = "current" + // OfficeUpdateChannelVDeferred undocumented + OfficeUpdateChannelVDeferred OfficeUpdateChannel = "deferred" + // OfficeUpdateChannelVFirstReleaseCurrent undocumented + OfficeUpdateChannelVFirstReleaseCurrent OfficeUpdateChannel = "firstReleaseCurrent" + // OfficeUpdateChannelVFirstReleaseDeferred undocumented + OfficeUpdateChannelVFirstReleaseDeferred OfficeUpdateChannel = "firstReleaseDeferred" +) + +var ( + // OfficeUpdateChannelPNone is a pointer to OfficeUpdateChannelVNone + OfficeUpdateChannelPNone = &_OfficeUpdateChannelPNone + // OfficeUpdateChannelPCurrent is a pointer to OfficeUpdateChannelVCurrent + OfficeUpdateChannelPCurrent = &_OfficeUpdateChannelPCurrent + // OfficeUpdateChannelPDeferred is a pointer to OfficeUpdateChannelVDeferred + OfficeUpdateChannelPDeferred = &_OfficeUpdateChannelPDeferred + // OfficeUpdateChannelPFirstReleaseCurrent is a pointer to OfficeUpdateChannelVFirstReleaseCurrent + OfficeUpdateChannelPFirstReleaseCurrent = &_OfficeUpdateChannelPFirstReleaseCurrent + // OfficeUpdateChannelPFirstReleaseDeferred is a pointer to OfficeUpdateChannelVFirstReleaseDeferred + OfficeUpdateChannelPFirstReleaseDeferred = &_OfficeUpdateChannelPFirstReleaseDeferred +) + +var ( + _OfficeUpdateChannelPNone = OfficeUpdateChannelVNone + _OfficeUpdateChannelPCurrent = OfficeUpdateChannelVCurrent + _OfficeUpdateChannelPDeferred = OfficeUpdateChannelVDeferred + _OfficeUpdateChannelPFirstReleaseCurrent = OfficeUpdateChannelVFirstReleaseCurrent + _OfficeUpdateChannelPFirstReleaseDeferred = OfficeUpdateChannelVFirstReleaseDeferred +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go new file mode 100644 index 00000000..be5333f7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OnPremisesPublishingType undocumented +type OnPremisesPublishingType string + +const ( + // OnPremisesPublishingTypeVAppProxy undocumented + OnPremisesPublishingTypeVAppProxy OnPremisesPublishingType = "appProxy" + // OnPremisesPublishingTypeVExchangeOnline undocumented + OnPremisesPublishingTypeVExchangeOnline OnPremisesPublishingType = "exchangeOnline" + // OnPremisesPublishingTypeVAuthentication undocumented + OnPremisesPublishingTypeVAuthentication OnPremisesPublishingType = "authentication" + // OnPremisesPublishingTypeVProvisioning undocumented + OnPremisesPublishingTypeVProvisioning OnPremisesPublishingType = "provisioning" + // OnPremisesPublishingTypeVIntunePfx undocumented + OnPremisesPublishingTypeVIntunePfx OnPremisesPublishingType = "intunePfx" + // OnPremisesPublishingTypeVOflineDomainJoin undocumented + OnPremisesPublishingTypeVOflineDomainJoin OnPremisesPublishingType = "oflineDomainJoin" + // OnPremisesPublishingTypeVUnknownFutureValue undocumented + OnPremisesPublishingTypeVUnknownFutureValue OnPremisesPublishingType = "unknownFutureValue" +) + +var ( + // OnPremisesPublishingTypePAppProxy is a pointer to OnPremisesPublishingTypeVAppProxy + OnPremisesPublishingTypePAppProxy = &_OnPremisesPublishingTypePAppProxy + // OnPremisesPublishingTypePExchangeOnline is a pointer to OnPremisesPublishingTypeVExchangeOnline + OnPremisesPublishingTypePExchangeOnline = &_OnPremisesPublishingTypePExchangeOnline + // OnPremisesPublishingTypePAuthentication is a pointer to OnPremisesPublishingTypeVAuthentication + OnPremisesPublishingTypePAuthentication = &_OnPremisesPublishingTypePAuthentication + // OnPremisesPublishingTypePProvisioning is a pointer to OnPremisesPublishingTypeVProvisioning + OnPremisesPublishingTypePProvisioning = &_OnPremisesPublishingTypePProvisioning + // OnPremisesPublishingTypePIntunePfx is a pointer to OnPremisesPublishingTypeVIntunePfx + OnPremisesPublishingTypePIntunePfx = &_OnPremisesPublishingTypePIntunePfx + // OnPremisesPublishingTypePOflineDomainJoin is a pointer to OnPremisesPublishingTypeVOflineDomainJoin + OnPremisesPublishingTypePOflineDomainJoin = &_OnPremisesPublishingTypePOflineDomainJoin + // OnPremisesPublishingTypePUnknownFutureValue is a pointer to OnPremisesPublishingTypeVUnknownFutureValue + OnPremisesPublishingTypePUnknownFutureValue = &_OnPremisesPublishingTypePUnknownFutureValue +) + +var ( + _OnPremisesPublishingTypePAppProxy = OnPremisesPublishingTypeVAppProxy + _OnPremisesPublishingTypePExchangeOnline = OnPremisesPublishingTypeVExchangeOnline + _OnPremisesPublishingTypePAuthentication = OnPremisesPublishingTypeVAuthentication + _OnPremisesPublishingTypePProvisioning = OnPremisesPublishingTypeVProvisioning + _OnPremisesPublishingTypePIntunePfx = OnPremisesPublishingTypeVIntunePfx + _OnPremisesPublishingTypePOflineDomainJoin = OnPremisesPublishingTypeVOflineDomainJoin + _OnPremisesPublishingTypePUnknownFutureValue = OnPremisesPublishingTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go new file mode 100644 index 00000000..e372594b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go @@ -0,0 +1,126 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OnenotePatchActionType undocumented +type OnenotePatchActionType string + +const ( + // OnenotePatchActionTypeVReplace undocumented + OnenotePatchActionTypeVReplace OnenotePatchActionType = "Replace" + // OnenotePatchActionTypeVAppend undocumented + OnenotePatchActionTypeVAppend OnenotePatchActionType = "Append" + // OnenotePatchActionTypeVDelete undocumented + OnenotePatchActionTypeVDelete OnenotePatchActionType = "Delete" + // OnenotePatchActionTypeVInsert undocumented + OnenotePatchActionTypeVInsert OnenotePatchActionType = "Insert" + // OnenotePatchActionTypeVPrepend undocumented + OnenotePatchActionTypeVPrepend OnenotePatchActionType = "Prepend" +) + +var ( + // OnenotePatchActionTypePReplace is a pointer to OnenotePatchActionTypeVReplace + OnenotePatchActionTypePReplace = &_OnenotePatchActionTypePReplace + // OnenotePatchActionTypePAppend is a pointer to OnenotePatchActionTypeVAppend + OnenotePatchActionTypePAppend = &_OnenotePatchActionTypePAppend + // OnenotePatchActionTypePDelete is a pointer to OnenotePatchActionTypeVDelete + OnenotePatchActionTypePDelete = &_OnenotePatchActionTypePDelete + // OnenotePatchActionTypePInsert is a pointer to OnenotePatchActionTypeVInsert + OnenotePatchActionTypePInsert = &_OnenotePatchActionTypePInsert + // OnenotePatchActionTypePPrepend is a pointer to OnenotePatchActionTypeVPrepend + OnenotePatchActionTypePPrepend = &_OnenotePatchActionTypePPrepend +) + +var ( + _OnenotePatchActionTypePReplace = OnenotePatchActionTypeVReplace + _OnenotePatchActionTypePAppend = OnenotePatchActionTypeVAppend + _OnenotePatchActionTypePDelete = OnenotePatchActionTypeVDelete + _OnenotePatchActionTypePInsert = OnenotePatchActionTypeVInsert + _OnenotePatchActionTypePPrepend = OnenotePatchActionTypeVPrepend +) + +// OnenotePatchInsertPosition undocumented +type OnenotePatchInsertPosition string + +const ( + // OnenotePatchInsertPositionVAfter undocumented + OnenotePatchInsertPositionVAfter OnenotePatchInsertPosition = "After" + // OnenotePatchInsertPositionVBefore undocumented + OnenotePatchInsertPositionVBefore OnenotePatchInsertPosition = "Before" +) + +var ( + // OnenotePatchInsertPositionPAfter is a pointer to OnenotePatchInsertPositionVAfter + OnenotePatchInsertPositionPAfter = &_OnenotePatchInsertPositionPAfter + // OnenotePatchInsertPositionPBefore is a pointer to OnenotePatchInsertPositionVBefore + OnenotePatchInsertPositionPBefore = &_OnenotePatchInsertPositionPBefore +) + +var ( + _OnenotePatchInsertPositionPAfter = OnenotePatchInsertPositionVAfter + _OnenotePatchInsertPositionPBefore = OnenotePatchInsertPositionVBefore +) + +// OnenoteSourceService undocumented +type OnenoteSourceService string + +const ( + // OnenoteSourceServiceVUnknown undocumented + OnenoteSourceServiceVUnknown OnenoteSourceService = "Unknown" + // OnenoteSourceServiceVOneDrive undocumented + OnenoteSourceServiceVOneDrive OnenoteSourceService = "OneDrive" + // OnenoteSourceServiceVOneDriveForBusiness undocumented + OnenoteSourceServiceVOneDriveForBusiness OnenoteSourceService = "OneDriveForBusiness" + // OnenoteSourceServiceVOnPremOneDriveForBusiness undocumented + OnenoteSourceServiceVOnPremOneDriveForBusiness OnenoteSourceService = "OnPremOneDriveForBusiness" +) + +var ( + // OnenoteSourceServicePUnknown is a pointer to OnenoteSourceServiceVUnknown + OnenoteSourceServicePUnknown = &_OnenoteSourceServicePUnknown + // OnenoteSourceServicePOneDrive is a pointer to OnenoteSourceServiceVOneDrive + OnenoteSourceServicePOneDrive = &_OnenoteSourceServicePOneDrive + // OnenoteSourceServicePOneDriveForBusiness is a pointer to OnenoteSourceServiceVOneDriveForBusiness + OnenoteSourceServicePOneDriveForBusiness = &_OnenoteSourceServicePOneDriveForBusiness + // OnenoteSourceServicePOnPremOneDriveForBusiness is a pointer to OnenoteSourceServiceVOnPremOneDriveForBusiness + OnenoteSourceServicePOnPremOneDriveForBusiness = &_OnenoteSourceServicePOnPremOneDriveForBusiness +) + +var ( + _OnenoteSourceServicePUnknown = OnenoteSourceServiceVUnknown + _OnenoteSourceServicePOneDrive = OnenoteSourceServiceVOneDrive + _OnenoteSourceServicePOneDriveForBusiness = OnenoteSourceServiceVOneDriveForBusiness + _OnenoteSourceServicePOnPremOneDriveForBusiness = OnenoteSourceServiceVOnPremOneDriveForBusiness +) + +// OnenoteUserRole undocumented +type OnenoteUserRole string + +const ( + // OnenoteUserRoleVOwner undocumented + OnenoteUserRoleVOwner OnenoteUserRole = "Owner" + // OnenoteUserRoleVContributor undocumented + OnenoteUserRoleVContributor OnenoteUserRole = "Contributor" + // OnenoteUserRoleVReader undocumented + OnenoteUserRoleVReader OnenoteUserRole = "Reader" + // OnenoteUserRoleVNone undocumented + OnenoteUserRoleVNone OnenoteUserRole = "None" +) + +var ( + // OnenoteUserRolePOwner is a pointer to OnenoteUserRoleVOwner + OnenoteUserRolePOwner = &_OnenoteUserRolePOwner + // OnenoteUserRolePContributor is a pointer to OnenoteUserRoleVContributor + OnenoteUserRolePContributor = &_OnenoteUserRolePContributor + // OnenoteUserRolePReader is a pointer to OnenoteUserRoleVReader + OnenoteUserRolePReader = &_OnenoteUserRolePReader + // OnenoteUserRolePNone is a pointer to OnenoteUserRoleVNone + OnenoteUserRolePNone = &_OnenoteUserRolePNone +) + +var ( + _OnenoteUserRolePOwner = OnenoteUserRoleVOwner + _OnenoteUserRolePContributor = OnenoteUserRoleVContributor + _OnenoteUserRolePReader = OnenoteUserRoleVReader + _OnenoteUserRolePNone = OnenoteUserRoleVNone +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go new file mode 100644 index 00000000..29e67d56 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OnlineMeetingProviderType undocumented +type OnlineMeetingProviderType string + +const ( + // OnlineMeetingProviderTypeVUnknown undocumented + OnlineMeetingProviderTypeVUnknown OnlineMeetingProviderType = "unknown" + // OnlineMeetingProviderTypeVSkypeForBusiness undocumented + OnlineMeetingProviderTypeVSkypeForBusiness OnlineMeetingProviderType = "skypeForBusiness" + // OnlineMeetingProviderTypeVSkypeForConsumer undocumented + OnlineMeetingProviderTypeVSkypeForConsumer OnlineMeetingProviderType = "skypeForConsumer" + // OnlineMeetingProviderTypeVTeamsForBusiness undocumented + OnlineMeetingProviderTypeVTeamsForBusiness OnlineMeetingProviderType = "teamsForBusiness" +) + +var ( + // OnlineMeetingProviderTypePUnknown is a pointer to OnlineMeetingProviderTypeVUnknown + OnlineMeetingProviderTypePUnknown = &_OnlineMeetingProviderTypePUnknown + // OnlineMeetingProviderTypePSkypeForBusiness is a pointer to OnlineMeetingProviderTypeVSkypeForBusiness + OnlineMeetingProviderTypePSkypeForBusiness = &_OnlineMeetingProviderTypePSkypeForBusiness + // OnlineMeetingProviderTypePSkypeForConsumer is a pointer to OnlineMeetingProviderTypeVSkypeForConsumer + OnlineMeetingProviderTypePSkypeForConsumer = &_OnlineMeetingProviderTypePSkypeForConsumer + // OnlineMeetingProviderTypePTeamsForBusiness is a pointer to OnlineMeetingProviderTypeVTeamsForBusiness + OnlineMeetingProviderTypePTeamsForBusiness = &_OnlineMeetingProviderTypePTeamsForBusiness +) + +var ( + _OnlineMeetingProviderTypePUnknown = OnlineMeetingProviderTypeVUnknown + _OnlineMeetingProviderTypePSkypeForBusiness = OnlineMeetingProviderTypeVSkypeForBusiness + _OnlineMeetingProviderTypePSkypeForConsumer = OnlineMeetingProviderTypeVSkypeForConsumer + _OnlineMeetingProviderTypePTeamsForBusiness = OnlineMeetingProviderTypeVTeamsForBusiness +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go new file mode 100644 index 00000000..4994b700 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OperationResult undocumented +type OperationResult string + +const ( + // OperationResultVSuccess undocumented + OperationResultVSuccess OperationResult = "success" + // OperationResultVFailure undocumented + OperationResultVFailure OperationResult = "failure" + // OperationResultVTimeout undocumented + OperationResultVTimeout OperationResult = "timeout" + // OperationResultVUnknownFutureValue undocumented + OperationResultVUnknownFutureValue OperationResult = "unknownFutureValue" +) + +var ( + // OperationResultPSuccess is a pointer to OperationResultVSuccess + OperationResultPSuccess = &_OperationResultPSuccess + // OperationResultPFailure is a pointer to OperationResultVFailure + OperationResultPFailure = &_OperationResultPFailure + // OperationResultPTimeout is a pointer to OperationResultVTimeout + OperationResultPTimeout = &_OperationResultPTimeout + // OperationResultPUnknownFutureValue is a pointer to OperationResultVUnknownFutureValue + OperationResultPUnknownFutureValue = &_OperationResultPUnknownFutureValue +) + +var ( + _OperationResultPSuccess = OperationResultVSuccess + _OperationResultPFailure = OperationResultVFailure + _OperationResultPTimeout = OperationResultVTimeout + _OperationResultPUnknownFutureValue = OperationResultVUnknownFutureValue +) + +// OperationStatus undocumented +type OperationStatus string + +const ( + // OperationStatusVNotStarted undocumented + OperationStatusVNotStarted OperationStatus = "NotStarted" + // OperationStatusVRunning undocumented + OperationStatusVRunning OperationStatus = "Running" + // OperationStatusVCompleted undocumented + OperationStatusVCompleted OperationStatus = "Completed" + // OperationStatusVFailed undocumented + OperationStatusVFailed OperationStatus = "Failed" +) + +var ( + // OperationStatusPNotStarted is a pointer to OperationStatusVNotStarted + OperationStatusPNotStarted = &_OperationStatusPNotStarted + // OperationStatusPRunning is a pointer to OperationStatusVRunning + OperationStatusPRunning = &_OperationStatusPRunning + // OperationStatusPCompleted is a pointer to OperationStatusVCompleted + OperationStatusPCompleted = &_OperationStatusPCompleted + // OperationStatusPFailed is a pointer to OperationStatusVFailed + OperationStatusPFailed = &_OperationStatusPFailed +) + +var ( + _OperationStatusPNotStarted = OperationStatusVNotStarted + _OperationStatusPRunning = OperationStatusVRunning + _OperationStatusPCompleted = OperationStatusVCompleted + _OperationStatusPFailed = OperationStatusVFailed +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go new file mode 100644 index 00000000..0e71e090 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OverrideOption undocumented +type OverrideOption string + +const ( + // OverrideOptionVNotAllowed undocumented + OverrideOptionVNotAllowed OverrideOption = "notAllowed" + // OverrideOptionVAllowFalsePositiveOverride undocumented + OverrideOptionVAllowFalsePositiveOverride OverrideOption = "allowFalsePositiveOverride" + // OverrideOptionVAllowWithJustification undocumented + OverrideOptionVAllowWithJustification OverrideOption = "allowWithJustification" + // OverrideOptionVAllowWithoutJustification undocumented + OverrideOptionVAllowWithoutJustification OverrideOption = "allowWithoutJustification" +) + +var ( + // OverrideOptionPNotAllowed is a pointer to OverrideOptionVNotAllowed + OverrideOptionPNotAllowed = &_OverrideOptionPNotAllowed + // OverrideOptionPAllowFalsePositiveOverride is a pointer to OverrideOptionVAllowFalsePositiveOverride + OverrideOptionPAllowFalsePositiveOverride = &_OverrideOptionPAllowFalsePositiveOverride + // OverrideOptionPAllowWithJustification is a pointer to OverrideOptionVAllowWithJustification + OverrideOptionPAllowWithJustification = &_OverrideOptionPAllowWithJustification + // OverrideOptionPAllowWithoutJustification is a pointer to OverrideOptionVAllowWithoutJustification + OverrideOptionPAllowWithoutJustification = &_OverrideOptionPAllowWithoutJustification +) + +var ( + _OverrideOptionPNotAllowed = OverrideOptionVNotAllowed + _OverrideOptionPAllowFalsePositiveOverride = OverrideOptionVAllowFalsePositiveOverride + _OverrideOptionPAllowWithJustification = OverrideOptionVAllowWithJustification + _OverrideOptionPAllowWithoutJustification = OverrideOptionVAllowWithoutJustification +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go new file mode 100644 index 00000000..3c66a161 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OwnerType undocumented +type OwnerType string + +const ( + // OwnerTypeVUnknown undocumented + OwnerTypeVUnknown OwnerType = "unknown" + // OwnerTypeVCompany undocumented + OwnerTypeVCompany OwnerType = "company" + // OwnerTypeVPersonal undocumented + OwnerTypeVPersonal OwnerType = "personal" +) + +var ( + // OwnerTypePUnknown is a pointer to OwnerTypeVUnknown + OwnerTypePUnknown = &_OwnerTypePUnknown + // OwnerTypePCompany is a pointer to OwnerTypeVCompany + OwnerTypePCompany = &_OwnerTypePCompany + // OwnerTypePPersonal is a pointer to OwnerTypeVPersonal + OwnerTypePPersonal = &_OwnerTypePPersonal +) + +var ( + _OwnerTypePUnknown = OwnerTypeVUnknown + _OwnerTypePCompany = OwnerTypeVCompany + _OwnerTypePPersonal = OwnerTypeVPersonal +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go new file mode 100644 index 00000000..0c290ce9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PageOrientation undocumented +type PageOrientation string + +const ( + // PageOrientationVHorizontal undocumented + PageOrientationVHorizontal PageOrientation = "horizontal" + // PageOrientationVDiagonal undocumented + PageOrientationVDiagonal PageOrientation = "diagonal" +) + +var ( + // PageOrientationPHorizontal is a pointer to PageOrientationVHorizontal + PageOrientationPHorizontal = &_PageOrientationPHorizontal + // PageOrientationPDiagonal is a pointer to PageOrientationVDiagonal + PageOrientationPDiagonal = &_PageOrientationPDiagonal +) + +var ( + _PageOrientationPHorizontal = PageOrientationVHorizontal + _PageOrientationPDiagonal = PageOrientationVDiagonal +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go new file mode 100644 index 00000000..b3938cfd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PermissionClassificationType undocumented +type PermissionClassificationType string + +const ( + // PermissionClassificationTypeVLow undocumented + PermissionClassificationTypeVLow PermissionClassificationType = "low" + // PermissionClassificationTypeVMedium undocumented + PermissionClassificationTypeVMedium PermissionClassificationType = "medium" + // PermissionClassificationTypeVHigh undocumented + PermissionClassificationTypeVHigh PermissionClassificationType = "high" + // PermissionClassificationTypeVUnknownFutureValue undocumented + PermissionClassificationTypeVUnknownFutureValue PermissionClassificationType = "unknownFutureValue" +) + +var ( + // PermissionClassificationTypePLow is a pointer to PermissionClassificationTypeVLow + PermissionClassificationTypePLow = &_PermissionClassificationTypePLow + // PermissionClassificationTypePMedium is a pointer to PermissionClassificationTypeVMedium + PermissionClassificationTypePMedium = &_PermissionClassificationTypePMedium + // PermissionClassificationTypePHigh is a pointer to PermissionClassificationTypeVHigh + PermissionClassificationTypePHigh = &_PermissionClassificationTypePHigh + // PermissionClassificationTypePUnknownFutureValue is a pointer to PermissionClassificationTypeVUnknownFutureValue + PermissionClassificationTypePUnknownFutureValue = &_PermissionClassificationTypePUnknownFutureValue +) + +var ( + _PermissionClassificationTypePLow = PermissionClassificationTypeVLow + _PermissionClassificationTypePMedium = PermissionClassificationTypeVMedium + _PermissionClassificationTypePHigh = PermissionClassificationTypeVHigh + _PermissionClassificationTypePUnknownFutureValue = PermissionClassificationTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go new file mode 100644 index 00000000..961b78ad --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PersistentBrowserSessionMode undocumented +type PersistentBrowserSessionMode string + +const ( + // PersistentBrowserSessionModeVAlways undocumented + PersistentBrowserSessionModeVAlways PersistentBrowserSessionMode = "always" + // PersistentBrowserSessionModeVNever undocumented + PersistentBrowserSessionModeVNever PersistentBrowserSessionMode = "never" +) + +var ( + // PersistentBrowserSessionModePAlways is a pointer to PersistentBrowserSessionModeVAlways + PersistentBrowserSessionModePAlways = &_PersistentBrowserSessionModePAlways + // PersistentBrowserSessionModePNever is a pointer to PersistentBrowserSessionModeVNever + PersistentBrowserSessionModePNever = &_PersistentBrowserSessionModePNever +) + +var ( + _PersistentBrowserSessionModePAlways = PersistentBrowserSessionModeVAlways + _PersistentBrowserSessionModePNever = PersistentBrowserSessionModeVNever +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go new file mode 100644 index 00000000..b57e6f6f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go @@ -0,0 +1,95 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PersonRelationship undocumented +type PersonRelationship string + +const ( + // PersonRelationshipVManager undocumented + PersonRelationshipVManager PersonRelationship = "manager" + // PersonRelationshipVColleague undocumented + PersonRelationshipVColleague PersonRelationship = "colleague" + // PersonRelationshipVDirectReport undocumented + PersonRelationshipVDirectReport PersonRelationship = "directReport" + // PersonRelationshipVDotLineReport undocumented + PersonRelationshipVDotLineReport PersonRelationship = "dotLineReport" + // PersonRelationshipVAssistant undocumented + PersonRelationshipVAssistant PersonRelationship = "assistant" + // PersonRelationshipVDotLineManager undocumented + PersonRelationshipVDotLineManager PersonRelationship = "dotLineManager" + // PersonRelationshipVAlternateContact undocumented + PersonRelationshipVAlternateContact PersonRelationship = "alternateContact" + // PersonRelationshipVFriend undocumented + PersonRelationshipVFriend PersonRelationship = "friend" + // PersonRelationshipVSpouse undocumented + PersonRelationshipVSpouse PersonRelationship = "spouse" + // PersonRelationshipVSibling undocumented + PersonRelationshipVSibling PersonRelationship = "sibling" + // PersonRelationshipVChild undocumented + PersonRelationshipVChild PersonRelationship = "child" + // PersonRelationshipVParent undocumented + PersonRelationshipVParent PersonRelationship = "parent" + // PersonRelationshipVSponsor undocumented + PersonRelationshipVSponsor PersonRelationship = "sponsor" + // PersonRelationshipVEmergencyContact undocumented + PersonRelationshipVEmergencyContact PersonRelationship = "emergencyContact" + // PersonRelationshipVOther undocumented + PersonRelationshipVOther PersonRelationship = "other" + // PersonRelationshipVUnknownFutureValue undocumented + PersonRelationshipVUnknownFutureValue PersonRelationship = "unknownFutureValue" +) + +var ( + // PersonRelationshipPManager is a pointer to PersonRelationshipVManager + PersonRelationshipPManager = &_PersonRelationshipPManager + // PersonRelationshipPColleague is a pointer to PersonRelationshipVColleague + PersonRelationshipPColleague = &_PersonRelationshipPColleague + // PersonRelationshipPDirectReport is a pointer to PersonRelationshipVDirectReport + PersonRelationshipPDirectReport = &_PersonRelationshipPDirectReport + // PersonRelationshipPDotLineReport is a pointer to PersonRelationshipVDotLineReport + PersonRelationshipPDotLineReport = &_PersonRelationshipPDotLineReport + // PersonRelationshipPAssistant is a pointer to PersonRelationshipVAssistant + PersonRelationshipPAssistant = &_PersonRelationshipPAssistant + // PersonRelationshipPDotLineManager is a pointer to PersonRelationshipVDotLineManager + PersonRelationshipPDotLineManager = &_PersonRelationshipPDotLineManager + // PersonRelationshipPAlternateContact is a pointer to PersonRelationshipVAlternateContact + PersonRelationshipPAlternateContact = &_PersonRelationshipPAlternateContact + // PersonRelationshipPFriend is a pointer to PersonRelationshipVFriend + PersonRelationshipPFriend = &_PersonRelationshipPFriend + // PersonRelationshipPSpouse is a pointer to PersonRelationshipVSpouse + PersonRelationshipPSpouse = &_PersonRelationshipPSpouse + // PersonRelationshipPSibling is a pointer to PersonRelationshipVSibling + PersonRelationshipPSibling = &_PersonRelationshipPSibling + // PersonRelationshipPChild is a pointer to PersonRelationshipVChild + PersonRelationshipPChild = &_PersonRelationshipPChild + // PersonRelationshipPParent is a pointer to PersonRelationshipVParent + PersonRelationshipPParent = &_PersonRelationshipPParent + // PersonRelationshipPSponsor is a pointer to PersonRelationshipVSponsor + PersonRelationshipPSponsor = &_PersonRelationshipPSponsor + // PersonRelationshipPEmergencyContact is a pointer to PersonRelationshipVEmergencyContact + PersonRelationshipPEmergencyContact = &_PersonRelationshipPEmergencyContact + // PersonRelationshipPOther is a pointer to PersonRelationshipVOther + PersonRelationshipPOther = &_PersonRelationshipPOther + // PersonRelationshipPUnknownFutureValue is a pointer to PersonRelationshipVUnknownFutureValue + PersonRelationshipPUnknownFutureValue = &_PersonRelationshipPUnknownFutureValue +) + +var ( + _PersonRelationshipPManager = PersonRelationshipVManager + _PersonRelationshipPColleague = PersonRelationshipVColleague + _PersonRelationshipPDirectReport = PersonRelationshipVDirectReport + _PersonRelationshipPDotLineReport = PersonRelationshipVDotLineReport + _PersonRelationshipPAssistant = PersonRelationshipVAssistant + _PersonRelationshipPDotLineManager = PersonRelationshipVDotLineManager + _PersonRelationshipPAlternateContact = PersonRelationshipVAlternateContact + _PersonRelationshipPFriend = PersonRelationshipVFriend + _PersonRelationshipPSpouse = PersonRelationshipVSpouse + _PersonRelationshipPSibling = PersonRelationshipVSibling + _PersonRelationshipPChild = PersonRelationshipVChild + _PersonRelationshipPParent = PersonRelationshipVParent + _PersonRelationshipPSponsor = PersonRelationshipVSponsor + _PersonRelationshipPEmergencyContact = PersonRelationshipVEmergencyContact + _PersonRelationshipPOther = PersonRelationshipVOther + _PersonRelationshipPUnknownFutureValue = PersonRelationshipVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go new file mode 100644 index 00000000..4beafb6c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PhoneType undocumented +type PhoneType string + +const ( + // PhoneTypeVHome undocumented + PhoneTypeVHome PhoneType = "home" + // PhoneTypeVBusiness undocumented + PhoneTypeVBusiness PhoneType = "business" + // PhoneTypeVMobile undocumented + PhoneTypeVMobile PhoneType = "mobile" + // PhoneTypeVOther undocumented + PhoneTypeVOther PhoneType = "other" + // PhoneTypeVAssistant undocumented + PhoneTypeVAssistant PhoneType = "assistant" + // PhoneTypeVHomeFax undocumented + PhoneTypeVHomeFax PhoneType = "homeFax" + // PhoneTypeVBusinessFax undocumented + PhoneTypeVBusinessFax PhoneType = "businessFax" + // PhoneTypeVOtherFax undocumented + PhoneTypeVOtherFax PhoneType = "otherFax" + // PhoneTypeVPager undocumented + PhoneTypeVPager PhoneType = "pager" + // PhoneTypeVRadio undocumented + PhoneTypeVRadio PhoneType = "radio" +) + +var ( + // PhoneTypePHome is a pointer to PhoneTypeVHome + PhoneTypePHome = &_PhoneTypePHome + // PhoneTypePBusiness is a pointer to PhoneTypeVBusiness + PhoneTypePBusiness = &_PhoneTypePBusiness + // PhoneTypePMobile is a pointer to PhoneTypeVMobile + PhoneTypePMobile = &_PhoneTypePMobile + // PhoneTypePOther is a pointer to PhoneTypeVOther + PhoneTypePOther = &_PhoneTypePOther + // PhoneTypePAssistant is a pointer to PhoneTypeVAssistant + PhoneTypePAssistant = &_PhoneTypePAssistant + // PhoneTypePHomeFax is a pointer to PhoneTypeVHomeFax + PhoneTypePHomeFax = &_PhoneTypePHomeFax + // PhoneTypePBusinessFax is a pointer to PhoneTypeVBusinessFax + PhoneTypePBusinessFax = &_PhoneTypePBusinessFax + // PhoneTypePOtherFax is a pointer to PhoneTypeVOtherFax + PhoneTypePOtherFax = &_PhoneTypePOtherFax + // PhoneTypePPager is a pointer to PhoneTypeVPager + PhoneTypePPager = &_PhoneTypePPager + // PhoneTypePRadio is a pointer to PhoneTypeVRadio + PhoneTypePRadio = &_PhoneTypePRadio +) + +var ( + _PhoneTypePHome = PhoneTypeVHome + _PhoneTypePBusiness = PhoneTypeVBusiness + _PhoneTypePMobile = PhoneTypeVMobile + _PhoneTypePOther = PhoneTypeVOther + _PhoneTypePAssistant = PhoneTypeVAssistant + _PhoneTypePHomeFax = PhoneTypeVHomeFax + _PhoneTypePBusinessFax = PhoneTypeVBusinessFax + _PhoneTypePOtherFax = PhoneTypeVOtherFax + _PhoneTypePPager = PhoneTypeVPager + _PhoneTypePRadio = PhoneTypeVRadio +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go new file mode 100644 index 00000000..6fd0b596 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PhysicalAddressType undocumented +type PhysicalAddressType string + +const ( + // PhysicalAddressTypeVUnknown undocumented + PhysicalAddressTypeVUnknown PhysicalAddressType = "unknown" + // PhysicalAddressTypeVHome undocumented + PhysicalAddressTypeVHome PhysicalAddressType = "home" + // PhysicalAddressTypeVBusiness undocumented + PhysicalAddressTypeVBusiness PhysicalAddressType = "business" + // PhysicalAddressTypeVOther undocumented + PhysicalAddressTypeVOther PhysicalAddressType = "other" +) + +var ( + // PhysicalAddressTypePUnknown is a pointer to PhysicalAddressTypeVUnknown + PhysicalAddressTypePUnknown = &_PhysicalAddressTypePUnknown + // PhysicalAddressTypePHome is a pointer to PhysicalAddressTypeVHome + PhysicalAddressTypePHome = &_PhysicalAddressTypePHome + // PhysicalAddressTypePBusiness is a pointer to PhysicalAddressTypeVBusiness + PhysicalAddressTypePBusiness = &_PhysicalAddressTypePBusiness + // PhysicalAddressTypePOther is a pointer to PhysicalAddressTypeVOther + PhysicalAddressTypePOther = &_PhysicalAddressTypePOther +) + +var ( + _PhysicalAddressTypePUnknown = PhysicalAddressTypeVUnknown + _PhysicalAddressTypePHome = PhysicalAddressTypeVHome + _PhysicalAddressTypePBusiness = PhysicalAddressTypeVBusiness + _PhysicalAddressTypePOther = PhysicalAddressTypeVOther +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go new file mode 100644 index 00000000..a3425ade --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PlaceType undocumented +type PlaceType string + +const ( + // PlaceTypeVUnknown undocumented + PlaceTypeVUnknown PlaceType = "unknown" + // PlaceTypeVRoom undocumented + PlaceTypeVRoom PlaceType = "room" + // PlaceTypeVRoomList undocumented + PlaceTypeVRoomList PlaceType = "roomList" + // PlaceTypeVPublicPlace undocumented + PlaceTypeVPublicPlace PlaceType = "publicPlace" + // PlaceTypeVPersonalPlace undocumented + PlaceTypeVPersonalPlace PlaceType = "personalPlace" +) + +var ( + // PlaceTypePUnknown is a pointer to PlaceTypeVUnknown + PlaceTypePUnknown = &_PlaceTypePUnknown + // PlaceTypePRoom is a pointer to PlaceTypeVRoom + PlaceTypePRoom = &_PlaceTypePRoom + // PlaceTypePRoomList is a pointer to PlaceTypeVRoomList + PlaceTypePRoomList = &_PlaceTypePRoomList + // PlaceTypePPublicPlace is a pointer to PlaceTypeVPublicPlace + PlaceTypePPublicPlace = &_PlaceTypePPublicPlace + // PlaceTypePPersonalPlace is a pointer to PlaceTypeVPersonalPlace + PlaceTypePPersonalPlace = &_PlaceTypePPersonalPlace +) + +var ( + _PlaceTypePUnknown = PlaceTypeVUnknown + _PlaceTypePRoom = PlaceTypeVRoom + _PlaceTypePRoomList = PlaceTypeVRoomList + _PlaceTypePPublicPlace = PlaceTypeVPublicPlace + _PlaceTypePPersonalPlace = PlaceTypeVPersonalPlace +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go new file mode 100644 index 00000000..97d78320 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PlannerPreviewType undocumented +type PlannerPreviewType string + +const ( + // PlannerPreviewTypeVAutomatic undocumented + PlannerPreviewTypeVAutomatic PlannerPreviewType = "automatic" + // PlannerPreviewTypeVNoPreview undocumented + PlannerPreviewTypeVNoPreview PlannerPreviewType = "noPreview" + // PlannerPreviewTypeVChecklist undocumented + PlannerPreviewTypeVChecklist PlannerPreviewType = "checklist" + // PlannerPreviewTypeVDescription undocumented + PlannerPreviewTypeVDescription PlannerPreviewType = "description" + // PlannerPreviewTypeVReference undocumented + PlannerPreviewTypeVReference PlannerPreviewType = "reference" +) + +var ( + // PlannerPreviewTypePAutomatic is a pointer to PlannerPreviewTypeVAutomatic + PlannerPreviewTypePAutomatic = &_PlannerPreviewTypePAutomatic + // PlannerPreviewTypePNoPreview is a pointer to PlannerPreviewTypeVNoPreview + PlannerPreviewTypePNoPreview = &_PlannerPreviewTypePNoPreview + // PlannerPreviewTypePChecklist is a pointer to PlannerPreviewTypeVChecklist + PlannerPreviewTypePChecklist = &_PlannerPreviewTypePChecklist + // PlannerPreviewTypePDescription is a pointer to PlannerPreviewTypeVDescription + PlannerPreviewTypePDescription = &_PlannerPreviewTypePDescription + // PlannerPreviewTypePReference is a pointer to PlannerPreviewTypeVReference + PlannerPreviewTypePReference = &_PlannerPreviewTypePReference +) + +var ( + _PlannerPreviewTypePAutomatic = PlannerPreviewTypeVAutomatic + _PlannerPreviewTypePNoPreview = PlannerPreviewTypeVNoPreview + _PlannerPreviewTypePChecklist = PlannerPreviewTypeVChecklist + _PlannerPreviewTypePDescription = PlannerPreviewTypeVDescription + _PlannerPreviewTypePReference = PlannerPreviewTypeVReference +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go new file mode 100644 index 00000000..797ce7f2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Platform undocumented +type Platform string + +const ( + // PlatformVUnknown undocumented + PlatformVUnknown Platform = "unknown" + // PlatformVIOS undocumented + PlatformVIOS Platform = "ios" + // PlatformVAndroid undocumented + PlatformVAndroid Platform = "android" + // PlatformVWindows undocumented + PlatformVWindows Platform = "windows" + // PlatformVWindowsMobile undocumented + PlatformVWindowsMobile Platform = "windowsMobile" + // PlatformVMacOS undocumented + PlatformVMacOS Platform = "macOS" +) + +var ( + // PlatformPUnknown is a pointer to PlatformVUnknown + PlatformPUnknown = &_PlatformPUnknown + // PlatformPIOS is a pointer to PlatformVIOS + PlatformPIOS = &_PlatformPIOS + // PlatformPAndroid is a pointer to PlatformVAndroid + PlatformPAndroid = &_PlatformPAndroid + // PlatformPWindows is a pointer to PlatformVWindows + PlatformPWindows = &_PlatformPWindows + // PlatformPWindowsMobile is a pointer to PlatformVWindowsMobile + PlatformPWindowsMobile = &_PlatformPWindowsMobile + // PlatformPMacOS is a pointer to PlatformVMacOS + PlatformPMacOS = &_PlatformPMacOS +) + +var ( + _PlatformPUnknown = PlatformVUnknown + _PlatformPIOS = PlatformVIOS + _PlatformPAndroid = PlatformVAndroid + _PlatformPWindows = PlatformVWindows + _PlatformPWindowsMobile = PlatformVWindowsMobile + _PlatformPMacOS = PlatformVMacOS +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go new file mode 100644 index 00000000..46b3d13a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PlayPromptCompletionReason undocumented +type PlayPromptCompletionReason string + +const ( + // PlayPromptCompletionReasonVUnknown undocumented + PlayPromptCompletionReasonVUnknown PlayPromptCompletionReason = "unknown" + // PlayPromptCompletionReasonVCompletedSuccessfully undocumented + PlayPromptCompletionReasonVCompletedSuccessfully PlayPromptCompletionReason = "completedSuccessfully" + // PlayPromptCompletionReasonVMediaOperationCanceled undocumented + PlayPromptCompletionReasonVMediaOperationCanceled PlayPromptCompletionReason = "mediaOperationCanceled" + // PlayPromptCompletionReasonVUnknownFutureValue undocumented + PlayPromptCompletionReasonVUnknownFutureValue PlayPromptCompletionReason = "unknownFutureValue" +) + +var ( + // PlayPromptCompletionReasonPUnknown is a pointer to PlayPromptCompletionReasonVUnknown + PlayPromptCompletionReasonPUnknown = &_PlayPromptCompletionReasonPUnknown + // PlayPromptCompletionReasonPCompletedSuccessfully is a pointer to PlayPromptCompletionReasonVCompletedSuccessfully + PlayPromptCompletionReasonPCompletedSuccessfully = &_PlayPromptCompletionReasonPCompletedSuccessfully + // PlayPromptCompletionReasonPMediaOperationCanceled is a pointer to PlayPromptCompletionReasonVMediaOperationCanceled + PlayPromptCompletionReasonPMediaOperationCanceled = &_PlayPromptCompletionReasonPMediaOperationCanceled + // PlayPromptCompletionReasonPUnknownFutureValue is a pointer to PlayPromptCompletionReasonVUnknownFutureValue + PlayPromptCompletionReasonPUnknownFutureValue = &_PlayPromptCompletionReasonPUnknownFutureValue +) + +var ( + _PlayPromptCompletionReasonPUnknown = PlayPromptCompletionReasonVUnknown + _PlayPromptCompletionReasonPCompletedSuccessfully = PlayPromptCompletionReasonVCompletedSuccessfully + _PlayPromptCompletionReasonPMediaOperationCanceled = PlayPromptCompletionReasonVMediaOperationCanceled + _PlayPromptCompletionReasonPUnknownFutureValue = PlayPromptCompletionReasonVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go new file mode 100644 index 00000000..66d4f20e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go @@ -0,0 +1,102 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PolicyPlatformType undocumented +type PolicyPlatformType string + +const ( + // PolicyPlatformTypeVAndroid undocumented + PolicyPlatformTypeVAndroid PolicyPlatformType = "android" + // PolicyPlatformTypeVAndroidForWork undocumented + PolicyPlatformTypeVAndroidForWork PolicyPlatformType = "androidForWork" + // PolicyPlatformTypeVIOS undocumented + PolicyPlatformTypeVIOS PolicyPlatformType = "iOS" + // PolicyPlatformTypeVMacOS undocumented + PolicyPlatformTypeVMacOS PolicyPlatformType = "macOS" + // PolicyPlatformTypeVWindowsPhone81 undocumented + PolicyPlatformTypeVWindowsPhone81 PolicyPlatformType = "windowsPhone81" + // PolicyPlatformTypeVWindows81AndLater undocumented + PolicyPlatformTypeVWindows81AndLater PolicyPlatformType = "windows81AndLater" + // PolicyPlatformTypeVWindows10AndLater undocumented + PolicyPlatformTypeVWindows10AndLater PolicyPlatformType = "windows10AndLater" + // PolicyPlatformTypeVAndroidWorkProfile undocumented + PolicyPlatformTypeVAndroidWorkProfile PolicyPlatformType = "androidWorkProfile" + // PolicyPlatformTypeVAll undocumented + PolicyPlatformTypeVAll PolicyPlatformType = "all" +) + +var ( + // PolicyPlatformTypePAndroid is a pointer to PolicyPlatformTypeVAndroid + PolicyPlatformTypePAndroid = &_PolicyPlatformTypePAndroid + // PolicyPlatformTypePAndroidForWork is a pointer to PolicyPlatformTypeVAndroidForWork + PolicyPlatformTypePAndroidForWork = &_PolicyPlatformTypePAndroidForWork + // PolicyPlatformTypePIOS is a pointer to PolicyPlatformTypeVIOS + PolicyPlatformTypePIOS = &_PolicyPlatformTypePIOS + // PolicyPlatformTypePMacOS is a pointer to PolicyPlatformTypeVMacOS + PolicyPlatformTypePMacOS = &_PolicyPlatformTypePMacOS + // PolicyPlatformTypePWindowsPhone81 is a pointer to PolicyPlatformTypeVWindowsPhone81 + PolicyPlatformTypePWindowsPhone81 = &_PolicyPlatformTypePWindowsPhone81 + // PolicyPlatformTypePWindows81AndLater is a pointer to PolicyPlatformTypeVWindows81AndLater + PolicyPlatformTypePWindows81AndLater = &_PolicyPlatformTypePWindows81AndLater + // PolicyPlatformTypePWindows10AndLater is a pointer to PolicyPlatformTypeVWindows10AndLater + PolicyPlatformTypePWindows10AndLater = &_PolicyPlatformTypePWindows10AndLater + // PolicyPlatformTypePAndroidWorkProfile is a pointer to PolicyPlatformTypeVAndroidWorkProfile + PolicyPlatformTypePAndroidWorkProfile = &_PolicyPlatformTypePAndroidWorkProfile + // PolicyPlatformTypePAll is a pointer to PolicyPlatformTypeVAll + PolicyPlatformTypePAll = &_PolicyPlatformTypePAll +) + +var ( + _PolicyPlatformTypePAndroid = PolicyPlatformTypeVAndroid + _PolicyPlatformTypePAndroidForWork = PolicyPlatformTypeVAndroidForWork + _PolicyPlatformTypePIOS = PolicyPlatformTypeVIOS + _PolicyPlatformTypePMacOS = PolicyPlatformTypeVMacOS + _PolicyPlatformTypePWindowsPhone81 = PolicyPlatformTypeVWindowsPhone81 + _PolicyPlatformTypePWindows81AndLater = PolicyPlatformTypeVWindows81AndLater + _PolicyPlatformTypePWindows10AndLater = PolicyPlatformTypeVWindows10AndLater + _PolicyPlatformTypePAndroidWorkProfile = PolicyPlatformTypeVAndroidWorkProfile + _PolicyPlatformTypePAll = PolicyPlatformTypeVAll +) + +// PolicySetStatus undocumented +type PolicySetStatus string + +const ( + // PolicySetStatusVUnknown undocumented + PolicySetStatusVUnknown PolicySetStatus = "unknown" + // PolicySetStatusVValidating undocumented + PolicySetStatusVValidating PolicySetStatus = "validating" + // PolicySetStatusVPartialSuccess undocumented + PolicySetStatusVPartialSuccess PolicySetStatus = "partialSuccess" + // PolicySetStatusVSuccess undocumented + PolicySetStatusVSuccess PolicySetStatus = "success" + // PolicySetStatusVError undocumented + PolicySetStatusVError PolicySetStatus = "error" + // PolicySetStatusVNotAssigned undocumented + PolicySetStatusVNotAssigned PolicySetStatus = "notAssigned" +) + +var ( + // PolicySetStatusPUnknown is a pointer to PolicySetStatusVUnknown + PolicySetStatusPUnknown = &_PolicySetStatusPUnknown + // PolicySetStatusPValidating is a pointer to PolicySetStatusVValidating + PolicySetStatusPValidating = &_PolicySetStatusPValidating + // PolicySetStatusPPartialSuccess is a pointer to PolicySetStatusVPartialSuccess + PolicySetStatusPPartialSuccess = &_PolicySetStatusPPartialSuccess + // PolicySetStatusPSuccess is a pointer to PolicySetStatusVSuccess + PolicySetStatusPSuccess = &_PolicySetStatusPSuccess + // PolicySetStatusPError is a pointer to PolicySetStatusVError + PolicySetStatusPError = &_PolicySetStatusPError + // PolicySetStatusPNotAssigned is a pointer to PolicySetStatusVNotAssigned + PolicySetStatusPNotAssigned = &_PolicySetStatusPNotAssigned +) + +var ( + _PolicySetStatusPUnknown = PolicySetStatusVUnknown + _PolicySetStatusPValidating = PolicySetStatusVValidating + _PolicySetStatusPPartialSuccess = PolicySetStatusVPartialSuccess + _PolicySetStatusPSuccess = PolicySetStatusVSuccess + _PolicySetStatusPError = PolicySetStatusVError + _PolicySetStatusPNotAssigned = PolicySetStatusVNotAssigned +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go new file mode 100644 index 00000000..0ebd242a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PowerActionType undocumented +type PowerActionType string + +const ( + // PowerActionTypeVNotConfigured undocumented + PowerActionTypeVNotConfigured PowerActionType = "notConfigured" + // PowerActionTypeVNoAction undocumented + PowerActionTypeVNoAction PowerActionType = "noAction" + // PowerActionTypeVSleep undocumented + PowerActionTypeVSleep PowerActionType = "sleep" + // PowerActionTypeVHibernate undocumented + PowerActionTypeVHibernate PowerActionType = "hibernate" + // PowerActionTypeVShutdown undocumented + PowerActionTypeVShutdown PowerActionType = "shutdown" +) + +var ( + // PowerActionTypePNotConfigured is a pointer to PowerActionTypeVNotConfigured + PowerActionTypePNotConfigured = &_PowerActionTypePNotConfigured + // PowerActionTypePNoAction is a pointer to PowerActionTypeVNoAction + PowerActionTypePNoAction = &_PowerActionTypePNoAction + // PowerActionTypePSleep is a pointer to PowerActionTypeVSleep + PowerActionTypePSleep = &_PowerActionTypePSleep + // PowerActionTypePHibernate is a pointer to PowerActionTypeVHibernate + PowerActionTypePHibernate = &_PowerActionTypePHibernate + // PowerActionTypePShutdown is a pointer to PowerActionTypeVShutdown + PowerActionTypePShutdown = &_PowerActionTypePShutdown +) + +var ( + _PowerActionTypePNotConfigured = PowerActionTypeVNotConfigured + _PowerActionTypePNoAction = PowerActionTypeVNoAction + _PowerActionTypePSleep = PowerActionTypeVSleep + _PowerActionTypePHibernate = PowerActionTypeVHibernate + _PowerActionTypePShutdown = PowerActionTypeVShutdown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go new file mode 100644 index 00000000..9b2ab6aa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PrereleaseFeatures undocumented +type PrereleaseFeatures string + +const ( + // PrereleaseFeaturesVUserDefined undocumented + PrereleaseFeaturesVUserDefined PrereleaseFeatures = "userDefined" + // PrereleaseFeaturesVSettingsOnly undocumented + PrereleaseFeaturesVSettingsOnly PrereleaseFeatures = "settingsOnly" + // PrereleaseFeaturesVSettingsAndExperimentations undocumented + PrereleaseFeaturesVSettingsAndExperimentations PrereleaseFeatures = "settingsAndExperimentations" + // PrereleaseFeaturesVNotAllowed undocumented + PrereleaseFeaturesVNotAllowed PrereleaseFeatures = "notAllowed" +) + +var ( + // PrereleaseFeaturesPUserDefined is a pointer to PrereleaseFeaturesVUserDefined + PrereleaseFeaturesPUserDefined = &_PrereleaseFeaturesPUserDefined + // PrereleaseFeaturesPSettingsOnly is a pointer to PrereleaseFeaturesVSettingsOnly + PrereleaseFeaturesPSettingsOnly = &_PrereleaseFeaturesPSettingsOnly + // PrereleaseFeaturesPSettingsAndExperimentations is a pointer to PrereleaseFeaturesVSettingsAndExperimentations + PrereleaseFeaturesPSettingsAndExperimentations = &_PrereleaseFeaturesPSettingsAndExperimentations + // PrereleaseFeaturesPNotAllowed is a pointer to PrereleaseFeaturesVNotAllowed + PrereleaseFeaturesPNotAllowed = &_PrereleaseFeaturesPNotAllowed +) + +var ( + _PrereleaseFeaturesPUserDefined = PrereleaseFeaturesVUserDefined + _PrereleaseFeaturesPSettingsOnly = PrereleaseFeaturesVSettingsOnly + _PrereleaseFeaturesPSettingsAndExperimentations = PrereleaseFeaturesVSettingsAndExperimentations + _PrereleaseFeaturesPNotAllowed = PrereleaseFeaturesVNotAllowed +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go new file mode 100644 index 00000000..7a522a2a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Priority undocumented +type Priority string + +const ( + // PriorityVNone undocumented + PriorityVNone Priority = "None" + // PriorityVHigh undocumented + PriorityVHigh Priority = "High" + // PriorityVLow undocumented + PriorityVLow Priority = "Low" +) + +var ( + // PriorityPNone is a pointer to PriorityVNone + PriorityPNone = &_PriorityPNone + // PriorityPHigh is a pointer to PriorityVHigh + PriorityPHigh = &_PriorityPHigh + // PriorityPLow is a pointer to PriorityVLow + PriorityPLow = &_PriorityPLow +) + +var ( + _PriorityPNone = PriorityVNone + _PriorityPHigh = PriorityVHigh + _PriorityPLow = PriorityVLow +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go new file mode 100644 index 00000000..e5a33f0c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ProcessIntegrityLevel undocumented +type ProcessIntegrityLevel string + +const ( + // ProcessIntegrityLevelVUnknown undocumented + ProcessIntegrityLevelVUnknown ProcessIntegrityLevel = "unknown" + // ProcessIntegrityLevelVUntrusted undocumented + ProcessIntegrityLevelVUntrusted ProcessIntegrityLevel = "untrusted" + // ProcessIntegrityLevelVLow undocumented + ProcessIntegrityLevelVLow ProcessIntegrityLevel = "low" + // ProcessIntegrityLevelVMedium undocumented + ProcessIntegrityLevelVMedium ProcessIntegrityLevel = "medium" + // ProcessIntegrityLevelVHigh undocumented + ProcessIntegrityLevelVHigh ProcessIntegrityLevel = "high" + // ProcessIntegrityLevelVSystem undocumented + ProcessIntegrityLevelVSystem ProcessIntegrityLevel = "system" + // ProcessIntegrityLevelVUnknownFutureValue undocumented + ProcessIntegrityLevelVUnknownFutureValue ProcessIntegrityLevel = "unknownFutureValue" +) + +var ( + // ProcessIntegrityLevelPUnknown is a pointer to ProcessIntegrityLevelVUnknown + ProcessIntegrityLevelPUnknown = &_ProcessIntegrityLevelPUnknown + // ProcessIntegrityLevelPUntrusted is a pointer to ProcessIntegrityLevelVUntrusted + ProcessIntegrityLevelPUntrusted = &_ProcessIntegrityLevelPUntrusted + // ProcessIntegrityLevelPLow is a pointer to ProcessIntegrityLevelVLow + ProcessIntegrityLevelPLow = &_ProcessIntegrityLevelPLow + // ProcessIntegrityLevelPMedium is a pointer to ProcessIntegrityLevelVMedium + ProcessIntegrityLevelPMedium = &_ProcessIntegrityLevelPMedium + // ProcessIntegrityLevelPHigh is a pointer to ProcessIntegrityLevelVHigh + ProcessIntegrityLevelPHigh = &_ProcessIntegrityLevelPHigh + // ProcessIntegrityLevelPSystem is a pointer to ProcessIntegrityLevelVSystem + ProcessIntegrityLevelPSystem = &_ProcessIntegrityLevelPSystem + // ProcessIntegrityLevelPUnknownFutureValue is a pointer to ProcessIntegrityLevelVUnknownFutureValue + ProcessIntegrityLevelPUnknownFutureValue = &_ProcessIntegrityLevelPUnknownFutureValue +) + +var ( + _ProcessIntegrityLevelPUnknown = ProcessIntegrityLevelVUnknown + _ProcessIntegrityLevelPUntrusted = ProcessIntegrityLevelVUntrusted + _ProcessIntegrityLevelPLow = ProcessIntegrityLevelVLow + _ProcessIntegrityLevelPMedium = ProcessIntegrityLevelVMedium + _ProcessIntegrityLevelPHigh = ProcessIntegrityLevelVHigh + _ProcessIntegrityLevelPSystem = ProcessIntegrityLevelVSystem + _ProcessIntegrityLevelPUnknownFutureValue = ProcessIntegrityLevelVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go new file mode 100644 index 00000000..1d58087a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go @@ -0,0 +1,60 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PropertyType undocumented +type PropertyType string + +const ( + // PropertyTypeVString undocumented + PropertyTypeVString PropertyType = "String" + // PropertyTypeVInt64 undocumented + PropertyTypeVInt64 PropertyType = "Int64" + // PropertyTypeVDouble undocumented + PropertyTypeVDouble PropertyType = "Double" + // PropertyTypeVDateTime undocumented + PropertyTypeVDateTime PropertyType = "DateTime" + // PropertyTypeVBoolean undocumented + PropertyTypeVBoolean PropertyType = "Boolean" + // PropertyTypeVStringCollection undocumented + PropertyTypeVStringCollection PropertyType = "StringCollection" + // PropertyTypeVInt64Collection undocumented + PropertyTypeVInt64Collection PropertyType = "Int64Collection" + // PropertyTypeVDoubleCollection undocumented + PropertyTypeVDoubleCollection PropertyType = "DoubleCollection" + // PropertyTypeVDateTimeCollection undocumented + PropertyTypeVDateTimeCollection PropertyType = "DateTimeCollection" +) + +var ( + // PropertyTypePString is a pointer to PropertyTypeVString + PropertyTypePString = &_PropertyTypePString + // PropertyTypePInt64 is a pointer to PropertyTypeVInt64 + PropertyTypePInt64 = &_PropertyTypePInt64 + // PropertyTypePDouble is a pointer to PropertyTypeVDouble + PropertyTypePDouble = &_PropertyTypePDouble + // PropertyTypePDateTime is a pointer to PropertyTypeVDateTime + PropertyTypePDateTime = &_PropertyTypePDateTime + // PropertyTypePBoolean is a pointer to PropertyTypeVBoolean + PropertyTypePBoolean = &_PropertyTypePBoolean + // PropertyTypePStringCollection is a pointer to PropertyTypeVStringCollection + PropertyTypePStringCollection = &_PropertyTypePStringCollection + // PropertyTypePInt64Collection is a pointer to PropertyTypeVInt64Collection + PropertyTypePInt64Collection = &_PropertyTypePInt64Collection + // PropertyTypePDoubleCollection is a pointer to PropertyTypeVDoubleCollection + PropertyTypePDoubleCollection = &_PropertyTypePDoubleCollection + // PropertyTypePDateTimeCollection is a pointer to PropertyTypeVDateTimeCollection + PropertyTypePDateTimeCollection = &_PropertyTypePDateTimeCollection +) + +var ( + _PropertyTypePString = PropertyTypeVString + _PropertyTypePInt64 = PropertyTypeVInt64 + _PropertyTypePDouble = PropertyTypeVDouble + _PropertyTypePDateTime = PropertyTypeVDateTime + _PropertyTypePBoolean = PropertyTypeVBoolean + _PropertyTypePStringCollection = PropertyTypeVStringCollection + _PropertyTypePInt64Collection = PropertyTypeVInt64Collection + _PropertyTypePDoubleCollection = PropertyTypeVDoubleCollection + _PropertyTypePDateTimeCollection = PropertyTypeVDateTimeCollection +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go new file mode 100644 index 00000000..b5f41643 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go @@ -0,0 +1,82 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ProvisioningResult undocumented +type ProvisioningResult string + +const ( + // ProvisioningResultVSuccess undocumented + ProvisioningResultVSuccess ProvisioningResult = "success" + // ProvisioningResultVFailure undocumented + ProvisioningResultVFailure ProvisioningResult = "failure" + // ProvisioningResultVSkipped undocumented + ProvisioningResultVSkipped ProvisioningResult = "skipped" + // ProvisioningResultVUnknownFutureValue undocumented + ProvisioningResultVUnknownFutureValue ProvisioningResult = "unknownFutureValue" +) + +var ( + // ProvisioningResultPSuccess is a pointer to ProvisioningResultVSuccess + ProvisioningResultPSuccess = &_ProvisioningResultPSuccess + // ProvisioningResultPFailure is a pointer to ProvisioningResultVFailure + ProvisioningResultPFailure = &_ProvisioningResultPFailure + // ProvisioningResultPSkipped is a pointer to ProvisioningResultVSkipped + ProvisioningResultPSkipped = &_ProvisioningResultPSkipped + // ProvisioningResultPUnknownFutureValue is a pointer to ProvisioningResultVUnknownFutureValue + ProvisioningResultPUnknownFutureValue = &_ProvisioningResultPUnknownFutureValue +) + +var ( + _ProvisioningResultPSuccess = ProvisioningResultVSuccess + _ProvisioningResultPFailure = ProvisioningResultVFailure + _ProvisioningResultPSkipped = ProvisioningResultVSkipped + _ProvisioningResultPUnknownFutureValue = ProvisioningResultVUnknownFutureValue +) + +// ProvisioningStepType undocumented +type ProvisioningStepType string + +const ( + // ProvisioningStepTypeVImport undocumented + ProvisioningStepTypeVImport ProvisioningStepType = "import" + // ProvisioningStepTypeVScoping undocumented + ProvisioningStepTypeVScoping ProvisioningStepType = "scoping" + // ProvisioningStepTypeVMatching undocumented + ProvisioningStepTypeVMatching ProvisioningStepType = "matching" + // ProvisioningStepTypeVProcessing undocumented + ProvisioningStepTypeVProcessing ProvisioningStepType = "processing" + // ProvisioningStepTypeVReferenceResolution undocumented + ProvisioningStepTypeVReferenceResolution ProvisioningStepType = "referenceResolution" + // ProvisioningStepTypeVExport undocumented + ProvisioningStepTypeVExport ProvisioningStepType = "export" + // ProvisioningStepTypeVUnknownFutureValue undocumented + ProvisioningStepTypeVUnknownFutureValue ProvisioningStepType = "unknownFutureValue" +) + +var ( + // ProvisioningStepTypePImport is a pointer to ProvisioningStepTypeVImport + ProvisioningStepTypePImport = &_ProvisioningStepTypePImport + // ProvisioningStepTypePScoping is a pointer to ProvisioningStepTypeVScoping + ProvisioningStepTypePScoping = &_ProvisioningStepTypePScoping + // ProvisioningStepTypePMatching is a pointer to ProvisioningStepTypeVMatching + ProvisioningStepTypePMatching = &_ProvisioningStepTypePMatching + // ProvisioningStepTypePProcessing is a pointer to ProvisioningStepTypeVProcessing + ProvisioningStepTypePProcessing = &_ProvisioningStepTypePProcessing + // ProvisioningStepTypePReferenceResolution is a pointer to ProvisioningStepTypeVReferenceResolution + ProvisioningStepTypePReferenceResolution = &_ProvisioningStepTypePReferenceResolution + // ProvisioningStepTypePExport is a pointer to ProvisioningStepTypeVExport + ProvisioningStepTypePExport = &_ProvisioningStepTypePExport + // ProvisioningStepTypePUnknownFutureValue is a pointer to ProvisioningStepTypeVUnknownFutureValue + ProvisioningStepTypePUnknownFutureValue = &_ProvisioningStepTypePUnknownFutureValue +) + +var ( + _ProvisioningStepTypePImport = ProvisioningStepTypeVImport + _ProvisioningStepTypePScoping = ProvisioningStepTypeVScoping + _ProvisioningStepTypePMatching = ProvisioningStepTypeVMatching + _ProvisioningStepTypePProcessing = ProvisioningStepTypeVProcessing + _ProvisioningStepTypePReferenceResolution = ProvisioningStepTypeVReferenceResolution + _ProvisioningStepTypePExport = ProvisioningStepTypeVExport + _ProvisioningStepTypePUnknownFutureValue = ProvisioningStepTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go new file mode 100644 index 00000000..c87c32a1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// QuarantineReason undocumented +type QuarantineReason string + +const ( + // QuarantineReasonVEncounteredBaseEscrowThreshold undocumented + QuarantineReasonVEncounteredBaseEscrowThreshold QuarantineReason = "EncounteredBaseEscrowThreshold" + // QuarantineReasonVEncounteredTotalEscrowThreshold undocumented + QuarantineReasonVEncounteredTotalEscrowThreshold QuarantineReason = "EncounteredTotalEscrowThreshold" + // QuarantineReasonVEncounteredEscrowProportionThreshold undocumented + QuarantineReasonVEncounteredEscrowProportionThreshold QuarantineReason = "EncounteredEscrowProportionThreshold" + // QuarantineReasonVEncounteredQuarantineException undocumented + QuarantineReasonVEncounteredQuarantineException QuarantineReason = "EncounteredQuarantineException" + // QuarantineReasonVUnknown undocumented + QuarantineReasonVUnknown QuarantineReason = "Unknown" + // QuarantineReasonVQuarantinedOnDemand undocumented + QuarantineReasonVQuarantinedOnDemand QuarantineReason = "QuarantinedOnDemand" + // QuarantineReasonVTooManyDeletes undocumented + QuarantineReasonVTooManyDeletes QuarantineReason = "TooManyDeletes" +) + +var ( + // QuarantineReasonPEncounteredBaseEscrowThreshold is a pointer to QuarantineReasonVEncounteredBaseEscrowThreshold + QuarantineReasonPEncounteredBaseEscrowThreshold = &_QuarantineReasonPEncounteredBaseEscrowThreshold + // QuarantineReasonPEncounteredTotalEscrowThreshold is a pointer to QuarantineReasonVEncounteredTotalEscrowThreshold + QuarantineReasonPEncounteredTotalEscrowThreshold = &_QuarantineReasonPEncounteredTotalEscrowThreshold + // QuarantineReasonPEncounteredEscrowProportionThreshold is a pointer to QuarantineReasonVEncounteredEscrowProportionThreshold + QuarantineReasonPEncounteredEscrowProportionThreshold = &_QuarantineReasonPEncounteredEscrowProportionThreshold + // QuarantineReasonPEncounteredQuarantineException is a pointer to QuarantineReasonVEncounteredQuarantineException + QuarantineReasonPEncounteredQuarantineException = &_QuarantineReasonPEncounteredQuarantineException + // QuarantineReasonPUnknown is a pointer to QuarantineReasonVUnknown + QuarantineReasonPUnknown = &_QuarantineReasonPUnknown + // QuarantineReasonPQuarantinedOnDemand is a pointer to QuarantineReasonVQuarantinedOnDemand + QuarantineReasonPQuarantinedOnDemand = &_QuarantineReasonPQuarantinedOnDemand + // QuarantineReasonPTooManyDeletes is a pointer to QuarantineReasonVTooManyDeletes + QuarantineReasonPTooManyDeletes = &_QuarantineReasonPTooManyDeletes +) + +var ( + _QuarantineReasonPEncounteredBaseEscrowThreshold = QuarantineReasonVEncounteredBaseEscrowThreshold + _QuarantineReasonPEncounteredTotalEscrowThreshold = QuarantineReasonVEncounteredTotalEscrowThreshold + _QuarantineReasonPEncounteredEscrowProportionThreshold = QuarantineReasonVEncounteredEscrowProportionThreshold + _QuarantineReasonPEncounteredQuarantineException = QuarantineReasonVEncounteredQuarantineException + _QuarantineReasonPUnknown = QuarantineReasonVUnknown + _QuarantineReasonPQuarantinedOnDemand = QuarantineReasonVQuarantinedOnDemand + _QuarantineReasonPTooManyDeletes = QuarantineReasonVTooManyDeletes +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go new file mode 100644 index 00000000..b838a199 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go @@ -0,0 +1,881 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RatingAppsType undocumented +type RatingAppsType string + +const ( + // RatingAppsTypeVAllAllowed undocumented + RatingAppsTypeVAllAllowed RatingAppsType = "allAllowed" + // RatingAppsTypeVAllBlocked undocumented + RatingAppsTypeVAllBlocked RatingAppsType = "allBlocked" + // RatingAppsTypeVAgesAbove4 undocumented + RatingAppsTypeVAgesAbove4 RatingAppsType = "agesAbove4" + // RatingAppsTypeVAgesAbove9 undocumented + RatingAppsTypeVAgesAbove9 RatingAppsType = "agesAbove9" + // RatingAppsTypeVAgesAbove12 undocumented + RatingAppsTypeVAgesAbove12 RatingAppsType = "agesAbove12" + // RatingAppsTypeVAgesAbove17 undocumented + RatingAppsTypeVAgesAbove17 RatingAppsType = "agesAbove17" +) + +var ( + // RatingAppsTypePAllAllowed is a pointer to RatingAppsTypeVAllAllowed + RatingAppsTypePAllAllowed = &_RatingAppsTypePAllAllowed + // RatingAppsTypePAllBlocked is a pointer to RatingAppsTypeVAllBlocked + RatingAppsTypePAllBlocked = &_RatingAppsTypePAllBlocked + // RatingAppsTypePAgesAbove4 is a pointer to RatingAppsTypeVAgesAbove4 + RatingAppsTypePAgesAbove4 = &_RatingAppsTypePAgesAbove4 + // RatingAppsTypePAgesAbove9 is a pointer to RatingAppsTypeVAgesAbove9 + RatingAppsTypePAgesAbove9 = &_RatingAppsTypePAgesAbove9 + // RatingAppsTypePAgesAbove12 is a pointer to RatingAppsTypeVAgesAbove12 + RatingAppsTypePAgesAbove12 = &_RatingAppsTypePAgesAbove12 + // RatingAppsTypePAgesAbove17 is a pointer to RatingAppsTypeVAgesAbove17 + RatingAppsTypePAgesAbove17 = &_RatingAppsTypePAgesAbove17 +) + +var ( + _RatingAppsTypePAllAllowed = RatingAppsTypeVAllAllowed + _RatingAppsTypePAllBlocked = RatingAppsTypeVAllBlocked + _RatingAppsTypePAgesAbove4 = RatingAppsTypeVAgesAbove4 + _RatingAppsTypePAgesAbove9 = RatingAppsTypeVAgesAbove9 + _RatingAppsTypePAgesAbove12 = RatingAppsTypeVAgesAbove12 + _RatingAppsTypePAgesAbove17 = RatingAppsTypeVAgesAbove17 +) + +// RatingAustraliaMoviesType undocumented +type RatingAustraliaMoviesType string + +const ( + // RatingAustraliaMoviesTypeVAllAllowed undocumented + RatingAustraliaMoviesTypeVAllAllowed RatingAustraliaMoviesType = "allAllowed" + // RatingAustraliaMoviesTypeVAllBlocked undocumented + RatingAustraliaMoviesTypeVAllBlocked RatingAustraliaMoviesType = "allBlocked" + // RatingAustraliaMoviesTypeVGeneral undocumented + RatingAustraliaMoviesTypeVGeneral RatingAustraliaMoviesType = "general" + // RatingAustraliaMoviesTypeVParentalGuidance undocumented + RatingAustraliaMoviesTypeVParentalGuidance RatingAustraliaMoviesType = "parentalGuidance" + // RatingAustraliaMoviesTypeVMature undocumented + RatingAustraliaMoviesTypeVMature RatingAustraliaMoviesType = "mature" + // RatingAustraliaMoviesTypeVAgesAbove15 undocumented + RatingAustraliaMoviesTypeVAgesAbove15 RatingAustraliaMoviesType = "agesAbove15" + // RatingAustraliaMoviesTypeVAgesAbove18 undocumented + RatingAustraliaMoviesTypeVAgesAbove18 RatingAustraliaMoviesType = "agesAbove18" +) + +var ( + // RatingAustraliaMoviesTypePAllAllowed is a pointer to RatingAustraliaMoviesTypeVAllAllowed + RatingAustraliaMoviesTypePAllAllowed = &_RatingAustraliaMoviesTypePAllAllowed + // RatingAustraliaMoviesTypePAllBlocked is a pointer to RatingAustraliaMoviesTypeVAllBlocked + RatingAustraliaMoviesTypePAllBlocked = &_RatingAustraliaMoviesTypePAllBlocked + // RatingAustraliaMoviesTypePGeneral is a pointer to RatingAustraliaMoviesTypeVGeneral + RatingAustraliaMoviesTypePGeneral = &_RatingAustraliaMoviesTypePGeneral + // RatingAustraliaMoviesTypePParentalGuidance is a pointer to RatingAustraliaMoviesTypeVParentalGuidance + RatingAustraliaMoviesTypePParentalGuidance = &_RatingAustraliaMoviesTypePParentalGuidance + // RatingAustraliaMoviesTypePMature is a pointer to RatingAustraliaMoviesTypeVMature + RatingAustraliaMoviesTypePMature = &_RatingAustraliaMoviesTypePMature + // RatingAustraliaMoviesTypePAgesAbove15 is a pointer to RatingAustraliaMoviesTypeVAgesAbove15 + RatingAustraliaMoviesTypePAgesAbove15 = &_RatingAustraliaMoviesTypePAgesAbove15 + // RatingAustraliaMoviesTypePAgesAbove18 is a pointer to RatingAustraliaMoviesTypeVAgesAbove18 + RatingAustraliaMoviesTypePAgesAbove18 = &_RatingAustraliaMoviesTypePAgesAbove18 +) + +var ( + _RatingAustraliaMoviesTypePAllAllowed = RatingAustraliaMoviesTypeVAllAllowed + _RatingAustraliaMoviesTypePAllBlocked = RatingAustraliaMoviesTypeVAllBlocked + _RatingAustraliaMoviesTypePGeneral = RatingAustraliaMoviesTypeVGeneral + _RatingAustraliaMoviesTypePParentalGuidance = RatingAustraliaMoviesTypeVParentalGuidance + _RatingAustraliaMoviesTypePMature = RatingAustraliaMoviesTypeVMature + _RatingAustraliaMoviesTypePAgesAbove15 = RatingAustraliaMoviesTypeVAgesAbove15 + _RatingAustraliaMoviesTypePAgesAbove18 = RatingAustraliaMoviesTypeVAgesAbove18 +) + +// RatingAustraliaTelevisionType undocumented +type RatingAustraliaTelevisionType string + +const ( + // RatingAustraliaTelevisionTypeVAllAllowed undocumented + RatingAustraliaTelevisionTypeVAllAllowed RatingAustraliaTelevisionType = "allAllowed" + // RatingAustraliaTelevisionTypeVAllBlocked undocumented + RatingAustraliaTelevisionTypeVAllBlocked RatingAustraliaTelevisionType = "allBlocked" + // RatingAustraliaTelevisionTypeVPreschoolers undocumented + RatingAustraliaTelevisionTypeVPreschoolers RatingAustraliaTelevisionType = "preschoolers" + // RatingAustraliaTelevisionTypeVChildren undocumented + RatingAustraliaTelevisionTypeVChildren RatingAustraliaTelevisionType = "children" + // RatingAustraliaTelevisionTypeVGeneral undocumented + RatingAustraliaTelevisionTypeVGeneral RatingAustraliaTelevisionType = "general" + // RatingAustraliaTelevisionTypeVParentalGuidance undocumented + RatingAustraliaTelevisionTypeVParentalGuidance RatingAustraliaTelevisionType = "parentalGuidance" + // RatingAustraliaTelevisionTypeVMature undocumented + RatingAustraliaTelevisionTypeVMature RatingAustraliaTelevisionType = "mature" + // RatingAustraliaTelevisionTypeVAgesAbove15 undocumented + RatingAustraliaTelevisionTypeVAgesAbove15 RatingAustraliaTelevisionType = "agesAbove15" + // RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence undocumented + RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence RatingAustraliaTelevisionType = "agesAbove15AdultViolence" +) + +var ( + // RatingAustraliaTelevisionTypePAllAllowed is a pointer to RatingAustraliaTelevisionTypeVAllAllowed + RatingAustraliaTelevisionTypePAllAllowed = &_RatingAustraliaTelevisionTypePAllAllowed + // RatingAustraliaTelevisionTypePAllBlocked is a pointer to RatingAustraliaTelevisionTypeVAllBlocked + RatingAustraliaTelevisionTypePAllBlocked = &_RatingAustraliaTelevisionTypePAllBlocked + // RatingAustraliaTelevisionTypePPreschoolers is a pointer to RatingAustraliaTelevisionTypeVPreschoolers + RatingAustraliaTelevisionTypePPreschoolers = &_RatingAustraliaTelevisionTypePPreschoolers + // RatingAustraliaTelevisionTypePChildren is a pointer to RatingAustraliaTelevisionTypeVChildren + RatingAustraliaTelevisionTypePChildren = &_RatingAustraliaTelevisionTypePChildren + // RatingAustraliaTelevisionTypePGeneral is a pointer to RatingAustraliaTelevisionTypeVGeneral + RatingAustraliaTelevisionTypePGeneral = &_RatingAustraliaTelevisionTypePGeneral + // RatingAustraliaTelevisionTypePParentalGuidance is a pointer to RatingAustraliaTelevisionTypeVParentalGuidance + RatingAustraliaTelevisionTypePParentalGuidance = &_RatingAustraliaTelevisionTypePParentalGuidance + // RatingAustraliaTelevisionTypePMature is a pointer to RatingAustraliaTelevisionTypeVMature + RatingAustraliaTelevisionTypePMature = &_RatingAustraliaTelevisionTypePMature + // RatingAustraliaTelevisionTypePAgesAbove15 is a pointer to RatingAustraliaTelevisionTypeVAgesAbove15 + RatingAustraliaTelevisionTypePAgesAbove15 = &_RatingAustraliaTelevisionTypePAgesAbove15 + // RatingAustraliaTelevisionTypePAgesAbove15AdultViolence is a pointer to RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence + RatingAustraliaTelevisionTypePAgesAbove15AdultViolence = &_RatingAustraliaTelevisionTypePAgesAbove15AdultViolence +) + +var ( + _RatingAustraliaTelevisionTypePAllAllowed = RatingAustraliaTelevisionTypeVAllAllowed + _RatingAustraliaTelevisionTypePAllBlocked = RatingAustraliaTelevisionTypeVAllBlocked + _RatingAustraliaTelevisionTypePPreschoolers = RatingAustraliaTelevisionTypeVPreschoolers + _RatingAustraliaTelevisionTypePChildren = RatingAustraliaTelevisionTypeVChildren + _RatingAustraliaTelevisionTypePGeneral = RatingAustraliaTelevisionTypeVGeneral + _RatingAustraliaTelevisionTypePParentalGuidance = RatingAustraliaTelevisionTypeVParentalGuidance + _RatingAustraliaTelevisionTypePMature = RatingAustraliaTelevisionTypeVMature + _RatingAustraliaTelevisionTypePAgesAbove15 = RatingAustraliaTelevisionTypeVAgesAbove15 + _RatingAustraliaTelevisionTypePAgesAbove15AdultViolence = RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence +) + +// RatingCanadaMoviesType undocumented +type RatingCanadaMoviesType string + +const ( + // RatingCanadaMoviesTypeVAllAllowed undocumented + RatingCanadaMoviesTypeVAllAllowed RatingCanadaMoviesType = "allAllowed" + // RatingCanadaMoviesTypeVAllBlocked undocumented + RatingCanadaMoviesTypeVAllBlocked RatingCanadaMoviesType = "allBlocked" + // RatingCanadaMoviesTypeVGeneral undocumented + RatingCanadaMoviesTypeVGeneral RatingCanadaMoviesType = "general" + // RatingCanadaMoviesTypeVParentalGuidance undocumented + RatingCanadaMoviesTypeVParentalGuidance RatingCanadaMoviesType = "parentalGuidance" + // RatingCanadaMoviesTypeVAgesAbove14 undocumented + RatingCanadaMoviesTypeVAgesAbove14 RatingCanadaMoviesType = "agesAbove14" + // RatingCanadaMoviesTypeVAgesAbove18 undocumented + RatingCanadaMoviesTypeVAgesAbove18 RatingCanadaMoviesType = "agesAbove18" + // RatingCanadaMoviesTypeVRestricted undocumented + RatingCanadaMoviesTypeVRestricted RatingCanadaMoviesType = "restricted" +) + +var ( + // RatingCanadaMoviesTypePAllAllowed is a pointer to RatingCanadaMoviesTypeVAllAllowed + RatingCanadaMoviesTypePAllAllowed = &_RatingCanadaMoviesTypePAllAllowed + // RatingCanadaMoviesTypePAllBlocked is a pointer to RatingCanadaMoviesTypeVAllBlocked + RatingCanadaMoviesTypePAllBlocked = &_RatingCanadaMoviesTypePAllBlocked + // RatingCanadaMoviesTypePGeneral is a pointer to RatingCanadaMoviesTypeVGeneral + RatingCanadaMoviesTypePGeneral = &_RatingCanadaMoviesTypePGeneral + // RatingCanadaMoviesTypePParentalGuidance is a pointer to RatingCanadaMoviesTypeVParentalGuidance + RatingCanadaMoviesTypePParentalGuidance = &_RatingCanadaMoviesTypePParentalGuidance + // RatingCanadaMoviesTypePAgesAbove14 is a pointer to RatingCanadaMoviesTypeVAgesAbove14 + RatingCanadaMoviesTypePAgesAbove14 = &_RatingCanadaMoviesTypePAgesAbove14 + // RatingCanadaMoviesTypePAgesAbove18 is a pointer to RatingCanadaMoviesTypeVAgesAbove18 + RatingCanadaMoviesTypePAgesAbove18 = &_RatingCanadaMoviesTypePAgesAbove18 + // RatingCanadaMoviesTypePRestricted is a pointer to RatingCanadaMoviesTypeVRestricted + RatingCanadaMoviesTypePRestricted = &_RatingCanadaMoviesTypePRestricted +) + +var ( + _RatingCanadaMoviesTypePAllAllowed = RatingCanadaMoviesTypeVAllAllowed + _RatingCanadaMoviesTypePAllBlocked = RatingCanadaMoviesTypeVAllBlocked + _RatingCanadaMoviesTypePGeneral = RatingCanadaMoviesTypeVGeneral + _RatingCanadaMoviesTypePParentalGuidance = RatingCanadaMoviesTypeVParentalGuidance + _RatingCanadaMoviesTypePAgesAbove14 = RatingCanadaMoviesTypeVAgesAbove14 + _RatingCanadaMoviesTypePAgesAbove18 = RatingCanadaMoviesTypeVAgesAbove18 + _RatingCanadaMoviesTypePRestricted = RatingCanadaMoviesTypeVRestricted +) + +// RatingCanadaTelevisionType undocumented +type RatingCanadaTelevisionType string + +const ( + // RatingCanadaTelevisionTypeVAllAllowed undocumented + RatingCanadaTelevisionTypeVAllAllowed RatingCanadaTelevisionType = "allAllowed" + // RatingCanadaTelevisionTypeVAllBlocked undocumented + RatingCanadaTelevisionTypeVAllBlocked RatingCanadaTelevisionType = "allBlocked" + // RatingCanadaTelevisionTypeVChildren undocumented + RatingCanadaTelevisionTypeVChildren RatingCanadaTelevisionType = "children" + // RatingCanadaTelevisionTypeVChildrenAbove8 undocumented + RatingCanadaTelevisionTypeVChildrenAbove8 RatingCanadaTelevisionType = "childrenAbove8" + // RatingCanadaTelevisionTypeVGeneral undocumented + RatingCanadaTelevisionTypeVGeneral RatingCanadaTelevisionType = "general" + // RatingCanadaTelevisionTypeVParentalGuidance undocumented + RatingCanadaTelevisionTypeVParentalGuidance RatingCanadaTelevisionType = "parentalGuidance" + // RatingCanadaTelevisionTypeVAgesAbove14 undocumented + RatingCanadaTelevisionTypeVAgesAbove14 RatingCanadaTelevisionType = "agesAbove14" + // RatingCanadaTelevisionTypeVAgesAbove18 undocumented + RatingCanadaTelevisionTypeVAgesAbove18 RatingCanadaTelevisionType = "agesAbove18" +) + +var ( + // RatingCanadaTelevisionTypePAllAllowed is a pointer to RatingCanadaTelevisionTypeVAllAllowed + RatingCanadaTelevisionTypePAllAllowed = &_RatingCanadaTelevisionTypePAllAllowed + // RatingCanadaTelevisionTypePAllBlocked is a pointer to RatingCanadaTelevisionTypeVAllBlocked + RatingCanadaTelevisionTypePAllBlocked = &_RatingCanadaTelevisionTypePAllBlocked + // RatingCanadaTelevisionTypePChildren is a pointer to RatingCanadaTelevisionTypeVChildren + RatingCanadaTelevisionTypePChildren = &_RatingCanadaTelevisionTypePChildren + // RatingCanadaTelevisionTypePChildrenAbove8 is a pointer to RatingCanadaTelevisionTypeVChildrenAbove8 + RatingCanadaTelevisionTypePChildrenAbove8 = &_RatingCanadaTelevisionTypePChildrenAbove8 + // RatingCanadaTelevisionTypePGeneral is a pointer to RatingCanadaTelevisionTypeVGeneral + RatingCanadaTelevisionTypePGeneral = &_RatingCanadaTelevisionTypePGeneral + // RatingCanadaTelevisionTypePParentalGuidance is a pointer to RatingCanadaTelevisionTypeVParentalGuidance + RatingCanadaTelevisionTypePParentalGuidance = &_RatingCanadaTelevisionTypePParentalGuidance + // RatingCanadaTelevisionTypePAgesAbove14 is a pointer to RatingCanadaTelevisionTypeVAgesAbove14 + RatingCanadaTelevisionTypePAgesAbove14 = &_RatingCanadaTelevisionTypePAgesAbove14 + // RatingCanadaTelevisionTypePAgesAbove18 is a pointer to RatingCanadaTelevisionTypeVAgesAbove18 + RatingCanadaTelevisionTypePAgesAbove18 = &_RatingCanadaTelevisionTypePAgesAbove18 +) + +var ( + _RatingCanadaTelevisionTypePAllAllowed = RatingCanadaTelevisionTypeVAllAllowed + _RatingCanadaTelevisionTypePAllBlocked = RatingCanadaTelevisionTypeVAllBlocked + _RatingCanadaTelevisionTypePChildren = RatingCanadaTelevisionTypeVChildren + _RatingCanadaTelevisionTypePChildrenAbove8 = RatingCanadaTelevisionTypeVChildrenAbove8 + _RatingCanadaTelevisionTypePGeneral = RatingCanadaTelevisionTypeVGeneral + _RatingCanadaTelevisionTypePParentalGuidance = RatingCanadaTelevisionTypeVParentalGuidance + _RatingCanadaTelevisionTypePAgesAbove14 = RatingCanadaTelevisionTypeVAgesAbove14 + _RatingCanadaTelevisionTypePAgesAbove18 = RatingCanadaTelevisionTypeVAgesAbove18 +) + +// RatingFranceMoviesType undocumented +type RatingFranceMoviesType string + +const ( + // RatingFranceMoviesTypeVAllAllowed undocumented + RatingFranceMoviesTypeVAllAllowed RatingFranceMoviesType = "allAllowed" + // RatingFranceMoviesTypeVAllBlocked undocumented + RatingFranceMoviesTypeVAllBlocked RatingFranceMoviesType = "allBlocked" + // RatingFranceMoviesTypeVAgesAbove10 undocumented + RatingFranceMoviesTypeVAgesAbove10 RatingFranceMoviesType = "agesAbove10" + // RatingFranceMoviesTypeVAgesAbove12 undocumented + RatingFranceMoviesTypeVAgesAbove12 RatingFranceMoviesType = "agesAbove12" + // RatingFranceMoviesTypeVAgesAbove16 undocumented + RatingFranceMoviesTypeVAgesAbove16 RatingFranceMoviesType = "agesAbove16" + // RatingFranceMoviesTypeVAgesAbove18 undocumented + RatingFranceMoviesTypeVAgesAbove18 RatingFranceMoviesType = "agesAbove18" +) + +var ( + // RatingFranceMoviesTypePAllAllowed is a pointer to RatingFranceMoviesTypeVAllAllowed + RatingFranceMoviesTypePAllAllowed = &_RatingFranceMoviesTypePAllAllowed + // RatingFranceMoviesTypePAllBlocked is a pointer to RatingFranceMoviesTypeVAllBlocked + RatingFranceMoviesTypePAllBlocked = &_RatingFranceMoviesTypePAllBlocked + // RatingFranceMoviesTypePAgesAbove10 is a pointer to RatingFranceMoviesTypeVAgesAbove10 + RatingFranceMoviesTypePAgesAbove10 = &_RatingFranceMoviesTypePAgesAbove10 + // RatingFranceMoviesTypePAgesAbove12 is a pointer to RatingFranceMoviesTypeVAgesAbove12 + RatingFranceMoviesTypePAgesAbove12 = &_RatingFranceMoviesTypePAgesAbove12 + // RatingFranceMoviesTypePAgesAbove16 is a pointer to RatingFranceMoviesTypeVAgesAbove16 + RatingFranceMoviesTypePAgesAbove16 = &_RatingFranceMoviesTypePAgesAbove16 + // RatingFranceMoviesTypePAgesAbove18 is a pointer to RatingFranceMoviesTypeVAgesAbove18 + RatingFranceMoviesTypePAgesAbove18 = &_RatingFranceMoviesTypePAgesAbove18 +) + +var ( + _RatingFranceMoviesTypePAllAllowed = RatingFranceMoviesTypeVAllAllowed + _RatingFranceMoviesTypePAllBlocked = RatingFranceMoviesTypeVAllBlocked + _RatingFranceMoviesTypePAgesAbove10 = RatingFranceMoviesTypeVAgesAbove10 + _RatingFranceMoviesTypePAgesAbove12 = RatingFranceMoviesTypeVAgesAbove12 + _RatingFranceMoviesTypePAgesAbove16 = RatingFranceMoviesTypeVAgesAbove16 + _RatingFranceMoviesTypePAgesAbove18 = RatingFranceMoviesTypeVAgesAbove18 +) + +// RatingFranceTelevisionType undocumented +type RatingFranceTelevisionType string + +const ( + // RatingFranceTelevisionTypeVAllAllowed undocumented + RatingFranceTelevisionTypeVAllAllowed RatingFranceTelevisionType = "allAllowed" + // RatingFranceTelevisionTypeVAllBlocked undocumented + RatingFranceTelevisionTypeVAllBlocked RatingFranceTelevisionType = "allBlocked" + // RatingFranceTelevisionTypeVAgesAbove10 undocumented + RatingFranceTelevisionTypeVAgesAbove10 RatingFranceTelevisionType = "agesAbove10" + // RatingFranceTelevisionTypeVAgesAbove12 undocumented + RatingFranceTelevisionTypeVAgesAbove12 RatingFranceTelevisionType = "agesAbove12" + // RatingFranceTelevisionTypeVAgesAbove16 undocumented + RatingFranceTelevisionTypeVAgesAbove16 RatingFranceTelevisionType = "agesAbove16" + // RatingFranceTelevisionTypeVAgesAbove18 undocumented + RatingFranceTelevisionTypeVAgesAbove18 RatingFranceTelevisionType = "agesAbove18" +) + +var ( + // RatingFranceTelevisionTypePAllAllowed is a pointer to RatingFranceTelevisionTypeVAllAllowed + RatingFranceTelevisionTypePAllAllowed = &_RatingFranceTelevisionTypePAllAllowed + // RatingFranceTelevisionTypePAllBlocked is a pointer to RatingFranceTelevisionTypeVAllBlocked + RatingFranceTelevisionTypePAllBlocked = &_RatingFranceTelevisionTypePAllBlocked + // RatingFranceTelevisionTypePAgesAbove10 is a pointer to RatingFranceTelevisionTypeVAgesAbove10 + RatingFranceTelevisionTypePAgesAbove10 = &_RatingFranceTelevisionTypePAgesAbove10 + // RatingFranceTelevisionTypePAgesAbove12 is a pointer to RatingFranceTelevisionTypeVAgesAbove12 + RatingFranceTelevisionTypePAgesAbove12 = &_RatingFranceTelevisionTypePAgesAbove12 + // RatingFranceTelevisionTypePAgesAbove16 is a pointer to RatingFranceTelevisionTypeVAgesAbove16 + RatingFranceTelevisionTypePAgesAbove16 = &_RatingFranceTelevisionTypePAgesAbove16 + // RatingFranceTelevisionTypePAgesAbove18 is a pointer to RatingFranceTelevisionTypeVAgesAbove18 + RatingFranceTelevisionTypePAgesAbove18 = &_RatingFranceTelevisionTypePAgesAbove18 +) + +var ( + _RatingFranceTelevisionTypePAllAllowed = RatingFranceTelevisionTypeVAllAllowed + _RatingFranceTelevisionTypePAllBlocked = RatingFranceTelevisionTypeVAllBlocked + _RatingFranceTelevisionTypePAgesAbove10 = RatingFranceTelevisionTypeVAgesAbove10 + _RatingFranceTelevisionTypePAgesAbove12 = RatingFranceTelevisionTypeVAgesAbove12 + _RatingFranceTelevisionTypePAgesAbove16 = RatingFranceTelevisionTypeVAgesAbove16 + _RatingFranceTelevisionTypePAgesAbove18 = RatingFranceTelevisionTypeVAgesAbove18 +) + +// RatingGermanyMoviesType undocumented +type RatingGermanyMoviesType string + +const ( + // RatingGermanyMoviesTypeVAllAllowed undocumented + RatingGermanyMoviesTypeVAllAllowed RatingGermanyMoviesType = "allAllowed" + // RatingGermanyMoviesTypeVAllBlocked undocumented + RatingGermanyMoviesTypeVAllBlocked RatingGermanyMoviesType = "allBlocked" + // RatingGermanyMoviesTypeVGeneral undocumented + RatingGermanyMoviesTypeVGeneral RatingGermanyMoviesType = "general" + // RatingGermanyMoviesTypeVAgesAbove6 undocumented + RatingGermanyMoviesTypeVAgesAbove6 RatingGermanyMoviesType = "agesAbove6" + // RatingGermanyMoviesTypeVAgesAbove12 undocumented + RatingGermanyMoviesTypeVAgesAbove12 RatingGermanyMoviesType = "agesAbove12" + // RatingGermanyMoviesTypeVAgesAbove16 undocumented + RatingGermanyMoviesTypeVAgesAbove16 RatingGermanyMoviesType = "agesAbove16" + // RatingGermanyMoviesTypeVAdults undocumented + RatingGermanyMoviesTypeVAdults RatingGermanyMoviesType = "adults" +) + +var ( + // RatingGermanyMoviesTypePAllAllowed is a pointer to RatingGermanyMoviesTypeVAllAllowed + RatingGermanyMoviesTypePAllAllowed = &_RatingGermanyMoviesTypePAllAllowed + // RatingGermanyMoviesTypePAllBlocked is a pointer to RatingGermanyMoviesTypeVAllBlocked + RatingGermanyMoviesTypePAllBlocked = &_RatingGermanyMoviesTypePAllBlocked + // RatingGermanyMoviesTypePGeneral is a pointer to RatingGermanyMoviesTypeVGeneral + RatingGermanyMoviesTypePGeneral = &_RatingGermanyMoviesTypePGeneral + // RatingGermanyMoviesTypePAgesAbove6 is a pointer to RatingGermanyMoviesTypeVAgesAbove6 + RatingGermanyMoviesTypePAgesAbove6 = &_RatingGermanyMoviesTypePAgesAbove6 + // RatingGermanyMoviesTypePAgesAbove12 is a pointer to RatingGermanyMoviesTypeVAgesAbove12 + RatingGermanyMoviesTypePAgesAbove12 = &_RatingGermanyMoviesTypePAgesAbove12 + // RatingGermanyMoviesTypePAgesAbove16 is a pointer to RatingGermanyMoviesTypeVAgesAbove16 + RatingGermanyMoviesTypePAgesAbove16 = &_RatingGermanyMoviesTypePAgesAbove16 + // RatingGermanyMoviesTypePAdults is a pointer to RatingGermanyMoviesTypeVAdults + RatingGermanyMoviesTypePAdults = &_RatingGermanyMoviesTypePAdults +) + +var ( + _RatingGermanyMoviesTypePAllAllowed = RatingGermanyMoviesTypeVAllAllowed + _RatingGermanyMoviesTypePAllBlocked = RatingGermanyMoviesTypeVAllBlocked + _RatingGermanyMoviesTypePGeneral = RatingGermanyMoviesTypeVGeneral + _RatingGermanyMoviesTypePAgesAbove6 = RatingGermanyMoviesTypeVAgesAbove6 + _RatingGermanyMoviesTypePAgesAbove12 = RatingGermanyMoviesTypeVAgesAbove12 + _RatingGermanyMoviesTypePAgesAbove16 = RatingGermanyMoviesTypeVAgesAbove16 + _RatingGermanyMoviesTypePAdults = RatingGermanyMoviesTypeVAdults +) + +// RatingGermanyTelevisionType undocumented +type RatingGermanyTelevisionType string + +const ( + // RatingGermanyTelevisionTypeVAllAllowed undocumented + RatingGermanyTelevisionTypeVAllAllowed RatingGermanyTelevisionType = "allAllowed" + // RatingGermanyTelevisionTypeVAllBlocked undocumented + RatingGermanyTelevisionTypeVAllBlocked RatingGermanyTelevisionType = "allBlocked" + // RatingGermanyTelevisionTypeVGeneral undocumented + RatingGermanyTelevisionTypeVGeneral RatingGermanyTelevisionType = "general" + // RatingGermanyTelevisionTypeVAgesAbove6 undocumented + RatingGermanyTelevisionTypeVAgesAbove6 RatingGermanyTelevisionType = "agesAbove6" + // RatingGermanyTelevisionTypeVAgesAbove12 undocumented + RatingGermanyTelevisionTypeVAgesAbove12 RatingGermanyTelevisionType = "agesAbove12" + // RatingGermanyTelevisionTypeVAgesAbove16 undocumented + RatingGermanyTelevisionTypeVAgesAbove16 RatingGermanyTelevisionType = "agesAbove16" + // RatingGermanyTelevisionTypeVAdults undocumented + RatingGermanyTelevisionTypeVAdults RatingGermanyTelevisionType = "adults" +) + +var ( + // RatingGermanyTelevisionTypePAllAllowed is a pointer to RatingGermanyTelevisionTypeVAllAllowed + RatingGermanyTelevisionTypePAllAllowed = &_RatingGermanyTelevisionTypePAllAllowed + // RatingGermanyTelevisionTypePAllBlocked is a pointer to RatingGermanyTelevisionTypeVAllBlocked + RatingGermanyTelevisionTypePAllBlocked = &_RatingGermanyTelevisionTypePAllBlocked + // RatingGermanyTelevisionTypePGeneral is a pointer to RatingGermanyTelevisionTypeVGeneral + RatingGermanyTelevisionTypePGeneral = &_RatingGermanyTelevisionTypePGeneral + // RatingGermanyTelevisionTypePAgesAbove6 is a pointer to RatingGermanyTelevisionTypeVAgesAbove6 + RatingGermanyTelevisionTypePAgesAbove6 = &_RatingGermanyTelevisionTypePAgesAbove6 + // RatingGermanyTelevisionTypePAgesAbove12 is a pointer to RatingGermanyTelevisionTypeVAgesAbove12 + RatingGermanyTelevisionTypePAgesAbove12 = &_RatingGermanyTelevisionTypePAgesAbove12 + // RatingGermanyTelevisionTypePAgesAbove16 is a pointer to RatingGermanyTelevisionTypeVAgesAbove16 + RatingGermanyTelevisionTypePAgesAbove16 = &_RatingGermanyTelevisionTypePAgesAbove16 + // RatingGermanyTelevisionTypePAdults is a pointer to RatingGermanyTelevisionTypeVAdults + RatingGermanyTelevisionTypePAdults = &_RatingGermanyTelevisionTypePAdults +) + +var ( + _RatingGermanyTelevisionTypePAllAllowed = RatingGermanyTelevisionTypeVAllAllowed + _RatingGermanyTelevisionTypePAllBlocked = RatingGermanyTelevisionTypeVAllBlocked + _RatingGermanyTelevisionTypePGeneral = RatingGermanyTelevisionTypeVGeneral + _RatingGermanyTelevisionTypePAgesAbove6 = RatingGermanyTelevisionTypeVAgesAbove6 + _RatingGermanyTelevisionTypePAgesAbove12 = RatingGermanyTelevisionTypeVAgesAbove12 + _RatingGermanyTelevisionTypePAgesAbove16 = RatingGermanyTelevisionTypeVAgesAbove16 + _RatingGermanyTelevisionTypePAdults = RatingGermanyTelevisionTypeVAdults +) + +// RatingIrelandMoviesType undocumented +type RatingIrelandMoviesType string + +const ( + // RatingIrelandMoviesTypeVAllAllowed undocumented + RatingIrelandMoviesTypeVAllAllowed RatingIrelandMoviesType = "allAllowed" + // RatingIrelandMoviesTypeVAllBlocked undocumented + RatingIrelandMoviesTypeVAllBlocked RatingIrelandMoviesType = "allBlocked" + // RatingIrelandMoviesTypeVGeneral undocumented + RatingIrelandMoviesTypeVGeneral RatingIrelandMoviesType = "general" + // RatingIrelandMoviesTypeVParentalGuidance undocumented + RatingIrelandMoviesTypeVParentalGuidance RatingIrelandMoviesType = "parentalGuidance" + // RatingIrelandMoviesTypeVAgesAbove12 undocumented + RatingIrelandMoviesTypeVAgesAbove12 RatingIrelandMoviesType = "agesAbove12" + // RatingIrelandMoviesTypeVAgesAbove15 undocumented + RatingIrelandMoviesTypeVAgesAbove15 RatingIrelandMoviesType = "agesAbove15" + // RatingIrelandMoviesTypeVAgesAbove16 undocumented + RatingIrelandMoviesTypeVAgesAbove16 RatingIrelandMoviesType = "agesAbove16" + // RatingIrelandMoviesTypeVAdults undocumented + RatingIrelandMoviesTypeVAdults RatingIrelandMoviesType = "adults" +) + +var ( + // RatingIrelandMoviesTypePAllAllowed is a pointer to RatingIrelandMoviesTypeVAllAllowed + RatingIrelandMoviesTypePAllAllowed = &_RatingIrelandMoviesTypePAllAllowed + // RatingIrelandMoviesTypePAllBlocked is a pointer to RatingIrelandMoviesTypeVAllBlocked + RatingIrelandMoviesTypePAllBlocked = &_RatingIrelandMoviesTypePAllBlocked + // RatingIrelandMoviesTypePGeneral is a pointer to RatingIrelandMoviesTypeVGeneral + RatingIrelandMoviesTypePGeneral = &_RatingIrelandMoviesTypePGeneral + // RatingIrelandMoviesTypePParentalGuidance is a pointer to RatingIrelandMoviesTypeVParentalGuidance + RatingIrelandMoviesTypePParentalGuidance = &_RatingIrelandMoviesTypePParentalGuidance + // RatingIrelandMoviesTypePAgesAbove12 is a pointer to RatingIrelandMoviesTypeVAgesAbove12 + RatingIrelandMoviesTypePAgesAbove12 = &_RatingIrelandMoviesTypePAgesAbove12 + // RatingIrelandMoviesTypePAgesAbove15 is a pointer to RatingIrelandMoviesTypeVAgesAbove15 + RatingIrelandMoviesTypePAgesAbove15 = &_RatingIrelandMoviesTypePAgesAbove15 + // RatingIrelandMoviesTypePAgesAbove16 is a pointer to RatingIrelandMoviesTypeVAgesAbove16 + RatingIrelandMoviesTypePAgesAbove16 = &_RatingIrelandMoviesTypePAgesAbove16 + // RatingIrelandMoviesTypePAdults is a pointer to RatingIrelandMoviesTypeVAdults + RatingIrelandMoviesTypePAdults = &_RatingIrelandMoviesTypePAdults +) + +var ( + _RatingIrelandMoviesTypePAllAllowed = RatingIrelandMoviesTypeVAllAllowed + _RatingIrelandMoviesTypePAllBlocked = RatingIrelandMoviesTypeVAllBlocked + _RatingIrelandMoviesTypePGeneral = RatingIrelandMoviesTypeVGeneral + _RatingIrelandMoviesTypePParentalGuidance = RatingIrelandMoviesTypeVParentalGuidance + _RatingIrelandMoviesTypePAgesAbove12 = RatingIrelandMoviesTypeVAgesAbove12 + _RatingIrelandMoviesTypePAgesAbove15 = RatingIrelandMoviesTypeVAgesAbove15 + _RatingIrelandMoviesTypePAgesAbove16 = RatingIrelandMoviesTypeVAgesAbove16 + _RatingIrelandMoviesTypePAdults = RatingIrelandMoviesTypeVAdults +) + +// RatingIrelandTelevisionType undocumented +type RatingIrelandTelevisionType string + +const ( + // RatingIrelandTelevisionTypeVAllAllowed undocumented + RatingIrelandTelevisionTypeVAllAllowed RatingIrelandTelevisionType = "allAllowed" + // RatingIrelandTelevisionTypeVAllBlocked undocumented + RatingIrelandTelevisionTypeVAllBlocked RatingIrelandTelevisionType = "allBlocked" + // RatingIrelandTelevisionTypeVGeneral undocumented + RatingIrelandTelevisionTypeVGeneral RatingIrelandTelevisionType = "general" + // RatingIrelandTelevisionTypeVChildren undocumented + RatingIrelandTelevisionTypeVChildren RatingIrelandTelevisionType = "children" + // RatingIrelandTelevisionTypeVYoungAdults undocumented + RatingIrelandTelevisionTypeVYoungAdults RatingIrelandTelevisionType = "youngAdults" + // RatingIrelandTelevisionTypeVParentalSupervision undocumented + RatingIrelandTelevisionTypeVParentalSupervision RatingIrelandTelevisionType = "parentalSupervision" + // RatingIrelandTelevisionTypeVMature undocumented + RatingIrelandTelevisionTypeVMature RatingIrelandTelevisionType = "mature" +) + +var ( + // RatingIrelandTelevisionTypePAllAllowed is a pointer to RatingIrelandTelevisionTypeVAllAllowed + RatingIrelandTelevisionTypePAllAllowed = &_RatingIrelandTelevisionTypePAllAllowed + // RatingIrelandTelevisionTypePAllBlocked is a pointer to RatingIrelandTelevisionTypeVAllBlocked + RatingIrelandTelevisionTypePAllBlocked = &_RatingIrelandTelevisionTypePAllBlocked + // RatingIrelandTelevisionTypePGeneral is a pointer to RatingIrelandTelevisionTypeVGeneral + RatingIrelandTelevisionTypePGeneral = &_RatingIrelandTelevisionTypePGeneral + // RatingIrelandTelevisionTypePChildren is a pointer to RatingIrelandTelevisionTypeVChildren + RatingIrelandTelevisionTypePChildren = &_RatingIrelandTelevisionTypePChildren + // RatingIrelandTelevisionTypePYoungAdults is a pointer to RatingIrelandTelevisionTypeVYoungAdults + RatingIrelandTelevisionTypePYoungAdults = &_RatingIrelandTelevisionTypePYoungAdults + // RatingIrelandTelevisionTypePParentalSupervision is a pointer to RatingIrelandTelevisionTypeVParentalSupervision + RatingIrelandTelevisionTypePParentalSupervision = &_RatingIrelandTelevisionTypePParentalSupervision + // RatingIrelandTelevisionTypePMature is a pointer to RatingIrelandTelevisionTypeVMature + RatingIrelandTelevisionTypePMature = &_RatingIrelandTelevisionTypePMature +) + +var ( + _RatingIrelandTelevisionTypePAllAllowed = RatingIrelandTelevisionTypeVAllAllowed + _RatingIrelandTelevisionTypePAllBlocked = RatingIrelandTelevisionTypeVAllBlocked + _RatingIrelandTelevisionTypePGeneral = RatingIrelandTelevisionTypeVGeneral + _RatingIrelandTelevisionTypePChildren = RatingIrelandTelevisionTypeVChildren + _RatingIrelandTelevisionTypePYoungAdults = RatingIrelandTelevisionTypeVYoungAdults + _RatingIrelandTelevisionTypePParentalSupervision = RatingIrelandTelevisionTypeVParentalSupervision + _RatingIrelandTelevisionTypePMature = RatingIrelandTelevisionTypeVMature +) + +// RatingJapanMoviesType undocumented +type RatingJapanMoviesType string + +const ( + // RatingJapanMoviesTypeVAllAllowed undocumented + RatingJapanMoviesTypeVAllAllowed RatingJapanMoviesType = "allAllowed" + // RatingJapanMoviesTypeVAllBlocked undocumented + RatingJapanMoviesTypeVAllBlocked RatingJapanMoviesType = "allBlocked" + // RatingJapanMoviesTypeVGeneral undocumented + RatingJapanMoviesTypeVGeneral RatingJapanMoviesType = "general" + // RatingJapanMoviesTypeVParentalGuidance undocumented + RatingJapanMoviesTypeVParentalGuidance RatingJapanMoviesType = "parentalGuidance" + // RatingJapanMoviesTypeVAgesAbove15 undocumented + RatingJapanMoviesTypeVAgesAbove15 RatingJapanMoviesType = "agesAbove15" + // RatingJapanMoviesTypeVAgesAbove18 undocumented + RatingJapanMoviesTypeVAgesAbove18 RatingJapanMoviesType = "agesAbove18" +) + +var ( + // RatingJapanMoviesTypePAllAllowed is a pointer to RatingJapanMoviesTypeVAllAllowed + RatingJapanMoviesTypePAllAllowed = &_RatingJapanMoviesTypePAllAllowed + // RatingJapanMoviesTypePAllBlocked is a pointer to RatingJapanMoviesTypeVAllBlocked + RatingJapanMoviesTypePAllBlocked = &_RatingJapanMoviesTypePAllBlocked + // RatingJapanMoviesTypePGeneral is a pointer to RatingJapanMoviesTypeVGeneral + RatingJapanMoviesTypePGeneral = &_RatingJapanMoviesTypePGeneral + // RatingJapanMoviesTypePParentalGuidance is a pointer to RatingJapanMoviesTypeVParentalGuidance + RatingJapanMoviesTypePParentalGuidance = &_RatingJapanMoviesTypePParentalGuidance + // RatingJapanMoviesTypePAgesAbove15 is a pointer to RatingJapanMoviesTypeVAgesAbove15 + RatingJapanMoviesTypePAgesAbove15 = &_RatingJapanMoviesTypePAgesAbove15 + // RatingJapanMoviesTypePAgesAbove18 is a pointer to RatingJapanMoviesTypeVAgesAbove18 + RatingJapanMoviesTypePAgesAbove18 = &_RatingJapanMoviesTypePAgesAbove18 +) + +var ( + _RatingJapanMoviesTypePAllAllowed = RatingJapanMoviesTypeVAllAllowed + _RatingJapanMoviesTypePAllBlocked = RatingJapanMoviesTypeVAllBlocked + _RatingJapanMoviesTypePGeneral = RatingJapanMoviesTypeVGeneral + _RatingJapanMoviesTypePParentalGuidance = RatingJapanMoviesTypeVParentalGuidance + _RatingJapanMoviesTypePAgesAbove15 = RatingJapanMoviesTypeVAgesAbove15 + _RatingJapanMoviesTypePAgesAbove18 = RatingJapanMoviesTypeVAgesAbove18 +) + +// RatingJapanTelevisionType undocumented +type RatingJapanTelevisionType string + +const ( + // RatingJapanTelevisionTypeVAllAllowed undocumented + RatingJapanTelevisionTypeVAllAllowed RatingJapanTelevisionType = "allAllowed" + // RatingJapanTelevisionTypeVAllBlocked undocumented + RatingJapanTelevisionTypeVAllBlocked RatingJapanTelevisionType = "allBlocked" + // RatingJapanTelevisionTypeVExplicitAllowed undocumented + RatingJapanTelevisionTypeVExplicitAllowed RatingJapanTelevisionType = "explicitAllowed" +) + +var ( + // RatingJapanTelevisionTypePAllAllowed is a pointer to RatingJapanTelevisionTypeVAllAllowed + RatingJapanTelevisionTypePAllAllowed = &_RatingJapanTelevisionTypePAllAllowed + // RatingJapanTelevisionTypePAllBlocked is a pointer to RatingJapanTelevisionTypeVAllBlocked + RatingJapanTelevisionTypePAllBlocked = &_RatingJapanTelevisionTypePAllBlocked + // RatingJapanTelevisionTypePExplicitAllowed is a pointer to RatingJapanTelevisionTypeVExplicitAllowed + RatingJapanTelevisionTypePExplicitAllowed = &_RatingJapanTelevisionTypePExplicitAllowed +) + +var ( + _RatingJapanTelevisionTypePAllAllowed = RatingJapanTelevisionTypeVAllAllowed + _RatingJapanTelevisionTypePAllBlocked = RatingJapanTelevisionTypeVAllBlocked + _RatingJapanTelevisionTypePExplicitAllowed = RatingJapanTelevisionTypeVExplicitAllowed +) + +// RatingNewZealandMoviesType undocumented +type RatingNewZealandMoviesType string + +const ( + // RatingNewZealandMoviesTypeVAllAllowed undocumented + RatingNewZealandMoviesTypeVAllAllowed RatingNewZealandMoviesType = "allAllowed" + // RatingNewZealandMoviesTypeVAllBlocked undocumented + RatingNewZealandMoviesTypeVAllBlocked RatingNewZealandMoviesType = "allBlocked" + // RatingNewZealandMoviesTypeVGeneral undocumented + RatingNewZealandMoviesTypeVGeneral RatingNewZealandMoviesType = "general" + // RatingNewZealandMoviesTypeVParentalGuidance undocumented + RatingNewZealandMoviesTypeVParentalGuidance RatingNewZealandMoviesType = "parentalGuidance" + // RatingNewZealandMoviesTypeVMature undocumented + RatingNewZealandMoviesTypeVMature RatingNewZealandMoviesType = "mature" + // RatingNewZealandMoviesTypeVAgesAbove13 undocumented + RatingNewZealandMoviesTypeVAgesAbove13 RatingNewZealandMoviesType = "agesAbove13" + // RatingNewZealandMoviesTypeVAgesAbove15 undocumented + RatingNewZealandMoviesTypeVAgesAbove15 RatingNewZealandMoviesType = "agesAbove15" + // RatingNewZealandMoviesTypeVAgesAbove16 undocumented + RatingNewZealandMoviesTypeVAgesAbove16 RatingNewZealandMoviesType = "agesAbove16" + // RatingNewZealandMoviesTypeVAgesAbove18 undocumented + RatingNewZealandMoviesTypeVAgesAbove18 RatingNewZealandMoviesType = "agesAbove18" + // RatingNewZealandMoviesTypeVRestricted undocumented + RatingNewZealandMoviesTypeVRestricted RatingNewZealandMoviesType = "restricted" + // RatingNewZealandMoviesTypeVAgesAbove16Restricted undocumented + RatingNewZealandMoviesTypeVAgesAbove16Restricted RatingNewZealandMoviesType = "agesAbove16Restricted" +) + +var ( + // RatingNewZealandMoviesTypePAllAllowed is a pointer to RatingNewZealandMoviesTypeVAllAllowed + RatingNewZealandMoviesTypePAllAllowed = &_RatingNewZealandMoviesTypePAllAllowed + // RatingNewZealandMoviesTypePAllBlocked is a pointer to RatingNewZealandMoviesTypeVAllBlocked + RatingNewZealandMoviesTypePAllBlocked = &_RatingNewZealandMoviesTypePAllBlocked + // RatingNewZealandMoviesTypePGeneral is a pointer to RatingNewZealandMoviesTypeVGeneral + RatingNewZealandMoviesTypePGeneral = &_RatingNewZealandMoviesTypePGeneral + // RatingNewZealandMoviesTypePParentalGuidance is a pointer to RatingNewZealandMoviesTypeVParentalGuidance + RatingNewZealandMoviesTypePParentalGuidance = &_RatingNewZealandMoviesTypePParentalGuidance + // RatingNewZealandMoviesTypePMature is a pointer to RatingNewZealandMoviesTypeVMature + RatingNewZealandMoviesTypePMature = &_RatingNewZealandMoviesTypePMature + // RatingNewZealandMoviesTypePAgesAbove13 is a pointer to RatingNewZealandMoviesTypeVAgesAbove13 + RatingNewZealandMoviesTypePAgesAbove13 = &_RatingNewZealandMoviesTypePAgesAbove13 + // RatingNewZealandMoviesTypePAgesAbove15 is a pointer to RatingNewZealandMoviesTypeVAgesAbove15 + RatingNewZealandMoviesTypePAgesAbove15 = &_RatingNewZealandMoviesTypePAgesAbove15 + // RatingNewZealandMoviesTypePAgesAbove16 is a pointer to RatingNewZealandMoviesTypeVAgesAbove16 + RatingNewZealandMoviesTypePAgesAbove16 = &_RatingNewZealandMoviesTypePAgesAbove16 + // RatingNewZealandMoviesTypePAgesAbove18 is a pointer to RatingNewZealandMoviesTypeVAgesAbove18 + RatingNewZealandMoviesTypePAgesAbove18 = &_RatingNewZealandMoviesTypePAgesAbove18 + // RatingNewZealandMoviesTypePRestricted is a pointer to RatingNewZealandMoviesTypeVRestricted + RatingNewZealandMoviesTypePRestricted = &_RatingNewZealandMoviesTypePRestricted + // RatingNewZealandMoviesTypePAgesAbove16Restricted is a pointer to RatingNewZealandMoviesTypeVAgesAbove16Restricted + RatingNewZealandMoviesTypePAgesAbove16Restricted = &_RatingNewZealandMoviesTypePAgesAbove16Restricted +) + +var ( + _RatingNewZealandMoviesTypePAllAllowed = RatingNewZealandMoviesTypeVAllAllowed + _RatingNewZealandMoviesTypePAllBlocked = RatingNewZealandMoviesTypeVAllBlocked + _RatingNewZealandMoviesTypePGeneral = RatingNewZealandMoviesTypeVGeneral + _RatingNewZealandMoviesTypePParentalGuidance = RatingNewZealandMoviesTypeVParentalGuidance + _RatingNewZealandMoviesTypePMature = RatingNewZealandMoviesTypeVMature + _RatingNewZealandMoviesTypePAgesAbove13 = RatingNewZealandMoviesTypeVAgesAbove13 + _RatingNewZealandMoviesTypePAgesAbove15 = RatingNewZealandMoviesTypeVAgesAbove15 + _RatingNewZealandMoviesTypePAgesAbove16 = RatingNewZealandMoviesTypeVAgesAbove16 + _RatingNewZealandMoviesTypePAgesAbove18 = RatingNewZealandMoviesTypeVAgesAbove18 + _RatingNewZealandMoviesTypePRestricted = RatingNewZealandMoviesTypeVRestricted + _RatingNewZealandMoviesTypePAgesAbove16Restricted = RatingNewZealandMoviesTypeVAgesAbove16Restricted +) + +// RatingNewZealandTelevisionType undocumented +type RatingNewZealandTelevisionType string + +const ( + // RatingNewZealandTelevisionTypeVAllAllowed undocumented + RatingNewZealandTelevisionTypeVAllAllowed RatingNewZealandTelevisionType = "allAllowed" + // RatingNewZealandTelevisionTypeVAllBlocked undocumented + RatingNewZealandTelevisionTypeVAllBlocked RatingNewZealandTelevisionType = "allBlocked" + // RatingNewZealandTelevisionTypeVGeneral undocumented + RatingNewZealandTelevisionTypeVGeneral RatingNewZealandTelevisionType = "general" + // RatingNewZealandTelevisionTypeVParentalGuidance undocumented + RatingNewZealandTelevisionTypeVParentalGuidance RatingNewZealandTelevisionType = "parentalGuidance" + // RatingNewZealandTelevisionTypeVAdults undocumented + RatingNewZealandTelevisionTypeVAdults RatingNewZealandTelevisionType = "adults" +) + +var ( + // RatingNewZealandTelevisionTypePAllAllowed is a pointer to RatingNewZealandTelevisionTypeVAllAllowed + RatingNewZealandTelevisionTypePAllAllowed = &_RatingNewZealandTelevisionTypePAllAllowed + // RatingNewZealandTelevisionTypePAllBlocked is a pointer to RatingNewZealandTelevisionTypeVAllBlocked + RatingNewZealandTelevisionTypePAllBlocked = &_RatingNewZealandTelevisionTypePAllBlocked + // RatingNewZealandTelevisionTypePGeneral is a pointer to RatingNewZealandTelevisionTypeVGeneral + RatingNewZealandTelevisionTypePGeneral = &_RatingNewZealandTelevisionTypePGeneral + // RatingNewZealandTelevisionTypePParentalGuidance is a pointer to RatingNewZealandTelevisionTypeVParentalGuidance + RatingNewZealandTelevisionTypePParentalGuidance = &_RatingNewZealandTelevisionTypePParentalGuidance + // RatingNewZealandTelevisionTypePAdults is a pointer to RatingNewZealandTelevisionTypeVAdults + RatingNewZealandTelevisionTypePAdults = &_RatingNewZealandTelevisionTypePAdults +) + +var ( + _RatingNewZealandTelevisionTypePAllAllowed = RatingNewZealandTelevisionTypeVAllAllowed + _RatingNewZealandTelevisionTypePAllBlocked = RatingNewZealandTelevisionTypeVAllBlocked + _RatingNewZealandTelevisionTypePGeneral = RatingNewZealandTelevisionTypeVGeneral + _RatingNewZealandTelevisionTypePParentalGuidance = RatingNewZealandTelevisionTypeVParentalGuidance + _RatingNewZealandTelevisionTypePAdults = RatingNewZealandTelevisionTypeVAdults +) + +// RatingUnitedKingdomMoviesType undocumented +type RatingUnitedKingdomMoviesType string + +const ( + // RatingUnitedKingdomMoviesTypeVAllAllowed undocumented + RatingUnitedKingdomMoviesTypeVAllAllowed RatingUnitedKingdomMoviesType = "allAllowed" + // RatingUnitedKingdomMoviesTypeVAllBlocked undocumented + RatingUnitedKingdomMoviesTypeVAllBlocked RatingUnitedKingdomMoviesType = "allBlocked" + // RatingUnitedKingdomMoviesTypeVGeneral undocumented + RatingUnitedKingdomMoviesTypeVGeneral RatingUnitedKingdomMoviesType = "general" + // RatingUnitedKingdomMoviesTypeVUniversalChildren undocumented + RatingUnitedKingdomMoviesTypeVUniversalChildren RatingUnitedKingdomMoviesType = "universalChildren" + // RatingUnitedKingdomMoviesTypeVParentalGuidance undocumented + RatingUnitedKingdomMoviesTypeVParentalGuidance RatingUnitedKingdomMoviesType = "parentalGuidance" + // RatingUnitedKingdomMoviesTypeVAgesAbove12Video undocumented + RatingUnitedKingdomMoviesTypeVAgesAbove12Video RatingUnitedKingdomMoviesType = "agesAbove12Video" + // RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema undocumented + RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema RatingUnitedKingdomMoviesType = "agesAbove12Cinema" + // RatingUnitedKingdomMoviesTypeVAgesAbove15 undocumented + RatingUnitedKingdomMoviesTypeVAgesAbove15 RatingUnitedKingdomMoviesType = "agesAbove15" + // RatingUnitedKingdomMoviesTypeVAdults undocumented + RatingUnitedKingdomMoviesTypeVAdults RatingUnitedKingdomMoviesType = "adults" +) + +var ( + // RatingUnitedKingdomMoviesTypePAllAllowed is a pointer to RatingUnitedKingdomMoviesTypeVAllAllowed + RatingUnitedKingdomMoviesTypePAllAllowed = &_RatingUnitedKingdomMoviesTypePAllAllowed + // RatingUnitedKingdomMoviesTypePAllBlocked is a pointer to RatingUnitedKingdomMoviesTypeVAllBlocked + RatingUnitedKingdomMoviesTypePAllBlocked = &_RatingUnitedKingdomMoviesTypePAllBlocked + // RatingUnitedKingdomMoviesTypePGeneral is a pointer to RatingUnitedKingdomMoviesTypeVGeneral + RatingUnitedKingdomMoviesTypePGeneral = &_RatingUnitedKingdomMoviesTypePGeneral + // RatingUnitedKingdomMoviesTypePUniversalChildren is a pointer to RatingUnitedKingdomMoviesTypeVUniversalChildren + RatingUnitedKingdomMoviesTypePUniversalChildren = &_RatingUnitedKingdomMoviesTypePUniversalChildren + // RatingUnitedKingdomMoviesTypePParentalGuidance is a pointer to RatingUnitedKingdomMoviesTypeVParentalGuidance + RatingUnitedKingdomMoviesTypePParentalGuidance = &_RatingUnitedKingdomMoviesTypePParentalGuidance + // RatingUnitedKingdomMoviesTypePAgesAbove12Video is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Video + RatingUnitedKingdomMoviesTypePAgesAbove12Video = &_RatingUnitedKingdomMoviesTypePAgesAbove12Video + // RatingUnitedKingdomMoviesTypePAgesAbove12Cinema is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema + RatingUnitedKingdomMoviesTypePAgesAbove12Cinema = &_RatingUnitedKingdomMoviesTypePAgesAbove12Cinema + // RatingUnitedKingdomMoviesTypePAgesAbove15 is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove15 + RatingUnitedKingdomMoviesTypePAgesAbove15 = &_RatingUnitedKingdomMoviesTypePAgesAbove15 + // RatingUnitedKingdomMoviesTypePAdults is a pointer to RatingUnitedKingdomMoviesTypeVAdults + RatingUnitedKingdomMoviesTypePAdults = &_RatingUnitedKingdomMoviesTypePAdults +) + +var ( + _RatingUnitedKingdomMoviesTypePAllAllowed = RatingUnitedKingdomMoviesTypeVAllAllowed + _RatingUnitedKingdomMoviesTypePAllBlocked = RatingUnitedKingdomMoviesTypeVAllBlocked + _RatingUnitedKingdomMoviesTypePGeneral = RatingUnitedKingdomMoviesTypeVGeneral + _RatingUnitedKingdomMoviesTypePUniversalChildren = RatingUnitedKingdomMoviesTypeVUniversalChildren + _RatingUnitedKingdomMoviesTypePParentalGuidance = RatingUnitedKingdomMoviesTypeVParentalGuidance + _RatingUnitedKingdomMoviesTypePAgesAbove12Video = RatingUnitedKingdomMoviesTypeVAgesAbove12Video + _RatingUnitedKingdomMoviesTypePAgesAbove12Cinema = RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema + _RatingUnitedKingdomMoviesTypePAgesAbove15 = RatingUnitedKingdomMoviesTypeVAgesAbove15 + _RatingUnitedKingdomMoviesTypePAdults = RatingUnitedKingdomMoviesTypeVAdults +) + +// RatingUnitedKingdomTelevisionType undocumented +type RatingUnitedKingdomTelevisionType string + +const ( + // RatingUnitedKingdomTelevisionTypeVAllAllowed undocumented + RatingUnitedKingdomTelevisionTypeVAllAllowed RatingUnitedKingdomTelevisionType = "allAllowed" + // RatingUnitedKingdomTelevisionTypeVAllBlocked undocumented + RatingUnitedKingdomTelevisionTypeVAllBlocked RatingUnitedKingdomTelevisionType = "allBlocked" + // RatingUnitedKingdomTelevisionTypeVCaution undocumented + RatingUnitedKingdomTelevisionTypeVCaution RatingUnitedKingdomTelevisionType = "caution" +) + +var ( + // RatingUnitedKingdomTelevisionTypePAllAllowed is a pointer to RatingUnitedKingdomTelevisionTypeVAllAllowed + RatingUnitedKingdomTelevisionTypePAllAllowed = &_RatingUnitedKingdomTelevisionTypePAllAllowed + // RatingUnitedKingdomTelevisionTypePAllBlocked is a pointer to RatingUnitedKingdomTelevisionTypeVAllBlocked + RatingUnitedKingdomTelevisionTypePAllBlocked = &_RatingUnitedKingdomTelevisionTypePAllBlocked + // RatingUnitedKingdomTelevisionTypePCaution is a pointer to RatingUnitedKingdomTelevisionTypeVCaution + RatingUnitedKingdomTelevisionTypePCaution = &_RatingUnitedKingdomTelevisionTypePCaution +) + +var ( + _RatingUnitedKingdomTelevisionTypePAllAllowed = RatingUnitedKingdomTelevisionTypeVAllAllowed + _RatingUnitedKingdomTelevisionTypePAllBlocked = RatingUnitedKingdomTelevisionTypeVAllBlocked + _RatingUnitedKingdomTelevisionTypePCaution = RatingUnitedKingdomTelevisionTypeVCaution +) + +// RatingUnitedStatesMoviesType undocumented +type RatingUnitedStatesMoviesType string + +const ( + // RatingUnitedStatesMoviesTypeVAllAllowed undocumented + RatingUnitedStatesMoviesTypeVAllAllowed RatingUnitedStatesMoviesType = "allAllowed" + // RatingUnitedStatesMoviesTypeVAllBlocked undocumented + RatingUnitedStatesMoviesTypeVAllBlocked RatingUnitedStatesMoviesType = "allBlocked" + // RatingUnitedStatesMoviesTypeVGeneral undocumented + RatingUnitedStatesMoviesTypeVGeneral RatingUnitedStatesMoviesType = "general" + // RatingUnitedStatesMoviesTypeVParentalGuidance undocumented + RatingUnitedStatesMoviesTypeVParentalGuidance RatingUnitedStatesMoviesType = "parentalGuidance" + // RatingUnitedStatesMoviesTypeVParentalGuidance13 undocumented + RatingUnitedStatesMoviesTypeVParentalGuidance13 RatingUnitedStatesMoviesType = "parentalGuidance13" + // RatingUnitedStatesMoviesTypeVRestricted undocumented + RatingUnitedStatesMoviesTypeVRestricted RatingUnitedStatesMoviesType = "restricted" + // RatingUnitedStatesMoviesTypeVAdults undocumented + RatingUnitedStatesMoviesTypeVAdults RatingUnitedStatesMoviesType = "adults" +) + +var ( + // RatingUnitedStatesMoviesTypePAllAllowed is a pointer to RatingUnitedStatesMoviesTypeVAllAllowed + RatingUnitedStatesMoviesTypePAllAllowed = &_RatingUnitedStatesMoviesTypePAllAllowed + // RatingUnitedStatesMoviesTypePAllBlocked is a pointer to RatingUnitedStatesMoviesTypeVAllBlocked + RatingUnitedStatesMoviesTypePAllBlocked = &_RatingUnitedStatesMoviesTypePAllBlocked + // RatingUnitedStatesMoviesTypePGeneral is a pointer to RatingUnitedStatesMoviesTypeVGeneral + RatingUnitedStatesMoviesTypePGeneral = &_RatingUnitedStatesMoviesTypePGeneral + // RatingUnitedStatesMoviesTypePParentalGuidance is a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance + RatingUnitedStatesMoviesTypePParentalGuidance = &_RatingUnitedStatesMoviesTypePParentalGuidance + // RatingUnitedStatesMoviesTypePParentalGuidance13 is a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance13 + RatingUnitedStatesMoviesTypePParentalGuidance13 = &_RatingUnitedStatesMoviesTypePParentalGuidance13 + // RatingUnitedStatesMoviesTypePRestricted is a pointer to RatingUnitedStatesMoviesTypeVRestricted + RatingUnitedStatesMoviesTypePRestricted = &_RatingUnitedStatesMoviesTypePRestricted + // RatingUnitedStatesMoviesTypePAdults is a pointer to RatingUnitedStatesMoviesTypeVAdults + RatingUnitedStatesMoviesTypePAdults = &_RatingUnitedStatesMoviesTypePAdults +) + +var ( + _RatingUnitedStatesMoviesTypePAllAllowed = RatingUnitedStatesMoviesTypeVAllAllowed + _RatingUnitedStatesMoviesTypePAllBlocked = RatingUnitedStatesMoviesTypeVAllBlocked + _RatingUnitedStatesMoviesTypePGeneral = RatingUnitedStatesMoviesTypeVGeneral + _RatingUnitedStatesMoviesTypePParentalGuidance = RatingUnitedStatesMoviesTypeVParentalGuidance + _RatingUnitedStatesMoviesTypePParentalGuidance13 = RatingUnitedStatesMoviesTypeVParentalGuidance13 + _RatingUnitedStatesMoviesTypePRestricted = RatingUnitedStatesMoviesTypeVRestricted + _RatingUnitedStatesMoviesTypePAdults = RatingUnitedStatesMoviesTypeVAdults +) + +// RatingUnitedStatesTelevisionType undocumented +type RatingUnitedStatesTelevisionType string + +const ( + // RatingUnitedStatesTelevisionTypeVAllAllowed undocumented + RatingUnitedStatesTelevisionTypeVAllAllowed RatingUnitedStatesTelevisionType = "allAllowed" + // RatingUnitedStatesTelevisionTypeVAllBlocked undocumented + RatingUnitedStatesTelevisionTypeVAllBlocked RatingUnitedStatesTelevisionType = "allBlocked" + // RatingUnitedStatesTelevisionTypeVChildrenAll undocumented + RatingUnitedStatesTelevisionTypeVChildrenAll RatingUnitedStatesTelevisionType = "childrenAll" + // RatingUnitedStatesTelevisionTypeVChildrenAbove7 undocumented + RatingUnitedStatesTelevisionTypeVChildrenAbove7 RatingUnitedStatesTelevisionType = "childrenAbove7" + // RatingUnitedStatesTelevisionTypeVGeneral undocumented + RatingUnitedStatesTelevisionTypeVGeneral RatingUnitedStatesTelevisionType = "general" + // RatingUnitedStatesTelevisionTypeVParentalGuidance undocumented + RatingUnitedStatesTelevisionTypeVParentalGuidance RatingUnitedStatesTelevisionType = "parentalGuidance" + // RatingUnitedStatesTelevisionTypeVChildrenAbove14 undocumented + RatingUnitedStatesTelevisionTypeVChildrenAbove14 RatingUnitedStatesTelevisionType = "childrenAbove14" + // RatingUnitedStatesTelevisionTypeVAdults undocumented + RatingUnitedStatesTelevisionTypeVAdults RatingUnitedStatesTelevisionType = "adults" +) + +var ( + // RatingUnitedStatesTelevisionTypePAllAllowed is a pointer to RatingUnitedStatesTelevisionTypeVAllAllowed + RatingUnitedStatesTelevisionTypePAllAllowed = &_RatingUnitedStatesTelevisionTypePAllAllowed + // RatingUnitedStatesTelevisionTypePAllBlocked is a pointer to RatingUnitedStatesTelevisionTypeVAllBlocked + RatingUnitedStatesTelevisionTypePAllBlocked = &_RatingUnitedStatesTelevisionTypePAllBlocked + // RatingUnitedStatesTelevisionTypePChildrenAll is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAll + RatingUnitedStatesTelevisionTypePChildrenAll = &_RatingUnitedStatesTelevisionTypePChildrenAll + // RatingUnitedStatesTelevisionTypePChildrenAbove7 is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove7 + RatingUnitedStatesTelevisionTypePChildrenAbove7 = &_RatingUnitedStatesTelevisionTypePChildrenAbove7 + // RatingUnitedStatesTelevisionTypePGeneral is a pointer to RatingUnitedStatesTelevisionTypeVGeneral + RatingUnitedStatesTelevisionTypePGeneral = &_RatingUnitedStatesTelevisionTypePGeneral + // RatingUnitedStatesTelevisionTypePParentalGuidance is a pointer to RatingUnitedStatesTelevisionTypeVParentalGuidance + RatingUnitedStatesTelevisionTypePParentalGuidance = &_RatingUnitedStatesTelevisionTypePParentalGuidance + // RatingUnitedStatesTelevisionTypePChildrenAbove14 is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove14 + RatingUnitedStatesTelevisionTypePChildrenAbove14 = &_RatingUnitedStatesTelevisionTypePChildrenAbove14 + // RatingUnitedStatesTelevisionTypePAdults is a pointer to RatingUnitedStatesTelevisionTypeVAdults + RatingUnitedStatesTelevisionTypePAdults = &_RatingUnitedStatesTelevisionTypePAdults +) + +var ( + _RatingUnitedStatesTelevisionTypePAllAllowed = RatingUnitedStatesTelevisionTypeVAllAllowed + _RatingUnitedStatesTelevisionTypePAllBlocked = RatingUnitedStatesTelevisionTypeVAllBlocked + _RatingUnitedStatesTelevisionTypePChildrenAll = RatingUnitedStatesTelevisionTypeVChildrenAll + _RatingUnitedStatesTelevisionTypePChildrenAbove7 = RatingUnitedStatesTelevisionTypeVChildrenAbove7 + _RatingUnitedStatesTelevisionTypePGeneral = RatingUnitedStatesTelevisionTypeVGeneral + _RatingUnitedStatesTelevisionTypePParentalGuidance = RatingUnitedStatesTelevisionTypeVParentalGuidance + _RatingUnitedStatesTelevisionTypePChildrenAbove14 = RatingUnitedStatesTelevisionTypeVChildrenAbove14 + _RatingUnitedStatesTelevisionTypePAdults = RatingUnitedStatesTelevisionTypeVAdults +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go new file mode 100644 index 00000000..09b3374f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RecipientScopeType undocumented +type RecipientScopeType string + +const ( + // RecipientScopeTypeVNone undocumented + RecipientScopeTypeVNone RecipientScopeType = "none" + // RecipientScopeTypeVInternal undocumented + RecipientScopeTypeVInternal RecipientScopeType = "internal" + // RecipientScopeTypeVExternal undocumented + RecipientScopeTypeVExternal RecipientScopeType = "external" + // RecipientScopeTypeVExternalPartner undocumented + RecipientScopeTypeVExternalPartner RecipientScopeType = "externalPartner" + // RecipientScopeTypeVExternalNonPartner undocumented + RecipientScopeTypeVExternalNonPartner RecipientScopeType = "externalNonPartner" +) + +var ( + // RecipientScopeTypePNone is a pointer to RecipientScopeTypeVNone + RecipientScopeTypePNone = &_RecipientScopeTypePNone + // RecipientScopeTypePInternal is a pointer to RecipientScopeTypeVInternal + RecipientScopeTypePInternal = &_RecipientScopeTypePInternal + // RecipientScopeTypePExternal is a pointer to RecipientScopeTypeVExternal + RecipientScopeTypePExternal = &_RecipientScopeTypePExternal + // RecipientScopeTypePExternalPartner is a pointer to RecipientScopeTypeVExternalPartner + RecipientScopeTypePExternalPartner = &_RecipientScopeTypePExternalPartner + // RecipientScopeTypePExternalNonPartner is a pointer to RecipientScopeTypeVExternalNonPartner + RecipientScopeTypePExternalNonPartner = &_RecipientScopeTypePExternalNonPartner +) + +var ( + _RecipientScopeTypePNone = RecipientScopeTypeVNone + _RecipientScopeTypePInternal = RecipientScopeTypeVInternal + _RecipientScopeTypePExternal = RecipientScopeTypeVExternal + _RecipientScopeTypePExternalPartner = RecipientScopeTypeVExternalPartner + _RecipientScopeTypePExternalNonPartner = RecipientScopeTypeVExternalNonPartner +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go new file mode 100644 index 00000000..50aed54f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go @@ -0,0 +1,60 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RecordCompletionReason undocumented +type RecordCompletionReason string + +const ( + // RecordCompletionReasonVOperationCanceled undocumented + RecordCompletionReasonVOperationCanceled RecordCompletionReason = "operationCanceled" + // RecordCompletionReasonVStopToneDetected undocumented + RecordCompletionReasonVStopToneDetected RecordCompletionReason = "stopToneDetected" + // RecordCompletionReasonVMaxRecordDurationReached undocumented + RecordCompletionReasonVMaxRecordDurationReached RecordCompletionReason = "maxRecordDurationReached" + // RecordCompletionReasonVInitialSilenceTimeout undocumented + RecordCompletionReasonVInitialSilenceTimeout RecordCompletionReason = "initialSilenceTimeout" + // RecordCompletionReasonVMaxSilenceTimeout undocumented + RecordCompletionReasonVMaxSilenceTimeout RecordCompletionReason = "maxSilenceTimeout" + // RecordCompletionReasonVPlayPromptFailed undocumented + RecordCompletionReasonVPlayPromptFailed RecordCompletionReason = "playPromptFailed" + // RecordCompletionReasonVPlayBeepFailed undocumented + RecordCompletionReasonVPlayBeepFailed RecordCompletionReason = "playBeepFailed" + // RecordCompletionReasonVMediaReceiveTimeout undocumented + RecordCompletionReasonVMediaReceiveTimeout RecordCompletionReason = "mediaReceiveTimeout" + // RecordCompletionReasonVUnspecifiedError undocumented + RecordCompletionReasonVUnspecifiedError RecordCompletionReason = "unspecifiedError" +) + +var ( + // RecordCompletionReasonPOperationCanceled is a pointer to RecordCompletionReasonVOperationCanceled + RecordCompletionReasonPOperationCanceled = &_RecordCompletionReasonPOperationCanceled + // RecordCompletionReasonPStopToneDetected is a pointer to RecordCompletionReasonVStopToneDetected + RecordCompletionReasonPStopToneDetected = &_RecordCompletionReasonPStopToneDetected + // RecordCompletionReasonPMaxRecordDurationReached is a pointer to RecordCompletionReasonVMaxRecordDurationReached + RecordCompletionReasonPMaxRecordDurationReached = &_RecordCompletionReasonPMaxRecordDurationReached + // RecordCompletionReasonPInitialSilenceTimeout is a pointer to RecordCompletionReasonVInitialSilenceTimeout + RecordCompletionReasonPInitialSilenceTimeout = &_RecordCompletionReasonPInitialSilenceTimeout + // RecordCompletionReasonPMaxSilenceTimeout is a pointer to RecordCompletionReasonVMaxSilenceTimeout + RecordCompletionReasonPMaxSilenceTimeout = &_RecordCompletionReasonPMaxSilenceTimeout + // RecordCompletionReasonPPlayPromptFailed is a pointer to RecordCompletionReasonVPlayPromptFailed + RecordCompletionReasonPPlayPromptFailed = &_RecordCompletionReasonPPlayPromptFailed + // RecordCompletionReasonPPlayBeepFailed is a pointer to RecordCompletionReasonVPlayBeepFailed + RecordCompletionReasonPPlayBeepFailed = &_RecordCompletionReasonPPlayBeepFailed + // RecordCompletionReasonPMediaReceiveTimeout is a pointer to RecordCompletionReasonVMediaReceiveTimeout + RecordCompletionReasonPMediaReceiveTimeout = &_RecordCompletionReasonPMediaReceiveTimeout + // RecordCompletionReasonPUnspecifiedError is a pointer to RecordCompletionReasonVUnspecifiedError + RecordCompletionReasonPUnspecifiedError = &_RecordCompletionReasonPUnspecifiedError +) + +var ( + _RecordCompletionReasonPOperationCanceled = RecordCompletionReasonVOperationCanceled + _RecordCompletionReasonPStopToneDetected = RecordCompletionReasonVStopToneDetected + _RecordCompletionReasonPMaxRecordDurationReached = RecordCompletionReasonVMaxRecordDurationReached + _RecordCompletionReasonPInitialSilenceTimeout = RecordCompletionReasonVInitialSilenceTimeout + _RecordCompletionReasonPMaxSilenceTimeout = RecordCompletionReasonVMaxSilenceTimeout + _RecordCompletionReasonPPlayPromptFailed = RecordCompletionReasonVPlayPromptFailed + _RecordCompletionReasonPPlayBeepFailed = RecordCompletionReasonVPlayBeepFailed + _RecordCompletionReasonPMediaReceiveTimeout = RecordCompletionReasonVMediaReceiveTimeout + _RecordCompletionReasonPUnspecifiedError = RecordCompletionReasonVUnspecifiedError +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go new file mode 100644 index 00000000..8ce07cc6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RecordingStatus undocumented +type RecordingStatus string + +const ( + // RecordingStatusVUnknown undocumented + RecordingStatusVUnknown RecordingStatus = "unknown" + // RecordingStatusVNotRecording undocumented + RecordingStatusVNotRecording RecordingStatus = "notRecording" + // RecordingStatusVRecording undocumented + RecordingStatusVRecording RecordingStatus = "recording" + // RecordingStatusVFailed undocumented + RecordingStatusVFailed RecordingStatus = "failed" + // RecordingStatusVUnknownFutureValue undocumented + RecordingStatusVUnknownFutureValue RecordingStatus = "unknownFutureValue" +) + +var ( + // RecordingStatusPUnknown is a pointer to RecordingStatusVUnknown + RecordingStatusPUnknown = &_RecordingStatusPUnknown + // RecordingStatusPNotRecording is a pointer to RecordingStatusVNotRecording + RecordingStatusPNotRecording = &_RecordingStatusPNotRecording + // RecordingStatusPRecording is a pointer to RecordingStatusVRecording + RecordingStatusPRecording = &_RecordingStatusPRecording + // RecordingStatusPFailed is a pointer to RecordingStatusVFailed + RecordingStatusPFailed = &_RecordingStatusPFailed + // RecordingStatusPUnknownFutureValue is a pointer to RecordingStatusVUnknownFutureValue + RecordingStatusPUnknownFutureValue = &_RecordingStatusPUnknownFutureValue +) + +var ( + _RecordingStatusPUnknown = RecordingStatusVUnknown + _RecordingStatusPNotRecording = RecordingStatusVNotRecording + _RecordingStatusPRecording = RecordingStatusVRecording + _RecordingStatusPFailed = RecordingStatusVFailed + _RecordingStatusPUnknownFutureValue = RecordingStatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go new file mode 100644 index 00000000..9529012b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go @@ -0,0 +1,72 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RecurrencePatternType undocumented +type RecurrencePatternType string + +const ( + // RecurrencePatternTypeVDaily undocumented + RecurrencePatternTypeVDaily RecurrencePatternType = "daily" + // RecurrencePatternTypeVWeekly undocumented + RecurrencePatternTypeVWeekly RecurrencePatternType = "weekly" + // RecurrencePatternTypeVAbsoluteMonthly undocumented + RecurrencePatternTypeVAbsoluteMonthly RecurrencePatternType = "absoluteMonthly" + // RecurrencePatternTypeVRelativeMonthly undocumented + RecurrencePatternTypeVRelativeMonthly RecurrencePatternType = "relativeMonthly" + // RecurrencePatternTypeVAbsoluteYearly undocumented + RecurrencePatternTypeVAbsoluteYearly RecurrencePatternType = "absoluteYearly" + // RecurrencePatternTypeVRelativeYearly undocumented + RecurrencePatternTypeVRelativeYearly RecurrencePatternType = "relativeYearly" +) + +var ( + // RecurrencePatternTypePDaily is a pointer to RecurrencePatternTypeVDaily + RecurrencePatternTypePDaily = &_RecurrencePatternTypePDaily + // RecurrencePatternTypePWeekly is a pointer to RecurrencePatternTypeVWeekly + RecurrencePatternTypePWeekly = &_RecurrencePatternTypePWeekly + // RecurrencePatternTypePAbsoluteMonthly is a pointer to RecurrencePatternTypeVAbsoluteMonthly + RecurrencePatternTypePAbsoluteMonthly = &_RecurrencePatternTypePAbsoluteMonthly + // RecurrencePatternTypePRelativeMonthly is a pointer to RecurrencePatternTypeVRelativeMonthly + RecurrencePatternTypePRelativeMonthly = &_RecurrencePatternTypePRelativeMonthly + // RecurrencePatternTypePAbsoluteYearly is a pointer to RecurrencePatternTypeVAbsoluteYearly + RecurrencePatternTypePAbsoluteYearly = &_RecurrencePatternTypePAbsoluteYearly + // RecurrencePatternTypePRelativeYearly is a pointer to RecurrencePatternTypeVRelativeYearly + RecurrencePatternTypePRelativeYearly = &_RecurrencePatternTypePRelativeYearly +) + +var ( + _RecurrencePatternTypePDaily = RecurrencePatternTypeVDaily + _RecurrencePatternTypePWeekly = RecurrencePatternTypeVWeekly + _RecurrencePatternTypePAbsoluteMonthly = RecurrencePatternTypeVAbsoluteMonthly + _RecurrencePatternTypePRelativeMonthly = RecurrencePatternTypeVRelativeMonthly + _RecurrencePatternTypePAbsoluteYearly = RecurrencePatternTypeVAbsoluteYearly + _RecurrencePatternTypePRelativeYearly = RecurrencePatternTypeVRelativeYearly +) + +// RecurrenceRangeType undocumented +type RecurrenceRangeType string + +const ( + // RecurrenceRangeTypeVEndDate undocumented + RecurrenceRangeTypeVEndDate RecurrenceRangeType = "endDate" + // RecurrenceRangeTypeVNoEnd undocumented + RecurrenceRangeTypeVNoEnd RecurrenceRangeType = "noEnd" + // RecurrenceRangeTypeVNumbered undocumented + RecurrenceRangeTypeVNumbered RecurrenceRangeType = "numbered" +) + +var ( + // RecurrenceRangeTypePEndDate is a pointer to RecurrenceRangeTypeVEndDate + RecurrenceRangeTypePEndDate = &_RecurrenceRangeTypePEndDate + // RecurrenceRangeTypePNoEnd is a pointer to RecurrenceRangeTypeVNoEnd + RecurrenceRangeTypePNoEnd = &_RecurrenceRangeTypePNoEnd + // RecurrenceRangeTypePNumbered is a pointer to RecurrenceRangeTypeVNumbered + RecurrenceRangeTypePNumbered = &_RecurrenceRangeTypePNumbered +) + +var ( + _RecurrenceRangeTypePEndDate = RecurrenceRangeTypeVEndDate + _RecurrenceRangeTypePNoEnd = RecurrenceRangeTypeVNoEnd + _RecurrenceRangeTypePNumbered = RecurrenceRangeTypeVNumbered +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go new file mode 100644 index 00000000..2021d116 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go @@ -0,0 +1,82 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ReferenceAttachmentPermission undocumented +type ReferenceAttachmentPermission string + +const ( + // ReferenceAttachmentPermissionVOther undocumented + ReferenceAttachmentPermissionVOther ReferenceAttachmentPermission = "other" + // ReferenceAttachmentPermissionVView undocumented + ReferenceAttachmentPermissionVView ReferenceAttachmentPermission = "view" + // ReferenceAttachmentPermissionVEdit undocumented + ReferenceAttachmentPermissionVEdit ReferenceAttachmentPermission = "edit" + // ReferenceAttachmentPermissionVAnonymousView undocumented + ReferenceAttachmentPermissionVAnonymousView ReferenceAttachmentPermission = "anonymousView" + // ReferenceAttachmentPermissionVAnonymousEdit undocumented + ReferenceAttachmentPermissionVAnonymousEdit ReferenceAttachmentPermission = "anonymousEdit" + // ReferenceAttachmentPermissionVOrganizationView undocumented + ReferenceAttachmentPermissionVOrganizationView ReferenceAttachmentPermission = "organizationView" + // ReferenceAttachmentPermissionVOrganizationEdit undocumented + ReferenceAttachmentPermissionVOrganizationEdit ReferenceAttachmentPermission = "organizationEdit" +) + +var ( + // ReferenceAttachmentPermissionPOther is a pointer to ReferenceAttachmentPermissionVOther + ReferenceAttachmentPermissionPOther = &_ReferenceAttachmentPermissionPOther + // ReferenceAttachmentPermissionPView is a pointer to ReferenceAttachmentPermissionVView + ReferenceAttachmentPermissionPView = &_ReferenceAttachmentPermissionPView + // ReferenceAttachmentPermissionPEdit is a pointer to ReferenceAttachmentPermissionVEdit + ReferenceAttachmentPermissionPEdit = &_ReferenceAttachmentPermissionPEdit + // ReferenceAttachmentPermissionPAnonymousView is a pointer to ReferenceAttachmentPermissionVAnonymousView + ReferenceAttachmentPermissionPAnonymousView = &_ReferenceAttachmentPermissionPAnonymousView + // ReferenceAttachmentPermissionPAnonymousEdit is a pointer to ReferenceAttachmentPermissionVAnonymousEdit + ReferenceAttachmentPermissionPAnonymousEdit = &_ReferenceAttachmentPermissionPAnonymousEdit + // ReferenceAttachmentPermissionPOrganizationView is a pointer to ReferenceAttachmentPermissionVOrganizationView + ReferenceAttachmentPermissionPOrganizationView = &_ReferenceAttachmentPermissionPOrganizationView + // ReferenceAttachmentPermissionPOrganizationEdit is a pointer to ReferenceAttachmentPermissionVOrganizationEdit + ReferenceAttachmentPermissionPOrganizationEdit = &_ReferenceAttachmentPermissionPOrganizationEdit +) + +var ( + _ReferenceAttachmentPermissionPOther = ReferenceAttachmentPermissionVOther + _ReferenceAttachmentPermissionPView = ReferenceAttachmentPermissionVView + _ReferenceAttachmentPermissionPEdit = ReferenceAttachmentPermissionVEdit + _ReferenceAttachmentPermissionPAnonymousView = ReferenceAttachmentPermissionVAnonymousView + _ReferenceAttachmentPermissionPAnonymousEdit = ReferenceAttachmentPermissionVAnonymousEdit + _ReferenceAttachmentPermissionPOrganizationView = ReferenceAttachmentPermissionVOrganizationView + _ReferenceAttachmentPermissionPOrganizationEdit = ReferenceAttachmentPermissionVOrganizationEdit +) + +// ReferenceAttachmentProvider undocumented +type ReferenceAttachmentProvider string + +const ( + // ReferenceAttachmentProviderVOther undocumented + ReferenceAttachmentProviderVOther ReferenceAttachmentProvider = "other" + // ReferenceAttachmentProviderVOneDriveBusiness undocumented + ReferenceAttachmentProviderVOneDriveBusiness ReferenceAttachmentProvider = "oneDriveBusiness" + // ReferenceAttachmentProviderVOneDriveConsumer undocumented + ReferenceAttachmentProviderVOneDriveConsumer ReferenceAttachmentProvider = "oneDriveConsumer" + // ReferenceAttachmentProviderVDropbox undocumented + ReferenceAttachmentProviderVDropbox ReferenceAttachmentProvider = "dropbox" +) + +var ( + // ReferenceAttachmentProviderPOther is a pointer to ReferenceAttachmentProviderVOther + ReferenceAttachmentProviderPOther = &_ReferenceAttachmentProviderPOther + // ReferenceAttachmentProviderPOneDriveBusiness is a pointer to ReferenceAttachmentProviderVOneDriveBusiness + ReferenceAttachmentProviderPOneDriveBusiness = &_ReferenceAttachmentProviderPOneDriveBusiness + // ReferenceAttachmentProviderPOneDriveConsumer is a pointer to ReferenceAttachmentProviderVOneDriveConsumer + ReferenceAttachmentProviderPOneDriveConsumer = &_ReferenceAttachmentProviderPOneDriveConsumer + // ReferenceAttachmentProviderPDropbox is a pointer to ReferenceAttachmentProviderVDropbox + ReferenceAttachmentProviderPDropbox = &_ReferenceAttachmentProviderPDropbox +) + +var ( + _ReferenceAttachmentProviderPOther = ReferenceAttachmentProviderVOther + _ReferenceAttachmentProviderPOneDriveBusiness = ReferenceAttachmentProviderVOneDriveBusiness + _ReferenceAttachmentProviderPOneDriveConsumer = ReferenceAttachmentProviderVOneDriveConsumer + _ReferenceAttachmentProviderPDropbox = ReferenceAttachmentProviderVDropbox +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go new file mode 100644 index 00000000..e1d3f06e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go @@ -0,0 +1,102 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RegistrationAuthMethod undocumented +type RegistrationAuthMethod string + +const ( + // RegistrationAuthMethodVEmail undocumented + RegistrationAuthMethodVEmail RegistrationAuthMethod = "email" + // RegistrationAuthMethodVMobilePhone undocumented + RegistrationAuthMethodVMobilePhone RegistrationAuthMethod = "mobilePhone" + // RegistrationAuthMethodVOfficePhone undocumented + RegistrationAuthMethodVOfficePhone RegistrationAuthMethod = "officePhone" + // RegistrationAuthMethodVSecurityQuestion undocumented + RegistrationAuthMethodVSecurityQuestion RegistrationAuthMethod = "securityQuestion" + // RegistrationAuthMethodVAppNotification undocumented + RegistrationAuthMethodVAppNotification RegistrationAuthMethod = "appNotification" + // RegistrationAuthMethodVAppCode undocumented + RegistrationAuthMethodVAppCode RegistrationAuthMethod = "appCode" + // RegistrationAuthMethodVAlternateMobilePhone undocumented + RegistrationAuthMethodVAlternateMobilePhone RegistrationAuthMethod = "alternateMobilePhone" + // RegistrationAuthMethodVFido undocumented + RegistrationAuthMethodVFido RegistrationAuthMethod = "fido" + // RegistrationAuthMethodVAppPassword undocumented + RegistrationAuthMethodVAppPassword RegistrationAuthMethod = "appPassword" + // RegistrationAuthMethodVUnknownFutureValue undocumented + RegistrationAuthMethodVUnknownFutureValue RegistrationAuthMethod = "unknownFutureValue" +) + +var ( + // RegistrationAuthMethodPEmail is a pointer to RegistrationAuthMethodVEmail + RegistrationAuthMethodPEmail = &_RegistrationAuthMethodPEmail + // RegistrationAuthMethodPMobilePhone is a pointer to RegistrationAuthMethodVMobilePhone + RegistrationAuthMethodPMobilePhone = &_RegistrationAuthMethodPMobilePhone + // RegistrationAuthMethodPOfficePhone is a pointer to RegistrationAuthMethodVOfficePhone + RegistrationAuthMethodPOfficePhone = &_RegistrationAuthMethodPOfficePhone + // RegistrationAuthMethodPSecurityQuestion is a pointer to RegistrationAuthMethodVSecurityQuestion + RegistrationAuthMethodPSecurityQuestion = &_RegistrationAuthMethodPSecurityQuestion + // RegistrationAuthMethodPAppNotification is a pointer to RegistrationAuthMethodVAppNotification + RegistrationAuthMethodPAppNotification = &_RegistrationAuthMethodPAppNotification + // RegistrationAuthMethodPAppCode is a pointer to RegistrationAuthMethodVAppCode + RegistrationAuthMethodPAppCode = &_RegistrationAuthMethodPAppCode + // RegistrationAuthMethodPAlternateMobilePhone is a pointer to RegistrationAuthMethodVAlternateMobilePhone + RegistrationAuthMethodPAlternateMobilePhone = &_RegistrationAuthMethodPAlternateMobilePhone + // RegistrationAuthMethodPFido is a pointer to RegistrationAuthMethodVFido + RegistrationAuthMethodPFido = &_RegistrationAuthMethodPFido + // RegistrationAuthMethodPAppPassword is a pointer to RegistrationAuthMethodVAppPassword + RegistrationAuthMethodPAppPassword = &_RegistrationAuthMethodPAppPassword + // RegistrationAuthMethodPUnknownFutureValue is a pointer to RegistrationAuthMethodVUnknownFutureValue + RegistrationAuthMethodPUnknownFutureValue = &_RegistrationAuthMethodPUnknownFutureValue +) + +var ( + _RegistrationAuthMethodPEmail = RegistrationAuthMethodVEmail + _RegistrationAuthMethodPMobilePhone = RegistrationAuthMethodVMobilePhone + _RegistrationAuthMethodPOfficePhone = RegistrationAuthMethodVOfficePhone + _RegistrationAuthMethodPSecurityQuestion = RegistrationAuthMethodVSecurityQuestion + _RegistrationAuthMethodPAppNotification = RegistrationAuthMethodVAppNotification + _RegistrationAuthMethodPAppCode = RegistrationAuthMethodVAppCode + _RegistrationAuthMethodPAlternateMobilePhone = RegistrationAuthMethodVAlternateMobilePhone + _RegistrationAuthMethodPFido = RegistrationAuthMethodVFido + _RegistrationAuthMethodPAppPassword = RegistrationAuthMethodVAppPassword + _RegistrationAuthMethodPUnknownFutureValue = RegistrationAuthMethodVUnknownFutureValue +) + +// RegistrationStatusType undocumented +type RegistrationStatusType string + +const ( + // RegistrationStatusTypeVRegistered undocumented + RegistrationStatusTypeVRegistered RegistrationStatusType = "registered" + // RegistrationStatusTypeVEnabled undocumented + RegistrationStatusTypeVEnabled RegistrationStatusType = "enabled" + // RegistrationStatusTypeVCapable undocumented + RegistrationStatusTypeVCapable RegistrationStatusType = "capable" + // RegistrationStatusTypeVMFARegistered undocumented + RegistrationStatusTypeVMFARegistered RegistrationStatusType = "mfaRegistered" + // RegistrationStatusTypeVUnknownFutureValue undocumented + RegistrationStatusTypeVUnknownFutureValue RegistrationStatusType = "unknownFutureValue" +) + +var ( + // RegistrationStatusTypePRegistered is a pointer to RegistrationStatusTypeVRegistered + RegistrationStatusTypePRegistered = &_RegistrationStatusTypePRegistered + // RegistrationStatusTypePEnabled is a pointer to RegistrationStatusTypeVEnabled + RegistrationStatusTypePEnabled = &_RegistrationStatusTypePEnabled + // RegistrationStatusTypePCapable is a pointer to RegistrationStatusTypeVCapable + RegistrationStatusTypePCapable = &_RegistrationStatusTypePCapable + // RegistrationStatusTypePMFARegistered is a pointer to RegistrationStatusTypeVMFARegistered + RegistrationStatusTypePMFARegistered = &_RegistrationStatusTypePMFARegistered + // RegistrationStatusTypePUnknownFutureValue is a pointer to RegistrationStatusTypeVUnknownFutureValue + RegistrationStatusTypePUnknownFutureValue = &_RegistrationStatusTypePUnknownFutureValue +) + +var ( + _RegistrationStatusTypePRegistered = RegistrationStatusTypeVRegistered + _RegistrationStatusTypePEnabled = RegistrationStatusTypeVEnabled + _RegistrationStatusTypePCapable = RegistrationStatusTypeVCapable + _RegistrationStatusTypePMFARegistered = RegistrationStatusTypeVMFARegistered + _RegistrationStatusTypePUnknownFutureValue = RegistrationStatusTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go new file mode 100644 index 00000000..78df13fb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go @@ -0,0 +1,174 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RegistryHive undocumented +type RegistryHive string + +const ( + // RegistryHiveVUnknown undocumented + RegistryHiveVUnknown RegistryHive = "unknown" + // RegistryHiveVCurrentConfig undocumented + RegistryHiveVCurrentConfig RegistryHive = "currentConfig" + // RegistryHiveVCurrentUser undocumented + RegistryHiveVCurrentUser RegistryHive = "currentUser" + // RegistryHiveVLocalMachineSam undocumented + RegistryHiveVLocalMachineSam RegistryHive = "localMachineSam" + // RegistryHiveVLocalMachineSecurity undocumented + RegistryHiveVLocalMachineSecurity RegistryHive = "localMachineSecurity" + // RegistryHiveVLocalMachineSoftware undocumented + RegistryHiveVLocalMachineSoftware RegistryHive = "localMachineSoftware" + // RegistryHiveVLocalMachineSystem undocumented + RegistryHiveVLocalMachineSystem RegistryHive = "localMachineSystem" + // RegistryHiveVUsersDefault undocumented + RegistryHiveVUsersDefault RegistryHive = "usersDefault" + // RegistryHiveVUnknownFutureValue undocumented + RegistryHiveVUnknownFutureValue RegistryHive = "unknownFutureValue" +) + +var ( + // RegistryHivePUnknown is a pointer to RegistryHiveVUnknown + RegistryHivePUnknown = &_RegistryHivePUnknown + // RegistryHivePCurrentConfig is a pointer to RegistryHiveVCurrentConfig + RegistryHivePCurrentConfig = &_RegistryHivePCurrentConfig + // RegistryHivePCurrentUser is a pointer to RegistryHiveVCurrentUser + RegistryHivePCurrentUser = &_RegistryHivePCurrentUser + // RegistryHivePLocalMachineSam is a pointer to RegistryHiveVLocalMachineSam + RegistryHivePLocalMachineSam = &_RegistryHivePLocalMachineSam + // RegistryHivePLocalMachineSecurity is a pointer to RegistryHiveVLocalMachineSecurity + RegistryHivePLocalMachineSecurity = &_RegistryHivePLocalMachineSecurity + // RegistryHivePLocalMachineSoftware is a pointer to RegistryHiveVLocalMachineSoftware + RegistryHivePLocalMachineSoftware = &_RegistryHivePLocalMachineSoftware + // RegistryHivePLocalMachineSystem is a pointer to RegistryHiveVLocalMachineSystem + RegistryHivePLocalMachineSystem = &_RegistryHivePLocalMachineSystem + // RegistryHivePUsersDefault is a pointer to RegistryHiveVUsersDefault + RegistryHivePUsersDefault = &_RegistryHivePUsersDefault + // RegistryHivePUnknownFutureValue is a pointer to RegistryHiveVUnknownFutureValue + RegistryHivePUnknownFutureValue = &_RegistryHivePUnknownFutureValue +) + +var ( + _RegistryHivePUnknown = RegistryHiveVUnknown + _RegistryHivePCurrentConfig = RegistryHiveVCurrentConfig + _RegistryHivePCurrentUser = RegistryHiveVCurrentUser + _RegistryHivePLocalMachineSam = RegistryHiveVLocalMachineSam + _RegistryHivePLocalMachineSecurity = RegistryHiveVLocalMachineSecurity + _RegistryHivePLocalMachineSoftware = RegistryHiveVLocalMachineSoftware + _RegistryHivePLocalMachineSystem = RegistryHiveVLocalMachineSystem + _RegistryHivePUsersDefault = RegistryHiveVUsersDefault + _RegistryHivePUnknownFutureValue = RegistryHiveVUnknownFutureValue +) + +// RegistryOperation undocumented +type RegistryOperation string + +const ( + // RegistryOperationVUnknown undocumented + RegistryOperationVUnknown RegistryOperation = "unknown" + // RegistryOperationVCreate undocumented + RegistryOperationVCreate RegistryOperation = "create" + // RegistryOperationVModify undocumented + RegistryOperationVModify RegistryOperation = "modify" + // RegistryOperationVDelete undocumented + RegistryOperationVDelete RegistryOperation = "delete" + // RegistryOperationVUnknownFutureValue undocumented + RegistryOperationVUnknownFutureValue RegistryOperation = "unknownFutureValue" +) + +var ( + // RegistryOperationPUnknown is a pointer to RegistryOperationVUnknown + RegistryOperationPUnknown = &_RegistryOperationPUnknown + // RegistryOperationPCreate is a pointer to RegistryOperationVCreate + RegistryOperationPCreate = &_RegistryOperationPCreate + // RegistryOperationPModify is a pointer to RegistryOperationVModify + RegistryOperationPModify = &_RegistryOperationPModify + // RegistryOperationPDelete is a pointer to RegistryOperationVDelete + RegistryOperationPDelete = &_RegistryOperationPDelete + // RegistryOperationPUnknownFutureValue is a pointer to RegistryOperationVUnknownFutureValue + RegistryOperationPUnknownFutureValue = &_RegistryOperationPUnknownFutureValue +) + +var ( + _RegistryOperationPUnknown = RegistryOperationVUnknown + _RegistryOperationPCreate = RegistryOperationVCreate + _RegistryOperationPModify = RegistryOperationVModify + _RegistryOperationPDelete = RegistryOperationVDelete + _RegistryOperationPUnknownFutureValue = RegistryOperationVUnknownFutureValue +) + +// RegistryValueType undocumented +type RegistryValueType string + +const ( + // RegistryValueTypeVUnknown undocumented + RegistryValueTypeVUnknown RegistryValueType = "unknown" + // RegistryValueTypeVBinary undocumented + RegistryValueTypeVBinary RegistryValueType = "binary" + // RegistryValueTypeVDword undocumented + RegistryValueTypeVDword RegistryValueType = "dword" + // RegistryValueTypeVDwordLittleEndian undocumented + RegistryValueTypeVDwordLittleEndian RegistryValueType = "dwordLittleEndian" + // RegistryValueTypeVDwordBigEndian undocumented + RegistryValueTypeVDwordBigEndian RegistryValueType = "dwordBigEndian" + // RegistryValueTypeVExpandSz undocumented + RegistryValueTypeVExpandSz RegistryValueType = "expandSz" + // RegistryValueTypeVLink undocumented + RegistryValueTypeVLink RegistryValueType = "link" + // RegistryValueTypeVMultiSz undocumented + RegistryValueTypeVMultiSz RegistryValueType = "multiSz" + // RegistryValueTypeVNone undocumented + RegistryValueTypeVNone RegistryValueType = "none" + // RegistryValueTypeVQword undocumented + RegistryValueTypeVQword RegistryValueType = "qword" + // RegistryValueTypeVQwordlittleEndian undocumented + RegistryValueTypeVQwordlittleEndian RegistryValueType = "qwordlittleEndian" + // RegistryValueTypeVSz undocumented + RegistryValueTypeVSz RegistryValueType = "sz" + // RegistryValueTypeVUnknownFutureValue undocumented + RegistryValueTypeVUnknownFutureValue RegistryValueType = "unknownFutureValue" +) + +var ( + // RegistryValueTypePUnknown is a pointer to RegistryValueTypeVUnknown + RegistryValueTypePUnknown = &_RegistryValueTypePUnknown + // RegistryValueTypePBinary is a pointer to RegistryValueTypeVBinary + RegistryValueTypePBinary = &_RegistryValueTypePBinary + // RegistryValueTypePDword is a pointer to RegistryValueTypeVDword + RegistryValueTypePDword = &_RegistryValueTypePDword + // RegistryValueTypePDwordLittleEndian is a pointer to RegistryValueTypeVDwordLittleEndian + RegistryValueTypePDwordLittleEndian = &_RegistryValueTypePDwordLittleEndian + // RegistryValueTypePDwordBigEndian is a pointer to RegistryValueTypeVDwordBigEndian + RegistryValueTypePDwordBigEndian = &_RegistryValueTypePDwordBigEndian + // RegistryValueTypePExpandSz is a pointer to RegistryValueTypeVExpandSz + RegistryValueTypePExpandSz = &_RegistryValueTypePExpandSz + // RegistryValueTypePLink is a pointer to RegistryValueTypeVLink + RegistryValueTypePLink = &_RegistryValueTypePLink + // RegistryValueTypePMultiSz is a pointer to RegistryValueTypeVMultiSz + RegistryValueTypePMultiSz = &_RegistryValueTypePMultiSz + // RegistryValueTypePNone is a pointer to RegistryValueTypeVNone + RegistryValueTypePNone = &_RegistryValueTypePNone + // RegistryValueTypePQword is a pointer to RegistryValueTypeVQword + RegistryValueTypePQword = &_RegistryValueTypePQword + // RegistryValueTypePQwordlittleEndian is a pointer to RegistryValueTypeVQwordlittleEndian + RegistryValueTypePQwordlittleEndian = &_RegistryValueTypePQwordlittleEndian + // RegistryValueTypePSz is a pointer to RegistryValueTypeVSz + RegistryValueTypePSz = &_RegistryValueTypePSz + // RegistryValueTypePUnknownFutureValue is a pointer to RegistryValueTypeVUnknownFutureValue + RegistryValueTypePUnknownFutureValue = &_RegistryValueTypePUnknownFutureValue +) + +var ( + _RegistryValueTypePUnknown = RegistryValueTypeVUnknown + _RegistryValueTypePBinary = RegistryValueTypeVBinary + _RegistryValueTypePDword = RegistryValueTypeVDword + _RegistryValueTypePDwordLittleEndian = RegistryValueTypeVDwordLittleEndian + _RegistryValueTypePDwordBigEndian = RegistryValueTypeVDwordBigEndian + _RegistryValueTypePExpandSz = RegistryValueTypeVExpandSz + _RegistryValueTypePLink = RegistryValueTypeVLink + _RegistryValueTypePMultiSz = RegistryValueTypeVMultiSz + _RegistryValueTypePNone = RegistryValueTypeVNone + _RegistryValueTypePQword = RegistryValueTypeVQword + _RegistryValueTypePQwordlittleEndian = RegistryValueTypeVQwordlittleEndian + _RegistryValueTypePSz = RegistryValueTypeVSz + _RegistryValueTypePUnknownFutureValue = RegistryValueTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go new file mode 100644 index 00000000..75219230 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RejectReason undocumented +type RejectReason string + +const ( + // RejectReasonVNone undocumented + RejectReasonVNone RejectReason = "none" + // RejectReasonVBusy undocumented + RejectReasonVBusy RejectReason = "busy" + // RejectReasonVForbidden undocumented + RejectReasonVForbidden RejectReason = "forbidden" + // RejectReasonVUnknownFutureValue undocumented + RejectReasonVUnknownFutureValue RejectReason = "unknownFutureValue" +) + +var ( + // RejectReasonPNone is a pointer to RejectReasonVNone + RejectReasonPNone = &_RejectReasonPNone + // RejectReasonPBusy is a pointer to RejectReasonVBusy + RejectReasonPBusy = &_RejectReasonPBusy + // RejectReasonPForbidden is a pointer to RejectReasonVForbidden + RejectReasonPForbidden = &_RejectReasonPForbidden + // RejectReasonPUnknownFutureValue is a pointer to RejectReasonVUnknownFutureValue + RejectReasonPUnknownFutureValue = &_RejectReasonPUnknownFutureValue +) + +var ( + _RejectReasonPNone = RejectReasonVNone + _RejectReasonPBusy = RejectReasonVBusy + _RejectReasonPForbidden = RejectReasonVForbidden + _RejectReasonPUnknownFutureValue = RejectReasonVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go new file mode 100644 index 00000000..19faad7f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RemediationState undocumented +type RemediationState string + +const ( + // RemediationStateVUnknown undocumented + RemediationStateVUnknown RemediationState = "unknown" + // RemediationStateVSkipped undocumented + RemediationStateVSkipped RemediationState = "skipped" + // RemediationStateVSuccess undocumented + RemediationStateVSuccess RemediationState = "success" + // RemediationStateVRemediationFailed undocumented + RemediationStateVRemediationFailed RemediationState = "remediationFailed" + // RemediationStateVScriptError undocumented + RemediationStateVScriptError RemediationState = "scriptError" +) + +var ( + // RemediationStatePUnknown is a pointer to RemediationStateVUnknown + RemediationStatePUnknown = &_RemediationStatePUnknown + // RemediationStatePSkipped is a pointer to RemediationStateVSkipped + RemediationStatePSkipped = &_RemediationStatePSkipped + // RemediationStatePSuccess is a pointer to RemediationStateVSuccess + RemediationStatePSuccess = &_RemediationStatePSuccess + // RemediationStatePRemediationFailed is a pointer to RemediationStateVRemediationFailed + RemediationStatePRemediationFailed = &_RemediationStatePRemediationFailed + // RemediationStatePScriptError is a pointer to RemediationStateVScriptError + RemediationStatePScriptError = &_RemediationStatePScriptError +) + +var ( + _RemediationStatePUnknown = RemediationStateVUnknown + _RemediationStatePSkipped = RemediationStateVSkipped + _RemediationStatePSuccess = RemediationStateVSuccess + _RemediationStatePRemediationFailed = RemediationStateVRemediationFailed + _RemediationStatePScriptError = RemediationStateVScriptError +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go new file mode 100644 index 00000000..a5962c53 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go @@ -0,0 +1,157 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RemoteAction undocumented +type RemoteAction string + +const ( + // RemoteActionVUnknown undocumented + RemoteActionVUnknown RemoteAction = "unknown" + // RemoteActionVFactoryReset undocumented + RemoteActionVFactoryReset RemoteAction = "factoryReset" + // RemoteActionVRemoveCompanyData undocumented + RemoteActionVRemoveCompanyData RemoteAction = "removeCompanyData" + // RemoteActionVResetPasscode undocumented + RemoteActionVResetPasscode RemoteAction = "resetPasscode" + // RemoteActionVRemoteLock undocumented + RemoteActionVRemoteLock RemoteAction = "remoteLock" + // RemoteActionVEnableLostMode undocumented + RemoteActionVEnableLostMode RemoteAction = "enableLostMode" + // RemoteActionVDisableLostMode undocumented + RemoteActionVDisableLostMode RemoteAction = "disableLostMode" + // RemoteActionVLocateDevice undocumented + RemoteActionVLocateDevice RemoteAction = "locateDevice" + // RemoteActionVRebootNow undocumented + RemoteActionVRebootNow RemoteAction = "rebootNow" + // RemoteActionVRecoverPasscode undocumented + RemoteActionVRecoverPasscode RemoteAction = "recoverPasscode" + // RemoteActionVCleanWindowsDevice undocumented + RemoteActionVCleanWindowsDevice RemoteAction = "cleanWindowsDevice" + // RemoteActionVLogoutSharedAppleDeviceActiveUser undocumented + RemoteActionVLogoutSharedAppleDeviceActiveUser RemoteAction = "logoutSharedAppleDeviceActiveUser" + // RemoteActionVQuickScan undocumented + RemoteActionVQuickScan RemoteAction = "quickScan" + // RemoteActionVFullScan undocumented + RemoteActionVFullScan RemoteAction = "fullScan" + // RemoteActionVWindowsDefenderUpdateSignatures undocumented + RemoteActionVWindowsDefenderUpdateSignatures RemoteAction = "windowsDefenderUpdateSignatures" + // RemoteActionVFactoryResetKeepEnrollmentData undocumented + RemoteActionVFactoryResetKeepEnrollmentData RemoteAction = "factoryResetKeepEnrollmentData" + // RemoteActionVUpdateDeviceAccount undocumented + RemoteActionVUpdateDeviceAccount RemoteAction = "updateDeviceAccount" + // RemoteActionVAutomaticRedeployment undocumented + RemoteActionVAutomaticRedeployment RemoteAction = "automaticRedeployment" + // RemoteActionVShutDown undocumented + RemoteActionVShutDown RemoteAction = "shutDown" + // RemoteActionVRotateBitLockerKeys undocumented + RemoteActionVRotateBitLockerKeys RemoteAction = "rotateBitLockerKeys" + // RemoteActionVRotateFileVaultKey undocumented + RemoteActionVRotateFileVaultKey RemoteAction = "rotateFileVaultKey" + // RemoteActionVGetFileVaultKey undocumented + RemoteActionVGetFileVaultKey RemoteAction = "getFileVaultKey" + // RemoteActionVSetDeviceName undocumented + RemoteActionVSetDeviceName RemoteAction = "setDeviceName" +) + +var ( + // RemoteActionPUnknown is a pointer to RemoteActionVUnknown + RemoteActionPUnknown = &_RemoteActionPUnknown + // RemoteActionPFactoryReset is a pointer to RemoteActionVFactoryReset + RemoteActionPFactoryReset = &_RemoteActionPFactoryReset + // RemoteActionPRemoveCompanyData is a pointer to RemoteActionVRemoveCompanyData + RemoteActionPRemoveCompanyData = &_RemoteActionPRemoveCompanyData + // RemoteActionPResetPasscode is a pointer to RemoteActionVResetPasscode + RemoteActionPResetPasscode = &_RemoteActionPResetPasscode + // RemoteActionPRemoteLock is a pointer to RemoteActionVRemoteLock + RemoteActionPRemoteLock = &_RemoteActionPRemoteLock + // RemoteActionPEnableLostMode is a pointer to RemoteActionVEnableLostMode + RemoteActionPEnableLostMode = &_RemoteActionPEnableLostMode + // RemoteActionPDisableLostMode is a pointer to RemoteActionVDisableLostMode + RemoteActionPDisableLostMode = &_RemoteActionPDisableLostMode + // RemoteActionPLocateDevice is a pointer to RemoteActionVLocateDevice + RemoteActionPLocateDevice = &_RemoteActionPLocateDevice + // RemoteActionPRebootNow is a pointer to RemoteActionVRebootNow + RemoteActionPRebootNow = &_RemoteActionPRebootNow + // RemoteActionPRecoverPasscode is a pointer to RemoteActionVRecoverPasscode + RemoteActionPRecoverPasscode = &_RemoteActionPRecoverPasscode + // RemoteActionPCleanWindowsDevice is a pointer to RemoteActionVCleanWindowsDevice + RemoteActionPCleanWindowsDevice = &_RemoteActionPCleanWindowsDevice + // RemoteActionPLogoutSharedAppleDeviceActiveUser is a pointer to RemoteActionVLogoutSharedAppleDeviceActiveUser + RemoteActionPLogoutSharedAppleDeviceActiveUser = &_RemoteActionPLogoutSharedAppleDeviceActiveUser + // RemoteActionPQuickScan is a pointer to RemoteActionVQuickScan + RemoteActionPQuickScan = &_RemoteActionPQuickScan + // RemoteActionPFullScan is a pointer to RemoteActionVFullScan + RemoteActionPFullScan = &_RemoteActionPFullScan + // RemoteActionPWindowsDefenderUpdateSignatures is a pointer to RemoteActionVWindowsDefenderUpdateSignatures + RemoteActionPWindowsDefenderUpdateSignatures = &_RemoteActionPWindowsDefenderUpdateSignatures + // RemoteActionPFactoryResetKeepEnrollmentData is a pointer to RemoteActionVFactoryResetKeepEnrollmentData + RemoteActionPFactoryResetKeepEnrollmentData = &_RemoteActionPFactoryResetKeepEnrollmentData + // RemoteActionPUpdateDeviceAccount is a pointer to RemoteActionVUpdateDeviceAccount + RemoteActionPUpdateDeviceAccount = &_RemoteActionPUpdateDeviceAccount + // RemoteActionPAutomaticRedeployment is a pointer to RemoteActionVAutomaticRedeployment + RemoteActionPAutomaticRedeployment = &_RemoteActionPAutomaticRedeployment + // RemoteActionPShutDown is a pointer to RemoteActionVShutDown + RemoteActionPShutDown = &_RemoteActionPShutDown + // RemoteActionPRotateBitLockerKeys is a pointer to RemoteActionVRotateBitLockerKeys + RemoteActionPRotateBitLockerKeys = &_RemoteActionPRotateBitLockerKeys + // RemoteActionPRotateFileVaultKey is a pointer to RemoteActionVRotateFileVaultKey + RemoteActionPRotateFileVaultKey = &_RemoteActionPRotateFileVaultKey + // RemoteActionPGetFileVaultKey is a pointer to RemoteActionVGetFileVaultKey + RemoteActionPGetFileVaultKey = &_RemoteActionPGetFileVaultKey + // RemoteActionPSetDeviceName is a pointer to RemoteActionVSetDeviceName + RemoteActionPSetDeviceName = &_RemoteActionPSetDeviceName +) + +var ( + _RemoteActionPUnknown = RemoteActionVUnknown + _RemoteActionPFactoryReset = RemoteActionVFactoryReset + _RemoteActionPRemoveCompanyData = RemoteActionVRemoveCompanyData + _RemoteActionPResetPasscode = RemoteActionVResetPasscode + _RemoteActionPRemoteLock = RemoteActionVRemoteLock + _RemoteActionPEnableLostMode = RemoteActionVEnableLostMode + _RemoteActionPDisableLostMode = RemoteActionVDisableLostMode + _RemoteActionPLocateDevice = RemoteActionVLocateDevice + _RemoteActionPRebootNow = RemoteActionVRebootNow + _RemoteActionPRecoverPasscode = RemoteActionVRecoverPasscode + _RemoteActionPCleanWindowsDevice = RemoteActionVCleanWindowsDevice + _RemoteActionPLogoutSharedAppleDeviceActiveUser = RemoteActionVLogoutSharedAppleDeviceActiveUser + _RemoteActionPQuickScan = RemoteActionVQuickScan + _RemoteActionPFullScan = RemoteActionVFullScan + _RemoteActionPWindowsDefenderUpdateSignatures = RemoteActionVWindowsDefenderUpdateSignatures + _RemoteActionPFactoryResetKeepEnrollmentData = RemoteActionVFactoryResetKeepEnrollmentData + _RemoteActionPUpdateDeviceAccount = RemoteActionVUpdateDeviceAccount + _RemoteActionPAutomaticRedeployment = RemoteActionVAutomaticRedeployment + _RemoteActionPShutDown = RemoteActionVShutDown + _RemoteActionPRotateBitLockerKeys = RemoteActionVRotateBitLockerKeys + _RemoteActionPRotateFileVaultKey = RemoteActionVRotateFileVaultKey + _RemoteActionPGetFileVaultKey = RemoteActionVGetFileVaultKey + _RemoteActionPSetDeviceName = RemoteActionVSetDeviceName +) + +// RemoteAssistanceOnboardingStatus undocumented +type RemoteAssistanceOnboardingStatus string + +const ( + // RemoteAssistanceOnboardingStatusVNotOnboarded undocumented + RemoteAssistanceOnboardingStatusVNotOnboarded RemoteAssistanceOnboardingStatus = "notOnboarded" + // RemoteAssistanceOnboardingStatusVOnboarding undocumented + RemoteAssistanceOnboardingStatusVOnboarding RemoteAssistanceOnboardingStatus = "onboarding" + // RemoteAssistanceOnboardingStatusVOnboarded undocumented + RemoteAssistanceOnboardingStatusVOnboarded RemoteAssistanceOnboardingStatus = "onboarded" +) + +var ( + // RemoteAssistanceOnboardingStatusPNotOnboarded is a pointer to RemoteAssistanceOnboardingStatusVNotOnboarded + RemoteAssistanceOnboardingStatusPNotOnboarded = &_RemoteAssistanceOnboardingStatusPNotOnboarded + // RemoteAssistanceOnboardingStatusPOnboarding is a pointer to RemoteAssistanceOnboardingStatusVOnboarding + RemoteAssistanceOnboardingStatusPOnboarding = &_RemoteAssistanceOnboardingStatusPOnboarding + // RemoteAssistanceOnboardingStatusPOnboarded is a pointer to RemoteAssistanceOnboardingStatusVOnboarded + RemoteAssistanceOnboardingStatusPOnboarded = &_RemoteAssistanceOnboardingStatusPOnboarded +) + +var ( + _RemoteAssistanceOnboardingStatusPNotOnboarded = RemoteAssistanceOnboardingStatusVNotOnboarded + _RemoteAssistanceOnboardingStatusPOnboarding = RemoteAssistanceOnboardingStatusVOnboarding + _RemoteAssistanceOnboardingStatusPOnboarded = RemoteAssistanceOnboardingStatusVOnboarded +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go new file mode 100644 index 00000000..473cd4fa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RequiredPasswordType undocumented +type RequiredPasswordType string + +const ( + // RequiredPasswordTypeVDeviceDefault undocumented + RequiredPasswordTypeVDeviceDefault RequiredPasswordType = "deviceDefault" + // RequiredPasswordTypeVAlphanumeric undocumented + RequiredPasswordTypeVAlphanumeric RequiredPasswordType = "alphanumeric" + // RequiredPasswordTypeVNumeric undocumented + RequiredPasswordTypeVNumeric RequiredPasswordType = "numeric" +) + +var ( + // RequiredPasswordTypePDeviceDefault is a pointer to RequiredPasswordTypeVDeviceDefault + RequiredPasswordTypePDeviceDefault = &_RequiredPasswordTypePDeviceDefault + // RequiredPasswordTypePAlphanumeric is a pointer to RequiredPasswordTypeVAlphanumeric + RequiredPasswordTypePAlphanumeric = &_RequiredPasswordTypePAlphanumeric + // RequiredPasswordTypePNumeric is a pointer to RequiredPasswordTypeVNumeric + RequiredPasswordTypePNumeric = &_RequiredPasswordTypePNumeric +) + +var ( + _RequiredPasswordTypePDeviceDefault = RequiredPasswordTypeVDeviceDefault + _RequiredPasswordTypePAlphanumeric = RequiredPasswordTypeVAlphanumeric + _RequiredPasswordTypePNumeric = RequiredPasswordTypeVNumeric +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go new file mode 100644 index 00000000..efc13df0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RequirementProvider undocumented +type RequirementProvider string + +const ( + // RequirementProviderVMFA undocumented + RequirementProviderVMFA RequirementProvider = "MFA" + // RequirementProviderVCA undocumented + RequirementProviderVCA RequirementProvider = "CA" + // RequirementProviderVUnknownFutureValue undocumented + RequirementProviderVUnknownFutureValue RequirementProvider = "unknownFutureValue" +) + +var ( + // RequirementProviderPMFA is a pointer to RequirementProviderVMFA + RequirementProviderPMFA = &_RequirementProviderPMFA + // RequirementProviderPCA is a pointer to RequirementProviderVCA + RequirementProviderPCA = &_RequirementProviderPCA + // RequirementProviderPUnknownFutureValue is a pointer to RequirementProviderVUnknownFutureValue + RequirementProviderPUnknownFutureValue = &_RequirementProviderPUnknownFutureValue +) + +var ( + _RequirementProviderPMFA = RequirementProviderVMFA + _RequirementProviderPCA = RequirementProviderVCA + _RequirementProviderPUnknownFutureValue = RequirementProviderVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go new file mode 100644 index 00000000..bd45acb6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ResponseType undocumented +type ResponseType string + +const ( + // ResponseTypeVNone undocumented + ResponseTypeVNone ResponseType = "none" + // ResponseTypeVOrganizer undocumented + ResponseTypeVOrganizer ResponseType = "organizer" + // ResponseTypeVTentativelyAccepted undocumented + ResponseTypeVTentativelyAccepted ResponseType = "tentativelyAccepted" + // ResponseTypeVAccepted undocumented + ResponseTypeVAccepted ResponseType = "accepted" + // ResponseTypeVDeclined undocumented + ResponseTypeVDeclined ResponseType = "declined" + // ResponseTypeVNotResponded undocumented + ResponseTypeVNotResponded ResponseType = "notResponded" +) + +var ( + // ResponseTypePNone is a pointer to ResponseTypeVNone + ResponseTypePNone = &_ResponseTypePNone + // ResponseTypePOrganizer is a pointer to ResponseTypeVOrganizer + ResponseTypePOrganizer = &_ResponseTypePOrganizer + // ResponseTypePTentativelyAccepted is a pointer to ResponseTypeVTentativelyAccepted + ResponseTypePTentativelyAccepted = &_ResponseTypePTentativelyAccepted + // ResponseTypePAccepted is a pointer to ResponseTypeVAccepted + ResponseTypePAccepted = &_ResponseTypePAccepted + // ResponseTypePDeclined is a pointer to ResponseTypeVDeclined + ResponseTypePDeclined = &_ResponseTypePDeclined + // ResponseTypePNotResponded is a pointer to ResponseTypeVNotResponded + ResponseTypePNotResponded = &_ResponseTypePNotResponded +) + +var ( + _ResponseTypePNone = ResponseTypeVNone + _ResponseTypePOrganizer = ResponseTypeVOrganizer + _ResponseTypePTentativelyAccepted = ResponseTypeVTentativelyAccepted + _ResponseTypePAccepted = ResponseTypeVAccepted + _ResponseTypePDeclined = ResponseTypeVDeclined + _ResponseTypePNotResponded = ResponseTypeVNotResponded +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go new file mode 100644 index 00000000..45f044d0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RestrictedAppsState undocumented +type RestrictedAppsState string + +const ( + // RestrictedAppsStateVProhibitedApps undocumented + RestrictedAppsStateVProhibitedApps RestrictedAppsState = "prohibitedApps" + // RestrictedAppsStateVNotApprovedApps undocumented + RestrictedAppsStateVNotApprovedApps RestrictedAppsState = "notApprovedApps" +) + +var ( + // RestrictedAppsStatePProhibitedApps is a pointer to RestrictedAppsStateVProhibitedApps + RestrictedAppsStatePProhibitedApps = &_RestrictedAppsStatePProhibitedApps + // RestrictedAppsStatePNotApprovedApps is a pointer to RestrictedAppsStateVNotApprovedApps + RestrictedAppsStatePNotApprovedApps = &_RestrictedAppsStatePNotApprovedApps +) + +var ( + _RestrictedAppsStatePProhibitedApps = RestrictedAppsStateVProhibitedApps + _RestrictedAppsStatePNotApprovedApps = RestrictedAppsStateVNotApprovedApps +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go new file mode 100644 index 00000000..ac762e26 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go @@ -0,0 +1,77 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RestrictionAction undocumented +type RestrictionAction string + +const ( + // RestrictionActionVWarn undocumented + RestrictionActionVWarn RestrictionAction = "warn" + // RestrictionActionVAudit undocumented + RestrictionActionVAudit RestrictionAction = "audit" + // RestrictionActionVBlock undocumented + RestrictionActionVBlock RestrictionAction = "block" +) + +var ( + // RestrictionActionPWarn is a pointer to RestrictionActionVWarn + RestrictionActionPWarn = &_RestrictionActionPWarn + // RestrictionActionPAudit is a pointer to RestrictionActionVAudit + RestrictionActionPAudit = &_RestrictionActionPAudit + // RestrictionActionPBlock is a pointer to RestrictionActionVBlock + RestrictionActionPBlock = &_RestrictionActionPBlock +) + +var ( + _RestrictionActionPWarn = RestrictionActionVWarn + _RestrictionActionPAudit = RestrictionActionVAudit + _RestrictionActionPBlock = RestrictionActionVBlock +) + +// RestrictionTrigger undocumented +type RestrictionTrigger string + +const ( + // RestrictionTriggerVCopyPaste undocumented + RestrictionTriggerVCopyPaste RestrictionTrigger = "copyPaste" + // RestrictionTriggerVCopyToNetworkShare undocumented + RestrictionTriggerVCopyToNetworkShare RestrictionTrigger = "copyToNetworkShare" + // RestrictionTriggerVCopyToRemovableMedia undocumented + RestrictionTriggerVCopyToRemovableMedia RestrictionTrigger = "copyToRemovableMedia" + // RestrictionTriggerVScreenCapture undocumented + RestrictionTriggerVScreenCapture RestrictionTrigger = "screenCapture" + // RestrictionTriggerVPrint undocumented + RestrictionTriggerVPrint RestrictionTrigger = "print" + // RestrictionTriggerVCloudEgress undocumented + RestrictionTriggerVCloudEgress RestrictionTrigger = "cloudEgress" + // RestrictionTriggerVUnallowedApps undocumented + RestrictionTriggerVUnallowedApps RestrictionTrigger = "unallowedApps" +) + +var ( + // RestrictionTriggerPCopyPaste is a pointer to RestrictionTriggerVCopyPaste + RestrictionTriggerPCopyPaste = &_RestrictionTriggerPCopyPaste + // RestrictionTriggerPCopyToNetworkShare is a pointer to RestrictionTriggerVCopyToNetworkShare + RestrictionTriggerPCopyToNetworkShare = &_RestrictionTriggerPCopyToNetworkShare + // RestrictionTriggerPCopyToRemovableMedia is a pointer to RestrictionTriggerVCopyToRemovableMedia + RestrictionTriggerPCopyToRemovableMedia = &_RestrictionTriggerPCopyToRemovableMedia + // RestrictionTriggerPScreenCapture is a pointer to RestrictionTriggerVScreenCapture + RestrictionTriggerPScreenCapture = &_RestrictionTriggerPScreenCapture + // RestrictionTriggerPPrint is a pointer to RestrictionTriggerVPrint + RestrictionTriggerPPrint = &_RestrictionTriggerPPrint + // RestrictionTriggerPCloudEgress is a pointer to RestrictionTriggerVCloudEgress + RestrictionTriggerPCloudEgress = &_RestrictionTriggerPCloudEgress + // RestrictionTriggerPUnallowedApps is a pointer to RestrictionTriggerVUnallowedApps + RestrictionTriggerPUnallowedApps = &_RestrictionTriggerPUnallowedApps +) + +var ( + _RestrictionTriggerPCopyPaste = RestrictionTriggerVCopyPaste + _RestrictionTriggerPCopyToNetworkShare = RestrictionTriggerVCopyToNetworkShare + _RestrictionTriggerPCopyToRemovableMedia = RestrictionTriggerVCopyToRemovableMedia + _RestrictionTriggerPScreenCapture = RestrictionTriggerVScreenCapture + _RestrictionTriggerPPrint = RestrictionTriggerVPrint + _RestrictionTriggerPCloudEgress = RestrictionTriggerVCloudEgress + _RestrictionTriggerPUnallowedApps = RestrictionTriggerVUnallowedApps +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go new file mode 100644 index 00000000..157280e9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go @@ -0,0 +1,162 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ResultantAppState undocumented +type ResultantAppState string + +const ( + // ResultantAppStateVInstalled undocumented + ResultantAppStateVInstalled ResultantAppState = "installed" + // ResultantAppStateVFailed undocumented + ResultantAppStateVFailed ResultantAppState = "failed" + // ResultantAppStateVNotInstalled undocumented + ResultantAppStateVNotInstalled ResultantAppState = "notInstalled" + // ResultantAppStateVUninstallFailed undocumented + ResultantAppStateVUninstallFailed ResultantAppState = "uninstallFailed" + // ResultantAppStateVPendingInstall undocumented + ResultantAppStateVPendingInstall ResultantAppState = "pendingInstall" + // ResultantAppStateVUnknown undocumented + ResultantAppStateVUnknown ResultantAppState = "unknown" + // ResultantAppStateVNotApplicable undocumented + ResultantAppStateVNotApplicable ResultantAppState = "notApplicable" +) + +var ( + // ResultantAppStatePInstalled is a pointer to ResultantAppStateVInstalled + ResultantAppStatePInstalled = &_ResultantAppStatePInstalled + // ResultantAppStatePFailed is a pointer to ResultantAppStateVFailed + ResultantAppStatePFailed = &_ResultantAppStatePFailed + // ResultantAppStatePNotInstalled is a pointer to ResultantAppStateVNotInstalled + ResultantAppStatePNotInstalled = &_ResultantAppStatePNotInstalled + // ResultantAppStatePUninstallFailed is a pointer to ResultantAppStateVUninstallFailed + ResultantAppStatePUninstallFailed = &_ResultantAppStatePUninstallFailed + // ResultantAppStatePPendingInstall is a pointer to ResultantAppStateVPendingInstall + ResultantAppStatePPendingInstall = &_ResultantAppStatePPendingInstall + // ResultantAppStatePUnknown is a pointer to ResultantAppStateVUnknown + ResultantAppStatePUnknown = &_ResultantAppStatePUnknown + // ResultantAppStatePNotApplicable is a pointer to ResultantAppStateVNotApplicable + ResultantAppStatePNotApplicable = &_ResultantAppStatePNotApplicable +) + +var ( + _ResultantAppStatePInstalled = ResultantAppStateVInstalled + _ResultantAppStatePFailed = ResultantAppStateVFailed + _ResultantAppStatePNotInstalled = ResultantAppStateVNotInstalled + _ResultantAppStatePUninstallFailed = ResultantAppStateVUninstallFailed + _ResultantAppStatePPendingInstall = ResultantAppStateVPendingInstall + _ResultantAppStatePUnknown = ResultantAppStateVUnknown + _ResultantAppStatePNotApplicable = ResultantAppStateVNotApplicable +) + +// ResultantAppStateDetail undocumented +type ResultantAppStateDetail string + +const ( + // ResultantAppStateDetailVNoAdditionalDetails undocumented + ResultantAppStateDetailVNoAdditionalDetails ResultantAppStateDetail = "noAdditionalDetails" + // ResultantAppStateDetailVDependencyFailedToInstall undocumented + ResultantAppStateDetailVDependencyFailedToInstall ResultantAppStateDetail = "dependencyFailedToInstall" + // ResultantAppStateDetailVDependencyWithRequirementsNotMet undocumented + ResultantAppStateDetailVDependencyWithRequirementsNotMet ResultantAppStateDetail = "dependencyWithRequirementsNotMet" + // ResultantAppStateDetailVDependencyPendingReboot undocumented + ResultantAppStateDetailVDependencyPendingReboot ResultantAppStateDetail = "dependencyPendingReboot" + // ResultantAppStateDetailVDependencyWithAutoInstallDisabled undocumented + ResultantAppStateDetailVDependencyWithAutoInstallDisabled ResultantAppStateDetail = "dependencyWithAutoInstallDisabled" + // ResultantAppStateDetailVSeeInstallErrorCode undocumented + ResultantAppStateDetailVSeeInstallErrorCode ResultantAppStateDetail = "seeInstallErrorCode" + // ResultantAppStateDetailVAutoInstallDisabled undocumented + ResultantAppStateDetailVAutoInstallDisabled ResultantAppStateDetail = "autoInstallDisabled" + // ResultantAppStateDetailVSeeUninstallErrorCode undocumented + ResultantAppStateDetailVSeeUninstallErrorCode ResultantAppStateDetail = "seeUninstallErrorCode" + // ResultantAppStateDetailVPendingReboot undocumented + ResultantAppStateDetailVPendingReboot ResultantAppStateDetail = "pendingReboot" + // ResultantAppStateDetailVInstallingDependencies undocumented + ResultantAppStateDetailVInstallingDependencies ResultantAppStateDetail = "installingDependencies" + // ResultantAppStateDetailVPowerShellScriptRequirementNotMet undocumented + ResultantAppStateDetailVPowerShellScriptRequirementNotMet ResultantAppStateDetail = "powerShellScriptRequirementNotMet" + // ResultantAppStateDetailVRegistryRequirementNotMet undocumented + ResultantAppStateDetailVRegistryRequirementNotMet ResultantAppStateDetail = "registryRequirementNotMet" + // ResultantAppStateDetailVFileSystemRequirementNotMet undocumented + ResultantAppStateDetailVFileSystemRequirementNotMet ResultantAppStateDetail = "fileSystemRequirementNotMet" + // ResultantAppStateDetailVPlatformNotApplicable undocumented + ResultantAppStateDetailVPlatformNotApplicable ResultantAppStateDetail = "platformNotApplicable" + // ResultantAppStateDetailVMinimumCPUSpeedNotMet undocumented + ResultantAppStateDetailVMinimumCPUSpeedNotMet ResultantAppStateDetail = "minimumCpuSpeedNotMet" + // ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet undocumented + ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet ResultantAppStateDetail = "minimumLogicalProcessorCountNotMet" + // ResultantAppStateDetailVMinimumPhysicalMemoryNotMet undocumented + ResultantAppStateDetailVMinimumPhysicalMemoryNotMet ResultantAppStateDetail = "minimumPhysicalMemoryNotMet" + // ResultantAppStateDetailVMinimumOsVersionNotMet undocumented + ResultantAppStateDetailVMinimumOsVersionNotMet ResultantAppStateDetail = "minimumOsVersionNotMet" + // ResultantAppStateDetailVMinimumDiskSpaceNotMet undocumented + ResultantAppStateDetailVMinimumDiskSpaceNotMet ResultantAppStateDetail = "minimumDiskSpaceNotMet" + // ResultantAppStateDetailVProcessorArchitectureNotApplicable undocumented + ResultantAppStateDetailVProcessorArchitectureNotApplicable ResultantAppStateDetail = "processorArchitectureNotApplicable" +) + +var ( + // ResultantAppStateDetailPNoAdditionalDetails is a pointer to ResultantAppStateDetailVNoAdditionalDetails + ResultantAppStateDetailPNoAdditionalDetails = &_ResultantAppStateDetailPNoAdditionalDetails + // ResultantAppStateDetailPDependencyFailedToInstall is a pointer to ResultantAppStateDetailVDependencyFailedToInstall + ResultantAppStateDetailPDependencyFailedToInstall = &_ResultantAppStateDetailPDependencyFailedToInstall + // ResultantAppStateDetailPDependencyWithRequirementsNotMet is a pointer to ResultantAppStateDetailVDependencyWithRequirementsNotMet + ResultantAppStateDetailPDependencyWithRequirementsNotMet = &_ResultantAppStateDetailPDependencyWithRequirementsNotMet + // ResultantAppStateDetailPDependencyPendingReboot is a pointer to ResultantAppStateDetailVDependencyPendingReboot + ResultantAppStateDetailPDependencyPendingReboot = &_ResultantAppStateDetailPDependencyPendingReboot + // ResultantAppStateDetailPDependencyWithAutoInstallDisabled is a pointer to ResultantAppStateDetailVDependencyWithAutoInstallDisabled + ResultantAppStateDetailPDependencyWithAutoInstallDisabled = &_ResultantAppStateDetailPDependencyWithAutoInstallDisabled + // ResultantAppStateDetailPSeeInstallErrorCode is a pointer to ResultantAppStateDetailVSeeInstallErrorCode + ResultantAppStateDetailPSeeInstallErrorCode = &_ResultantAppStateDetailPSeeInstallErrorCode + // ResultantAppStateDetailPAutoInstallDisabled is a pointer to ResultantAppStateDetailVAutoInstallDisabled + ResultantAppStateDetailPAutoInstallDisabled = &_ResultantAppStateDetailPAutoInstallDisabled + // ResultantAppStateDetailPSeeUninstallErrorCode is a pointer to ResultantAppStateDetailVSeeUninstallErrorCode + ResultantAppStateDetailPSeeUninstallErrorCode = &_ResultantAppStateDetailPSeeUninstallErrorCode + // ResultantAppStateDetailPPendingReboot is a pointer to ResultantAppStateDetailVPendingReboot + ResultantAppStateDetailPPendingReboot = &_ResultantAppStateDetailPPendingReboot + // ResultantAppStateDetailPInstallingDependencies is a pointer to ResultantAppStateDetailVInstallingDependencies + ResultantAppStateDetailPInstallingDependencies = &_ResultantAppStateDetailPInstallingDependencies + // ResultantAppStateDetailPPowerShellScriptRequirementNotMet is a pointer to ResultantAppStateDetailVPowerShellScriptRequirementNotMet + ResultantAppStateDetailPPowerShellScriptRequirementNotMet = &_ResultantAppStateDetailPPowerShellScriptRequirementNotMet + // ResultantAppStateDetailPRegistryRequirementNotMet is a pointer to ResultantAppStateDetailVRegistryRequirementNotMet + ResultantAppStateDetailPRegistryRequirementNotMet = &_ResultantAppStateDetailPRegistryRequirementNotMet + // ResultantAppStateDetailPFileSystemRequirementNotMet is a pointer to ResultantAppStateDetailVFileSystemRequirementNotMet + ResultantAppStateDetailPFileSystemRequirementNotMet = &_ResultantAppStateDetailPFileSystemRequirementNotMet + // ResultantAppStateDetailPPlatformNotApplicable is a pointer to ResultantAppStateDetailVPlatformNotApplicable + ResultantAppStateDetailPPlatformNotApplicable = &_ResultantAppStateDetailPPlatformNotApplicable + // ResultantAppStateDetailPMinimumCPUSpeedNotMet is a pointer to ResultantAppStateDetailVMinimumCPUSpeedNotMet + ResultantAppStateDetailPMinimumCPUSpeedNotMet = &_ResultantAppStateDetailPMinimumCPUSpeedNotMet + // ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet is a pointer to ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet + ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet = &_ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet + // ResultantAppStateDetailPMinimumPhysicalMemoryNotMet is a pointer to ResultantAppStateDetailVMinimumPhysicalMemoryNotMet + ResultantAppStateDetailPMinimumPhysicalMemoryNotMet = &_ResultantAppStateDetailPMinimumPhysicalMemoryNotMet + // ResultantAppStateDetailPMinimumOsVersionNotMet is a pointer to ResultantAppStateDetailVMinimumOsVersionNotMet + ResultantAppStateDetailPMinimumOsVersionNotMet = &_ResultantAppStateDetailPMinimumOsVersionNotMet + // ResultantAppStateDetailPMinimumDiskSpaceNotMet is a pointer to ResultantAppStateDetailVMinimumDiskSpaceNotMet + ResultantAppStateDetailPMinimumDiskSpaceNotMet = &_ResultantAppStateDetailPMinimumDiskSpaceNotMet + // ResultantAppStateDetailPProcessorArchitectureNotApplicable is a pointer to ResultantAppStateDetailVProcessorArchitectureNotApplicable + ResultantAppStateDetailPProcessorArchitectureNotApplicable = &_ResultantAppStateDetailPProcessorArchitectureNotApplicable +) + +var ( + _ResultantAppStateDetailPNoAdditionalDetails = ResultantAppStateDetailVNoAdditionalDetails + _ResultantAppStateDetailPDependencyFailedToInstall = ResultantAppStateDetailVDependencyFailedToInstall + _ResultantAppStateDetailPDependencyWithRequirementsNotMet = ResultantAppStateDetailVDependencyWithRequirementsNotMet + _ResultantAppStateDetailPDependencyPendingReboot = ResultantAppStateDetailVDependencyPendingReboot + _ResultantAppStateDetailPDependencyWithAutoInstallDisabled = ResultantAppStateDetailVDependencyWithAutoInstallDisabled + _ResultantAppStateDetailPSeeInstallErrorCode = ResultantAppStateDetailVSeeInstallErrorCode + _ResultantAppStateDetailPAutoInstallDisabled = ResultantAppStateDetailVAutoInstallDisabled + _ResultantAppStateDetailPSeeUninstallErrorCode = ResultantAppStateDetailVSeeUninstallErrorCode + _ResultantAppStateDetailPPendingReboot = ResultantAppStateDetailVPendingReboot + _ResultantAppStateDetailPInstallingDependencies = ResultantAppStateDetailVInstallingDependencies + _ResultantAppStateDetailPPowerShellScriptRequirementNotMet = ResultantAppStateDetailVPowerShellScriptRequirementNotMet + _ResultantAppStateDetailPRegistryRequirementNotMet = ResultantAppStateDetailVRegistryRequirementNotMet + _ResultantAppStateDetailPFileSystemRequirementNotMet = ResultantAppStateDetailVFileSystemRequirementNotMet + _ResultantAppStateDetailPPlatformNotApplicable = ResultantAppStateDetailVPlatformNotApplicable + _ResultantAppStateDetailPMinimumCPUSpeedNotMet = ResultantAppStateDetailVMinimumCPUSpeedNotMet + _ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet = ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet + _ResultantAppStateDetailPMinimumPhysicalMemoryNotMet = ResultantAppStateDetailVMinimumPhysicalMemoryNotMet + _ResultantAppStateDetailPMinimumOsVersionNotMet = ResultantAppStateDetailVMinimumOsVersionNotMet + _ResultantAppStateDetailPMinimumDiskSpaceNotMet = ResultantAppStateDetailVMinimumDiskSpaceNotMet + _ResultantAppStateDetailPProcessorArchitectureNotApplicable = ResultantAppStateDetailVProcessorArchitectureNotApplicable +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go new file mode 100644 index 00000000..a2571503 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go @@ -0,0 +1,340 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RiskDetail undocumented +type RiskDetail string + +const ( + // RiskDetailVNone undocumented + RiskDetailVNone RiskDetail = "none" + // RiskDetailVAdminGeneratedTemporaryPassword undocumented + RiskDetailVAdminGeneratedTemporaryPassword RiskDetail = "adminGeneratedTemporaryPassword" + // RiskDetailVUserPerformedSecuredPasswordChange undocumented + RiskDetailVUserPerformedSecuredPasswordChange RiskDetail = "userPerformedSecuredPasswordChange" + // RiskDetailVUserPerformedSecuredPasswordReset undocumented + RiskDetailVUserPerformedSecuredPasswordReset RiskDetail = "userPerformedSecuredPasswordReset" + // RiskDetailVAdminConfirmedSigninSafe undocumented + RiskDetailVAdminConfirmedSigninSafe RiskDetail = "adminConfirmedSigninSafe" + // RiskDetailVAiConfirmedSigninSafe undocumented + RiskDetailVAiConfirmedSigninSafe RiskDetail = "aiConfirmedSigninSafe" + // RiskDetailVUserPassedMFADrivenByRiskBasedPolicy undocumented + RiskDetailVUserPassedMFADrivenByRiskBasedPolicy RiskDetail = "userPassedMFADrivenByRiskBasedPolicy" + // RiskDetailVAdminDismissedAllRiskForUser undocumented + RiskDetailVAdminDismissedAllRiskForUser RiskDetail = "adminDismissedAllRiskForUser" + // RiskDetailVAdminConfirmedSigninCompromised undocumented + RiskDetailVAdminConfirmedSigninCompromised RiskDetail = "adminConfirmedSigninCompromised" + // RiskDetailVHidden undocumented + RiskDetailVHidden RiskDetail = "hidden" + // RiskDetailVAdminConfirmedUserCompromised undocumented + RiskDetailVAdminConfirmedUserCompromised RiskDetail = "adminConfirmedUserCompromised" + // RiskDetailVUnknownFutureValue undocumented + RiskDetailVUnknownFutureValue RiskDetail = "unknownFutureValue" +) + +var ( + // RiskDetailPNone is a pointer to RiskDetailVNone + RiskDetailPNone = &_RiskDetailPNone + // RiskDetailPAdminGeneratedTemporaryPassword is a pointer to RiskDetailVAdminGeneratedTemporaryPassword + RiskDetailPAdminGeneratedTemporaryPassword = &_RiskDetailPAdminGeneratedTemporaryPassword + // RiskDetailPUserPerformedSecuredPasswordChange is a pointer to RiskDetailVUserPerformedSecuredPasswordChange + RiskDetailPUserPerformedSecuredPasswordChange = &_RiskDetailPUserPerformedSecuredPasswordChange + // RiskDetailPUserPerformedSecuredPasswordReset is a pointer to RiskDetailVUserPerformedSecuredPasswordReset + RiskDetailPUserPerformedSecuredPasswordReset = &_RiskDetailPUserPerformedSecuredPasswordReset + // RiskDetailPAdminConfirmedSigninSafe is a pointer to RiskDetailVAdminConfirmedSigninSafe + RiskDetailPAdminConfirmedSigninSafe = &_RiskDetailPAdminConfirmedSigninSafe + // RiskDetailPAiConfirmedSigninSafe is a pointer to RiskDetailVAiConfirmedSigninSafe + RiskDetailPAiConfirmedSigninSafe = &_RiskDetailPAiConfirmedSigninSafe + // RiskDetailPUserPassedMFADrivenByRiskBasedPolicy is a pointer to RiskDetailVUserPassedMFADrivenByRiskBasedPolicy + RiskDetailPUserPassedMFADrivenByRiskBasedPolicy = &_RiskDetailPUserPassedMFADrivenByRiskBasedPolicy + // RiskDetailPAdminDismissedAllRiskForUser is a pointer to RiskDetailVAdminDismissedAllRiskForUser + RiskDetailPAdminDismissedAllRiskForUser = &_RiskDetailPAdminDismissedAllRiskForUser + // RiskDetailPAdminConfirmedSigninCompromised is a pointer to RiskDetailVAdminConfirmedSigninCompromised + RiskDetailPAdminConfirmedSigninCompromised = &_RiskDetailPAdminConfirmedSigninCompromised + // RiskDetailPHidden is a pointer to RiskDetailVHidden + RiskDetailPHidden = &_RiskDetailPHidden + // RiskDetailPAdminConfirmedUserCompromised is a pointer to RiskDetailVAdminConfirmedUserCompromised + RiskDetailPAdminConfirmedUserCompromised = &_RiskDetailPAdminConfirmedUserCompromised + // RiskDetailPUnknownFutureValue is a pointer to RiskDetailVUnknownFutureValue + RiskDetailPUnknownFutureValue = &_RiskDetailPUnknownFutureValue +) + +var ( + _RiskDetailPNone = RiskDetailVNone + _RiskDetailPAdminGeneratedTemporaryPassword = RiskDetailVAdminGeneratedTemporaryPassword + _RiskDetailPUserPerformedSecuredPasswordChange = RiskDetailVUserPerformedSecuredPasswordChange + _RiskDetailPUserPerformedSecuredPasswordReset = RiskDetailVUserPerformedSecuredPasswordReset + _RiskDetailPAdminConfirmedSigninSafe = RiskDetailVAdminConfirmedSigninSafe + _RiskDetailPAiConfirmedSigninSafe = RiskDetailVAiConfirmedSigninSafe + _RiskDetailPUserPassedMFADrivenByRiskBasedPolicy = RiskDetailVUserPassedMFADrivenByRiskBasedPolicy + _RiskDetailPAdminDismissedAllRiskForUser = RiskDetailVAdminDismissedAllRiskForUser + _RiskDetailPAdminConfirmedSigninCompromised = RiskDetailVAdminConfirmedSigninCompromised + _RiskDetailPHidden = RiskDetailVHidden + _RiskDetailPAdminConfirmedUserCompromised = RiskDetailVAdminConfirmedUserCompromised + _RiskDetailPUnknownFutureValue = RiskDetailVUnknownFutureValue +) + +// RiskDetectionTimingType undocumented +type RiskDetectionTimingType string + +const ( + // RiskDetectionTimingTypeVNotDefined undocumented + RiskDetectionTimingTypeVNotDefined RiskDetectionTimingType = "notDefined" + // RiskDetectionTimingTypeVRealtime undocumented + RiskDetectionTimingTypeVRealtime RiskDetectionTimingType = "realtime" + // RiskDetectionTimingTypeVNearRealtime undocumented + RiskDetectionTimingTypeVNearRealtime RiskDetectionTimingType = "nearRealtime" + // RiskDetectionTimingTypeVOffline undocumented + RiskDetectionTimingTypeVOffline RiskDetectionTimingType = "offline" + // RiskDetectionTimingTypeVUnknownFutureValue undocumented + RiskDetectionTimingTypeVUnknownFutureValue RiskDetectionTimingType = "unknownFutureValue" +) + +var ( + // RiskDetectionTimingTypePNotDefined is a pointer to RiskDetectionTimingTypeVNotDefined + RiskDetectionTimingTypePNotDefined = &_RiskDetectionTimingTypePNotDefined + // RiskDetectionTimingTypePRealtime is a pointer to RiskDetectionTimingTypeVRealtime + RiskDetectionTimingTypePRealtime = &_RiskDetectionTimingTypePRealtime + // RiskDetectionTimingTypePNearRealtime is a pointer to RiskDetectionTimingTypeVNearRealtime + RiskDetectionTimingTypePNearRealtime = &_RiskDetectionTimingTypePNearRealtime + // RiskDetectionTimingTypePOffline is a pointer to RiskDetectionTimingTypeVOffline + RiskDetectionTimingTypePOffline = &_RiskDetectionTimingTypePOffline + // RiskDetectionTimingTypePUnknownFutureValue is a pointer to RiskDetectionTimingTypeVUnknownFutureValue + RiskDetectionTimingTypePUnknownFutureValue = &_RiskDetectionTimingTypePUnknownFutureValue +) + +var ( + _RiskDetectionTimingTypePNotDefined = RiskDetectionTimingTypeVNotDefined + _RiskDetectionTimingTypePRealtime = RiskDetectionTimingTypeVRealtime + _RiskDetectionTimingTypePNearRealtime = RiskDetectionTimingTypeVNearRealtime + _RiskDetectionTimingTypePOffline = RiskDetectionTimingTypeVOffline + _RiskDetectionTimingTypePUnknownFutureValue = RiskDetectionTimingTypeVUnknownFutureValue +) + +// RiskEventStatus undocumented +type RiskEventStatus string + +const ( + // RiskEventStatusVActive undocumented + RiskEventStatusVActive RiskEventStatus = "active" + // RiskEventStatusVRemediated undocumented + RiskEventStatusVRemediated RiskEventStatus = "remediated" + // RiskEventStatusVDismissedAsFixed undocumented + RiskEventStatusVDismissedAsFixed RiskEventStatus = "dismissedAsFixed" + // RiskEventStatusVDismissedAsFalsePositive undocumented + RiskEventStatusVDismissedAsFalsePositive RiskEventStatus = "dismissedAsFalsePositive" + // RiskEventStatusVDismissedAsIgnore undocumented + RiskEventStatusVDismissedAsIgnore RiskEventStatus = "dismissedAsIgnore" + // RiskEventStatusVLoginBlocked undocumented + RiskEventStatusVLoginBlocked RiskEventStatus = "loginBlocked" + // RiskEventStatusVClosedMFAAuto undocumented + RiskEventStatusVClosedMFAAuto RiskEventStatus = "closedMfaAuto" + // RiskEventStatusVClosedMultipleReasons undocumented + RiskEventStatusVClosedMultipleReasons RiskEventStatus = "closedMultipleReasons" +) + +var ( + // RiskEventStatusPActive is a pointer to RiskEventStatusVActive + RiskEventStatusPActive = &_RiskEventStatusPActive + // RiskEventStatusPRemediated is a pointer to RiskEventStatusVRemediated + RiskEventStatusPRemediated = &_RiskEventStatusPRemediated + // RiskEventStatusPDismissedAsFixed is a pointer to RiskEventStatusVDismissedAsFixed + RiskEventStatusPDismissedAsFixed = &_RiskEventStatusPDismissedAsFixed + // RiskEventStatusPDismissedAsFalsePositive is a pointer to RiskEventStatusVDismissedAsFalsePositive + RiskEventStatusPDismissedAsFalsePositive = &_RiskEventStatusPDismissedAsFalsePositive + // RiskEventStatusPDismissedAsIgnore is a pointer to RiskEventStatusVDismissedAsIgnore + RiskEventStatusPDismissedAsIgnore = &_RiskEventStatusPDismissedAsIgnore + // RiskEventStatusPLoginBlocked is a pointer to RiskEventStatusVLoginBlocked + RiskEventStatusPLoginBlocked = &_RiskEventStatusPLoginBlocked + // RiskEventStatusPClosedMFAAuto is a pointer to RiskEventStatusVClosedMFAAuto + RiskEventStatusPClosedMFAAuto = &_RiskEventStatusPClosedMFAAuto + // RiskEventStatusPClosedMultipleReasons is a pointer to RiskEventStatusVClosedMultipleReasons + RiskEventStatusPClosedMultipleReasons = &_RiskEventStatusPClosedMultipleReasons +) + +var ( + _RiskEventStatusPActive = RiskEventStatusVActive + _RiskEventStatusPRemediated = RiskEventStatusVRemediated + _RiskEventStatusPDismissedAsFixed = RiskEventStatusVDismissedAsFixed + _RiskEventStatusPDismissedAsFalsePositive = RiskEventStatusVDismissedAsFalsePositive + _RiskEventStatusPDismissedAsIgnore = RiskEventStatusVDismissedAsIgnore + _RiskEventStatusPLoginBlocked = RiskEventStatusVLoginBlocked + _RiskEventStatusPClosedMFAAuto = RiskEventStatusVClosedMFAAuto + _RiskEventStatusPClosedMultipleReasons = RiskEventStatusVClosedMultipleReasons +) + +// RiskEventType undocumented +type RiskEventType string + +const ( + // RiskEventTypeVUnlikelyTravel undocumented + RiskEventTypeVUnlikelyTravel RiskEventType = "unlikelyTravel" + // RiskEventTypeVAnonymizedIPAddress undocumented + RiskEventTypeVAnonymizedIPAddress RiskEventType = "anonymizedIPAddress" + // RiskEventTypeVMaliciousIPAddress undocumented + RiskEventTypeVMaliciousIPAddress RiskEventType = "maliciousIPAddress" + // RiskEventTypeVUnfamiliarFeatures undocumented + RiskEventTypeVUnfamiliarFeatures RiskEventType = "unfamiliarFeatures" + // RiskEventTypeVMalwareInfectedIPAddress undocumented + RiskEventTypeVMalwareInfectedIPAddress RiskEventType = "malwareInfectedIPAddress" + // RiskEventTypeVSuspiciousIPAddress undocumented + RiskEventTypeVSuspiciousIPAddress RiskEventType = "suspiciousIPAddress" + // RiskEventTypeVLeakedCredentials undocumented + RiskEventTypeVLeakedCredentials RiskEventType = "leakedCredentials" + // RiskEventTypeVInvestigationsThreatIntelligence undocumented + RiskEventTypeVInvestigationsThreatIntelligence RiskEventType = "investigationsThreatIntelligence" + // RiskEventTypeVGeneric undocumented + RiskEventTypeVGeneric RiskEventType = "generic" + // RiskEventTypeVAdminConfirmedUserCompromised undocumented + RiskEventTypeVAdminConfirmedUserCompromised RiskEventType = "adminConfirmedUserCompromised" + // RiskEventTypeVMcasImpossibleTravel undocumented + RiskEventTypeVMcasImpossibleTravel RiskEventType = "mcasImpossibleTravel" + // RiskEventTypeVMcasSuspiciousInboxManipulationRules undocumented + RiskEventTypeVMcasSuspiciousInboxManipulationRules RiskEventType = "mcasSuspiciousInboxManipulationRules" + // RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked undocumented + RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked RiskEventType = "investigationsThreatIntelligenceSigninLinked" + // RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP undocumented + RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP RiskEventType = "maliciousIPAddressValidCredentialsBlockedIP" + // RiskEventTypeVUnknownFutureValue undocumented + RiskEventTypeVUnknownFutureValue RiskEventType = "unknownFutureValue" +) + +var ( + // RiskEventTypePUnlikelyTravel is a pointer to RiskEventTypeVUnlikelyTravel + RiskEventTypePUnlikelyTravel = &_RiskEventTypePUnlikelyTravel + // RiskEventTypePAnonymizedIPAddress is a pointer to RiskEventTypeVAnonymizedIPAddress + RiskEventTypePAnonymizedIPAddress = &_RiskEventTypePAnonymizedIPAddress + // RiskEventTypePMaliciousIPAddress is a pointer to RiskEventTypeVMaliciousIPAddress + RiskEventTypePMaliciousIPAddress = &_RiskEventTypePMaliciousIPAddress + // RiskEventTypePUnfamiliarFeatures is a pointer to RiskEventTypeVUnfamiliarFeatures + RiskEventTypePUnfamiliarFeatures = &_RiskEventTypePUnfamiliarFeatures + // RiskEventTypePMalwareInfectedIPAddress is a pointer to RiskEventTypeVMalwareInfectedIPAddress + RiskEventTypePMalwareInfectedIPAddress = &_RiskEventTypePMalwareInfectedIPAddress + // RiskEventTypePSuspiciousIPAddress is a pointer to RiskEventTypeVSuspiciousIPAddress + RiskEventTypePSuspiciousIPAddress = &_RiskEventTypePSuspiciousIPAddress + // RiskEventTypePLeakedCredentials is a pointer to RiskEventTypeVLeakedCredentials + RiskEventTypePLeakedCredentials = &_RiskEventTypePLeakedCredentials + // RiskEventTypePInvestigationsThreatIntelligence is a pointer to RiskEventTypeVInvestigationsThreatIntelligence + RiskEventTypePInvestigationsThreatIntelligence = &_RiskEventTypePInvestigationsThreatIntelligence + // RiskEventTypePGeneric is a pointer to RiskEventTypeVGeneric + RiskEventTypePGeneric = &_RiskEventTypePGeneric + // RiskEventTypePAdminConfirmedUserCompromised is a pointer to RiskEventTypeVAdminConfirmedUserCompromised + RiskEventTypePAdminConfirmedUserCompromised = &_RiskEventTypePAdminConfirmedUserCompromised + // RiskEventTypePMcasImpossibleTravel is a pointer to RiskEventTypeVMcasImpossibleTravel + RiskEventTypePMcasImpossibleTravel = &_RiskEventTypePMcasImpossibleTravel + // RiskEventTypePMcasSuspiciousInboxManipulationRules is a pointer to RiskEventTypeVMcasSuspiciousInboxManipulationRules + RiskEventTypePMcasSuspiciousInboxManipulationRules = &_RiskEventTypePMcasSuspiciousInboxManipulationRules + // RiskEventTypePInvestigationsThreatIntelligenceSigninLinked is a pointer to RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked + RiskEventTypePInvestigationsThreatIntelligenceSigninLinked = &_RiskEventTypePInvestigationsThreatIntelligenceSigninLinked + // RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP is a pointer to RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP + RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP = &_RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP + // RiskEventTypePUnknownFutureValue is a pointer to RiskEventTypeVUnknownFutureValue + RiskEventTypePUnknownFutureValue = &_RiskEventTypePUnknownFutureValue +) + +var ( + _RiskEventTypePUnlikelyTravel = RiskEventTypeVUnlikelyTravel + _RiskEventTypePAnonymizedIPAddress = RiskEventTypeVAnonymizedIPAddress + _RiskEventTypePMaliciousIPAddress = RiskEventTypeVMaliciousIPAddress + _RiskEventTypePUnfamiliarFeatures = RiskEventTypeVUnfamiliarFeatures + _RiskEventTypePMalwareInfectedIPAddress = RiskEventTypeVMalwareInfectedIPAddress + _RiskEventTypePSuspiciousIPAddress = RiskEventTypeVSuspiciousIPAddress + _RiskEventTypePLeakedCredentials = RiskEventTypeVLeakedCredentials + _RiskEventTypePInvestigationsThreatIntelligence = RiskEventTypeVInvestigationsThreatIntelligence + _RiskEventTypePGeneric = RiskEventTypeVGeneric + _RiskEventTypePAdminConfirmedUserCompromised = RiskEventTypeVAdminConfirmedUserCompromised + _RiskEventTypePMcasImpossibleTravel = RiskEventTypeVMcasImpossibleTravel + _RiskEventTypePMcasSuspiciousInboxManipulationRules = RiskEventTypeVMcasSuspiciousInboxManipulationRules + _RiskEventTypePInvestigationsThreatIntelligenceSigninLinked = RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked + _RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP = RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP + _RiskEventTypePUnknownFutureValue = RiskEventTypeVUnknownFutureValue +) + +// RiskLevel undocumented +type RiskLevel string + +const ( + // RiskLevelVLow undocumented + RiskLevelVLow RiskLevel = "low" + // RiskLevelVMedium undocumented + RiskLevelVMedium RiskLevel = "medium" + // RiskLevelVHigh undocumented + RiskLevelVHigh RiskLevel = "high" + // RiskLevelVHidden undocumented + RiskLevelVHidden RiskLevel = "hidden" + // RiskLevelVNone undocumented + RiskLevelVNone RiskLevel = "none" + // RiskLevelVUnknownFutureValue undocumented + RiskLevelVUnknownFutureValue RiskLevel = "unknownFutureValue" +) + +var ( + // RiskLevelPLow is a pointer to RiskLevelVLow + RiskLevelPLow = &_RiskLevelPLow + // RiskLevelPMedium is a pointer to RiskLevelVMedium + RiskLevelPMedium = &_RiskLevelPMedium + // RiskLevelPHigh is a pointer to RiskLevelVHigh + RiskLevelPHigh = &_RiskLevelPHigh + // RiskLevelPHidden is a pointer to RiskLevelVHidden + RiskLevelPHidden = &_RiskLevelPHidden + // RiskLevelPNone is a pointer to RiskLevelVNone + RiskLevelPNone = &_RiskLevelPNone + // RiskLevelPUnknownFutureValue is a pointer to RiskLevelVUnknownFutureValue + RiskLevelPUnknownFutureValue = &_RiskLevelPUnknownFutureValue +) + +var ( + _RiskLevelPLow = RiskLevelVLow + _RiskLevelPMedium = RiskLevelVMedium + _RiskLevelPHigh = RiskLevelVHigh + _RiskLevelPHidden = RiskLevelVHidden + _RiskLevelPNone = RiskLevelVNone + _RiskLevelPUnknownFutureValue = RiskLevelVUnknownFutureValue +) + +// RiskState undocumented +type RiskState string + +const ( + // RiskStateVNone undocumented + RiskStateVNone RiskState = "none" + // RiskStateVConfirmedSafe undocumented + RiskStateVConfirmedSafe RiskState = "confirmedSafe" + // RiskStateVRemediated undocumented + RiskStateVRemediated RiskState = "remediated" + // RiskStateVDismissed undocumented + RiskStateVDismissed RiskState = "dismissed" + // RiskStateVAtRisk undocumented + RiskStateVAtRisk RiskState = "atRisk" + // RiskStateVConfirmedCompromised undocumented + RiskStateVConfirmedCompromised RiskState = "confirmedCompromised" + // RiskStateVUnknownFutureValue undocumented + RiskStateVUnknownFutureValue RiskState = "unknownFutureValue" +) + +var ( + // RiskStatePNone is a pointer to RiskStateVNone + RiskStatePNone = &_RiskStatePNone + // RiskStatePConfirmedSafe is a pointer to RiskStateVConfirmedSafe + RiskStatePConfirmedSafe = &_RiskStatePConfirmedSafe + // RiskStatePRemediated is a pointer to RiskStateVRemediated + RiskStatePRemediated = &_RiskStatePRemediated + // RiskStatePDismissed is a pointer to RiskStateVDismissed + RiskStatePDismissed = &_RiskStatePDismissed + // RiskStatePAtRisk is a pointer to RiskStateVAtRisk + RiskStatePAtRisk = &_RiskStatePAtRisk + // RiskStatePConfirmedCompromised is a pointer to RiskStateVConfirmedCompromised + RiskStatePConfirmedCompromised = &_RiskStatePConfirmedCompromised + // RiskStatePUnknownFutureValue is a pointer to RiskStateVUnknownFutureValue + RiskStatePUnknownFutureValue = &_RiskStatePUnknownFutureValue +) + +var ( + _RiskStatePNone = RiskStateVNone + _RiskStatePConfirmedSafe = RiskStateVConfirmedSafe + _RiskStatePRemediated = RiskStateVRemediated + _RiskStatePDismissed = RiskStateVDismissed + _RiskStatePAtRisk = RiskStateVAtRisk + _RiskStatePConfirmedCompromised = RiskStateVConfirmedCompromised + _RiskStatePUnknownFutureValue = RiskStateVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go new file mode 100644 index 00000000..b9155be5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RoleAssignmentScopeType undocumented +type RoleAssignmentScopeType string + +const ( + // RoleAssignmentScopeTypeVResourceScope undocumented + RoleAssignmentScopeTypeVResourceScope RoleAssignmentScopeType = "resourceScope" + // RoleAssignmentScopeTypeVAllDevices undocumented + RoleAssignmentScopeTypeVAllDevices RoleAssignmentScopeType = "allDevices" + // RoleAssignmentScopeTypeVAllLicensedUsers undocumented + RoleAssignmentScopeTypeVAllLicensedUsers RoleAssignmentScopeType = "allLicensedUsers" + // RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers undocumented + RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers RoleAssignmentScopeType = "allDevicesAndLicensedUsers" +) + +var ( + // RoleAssignmentScopeTypePResourceScope is a pointer to RoleAssignmentScopeTypeVResourceScope + RoleAssignmentScopeTypePResourceScope = &_RoleAssignmentScopeTypePResourceScope + // RoleAssignmentScopeTypePAllDevices is a pointer to RoleAssignmentScopeTypeVAllDevices + RoleAssignmentScopeTypePAllDevices = &_RoleAssignmentScopeTypePAllDevices + // RoleAssignmentScopeTypePAllLicensedUsers is a pointer to RoleAssignmentScopeTypeVAllLicensedUsers + RoleAssignmentScopeTypePAllLicensedUsers = &_RoleAssignmentScopeTypePAllLicensedUsers + // RoleAssignmentScopeTypePAllDevicesAndLicensedUsers is a pointer to RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers + RoleAssignmentScopeTypePAllDevicesAndLicensedUsers = &_RoleAssignmentScopeTypePAllDevicesAndLicensedUsers +) + +var ( + _RoleAssignmentScopeTypePResourceScope = RoleAssignmentScopeTypeVResourceScope + _RoleAssignmentScopeTypePAllDevices = RoleAssignmentScopeTypeVAllDevices + _RoleAssignmentScopeTypePAllLicensedUsers = RoleAssignmentScopeTypeVAllLicensedUsers + _RoleAssignmentScopeTypePAllDevicesAndLicensedUsers = RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers +) + +// RoleSummaryStatus undocumented +type RoleSummaryStatus string + +const ( + // RoleSummaryStatusVOk undocumented + RoleSummaryStatusVOk RoleSummaryStatus = "ok" + // RoleSummaryStatusVBad undocumented + RoleSummaryStatusVBad RoleSummaryStatus = "bad" +) + +var ( + // RoleSummaryStatusPOk is a pointer to RoleSummaryStatusVOk + RoleSummaryStatusPOk = &_RoleSummaryStatusPOk + // RoleSummaryStatusPBad is a pointer to RoleSummaryStatusVBad + RoleSummaryStatusPBad = &_RoleSummaryStatusPBad +) + +var ( + _RoleSummaryStatusPOk = RoleSummaryStatusVOk + _RoleSummaryStatusPBad = RoleSummaryStatusVBad +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go new file mode 100644 index 00000000..31455baa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go @@ -0,0 +1,94 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RoutingMode undocumented +type RoutingMode string + +const ( + // RoutingModeVOneToOne undocumented + RoutingModeVOneToOne RoutingMode = "oneToOne" + // RoutingModeVMulticast undocumented + RoutingModeVMulticast RoutingMode = "multicast" +) + +var ( + // RoutingModePOneToOne is a pointer to RoutingModeVOneToOne + RoutingModePOneToOne = &_RoutingModePOneToOne + // RoutingModePMulticast is a pointer to RoutingModeVMulticast + RoutingModePMulticast = &_RoutingModePMulticast +) + +var ( + _RoutingModePOneToOne = RoutingModeVOneToOne + _RoutingModePMulticast = RoutingModeVMulticast +) + +// RoutingPolicy undocumented +type RoutingPolicy string + +const ( + // RoutingPolicyVNone undocumented + RoutingPolicyVNone RoutingPolicy = "none" + // RoutingPolicyVNoMissedCall undocumented + RoutingPolicyVNoMissedCall RoutingPolicy = "noMissedCall" + // RoutingPolicyVDisableForwardingExceptPhone undocumented + RoutingPolicyVDisableForwardingExceptPhone RoutingPolicy = "disableForwardingExceptPhone" + // RoutingPolicyVDisableForwarding undocumented + RoutingPolicyVDisableForwarding RoutingPolicy = "disableForwarding" + // RoutingPolicyVPreferSkypeForBusiness undocumented + RoutingPolicyVPreferSkypeForBusiness RoutingPolicy = "preferSkypeForBusiness" + // RoutingPolicyVUnknownFutureValue undocumented + RoutingPolicyVUnknownFutureValue RoutingPolicy = "unknownFutureValue" +) + +var ( + // RoutingPolicyPNone is a pointer to RoutingPolicyVNone + RoutingPolicyPNone = &_RoutingPolicyPNone + // RoutingPolicyPNoMissedCall is a pointer to RoutingPolicyVNoMissedCall + RoutingPolicyPNoMissedCall = &_RoutingPolicyPNoMissedCall + // RoutingPolicyPDisableForwardingExceptPhone is a pointer to RoutingPolicyVDisableForwardingExceptPhone + RoutingPolicyPDisableForwardingExceptPhone = &_RoutingPolicyPDisableForwardingExceptPhone + // RoutingPolicyPDisableForwarding is a pointer to RoutingPolicyVDisableForwarding + RoutingPolicyPDisableForwarding = &_RoutingPolicyPDisableForwarding + // RoutingPolicyPPreferSkypeForBusiness is a pointer to RoutingPolicyVPreferSkypeForBusiness + RoutingPolicyPPreferSkypeForBusiness = &_RoutingPolicyPPreferSkypeForBusiness + // RoutingPolicyPUnknownFutureValue is a pointer to RoutingPolicyVUnknownFutureValue + RoutingPolicyPUnknownFutureValue = &_RoutingPolicyPUnknownFutureValue +) + +var ( + _RoutingPolicyPNone = RoutingPolicyVNone + _RoutingPolicyPNoMissedCall = RoutingPolicyVNoMissedCall + _RoutingPolicyPDisableForwardingExceptPhone = RoutingPolicyVDisableForwardingExceptPhone + _RoutingPolicyPDisableForwarding = RoutingPolicyVDisableForwarding + _RoutingPolicyPPreferSkypeForBusiness = RoutingPolicyVPreferSkypeForBusiness + _RoutingPolicyPUnknownFutureValue = RoutingPolicyVUnknownFutureValue +) + +// RoutingType undocumented +type RoutingType string + +const ( + // RoutingTypeVForwarded undocumented + RoutingTypeVForwarded RoutingType = "forwarded" + // RoutingTypeVLookup undocumented + RoutingTypeVLookup RoutingType = "lookup" + // RoutingTypeVSelfFork undocumented + RoutingTypeVSelfFork RoutingType = "selfFork" +) + +var ( + // RoutingTypePForwarded is a pointer to RoutingTypeVForwarded + RoutingTypePForwarded = &_RoutingTypePForwarded + // RoutingTypePLookup is a pointer to RoutingTypeVLookup + RoutingTypePLookup = &_RoutingTypePLookup + // RoutingTypePSelfFork is a pointer to RoutingTypeVSelfFork + RoutingTypePSelfFork = &_RoutingTypePSelfFork +) + +var ( + _RoutingTypePForwarded = RoutingTypeVForwarded + _RoutingTypePLookup = RoutingTypeVLookup + _RoutingTypePSelfFork = RoutingTypeVSelfFork +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go new file mode 100644 index 00000000..c08069d7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RuleMode undocumented +type RuleMode string + +const ( + // RuleModeVAudit undocumented + RuleModeVAudit RuleMode = "audit" + // RuleModeVAuditAndNotify undocumented + RuleModeVAuditAndNotify RuleMode = "auditAndNotify" + // RuleModeVEnforce undocumented + RuleModeVEnforce RuleMode = "enforce" + // RuleModeVPendingDeletion undocumented + RuleModeVPendingDeletion RuleMode = "pendingDeletion" + // RuleModeVTest undocumented + RuleModeVTest RuleMode = "test" +) + +var ( + // RuleModePAudit is a pointer to RuleModeVAudit + RuleModePAudit = &_RuleModePAudit + // RuleModePAuditAndNotify is a pointer to RuleModeVAuditAndNotify + RuleModePAuditAndNotify = &_RuleModePAuditAndNotify + // RuleModePEnforce is a pointer to RuleModeVEnforce + RuleModePEnforce = &_RuleModePEnforce + // RuleModePPendingDeletion is a pointer to RuleModeVPendingDeletion + RuleModePPendingDeletion = &_RuleModePPendingDeletion + // RuleModePTest is a pointer to RuleModeVTest + RuleModePTest = &_RuleModePTest +) + +var ( + _RuleModePAudit = RuleModeVAudit + _RuleModePAuditAndNotify = RuleModeVAuditAndNotify + _RuleModePEnforce = RuleModeVEnforce + _RuleModePPendingDeletion = RuleModeVPendingDeletion + _RuleModePTest = RuleModeVTest +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go new file mode 100644 index 00000000..1ee9d5e7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RunAsAccountType undocumented +type RunAsAccountType string + +const ( + // RunAsAccountTypeVSystem undocumented + RunAsAccountTypeVSystem RunAsAccountType = "system" + // RunAsAccountTypeVUser undocumented + RunAsAccountTypeVUser RunAsAccountType = "user" +) + +var ( + // RunAsAccountTypePSystem is a pointer to RunAsAccountTypeVSystem + RunAsAccountTypePSystem = &_RunAsAccountTypePSystem + // RunAsAccountTypePUser is a pointer to RunAsAccountTypeVUser + RunAsAccountTypePUser = &_RunAsAccountTypePUser +) + +var ( + _RunAsAccountTypePSystem = RunAsAccountTypeVSystem + _RunAsAccountTypePUser = RunAsAccountTypeVUser +) + +// RunState undocumented +type RunState string + +const ( + // RunStateVUnknown undocumented + RunStateVUnknown RunState = "unknown" + // RunStateVSuccess undocumented + RunStateVSuccess RunState = "success" + // RunStateVFail undocumented + RunStateVFail RunState = "fail" + // RunStateVScriptError undocumented + RunStateVScriptError RunState = "scriptError" + // RunStateVPending undocumented + RunStateVPending RunState = "pending" + // RunStateVNotApplicable undocumented + RunStateVNotApplicable RunState = "notApplicable" +) + +var ( + // RunStatePUnknown is a pointer to RunStateVUnknown + RunStatePUnknown = &_RunStatePUnknown + // RunStatePSuccess is a pointer to RunStateVSuccess + RunStatePSuccess = &_RunStatePSuccess + // RunStatePFail is a pointer to RunStateVFail + RunStatePFail = &_RunStatePFail + // RunStatePScriptError is a pointer to RunStateVScriptError + RunStatePScriptError = &_RunStatePScriptError + // RunStatePPending is a pointer to RunStateVPending + RunStatePPending = &_RunStatePPending + // RunStatePNotApplicable is a pointer to RunStateVNotApplicable + RunStatePNotApplicable = &_RunStatePNotApplicable +) + +var ( + _RunStatePUnknown = RunStateVUnknown + _RunStatePSuccess = RunStateVSuccess + _RunStatePFail = RunStateVFail + _RunStatePScriptError = RunStateVScriptError + _RunStatePPending = RunStateVPending + _RunStatePNotApplicable = RunStateVNotApplicable +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go new file mode 100644 index 00000000..a6fcf3c0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SafeSearchFilterType undocumented +type SafeSearchFilterType string + +const ( + // SafeSearchFilterTypeVUserDefined undocumented + SafeSearchFilterTypeVUserDefined SafeSearchFilterType = "userDefined" + // SafeSearchFilterTypeVStrict undocumented + SafeSearchFilterTypeVStrict SafeSearchFilterType = "strict" + // SafeSearchFilterTypeVModerate undocumented + SafeSearchFilterTypeVModerate SafeSearchFilterType = "moderate" +) + +var ( + // SafeSearchFilterTypePUserDefined is a pointer to SafeSearchFilterTypeVUserDefined + SafeSearchFilterTypePUserDefined = &_SafeSearchFilterTypePUserDefined + // SafeSearchFilterTypePStrict is a pointer to SafeSearchFilterTypeVStrict + SafeSearchFilterTypePStrict = &_SafeSearchFilterTypePStrict + // SafeSearchFilterTypePModerate is a pointer to SafeSearchFilterTypeVModerate + SafeSearchFilterTypePModerate = &_SafeSearchFilterTypePModerate +) + +var ( + _SafeSearchFilterTypePUserDefined = SafeSearchFilterTypeVUserDefined + _SafeSearchFilterTypePStrict = SafeSearchFilterTypeVStrict + _SafeSearchFilterTypePModerate = SafeSearchFilterTypeVModerate +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go new file mode 100644 index 00000000..ce67f61f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go @@ -0,0 +1,149 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ScheduleChangeRequestActor undocumented +type ScheduleChangeRequestActor string + +const ( + // ScheduleChangeRequestActorVSender undocumented + ScheduleChangeRequestActorVSender ScheduleChangeRequestActor = "sender" + // ScheduleChangeRequestActorVRecipient undocumented + ScheduleChangeRequestActorVRecipient ScheduleChangeRequestActor = "recipient" + // ScheduleChangeRequestActorVManager undocumented + ScheduleChangeRequestActorVManager ScheduleChangeRequestActor = "manager" + // ScheduleChangeRequestActorVSystem undocumented + ScheduleChangeRequestActorVSystem ScheduleChangeRequestActor = "system" + // ScheduleChangeRequestActorVUnknownFutureValue undocumented + ScheduleChangeRequestActorVUnknownFutureValue ScheduleChangeRequestActor = "unknownFutureValue" +) + +var ( + // ScheduleChangeRequestActorPSender is a pointer to ScheduleChangeRequestActorVSender + ScheduleChangeRequestActorPSender = &_ScheduleChangeRequestActorPSender + // ScheduleChangeRequestActorPRecipient is a pointer to ScheduleChangeRequestActorVRecipient + ScheduleChangeRequestActorPRecipient = &_ScheduleChangeRequestActorPRecipient + // ScheduleChangeRequestActorPManager is a pointer to ScheduleChangeRequestActorVManager + ScheduleChangeRequestActorPManager = &_ScheduleChangeRequestActorPManager + // ScheduleChangeRequestActorPSystem is a pointer to ScheduleChangeRequestActorVSystem + ScheduleChangeRequestActorPSystem = &_ScheduleChangeRequestActorPSystem + // ScheduleChangeRequestActorPUnknownFutureValue is a pointer to ScheduleChangeRequestActorVUnknownFutureValue + ScheduleChangeRequestActorPUnknownFutureValue = &_ScheduleChangeRequestActorPUnknownFutureValue +) + +var ( + _ScheduleChangeRequestActorPSender = ScheduleChangeRequestActorVSender + _ScheduleChangeRequestActorPRecipient = ScheduleChangeRequestActorVRecipient + _ScheduleChangeRequestActorPManager = ScheduleChangeRequestActorVManager + _ScheduleChangeRequestActorPSystem = ScheduleChangeRequestActorVSystem + _ScheduleChangeRequestActorPUnknownFutureValue = ScheduleChangeRequestActorVUnknownFutureValue +) + +// ScheduleChangeState undocumented +type ScheduleChangeState string + +const ( + // ScheduleChangeStateVPending undocumented + ScheduleChangeStateVPending ScheduleChangeState = "pending" + // ScheduleChangeStateVApproved undocumented + ScheduleChangeStateVApproved ScheduleChangeState = "approved" + // ScheduleChangeStateVDeclined undocumented + ScheduleChangeStateVDeclined ScheduleChangeState = "declined" + // ScheduleChangeStateVUnknownFutureValue undocumented + ScheduleChangeStateVUnknownFutureValue ScheduleChangeState = "unknownFutureValue" +) + +var ( + // ScheduleChangeStatePPending is a pointer to ScheduleChangeStateVPending + ScheduleChangeStatePPending = &_ScheduleChangeStatePPending + // ScheduleChangeStatePApproved is a pointer to ScheduleChangeStateVApproved + ScheduleChangeStatePApproved = &_ScheduleChangeStatePApproved + // ScheduleChangeStatePDeclined is a pointer to ScheduleChangeStateVDeclined + ScheduleChangeStatePDeclined = &_ScheduleChangeStatePDeclined + // ScheduleChangeStatePUnknownFutureValue is a pointer to ScheduleChangeStateVUnknownFutureValue + ScheduleChangeStatePUnknownFutureValue = &_ScheduleChangeStatePUnknownFutureValue +) + +var ( + _ScheduleChangeStatePPending = ScheduleChangeStateVPending + _ScheduleChangeStatePApproved = ScheduleChangeStateVApproved + _ScheduleChangeStatePDeclined = ScheduleChangeStateVDeclined + _ScheduleChangeStatePUnknownFutureValue = ScheduleChangeStateVUnknownFutureValue +) + +// ScheduleEntityTheme undocumented +type ScheduleEntityTheme string + +const ( + // ScheduleEntityThemeVWhite undocumented + ScheduleEntityThemeVWhite ScheduleEntityTheme = "white" + // ScheduleEntityThemeVBlue undocumented + ScheduleEntityThemeVBlue ScheduleEntityTheme = "blue" + // ScheduleEntityThemeVGreen undocumented + ScheduleEntityThemeVGreen ScheduleEntityTheme = "green" + // ScheduleEntityThemeVPurple undocumented + ScheduleEntityThemeVPurple ScheduleEntityTheme = "purple" + // ScheduleEntityThemeVPink undocumented + ScheduleEntityThemeVPink ScheduleEntityTheme = "pink" + // ScheduleEntityThemeVYellow undocumented + ScheduleEntityThemeVYellow ScheduleEntityTheme = "yellow" + // ScheduleEntityThemeVGray undocumented + ScheduleEntityThemeVGray ScheduleEntityTheme = "gray" + // ScheduleEntityThemeVDarkBlue undocumented + ScheduleEntityThemeVDarkBlue ScheduleEntityTheme = "darkBlue" + // ScheduleEntityThemeVDarkGreen undocumented + ScheduleEntityThemeVDarkGreen ScheduleEntityTheme = "darkGreen" + // ScheduleEntityThemeVDarkPurple undocumented + ScheduleEntityThemeVDarkPurple ScheduleEntityTheme = "darkPurple" + // ScheduleEntityThemeVDarkPink undocumented + ScheduleEntityThemeVDarkPink ScheduleEntityTheme = "darkPink" + // ScheduleEntityThemeVDarkYellow undocumented + ScheduleEntityThemeVDarkYellow ScheduleEntityTheme = "darkYellow" + // ScheduleEntityThemeVUnknownFutureValue undocumented + ScheduleEntityThemeVUnknownFutureValue ScheduleEntityTheme = "unknownFutureValue" +) + +var ( + // ScheduleEntityThemePWhite is a pointer to ScheduleEntityThemeVWhite + ScheduleEntityThemePWhite = &_ScheduleEntityThemePWhite + // ScheduleEntityThemePBlue is a pointer to ScheduleEntityThemeVBlue + ScheduleEntityThemePBlue = &_ScheduleEntityThemePBlue + // ScheduleEntityThemePGreen is a pointer to ScheduleEntityThemeVGreen + ScheduleEntityThemePGreen = &_ScheduleEntityThemePGreen + // ScheduleEntityThemePPurple is a pointer to ScheduleEntityThemeVPurple + ScheduleEntityThemePPurple = &_ScheduleEntityThemePPurple + // ScheduleEntityThemePPink is a pointer to ScheduleEntityThemeVPink + ScheduleEntityThemePPink = &_ScheduleEntityThemePPink + // ScheduleEntityThemePYellow is a pointer to ScheduleEntityThemeVYellow + ScheduleEntityThemePYellow = &_ScheduleEntityThemePYellow + // ScheduleEntityThemePGray is a pointer to ScheduleEntityThemeVGray + ScheduleEntityThemePGray = &_ScheduleEntityThemePGray + // ScheduleEntityThemePDarkBlue is a pointer to ScheduleEntityThemeVDarkBlue + ScheduleEntityThemePDarkBlue = &_ScheduleEntityThemePDarkBlue + // ScheduleEntityThemePDarkGreen is a pointer to ScheduleEntityThemeVDarkGreen + ScheduleEntityThemePDarkGreen = &_ScheduleEntityThemePDarkGreen + // ScheduleEntityThemePDarkPurple is a pointer to ScheduleEntityThemeVDarkPurple + ScheduleEntityThemePDarkPurple = &_ScheduleEntityThemePDarkPurple + // ScheduleEntityThemePDarkPink is a pointer to ScheduleEntityThemeVDarkPink + ScheduleEntityThemePDarkPink = &_ScheduleEntityThemePDarkPink + // ScheduleEntityThemePDarkYellow is a pointer to ScheduleEntityThemeVDarkYellow + ScheduleEntityThemePDarkYellow = &_ScheduleEntityThemePDarkYellow + // ScheduleEntityThemePUnknownFutureValue is a pointer to ScheduleEntityThemeVUnknownFutureValue + ScheduleEntityThemePUnknownFutureValue = &_ScheduleEntityThemePUnknownFutureValue +) + +var ( + _ScheduleEntityThemePWhite = ScheduleEntityThemeVWhite + _ScheduleEntityThemePBlue = ScheduleEntityThemeVBlue + _ScheduleEntityThemePGreen = ScheduleEntityThemeVGreen + _ScheduleEntityThemePPurple = ScheduleEntityThemeVPurple + _ScheduleEntityThemePPink = ScheduleEntityThemeVPink + _ScheduleEntityThemePYellow = ScheduleEntityThemeVYellow + _ScheduleEntityThemePGray = ScheduleEntityThemeVGray + _ScheduleEntityThemePDarkBlue = ScheduleEntityThemeVDarkBlue + _ScheduleEntityThemePDarkGreen = ScheduleEntityThemeVDarkGreen + _ScheduleEntityThemePDarkPurple = ScheduleEntityThemeVDarkPurple + _ScheduleEntityThemePDarkPink = ScheduleEntityThemeVDarkPink + _ScheduleEntityThemePDarkYellow = ScheduleEntityThemeVDarkYellow + _ScheduleEntityThemePUnknownFutureValue = ScheduleEntityThemeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go new file mode 100644 index 00000000..679fa9ff --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ScopeOperatorMultiValuedComparisonType undocumented +type ScopeOperatorMultiValuedComparisonType string + +const ( + // ScopeOperatorMultiValuedComparisonTypeVAll undocumented + ScopeOperatorMultiValuedComparisonTypeVAll ScopeOperatorMultiValuedComparisonType = "All" + // ScopeOperatorMultiValuedComparisonTypeVAny undocumented + ScopeOperatorMultiValuedComparisonTypeVAny ScopeOperatorMultiValuedComparisonType = "Any" +) + +var ( + // ScopeOperatorMultiValuedComparisonTypePAll is a pointer to ScopeOperatorMultiValuedComparisonTypeVAll + ScopeOperatorMultiValuedComparisonTypePAll = &_ScopeOperatorMultiValuedComparisonTypePAll + // ScopeOperatorMultiValuedComparisonTypePAny is a pointer to ScopeOperatorMultiValuedComparisonTypeVAny + ScopeOperatorMultiValuedComparisonTypePAny = &_ScopeOperatorMultiValuedComparisonTypePAny +) + +var ( + _ScopeOperatorMultiValuedComparisonTypePAll = ScopeOperatorMultiValuedComparisonTypeVAll + _ScopeOperatorMultiValuedComparisonTypePAny = ScopeOperatorMultiValuedComparisonTypeVAny +) + +// ScopeOperatorType undocumented +type ScopeOperatorType string + +const ( + // ScopeOperatorTypeVBinary undocumented + ScopeOperatorTypeVBinary ScopeOperatorType = "Binary" + // ScopeOperatorTypeVUnary undocumented + ScopeOperatorTypeVUnary ScopeOperatorType = "Unary" +) + +var ( + // ScopeOperatorTypePBinary is a pointer to ScopeOperatorTypeVBinary + ScopeOperatorTypePBinary = &_ScopeOperatorTypePBinary + // ScopeOperatorTypePUnary is a pointer to ScopeOperatorTypeVUnary + ScopeOperatorTypePUnary = &_ScopeOperatorTypePUnary +) + +var ( + _ScopeOperatorTypePBinary = ScopeOperatorTypeVBinary + _ScopeOperatorTypePUnary = ScopeOperatorTypeVUnary +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go new file mode 100644 index 00000000..72c2eca9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ScreenSharingRole undocumented +type ScreenSharingRole string + +const ( + // ScreenSharingRoleVViewer undocumented + ScreenSharingRoleVViewer ScreenSharingRole = "viewer" + // ScreenSharingRoleVSharer undocumented + ScreenSharingRoleVSharer ScreenSharingRole = "sharer" +) + +var ( + // ScreenSharingRolePViewer is a pointer to ScreenSharingRoleVViewer + ScreenSharingRolePViewer = &_ScreenSharingRolePViewer + // ScreenSharingRolePSharer is a pointer to ScreenSharingRoleVSharer + ScreenSharingRolePSharer = &_ScreenSharingRolePSharer +) + +var ( + _ScreenSharingRolePViewer = ScreenSharingRoleVViewer + _ScreenSharingRolePSharer = ScreenSharingRoleVSharer +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go new file mode 100644 index 00000000..b635938d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go @@ -0,0 +1,62 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SecureAssessmentAccountType undocumented +type SecureAssessmentAccountType string + +const ( + // SecureAssessmentAccountTypeVAzureADAccount undocumented + SecureAssessmentAccountTypeVAzureADAccount SecureAssessmentAccountType = "azureADAccount" + // SecureAssessmentAccountTypeVDomainAccount undocumented + SecureAssessmentAccountTypeVDomainAccount SecureAssessmentAccountType = "domainAccount" + // SecureAssessmentAccountTypeVLocalAccount undocumented + SecureAssessmentAccountTypeVLocalAccount SecureAssessmentAccountType = "localAccount" + // SecureAssessmentAccountTypeVLocalGuestAccount undocumented + SecureAssessmentAccountTypeVLocalGuestAccount SecureAssessmentAccountType = "localGuestAccount" +) + +var ( + // SecureAssessmentAccountTypePAzureADAccount is a pointer to SecureAssessmentAccountTypeVAzureADAccount + SecureAssessmentAccountTypePAzureADAccount = &_SecureAssessmentAccountTypePAzureADAccount + // SecureAssessmentAccountTypePDomainAccount is a pointer to SecureAssessmentAccountTypeVDomainAccount + SecureAssessmentAccountTypePDomainAccount = &_SecureAssessmentAccountTypePDomainAccount + // SecureAssessmentAccountTypePLocalAccount is a pointer to SecureAssessmentAccountTypeVLocalAccount + SecureAssessmentAccountTypePLocalAccount = &_SecureAssessmentAccountTypePLocalAccount + // SecureAssessmentAccountTypePLocalGuestAccount is a pointer to SecureAssessmentAccountTypeVLocalGuestAccount + SecureAssessmentAccountTypePLocalGuestAccount = &_SecureAssessmentAccountTypePLocalGuestAccount +) + +var ( + _SecureAssessmentAccountTypePAzureADAccount = SecureAssessmentAccountTypeVAzureADAccount + _SecureAssessmentAccountTypePDomainAccount = SecureAssessmentAccountTypeVDomainAccount + _SecureAssessmentAccountTypePLocalAccount = SecureAssessmentAccountTypeVLocalAccount + _SecureAssessmentAccountTypePLocalGuestAccount = SecureAssessmentAccountTypeVLocalGuestAccount +) + +// SecureBootWithDMAType undocumented +type SecureBootWithDMAType string + +const ( + // SecureBootWithDMATypeVNotConfigured undocumented + SecureBootWithDMATypeVNotConfigured SecureBootWithDMAType = "notConfigured" + // SecureBootWithDMATypeVWithoutDMA undocumented + SecureBootWithDMATypeVWithoutDMA SecureBootWithDMAType = "withoutDMA" + // SecureBootWithDMATypeVWithDMA undocumented + SecureBootWithDMATypeVWithDMA SecureBootWithDMAType = "withDMA" +) + +var ( + // SecureBootWithDMATypePNotConfigured is a pointer to SecureBootWithDMATypeVNotConfigured + SecureBootWithDMATypePNotConfigured = &_SecureBootWithDMATypePNotConfigured + // SecureBootWithDMATypePWithoutDMA is a pointer to SecureBootWithDMATypeVWithoutDMA + SecureBootWithDMATypePWithoutDMA = &_SecureBootWithDMATypePWithoutDMA + // SecureBootWithDMATypePWithDMA is a pointer to SecureBootWithDMATypeVWithDMA + SecureBootWithDMATypePWithDMA = &_SecureBootWithDMATypePWithDMA +) + +var ( + _SecureBootWithDMATypePNotConfigured = SecureBootWithDMATypeVNotConfigured + _SecureBootWithDMATypePWithoutDMA = SecureBootWithDMATypeVWithoutDMA + _SecureBootWithDMATypePWithDMA = SecureBootWithDMATypeVWithDMA +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go new file mode 100644 index 00000000..1ecd5966 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go @@ -0,0 +1,177 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SecurityBaselineComplianceState undocumented +type SecurityBaselineComplianceState string + +const ( + // SecurityBaselineComplianceStateVUnknown undocumented + SecurityBaselineComplianceStateVUnknown SecurityBaselineComplianceState = "unknown" + // SecurityBaselineComplianceStateVSecure undocumented + SecurityBaselineComplianceStateVSecure SecurityBaselineComplianceState = "secure" + // SecurityBaselineComplianceStateVNotApplicable undocumented + SecurityBaselineComplianceStateVNotApplicable SecurityBaselineComplianceState = "notApplicable" + // SecurityBaselineComplianceStateVNotSecure undocumented + SecurityBaselineComplianceStateVNotSecure SecurityBaselineComplianceState = "notSecure" + // SecurityBaselineComplianceStateVError undocumented + SecurityBaselineComplianceStateVError SecurityBaselineComplianceState = "error" + // SecurityBaselineComplianceStateVConflict undocumented + SecurityBaselineComplianceStateVConflict SecurityBaselineComplianceState = "conflict" +) + +var ( + // SecurityBaselineComplianceStatePUnknown is a pointer to SecurityBaselineComplianceStateVUnknown + SecurityBaselineComplianceStatePUnknown = &_SecurityBaselineComplianceStatePUnknown + // SecurityBaselineComplianceStatePSecure is a pointer to SecurityBaselineComplianceStateVSecure + SecurityBaselineComplianceStatePSecure = &_SecurityBaselineComplianceStatePSecure + // SecurityBaselineComplianceStatePNotApplicable is a pointer to SecurityBaselineComplianceStateVNotApplicable + SecurityBaselineComplianceStatePNotApplicable = &_SecurityBaselineComplianceStatePNotApplicable + // SecurityBaselineComplianceStatePNotSecure is a pointer to SecurityBaselineComplianceStateVNotSecure + SecurityBaselineComplianceStatePNotSecure = &_SecurityBaselineComplianceStatePNotSecure + // SecurityBaselineComplianceStatePError is a pointer to SecurityBaselineComplianceStateVError + SecurityBaselineComplianceStatePError = &_SecurityBaselineComplianceStatePError + // SecurityBaselineComplianceStatePConflict is a pointer to SecurityBaselineComplianceStateVConflict + SecurityBaselineComplianceStatePConflict = &_SecurityBaselineComplianceStatePConflict +) + +var ( + _SecurityBaselineComplianceStatePUnknown = SecurityBaselineComplianceStateVUnknown + _SecurityBaselineComplianceStatePSecure = SecurityBaselineComplianceStateVSecure + _SecurityBaselineComplianceStatePNotApplicable = SecurityBaselineComplianceStateVNotApplicable + _SecurityBaselineComplianceStatePNotSecure = SecurityBaselineComplianceStateVNotSecure + _SecurityBaselineComplianceStatePError = SecurityBaselineComplianceStateVError + _SecurityBaselineComplianceStatePConflict = SecurityBaselineComplianceStateVConflict +) + +// SecurityNetworkProtocol undocumented +type SecurityNetworkProtocol string + +const ( + // SecurityNetworkProtocolVIP undocumented + SecurityNetworkProtocolVIP SecurityNetworkProtocol = "ip" + // SecurityNetworkProtocolVICMP undocumented + SecurityNetworkProtocolVICMP SecurityNetworkProtocol = "icmp" + // SecurityNetworkProtocolVIGMP undocumented + SecurityNetworkProtocolVIGMP SecurityNetworkProtocol = "igmp" + // SecurityNetworkProtocolVGgp undocumented + SecurityNetworkProtocolVGgp SecurityNetworkProtocol = "ggp" + // SecurityNetworkProtocolVIpv4 undocumented + SecurityNetworkProtocolVIpv4 SecurityNetworkProtocol = "ipv4" + // SecurityNetworkProtocolVTCP undocumented + SecurityNetworkProtocolVTCP SecurityNetworkProtocol = "tcp" + // SecurityNetworkProtocolVPup undocumented + SecurityNetworkProtocolVPup SecurityNetworkProtocol = "pup" + // SecurityNetworkProtocolVUDP undocumented + SecurityNetworkProtocolVUDP SecurityNetworkProtocol = "udp" + // SecurityNetworkProtocolVIdp undocumented + SecurityNetworkProtocolVIdp SecurityNetworkProtocol = "idp" + // SecurityNetworkProtocolVIpv6 undocumented + SecurityNetworkProtocolVIpv6 SecurityNetworkProtocol = "ipv6" + // SecurityNetworkProtocolVIpv6RoutingHeader undocumented + SecurityNetworkProtocolVIpv6RoutingHeader SecurityNetworkProtocol = "ipv6RoutingHeader" + // SecurityNetworkProtocolVIpv6FragmentHeader undocumented + SecurityNetworkProtocolVIpv6FragmentHeader SecurityNetworkProtocol = "ipv6FragmentHeader" + // SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload undocumented + SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload SecurityNetworkProtocol = "ipSecEncapsulatingSecurityPayload" + // SecurityNetworkProtocolVIPSecAuthenticationHeader undocumented + SecurityNetworkProtocolVIPSecAuthenticationHeader SecurityNetworkProtocol = "ipSecAuthenticationHeader" + // SecurityNetworkProtocolVICMPV6 undocumented + SecurityNetworkProtocolVICMPV6 SecurityNetworkProtocol = "icmpV6" + // SecurityNetworkProtocolVIpv6NoNextHeader undocumented + SecurityNetworkProtocolVIpv6NoNextHeader SecurityNetworkProtocol = "ipv6NoNextHeader" + // SecurityNetworkProtocolVIpv6DestinationOptions undocumented + SecurityNetworkProtocolVIpv6DestinationOptions SecurityNetworkProtocol = "ipv6DestinationOptions" + // SecurityNetworkProtocolVNd undocumented + SecurityNetworkProtocolVNd SecurityNetworkProtocol = "nd" + // SecurityNetworkProtocolVRaw undocumented + SecurityNetworkProtocolVRaw SecurityNetworkProtocol = "raw" + // SecurityNetworkProtocolVIpx undocumented + SecurityNetworkProtocolVIpx SecurityNetworkProtocol = "ipx" + // SecurityNetworkProtocolVSpx undocumented + SecurityNetworkProtocolVSpx SecurityNetworkProtocol = "spx" + // SecurityNetworkProtocolVSpxII undocumented + SecurityNetworkProtocolVSpxII SecurityNetworkProtocol = "spxII" + // SecurityNetworkProtocolVUnknownFutureValue undocumented + SecurityNetworkProtocolVUnknownFutureValue SecurityNetworkProtocol = "unknownFutureValue" + // SecurityNetworkProtocolVUnknown undocumented + SecurityNetworkProtocolVUnknown SecurityNetworkProtocol = "unknown" +) + +var ( + // SecurityNetworkProtocolPIP is a pointer to SecurityNetworkProtocolVIP + SecurityNetworkProtocolPIP = &_SecurityNetworkProtocolPIP + // SecurityNetworkProtocolPICMP is a pointer to SecurityNetworkProtocolVICMP + SecurityNetworkProtocolPICMP = &_SecurityNetworkProtocolPICMP + // SecurityNetworkProtocolPIGMP is a pointer to SecurityNetworkProtocolVIGMP + SecurityNetworkProtocolPIGMP = &_SecurityNetworkProtocolPIGMP + // SecurityNetworkProtocolPGgp is a pointer to SecurityNetworkProtocolVGgp + SecurityNetworkProtocolPGgp = &_SecurityNetworkProtocolPGgp + // SecurityNetworkProtocolPIpv4 is a pointer to SecurityNetworkProtocolVIpv4 + SecurityNetworkProtocolPIpv4 = &_SecurityNetworkProtocolPIpv4 + // SecurityNetworkProtocolPTCP is a pointer to SecurityNetworkProtocolVTCP + SecurityNetworkProtocolPTCP = &_SecurityNetworkProtocolPTCP + // SecurityNetworkProtocolPPup is a pointer to SecurityNetworkProtocolVPup + SecurityNetworkProtocolPPup = &_SecurityNetworkProtocolPPup + // SecurityNetworkProtocolPUDP is a pointer to SecurityNetworkProtocolVUDP + SecurityNetworkProtocolPUDP = &_SecurityNetworkProtocolPUDP + // SecurityNetworkProtocolPIdp is a pointer to SecurityNetworkProtocolVIdp + SecurityNetworkProtocolPIdp = &_SecurityNetworkProtocolPIdp + // SecurityNetworkProtocolPIpv6 is a pointer to SecurityNetworkProtocolVIpv6 + SecurityNetworkProtocolPIpv6 = &_SecurityNetworkProtocolPIpv6 + // SecurityNetworkProtocolPIpv6RoutingHeader is a pointer to SecurityNetworkProtocolVIpv6RoutingHeader + SecurityNetworkProtocolPIpv6RoutingHeader = &_SecurityNetworkProtocolPIpv6RoutingHeader + // SecurityNetworkProtocolPIpv6FragmentHeader is a pointer to SecurityNetworkProtocolVIpv6FragmentHeader + SecurityNetworkProtocolPIpv6FragmentHeader = &_SecurityNetworkProtocolPIpv6FragmentHeader + // SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload is a pointer to SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload + SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload = &_SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload + // SecurityNetworkProtocolPIPSecAuthenticationHeader is a pointer to SecurityNetworkProtocolVIPSecAuthenticationHeader + SecurityNetworkProtocolPIPSecAuthenticationHeader = &_SecurityNetworkProtocolPIPSecAuthenticationHeader + // SecurityNetworkProtocolPICMPV6 is a pointer to SecurityNetworkProtocolVICMPV6 + SecurityNetworkProtocolPICMPV6 = &_SecurityNetworkProtocolPICMPV6 + // SecurityNetworkProtocolPIpv6NoNextHeader is a pointer to SecurityNetworkProtocolVIpv6NoNextHeader + SecurityNetworkProtocolPIpv6NoNextHeader = &_SecurityNetworkProtocolPIpv6NoNextHeader + // SecurityNetworkProtocolPIpv6DestinationOptions is a pointer to SecurityNetworkProtocolVIpv6DestinationOptions + SecurityNetworkProtocolPIpv6DestinationOptions = &_SecurityNetworkProtocolPIpv6DestinationOptions + // SecurityNetworkProtocolPNd is a pointer to SecurityNetworkProtocolVNd + SecurityNetworkProtocolPNd = &_SecurityNetworkProtocolPNd + // SecurityNetworkProtocolPRaw is a pointer to SecurityNetworkProtocolVRaw + SecurityNetworkProtocolPRaw = &_SecurityNetworkProtocolPRaw + // SecurityNetworkProtocolPIpx is a pointer to SecurityNetworkProtocolVIpx + SecurityNetworkProtocolPIpx = &_SecurityNetworkProtocolPIpx + // SecurityNetworkProtocolPSpx is a pointer to SecurityNetworkProtocolVSpx + SecurityNetworkProtocolPSpx = &_SecurityNetworkProtocolPSpx + // SecurityNetworkProtocolPSpxII is a pointer to SecurityNetworkProtocolVSpxII + SecurityNetworkProtocolPSpxII = &_SecurityNetworkProtocolPSpxII + // SecurityNetworkProtocolPUnknownFutureValue is a pointer to SecurityNetworkProtocolVUnknownFutureValue + SecurityNetworkProtocolPUnknownFutureValue = &_SecurityNetworkProtocolPUnknownFutureValue + // SecurityNetworkProtocolPUnknown is a pointer to SecurityNetworkProtocolVUnknown + SecurityNetworkProtocolPUnknown = &_SecurityNetworkProtocolPUnknown +) + +var ( + _SecurityNetworkProtocolPIP = SecurityNetworkProtocolVIP + _SecurityNetworkProtocolPICMP = SecurityNetworkProtocolVICMP + _SecurityNetworkProtocolPIGMP = SecurityNetworkProtocolVIGMP + _SecurityNetworkProtocolPGgp = SecurityNetworkProtocolVGgp + _SecurityNetworkProtocolPIpv4 = SecurityNetworkProtocolVIpv4 + _SecurityNetworkProtocolPTCP = SecurityNetworkProtocolVTCP + _SecurityNetworkProtocolPPup = SecurityNetworkProtocolVPup + _SecurityNetworkProtocolPUDP = SecurityNetworkProtocolVUDP + _SecurityNetworkProtocolPIdp = SecurityNetworkProtocolVIdp + _SecurityNetworkProtocolPIpv6 = SecurityNetworkProtocolVIpv6 + _SecurityNetworkProtocolPIpv6RoutingHeader = SecurityNetworkProtocolVIpv6RoutingHeader + _SecurityNetworkProtocolPIpv6FragmentHeader = SecurityNetworkProtocolVIpv6FragmentHeader + _SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload = SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload + _SecurityNetworkProtocolPIPSecAuthenticationHeader = SecurityNetworkProtocolVIPSecAuthenticationHeader + _SecurityNetworkProtocolPICMPV6 = SecurityNetworkProtocolVICMPV6 + _SecurityNetworkProtocolPIpv6NoNextHeader = SecurityNetworkProtocolVIpv6NoNextHeader + _SecurityNetworkProtocolPIpv6DestinationOptions = SecurityNetworkProtocolVIpv6DestinationOptions + _SecurityNetworkProtocolPNd = SecurityNetworkProtocolVNd + _SecurityNetworkProtocolPRaw = SecurityNetworkProtocolVRaw + _SecurityNetworkProtocolPIpx = SecurityNetworkProtocolVIpx + _SecurityNetworkProtocolPSpx = SecurityNetworkProtocolVSpx + _SecurityNetworkProtocolPSpxII = SecurityNetworkProtocolVSpxII + _SecurityNetworkProtocolPUnknownFutureValue = SecurityNetworkProtocolVUnknownFutureValue + _SecurityNetworkProtocolPUnknown = SecurityNetworkProtocolVUnknown +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go new file mode 100644 index 00000000..96caafa5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Sensitivity undocumented +type Sensitivity string + +const ( + // SensitivityVNormal undocumented + SensitivityVNormal Sensitivity = "normal" + // SensitivityVPersonal undocumented + SensitivityVPersonal Sensitivity = "personal" + // SensitivityVPrivate undocumented + SensitivityVPrivate Sensitivity = "private" + // SensitivityVConfidential undocumented + SensitivityVConfidential Sensitivity = "confidential" +) + +var ( + // SensitivityPNormal is a pointer to SensitivityVNormal + SensitivityPNormal = &_SensitivityPNormal + // SensitivityPPersonal is a pointer to SensitivityVPersonal + SensitivityPPersonal = &_SensitivityPPersonal + // SensitivityPPrivate is a pointer to SensitivityVPrivate + SensitivityPPrivate = &_SensitivityPPrivate + // SensitivityPConfidential is a pointer to SensitivityVConfidential + SensitivityPConfidential = &_SensitivityPConfidential +) + +var ( + _SensitivityPNormal = SensitivityVNormal + _SensitivityPPersonal = SensitivityVPersonal + _SensitivityPPrivate = SensitivityVPrivate + _SensitivityPConfidential = SensitivityVConfidential +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go new file mode 100644 index 00000000..39b36a03 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ServiceStartType undocumented +type ServiceStartType string + +const ( + // ServiceStartTypeVManual undocumented + ServiceStartTypeVManual ServiceStartType = "manual" + // ServiceStartTypeVAutomatic undocumented + ServiceStartTypeVAutomatic ServiceStartType = "automatic" + // ServiceStartTypeVDisabled undocumented + ServiceStartTypeVDisabled ServiceStartType = "disabled" +) + +var ( + // ServiceStartTypePManual is a pointer to ServiceStartTypeVManual + ServiceStartTypePManual = &_ServiceStartTypePManual + // ServiceStartTypePAutomatic is a pointer to ServiceStartTypeVAutomatic + ServiceStartTypePAutomatic = &_ServiceStartTypePAutomatic + // ServiceStartTypePDisabled is a pointer to ServiceStartTypeVDisabled + ServiceStartTypePDisabled = &_ServiceStartTypePDisabled +) + +var ( + _ServiceStartTypePManual = ServiceStartTypeVManual + _ServiceStartTypePAutomatic = ServiceStartTypeVAutomatic + _ServiceStartTypePDisabled = ServiceStartTypeVDisabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go new file mode 100644 index 00000000..1f7f8440 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SetupStatus undocumented +type SetupStatus string + +const ( + // SetupStatusVUnknown undocumented + SetupStatusVUnknown SetupStatus = "unknown" + // SetupStatusVNotRegisteredYet undocumented + SetupStatusVNotRegisteredYet SetupStatus = "notRegisteredYet" + // SetupStatusVRegisteredSetupNotStarted undocumented + SetupStatusVRegisteredSetupNotStarted SetupStatus = "registeredSetupNotStarted" + // SetupStatusVRegisteredSetupInProgress undocumented + SetupStatusVRegisteredSetupInProgress SetupStatus = "registeredSetupInProgress" + // SetupStatusVRegistrationAndSetupCompleted undocumented + SetupStatusVRegistrationAndSetupCompleted SetupStatus = "registrationAndSetupCompleted" + // SetupStatusVRegistrationFailed undocumented + SetupStatusVRegistrationFailed SetupStatus = "registrationFailed" + // SetupStatusVRegistrationTimedOut undocumented + SetupStatusVRegistrationTimedOut SetupStatus = "registrationTimedOut" + // SetupStatusVDisabled undocumented + SetupStatusVDisabled SetupStatus = "disabled" +) + +var ( + // SetupStatusPUnknown is a pointer to SetupStatusVUnknown + SetupStatusPUnknown = &_SetupStatusPUnknown + // SetupStatusPNotRegisteredYet is a pointer to SetupStatusVNotRegisteredYet + SetupStatusPNotRegisteredYet = &_SetupStatusPNotRegisteredYet + // SetupStatusPRegisteredSetupNotStarted is a pointer to SetupStatusVRegisteredSetupNotStarted + SetupStatusPRegisteredSetupNotStarted = &_SetupStatusPRegisteredSetupNotStarted + // SetupStatusPRegisteredSetupInProgress is a pointer to SetupStatusVRegisteredSetupInProgress + SetupStatusPRegisteredSetupInProgress = &_SetupStatusPRegisteredSetupInProgress + // SetupStatusPRegistrationAndSetupCompleted is a pointer to SetupStatusVRegistrationAndSetupCompleted + SetupStatusPRegistrationAndSetupCompleted = &_SetupStatusPRegistrationAndSetupCompleted + // SetupStatusPRegistrationFailed is a pointer to SetupStatusVRegistrationFailed + SetupStatusPRegistrationFailed = &_SetupStatusPRegistrationFailed + // SetupStatusPRegistrationTimedOut is a pointer to SetupStatusVRegistrationTimedOut + SetupStatusPRegistrationTimedOut = &_SetupStatusPRegistrationTimedOut + // SetupStatusPDisabled is a pointer to SetupStatusVDisabled + SetupStatusPDisabled = &_SetupStatusPDisabled +) + +var ( + _SetupStatusPUnknown = SetupStatusVUnknown + _SetupStatusPNotRegisteredYet = SetupStatusVNotRegisteredYet + _SetupStatusPRegisteredSetupNotStarted = SetupStatusVRegisteredSetupNotStarted + _SetupStatusPRegisteredSetupInProgress = SetupStatusVRegisteredSetupInProgress + _SetupStatusPRegistrationAndSetupCompleted = SetupStatusVRegistrationAndSetupCompleted + _SetupStatusPRegistrationFailed = SetupStatusVRegistrationFailed + _SetupStatusPRegistrationTimedOut = SetupStatusVRegistrationTimedOut + _SetupStatusPDisabled = SetupStatusVDisabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go new file mode 100644 index 00000000..7f98eb77 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SharedPCAccountDeletionPolicyType undocumented +type SharedPCAccountDeletionPolicyType string + +const ( + // SharedPCAccountDeletionPolicyTypeVImmediate undocumented + SharedPCAccountDeletionPolicyTypeVImmediate SharedPCAccountDeletionPolicyType = "immediate" + // SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold undocumented + SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold SharedPCAccountDeletionPolicyType = "diskSpaceThreshold" + // SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold undocumented + SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold SharedPCAccountDeletionPolicyType = "diskSpaceThresholdOrInactiveThreshold" +) + +var ( + // SharedPCAccountDeletionPolicyTypePImmediate is a pointer to SharedPCAccountDeletionPolicyTypeVImmediate + SharedPCAccountDeletionPolicyTypePImmediate = &_SharedPCAccountDeletionPolicyTypePImmediate + // SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold is a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold + SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold = &_SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold + // SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold is a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold + SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold = &_SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold +) + +var ( + _SharedPCAccountDeletionPolicyTypePImmediate = SharedPCAccountDeletionPolicyTypeVImmediate + _SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold = SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold + _SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold = SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold +) + +// SharedPCAllowedAccountType undocumented +type SharedPCAllowedAccountType string + +const ( + // SharedPCAllowedAccountTypeVNotConfigured undocumented + SharedPCAllowedAccountTypeVNotConfigured SharedPCAllowedAccountType = "notConfigured" + // SharedPCAllowedAccountTypeVGuest undocumented + SharedPCAllowedAccountTypeVGuest SharedPCAllowedAccountType = "guest" + // SharedPCAllowedAccountTypeVDomain undocumented + SharedPCAllowedAccountTypeVDomain SharedPCAllowedAccountType = "domain" +) + +var ( + // SharedPCAllowedAccountTypePNotConfigured is a pointer to SharedPCAllowedAccountTypeVNotConfigured + SharedPCAllowedAccountTypePNotConfigured = &_SharedPCAllowedAccountTypePNotConfigured + // SharedPCAllowedAccountTypePGuest is a pointer to SharedPCAllowedAccountTypeVGuest + SharedPCAllowedAccountTypePGuest = &_SharedPCAllowedAccountTypePGuest + // SharedPCAllowedAccountTypePDomain is a pointer to SharedPCAllowedAccountTypeVDomain + SharedPCAllowedAccountTypePDomain = &_SharedPCAllowedAccountTypePDomain +) + +var ( + _SharedPCAllowedAccountTypePNotConfigured = SharedPCAllowedAccountTypeVNotConfigured + _SharedPCAllowedAccountTypePGuest = SharedPCAllowedAccountTypeVGuest + _SharedPCAllowedAccountTypePDomain = SharedPCAllowedAccountTypeVDomain +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go new file mode 100644 index 00000000..6c877e88 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SignInAssistantOptions undocumented +type SignInAssistantOptions string + +const ( + // SignInAssistantOptionsVNotConfigured undocumented + SignInAssistantOptionsVNotConfigured SignInAssistantOptions = "notConfigured" + // SignInAssistantOptionsVDisabled undocumented + SignInAssistantOptionsVDisabled SignInAssistantOptions = "disabled" +) + +var ( + // SignInAssistantOptionsPNotConfigured is a pointer to SignInAssistantOptionsVNotConfigured + SignInAssistantOptionsPNotConfigured = &_SignInAssistantOptionsPNotConfigured + // SignInAssistantOptionsPDisabled is a pointer to SignInAssistantOptionsVDisabled + SignInAssistantOptionsPDisabled = &_SignInAssistantOptionsPDisabled +) + +var ( + _SignInAssistantOptionsPNotConfigured = SignInAssistantOptionsVNotConfigured + _SignInAssistantOptionsPDisabled = SignInAssistantOptionsVDisabled +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go new file mode 100644 index 00000000..145bbd98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SigninFrequencyType undocumented +type SigninFrequencyType string + +const ( + // SigninFrequencyTypeVDays undocumented + SigninFrequencyTypeVDays SigninFrequencyType = "days" + // SigninFrequencyTypeVHours undocumented + SigninFrequencyTypeVHours SigninFrequencyType = "hours" +) + +var ( + // SigninFrequencyTypePDays is a pointer to SigninFrequencyTypeVDays + SigninFrequencyTypePDays = &_SigninFrequencyTypePDays + // SigninFrequencyTypePHours is a pointer to SigninFrequencyTypeVHours + SigninFrequencyTypePHours = &_SigninFrequencyTypePHours +) + +var ( + _SigninFrequencyTypePDays = SigninFrequencyTypeVDays + _SigninFrequencyTypePHours = SigninFrequencyTypeVHours +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go new file mode 100644 index 00000000..46d748d6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go @@ -0,0 +1,72 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SiteAccessType undocumented +type SiteAccessType string + +const ( + // SiteAccessTypeVBlock undocumented + SiteAccessTypeVBlock SiteAccessType = "block" + // SiteAccessTypeVFull undocumented + SiteAccessTypeVFull SiteAccessType = "full" + // SiteAccessTypeVLimited undocumented + SiteAccessTypeVLimited SiteAccessType = "limited" +) + +var ( + // SiteAccessTypePBlock is a pointer to SiteAccessTypeVBlock + SiteAccessTypePBlock = &_SiteAccessTypePBlock + // SiteAccessTypePFull is a pointer to SiteAccessTypeVFull + SiteAccessTypePFull = &_SiteAccessTypePFull + // SiteAccessTypePLimited is a pointer to SiteAccessTypeVLimited + SiteAccessTypePLimited = &_SiteAccessTypePLimited +) + +var ( + _SiteAccessTypePBlock = SiteAccessTypeVBlock + _SiteAccessTypePFull = SiteAccessTypeVFull + _SiteAccessTypePLimited = SiteAccessTypeVLimited +) + +// SiteSecurityLevel undocumented +type SiteSecurityLevel string + +const ( + // SiteSecurityLevelVUserDefined undocumented + SiteSecurityLevelVUserDefined SiteSecurityLevel = "userDefined" + // SiteSecurityLevelVLow undocumented + SiteSecurityLevelVLow SiteSecurityLevel = "low" + // SiteSecurityLevelVMediumLow undocumented + SiteSecurityLevelVMediumLow SiteSecurityLevel = "mediumLow" + // SiteSecurityLevelVMedium undocumented + SiteSecurityLevelVMedium SiteSecurityLevel = "medium" + // SiteSecurityLevelVMediumHigh undocumented + SiteSecurityLevelVMediumHigh SiteSecurityLevel = "mediumHigh" + // SiteSecurityLevelVHigh undocumented + SiteSecurityLevelVHigh SiteSecurityLevel = "high" +) + +var ( + // SiteSecurityLevelPUserDefined is a pointer to SiteSecurityLevelVUserDefined + SiteSecurityLevelPUserDefined = &_SiteSecurityLevelPUserDefined + // SiteSecurityLevelPLow is a pointer to SiteSecurityLevelVLow + SiteSecurityLevelPLow = &_SiteSecurityLevelPLow + // SiteSecurityLevelPMediumLow is a pointer to SiteSecurityLevelVMediumLow + SiteSecurityLevelPMediumLow = &_SiteSecurityLevelPMediumLow + // SiteSecurityLevelPMedium is a pointer to SiteSecurityLevelVMedium + SiteSecurityLevelPMedium = &_SiteSecurityLevelPMedium + // SiteSecurityLevelPMediumHigh is a pointer to SiteSecurityLevelVMediumHigh + SiteSecurityLevelPMediumHigh = &_SiteSecurityLevelPMediumHigh + // SiteSecurityLevelPHigh is a pointer to SiteSecurityLevelVHigh + SiteSecurityLevelPHigh = &_SiteSecurityLevelPHigh +) + +var ( + _SiteSecurityLevelPUserDefined = SiteSecurityLevelVUserDefined + _SiteSecurityLevelPLow = SiteSecurityLevelVLow + _SiteSecurityLevelPMediumLow = SiteSecurityLevelVMediumLow + _SiteSecurityLevelPMedium = SiteSecurityLevelVMedium + _SiteSecurityLevelPMediumHigh = SiteSecurityLevelVMediumHigh + _SiteSecurityLevelPHigh = SiteSecurityLevelVHigh +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go new file mode 100644 index 00000000..09a3babe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SkillProficiencyLevel undocumented +type SkillProficiencyLevel string + +const ( + // SkillProficiencyLevelVElementary undocumented + SkillProficiencyLevelVElementary SkillProficiencyLevel = "elementary" + // SkillProficiencyLevelVLimitedWorking undocumented + SkillProficiencyLevelVLimitedWorking SkillProficiencyLevel = "limitedWorking" + // SkillProficiencyLevelVGeneralProfessional undocumented + SkillProficiencyLevelVGeneralProfessional SkillProficiencyLevel = "generalProfessional" + // SkillProficiencyLevelVAdvancedProfessional undocumented + SkillProficiencyLevelVAdvancedProfessional SkillProficiencyLevel = "advancedProfessional" + // SkillProficiencyLevelVExpert undocumented + SkillProficiencyLevelVExpert SkillProficiencyLevel = "expert" + // SkillProficiencyLevelVUnknownFutureValue undocumented + SkillProficiencyLevelVUnknownFutureValue SkillProficiencyLevel = "unknownFutureValue" +) + +var ( + // SkillProficiencyLevelPElementary is a pointer to SkillProficiencyLevelVElementary + SkillProficiencyLevelPElementary = &_SkillProficiencyLevelPElementary + // SkillProficiencyLevelPLimitedWorking is a pointer to SkillProficiencyLevelVLimitedWorking + SkillProficiencyLevelPLimitedWorking = &_SkillProficiencyLevelPLimitedWorking + // SkillProficiencyLevelPGeneralProfessional is a pointer to SkillProficiencyLevelVGeneralProfessional + SkillProficiencyLevelPGeneralProfessional = &_SkillProficiencyLevelPGeneralProfessional + // SkillProficiencyLevelPAdvancedProfessional is a pointer to SkillProficiencyLevelVAdvancedProfessional + SkillProficiencyLevelPAdvancedProfessional = &_SkillProficiencyLevelPAdvancedProfessional + // SkillProficiencyLevelPExpert is a pointer to SkillProficiencyLevelVExpert + SkillProficiencyLevelPExpert = &_SkillProficiencyLevelPExpert + // SkillProficiencyLevelPUnknownFutureValue is a pointer to SkillProficiencyLevelVUnknownFutureValue + SkillProficiencyLevelPUnknownFutureValue = &_SkillProficiencyLevelPUnknownFutureValue +) + +var ( + _SkillProficiencyLevelPElementary = SkillProficiencyLevelVElementary + _SkillProficiencyLevelPLimitedWorking = SkillProficiencyLevelVLimitedWorking + _SkillProficiencyLevelPGeneralProfessional = SkillProficiencyLevelVGeneralProfessional + _SkillProficiencyLevelPAdvancedProfessional = SkillProficiencyLevelVAdvancedProfessional + _SkillProficiencyLevelPExpert = SkillProficiencyLevelVExpert + _SkillProficiencyLevelPUnknownFutureValue = SkillProficiencyLevelVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go new file mode 100644 index 00000000..455b6836 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// StagedFeatureName undocumented +type StagedFeatureName string + +const ( + // StagedFeatureNameVPassthroughAuthentication undocumented + StagedFeatureNameVPassthroughAuthentication StagedFeatureName = "passthroughAuthentication" + // StagedFeatureNameVSeamlessSso undocumented + StagedFeatureNameVSeamlessSso StagedFeatureName = "seamlessSso" + // StagedFeatureNameVPasswordHashSync undocumented + StagedFeatureNameVPasswordHashSync StagedFeatureName = "passwordHashSync" + // StagedFeatureNameVUnknownFutureValue undocumented + StagedFeatureNameVUnknownFutureValue StagedFeatureName = "unknownFutureValue" +) + +var ( + // StagedFeatureNamePPassthroughAuthentication is a pointer to StagedFeatureNameVPassthroughAuthentication + StagedFeatureNamePPassthroughAuthentication = &_StagedFeatureNamePPassthroughAuthentication + // StagedFeatureNamePSeamlessSso is a pointer to StagedFeatureNameVSeamlessSso + StagedFeatureNamePSeamlessSso = &_StagedFeatureNamePSeamlessSso + // StagedFeatureNamePPasswordHashSync is a pointer to StagedFeatureNameVPasswordHashSync + StagedFeatureNamePPasswordHashSync = &_StagedFeatureNamePPasswordHashSync + // StagedFeatureNamePUnknownFutureValue is a pointer to StagedFeatureNameVUnknownFutureValue + StagedFeatureNamePUnknownFutureValue = &_StagedFeatureNamePUnknownFutureValue +) + +var ( + _StagedFeatureNamePPassthroughAuthentication = StagedFeatureNameVPassthroughAuthentication + _StagedFeatureNamePSeamlessSso = StagedFeatureNameVSeamlessSso + _StagedFeatureNamePPasswordHashSync = StagedFeatureNameVPasswordHashSync + _StagedFeatureNamePUnknownFutureValue = StagedFeatureNameVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go new file mode 100644 index 00000000..bc37f1c2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// StateManagementSetting undocumented +type StateManagementSetting string + +const ( + // StateManagementSettingVNotConfigured undocumented + StateManagementSettingVNotConfigured StateManagementSetting = "notConfigured" + // StateManagementSettingVBlocked undocumented + StateManagementSettingVBlocked StateManagementSetting = "blocked" + // StateManagementSettingVAllowed undocumented + StateManagementSettingVAllowed StateManagementSetting = "allowed" +) + +var ( + // StateManagementSettingPNotConfigured is a pointer to StateManagementSettingVNotConfigured + StateManagementSettingPNotConfigured = &_StateManagementSettingPNotConfigured + // StateManagementSettingPBlocked is a pointer to StateManagementSettingVBlocked + StateManagementSettingPBlocked = &_StateManagementSettingPBlocked + // StateManagementSettingPAllowed is a pointer to StateManagementSettingVAllowed + StateManagementSettingPAllowed = &_StateManagementSettingPAllowed +) + +var ( + _StateManagementSettingPNotConfigured = StateManagementSettingVNotConfigured + _StateManagementSettingPBlocked = StateManagementSettingVBlocked + _StateManagementSettingPAllowed = StateManagementSettingVAllowed +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go new file mode 100644 index 00000000..0d9a284d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Status undocumented +type Status string + +const ( + // StatusVActive undocumented + StatusVActive Status = "active" + // StatusVUpdated undocumented + StatusVUpdated Status = "updated" + // StatusVDeleted undocumented + StatusVDeleted Status = "deleted" + // StatusVIgnored undocumented + StatusVIgnored Status = "ignored" + // StatusVUnknownFutureValue undocumented + StatusVUnknownFutureValue Status = "unknownFutureValue" +) + +var ( + // StatusPActive is a pointer to StatusVActive + StatusPActive = &_StatusPActive + // StatusPUpdated is a pointer to StatusVUpdated + StatusPUpdated = &_StatusPUpdated + // StatusPDeleted is a pointer to StatusVDeleted + StatusPDeleted = &_StatusPDeleted + // StatusPIgnored is a pointer to StatusVIgnored + StatusPIgnored = &_StatusPIgnored + // StatusPUnknownFutureValue is a pointer to StatusVUnknownFutureValue + StatusPUnknownFutureValue = &_StatusPUnknownFutureValue +) + +var ( + _StatusPActive = StatusVActive + _StatusPUpdated = StatusVUpdated + _StatusPDeleted = StatusVDeleted + _StatusPIgnored = StatusVIgnored + _StatusPUnknownFutureValue = StatusVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go new file mode 100644 index 00000000..aa568b40 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SubjectAlternativeNameType undocumented +type SubjectAlternativeNameType string + +const ( + // SubjectAlternativeNameTypeVNone undocumented + SubjectAlternativeNameTypeVNone SubjectAlternativeNameType = "none" + // SubjectAlternativeNameTypeVEmailAddress undocumented + SubjectAlternativeNameTypeVEmailAddress SubjectAlternativeNameType = "emailAddress" + // SubjectAlternativeNameTypeVUserPrincipalName undocumented + SubjectAlternativeNameTypeVUserPrincipalName SubjectAlternativeNameType = "userPrincipalName" + // SubjectAlternativeNameTypeVCustomAzureADAttribute undocumented + SubjectAlternativeNameTypeVCustomAzureADAttribute SubjectAlternativeNameType = "customAzureADAttribute" + // SubjectAlternativeNameTypeVDomainNameService undocumented + SubjectAlternativeNameTypeVDomainNameService SubjectAlternativeNameType = "domainNameService" +) + +var ( + // SubjectAlternativeNameTypePNone is a pointer to SubjectAlternativeNameTypeVNone + SubjectAlternativeNameTypePNone = &_SubjectAlternativeNameTypePNone + // SubjectAlternativeNameTypePEmailAddress is a pointer to SubjectAlternativeNameTypeVEmailAddress + SubjectAlternativeNameTypePEmailAddress = &_SubjectAlternativeNameTypePEmailAddress + // SubjectAlternativeNameTypePUserPrincipalName is a pointer to SubjectAlternativeNameTypeVUserPrincipalName + SubjectAlternativeNameTypePUserPrincipalName = &_SubjectAlternativeNameTypePUserPrincipalName + // SubjectAlternativeNameTypePCustomAzureADAttribute is a pointer to SubjectAlternativeNameTypeVCustomAzureADAttribute + SubjectAlternativeNameTypePCustomAzureADAttribute = &_SubjectAlternativeNameTypePCustomAzureADAttribute + // SubjectAlternativeNameTypePDomainNameService is a pointer to SubjectAlternativeNameTypeVDomainNameService + SubjectAlternativeNameTypePDomainNameService = &_SubjectAlternativeNameTypePDomainNameService +) + +var ( + _SubjectAlternativeNameTypePNone = SubjectAlternativeNameTypeVNone + _SubjectAlternativeNameTypePEmailAddress = SubjectAlternativeNameTypeVEmailAddress + _SubjectAlternativeNameTypePUserPrincipalName = SubjectAlternativeNameTypeVUserPrincipalName + _SubjectAlternativeNameTypePCustomAzureADAttribute = SubjectAlternativeNameTypeVCustomAzureADAttribute + _SubjectAlternativeNameTypePDomainNameService = SubjectAlternativeNameTypeVDomainNameService +) + +// SubjectNameFormat undocumented +type SubjectNameFormat string + +const ( + // SubjectNameFormatVCommonName undocumented + SubjectNameFormatVCommonName SubjectNameFormat = "commonName" + // SubjectNameFormatVCommonNameIncludingEmail undocumented + SubjectNameFormatVCommonNameIncludingEmail SubjectNameFormat = "commonNameIncludingEmail" + // SubjectNameFormatVCommonNameAsEmail undocumented + SubjectNameFormatVCommonNameAsEmail SubjectNameFormat = "commonNameAsEmail" + // SubjectNameFormatVCustom undocumented + SubjectNameFormatVCustom SubjectNameFormat = "custom" + // SubjectNameFormatVCommonNameAsIMEI undocumented + SubjectNameFormatVCommonNameAsIMEI SubjectNameFormat = "commonNameAsIMEI" + // SubjectNameFormatVCommonNameAsSerialNumber undocumented + SubjectNameFormatVCommonNameAsSerialNumber SubjectNameFormat = "commonNameAsSerialNumber" + // SubjectNameFormatVCommonNameAsAadDeviceID undocumented + SubjectNameFormatVCommonNameAsAadDeviceID SubjectNameFormat = "commonNameAsAadDeviceId" + // SubjectNameFormatVCommonNameAsIntuneDeviceID undocumented + SubjectNameFormatVCommonNameAsIntuneDeviceID SubjectNameFormat = "commonNameAsIntuneDeviceId" + // SubjectNameFormatVCommonNameAsDurableDeviceID undocumented + SubjectNameFormatVCommonNameAsDurableDeviceID SubjectNameFormat = "commonNameAsDurableDeviceId" +) + +var ( + // SubjectNameFormatPCommonName is a pointer to SubjectNameFormatVCommonName + SubjectNameFormatPCommonName = &_SubjectNameFormatPCommonName + // SubjectNameFormatPCommonNameIncludingEmail is a pointer to SubjectNameFormatVCommonNameIncludingEmail + SubjectNameFormatPCommonNameIncludingEmail = &_SubjectNameFormatPCommonNameIncludingEmail + // SubjectNameFormatPCommonNameAsEmail is a pointer to SubjectNameFormatVCommonNameAsEmail + SubjectNameFormatPCommonNameAsEmail = &_SubjectNameFormatPCommonNameAsEmail + // SubjectNameFormatPCustom is a pointer to SubjectNameFormatVCustom + SubjectNameFormatPCustom = &_SubjectNameFormatPCustom + // SubjectNameFormatPCommonNameAsIMEI is a pointer to SubjectNameFormatVCommonNameAsIMEI + SubjectNameFormatPCommonNameAsIMEI = &_SubjectNameFormatPCommonNameAsIMEI + // SubjectNameFormatPCommonNameAsSerialNumber is a pointer to SubjectNameFormatVCommonNameAsSerialNumber + SubjectNameFormatPCommonNameAsSerialNumber = &_SubjectNameFormatPCommonNameAsSerialNumber + // SubjectNameFormatPCommonNameAsAadDeviceID is a pointer to SubjectNameFormatVCommonNameAsAadDeviceID + SubjectNameFormatPCommonNameAsAadDeviceID = &_SubjectNameFormatPCommonNameAsAadDeviceID + // SubjectNameFormatPCommonNameAsIntuneDeviceID is a pointer to SubjectNameFormatVCommonNameAsIntuneDeviceID + SubjectNameFormatPCommonNameAsIntuneDeviceID = &_SubjectNameFormatPCommonNameAsIntuneDeviceID + // SubjectNameFormatPCommonNameAsDurableDeviceID is a pointer to SubjectNameFormatVCommonNameAsDurableDeviceID + SubjectNameFormatPCommonNameAsDurableDeviceID = &_SubjectNameFormatPCommonNameAsDurableDeviceID +) + +var ( + _SubjectNameFormatPCommonName = SubjectNameFormatVCommonName + _SubjectNameFormatPCommonNameIncludingEmail = SubjectNameFormatVCommonNameIncludingEmail + _SubjectNameFormatPCommonNameAsEmail = SubjectNameFormatVCommonNameAsEmail + _SubjectNameFormatPCustom = SubjectNameFormatVCustom + _SubjectNameFormatPCommonNameAsIMEI = SubjectNameFormatVCommonNameAsIMEI + _SubjectNameFormatPCommonNameAsSerialNumber = SubjectNameFormatVCommonNameAsSerialNumber + _SubjectNameFormatPCommonNameAsAadDeviceID = SubjectNameFormatVCommonNameAsAadDeviceID + _SubjectNameFormatPCommonNameAsIntuneDeviceID = SubjectNameFormatVCommonNameAsIntuneDeviceID + _SubjectNameFormatPCommonNameAsDurableDeviceID = SubjectNameFormatVCommonNameAsDurableDeviceID +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go new file mode 100644 index 00000000..70220d8a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go @@ -0,0 +1,333 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SynchronizationJobRestartScope undocumented +type SynchronizationJobRestartScope string + +const ( + // SynchronizationJobRestartScopeVForceDeletes undocumented + SynchronizationJobRestartScopeVForceDeletes SynchronizationJobRestartScope = "ForceDeletes" + // SynchronizationJobRestartScopeVFull undocumented + SynchronizationJobRestartScopeVFull SynchronizationJobRestartScope = "Full" + // SynchronizationJobRestartScopeVQuarantineState undocumented + SynchronizationJobRestartScopeVQuarantineState SynchronizationJobRestartScope = "QuarantineState" + // SynchronizationJobRestartScopeVWatermark undocumented + SynchronizationJobRestartScopeVWatermark SynchronizationJobRestartScope = "Watermark" + // SynchronizationJobRestartScopeVEscrows undocumented + SynchronizationJobRestartScopeVEscrows SynchronizationJobRestartScope = "Escrows" + // SynchronizationJobRestartScopeVConnectorDataStore undocumented + SynchronizationJobRestartScopeVConnectorDataStore SynchronizationJobRestartScope = "ConnectorDataStore" + // SynchronizationJobRestartScopeVNone undocumented + SynchronizationJobRestartScopeVNone SynchronizationJobRestartScope = "None" +) + +var ( + // SynchronizationJobRestartScopePForceDeletes is a pointer to SynchronizationJobRestartScopeVForceDeletes + SynchronizationJobRestartScopePForceDeletes = &_SynchronizationJobRestartScopePForceDeletes + // SynchronizationJobRestartScopePFull is a pointer to SynchronizationJobRestartScopeVFull + SynchronizationJobRestartScopePFull = &_SynchronizationJobRestartScopePFull + // SynchronizationJobRestartScopePQuarantineState is a pointer to SynchronizationJobRestartScopeVQuarantineState + SynchronizationJobRestartScopePQuarantineState = &_SynchronizationJobRestartScopePQuarantineState + // SynchronizationJobRestartScopePWatermark is a pointer to SynchronizationJobRestartScopeVWatermark + SynchronizationJobRestartScopePWatermark = &_SynchronizationJobRestartScopePWatermark + // SynchronizationJobRestartScopePEscrows is a pointer to SynchronizationJobRestartScopeVEscrows + SynchronizationJobRestartScopePEscrows = &_SynchronizationJobRestartScopePEscrows + // SynchronizationJobRestartScopePConnectorDataStore is a pointer to SynchronizationJobRestartScopeVConnectorDataStore + SynchronizationJobRestartScopePConnectorDataStore = &_SynchronizationJobRestartScopePConnectorDataStore + // SynchronizationJobRestartScopePNone is a pointer to SynchronizationJobRestartScopeVNone + SynchronizationJobRestartScopePNone = &_SynchronizationJobRestartScopePNone +) + +var ( + _SynchronizationJobRestartScopePForceDeletes = SynchronizationJobRestartScopeVForceDeletes + _SynchronizationJobRestartScopePFull = SynchronizationJobRestartScopeVFull + _SynchronizationJobRestartScopePQuarantineState = SynchronizationJobRestartScopeVQuarantineState + _SynchronizationJobRestartScopePWatermark = SynchronizationJobRestartScopeVWatermark + _SynchronizationJobRestartScopePEscrows = SynchronizationJobRestartScopeVEscrows + _SynchronizationJobRestartScopePConnectorDataStore = SynchronizationJobRestartScopeVConnectorDataStore + _SynchronizationJobRestartScopePNone = SynchronizationJobRestartScopeVNone +) + +// SynchronizationScheduleState undocumented +type SynchronizationScheduleState string + +const ( + // SynchronizationScheduleStateVActive undocumented + SynchronizationScheduleStateVActive SynchronizationScheduleState = "Active" + // SynchronizationScheduleStateVDisabled undocumented + SynchronizationScheduleStateVDisabled SynchronizationScheduleState = "Disabled" +) + +var ( + // SynchronizationScheduleStatePActive is a pointer to SynchronizationScheduleStateVActive + SynchronizationScheduleStatePActive = &_SynchronizationScheduleStatePActive + // SynchronizationScheduleStatePDisabled is a pointer to SynchronizationScheduleStateVDisabled + SynchronizationScheduleStatePDisabled = &_SynchronizationScheduleStatePDisabled +) + +var ( + _SynchronizationScheduleStatePActive = SynchronizationScheduleStateVActive + _SynchronizationScheduleStatePDisabled = SynchronizationScheduleStateVDisabled +) + +// SynchronizationSecret undocumented +type SynchronizationSecret string + +const ( + // SynchronizationSecretVNone undocumented + SynchronizationSecretVNone SynchronizationSecret = "None" + // SynchronizationSecretVUserName undocumented + SynchronizationSecretVUserName SynchronizationSecret = "UserName" + // SynchronizationSecretVPassword undocumented + SynchronizationSecretVPassword SynchronizationSecret = "Password" + // SynchronizationSecretVSecretToken undocumented + SynchronizationSecretVSecretToken SynchronizationSecret = "SecretToken" + // SynchronizationSecretVAppKey undocumented + SynchronizationSecretVAppKey SynchronizationSecret = "AppKey" + // SynchronizationSecretVBaseAddress undocumented + SynchronizationSecretVBaseAddress SynchronizationSecret = "BaseAddress" + // SynchronizationSecretVClientIdentifier undocumented + SynchronizationSecretVClientIdentifier SynchronizationSecret = "ClientIdentifier" + // SynchronizationSecretVClientSecret undocumented + SynchronizationSecretVClientSecret SynchronizationSecret = "ClientSecret" + // SynchronizationSecretVSingleSignOnType undocumented + SynchronizationSecretVSingleSignOnType SynchronizationSecret = "SingleSignOnType" + // SynchronizationSecretVSandbox undocumented + SynchronizationSecretVSandbox SynchronizationSecret = "Sandbox" + // SynchronizationSecretVURL undocumented + SynchronizationSecretVURL SynchronizationSecret = "Url" + // SynchronizationSecretVDomain undocumented + SynchronizationSecretVDomain SynchronizationSecret = "Domain" + // SynchronizationSecretVConsumerKey undocumented + SynchronizationSecretVConsumerKey SynchronizationSecret = "ConsumerKey" + // SynchronizationSecretVConsumerSecret undocumented + SynchronizationSecretVConsumerSecret SynchronizationSecret = "ConsumerSecret" + // SynchronizationSecretVTokenKey undocumented + SynchronizationSecretVTokenKey SynchronizationSecret = "TokenKey" + // SynchronizationSecretVTokenExpiration undocumented + SynchronizationSecretVTokenExpiration SynchronizationSecret = "TokenExpiration" + // SynchronizationSecretVOauth2AccessToken undocumented + SynchronizationSecretVOauth2AccessToken SynchronizationSecret = "Oauth2AccessToken" + // SynchronizationSecretVOauth2AccessTokenCreationTime undocumented + SynchronizationSecretVOauth2AccessTokenCreationTime SynchronizationSecret = "Oauth2AccessTokenCreationTime" + // SynchronizationSecretVOauth2RefreshToken undocumented + SynchronizationSecretVOauth2RefreshToken SynchronizationSecret = "Oauth2RefreshToken" + // SynchronizationSecretVSyncAll undocumented + SynchronizationSecretVSyncAll SynchronizationSecret = "SyncAll" + // SynchronizationSecretVInstanceName undocumented + SynchronizationSecretVInstanceName SynchronizationSecret = "InstanceName" + // SynchronizationSecretVOauth2ClientID undocumented + SynchronizationSecretVOauth2ClientID SynchronizationSecret = "Oauth2ClientId" + // SynchronizationSecretVOauth2ClientSecret undocumented + SynchronizationSecretVOauth2ClientSecret SynchronizationSecret = "Oauth2ClientSecret" + // SynchronizationSecretVCompanyID undocumented + SynchronizationSecretVCompanyID SynchronizationSecret = "CompanyId" + // SynchronizationSecretVUpdateKeyOnSoftDelete undocumented + SynchronizationSecretVUpdateKeyOnSoftDelete SynchronizationSecret = "UpdateKeyOnSoftDelete" + // SynchronizationSecretVSynchronizationSchedule undocumented + SynchronizationSecretVSynchronizationSchedule SynchronizationSecret = "SynchronizationSchedule" + // SynchronizationSecretVSystemOfRecord undocumented + SynchronizationSecretVSystemOfRecord SynchronizationSecret = "SystemOfRecord" + // SynchronizationSecretVSandboxName undocumented + SynchronizationSecretVSandboxName SynchronizationSecret = "SandboxName" + // SynchronizationSecretVEnforceDomain undocumented + SynchronizationSecretVEnforceDomain SynchronizationSecret = "EnforceDomain" + // SynchronizationSecretVSyncNotificationSettings undocumented + SynchronizationSecretVSyncNotificationSettings SynchronizationSecret = "SyncNotificationSettings" + // SynchronizationSecretVServer undocumented + SynchronizationSecretVServer SynchronizationSecret = "Server" + // SynchronizationSecretVPerformInboundEntitlementGrants undocumented + SynchronizationSecretVPerformInboundEntitlementGrants SynchronizationSecret = "PerformInboundEntitlementGrants" + // SynchronizationSecretVHardDeletesEnabled undocumented + SynchronizationSecretVHardDeletesEnabled SynchronizationSecret = "HardDeletesEnabled" + // SynchronizationSecretVSyncAgentCompatibilityKey undocumented + SynchronizationSecretVSyncAgentCompatibilityKey SynchronizationSecret = "SyncAgentCompatibilityKey" + // SynchronizationSecretVSyncAgentADContainer undocumented + SynchronizationSecretVSyncAgentADContainer SynchronizationSecret = "SyncAgentADContainer" + // SynchronizationSecretVValidateDomain undocumented + SynchronizationSecretVValidateDomain SynchronizationSecret = "ValidateDomain" + // SynchronizationSecretVTestReferences undocumented + SynchronizationSecretVTestReferences SynchronizationSecret = "TestReferences" +) + +var ( + // SynchronizationSecretPNone is a pointer to SynchronizationSecretVNone + SynchronizationSecretPNone = &_SynchronizationSecretPNone + // SynchronizationSecretPUserName is a pointer to SynchronizationSecretVUserName + SynchronizationSecretPUserName = &_SynchronizationSecretPUserName + // SynchronizationSecretPPassword is a pointer to SynchronizationSecretVPassword + SynchronizationSecretPPassword = &_SynchronizationSecretPPassword + // SynchronizationSecretPSecretToken is a pointer to SynchronizationSecretVSecretToken + SynchronizationSecretPSecretToken = &_SynchronizationSecretPSecretToken + // SynchronizationSecretPAppKey is a pointer to SynchronizationSecretVAppKey + SynchronizationSecretPAppKey = &_SynchronizationSecretPAppKey + // SynchronizationSecretPBaseAddress is a pointer to SynchronizationSecretVBaseAddress + SynchronizationSecretPBaseAddress = &_SynchronizationSecretPBaseAddress + // SynchronizationSecretPClientIdentifier is a pointer to SynchronizationSecretVClientIdentifier + SynchronizationSecretPClientIdentifier = &_SynchronizationSecretPClientIdentifier + // SynchronizationSecretPClientSecret is a pointer to SynchronizationSecretVClientSecret + SynchronizationSecretPClientSecret = &_SynchronizationSecretPClientSecret + // SynchronizationSecretPSingleSignOnType is a pointer to SynchronizationSecretVSingleSignOnType + SynchronizationSecretPSingleSignOnType = &_SynchronizationSecretPSingleSignOnType + // SynchronizationSecretPSandbox is a pointer to SynchronizationSecretVSandbox + SynchronizationSecretPSandbox = &_SynchronizationSecretPSandbox + // SynchronizationSecretPURL is a pointer to SynchronizationSecretVURL + SynchronizationSecretPURL = &_SynchronizationSecretPURL + // SynchronizationSecretPDomain is a pointer to SynchronizationSecretVDomain + SynchronizationSecretPDomain = &_SynchronizationSecretPDomain + // SynchronizationSecretPConsumerKey is a pointer to SynchronizationSecretVConsumerKey + SynchronizationSecretPConsumerKey = &_SynchronizationSecretPConsumerKey + // SynchronizationSecretPConsumerSecret is a pointer to SynchronizationSecretVConsumerSecret + SynchronizationSecretPConsumerSecret = &_SynchronizationSecretPConsumerSecret + // SynchronizationSecretPTokenKey is a pointer to SynchronizationSecretVTokenKey + SynchronizationSecretPTokenKey = &_SynchronizationSecretPTokenKey + // SynchronizationSecretPTokenExpiration is a pointer to SynchronizationSecretVTokenExpiration + SynchronizationSecretPTokenExpiration = &_SynchronizationSecretPTokenExpiration + // SynchronizationSecretPOauth2AccessToken is a pointer to SynchronizationSecretVOauth2AccessToken + SynchronizationSecretPOauth2AccessToken = &_SynchronizationSecretPOauth2AccessToken + // SynchronizationSecretPOauth2AccessTokenCreationTime is a pointer to SynchronizationSecretVOauth2AccessTokenCreationTime + SynchronizationSecretPOauth2AccessTokenCreationTime = &_SynchronizationSecretPOauth2AccessTokenCreationTime + // SynchronizationSecretPOauth2RefreshToken is a pointer to SynchronizationSecretVOauth2RefreshToken + SynchronizationSecretPOauth2RefreshToken = &_SynchronizationSecretPOauth2RefreshToken + // SynchronizationSecretPSyncAll is a pointer to SynchronizationSecretVSyncAll + SynchronizationSecretPSyncAll = &_SynchronizationSecretPSyncAll + // SynchronizationSecretPInstanceName is a pointer to SynchronizationSecretVInstanceName + SynchronizationSecretPInstanceName = &_SynchronizationSecretPInstanceName + // SynchronizationSecretPOauth2ClientID is a pointer to SynchronizationSecretVOauth2ClientID + SynchronizationSecretPOauth2ClientID = &_SynchronizationSecretPOauth2ClientID + // SynchronizationSecretPOauth2ClientSecret is a pointer to SynchronizationSecretVOauth2ClientSecret + SynchronizationSecretPOauth2ClientSecret = &_SynchronizationSecretPOauth2ClientSecret + // SynchronizationSecretPCompanyID is a pointer to SynchronizationSecretVCompanyID + SynchronizationSecretPCompanyID = &_SynchronizationSecretPCompanyID + // SynchronizationSecretPUpdateKeyOnSoftDelete is a pointer to SynchronizationSecretVUpdateKeyOnSoftDelete + SynchronizationSecretPUpdateKeyOnSoftDelete = &_SynchronizationSecretPUpdateKeyOnSoftDelete + // SynchronizationSecretPSynchronizationSchedule is a pointer to SynchronizationSecretVSynchronizationSchedule + SynchronizationSecretPSynchronizationSchedule = &_SynchronizationSecretPSynchronizationSchedule + // SynchronizationSecretPSystemOfRecord is a pointer to SynchronizationSecretVSystemOfRecord + SynchronizationSecretPSystemOfRecord = &_SynchronizationSecretPSystemOfRecord + // SynchronizationSecretPSandboxName is a pointer to SynchronizationSecretVSandboxName + SynchronizationSecretPSandboxName = &_SynchronizationSecretPSandboxName + // SynchronizationSecretPEnforceDomain is a pointer to SynchronizationSecretVEnforceDomain + SynchronizationSecretPEnforceDomain = &_SynchronizationSecretPEnforceDomain + // SynchronizationSecretPSyncNotificationSettings is a pointer to SynchronizationSecretVSyncNotificationSettings + SynchronizationSecretPSyncNotificationSettings = &_SynchronizationSecretPSyncNotificationSettings + // SynchronizationSecretPServer is a pointer to SynchronizationSecretVServer + SynchronizationSecretPServer = &_SynchronizationSecretPServer + // SynchronizationSecretPPerformInboundEntitlementGrants is a pointer to SynchronizationSecretVPerformInboundEntitlementGrants + SynchronizationSecretPPerformInboundEntitlementGrants = &_SynchronizationSecretPPerformInboundEntitlementGrants + // SynchronizationSecretPHardDeletesEnabled is a pointer to SynchronizationSecretVHardDeletesEnabled + SynchronizationSecretPHardDeletesEnabled = &_SynchronizationSecretPHardDeletesEnabled + // SynchronizationSecretPSyncAgentCompatibilityKey is a pointer to SynchronizationSecretVSyncAgentCompatibilityKey + SynchronizationSecretPSyncAgentCompatibilityKey = &_SynchronizationSecretPSyncAgentCompatibilityKey + // SynchronizationSecretPSyncAgentADContainer is a pointer to SynchronizationSecretVSyncAgentADContainer + SynchronizationSecretPSyncAgentADContainer = &_SynchronizationSecretPSyncAgentADContainer + // SynchronizationSecretPValidateDomain is a pointer to SynchronizationSecretVValidateDomain + SynchronizationSecretPValidateDomain = &_SynchronizationSecretPValidateDomain + // SynchronizationSecretPTestReferences is a pointer to SynchronizationSecretVTestReferences + SynchronizationSecretPTestReferences = &_SynchronizationSecretPTestReferences +) + +var ( + _SynchronizationSecretPNone = SynchronizationSecretVNone + _SynchronizationSecretPUserName = SynchronizationSecretVUserName + _SynchronizationSecretPPassword = SynchronizationSecretVPassword + _SynchronizationSecretPSecretToken = SynchronizationSecretVSecretToken + _SynchronizationSecretPAppKey = SynchronizationSecretVAppKey + _SynchronizationSecretPBaseAddress = SynchronizationSecretVBaseAddress + _SynchronizationSecretPClientIdentifier = SynchronizationSecretVClientIdentifier + _SynchronizationSecretPClientSecret = SynchronizationSecretVClientSecret + _SynchronizationSecretPSingleSignOnType = SynchronizationSecretVSingleSignOnType + _SynchronizationSecretPSandbox = SynchronizationSecretVSandbox + _SynchronizationSecretPURL = SynchronizationSecretVURL + _SynchronizationSecretPDomain = SynchronizationSecretVDomain + _SynchronizationSecretPConsumerKey = SynchronizationSecretVConsumerKey + _SynchronizationSecretPConsumerSecret = SynchronizationSecretVConsumerSecret + _SynchronizationSecretPTokenKey = SynchronizationSecretVTokenKey + _SynchronizationSecretPTokenExpiration = SynchronizationSecretVTokenExpiration + _SynchronizationSecretPOauth2AccessToken = SynchronizationSecretVOauth2AccessToken + _SynchronizationSecretPOauth2AccessTokenCreationTime = SynchronizationSecretVOauth2AccessTokenCreationTime + _SynchronizationSecretPOauth2RefreshToken = SynchronizationSecretVOauth2RefreshToken + _SynchronizationSecretPSyncAll = SynchronizationSecretVSyncAll + _SynchronizationSecretPInstanceName = SynchronizationSecretVInstanceName + _SynchronizationSecretPOauth2ClientID = SynchronizationSecretVOauth2ClientID + _SynchronizationSecretPOauth2ClientSecret = SynchronizationSecretVOauth2ClientSecret + _SynchronizationSecretPCompanyID = SynchronizationSecretVCompanyID + _SynchronizationSecretPUpdateKeyOnSoftDelete = SynchronizationSecretVUpdateKeyOnSoftDelete + _SynchronizationSecretPSynchronizationSchedule = SynchronizationSecretVSynchronizationSchedule + _SynchronizationSecretPSystemOfRecord = SynchronizationSecretVSystemOfRecord + _SynchronizationSecretPSandboxName = SynchronizationSecretVSandboxName + _SynchronizationSecretPEnforceDomain = SynchronizationSecretVEnforceDomain + _SynchronizationSecretPSyncNotificationSettings = SynchronizationSecretVSyncNotificationSettings + _SynchronizationSecretPServer = SynchronizationSecretVServer + _SynchronizationSecretPPerformInboundEntitlementGrants = SynchronizationSecretVPerformInboundEntitlementGrants + _SynchronizationSecretPHardDeletesEnabled = SynchronizationSecretVHardDeletesEnabled + _SynchronizationSecretPSyncAgentCompatibilityKey = SynchronizationSecretVSyncAgentCompatibilityKey + _SynchronizationSecretPSyncAgentADContainer = SynchronizationSecretVSyncAgentADContainer + _SynchronizationSecretPValidateDomain = SynchronizationSecretVValidateDomain + _SynchronizationSecretPTestReferences = SynchronizationSecretVTestReferences +) + +// SynchronizationStatusCode undocumented +type SynchronizationStatusCode string + +const ( + // SynchronizationStatusCodeVNotConfigured undocumented + SynchronizationStatusCodeVNotConfigured SynchronizationStatusCode = "NotConfigured" + // SynchronizationStatusCodeVNotRun undocumented + SynchronizationStatusCodeVNotRun SynchronizationStatusCode = "NotRun" + // SynchronizationStatusCodeVActive undocumented + SynchronizationStatusCodeVActive SynchronizationStatusCode = "Active" + // SynchronizationStatusCodeVPaused undocumented + SynchronizationStatusCodeVPaused SynchronizationStatusCode = "Paused" + // SynchronizationStatusCodeVQuarantine undocumented + SynchronizationStatusCodeVQuarantine SynchronizationStatusCode = "Quarantine" +) + +var ( + // SynchronizationStatusCodePNotConfigured is a pointer to SynchronizationStatusCodeVNotConfigured + SynchronizationStatusCodePNotConfigured = &_SynchronizationStatusCodePNotConfigured + // SynchronizationStatusCodePNotRun is a pointer to SynchronizationStatusCodeVNotRun + SynchronizationStatusCodePNotRun = &_SynchronizationStatusCodePNotRun + // SynchronizationStatusCodePActive is a pointer to SynchronizationStatusCodeVActive + SynchronizationStatusCodePActive = &_SynchronizationStatusCodePActive + // SynchronizationStatusCodePPaused is a pointer to SynchronizationStatusCodeVPaused + SynchronizationStatusCodePPaused = &_SynchronizationStatusCodePPaused + // SynchronizationStatusCodePQuarantine is a pointer to SynchronizationStatusCodeVQuarantine + SynchronizationStatusCodePQuarantine = &_SynchronizationStatusCodePQuarantine +) + +var ( + _SynchronizationStatusCodePNotConfigured = SynchronizationStatusCodeVNotConfigured + _SynchronizationStatusCodePNotRun = SynchronizationStatusCodeVNotRun + _SynchronizationStatusCodePActive = SynchronizationStatusCodeVActive + _SynchronizationStatusCodePPaused = SynchronizationStatusCodeVPaused + _SynchronizationStatusCodePQuarantine = SynchronizationStatusCodeVQuarantine +) + +// SynchronizationTaskExecutionResult undocumented +type SynchronizationTaskExecutionResult string + +const ( + // SynchronizationTaskExecutionResultVSucceeded undocumented + SynchronizationTaskExecutionResultVSucceeded SynchronizationTaskExecutionResult = "Succeeded" + // SynchronizationTaskExecutionResultVFailed undocumented + SynchronizationTaskExecutionResultVFailed SynchronizationTaskExecutionResult = "Failed" + // SynchronizationTaskExecutionResultVEntryLevelErrors undocumented + SynchronizationTaskExecutionResultVEntryLevelErrors SynchronizationTaskExecutionResult = "EntryLevelErrors" +) + +var ( + // SynchronizationTaskExecutionResultPSucceeded is a pointer to SynchronizationTaskExecutionResultVSucceeded + SynchronizationTaskExecutionResultPSucceeded = &_SynchronizationTaskExecutionResultPSucceeded + // SynchronizationTaskExecutionResultPFailed is a pointer to SynchronizationTaskExecutionResultVFailed + SynchronizationTaskExecutionResultPFailed = &_SynchronizationTaskExecutionResultPFailed + // SynchronizationTaskExecutionResultPEntryLevelErrors is a pointer to SynchronizationTaskExecutionResultVEntryLevelErrors + SynchronizationTaskExecutionResultPEntryLevelErrors = &_SynchronizationTaskExecutionResultPEntryLevelErrors +) + +var ( + _SynchronizationTaskExecutionResultPSucceeded = SynchronizationTaskExecutionResultVSucceeded + _SynchronizationTaskExecutionResultPFailed = SynchronizationTaskExecutionResultVFailed + _SynchronizationTaskExecutionResultPEntryLevelErrors = SynchronizationTaskExecutionResultVEntryLevelErrors +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go new file mode 100644 index 00000000..de2bf07c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TaskStatus undocumented +type TaskStatus string + +const ( + // TaskStatusVNotStarted undocumented + TaskStatusVNotStarted TaskStatus = "notStarted" + // TaskStatusVInProgress undocumented + TaskStatusVInProgress TaskStatus = "inProgress" + // TaskStatusVCompleted undocumented + TaskStatusVCompleted TaskStatus = "completed" + // TaskStatusVWaitingOnOthers undocumented + TaskStatusVWaitingOnOthers TaskStatus = "waitingOnOthers" + // TaskStatusVDeferred undocumented + TaskStatusVDeferred TaskStatus = "deferred" +) + +var ( + // TaskStatusPNotStarted is a pointer to TaskStatusVNotStarted + TaskStatusPNotStarted = &_TaskStatusPNotStarted + // TaskStatusPInProgress is a pointer to TaskStatusVInProgress + TaskStatusPInProgress = &_TaskStatusPInProgress + // TaskStatusPCompleted is a pointer to TaskStatusVCompleted + TaskStatusPCompleted = &_TaskStatusPCompleted + // TaskStatusPWaitingOnOthers is a pointer to TaskStatusVWaitingOnOthers + TaskStatusPWaitingOnOthers = &_TaskStatusPWaitingOnOthers + // TaskStatusPDeferred is a pointer to TaskStatusVDeferred + TaskStatusPDeferred = &_TaskStatusPDeferred +) + +var ( + _TaskStatusPNotStarted = TaskStatusVNotStarted + _TaskStatusPInProgress = TaskStatusVInProgress + _TaskStatusPCompleted = TaskStatusVCompleted + _TaskStatusPWaitingOnOthers = TaskStatusVWaitingOnOthers + _TaskStatusPDeferred = TaskStatusVDeferred +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go new file mode 100644 index 00000000..27bdff00 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go @@ -0,0 +1,87 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TeamSpecialization undocumented +type TeamSpecialization string + +const ( + // TeamSpecializationVNone undocumented + TeamSpecializationVNone TeamSpecialization = "none" + // TeamSpecializationVEducationStandard undocumented + TeamSpecializationVEducationStandard TeamSpecialization = "educationStandard" + // TeamSpecializationVEducationClass undocumented + TeamSpecializationVEducationClass TeamSpecialization = "educationClass" + // TeamSpecializationVEducationProfessionalLearningCommunity undocumented + TeamSpecializationVEducationProfessionalLearningCommunity TeamSpecialization = "educationProfessionalLearningCommunity" + // TeamSpecializationVEducationStaff undocumented + TeamSpecializationVEducationStaff TeamSpecialization = "educationStaff" + // TeamSpecializationVHealthcareStandard undocumented + TeamSpecializationVHealthcareStandard TeamSpecialization = "healthcareStandard" + // TeamSpecializationVHealthcareCareCoordination undocumented + TeamSpecializationVHealthcareCareCoordination TeamSpecialization = "healthcareCareCoordination" + // TeamSpecializationVUnknownFutureValue undocumented + TeamSpecializationVUnknownFutureValue TeamSpecialization = "unknownFutureValue" +) + +var ( + // TeamSpecializationPNone is a pointer to TeamSpecializationVNone + TeamSpecializationPNone = &_TeamSpecializationPNone + // TeamSpecializationPEducationStandard is a pointer to TeamSpecializationVEducationStandard + TeamSpecializationPEducationStandard = &_TeamSpecializationPEducationStandard + // TeamSpecializationPEducationClass is a pointer to TeamSpecializationVEducationClass + TeamSpecializationPEducationClass = &_TeamSpecializationPEducationClass + // TeamSpecializationPEducationProfessionalLearningCommunity is a pointer to TeamSpecializationVEducationProfessionalLearningCommunity + TeamSpecializationPEducationProfessionalLearningCommunity = &_TeamSpecializationPEducationProfessionalLearningCommunity + // TeamSpecializationPEducationStaff is a pointer to TeamSpecializationVEducationStaff + TeamSpecializationPEducationStaff = &_TeamSpecializationPEducationStaff + // TeamSpecializationPHealthcareStandard is a pointer to TeamSpecializationVHealthcareStandard + TeamSpecializationPHealthcareStandard = &_TeamSpecializationPHealthcareStandard + // TeamSpecializationPHealthcareCareCoordination is a pointer to TeamSpecializationVHealthcareCareCoordination + TeamSpecializationPHealthcareCareCoordination = &_TeamSpecializationPHealthcareCareCoordination + // TeamSpecializationPUnknownFutureValue is a pointer to TeamSpecializationVUnknownFutureValue + TeamSpecializationPUnknownFutureValue = &_TeamSpecializationPUnknownFutureValue +) + +var ( + _TeamSpecializationPNone = TeamSpecializationVNone + _TeamSpecializationPEducationStandard = TeamSpecializationVEducationStandard + _TeamSpecializationPEducationClass = TeamSpecializationVEducationClass + _TeamSpecializationPEducationProfessionalLearningCommunity = TeamSpecializationVEducationProfessionalLearningCommunity + _TeamSpecializationPEducationStaff = TeamSpecializationVEducationStaff + _TeamSpecializationPHealthcareStandard = TeamSpecializationVHealthcareStandard + _TeamSpecializationPHealthcareCareCoordination = TeamSpecializationVHealthcareCareCoordination + _TeamSpecializationPUnknownFutureValue = TeamSpecializationVUnknownFutureValue +) + +// TeamVisibilityType undocumented +type TeamVisibilityType string + +const ( + // TeamVisibilityTypeVPrivate undocumented + TeamVisibilityTypeVPrivate TeamVisibilityType = "private" + // TeamVisibilityTypeVPublic undocumented + TeamVisibilityTypeVPublic TeamVisibilityType = "public" + // TeamVisibilityTypeVHiddenMembership undocumented + TeamVisibilityTypeVHiddenMembership TeamVisibilityType = "hiddenMembership" + // TeamVisibilityTypeVUnknownFutureValue undocumented + TeamVisibilityTypeVUnknownFutureValue TeamVisibilityType = "unknownFutureValue" +) + +var ( + // TeamVisibilityTypePPrivate is a pointer to TeamVisibilityTypeVPrivate + TeamVisibilityTypePPrivate = &_TeamVisibilityTypePPrivate + // TeamVisibilityTypePPublic is a pointer to TeamVisibilityTypeVPublic + TeamVisibilityTypePPublic = &_TeamVisibilityTypePPublic + // TeamVisibilityTypePHiddenMembership is a pointer to TeamVisibilityTypeVHiddenMembership + TeamVisibilityTypePHiddenMembership = &_TeamVisibilityTypePHiddenMembership + // TeamVisibilityTypePUnknownFutureValue is a pointer to TeamVisibilityTypeVUnknownFutureValue + TeamVisibilityTypePUnknownFutureValue = &_TeamVisibilityTypePUnknownFutureValue +) + +var ( + _TeamVisibilityTypePPrivate = TeamVisibilityTypeVPrivate + _TeamVisibilityTypePPublic = TeamVisibilityTypeVPublic + _TeamVisibilityTypePHiddenMembership = TeamVisibilityTypeVHiddenMembership + _TeamVisibilityTypePUnknownFutureValue = TeamVisibilityTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go new file mode 100644 index 00000000..1b2985ea --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go @@ -0,0 +1,119 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TeamsAppDistributionMethod undocumented +type TeamsAppDistributionMethod string + +const ( + // TeamsAppDistributionMethodVStore undocumented + TeamsAppDistributionMethodVStore TeamsAppDistributionMethod = "store" + // TeamsAppDistributionMethodVOrganization undocumented + TeamsAppDistributionMethodVOrganization TeamsAppDistributionMethod = "organization" + // TeamsAppDistributionMethodVSideloaded undocumented + TeamsAppDistributionMethodVSideloaded TeamsAppDistributionMethod = "sideloaded" + // TeamsAppDistributionMethodVUnknownFutureValue undocumented + TeamsAppDistributionMethodVUnknownFutureValue TeamsAppDistributionMethod = "unknownFutureValue" +) + +var ( + // TeamsAppDistributionMethodPStore is a pointer to TeamsAppDistributionMethodVStore + TeamsAppDistributionMethodPStore = &_TeamsAppDistributionMethodPStore + // TeamsAppDistributionMethodPOrganization is a pointer to TeamsAppDistributionMethodVOrganization + TeamsAppDistributionMethodPOrganization = &_TeamsAppDistributionMethodPOrganization + // TeamsAppDistributionMethodPSideloaded is a pointer to TeamsAppDistributionMethodVSideloaded + TeamsAppDistributionMethodPSideloaded = &_TeamsAppDistributionMethodPSideloaded + // TeamsAppDistributionMethodPUnknownFutureValue is a pointer to TeamsAppDistributionMethodVUnknownFutureValue + TeamsAppDistributionMethodPUnknownFutureValue = &_TeamsAppDistributionMethodPUnknownFutureValue +) + +var ( + _TeamsAppDistributionMethodPStore = TeamsAppDistributionMethodVStore + _TeamsAppDistributionMethodPOrganization = TeamsAppDistributionMethodVOrganization + _TeamsAppDistributionMethodPSideloaded = TeamsAppDistributionMethodVSideloaded + _TeamsAppDistributionMethodPUnknownFutureValue = TeamsAppDistributionMethodVUnknownFutureValue +) + +// TeamsAsyncOperationStatus undocumented +type TeamsAsyncOperationStatus string + +const ( + // TeamsAsyncOperationStatusVInvalid undocumented + TeamsAsyncOperationStatusVInvalid TeamsAsyncOperationStatus = "invalid" + // TeamsAsyncOperationStatusVNotStarted undocumented + TeamsAsyncOperationStatusVNotStarted TeamsAsyncOperationStatus = "notStarted" + // TeamsAsyncOperationStatusVInProgress undocumented + TeamsAsyncOperationStatusVInProgress TeamsAsyncOperationStatus = "inProgress" + // TeamsAsyncOperationStatusVSucceeded undocumented + TeamsAsyncOperationStatusVSucceeded TeamsAsyncOperationStatus = "succeeded" + // TeamsAsyncOperationStatusVFailed undocumented + TeamsAsyncOperationStatusVFailed TeamsAsyncOperationStatus = "failed" + // TeamsAsyncOperationStatusVUnknownFutureValue undocumented + TeamsAsyncOperationStatusVUnknownFutureValue TeamsAsyncOperationStatus = "unknownFutureValue" +) + +var ( + // TeamsAsyncOperationStatusPInvalid is a pointer to TeamsAsyncOperationStatusVInvalid + TeamsAsyncOperationStatusPInvalid = &_TeamsAsyncOperationStatusPInvalid + // TeamsAsyncOperationStatusPNotStarted is a pointer to TeamsAsyncOperationStatusVNotStarted + TeamsAsyncOperationStatusPNotStarted = &_TeamsAsyncOperationStatusPNotStarted + // TeamsAsyncOperationStatusPInProgress is a pointer to TeamsAsyncOperationStatusVInProgress + TeamsAsyncOperationStatusPInProgress = &_TeamsAsyncOperationStatusPInProgress + // TeamsAsyncOperationStatusPSucceeded is a pointer to TeamsAsyncOperationStatusVSucceeded + TeamsAsyncOperationStatusPSucceeded = &_TeamsAsyncOperationStatusPSucceeded + // TeamsAsyncOperationStatusPFailed is a pointer to TeamsAsyncOperationStatusVFailed + TeamsAsyncOperationStatusPFailed = &_TeamsAsyncOperationStatusPFailed + // TeamsAsyncOperationStatusPUnknownFutureValue is a pointer to TeamsAsyncOperationStatusVUnknownFutureValue + TeamsAsyncOperationStatusPUnknownFutureValue = &_TeamsAsyncOperationStatusPUnknownFutureValue +) + +var ( + _TeamsAsyncOperationStatusPInvalid = TeamsAsyncOperationStatusVInvalid + _TeamsAsyncOperationStatusPNotStarted = TeamsAsyncOperationStatusVNotStarted + _TeamsAsyncOperationStatusPInProgress = TeamsAsyncOperationStatusVInProgress + _TeamsAsyncOperationStatusPSucceeded = TeamsAsyncOperationStatusVSucceeded + _TeamsAsyncOperationStatusPFailed = TeamsAsyncOperationStatusVFailed + _TeamsAsyncOperationStatusPUnknownFutureValue = TeamsAsyncOperationStatusVUnknownFutureValue +) + +// TeamsAsyncOperationType undocumented +type TeamsAsyncOperationType string + +const ( + // TeamsAsyncOperationTypeVInvalid undocumented + TeamsAsyncOperationTypeVInvalid TeamsAsyncOperationType = "invalid" + // TeamsAsyncOperationTypeVCloneTeam undocumented + TeamsAsyncOperationTypeVCloneTeam TeamsAsyncOperationType = "cloneTeam" + // TeamsAsyncOperationTypeVArchiveTeam undocumented + TeamsAsyncOperationTypeVArchiveTeam TeamsAsyncOperationType = "archiveTeam" + // TeamsAsyncOperationTypeVUnarchiveTeam undocumented + TeamsAsyncOperationTypeVUnarchiveTeam TeamsAsyncOperationType = "unarchiveTeam" + // TeamsAsyncOperationTypeVCreateTeam undocumented + TeamsAsyncOperationTypeVCreateTeam TeamsAsyncOperationType = "createTeam" + // TeamsAsyncOperationTypeVUnknownFutureValue undocumented + TeamsAsyncOperationTypeVUnknownFutureValue TeamsAsyncOperationType = "unknownFutureValue" +) + +var ( + // TeamsAsyncOperationTypePInvalid is a pointer to TeamsAsyncOperationTypeVInvalid + TeamsAsyncOperationTypePInvalid = &_TeamsAsyncOperationTypePInvalid + // TeamsAsyncOperationTypePCloneTeam is a pointer to TeamsAsyncOperationTypeVCloneTeam + TeamsAsyncOperationTypePCloneTeam = &_TeamsAsyncOperationTypePCloneTeam + // TeamsAsyncOperationTypePArchiveTeam is a pointer to TeamsAsyncOperationTypeVArchiveTeam + TeamsAsyncOperationTypePArchiveTeam = &_TeamsAsyncOperationTypePArchiveTeam + // TeamsAsyncOperationTypePUnarchiveTeam is a pointer to TeamsAsyncOperationTypeVUnarchiveTeam + TeamsAsyncOperationTypePUnarchiveTeam = &_TeamsAsyncOperationTypePUnarchiveTeam + // TeamsAsyncOperationTypePCreateTeam is a pointer to TeamsAsyncOperationTypeVCreateTeam + TeamsAsyncOperationTypePCreateTeam = &_TeamsAsyncOperationTypePCreateTeam + // TeamsAsyncOperationTypePUnknownFutureValue is a pointer to TeamsAsyncOperationTypeVUnknownFutureValue + TeamsAsyncOperationTypePUnknownFutureValue = &_TeamsAsyncOperationTypePUnknownFutureValue +) + +var ( + _TeamsAsyncOperationTypePInvalid = TeamsAsyncOperationTypeVInvalid + _TeamsAsyncOperationTypePCloneTeam = TeamsAsyncOperationTypeVCloneTeam + _TeamsAsyncOperationTypePArchiveTeam = TeamsAsyncOperationTypeVArchiveTeam + _TeamsAsyncOperationTypePUnarchiveTeam = TeamsAsyncOperationTypeVUnarchiveTeam + _TeamsAsyncOperationTypePCreateTeam = TeamsAsyncOperationTypeVCreateTeam + _TeamsAsyncOperationTypePUnknownFutureValue = TeamsAsyncOperationTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go new file mode 100644 index 00000000..28870e61 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go @@ -0,0 +1,182 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ThreatAssessmentContentType undocumented +type ThreatAssessmentContentType string + +const ( + // ThreatAssessmentContentTypeVMail undocumented + ThreatAssessmentContentTypeVMail ThreatAssessmentContentType = "mail" + // ThreatAssessmentContentTypeVURL undocumented + ThreatAssessmentContentTypeVURL ThreatAssessmentContentType = "url" + // ThreatAssessmentContentTypeVFile undocumented + ThreatAssessmentContentTypeVFile ThreatAssessmentContentType = "file" +) + +var ( + // ThreatAssessmentContentTypePMail is a pointer to ThreatAssessmentContentTypeVMail + ThreatAssessmentContentTypePMail = &_ThreatAssessmentContentTypePMail + // ThreatAssessmentContentTypePURL is a pointer to ThreatAssessmentContentTypeVURL + ThreatAssessmentContentTypePURL = &_ThreatAssessmentContentTypePURL + // ThreatAssessmentContentTypePFile is a pointer to ThreatAssessmentContentTypeVFile + ThreatAssessmentContentTypePFile = &_ThreatAssessmentContentTypePFile +) + +var ( + _ThreatAssessmentContentTypePMail = ThreatAssessmentContentTypeVMail + _ThreatAssessmentContentTypePURL = ThreatAssessmentContentTypeVURL + _ThreatAssessmentContentTypePFile = ThreatAssessmentContentTypeVFile +) + +// ThreatAssessmentRequestPivotProperty undocumented +type ThreatAssessmentRequestPivotProperty string + +const ( + // ThreatAssessmentRequestPivotPropertyVThreatCategory undocumented + ThreatAssessmentRequestPivotPropertyVThreatCategory ThreatAssessmentRequestPivotProperty = "threatCategory" + // ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason undocumented + ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason ThreatAssessmentRequestPivotProperty = "mailDestinationRoutingReason" +) + +var ( + // ThreatAssessmentRequestPivotPropertyPThreatCategory is a pointer to ThreatAssessmentRequestPivotPropertyVThreatCategory + ThreatAssessmentRequestPivotPropertyPThreatCategory = &_ThreatAssessmentRequestPivotPropertyPThreatCategory + // ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason is a pointer to ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason + ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason = &_ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason +) + +var ( + _ThreatAssessmentRequestPivotPropertyPThreatCategory = ThreatAssessmentRequestPivotPropertyVThreatCategory + _ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason = ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason +) + +// ThreatAssessmentRequestSource undocumented +type ThreatAssessmentRequestSource string + +const ( + // ThreatAssessmentRequestSourceVUndefined undocumented + ThreatAssessmentRequestSourceVUndefined ThreatAssessmentRequestSource = "undefined" + // ThreatAssessmentRequestSourceVUser undocumented + ThreatAssessmentRequestSourceVUser ThreatAssessmentRequestSource = "user" + // ThreatAssessmentRequestSourceVAdministrator undocumented + ThreatAssessmentRequestSourceVAdministrator ThreatAssessmentRequestSource = "administrator" +) + +var ( + // ThreatAssessmentRequestSourcePUndefined is a pointer to ThreatAssessmentRequestSourceVUndefined + ThreatAssessmentRequestSourcePUndefined = &_ThreatAssessmentRequestSourcePUndefined + // ThreatAssessmentRequestSourcePUser is a pointer to ThreatAssessmentRequestSourceVUser + ThreatAssessmentRequestSourcePUser = &_ThreatAssessmentRequestSourcePUser + // ThreatAssessmentRequestSourcePAdministrator is a pointer to ThreatAssessmentRequestSourceVAdministrator + ThreatAssessmentRequestSourcePAdministrator = &_ThreatAssessmentRequestSourcePAdministrator +) + +var ( + _ThreatAssessmentRequestSourcePUndefined = ThreatAssessmentRequestSourceVUndefined + _ThreatAssessmentRequestSourcePUser = ThreatAssessmentRequestSourceVUser + _ThreatAssessmentRequestSourcePAdministrator = ThreatAssessmentRequestSourceVAdministrator +) + +// ThreatAssessmentResultType undocumented +type ThreatAssessmentResultType string + +const ( + // ThreatAssessmentResultTypeVCheckPolicy undocumented + ThreatAssessmentResultTypeVCheckPolicy ThreatAssessmentResultType = "checkPolicy" + // ThreatAssessmentResultTypeVRescan undocumented + ThreatAssessmentResultTypeVRescan ThreatAssessmentResultType = "rescan" + // ThreatAssessmentResultTypeVUnknownFutureValue undocumented + ThreatAssessmentResultTypeVUnknownFutureValue ThreatAssessmentResultType = "unknownFutureValue" +) + +var ( + // ThreatAssessmentResultTypePCheckPolicy is a pointer to ThreatAssessmentResultTypeVCheckPolicy + ThreatAssessmentResultTypePCheckPolicy = &_ThreatAssessmentResultTypePCheckPolicy + // ThreatAssessmentResultTypePRescan is a pointer to ThreatAssessmentResultTypeVRescan + ThreatAssessmentResultTypePRescan = &_ThreatAssessmentResultTypePRescan + // ThreatAssessmentResultTypePUnknownFutureValue is a pointer to ThreatAssessmentResultTypeVUnknownFutureValue + ThreatAssessmentResultTypePUnknownFutureValue = &_ThreatAssessmentResultTypePUnknownFutureValue +) + +var ( + _ThreatAssessmentResultTypePCheckPolicy = ThreatAssessmentResultTypeVCheckPolicy + _ThreatAssessmentResultTypePRescan = ThreatAssessmentResultTypeVRescan + _ThreatAssessmentResultTypePUnknownFutureValue = ThreatAssessmentResultTypeVUnknownFutureValue +) + +// ThreatAssessmentStatus undocumented +type ThreatAssessmentStatus string + +const ( + // ThreatAssessmentStatusVPending undocumented + ThreatAssessmentStatusVPending ThreatAssessmentStatus = "pending" + // ThreatAssessmentStatusVCompleted undocumented + ThreatAssessmentStatusVCompleted ThreatAssessmentStatus = "completed" +) + +var ( + // ThreatAssessmentStatusPPending is a pointer to ThreatAssessmentStatusVPending + ThreatAssessmentStatusPPending = &_ThreatAssessmentStatusPPending + // ThreatAssessmentStatusPCompleted is a pointer to ThreatAssessmentStatusVCompleted + ThreatAssessmentStatusPCompleted = &_ThreatAssessmentStatusPCompleted +) + +var ( + _ThreatAssessmentStatusPPending = ThreatAssessmentStatusVPending + _ThreatAssessmentStatusPCompleted = ThreatAssessmentStatusVCompleted +) + +// ThreatCategory undocumented +type ThreatCategory string + +const ( + // ThreatCategoryVSpam undocumented + ThreatCategoryVSpam ThreatCategory = "spam" + // ThreatCategoryVPhishing undocumented + ThreatCategoryVPhishing ThreatCategory = "phishing" + // ThreatCategoryVMalware undocumented + ThreatCategoryVMalware ThreatCategory = "malware" + // ThreatCategoryVUnknownFutureValue undocumented + ThreatCategoryVUnknownFutureValue ThreatCategory = "unknownFutureValue" +) + +var ( + // ThreatCategoryPSpam is a pointer to ThreatCategoryVSpam + ThreatCategoryPSpam = &_ThreatCategoryPSpam + // ThreatCategoryPPhishing is a pointer to ThreatCategoryVPhishing + ThreatCategoryPPhishing = &_ThreatCategoryPPhishing + // ThreatCategoryPMalware is a pointer to ThreatCategoryVMalware + ThreatCategoryPMalware = &_ThreatCategoryPMalware + // ThreatCategoryPUnknownFutureValue is a pointer to ThreatCategoryVUnknownFutureValue + ThreatCategoryPUnknownFutureValue = &_ThreatCategoryPUnknownFutureValue +) + +var ( + _ThreatCategoryPSpam = ThreatCategoryVSpam + _ThreatCategoryPPhishing = ThreatCategoryVPhishing + _ThreatCategoryPMalware = ThreatCategoryVMalware + _ThreatCategoryPUnknownFutureValue = ThreatCategoryVUnknownFutureValue +) + +// ThreatExpectedAssessment undocumented +type ThreatExpectedAssessment string + +const ( + // ThreatExpectedAssessmentVBlock undocumented + ThreatExpectedAssessmentVBlock ThreatExpectedAssessment = "block" + // ThreatExpectedAssessmentVUnblock undocumented + ThreatExpectedAssessmentVUnblock ThreatExpectedAssessment = "unblock" +) + +var ( + // ThreatExpectedAssessmentPBlock is a pointer to ThreatExpectedAssessmentVBlock + ThreatExpectedAssessmentPBlock = &_ThreatExpectedAssessmentPBlock + // ThreatExpectedAssessmentPUnblock is a pointer to ThreatExpectedAssessmentVUnblock + ThreatExpectedAssessmentPUnblock = &_ThreatExpectedAssessmentPUnblock +) + +var ( + _ThreatExpectedAssessmentPBlock = ThreatExpectedAssessmentVBlock + _ThreatExpectedAssessmentPUnblock = ThreatExpectedAssessmentVUnblock +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go new file mode 100644 index 00000000..58e39a2f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TiAction undocumented +type TiAction string + +const ( + // TiActionVUnknown undocumented + TiActionVUnknown TiAction = "unknown" + // TiActionVAllow undocumented + TiActionVAllow TiAction = "allow" + // TiActionVBlock undocumented + TiActionVBlock TiAction = "block" + // TiActionVAlert undocumented + TiActionVAlert TiAction = "alert" + // TiActionVUnknownFutureValue undocumented + TiActionVUnknownFutureValue TiAction = "unknownFutureValue" +) + +var ( + // TiActionPUnknown is a pointer to TiActionVUnknown + TiActionPUnknown = &_TiActionPUnknown + // TiActionPAllow is a pointer to TiActionVAllow + TiActionPAllow = &_TiActionPAllow + // TiActionPBlock is a pointer to TiActionVBlock + TiActionPBlock = &_TiActionPBlock + // TiActionPAlert is a pointer to TiActionVAlert + TiActionPAlert = &_TiActionPAlert + // TiActionPUnknownFutureValue is a pointer to TiActionVUnknownFutureValue + TiActionPUnknownFutureValue = &_TiActionPUnknownFutureValue +) + +var ( + _TiActionPUnknown = TiActionVUnknown + _TiActionPAllow = TiActionVAllow + _TiActionPBlock = TiActionVBlock + _TiActionPAlert = TiActionVAlert + _TiActionPUnknownFutureValue = TiActionVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go new file mode 100644 index 00000000..3a7f5f5c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go @@ -0,0 +1,147 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TimeOffReasonIconType undocumented +type TimeOffReasonIconType string + +const ( + // TimeOffReasonIconTypeVNone undocumented + TimeOffReasonIconTypeVNone TimeOffReasonIconType = "none" + // TimeOffReasonIconTypeVCar undocumented + TimeOffReasonIconTypeVCar TimeOffReasonIconType = "car" + // TimeOffReasonIconTypeVCalendar undocumented + TimeOffReasonIconTypeVCalendar TimeOffReasonIconType = "calendar" + // TimeOffReasonIconTypeVRunning undocumented + TimeOffReasonIconTypeVRunning TimeOffReasonIconType = "running" + // TimeOffReasonIconTypeVPlane undocumented + TimeOffReasonIconTypeVPlane TimeOffReasonIconType = "plane" + // TimeOffReasonIconTypeVFirstAid undocumented + TimeOffReasonIconTypeVFirstAid TimeOffReasonIconType = "firstAid" + // TimeOffReasonIconTypeVDoctor undocumented + TimeOffReasonIconTypeVDoctor TimeOffReasonIconType = "doctor" + // TimeOffReasonIconTypeVNotWorking undocumented + TimeOffReasonIconTypeVNotWorking TimeOffReasonIconType = "notWorking" + // TimeOffReasonIconTypeVClock undocumented + TimeOffReasonIconTypeVClock TimeOffReasonIconType = "clock" + // TimeOffReasonIconTypeVJuryDuty undocumented + TimeOffReasonIconTypeVJuryDuty TimeOffReasonIconType = "juryDuty" + // TimeOffReasonIconTypeVGlobe undocumented + TimeOffReasonIconTypeVGlobe TimeOffReasonIconType = "globe" + // TimeOffReasonIconTypeVCup undocumented + TimeOffReasonIconTypeVCup TimeOffReasonIconType = "cup" + // TimeOffReasonIconTypeVPhone undocumented + TimeOffReasonIconTypeVPhone TimeOffReasonIconType = "phone" + // TimeOffReasonIconTypeVWeather undocumented + TimeOffReasonIconTypeVWeather TimeOffReasonIconType = "weather" + // TimeOffReasonIconTypeVUmbrella undocumented + TimeOffReasonIconTypeVUmbrella TimeOffReasonIconType = "umbrella" + // TimeOffReasonIconTypeVPiggyBank undocumented + TimeOffReasonIconTypeVPiggyBank TimeOffReasonIconType = "piggyBank" + // TimeOffReasonIconTypeVDog undocumented + TimeOffReasonIconTypeVDog TimeOffReasonIconType = "dog" + // TimeOffReasonIconTypeVCake undocumented + TimeOffReasonIconTypeVCake TimeOffReasonIconType = "cake" + // TimeOffReasonIconTypeVTrafficCone undocumented + TimeOffReasonIconTypeVTrafficCone TimeOffReasonIconType = "trafficCone" + // TimeOffReasonIconTypeVPin undocumented + TimeOffReasonIconTypeVPin TimeOffReasonIconType = "pin" + // TimeOffReasonIconTypeVSunny undocumented + TimeOffReasonIconTypeVSunny TimeOffReasonIconType = "sunny" + // TimeOffReasonIconTypeVUnknownFutureValue undocumented + TimeOffReasonIconTypeVUnknownFutureValue TimeOffReasonIconType = "unknownFutureValue" +) + +var ( + // TimeOffReasonIconTypePNone is a pointer to TimeOffReasonIconTypeVNone + TimeOffReasonIconTypePNone = &_TimeOffReasonIconTypePNone + // TimeOffReasonIconTypePCar is a pointer to TimeOffReasonIconTypeVCar + TimeOffReasonIconTypePCar = &_TimeOffReasonIconTypePCar + // TimeOffReasonIconTypePCalendar is a pointer to TimeOffReasonIconTypeVCalendar + TimeOffReasonIconTypePCalendar = &_TimeOffReasonIconTypePCalendar + // TimeOffReasonIconTypePRunning is a pointer to TimeOffReasonIconTypeVRunning + TimeOffReasonIconTypePRunning = &_TimeOffReasonIconTypePRunning + // TimeOffReasonIconTypePPlane is a pointer to TimeOffReasonIconTypeVPlane + TimeOffReasonIconTypePPlane = &_TimeOffReasonIconTypePPlane + // TimeOffReasonIconTypePFirstAid is a pointer to TimeOffReasonIconTypeVFirstAid + TimeOffReasonIconTypePFirstAid = &_TimeOffReasonIconTypePFirstAid + // TimeOffReasonIconTypePDoctor is a pointer to TimeOffReasonIconTypeVDoctor + TimeOffReasonIconTypePDoctor = &_TimeOffReasonIconTypePDoctor + // TimeOffReasonIconTypePNotWorking is a pointer to TimeOffReasonIconTypeVNotWorking + TimeOffReasonIconTypePNotWorking = &_TimeOffReasonIconTypePNotWorking + // TimeOffReasonIconTypePClock is a pointer to TimeOffReasonIconTypeVClock + TimeOffReasonIconTypePClock = &_TimeOffReasonIconTypePClock + // TimeOffReasonIconTypePJuryDuty is a pointer to TimeOffReasonIconTypeVJuryDuty + TimeOffReasonIconTypePJuryDuty = &_TimeOffReasonIconTypePJuryDuty + // TimeOffReasonIconTypePGlobe is a pointer to TimeOffReasonIconTypeVGlobe + TimeOffReasonIconTypePGlobe = &_TimeOffReasonIconTypePGlobe + // TimeOffReasonIconTypePCup is a pointer to TimeOffReasonIconTypeVCup + TimeOffReasonIconTypePCup = &_TimeOffReasonIconTypePCup + // TimeOffReasonIconTypePPhone is a pointer to TimeOffReasonIconTypeVPhone + TimeOffReasonIconTypePPhone = &_TimeOffReasonIconTypePPhone + // TimeOffReasonIconTypePWeather is a pointer to TimeOffReasonIconTypeVWeather + TimeOffReasonIconTypePWeather = &_TimeOffReasonIconTypePWeather + // TimeOffReasonIconTypePUmbrella is a pointer to TimeOffReasonIconTypeVUmbrella + TimeOffReasonIconTypePUmbrella = &_TimeOffReasonIconTypePUmbrella + // TimeOffReasonIconTypePPiggyBank is a pointer to TimeOffReasonIconTypeVPiggyBank + TimeOffReasonIconTypePPiggyBank = &_TimeOffReasonIconTypePPiggyBank + // TimeOffReasonIconTypePDog is a pointer to TimeOffReasonIconTypeVDog + TimeOffReasonIconTypePDog = &_TimeOffReasonIconTypePDog + // TimeOffReasonIconTypePCake is a pointer to TimeOffReasonIconTypeVCake + TimeOffReasonIconTypePCake = &_TimeOffReasonIconTypePCake + // TimeOffReasonIconTypePTrafficCone is a pointer to TimeOffReasonIconTypeVTrafficCone + TimeOffReasonIconTypePTrafficCone = &_TimeOffReasonIconTypePTrafficCone + // TimeOffReasonIconTypePPin is a pointer to TimeOffReasonIconTypeVPin + TimeOffReasonIconTypePPin = &_TimeOffReasonIconTypePPin + // TimeOffReasonIconTypePSunny is a pointer to TimeOffReasonIconTypeVSunny + TimeOffReasonIconTypePSunny = &_TimeOffReasonIconTypePSunny + // TimeOffReasonIconTypePUnknownFutureValue is a pointer to TimeOffReasonIconTypeVUnknownFutureValue + TimeOffReasonIconTypePUnknownFutureValue = &_TimeOffReasonIconTypePUnknownFutureValue +) + +var ( + _TimeOffReasonIconTypePNone = TimeOffReasonIconTypeVNone + _TimeOffReasonIconTypePCar = TimeOffReasonIconTypeVCar + _TimeOffReasonIconTypePCalendar = TimeOffReasonIconTypeVCalendar + _TimeOffReasonIconTypePRunning = TimeOffReasonIconTypeVRunning + _TimeOffReasonIconTypePPlane = TimeOffReasonIconTypeVPlane + _TimeOffReasonIconTypePFirstAid = TimeOffReasonIconTypeVFirstAid + _TimeOffReasonIconTypePDoctor = TimeOffReasonIconTypeVDoctor + _TimeOffReasonIconTypePNotWorking = TimeOffReasonIconTypeVNotWorking + _TimeOffReasonIconTypePClock = TimeOffReasonIconTypeVClock + _TimeOffReasonIconTypePJuryDuty = TimeOffReasonIconTypeVJuryDuty + _TimeOffReasonIconTypePGlobe = TimeOffReasonIconTypeVGlobe + _TimeOffReasonIconTypePCup = TimeOffReasonIconTypeVCup + _TimeOffReasonIconTypePPhone = TimeOffReasonIconTypeVPhone + _TimeOffReasonIconTypePWeather = TimeOffReasonIconTypeVWeather + _TimeOffReasonIconTypePUmbrella = TimeOffReasonIconTypeVUmbrella + _TimeOffReasonIconTypePPiggyBank = TimeOffReasonIconTypeVPiggyBank + _TimeOffReasonIconTypePDog = TimeOffReasonIconTypeVDog + _TimeOffReasonIconTypePCake = TimeOffReasonIconTypeVCake + _TimeOffReasonIconTypePTrafficCone = TimeOffReasonIconTypeVTrafficCone + _TimeOffReasonIconTypePPin = TimeOffReasonIconTypeVPin + _TimeOffReasonIconTypePSunny = TimeOffReasonIconTypeVSunny + _TimeOffReasonIconTypePUnknownFutureValue = TimeOffReasonIconTypeVUnknownFutureValue +) + +// TimeZoneStandard undocumented +type TimeZoneStandard string + +const ( + // TimeZoneStandardVWindows undocumented + TimeZoneStandardVWindows TimeZoneStandard = "windows" + // TimeZoneStandardVIana undocumented + TimeZoneStandardVIana TimeZoneStandard = "iana" +) + +var ( + // TimeZoneStandardPWindows is a pointer to TimeZoneStandardVWindows + TimeZoneStandardPWindows = &_TimeZoneStandardPWindows + // TimeZoneStandardPIana is a pointer to TimeZoneStandardVIana + TimeZoneStandardPIana = &_TimeZoneStandardPIana +) + +var ( + _TimeZoneStandardPWindows = TimeZoneStandardVWindows + _TimeZoneStandardPIana = TimeZoneStandardVIana +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go new file mode 100644 index 00000000..1db29f16 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TlpLevel undocumented +type TlpLevel string + +const ( + // TlpLevelVUnknown undocumented + TlpLevelVUnknown TlpLevel = "unknown" + // TlpLevelVWhite undocumented + TlpLevelVWhite TlpLevel = "white" + // TlpLevelVGreen undocumented + TlpLevelVGreen TlpLevel = "green" + // TlpLevelVAmber undocumented + TlpLevelVAmber TlpLevel = "amber" + // TlpLevelVRed undocumented + TlpLevelVRed TlpLevel = "red" + // TlpLevelVUnknownFutureValue undocumented + TlpLevelVUnknownFutureValue TlpLevel = "unknownFutureValue" +) + +var ( + // TlpLevelPUnknown is a pointer to TlpLevelVUnknown + TlpLevelPUnknown = &_TlpLevelPUnknown + // TlpLevelPWhite is a pointer to TlpLevelVWhite + TlpLevelPWhite = &_TlpLevelPWhite + // TlpLevelPGreen is a pointer to TlpLevelVGreen + TlpLevelPGreen = &_TlpLevelPGreen + // TlpLevelPAmber is a pointer to TlpLevelVAmber + TlpLevelPAmber = &_TlpLevelPAmber + // TlpLevelPRed is a pointer to TlpLevelVRed + TlpLevelPRed = &_TlpLevelPRed + // TlpLevelPUnknownFutureValue is a pointer to TlpLevelVUnknownFutureValue + TlpLevelPUnknownFutureValue = &_TlpLevelPUnknownFutureValue +) + +var ( + _TlpLevelPUnknown = TlpLevelVUnknown + _TlpLevelPWhite = TlpLevelVWhite + _TlpLevelPGreen = TlpLevelVGreen + _TlpLevelPAmber = TlpLevelVAmber + _TlpLevelPRed = TlpLevelVRed + _TlpLevelPUnknownFutureValue = TlpLevelVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go new file mode 100644 index 00000000..b94830fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TokenIssuerType undocumented +type TokenIssuerType string + +const ( + // TokenIssuerTypeVAzureAD undocumented + TokenIssuerTypeVAzureAD TokenIssuerType = "AzureAD" + // TokenIssuerTypeVADFederationServices undocumented + TokenIssuerTypeVADFederationServices TokenIssuerType = "ADFederationServices" + // TokenIssuerTypeVUnknownFutureValue undocumented + TokenIssuerTypeVUnknownFutureValue TokenIssuerType = "UnknownFutureValue" +) + +var ( + // TokenIssuerTypePAzureAD is a pointer to TokenIssuerTypeVAzureAD + TokenIssuerTypePAzureAD = &_TokenIssuerTypePAzureAD + // TokenIssuerTypePADFederationServices is a pointer to TokenIssuerTypeVADFederationServices + TokenIssuerTypePADFederationServices = &_TokenIssuerTypePADFederationServices + // TokenIssuerTypePUnknownFutureValue is a pointer to TokenIssuerTypeVUnknownFutureValue + TokenIssuerTypePUnknownFutureValue = &_TokenIssuerTypePUnknownFutureValue +) + +var ( + _TokenIssuerTypePAzureAD = TokenIssuerTypeVAzureAD + _TokenIssuerTypePADFederationServices = TokenIssuerTypeVADFederationServices + _TokenIssuerTypePUnknownFutureValue = TokenIssuerTypeVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go new file mode 100644 index 00000000..869ac69a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go @@ -0,0 +1,100 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Tone undocumented +type Tone string + +const ( + // ToneVTone0 undocumented + ToneVTone0 Tone = "tone0" + // ToneVTone1 undocumented + ToneVTone1 Tone = "tone1" + // ToneVTone2 undocumented + ToneVTone2 Tone = "tone2" + // ToneVTone3 undocumented + ToneVTone3 Tone = "tone3" + // ToneVTone4 undocumented + ToneVTone4 Tone = "tone4" + // ToneVTone5 undocumented + ToneVTone5 Tone = "tone5" + // ToneVTone6 undocumented + ToneVTone6 Tone = "tone6" + // ToneVTone7 undocumented + ToneVTone7 Tone = "tone7" + // ToneVTone8 undocumented + ToneVTone8 Tone = "tone8" + // ToneVTone9 undocumented + ToneVTone9 Tone = "tone9" + // ToneVStar undocumented + ToneVStar Tone = "star" + // ToneVPound undocumented + ToneVPound Tone = "pound" + // ToneVA undocumented + ToneVA Tone = "a" + // ToneVB undocumented + ToneVB Tone = "b" + // ToneVC undocumented + ToneVC Tone = "c" + // ToneVD undocumented + ToneVD Tone = "d" + // ToneVFlash undocumented + ToneVFlash Tone = "flash" +) + +var ( + // TonePTone0 is a pointer to ToneVTone0 + TonePTone0 = &_TonePTone0 + // TonePTone1 is a pointer to ToneVTone1 + TonePTone1 = &_TonePTone1 + // TonePTone2 is a pointer to ToneVTone2 + TonePTone2 = &_TonePTone2 + // TonePTone3 is a pointer to ToneVTone3 + TonePTone3 = &_TonePTone3 + // TonePTone4 is a pointer to ToneVTone4 + TonePTone4 = &_TonePTone4 + // TonePTone5 is a pointer to ToneVTone5 + TonePTone5 = &_TonePTone5 + // TonePTone6 is a pointer to ToneVTone6 + TonePTone6 = &_TonePTone6 + // TonePTone7 is a pointer to ToneVTone7 + TonePTone7 = &_TonePTone7 + // TonePTone8 is a pointer to ToneVTone8 + TonePTone8 = &_TonePTone8 + // TonePTone9 is a pointer to ToneVTone9 + TonePTone9 = &_TonePTone9 + // TonePStar is a pointer to ToneVStar + TonePStar = &_TonePStar + // TonePPound is a pointer to ToneVPound + TonePPound = &_TonePPound + // TonePA is a pointer to ToneVA + TonePA = &_TonePA + // TonePB is a pointer to ToneVB + TonePB = &_TonePB + // TonePC is a pointer to ToneVC + TonePC = &_TonePC + // TonePD is a pointer to ToneVD + TonePD = &_TonePD + // TonePFlash is a pointer to ToneVFlash + TonePFlash = &_TonePFlash +) + +var ( + _TonePTone0 = ToneVTone0 + _TonePTone1 = ToneVTone1 + _TonePTone2 = ToneVTone2 + _TonePTone3 = ToneVTone3 + _TonePTone4 = ToneVTone4 + _TonePTone5 = ToneVTone5 + _TonePTone6 = ToneVTone6 + _TonePTone7 = ToneVTone7 + _TonePTone8 = ToneVTone8 + _TonePTone9 = ToneVTone9 + _TonePStar = ToneVStar + _TonePPound = ToneVPound + _TonePA = ToneVA + _TonePB = ToneVB + _TonePC = ToneVC + _TonePD = ToneVD + _TonePFlash = ToneVFlash +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go new file mode 100644 index 00000000..6eb13f7e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go @@ -0,0 +1,20 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UnaryManagementConditionExpressionOperatorType undocumented +type UnaryManagementConditionExpressionOperatorType string + +const ( + // UnaryManagementConditionExpressionOperatorTypeVNot undocumented + UnaryManagementConditionExpressionOperatorTypeVNot UnaryManagementConditionExpressionOperatorType = "not" +) + +var ( + // UnaryManagementConditionExpressionOperatorTypePNot is a pointer to UnaryManagementConditionExpressionOperatorTypeVNot + UnaryManagementConditionExpressionOperatorTypePNot = &_UnaryManagementConditionExpressionOperatorTypePNot +) + +var ( + _UnaryManagementConditionExpressionOperatorTypePNot = UnaryManagementConditionExpressionOperatorTypeVNot +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go new file mode 100644 index 00000000..398bb878 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UpdateClassification undocumented +type UpdateClassification string + +const ( + // UpdateClassificationVUserDefined undocumented + UpdateClassificationVUserDefined UpdateClassification = "userDefined" + // UpdateClassificationVRecommendedAndImportant undocumented + UpdateClassificationVRecommendedAndImportant UpdateClassification = "recommendedAndImportant" + // UpdateClassificationVImportant undocumented + UpdateClassificationVImportant UpdateClassification = "important" + // UpdateClassificationVNone undocumented + UpdateClassificationVNone UpdateClassification = "none" +) + +var ( + // UpdateClassificationPUserDefined is a pointer to UpdateClassificationVUserDefined + UpdateClassificationPUserDefined = &_UpdateClassificationPUserDefined + // UpdateClassificationPRecommendedAndImportant is a pointer to UpdateClassificationVRecommendedAndImportant + UpdateClassificationPRecommendedAndImportant = &_UpdateClassificationPRecommendedAndImportant + // UpdateClassificationPImportant is a pointer to UpdateClassificationVImportant + UpdateClassificationPImportant = &_UpdateClassificationPImportant + // UpdateClassificationPNone is a pointer to UpdateClassificationVNone + UpdateClassificationPNone = &_UpdateClassificationPNone +) + +var ( + _UpdateClassificationPUserDefined = UpdateClassificationVUserDefined + _UpdateClassificationPRecommendedAndImportant = UpdateClassificationVRecommendedAndImportant + _UpdateClassificationPImportant = UpdateClassificationVImportant + _UpdateClassificationPNone = UpdateClassificationVNone +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go new file mode 100644 index 00000000..54166ad6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go @@ -0,0 +1,70 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UsageAuthMethod undocumented +type UsageAuthMethod string + +const ( + // UsageAuthMethodVEmail undocumented + UsageAuthMethodVEmail UsageAuthMethod = "email" + // UsageAuthMethodVMobileSMS undocumented + UsageAuthMethodVMobileSMS UsageAuthMethod = "mobileSMS" + // UsageAuthMethodVMobileCall undocumented + UsageAuthMethodVMobileCall UsageAuthMethod = "mobileCall" + // UsageAuthMethodVOfficePhone undocumented + UsageAuthMethodVOfficePhone UsageAuthMethod = "officePhone" + // UsageAuthMethodVSecurityQuestion undocumented + UsageAuthMethodVSecurityQuestion UsageAuthMethod = "securityQuestion" + // UsageAuthMethodVAppNotification undocumented + UsageAuthMethodVAppNotification UsageAuthMethod = "appNotification" + // UsageAuthMethodVAppCode undocumented + UsageAuthMethodVAppCode UsageAuthMethod = "appCode" + // UsageAuthMethodVAlternateMobileCall undocumented + UsageAuthMethodVAlternateMobileCall UsageAuthMethod = "alternateMobileCall" + // UsageAuthMethodVFido undocumented + UsageAuthMethodVFido UsageAuthMethod = "fido" + // UsageAuthMethodVAppPassword undocumented + UsageAuthMethodVAppPassword UsageAuthMethod = "appPassword" + // UsageAuthMethodVUnknownFutureValue undocumented + UsageAuthMethodVUnknownFutureValue UsageAuthMethod = "unknownFutureValue" +) + +var ( + // UsageAuthMethodPEmail is a pointer to UsageAuthMethodVEmail + UsageAuthMethodPEmail = &_UsageAuthMethodPEmail + // UsageAuthMethodPMobileSMS is a pointer to UsageAuthMethodVMobileSMS + UsageAuthMethodPMobileSMS = &_UsageAuthMethodPMobileSMS + // UsageAuthMethodPMobileCall is a pointer to UsageAuthMethodVMobileCall + UsageAuthMethodPMobileCall = &_UsageAuthMethodPMobileCall + // UsageAuthMethodPOfficePhone is a pointer to UsageAuthMethodVOfficePhone + UsageAuthMethodPOfficePhone = &_UsageAuthMethodPOfficePhone + // UsageAuthMethodPSecurityQuestion is a pointer to UsageAuthMethodVSecurityQuestion + UsageAuthMethodPSecurityQuestion = &_UsageAuthMethodPSecurityQuestion + // UsageAuthMethodPAppNotification is a pointer to UsageAuthMethodVAppNotification + UsageAuthMethodPAppNotification = &_UsageAuthMethodPAppNotification + // UsageAuthMethodPAppCode is a pointer to UsageAuthMethodVAppCode + UsageAuthMethodPAppCode = &_UsageAuthMethodPAppCode + // UsageAuthMethodPAlternateMobileCall is a pointer to UsageAuthMethodVAlternateMobileCall + UsageAuthMethodPAlternateMobileCall = &_UsageAuthMethodPAlternateMobileCall + // UsageAuthMethodPFido is a pointer to UsageAuthMethodVFido + UsageAuthMethodPFido = &_UsageAuthMethodPFido + // UsageAuthMethodPAppPassword is a pointer to UsageAuthMethodVAppPassword + UsageAuthMethodPAppPassword = &_UsageAuthMethodPAppPassword + // UsageAuthMethodPUnknownFutureValue is a pointer to UsageAuthMethodVUnknownFutureValue + UsageAuthMethodPUnknownFutureValue = &_UsageAuthMethodPUnknownFutureValue +) + +var ( + _UsageAuthMethodPEmail = UsageAuthMethodVEmail + _UsageAuthMethodPMobileSMS = UsageAuthMethodVMobileSMS + _UsageAuthMethodPMobileCall = UsageAuthMethodVMobileCall + _UsageAuthMethodPOfficePhone = UsageAuthMethodVOfficePhone + _UsageAuthMethodPSecurityQuestion = UsageAuthMethodVSecurityQuestion + _UsageAuthMethodPAppNotification = UsageAuthMethodVAppNotification + _UsageAuthMethodPAppCode = UsageAuthMethodVAppCode + _UsageAuthMethodPAlternateMobileCall = UsageAuthMethodVAlternateMobileCall + _UsageAuthMethodPFido = UsageAuthMethodVFido + _UsageAuthMethodPAppPassword = UsageAuthMethodVAppPassword + _UsageAuthMethodPUnknownFutureValue = UsageAuthMethodVUnknownFutureValue +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go new file mode 100644 index 00000000..0cfb656c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go @@ -0,0 +1,363 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UserAccountSecurityType undocumented +type UserAccountSecurityType string + +const ( + // UserAccountSecurityTypeVUnknown undocumented + UserAccountSecurityTypeVUnknown UserAccountSecurityType = "unknown" + // UserAccountSecurityTypeVStandard undocumented + UserAccountSecurityTypeVStandard UserAccountSecurityType = "standard" + // UserAccountSecurityTypeVPower undocumented + UserAccountSecurityTypeVPower UserAccountSecurityType = "power" + // UserAccountSecurityTypeVAdministrator undocumented + UserAccountSecurityTypeVAdministrator UserAccountSecurityType = "administrator" + // UserAccountSecurityTypeVUnknownFutureValue undocumented + UserAccountSecurityTypeVUnknownFutureValue UserAccountSecurityType = "unknownFutureValue" +) + +var ( + // UserAccountSecurityTypePUnknown is a pointer to UserAccountSecurityTypeVUnknown + UserAccountSecurityTypePUnknown = &_UserAccountSecurityTypePUnknown + // UserAccountSecurityTypePStandard is a pointer to UserAccountSecurityTypeVStandard + UserAccountSecurityTypePStandard = &_UserAccountSecurityTypePStandard + // UserAccountSecurityTypePPower is a pointer to UserAccountSecurityTypeVPower + UserAccountSecurityTypePPower = &_UserAccountSecurityTypePPower + // UserAccountSecurityTypePAdministrator is a pointer to UserAccountSecurityTypeVAdministrator + UserAccountSecurityTypePAdministrator = &_UserAccountSecurityTypePAdministrator + // UserAccountSecurityTypePUnknownFutureValue is a pointer to UserAccountSecurityTypeVUnknownFutureValue + UserAccountSecurityTypePUnknownFutureValue = &_UserAccountSecurityTypePUnknownFutureValue +) + +var ( + _UserAccountSecurityTypePUnknown = UserAccountSecurityTypeVUnknown + _UserAccountSecurityTypePStandard = UserAccountSecurityTypeVStandard + _UserAccountSecurityTypePPower = UserAccountSecurityTypeVPower + _UserAccountSecurityTypePAdministrator = UserAccountSecurityTypeVAdministrator + _UserAccountSecurityTypePUnknownFutureValue = UserAccountSecurityTypeVUnknownFutureValue +) + +// UserEmailSource undocumented +type UserEmailSource string + +const ( + // UserEmailSourceVUserPrincipalName undocumented + UserEmailSourceVUserPrincipalName UserEmailSource = "userPrincipalName" + // UserEmailSourceVPrimarySMTPAddress undocumented + UserEmailSourceVPrimarySMTPAddress UserEmailSource = "primarySmtpAddress" +) + +var ( + // UserEmailSourcePUserPrincipalName is a pointer to UserEmailSourceVUserPrincipalName + UserEmailSourcePUserPrincipalName = &_UserEmailSourcePUserPrincipalName + // UserEmailSourcePPrimarySMTPAddress is a pointer to UserEmailSourceVPrimarySMTPAddress + UserEmailSourcePPrimarySMTPAddress = &_UserEmailSourcePPrimarySMTPAddress +) + +var ( + _UserEmailSourcePUserPrincipalName = UserEmailSourceVUserPrincipalName + _UserEmailSourcePPrimarySMTPAddress = UserEmailSourceVPrimarySMTPAddress +) + +// UserExperienceAnalyticsHealthState undocumented +type UserExperienceAnalyticsHealthState string + +const ( + // UserExperienceAnalyticsHealthStateVUnknown undocumented + UserExperienceAnalyticsHealthStateVUnknown UserExperienceAnalyticsHealthState = "unknown" + // UserExperienceAnalyticsHealthStateVInsufficientData undocumented + UserExperienceAnalyticsHealthStateVInsufficientData UserExperienceAnalyticsHealthState = "insufficientData" + // UserExperienceAnalyticsHealthStateVNeedsAttention undocumented + UserExperienceAnalyticsHealthStateVNeedsAttention UserExperienceAnalyticsHealthState = "needsAttention" + // UserExperienceAnalyticsHealthStateVMeetingGoals undocumented + UserExperienceAnalyticsHealthStateVMeetingGoals UserExperienceAnalyticsHealthState = "meetingGoals" +) + +var ( + // UserExperienceAnalyticsHealthStatePUnknown is a pointer to UserExperienceAnalyticsHealthStateVUnknown + UserExperienceAnalyticsHealthStatePUnknown = &_UserExperienceAnalyticsHealthStatePUnknown + // UserExperienceAnalyticsHealthStatePInsufficientData is a pointer to UserExperienceAnalyticsHealthStateVInsufficientData + UserExperienceAnalyticsHealthStatePInsufficientData = &_UserExperienceAnalyticsHealthStatePInsufficientData + // UserExperienceAnalyticsHealthStatePNeedsAttention is a pointer to UserExperienceAnalyticsHealthStateVNeedsAttention + UserExperienceAnalyticsHealthStatePNeedsAttention = &_UserExperienceAnalyticsHealthStatePNeedsAttention + // UserExperienceAnalyticsHealthStatePMeetingGoals is a pointer to UserExperienceAnalyticsHealthStateVMeetingGoals + UserExperienceAnalyticsHealthStatePMeetingGoals = &_UserExperienceAnalyticsHealthStatePMeetingGoals +) + +var ( + _UserExperienceAnalyticsHealthStatePUnknown = UserExperienceAnalyticsHealthStateVUnknown + _UserExperienceAnalyticsHealthStatePInsufficientData = UserExperienceAnalyticsHealthStateVInsufficientData + _UserExperienceAnalyticsHealthStatePNeedsAttention = UserExperienceAnalyticsHealthStateVNeedsAttention + _UserExperienceAnalyticsHealthStatePMeetingGoals = UserExperienceAnalyticsHealthStateVMeetingGoals +) + +// UserExperienceAnalyticsInsightSeverity undocumented +type UserExperienceAnalyticsInsightSeverity string + +const ( + // UserExperienceAnalyticsInsightSeverityVNone undocumented + UserExperienceAnalyticsInsightSeverityVNone UserExperienceAnalyticsInsightSeverity = "none" + // UserExperienceAnalyticsInsightSeverityVInformational undocumented + UserExperienceAnalyticsInsightSeverityVInformational UserExperienceAnalyticsInsightSeverity = "informational" + // UserExperienceAnalyticsInsightSeverityVWarning undocumented + UserExperienceAnalyticsInsightSeverityVWarning UserExperienceAnalyticsInsightSeverity = "warning" + // UserExperienceAnalyticsInsightSeverityVError undocumented + UserExperienceAnalyticsInsightSeverityVError UserExperienceAnalyticsInsightSeverity = "error" +) + +var ( + // UserExperienceAnalyticsInsightSeverityPNone is a pointer to UserExperienceAnalyticsInsightSeverityVNone + UserExperienceAnalyticsInsightSeverityPNone = &_UserExperienceAnalyticsInsightSeverityPNone + // UserExperienceAnalyticsInsightSeverityPInformational is a pointer to UserExperienceAnalyticsInsightSeverityVInformational + UserExperienceAnalyticsInsightSeverityPInformational = &_UserExperienceAnalyticsInsightSeverityPInformational + // UserExperienceAnalyticsInsightSeverityPWarning is a pointer to UserExperienceAnalyticsInsightSeverityVWarning + UserExperienceAnalyticsInsightSeverityPWarning = &_UserExperienceAnalyticsInsightSeverityPWarning + // UserExperienceAnalyticsInsightSeverityPError is a pointer to UserExperienceAnalyticsInsightSeverityVError + UserExperienceAnalyticsInsightSeverityPError = &_UserExperienceAnalyticsInsightSeverityPError +) + +var ( + _UserExperienceAnalyticsInsightSeverityPNone = UserExperienceAnalyticsInsightSeverityVNone + _UserExperienceAnalyticsInsightSeverityPInformational = UserExperienceAnalyticsInsightSeverityVInformational + _UserExperienceAnalyticsInsightSeverityPWarning = UserExperienceAnalyticsInsightSeverityVWarning + _UserExperienceAnalyticsInsightSeverityPError = UserExperienceAnalyticsInsightSeverityVError +) + +// UserExperienceAnalyticsSummarizedBy undocumented +type UserExperienceAnalyticsSummarizedBy string + +const ( + // UserExperienceAnalyticsSummarizedByVNone undocumented + UserExperienceAnalyticsSummarizedByVNone UserExperienceAnalyticsSummarizedBy = "none" + // UserExperienceAnalyticsSummarizedByVModel undocumented + UserExperienceAnalyticsSummarizedByVModel UserExperienceAnalyticsSummarizedBy = "model" + // UserExperienceAnalyticsSummarizedByVAllRegressions undocumented + UserExperienceAnalyticsSummarizedByVAllRegressions UserExperienceAnalyticsSummarizedBy = "allRegressions" + // UserExperienceAnalyticsSummarizedByVModelRegression undocumented + UserExperienceAnalyticsSummarizedByVModelRegression UserExperienceAnalyticsSummarizedBy = "modelRegression" + // UserExperienceAnalyticsSummarizedByVManufacturerRegression undocumented + UserExperienceAnalyticsSummarizedByVManufacturerRegression UserExperienceAnalyticsSummarizedBy = "manufacturerRegression" + // UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression undocumented + UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression UserExperienceAnalyticsSummarizedBy = "operatingSystemVersionRegression" +) + +var ( + // UserExperienceAnalyticsSummarizedByPNone is a pointer to UserExperienceAnalyticsSummarizedByVNone + UserExperienceAnalyticsSummarizedByPNone = &_UserExperienceAnalyticsSummarizedByPNone + // UserExperienceAnalyticsSummarizedByPModel is a pointer to UserExperienceAnalyticsSummarizedByVModel + UserExperienceAnalyticsSummarizedByPModel = &_UserExperienceAnalyticsSummarizedByPModel + // UserExperienceAnalyticsSummarizedByPAllRegressions is a pointer to UserExperienceAnalyticsSummarizedByVAllRegressions + UserExperienceAnalyticsSummarizedByPAllRegressions = &_UserExperienceAnalyticsSummarizedByPAllRegressions + // UserExperienceAnalyticsSummarizedByPModelRegression is a pointer to UserExperienceAnalyticsSummarizedByVModelRegression + UserExperienceAnalyticsSummarizedByPModelRegression = &_UserExperienceAnalyticsSummarizedByPModelRegression + // UserExperienceAnalyticsSummarizedByPManufacturerRegression is a pointer to UserExperienceAnalyticsSummarizedByVManufacturerRegression + UserExperienceAnalyticsSummarizedByPManufacturerRegression = &_UserExperienceAnalyticsSummarizedByPManufacturerRegression + // UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression is a pointer to UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression + UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression = &_UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression +) + +var ( + _UserExperienceAnalyticsSummarizedByPNone = UserExperienceAnalyticsSummarizedByVNone + _UserExperienceAnalyticsSummarizedByPModel = UserExperienceAnalyticsSummarizedByVModel + _UserExperienceAnalyticsSummarizedByPAllRegressions = UserExperienceAnalyticsSummarizedByVAllRegressions + _UserExperienceAnalyticsSummarizedByPModelRegression = UserExperienceAnalyticsSummarizedByVModelRegression + _UserExperienceAnalyticsSummarizedByPManufacturerRegression = UserExperienceAnalyticsSummarizedByVManufacturerRegression + _UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression = UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression +) + +// UserFlowType undocumented +type UserFlowType string + +const ( + // UserFlowTypeVSignUp undocumented + UserFlowTypeVSignUp UserFlowType = "signUp" + // UserFlowTypeVSignIn undocumented + UserFlowTypeVSignIn UserFlowType = "signIn" + // UserFlowTypeVSignUpOrSignIn undocumented + UserFlowTypeVSignUpOrSignIn UserFlowType = "signUpOrSignIn" + // UserFlowTypeVPasswordReset undocumented + UserFlowTypeVPasswordReset UserFlowType = "passwordReset" + // UserFlowTypeVProfileUpdate undocumented + UserFlowTypeVProfileUpdate UserFlowType = "profileUpdate" + // UserFlowTypeVResourceOwner undocumented + UserFlowTypeVResourceOwner UserFlowType = "resourceOwner" + // UserFlowTypeVUnknownFutureValue undocumented + UserFlowTypeVUnknownFutureValue UserFlowType = "unknownFutureValue" +) + +var ( + // UserFlowTypePSignUp is a pointer to UserFlowTypeVSignUp + UserFlowTypePSignUp = &_UserFlowTypePSignUp + // UserFlowTypePSignIn is a pointer to UserFlowTypeVSignIn + UserFlowTypePSignIn = &_UserFlowTypePSignIn + // UserFlowTypePSignUpOrSignIn is a pointer to UserFlowTypeVSignUpOrSignIn + UserFlowTypePSignUpOrSignIn = &_UserFlowTypePSignUpOrSignIn + // UserFlowTypePPasswordReset is a pointer to UserFlowTypeVPasswordReset + UserFlowTypePPasswordReset = &_UserFlowTypePPasswordReset + // UserFlowTypePProfileUpdate is a pointer to UserFlowTypeVProfileUpdate + UserFlowTypePProfileUpdate = &_UserFlowTypePProfileUpdate + // UserFlowTypePResourceOwner is a pointer to UserFlowTypeVResourceOwner + UserFlowTypePResourceOwner = &_UserFlowTypePResourceOwner + // UserFlowTypePUnknownFutureValue is a pointer to UserFlowTypeVUnknownFutureValue + UserFlowTypePUnknownFutureValue = &_UserFlowTypePUnknownFutureValue +) + +var ( + _UserFlowTypePSignUp = UserFlowTypeVSignUp + _UserFlowTypePSignIn = UserFlowTypeVSignIn + _UserFlowTypePSignUpOrSignIn = UserFlowTypeVSignUpOrSignIn + _UserFlowTypePPasswordReset = UserFlowTypeVPasswordReset + _UserFlowTypePProfileUpdate = UserFlowTypeVProfileUpdate + _UserFlowTypePResourceOwner = UserFlowTypeVResourceOwner + _UserFlowTypePUnknownFutureValue = UserFlowTypeVUnknownFutureValue +) + +// UserIdentityType undocumented +type UserIdentityType string + +const ( + // UserIdentityTypeVAadUser undocumented + UserIdentityTypeVAadUser UserIdentityType = "aadUser" + // UserIdentityTypeVOnPremiseAadUser undocumented + UserIdentityTypeVOnPremiseAadUser UserIdentityType = "onPremiseAadUser" + // UserIdentityTypeVAnonymousGuest undocumented + UserIdentityTypeVAnonymousGuest UserIdentityType = "anonymousGuest" + // UserIdentityTypeVFederatedUser undocumented + UserIdentityTypeVFederatedUser UserIdentityType = "federatedUser" +) + +var ( + // UserIdentityTypePAadUser is a pointer to UserIdentityTypeVAadUser + UserIdentityTypePAadUser = &_UserIdentityTypePAadUser + // UserIdentityTypePOnPremiseAadUser is a pointer to UserIdentityTypeVOnPremiseAadUser + UserIdentityTypePOnPremiseAadUser = &_UserIdentityTypePOnPremiseAadUser + // UserIdentityTypePAnonymousGuest is a pointer to UserIdentityTypeVAnonymousGuest + UserIdentityTypePAnonymousGuest = &_UserIdentityTypePAnonymousGuest + // UserIdentityTypePFederatedUser is a pointer to UserIdentityTypeVFederatedUser + UserIdentityTypePFederatedUser = &_UserIdentityTypePFederatedUser +) + +var ( + _UserIdentityTypePAadUser = UserIdentityTypeVAadUser + _UserIdentityTypePOnPremiseAadUser = UserIdentityTypeVOnPremiseAadUser + _UserIdentityTypePAnonymousGuest = UserIdentityTypeVAnonymousGuest + _UserIdentityTypePFederatedUser = UserIdentityTypeVFederatedUser +) + +// UserPfxIntendedPurpose undocumented +type UserPfxIntendedPurpose string + +const ( + // UserPfxIntendedPurposeVUnassigned undocumented + UserPfxIntendedPurposeVUnassigned UserPfxIntendedPurpose = "unassigned" + // UserPfxIntendedPurposeVSmimeEncryption undocumented + UserPfxIntendedPurposeVSmimeEncryption UserPfxIntendedPurpose = "smimeEncryption" + // UserPfxIntendedPurposeVSmimeSigning undocumented + UserPfxIntendedPurposeVSmimeSigning UserPfxIntendedPurpose = "smimeSigning" + // UserPfxIntendedPurposeVVPN undocumented + UserPfxIntendedPurposeVVPN UserPfxIntendedPurpose = "vpn" + // UserPfxIntendedPurposeVWiFi undocumented + UserPfxIntendedPurposeVWiFi UserPfxIntendedPurpose = "wifi" +) + +var ( + // UserPfxIntendedPurposePUnassigned is a pointer to UserPfxIntendedPurposeVUnassigned + UserPfxIntendedPurposePUnassigned = &_UserPfxIntendedPurposePUnassigned + // UserPfxIntendedPurposePSmimeEncryption is a pointer to UserPfxIntendedPurposeVSmimeEncryption + UserPfxIntendedPurposePSmimeEncryption = &_UserPfxIntendedPurposePSmimeEncryption + // UserPfxIntendedPurposePSmimeSigning is a pointer to UserPfxIntendedPurposeVSmimeSigning + UserPfxIntendedPurposePSmimeSigning = &_UserPfxIntendedPurposePSmimeSigning + // UserPfxIntendedPurposePVPN is a pointer to UserPfxIntendedPurposeVVPN + UserPfxIntendedPurposePVPN = &_UserPfxIntendedPurposePVPN + // UserPfxIntendedPurposePWiFi is a pointer to UserPfxIntendedPurposeVWiFi + UserPfxIntendedPurposePWiFi = &_UserPfxIntendedPurposePWiFi +) + +var ( + _UserPfxIntendedPurposePUnassigned = UserPfxIntendedPurposeVUnassigned + _UserPfxIntendedPurposePSmimeEncryption = UserPfxIntendedPurposeVSmimeEncryption + _UserPfxIntendedPurposePSmimeSigning = UserPfxIntendedPurposeVSmimeSigning + _UserPfxIntendedPurposePVPN = UserPfxIntendedPurposeVVPN + _UserPfxIntendedPurposePWiFi = UserPfxIntendedPurposeVWiFi +) + +// UserPfxPaddingScheme undocumented +type UserPfxPaddingScheme string + +const ( + // UserPfxPaddingSchemeVNone undocumented + UserPfxPaddingSchemeVNone UserPfxPaddingScheme = "none" + // UserPfxPaddingSchemeVPkcs1 undocumented + UserPfxPaddingSchemeVPkcs1 UserPfxPaddingScheme = "pkcs1" + // UserPfxPaddingSchemeVOaepSha1 undocumented + UserPfxPaddingSchemeVOaepSha1 UserPfxPaddingScheme = "oaepSha1" + // UserPfxPaddingSchemeVOaepSha256 undocumented + UserPfxPaddingSchemeVOaepSha256 UserPfxPaddingScheme = "oaepSha256" + // UserPfxPaddingSchemeVOaepSha384 undocumented + UserPfxPaddingSchemeVOaepSha384 UserPfxPaddingScheme = "oaepSha384" + // UserPfxPaddingSchemeVOaepSha512 undocumented + UserPfxPaddingSchemeVOaepSha512 UserPfxPaddingScheme = "oaepSha512" +) + +var ( + // UserPfxPaddingSchemePNone is a pointer to UserPfxPaddingSchemeVNone + UserPfxPaddingSchemePNone = &_UserPfxPaddingSchemePNone + // UserPfxPaddingSchemePPkcs1 is a pointer to UserPfxPaddingSchemeVPkcs1 + UserPfxPaddingSchemePPkcs1 = &_UserPfxPaddingSchemePPkcs1 + // UserPfxPaddingSchemePOaepSha1 is a pointer to UserPfxPaddingSchemeVOaepSha1 + UserPfxPaddingSchemePOaepSha1 = &_UserPfxPaddingSchemePOaepSha1 + // UserPfxPaddingSchemePOaepSha256 is a pointer to UserPfxPaddingSchemeVOaepSha256 + UserPfxPaddingSchemePOaepSha256 = &_UserPfxPaddingSchemePOaepSha256 + // UserPfxPaddingSchemePOaepSha384 is a pointer to UserPfxPaddingSchemeVOaepSha384 + UserPfxPaddingSchemePOaepSha384 = &_UserPfxPaddingSchemePOaepSha384 + // UserPfxPaddingSchemePOaepSha512 is a pointer to UserPfxPaddingSchemeVOaepSha512 + UserPfxPaddingSchemePOaepSha512 = &_UserPfxPaddingSchemePOaepSha512 +) + +var ( + _UserPfxPaddingSchemePNone = UserPfxPaddingSchemeVNone + _UserPfxPaddingSchemePPkcs1 = UserPfxPaddingSchemeVPkcs1 + _UserPfxPaddingSchemePOaepSha1 = UserPfxPaddingSchemeVOaepSha1 + _UserPfxPaddingSchemePOaepSha256 = UserPfxPaddingSchemeVOaepSha256 + _UserPfxPaddingSchemePOaepSha384 = UserPfxPaddingSchemeVOaepSha384 + _UserPfxPaddingSchemePOaepSha512 = UserPfxPaddingSchemeVOaepSha512 +) + +// UserRiskLevel undocumented +type UserRiskLevel string + +const ( + // UserRiskLevelVUnknown undocumented + UserRiskLevelVUnknown UserRiskLevel = "unknown" + // UserRiskLevelVNone undocumented + UserRiskLevelVNone UserRiskLevel = "none" + // UserRiskLevelVLow undocumented + UserRiskLevelVLow UserRiskLevel = "low" + // UserRiskLevelVMedium undocumented + UserRiskLevelVMedium UserRiskLevel = "medium" + // UserRiskLevelVHigh undocumented + UserRiskLevelVHigh UserRiskLevel = "high" +) + +var ( + // UserRiskLevelPUnknown is a pointer to UserRiskLevelVUnknown + UserRiskLevelPUnknown = &_UserRiskLevelPUnknown + // UserRiskLevelPNone is a pointer to UserRiskLevelVNone + UserRiskLevelPNone = &_UserRiskLevelPNone + // UserRiskLevelPLow is a pointer to UserRiskLevelVLow + UserRiskLevelPLow = &_UserRiskLevelPLow + // UserRiskLevelPMedium is a pointer to UserRiskLevelVMedium + UserRiskLevelPMedium = &_UserRiskLevelPMedium + // UserRiskLevelPHigh is a pointer to UserRiskLevelVHigh + UserRiskLevelPHigh = &_UserRiskLevelPHigh +) + +var ( + _UserRiskLevelPUnknown = UserRiskLevelVUnknown + _UserRiskLevelPNone = UserRiskLevelVNone + _UserRiskLevelPLow = UserRiskLevelVLow + _UserRiskLevelPMedium = UserRiskLevelVMedium + _UserRiskLevelPHigh = UserRiskLevelVHigh +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go new file mode 100644 index 00000000..54c59d07 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UsernameSource undocumented +type UsernameSource string + +const ( + // UsernameSourceVUserPrincipalName undocumented + UsernameSourceVUserPrincipalName UsernameSource = "userPrincipalName" + // UsernameSourceVPrimarySMTPAddress undocumented + UsernameSourceVPrimarySMTPAddress UsernameSource = "primarySmtpAddress" + // UsernameSourceVSamAccountName undocumented + UsernameSourceVSamAccountName UsernameSource = "samAccountName" +) + +var ( + // UsernameSourcePUserPrincipalName is a pointer to UsernameSourceVUserPrincipalName + UsernameSourcePUserPrincipalName = &_UsernameSourcePUserPrincipalName + // UsernameSourcePPrimarySMTPAddress is a pointer to UsernameSourceVPrimarySMTPAddress + UsernameSourcePPrimarySMTPAddress = &_UsernameSourcePPrimarySMTPAddress + // UsernameSourcePSamAccountName is a pointer to UsernameSourceVSamAccountName + UsernameSourcePSamAccountName = &_UsernameSourcePSamAccountName +) + +var ( + _UsernameSourcePUserPrincipalName = UsernameSourceVUserPrincipalName + _UsernameSourcePPrimarySMTPAddress = UsernameSourceVPrimarySMTPAddress + _UsernameSourcePSamAccountName = UsernameSourceVSamAccountName +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go new file mode 100644 index 00000000..4cb53f75 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go @@ -0,0 +1,362 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// VPNAuthenticationMethod undocumented +type VPNAuthenticationMethod string + +const ( + // VPNAuthenticationMethodVCertificate undocumented + VPNAuthenticationMethodVCertificate VPNAuthenticationMethod = "certificate" + // VPNAuthenticationMethodVUsernameAndPassword undocumented + VPNAuthenticationMethodVUsernameAndPassword VPNAuthenticationMethod = "usernameAndPassword" + // VPNAuthenticationMethodVSharedSecret undocumented + VPNAuthenticationMethodVSharedSecret VPNAuthenticationMethod = "sharedSecret" + // VPNAuthenticationMethodVDerivedCredential undocumented + VPNAuthenticationMethodVDerivedCredential VPNAuthenticationMethod = "derivedCredential" +) + +var ( + // VPNAuthenticationMethodPCertificate is a pointer to VPNAuthenticationMethodVCertificate + VPNAuthenticationMethodPCertificate = &_VPNAuthenticationMethodPCertificate + // VPNAuthenticationMethodPUsernameAndPassword is a pointer to VPNAuthenticationMethodVUsernameAndPassword + VPNAuthenticationMethodPUsernameAndPassword = &_VPNAuthenticationMethodPUsernameAndPassword + // VPNAuthenticationMethodPSharedSecret is a pointer to VPNAuthenticationMethodVSharedSecret + VPNAuthenticationMethodPSharedSecret = &_VPNAuthenticationMethodPSharedSecret + // VPNAuthenticationMethodPDerivedCredential is a pointer to VPNAuthenticationMethodVDerivedCredential + VPNAuthenticationMethodPDerivedCredential = &_VPNAuthenticationMethodPDerivedCredential +) + +var ( + _VPNAuthenticationMethodPCertificate = VPNAuthenticationMethodVCertificate + _VPNAuthenticationMethodPUsernameAndPassword = VPNAuthenticationMethodVUsernameAndPassword + _VPNAuthenticationMethodPSharedSecret = VPNAuthenticationMethodVSharedSecret + _VPNAuthenticationMethodPDerivedCredential = VPNAuthenticationMethodVDerivedCredential +) + +// VPNClientAuthenticationType undocumented +type VPNClientAuthenticationType string + +const ( + // VPNClientAuthenticationTypeVUserAuthentication undocumented + VPNClientAuthenticationTypeVUserAuthentication VPNClientAuthenticationType = "userAuthentication" + // VPNClientAuthenticationTypeVDeviceAuthentication undocumented + VPNClientAuthenticationTypeVDeviceAuthentication VPNClientAuthenticationType = "deviceAuthentication" +) + +var ( + // VPNClientAuthenticationTypePUserAuthentication is a pointer to VPNClientAuthenticationTypeVUserAuthentication + VPNClientAuthenticationTypePUserAuthentication = &_VPNClientAuthenticationTypePUserAuthentication + // VPNClientAuthenticationTypePDeviceAuthentication is a pointer to VPNClientAuthenticationTypeVDeviceAuthentication + VPNClientAuthenticationTypePDeviceAuthentication = &_VPNClientAuthenticationTypePDeviceAuthentication +) + +var ( + _VPNClientAuthenticationTypePUserAuthentication = VPNClientAuthenticationTypeVUserAuthentication + _VPNClientAuthenticationTypePDeviceAuthentication = VPNClientAuthenticationTypeVDeviceAuthentication +) + +// VPNDeadPeerDetectionRate undocumented +type VPNDeadPeerDetectionRate string + +const ( + // VPNDeadPeerDetectionRateVMedium undocumented + VPNDeadPeerDetectionRateVMedium VPNDeadPeerDetectionRate = "medium" + // VPNDeadPeerDetectionRateVNone undocumented + VPNDeadPeerDetectionRateVNone VPNDeadPeerDetectionRate = "none" + // VPNDeadPeerDetectionRateVLow undocumented + VPNDeadPeerDetectionRateVLow VPNDeadPeerDetectionRate = "low" + // VPNDeadPeerDetectionRateVHigh undocumented + VPNDeadPeerDetectionRateVHigh VPNDeadPeerDetectionRate = "high" +) + +var ( + // VPNDeadPeerDetectionRatePMedium is a pointer to VPNDeadPeerDetectionRateVMedium + VPNDeadPeerDetectionRatePMedium = &_VPNDeadPeerDetectionRatePMedium + // VPNDeadPeerDetectionRatePNone is a pointer to VPNDeadPeerDetectionRateVNone + VPNDeadPeerDetectionRatePNone = &_VPNDeadPeerDetectionRatePNone + // VPNDeadPeerDetectionRatePLow is a pointer to VPNDeadPeerDetectionRateVLow + VPNDeadPeerDetectionRatePLow = &_VPNDeadPeerDetectionRatePLow + // VPNDeadPeerDetectionRatePHigh is a pointer to VPNDeadPeerDetectionRateVHigh + VPNDeadPeerDetectionRatePHigh = &_VPNDeadPeerDetectionRatePHigh +) + +var ( + _VPNDeadPeerDetectionRatePMedium = VPNDeadPeerDetectionRateVMedium + _VPNDeadPeerDetectionRatePNone = VPNDeadPeerDetectionRateVNone + _VPNDeadPeerDetectionRatePLow = VPNDeadPeerDetectionRateVLow + _VPNDeadPeerDetectionRatePHigh = VPNDeadPeerDetectionRateVHigh +) + +// VPNEncryptionAlgorithmType undocumented +type VPNEncryptionAlgorithmType string + +const ( + // VPNEncryptionAlgorithmTypeVAes256 undocumented + VPNEncryptionAlgorithmTypeVAes256 VPNEncryptionAlgorithmType = "aes256" + // VPNEncryptionAlgorithmTypeVDes undocumented + VPNEncryptionAlgorithmTypeVDes VPNEncryptionAlgorithmType = "des" + // VPNEncryptionAlgorithmTypeVTripleDes undocumented + VPNEncryptionAlgorithmTypeVTripleDes VPNEncryptionAlgorithmType = "tripleDes" + // VPNEncryptionAlgorithmTypeVAes128 undocumented + VPNEncryptionAlgorithmTypeVAes128 VPNEncryptionAlgorithmType = "aes128" + // VPNEncryptionAlgorithmTypeVAes128Gcm undocumented + VPNEncryptionAlgorithmTypeVAes128Gcm VPNEncryptionAlgorithmType = "aes128Gcm" + // VPNEncryptionAlgorithmTypeVAes256Gcm undocumented + VPNEncryptionAlgorithmTypeVAes256Gcm VPNEncryptionAlgorithmType = "aes256Gcm" +) + +var ( + // VPNEncryptionAlgorithmTypePAes256 is a pointer to VPNEncryptionAlgorithmTypeVAes256 + VPNEncryptionAlgorithmTypePAes256 = &_VPNEncryptionAlgorithmTypePAes256 + // VPNEncryptionAlgorithmTypePDes is a pointer to VPNEncryptionAlgorithmTypeVDes + VPNEncryptionAlgorithmTypePDes = &_VPNEncryptionAlgorithmTypePDes + // VPNEncryptionAlgorithmTypePTripleDes is a pointer to VPNEncryptionAlgorithmTypeVTripleDes + VPNEncryptionAlgorithmTypePTripleDes = &_VPNEncryptionAlgorithmTypePTripleDes + // VPNEncryptionAlgorithmTypePAes128 is a pointer to VPNEncryptionAlgorithmTypeVAes128 + VPNEncryptionAlgorithmTypePAes128 = &_VPNEncryptionAlgorithmTypePAes128 + // VPNEncryptionAlgorithmTypePAes128Gcm is a pointer to VPNEncryptionAlgorithmTypeVAes128Gcm + VPNEncryptionAlgorithmTypePAes128Gcm = &_VPNEncryptionAlgorithmTypePAes128Gcm + // VPNEncryptionAlgorithmTypePAes256Gcm is a pointer to VPNEncryptionAlgorithmTypeVAes256Gcm + VPNEncryptionAlgorithmTypePAes256Gcm = &_VPNEncryptionAlgorithmTypePAes256Gcm +) + +var ( + _VPNEncryptionAlgorithmTypePAes256 = VPNEncryptionAlgorithmTypeVAes256 + _VPNEncryptionAlgorithmTypePDes = VPNEncryptionAlgorithmTypeVDes + _VPNEncryptionAlgorithmTypePTripleDes = VPNEncryptionAlgorithmTypeVTripleDes + _VPNEncryptionAlgorithmTypePAes128 = VPNEncryptionAlgorithmTypeVAes128 + _VPNEncryptionAlgorithmTypePAes128Gcm = VPNEncryptionAlgorithmTypeVAes128Gcm + _VPNEncryptionAlgorithmTypePAes256Gcm = VPNEncryptionAlgorithmTypeVAes256Gcm +) + +// VPNIntegrityAlgorithmType undocumented +type VPNIntegrityAlgorithmType string + +const ( + // VPNIntegrityAlgorithmTypeVSha2_256 undocumented + VPNIntegrityAlgorithmTypeVSha2_256 VPNIntegrityAlgorithmType = "sha2_256" + // VPNIntegrityAlgorithmTypeVSha1_96 undocumented + VPNIntegrityAlgorithmTypeVSha1_96 VPNIntegrityAlgorithmType = "sha1_96" + // VPNIntegrityAlgorithmTypeVSha1_160 undocumented + VPNIntegrityAlgorithmTypeVSha1_160 VPNIntegrityAlgorithmType = "sha1_160" + // VPNIntegrityAlgorithmTypeVSha2_384 undocumented + VPNIntegrityAlgorithmTypeVSha2_384 VPNIntegrityAlgorithmType = "sha2_384" + // VPNIntegrityAlgorithmTypeVSha2_512 undocumented + VPNIntegrityAlgorithmTypeVSha2_512 VPNIntegrityAlgorithmType = "sha2_512" +) + +var ( + // VPNIntegrityAlgorithmTypePSha2_256 is a pointer to VPNIntegrityAlgorithmTypeVSha2_256 + VPNIntegrityAlgorithmTypePSha2_256 = &_VPNIntegrityAlgorithmTypePSha2_256 + // VPNIntegrityAlgorithmTypePSha1_96 is a pointer to VPNIntegrityAlgorithmTypeVSha1_96 + VPNIntegrityAlgorithmTypePSha1_96 = &_VPNIntegrityAlgorithmTypePSha1_96 + // VPNIntegrityAlgorithmTypePSha1_160 is a pointer to VPNIntegrityAlgorithmTypeVSha1_160 + VPNIntegrityAlgorithmTypePSha1_160 = &_VPNIntegrityAlgorithmTypePSha1_160 + // VPNIntegrityAlgorithmTypePSha2_384 is a pointer to VPNIntegrityAlgorithmTypeVSha2_384 + VPNIntegrityAlgorithmTypePSha2_384 = &_VPNIntegrityAlgorithmTypePSha2_384 + // VPNIntegrityAlgorithmTypePSha2_512 is a pointer to VPNIntegrityAlgorithmTypeVSha2_512 + VPNIntegrityAlgorithmTypePSha2_512 = &_VPNIntegrityAlgorithmTypePSha2_512 +) + +var ( + _VPNIntegrityAlgorithmTypePSha2_256 = VPNIntegrityAlgorithmTypeVSha2_256 + _VPNIntegrityAlgorithmTypePSha1_96 = VPNIntegrityAlgorithmTypeVSha1_96 + _VPNIntegrityAlgorithmTypePSha1_160 = VPNIntegrityAlgorithmTypeVSha1_160 + _VPNIntegrityAlgorithmTypePSha2_384 = VPNIntegrityAlgorithmTypeVSha2_384 + _VPNIntegrityAlgorithmTypePSha2_512 = VPNIntegrityAlgorithmTypeVSha2_512 +) + +// VPNLocalIdentifier undocumented +type VPNLocalIdentifier string + +const ( + // VPNLocalIdentifierVDeviceFQDN undocumented + VPNLocalIdentifierVDeviceFQDN VPNLocalIdentifier = "deviceFQDN" + // VPNLocalIdentifierVEmpty undocumented + VPNLocalIdentifierVEmpty VPNLocalIdentifier = "empty" + // VPNLocalIdentifierVClientCertificateSubjectName undocumented + VPNLocalIdentifierVClientCertificateSubjectName VPNLocalIdentifier = "clientCertificateSubjectName" +) + +var ( + // VPNLocalIdentifierPDeviceFQDN is a pointer to VPNLocalIdentifierVDeviceFQDN + VPNLocalIdentifierPDeviceFQDN = &_VPNLocalIdentifierPDeviceFQDN + // VPNLocalIdentifierPEmpty is a pointer to VPNLocalIdentifierVEmpty + VPNLocalIdentifierPEmpty = &_VPNLocalIdentifierPEmpty + // VPNLocalIdentifierPClientCertificateSubjectName is a pointer to VPNLocalIdentifierVClientCertificateSubjectName + VPNLocalIdentifierPClientCertificateSubjectName = &_VPNLocalIdentifierPClientCertificateSubjectName +) + +var ( + _VPNLocalIdentifierPDeviceFQDN = VPNLocalIdentifierVDeviceFQDN + _VPNLocalIdentifierPEmpty = VPNLocalIdentifierVEmpty + _VPNLocalIdentifierPClientCertificateSubjectName = VPNLocalIdentifierVClientCertificateSubjectName +) + +// VPNOnDemandRuleConnectionAction undocumented +type VPNOnDemandRuleConnectionAction string + +const ( + // VPNOnDemandRuleConnectionActionVConnect undocumented + VPNOnDemandRuleConnectionActionVConnect VPNOnDemandRuleConnectionAction = "connect" + // VPNOnDemandRuleConnectionActionVEvaluateConnection undocumented + VPNOnDemandRuleConnectionActionVEvaluateConnection VPNOnDemandRuleConnectionAction = "evaluateConnection" + // VPNOnDemandRuleConnectionActionVIgnore undocumented + VPNOnDemandRuleConnectionActionVIgnore VPNOnDemandRuleConnectionAction = "ignore" + // VPNOnDemandRuleConnectionActionVDisconnect undocumented + VPNOnDemandRuleConnectionActionVDisconnect VPNOnDemandRuleConnectionAction = "disconnect" +) + +var ( + // VPNOnDemandRuleConnectionActionPConnect is a pointer to VPNOnDemandRuleConnectionActionVConnect + VPNOnDemandRuleConnectionActionPConnect = &_VPNOnDemandRuleConnectionActionPConnect + // VPNOnDemandRuleConnectionActionPEvaluateConnection is a pointer to VPNOnDemandRuleConnectionActionVEvaluateConnection + VPNOnDemandRuleConnectionActionPEvaluateConnection = &_VPNOnDemandRuleConnectionActionPEvaluateConnection + // VPNOnDemandRuleConnectionActionPIgnore is a pointer to VPNOnDemandRuleConnectionActionVIgnore + VPNOnDemandRuleConnectionActionPIgnore = &_VPNOnDemandRuleConnectionActionPIgnore + // VPNOnDemandRuleConnectionActionPDisconnect is a pointer to VPNOnDemandRuleConnectionActionVDisconnect + VPNOnDemandRuleConnectionActionPDisconnect = &_VPNOnDemandRuleConnectionActionPDisconnect +) + +var ( + _VPNOnDemandRuleConnectionActionPConnect = VPNOnDemandRuleConnectionActionVConnect + _VPNOnDemandRuleConnectionActionPEvaluateConnection = VPNOnDemandRuleConnectionActionVEvaluateConnection + _VPNOnDemandRuleConnectionActionPIgnore = VPNOnDemandRuleConnectionActionVIgnore + _VPNOnDemandRuleConnectionActionPDisconnect = VPNOnDemandRuleConnectionActionVDisconnect +) + +// VPNOnDemandRuleConnectionDomainAction undocumented +type VPNOnDemandRuleConnectionDomainAction string + +const ( + // VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded undocumented + VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded VPNOnDemandRuleConnectionDomainAction = "connectIfNeeded" + // VPNOnDemandRuleConnectionDomainActionVNeverConnect undocumented + VPNOnDemandRuleConnectionDomainActionVNeverConnect VPNOnDemandRuleConnectionDomainAction = "neverConnect" +) + +var ( + // VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded is a pointer to VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded + VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded = &_VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded + // VPNOnDemandRuleConnectionDomainActionPNeverConnect is a pointer to VPNOnDemandRuleConnectionDomainActionVNeverConnect + VPNOnDemandRuleConnectionDomainActionPNeverConnect = &_VPNOnDemandRuleConnectionDomainActionPNeverConnect +) + +var ( + _VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded = VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded + _VPNOnDemandRuleConnectionDomainActionPNeverConnect = VPNOnDemandRuleConnectionDomainActionVNeverConnect +) + +// VPNProviderType undocumented +type VPNProviderType string + +const ( + // VPNProviderTypeVNotConfigured undocumented + VPNProviderTypeVNotConfigured VPNProviderType = "notConfigured" + // VPNProviderTypeVAppProxy undocumented + VPNProviderTypeVAppProxy VPNProviderType = "appProxy" + // VPNProviderTypeVPacketTunnel undocumented + VPNProviderTypeVPacketTunnel VPNProviderType = "packetTunnel" +) + +var ( + // VPNProviderTypePNotConfigured is a pointer to VPNProviderTypeVNotConfigured + VPNProviderTypePNotConfigured = &_VPNProviderTypePNotConfigured + // VPNProviderTypePAppProxy is a pointer to VPNProviderTypeVAppProxy + VPNProviderTypePAppProxy = &_VPNProviderTypePAppProxy + // VPNProviderTypePPacketTunnel is a pointer to VPNProviderTypeVPacketTunnel + VPNProviderTypePPacketTunnel = &_VPNProviderTypePPacketTunnel +) + +var ( + _VPNProviderTypePNotConfigured = VPNProviderTypeVNotConfigured + _VPNProviderTypePAppProxy = VPNProviderTypeVAppProxy + _VPNProviderTypePPacketTunnel = VPNProviderTypeVPacketTunnel +) + +// VPNServerCertificateType undocumented +type VPNServerCertificateType string + +const ( + // VPNServerCertificateTypeVRsa undocumented + VPNServerCertificateTypeVRsa VPNServerCertificateType = "rsa" + // VPNServerCertificateTypeVEcdsa256 undocumented + VPNServerCertificateTypeVEcdsa256 VPNServerCertificateType = "ecdsa256" + // VPNServerCertificateTypeVEcdsa384 undocumented + VPNServerCertificateTypeVEcdsa384 VPNServerCertificateType = "ecdsa384" + // VPNServerCertificateTypeVEcdsa521 undocumented + VPNServerCertificateTypeVEcdsa521 VPNServerCertificateType = "ecdsa521" +) + +var ( + // VPNServerCertificateTypePRsa is a pointer to VPNServerCertificateTypeVRsa + VPNServerCertificateTypePRsa = &_VPNServerCertificateTypePRsa + // VPNServerCertificateTypePEcdsa256 is a pointer to VPNServerCertificateTypeVEcdsa256 + VPNServerCertificateTypePEcdsa256 = &_VPNServerCertificateTypePEcdsa256 + // VPNServerCertificateTypePEcdsa384 is a pointer to VPNServerCertificateTypeVEcdsa384 + VPNServerCertificateTypePEcdsa384 = &_VPNServerCertificateTypePEcdsa384 + // VPNServerCertificateTypePEcdsa521 is a pointer to VPNServerCertificateTypeVEcdsa521 + VPNServerCertificateTypePEcdsa521 = &_VPNServerCertificateTypePEcdsa521 +) + +var ( + _VPNServerCertificateTypePRsa = VPNServerCertificateTypeVRsa + _VPNServerCertificateTypePEcdsa256 = VPNServerCertificateTypeVEcdsa256 + _VPNServerCertificateTypePEcdsa384 = VPNServerCertificateTypeVEcdsa384 + _VPNServerCertificateTypePEcdsa521 = VPNServerCertificateTypeVEcdsa521 +) + +// VPNTrafficRuleAppType undocumented +type VPNTrafficRuleAppType string + +const ( + // VPNTrafficRuleAppTypeVNone undocumented + VPNTrafficRuleAppTypeVNone VPNTrafficRuleAppType = "none" + // VPNTrafficRuleAppTypeVDesktop undocumented + VPNTrafficRuleAppTypeVDesktop VPNTrafficRuleAppType = "desktop" + // VPNTrafficRuleAppTypeVUniversal undocumented + VPNTrafficRuleAppTypeVUniversal VPNTrafficRuleAppType = "universal" +) + +var ( + // VPNTrafficRuleAppTypePNone is a pointer to VPNTrafficRuleAppTypeVNone + VPNTrafficRuleAppTypePNone = &_VPNTrafficRuleAppTypePNone + // VPNTrafficRuleAppTypePDesktop is a pointer to VPNTrafficRuleAppTypeVDesktop + VPNTrafficRuleAppTypePDesktop = &_VPNTrafficRuleAppTypePDesktop + // VPNTrafficRuleAppTypePUniversal is a pointer to VPNTrafficRuleAppTypeVUniversal + VPNTrafficRuleAppTypePUniversal = &_VPNTrafficRuleAppTypePUniversal +) + +var ( + _VPNTrafficRuleAppTypePNone = VPNTrafficRuleAppTypeVNone + _VPNTrafficRuleAppTypePDesktop = VPNTrafficRuleAppTypeVDesktop + _VPNTrafficRuleAppTypePUniversal = VPNTrafficRuleAppTypeVUniversal +) + +// VPNTrafficRuleRoutingPolicyType undocumented +type VPNTrafficRuleRoutingPolicyType string + +const ( + // VPNTrafficRuleRoutingPolicyTypeVNone undocumented + VPNTrafficRuleRoutingPolicyTypeVNone VPNTrafficRuleRoutingPolicyType = "none" + // VPNTrafficRuleRoutingPolicyTypeVSplitTunnel undocumented + VPNTrafficRuleRoutingPolicyTypeVSplitTunnel VPNTrafficRuleRoutingPolicyType = "splitTunnel" + // VPNTrafficRuleRoutingPolicyTypeVForceTunnel undocumented + VPNTrafficRuleRoutingPolicyTypeVForceTunnel VPNTrafficRuleRoutingPolicyType = "forceTunnel" +) + +var ( + // VPNTrafficRuleRoutingPolicyTypePNone is a pointer to VPNTrafficRuleRoutingPolicyTypeVNone + VPNTrafficRuleRoutingPolicyTypePNone = &_VPNTrafficRuleRoutingPolicyTypePNone + // VPNTrafficRuleRoutingPolicyTypePSplitTunnel is a pointer to VPNTrafficRuleRoutingPolicyTypeVSplitTunnel + VPNTrafficRuleRoutingPolicyTypePSplitTunnel = &_VPNTrafficRuleRoutingPolicyTypePSplitTunnel + // VPNTrafficRuleRoutingPolicyTypePForceTunnel is a pointer to VPNTrafficRuleRoutingPolicyTypeVForceTunnel + VPNTrafficRuleRoutingPolicyTypePForceTunnel = &_VPNTrafficRuleRoutingPolicyTypePForceTunnel +) + +var ( + _VPNTrafficRuleRoutingPolicyTypePNone = VPNTrafficRuleRoutingPolicyTypeVNone + _VPNTrafficRuleRoutingPolicyTypePSplitTunnel = VPNTrafficRuleRoutingPolicyTypeVSplitTunnel + _VPNTrafficRuleRoutingPolicyTypePForceTunnel = VPNTrafficRuleRoutingPolicyTypeVForceTunnel +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go new file mode 100644 index 00000000..65843d8c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go @@ -0,0 +1,131 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// VPPTokenAccountType undocumented +type VPPTokenAccountType string + +const ( + // VPPTokenAccountTypeVBusiness undocumented + VPPTokenAccountTypeVBusiness VPPTokenAccountType = "business" + // VPPTokenAccountTypeVEducation undocumented + VPPTokenAccountTypeVEducation VPPTokenAccountType = "education" +) + +var ( + // VPPTokenAccountTypePBusiness is a pointer to VPPTokenAccountTypeVBusiness + VPPTokenAccountTypePBusiness = &_VPPTokenAccountTypePBusiness + // VPPTokenAccountTypePEducation is a pointer to VPPTokenAccountTypeVEducation + VPPTokenAccountTypePEducation = &_VPPTokenAccountTypePEducation +) + +var ( + _VPPTokenAccountTypePBusiness = VPPTokenAccountTypeVBusiness + _VPPTokenAccountTypePEducation = VPPTokenAccountTypeVEducation +) + +// VPPTokenActionFailureReason undocumented +type VPPTokenActionFailureReason string + +const ( + // VPPTokenActionFailureReasonVNone undocumented + VPPTokenActionFailureReasonVNone VPPTokenActionFailureReason = "none" + // VPPTokenActionFailureReasonVAppleFailure undocumented + VPPTokenActionFailureReasonVAppleFailure VPPTokenActionFailureReason = "appleFailure" + // VPPTokenActionFailureReasonVInternalError undocumented + VPPTokenActionFailureReasonVInternalError VPPTokenActionFailureReason = "internalError" + // VPPTokenActionFailureReasonVExpiredVPPToken undocumented + VPPTokenActionFailureReasonVExpiredVPPToken VPPTokenActionFailureReason = "expiredVppToken" + // VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate undocumented + VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate VPPTokenActionFailureReason = "expiredApplePushNotificationCertificate" +) + +var ( + // VPPTokenActionFailureReasonPNone is a pointer to VPPTokenActionFailureReasonVNone + VPPTokenActionFailureReasonPNone = &_VPPTokenActionFailureReasonPNone + // VPPTokenActionFailureReasonPAppleFailure is a pointer to VPPTokenActionFailureReasonVAppleFailure + VPPTokenActionFailureReasonPAppleFailure = &_VPPTokenActionFailureReasonPAppleFailure + // VPPTokenActionFailureReasonPInternalError is a pointer to VPPTokenActionFailureReasonVInternalError + VPPTokenActionFailureReasonPInternalError = &_VPPTokenActionFailureReasonPInternalError + // VPPTokenActionFailureReasonPExpiredVPPToken is a pointer to VPPTokenActionFailureReasonVExpiredVPPToken + VPPTokenActionFailureReasonPExpiredVPPToken = &_VPPTokenActionFailureReasonPExpiredVPPToken + // VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate is a pointer to VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate + VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate = &_VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate +) + +var ( + _VPPTokenActionFailureReasonPNone = VPPTokenActionFailureReasonVNone + _VPPTokenActionFailureReasonPAppleFailure = VPPTokenActionFailureReasonVAppleFailure + _VPPTokenActionFailureReasonPInternalError = VPPTokenActionFailureReasonVInternalError + _VPPTokenActionFailureReasonPExpiredVPPToken = VPPTokenActionFailureReasonVExpiredVPPToken + _VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate = VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate +) + +// VPPTokenState undocumented +type VPPTokenState string + +const ( + // VPPTokenStateVUnknown undocumented + VPPTokenStateVUnknown VPPTokenState = "unknown" + // VPPTokenStateVValid undocumented + VPPTokenStateVValid VPPTokenState = "valid" + // VPPTokenStateVExpired undocumented + VPPTokenStateVExpired VPPTokenState = "expired" + // VPPTokenStateVInvalid undocumented + VPPTokenStateVInvalid VPPTokenState = "invalid" + // VPPTokenStateVAssignedToExternalMDM undocumented + VPPTokenStateVAssignedToExternalMDM VPPTokenState = "assignedToExternalMDM" +) + +var ( + // VPPTokenStatePUnknown is a pointer to VPPTokenStateVUnknown + VPPTokenStatePUnknown = &_VPPTokenStatePUnknown + // VPPTokenStatePValid is a pointer to VPPTokenStateVValid + VPPTokenStatePValid = &_VPPTokenStatePValid + // VPPTokenStatePExpired is a pointer to VPPTokenStateVExpired + VPPTokenStatePExpired = &_VPPTokenStatePExpired + // VPPTokenStatePInvalid is a pointer to VPPTokenStateVInvalid + VPPTokenStatePInvalid = &_VPPTokenStatePInvalid + // VPPTokenStatePAssignedToExternalMDM is a pointer to VPPTokenStateVAssignedToExternalMDM + VPPTokenStatePAssignedToExternalMDM = &_VPPTokenStatePAssignedToExternalMDM +) + +var ( + _VPPTokenStatePUnknown = VPPTokenStateVUnknown + _VPPTokenStatePValid = VPPTokenStateVValid + _VPPTokenStatePExpired = VPPTokenStateVExpired + _VPPTokenStatePInvalid = VPPTokenStateVInvalid + _VPPTokenStatePAssignedToExternalMDM = VPPTokenStateVAssignedToExternalMDM +) + +// VPPTokenSyncStatus undocumented +type VPPTokenSyncStatus string + +const ( + // VPPTokenSyncStatusVNone undocumented + VPPTokenSyncStatusVNone VPPTokenSyncStatus = "none" + // VPPTokenSyncStatusVInProgress undocumented + VPPTokenSyncStatusVInProgress VPPTokenSyncStatus = "inProgress" + // VPPTokenSyncStatusVCompleted undocumented + VPPTokenSyncStatusVCompleted VPPTokenSyncStatus = "completed" + // VPPTokenSyncStatusVFailed undocumented + VPPTokenSyncStatusVFailed VPPTokenSyncStatus = "failed" +) + +var ( + // VPPTokenSyncStatusPNone is a pointer to VPPTokenSyncStatusVNone + VPPTokenSyncStatusPNone = &_VPPTokenSyncStatusPNone + // VPPTokenSyncStatusPInProgress is a pointer to VPPTokenSyncStatusVInProgress + VPPTokenSyncStatusPInProgress = &_VPPTokenSyncStatusPInProgress + // VPPTokenSyncStatusPCompleted is a pointer to VPPTokenSyncStatusVCompleted + VPPTokenSyncStatusPCompleted = &_VPPTokenSyncStatusPCompleted + // VPPTokenSyncStatusPFailed is a pointer to VPPTokenSyncStatusVFailed + VPPTokenSyncStatusPFailed = &_VPPTokenSyncStatusPFailed +) + +var ( + _VPPTokenSyncStatusPNone = VPPTokenSyncStatusVNone + _VPPTokenSyncStatusPInProgress = VPPTokenSyncStatusVInProgress + _VPPTokenSyncStatusPCompleted = VPPTokenSyncStatusVCompleted + _VPPTokenSyncStatusPFailed = VPPTokenSyncStatusVFailed +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go new file mode 100644 index 00000000..b2ecd832 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// VisibilitySetting undocumented +type VisibilitySetting string + +const ( + // VisibilitySettingVNotConfigured undocumented + VisibilitySettingVNotConfigured VisibilitySetting = "notConfigured" + // VisibilitySettingVHide undocumented + VisibilitySettingVHide VisibilitySetting = "hide" + // VisibilitySettingVShow undocumented + VisibilitySettingVShow VisibilitySetting = "show" +) + +var ( + // VisibilitySettingPNotConfigured is a pointer to VisibilitySettingVNotConfigured + VisibilitySettingPNotConfigured = &_VisibilitySettingPNotConfigured + // VisibilitySettingPHide is a pointer to VisibilitySettingVHide + VisibilitySettingPHide = &_VisibilitySettingPHide + // VisibilitySettingPShow is a pointer to VisibilitySettingVShow + VisibilitySettingPShow = &_VisibilitySettingPShow +) + +var ( + _VisibilitySettingPNotConfigured = VisibilitySettingVNotConfigured + _VisibilitySettingPHide = VisibilitySettingVHide + _VisibilitySettingPShow = VisibilitySettingVShow +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go new file mode 100644 index 00000000..6f5b4b6d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WatermarkLayout undocumented +type WatermarkLayout string + +const ( + // WatermarkLayoutVHorizontal undocumented + WatermarkLayoutVHorizontal WatermarkLayout = "horizontal" + // WatermarkLayoutVDiagonal undocumented + WatermarkLayoutVDiagonal WatermarkLayout = "diagonal" +) + +var ( + // WatermarkLayoutPHorizontal is a pointer to WatermarkLayoutVHorizontal + WatermarkLayoutPHorizontal = &_WatermarkLayoutPHorizontal + // WatermarkLayoutPDiagonal is a pointer to WatermarkLayoutVDiagonal + WatermarkLayoutPDiagonal = &_WatermarkLayoutPDiagonal +) + +var ( + _WatermarkLayoutPHorizontal = WatermarkLayoutVHorizontal + _WatermarkLayoutPDiagonal = WatermarkLayoutVDiagonal +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go new file mode 100644 index 00000000..e91598dd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WebBrowserCookieSettings undocumented +type WebBrowserCookieSettings string + +const ( + // WebBrowserCookieSettingsVBrowserDefault undocumented + WebBrowserCookieSettingsVBrowserDefault WebBrowserCookieSettings = "browserDefault" + // WebBrowserCookieSettingsVBlockAlways undocumented + WebBrowserCookieSettingsVBlockAlways WebBrowserCookieSettings = "blockAlways" + // WebBrowserCookieSettingsVAllowCurrentWebSite undocumented + WebBrowserCookieSettingsVAllowCurrentWebSite WebBrowserCookieSettings = "allowCurrentWebSite" + // WebBrowserCookieSettingsVAllowFromWebsitesVisited undocumented + WebBrowserCookieSettingsVAllowFromWebsitesVisited WebBrowserCookieSettings = "allowFromWebsitesVisited" + // WebBrowserCookieSettingsVAllowAlways undocumented + WebBrowserCookieSettingsVAllowAlways WebBrowserCookieSettings = "allowAlways" +) + +var ( + // WebBrowserCookieSettingsPBrowserDefault is a pointer to WebBrowserCookieSettingsVBrowserDefault + WebBrowserCookieSettingsPBrowserDefault = &_WebBrowserCookieSettingsPBrowserDefault + // WebBrowserCookieSettingsPBlockAlways is a pointer to WebBrowserCookieSettingsVBlockAlways + WebBrowserCookieSettingsPBlockAlways = &_WebBrowserCookieSettingsPBlockAlways + // WebBrowserCookieSettingsPAllowCurrentWebSite is a pointer to WebBrowserCookieSettingsVAllowCurrentWebSite + WebBrowserCookieSettingsPAllowCurrentWebSite = &_WebBrowserCookieSettingsPAllowCurrentWebSite + // WebBrowserCookieSettingsPAllowFromWebsitesVisited is a pointer to WebBrowserCookieSettingsVAllowFromWebsitesVisited + WebBrowserCookieSettingsPAllowFromWebsitesVisited = &_WebBrowserCookieSettingsPAllowFromWebsitesVisited + // WebBrowserCookieSettingsPAllowAlways is a pointer to WebBrowserCookieSettingsVAllowAlways + WebBrowserCookieSettingsPAllowAlways = &_WebBrowserCookieSettingsPAllowAlways +) + +var ( + _WebBrowserCookieSettingsPBrowserDefault = WebBrowserCookieSettingsVBrowserDefault + _WebBrowserCookieSettingsPBlockAlways = WebBrowserCookieSettingsVBlockAlways + _WebBrowserCookieSettingsPAllowCurrentWebSite = WebBrowserCookieSettingsVAllowCurrentWebSite + _WebBrowserCookieSettingsPAllowFromWebsitesVisited = WebBrowserCookieSettingsVAllowFromWebsitesVisited + _WebBrowserCookieSettingsPAllowAlways = WebBrowserCookieSettingsVAllowAlways +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go new file mode 100644 index 00000000..60fb4f49 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WebsiteType undocumented +type WebsiteType string + +const ( + // WebsiteTypeVOther undocumented + WebsiteTypeVOther WebsiteType = "other" + // WebsiteTypeVHome undocumented + WebsiteTypeVHome WebsiteType = "home" + // WebsiteTypeVWork undocumented + WebsiteTypeVWork WebsiteType = "work" + // WebsiteTypeVBlog undocumented + WebsiteTypeVBlog WebsiteType = "blog" + // WebsiteTypeVProfile undocumented + WebsiteTypeVProfile WebsiteType = "profile" +) + +var ( + // WebsiteTypePOther is a pointer to WebsiteTypeVOther + WebsiteTypePOther = &_WebsiteTypePOther + // WebsiteTypePHome is a pointer to WebsiteTypeVHome + WebsiteTypePHome = &_WebsiteTypePHome + // WebsiteTypePWork is a pointer to WebsiteTypeVWork + WebsiteTypePWork = &_WebsiteTypePWork + // WebsiteTypePBlog is a pointer to WebsiteTypeVBlog + WebsiteTypePBlog = &_WebsiteTypePBlog + // WebsiteTypePProfile is a pointer to WebsiteTypeVProfile + WebsiteTypePProfile = &_WebsiteTypePProfile +) + +var ( + _WebsiteTypePOther = WebsiteTypeVOther + _WebsiteTypePHome = WebsiteTypeVHome + _WebsiteTypePWork = WebsiteTypeVWork + _WebsiteTypePBlog = WebsiteTypeVBlog + _WebsiteTypePProfile = WebsiteTypeVProfile +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go new file mode 100644 index 00000000..961c68ea --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go @@ -0,0 +1,40 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WeekIndex undocumented +type WeekIndex string + +const ( + // WeekIndexVFirst undocumented + WeekIndexVFirst WeekIndex = "first" + // WeekIndexVSecond undocumented + WeekIndexVSecond WeekIndex = "second" + // WeekIndexVThird undocumented + WeekIndexVThird WeekIndex = "third" + // WeekIndexVFourth undocumented + WeekIndexVFourth WeekIndex = "fourth" + // WeekIndexVLast undocumented + WeekIndexVLast WeekIndex = "last" +) + +var ( + // WeekIndexPFirst is a pointer to WeekIndexVFirst + WeekIndexPFirst = &_WeekIndexPFirst + // WeekIndexPSecond is a pointer to WeekIndexVSecond + WeekIndexPSecond = &_WeekIndexPSecond + // WeekIndexPThird is a pointer to WeekIndexVThird + WeekIndexPThird = &_WeekIndexPThird + // WeekIndexPFourth is a pointer to WeekIndexVFourth + WeekIndexPFourth = &_WeekIndexPFourth + // WeekIndexPLast is a pointer to WeekIndexVLast + WeekIndexPLast = &_WeekIndexPLast +) + +var ( + _WeekIndexPFirst = WeekIndexVFirst + _WeekIndexPSecond = WeekIndexVSecond + _WeekIndexPThird = WeekIndexVThird + _WeekIndexPFourth = WeekIndexVFourth + _WeekIndexPLast = WeekIndexVLast +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go new file mode 100644 index 00000000..201cccd0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WeeklySchedule undocumented +type WeeklySchedule string + +const ( + // WeeklyScheduleVUserDefined undocumented + WeeklyScheduleVUserDefined WeeklySchedule = "userDefined" + // WeeklyScheduleVEveryday undocumented + WeeklyScheduleVEveryday WeeklySchedule = "everyday" + // WeeklyScheduleVSunday undocumented + WeeklyScheduleVSunday WeeklySchedule = "sunday" + // WeeklyScheduleVMonday undocumented + WeeklyScheduleVMonday WeeklySchedule = "monday" + // WeeklyScheduleVTuesday undocumented + WeeklyScheduleVTuesday WeeklySchedule = "tuesday" + // WeeklyScheduleVWednesday undocumented + WeeklyScheduleVWednesday WeeklySchedule = "wednesday" + // WeeklyScheduleVThursday undocumented + WeeklyScheduleVThursday WeeklySchedule = "thursday" + // WeeklyScheduleVFriday undocumented + WeeklyScheduleVFriday WeeklySchedule = "friday" + // WeeklyScheduleVSaturday undocumented + WeeklyScheduleVSaturday WeeklySchedule = "saturday" + // WeeklyScheduleVNoScheduledScan undocumented + WeeklyScheduleVNoScheduledScan WeeklySchedule = "noScheduledScan" +) + +var ( + // WeeklySchedulePUserDefined is a pointer to WeeklyScheduleVUserDefined + WeeklySchedulePUserDefined = &_WeeklySchedulePUserDefined + // WeeklySchedulePEveryday is a pointer to WeeklyScheduleVEveryday + WeeklySchedulePEveryday = &_WeeklySchedulePEveryday + // WeeklySchedulePSunday is a pointer to WeeklyScheduleVSunday + WeeklySchedulePSunday = &_WeeklySchedulePSunday + // WeeklySchedulePMonday is a pointer to WeeklyScheduleVMonday + WeeklySchedulePMonday = &_WeeklySchedulePMonday + // WeeklySchedulePTuesday is a pointer to WeeklyScheduleVTuesday + WeeklySchedulePTuesday = &_WeeklySchedulePTuesday + // WeeklySchedulePWednesday is a pointer to WeeklyScheduleVWednesday + WeeklySchedulePWednesday = &_WeeklySchedulePWednesday + // WeeklySchedulePThursday is a pointer to WeeklyScheduleVThursday + WeeklySchedulePThursday = &_WeeklySchedulePThursday + // WeeklySchedulePFriday is a pointer to WeeklyScheduleVFriday + WeeklySchedulePFriday = &_WeeklySchedulePFriday + // WeeklySchedulePSaturday is a pointer to WeeklyScheduleVSaturday + WeeklySchedulePSaturday = &_WeeklySchedulePSaturday + // WeeklySchedulePNoScheduledScan is a pointer to WeeklyScheduleVNoScheduledScan + WeeklySchedulePNoScheduledScan = &_WeeklySchedulePNoScheduledScan +) + +var ( + _WeeklySchedulePUserDefined = WeeklyScheduleVUserDefined + _WeeklySchedulePEveryday = WeeklyScheduleVEveryday + _WeeklySchedulePSunday = WeeklyScheduleVSunday + _WeeklySchedulePMonday = WeeklyScheduleVMonday + _WeeklySchedulePTuesday = WeeklyScheduleVTuesday + _WeeklySchedulePWednesday = WeeklyScheduleVWednesday + _WeeklySchedulePThursday = WeeklyScheduleVThursday + _WeeklySchedulePFriday = WeeklyScheduleVFriday + _WeeklySchedulePSaturday = WeeklyScheduleVSaturday + _WeeklySchedulePNoScheduledScan = WeeklyScheduleVNoScheduledScan +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go new file mode 100644 index 00000000..e99fc7e8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go @@ -0,0 +1,30 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WelcomeScreenMeetingInformation undocumented +type WelcomeScreenMeetingInformation string + +const ( + // WelcomeScreenMeetingInformationVUserDefined undocumented + WelcomeScreenMeetingInformationVUserDefined WelcomeScreenMeetingInformation = "userDefined" + // WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly undocumented + WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly WelcomeScreenMeetingInformation = "showOrganizerAndTimeOnly" + // WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject undocumented + WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject WelcomeScreenMeetingInformation = "showOrganizerAndTimeAndSubject" +) + +var ( + // WelcomeScreenMeetingInformationPUserDefined is a pointer to WelcomeScreenMeetingInformationVUserDefined + WelcomeScreenMeetingInformationPUserDefined = &_WelcomeScreenMeetingInformationPUserDefined + // WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly is a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly + WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly = &_WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly + // WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject is a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject + WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject = &_WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject +) + +var ( + _WelcomeScreenMeetingInformationPUserDefined = WelcomeScreenMeetingInformationVUserDefined + _WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly = WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly + _WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject = WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go new file mode 100644 index 00000000..d2fd9957 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go @@ -0,0 +1,99 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WiFiAuthenticationMethod undocumented +type WiFiAuthenticationMethod string + +const ( + // WiFiAuthenticationMethodVCertificate undocumented + WiFiAuthenticationMethodVCertificate WiFiAuthenticationMethod = "certificate" + // WiFiAuthenticationMethodVUsernameAndPassword undocumented + WiFiAuthenticationMethodVUsernameAndPassword WiFiAuthenticationMethod = "usernameAndPassword" + // WiFiAuthenticationMethodVDerivedCredential undocumented + WiFiAuthenticationMethodVDerivedCredential WiFiAuthenticationMethod = "derivedCredential" +) + +var ( + // WiFiAuthenticationMethodPCertificate is a pointer to WiFiAuthenticationMethodVCertificate + WiFiAuthenticationMethodPCertificate = &_WiFiAuthenticationMethodPCertificate + // WiFiAuthenticationMethodPUsernameAndPassword is a pointer to WiFiAuthenticationMethodVUsernameAndPassword + WiFiAuthenticationMethodPUsernameAndPassword = &_WiFiAuthenticationMethodPUsernameAndPassword + // WiFiAuthenticationMethodPDerivedCredential is a pointer to WiFiAuthenticationMethodVDerivedCredential + WiFiAuthenticationMethodPDerivedCredential = &_WiFiAuthenticationMethodPDerivedCredential +) + +var ( + _WiFiAuthenticationMethodPCertificate = WiFiAuthenticationMethodVCertificate + _WiFiAuthenticationMethodPUsernameAndPassword = WiFiAuthenticationMethodVUsernameAndPassword + _WiFiAuthenticationMethodPDerivedCredential = WiFiAuthenticationMethodVDerivedCredential +) + +// WiFiProxySetting undocumented +type WiFiProxySetting string + +const ( + // WiFiProxySettingVNone undocumented + WiFiProxySettingVNone WiFiProxySetting = "none" + // WiFiProxySettingVManual undocumented + WiFiProxySettingVManual WiFiProxySetting = "manual" + // WiFiProxySettingVAutomatic undocumented + WiFiProxySettingVAutomatic WiFiProxySetting = "automatic" +) + +var ( + // WiFiProxySettingPNone is a pointer to WiFiProxySettingVNone + WiFiProxySettingPNone = &_WiFiProxySettingPNone + // WiFiProxySettingPManual is a pointer to WiFiProxySettingVManual + WiFiProxySettingPManual = &_WiFiProxySettingPManual + // WiFiProxySettingPAutomatic is a pointer to WiFiProxySettingVAutomatic + WiFiProxySettingPAutomatic = &_WiFiProxySettingPAutomatic +) + +var ( + _WiFiProxySettingPNone = WiFiProxySettingVNone + _WiFiProxySettingPManual = WiFiProxySettingVManual + _WiFiProxySettingPAutomatic = WiFiProxySettingVAutomatic +) + +// WiFiSecurityType undocumented +type WiFiSecurityType string + +const ( + // WiFiSecurityTypeVOpen undocumented + WiFiSecurityTypeVOpen WiFiSecurityType = "open" + // WiFiSecurityTypeVWpaPersonal undocumented + WiFiSecurityTypeVWpaPersonal WiFiSecurityType = "wpaPersonal" + // WiFiSecurityTypeVWpaEnterprise undocumented + WiFiSecurityTypeVWpaEnterprise WiFiSecurityType = "wpaEnterprise" + // WiFiSecurityTypeVWep undocumented + WiFiSecurityTypeVWep WiFiSecurityType = "wep" + // WiFiSecurityTypeVWpa2Personal undocumented + WiFiSecurityTypeVWpa2Personal WiFiSecurityType = "wpa2Personal" + // WiFiSecurityTypeVWpa2Enterprise undocumented + WiFiSecurityTypeVWpa2Enterprise WiFiSecurityType = "wpa2Enterprise" +) + +var ( + // WiFiSecurityTypePOpen is a pointer to WiFiSecurityTypeVOpen + WiFiSecurityTypePOpen = &_WiFiSecurityTypePOpen + // WiFiSecurityTypePWpaPersonal is a pointer to WiFiSecurityTypeVWpaPersonal + WiFiSecurityTypePWpaPersonal = &_WiFiSecurityTypePWpaPersonal + // WiFiSecurityTypePWpaEnterprise is a pointer to WiFiSecurityTypeVWpaEnterprise + WiFiSecurityTypePWpaEnterprise = &_WiFiSecurityTypePWpaEnterprise + // WiFiSecurityTypePWep is a pointer to WiFiSecurityTypeVWep + WiFiSecurityTypePWep = &_WiFiSecurityTypePWep + // WiFiSecurityTypePWpa2Personal is a pointer to WiFiSecurityTypeVWpa2Personal + WiFiSecurityTypePWpa2Personal = &_WiFiSecurityTypePWpa2Personal + // WiFiSecurityTypePWpa2Enterprise is a pointer to WiFiSecurityTypeVWpa2Enterprise + WiFiSecurityTypePWpa2Enterprise = &_WiFiSecurityTypePWpa2Enterprise +) + +var ( + _WiFiSecurityTypePOpen = WiFiSecurityTypeVOpen + _WiFiSecurityTypePWpaPersonal = WiFiSecurityTypeVWpaPersonal + _WiFiSecurityTypePWpaEnterprise = WiFiSecurityTypeVWpaEnterprise + _WiFiSecurityTypePWep = WiFiSecurityTypeVWep + _WiFiSecurityTypePWpa2Personal = WiFiSecurityTypeVWpa2Personal + _WiFiSecurityTypePWpa2Enterprise = WiFiSecurityTypeVWpa2Enterprise +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go new file mode 100644 index 00000000..4ebdb5f2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go @@ -0,0 +1,309 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Win32LobAppDetectionOperator undocumented +type Win32LobAppDetectionOperator string + +const ( + // Win32LobAppDetectionOperatorVNotConfigured undocumented + Win32LobAppDetectionOperatorVNotConfigured Win32LobAppDetectionOperator = "notConfigured" + // Win32LobAppDetectionOperatorVEqual undocumented + Win32LobAppDetectionOperatorVEqual Win32LobAppDetectionOperator = "equal" + // Win32LobAppDetectionOperatorVNotEqual undocumented + Win32LobAppDetectionOperatorVNotEqual Win32LobAppDetectionOperator = "notEqual" + // Win32LobAppDetectionOperatorVGreaterThan undocumented + Win32LobAppDetectionOperatorVGreaterThan Win32LobAppDetectionOperator = "greaterThan" + // Win32LobAppDetectionOperatorVGreaterThanOrEqual undocumented + Win32LobAppDetectionOperatorVGreaterThanOrEqual Win32LobAppDetectionOperator = "greaterThanOrEqual" + // Win32LobAppDetectionOperatorVLessThan undocumented + Win32LobAppDetectionOperatorVLessThan Win32LobAppDetectionOperator = "lessThan" + // Win32LobAppDetectionOperatorVLessThanOrEqual undocumented + Win32LobAppDetectionOperatorVLessThanOrEqual Win32LobAppDetectionOperator = "lessThanOrEqual" +) + +var ( + // Win32LobAppDetectionOperatorPNotConfigured is a pointer to Win32LobAppDetectionOperatorVNotConfigured + Win32LobAppDetectionOperatorPNotConfigured = &_Win32LobAppDetectionOperatorPNotConfigured + // Win32LobAppDetectionOperatorPEqual is a pointer to Win32LobAppDetectionOperatorVEqual + Win32LobAppDetectionOperatorPEqual = &_Win32LobAppDetectionOperatorPEqual + // Win32LobAppDetectionOperatorPNotEqual is a pointer to Win32LobAppDetectionOperatorVNotEqual + Win32LobAppDetectionOperatorPNotEqual = &_Win32LobAppDetectionOperatorPNotEqual + // Win32LobAppDetectionOperatorPGreaterThan is a pointer to Win32LobAppDetectionOperatorVGreaterThan + Win32LobAppDetectionOperatorPGreaterThan = &_Win32LobAppDetectionOperatorPGreaterThan + // Win32LobAppDetectionOperatorPGreaterThanOrEqual is a pointer to Win32LobAppDetectionOperatorVGreaterThanOrEqual + Win32LobAppDetectionOperatorPGreaterThanOrEqual = &_Win32LobAppDetectionOperatorPGreaterThanOrEqual + // Win32LobAppDetectionOperatorPLessThan is a pointer to Win32LobAppDetectionOperatorVLessThan + Win32LobAppDetectionOperatorPLessThan = &_Win32LobAppDetectionOperatorPLessThan + // Win32LobAppDetectionOperatorPLessThanOrEqual is a pointer to Win32LobAppDetectionOperatorVLessThanOrEqual + Win32LobAppDetectionOperatorPLessThanOrEqual = &_Win32LobAppDetectionOperatorPLessThanOrEqual +) + +var ( + _Win32LobAppDetectionOperatorPNotConfigured = Win32LobAppDetectionOperatorVNotConfigured + _Win32LobAppDetectionOperatorPEqual = Win32LobAppDetectionOperatorVEqual + _Win32LobAppDetectionOperatorPNotEqual = Win32LobAppDetectionOperatorVNotEqual + _Win32LobAppDetectionOperatorPGreaterThan = Win32LobAppDetectionOperatorVGreaterThan + _Win32LobAppDetectionOperatorPGreaterThanOrEqual = Win32LobAppDetectionOperatorVGreaterThanOrEqual + _Win32LobAppDetectionOperatorPLessThan = Win32LobAppDetectionOperatorVLessThan + _Win32LobAppDetectionOperatorPLessThanOrEqual = Win32LobAppDetectionOperatorVLessThanOrEqual +) + +// Win32LobAppFileSystemDetectionType undocumented +type Win32LobAppFileSystemDetectionType string + +const ( + // Win32LobAppFileSystemDetectionTypeVNotConfigured undocumented + Win32LobAppFileSystemDetectionTypeVNotConfigured Win32LobAppFileSystemDetectionType = "notConfigured" + // Win32LobAppFileSystemDetectionTypeVExists undocumented + Win32LobAppFileSystemDetectionTypeVExists Win32LobAppFileSystemDetectionType = "exists" + // Win32LobAppFileSystemDetectionTypeVModifiedDate undocumented + Win32LobAppFileSystemDetectionTypeVModifiedDate Win32LobAppFileSystemDetectionType = "modifiedDate" + // Win32LobAppFileSystemDetectionTypeVCreatedDate undocumented + Win32LobAppFileSystemDetectionTypeVCreatedDate Win32LobAppFileSystemDetectionType = "createdDate" + // Win32LobAppFileSystemDetectionTypeVVersion undocumented + Win32LobAppFileSystemDetectionTypeVVersion Win32LobAppFileSystemDetectionType = "version" + // Win32LobAppFileSystemDetectionTypeVSizeInMB undocumented + Win32LobAppFileSystemDetectionTypeVSizeInMB Win32LobAppFileSystemDetectionType = "sizeInMB" + // Win32LobAppFileSystemDetectionTypeVDoesNotExist undocumented + Win32LobAppFileSystemDetectionTypeVDoesNotExist Win32LobAppFileSystemDetectionType = "doesNotExist" +) + +var ( + // Win32LobAppFileSystemDetectionTypePNotConfigured is a pointer to Win32LobAppFileSystemDetectionTypeVNotConfigured + Win32LobAppFileSystemDetectionTypePNotConfigured = &_Win32LobAppFileSystemDetectionTypePNotConfigured + // Win32LobAppFileSystemDetectionTypePExists is a pointer to Win32LobAppFileSystemDetectionTypeVExists + Win32LobAppFileSystemDetectionTypePExists = &_Win32LobAppFileSystemDetectionTypePExists + // Win32LobAppFileSystemDetectionTypePModifiedDate is a pointer to Win32LobAppFileSystemDetectionTypeVModifiedDate + Win32LobAppFileSystemDetectionTypePModifiedDate = &_Win32LobAppFileSystemDetectionTypePModifiedDate + // Win32LobAppFileSystemDetectionTypePCreatedDate is a pointer to Win32LobAppFileSystemDetectionTypeVCreatedDate + Win32LobAppFileSystemDetectionTypePCreatedDate = &_Win32LobAppFileSystemDetectionTypePCreatedDate + // Win32LobAppFileSystemDetectionTypePVersion is a pointer to Win32LobAppFileSystemDetectionTypeVVersion + Win32LobAppFileSystemDetectionTypePVersion = &_Win32LobAppFileSystemDetectionTypePVersion + // Win32LobAppFileSystemDetectionTypePSizeInMB is a pointer to Win32LobAppFileSystemDetectionTypeVSizeInMB + Win32LobAppFileSystemDetectionTypePSizeInMB = &_Win32LobAppFileSystemDetectionTypePSizeInMB + // Win32LobAppFileSystemDetectionTypePDoesNotExist is a pointer to Win32LobAppFileSystemDetectionTypeVDoesNotExist + Win32LobAppFileSystemDetectionTypePDoesNotExist = &_Win32LobAppFileSystemDetectionTypePDoesNotExist +) + +var ( + _Win32LobAppFileSystemDetectionTypePNotConfigured = Win32LobAppFileSystemDetectionTypeVNotConfigured + _Win32LobAppFileSystemDetectionTypePExists = Win32LobAppFileSystemDetectionTypeVExists + _Win32LobAppFileSystemDetectionTypePModifiedDate = Win32LobAppFileSystemDetectionTypeVModifiedDate + _Win32LobAppFileSystemDetectionTypePCreatedDate = Win32LobAppFileSystemDetectionTypeVCreatedDate + _Win32LobAppFileSystemDetectionTypePVersion = Win32LobAppFileSystemDetectionTypeVVersion + _Win32LobAppFileSystemDetectionTypePSizeInMB = Win32LobAppFileSystemDetectionTypeVSizeInMB + _Win32LobAppFileSystemDetectionTypePDoesNotExist = Win32LobAppFileSystemDetectionTypeVDoesNotExist +) + +// Win32LobAppMsiPackageType undocumented +type Win32LobAppMsiPackageType string + +const ( + // Win32LobAppMsiPackageTypeVPerMachine undocumented + Win32LobAppMsiPackageTypeVPerMachine Win32LobAppMsiPackageType = "perMachine" + // Win32LobAppMsiPackageTypeVPerUser undocumented + Win32LobAppMsiPackageTypeVPerUser Win32LobAppMsiPackageType = "perUser" + // Win32LobAppMsiPackageTypeVDualPurpose undocumented + Win32LobAppMsiPackageTypeVDualPurpose Win32LobAppMsiPackageType = "dualPurpose" +) + +var ( + // Win32LobAppMsiPackageTypePPerMachine is a pointer to Win32LobAppMsiPackageTypeVPerMachine + Win32LobAppMsiPackageTypePPerMachine = &_Win32LobAppMsiPackageTypePPerMachine + // Win32LobAppMsiPackageTypePPerUser is a pointer to Win32LobAppMsiPackageTypeVPerUser + Win32LobAppMsiPackageTypePPerUser = &_Win32LobAppMsiPackageTypePPerUser + // Win32LobAppMsiPackageTypePDualPurpose is a pointer to Win32LobAppMsiPackageTypeVDualPurpose + Win32LobAppMsiPackageTypePDualPurpose = &_Win32LobAppMsiPackageTypePDualPurpose +) + +var ( + _Win32LobAppMsiPackageTypePPerMachine = Win32LobAppMsiPackageTypeVPerMachine + _Win32LobAppMsiPackageTypePPerUser = Win32LobAppMsiPackageTypeVPerUser + _Win32LobAppMsiPackageTypePDualPurpose = Win32LobAppMsiPackageTypeVDualPurpose +) + +// Win32LobAppNotification undocumented +type Win32LobAppNotification string + +const ( + // Win32LobAppNotificationVShowAll undocumented + Win32LobAppNotificationVShowAll Win32LobAppNotification = "showAll" + // Win32LobAppNotificationVShowReboot undocumented + Win32LobAppNotificationVShowReboot Win32LobAppNotification = "showReboot" + // Win32LobAppNotificationVHideAll undocumented + Win32LobAppNotificationVHideAll Win32LobAppNotification = "hideAll" +) + +var ( + // Win32LobAppNotificationPShowAll is a pointer to Win32LobAppNotificationVShowAll + Win32LobAppNotificationPShowAll = &_Win32LobAppNotificationPShowAll + // Win32LobAppNotificationPShowReboot is a pointer to Win32LobAppNotificationVShowReboot + Win32LobAppNotificationPShowReboot = &_Win32LobAppNotificationPShowReboot + // Win32LobAppNotificationPHideAll is a pointer to Win32LobAppNotificationVHideAll + Win32LobAppNotificationPHideAll = &_Win32LobAppNotificationPHideAll +) + +var ( + _Win32LobAppNotificationPShowAll = Win32LobAppNotificationVShowAll + _Win32LobAppNotificationPShowReboot = Win32LobAppNotificationVShowReboot + _Win32LobAppNotificationPHideAll = Win32LobAppNotificationVHideAll +) + +// Win32LobAppPowerShellScriptDetectionType undocumented +type Win32LobAppPowerShellScriptDetectionType string + +const ( + // Win32LobAppPowerShellScriptDetectionTypeVNotConfigured undocumented + Win32LobAppPowerShellScriptDetectionTypeVNotConfigured Win32LobAppPowerShellScriptDetectionType = "notConfigured" + // Win32LobAppPowerShellScriptDetectionTypeVString undocumented + Win32LobAppPowerShellScriptDetectionTypeVString Win32LobAppPowerShellScriptDetectionType = "string" + // Win32LobAppPowerShellScriptDetectionTypeVDateTime undocumented + Win32LobAppPowerShellScriptDetectionTypeVDateTime Win32LobAppPowerShellScriptDetectionType = "dateTime" + // Win32LobAppPowerShellScriptDetectionTypeVInteger undocumented + Win32LobAppPowerShellScriptDetectionTypeVInteger Win32LobAppPowerShellScriptDetectionType = "integer" + // Win32LobAppPowerShellScriptDetectionTypeVFloat undocumented + Win32LobAppPowerShellScriptDetectionTypeVFloat Win32LobAppPowerShellScriptDetectionType = "float" + // Win32LobAppPowerShellScriptDetectionTypeVVersion undocumented + Win32LobAppPowerShellScriptDetectionTypeVVersion Win32LobAppPowerShellScriptDetectionType = "version" + // Win32LobAppPowerShellScriptDetectionTypeVBoolean undocumented + Win32LobAppPowerShellScriptDetectionTypeVBoolean Win32LobAppPowerShellScriptDetectionType = "boolean" +) + +var ( + // Win32LobAppPowerShellScriptDetectionTypePNotConfigured is a pointer to Win32LobAppPowerShellScriptDetectionTypeVNotConfigured + Win32LobAppPowerShellScriptDetectionTypePNotConfigured = &_Win32LobAppPowerShellScriptDetectionTypePNotConfigured + // Win32LobAppPowerShellScriptDetectionTypePString is a pointer to Win32LobAppPowerShellScriptDetectionTypeVString + Win32LobAppPowerShellScriptDetectionTypePString = &_Win32LobAppPowerShellScriptDetectionTypePString + // Win32LobAppPowerShellScriptDetectionTypePDateTime is a pointer to Win32LobAppPowerShellScriptDetectionTypeVDateTime + Win32LobAppPowerShellScriptDetectionTypePDateTime = &_Win32LobAppPowerShellScriptDetectionTypePDateTime + // Win32LobAppPowerShellScriptDetectionTypePInteger is a pointer to Win32LobAppPowerShellScriptDetectionTypeVInteger + Win32LobAppPowerShellScriptDetectionTypePInteger = &_Win32LobAppPowerShellScriptDetectionTypePInteger + // Win32LobAppPowerShellScriptDetectionTypePFloat is a pointer to Win32LobAppPowerShellScriptDetectionTypeVFloat + Win32LobAppPowerShellScriptDetectionTypePFloat = &_Win32LobAppPowerShellScriptDetectionTypePFloat + // Win32LobAppPowerShellScriptDetectionTypePVersion is a pointer to Win32LobAppPowerShellScriptDetectionTypeVVersion + Win32LobAppPowerShellScriptDetectionTypePVersion = &_Win32LobAppPowerShellScriptDetectionTypePVersion + // Win32LobAppPowerShellScriptDetectionTypePBoolean is a pointer to Win32LobAppPowerShellScriptDetectionTypeVBoolean + Win32LobAppPowerShellScriptDetectionTypePBoolean = &_Win32LobAppPowerShellScriptDetectionTypePBoolean +) + +var ( + _Win32LobAppPowerShellScriptDetectionTypePNotConfigured = Win32LobAppPowerShellScriptDetectionTypeVNotConfigured + _Win32LobAppPowerShellScriptDetectionTypePString = Win32LobAppPowerShellScriptDetectionTypeVString + _Win32LobAppPowerShellScriptDetectionTypePDateTime = Win32LobAppPowerShellScriptDetectionTypeVDateTime + _Win32LobAppPowerShellScriptDetectionTypePInteger = Win32LobAppPowerShellScriptDetectionTypeVInteger + _Win32LobAppPowerShellScriptDetectionTypePFloat = Win32LobAppPowerShellScriptDetectionTypeVFloat + _Win32LobAppPowerShellScriptDetectionTypePVersion = Win32LobAppPowerShellScriptDetectionTypeVVersion + _Win32LobAppPowerShellScriptDetectionTypePBoolean = Win32LobAppPowerShellScriptDetectionTypeVBoolean +) + +// Win32LobAppRegistryDetectionType undocumented +type Win32LobAppRegistryDetectionType string + +const ( + // Win32LobAppRegistryDetectionTypeVNotConfigured undocumented + Win32LobAppRegistryDetectionTypeVNotConfigured Win32LobAppRegistryDetectionType = "notConfigured" + // Win32LobAppRegistryDetectionTypeVExists undocumented + Win32LobAppRegistryDetectionTypeVExists Win32LobAppRegistryDetectionType = "exists" + // Win32LobAppRegistryDetectionTypeVDoesNotExist undocumented + Win32LobAppRegistryDetectionTypeVDoesNotExist Win32LobAppRegistryDetectionType = "doesNotExist" + // Win32LobAppRegistryDetectionTypeVString undocumented + Win32LobAppRegistryDetectionTypeVString Win32LobAppRegistryDetectionType = "string" + // Win32LobAppRegistryDetectionTypeVInteger undocumented + Win32LobAppRegistryDetectionTypeVInteger Win32LobAppRegistryDetectionType = "integer" + // Win32LobAppRegistryDetectionTypeVVersion undocumented + Win32LobAppRegistryDetectionTypeVVersion Win32LobAppRegistryDetectionType = "version" +) + +var ( + // Win32LobAppRegistryDetectionTypePNotConfigured is a pointer to Win32LobAppRegistryDetectionTypeVNotConfigured + Win32LobAppRegistryDetectionTypePNotConfigured = &_Win32LobAppRegistryDetectionTypePNotConfigured + // Win32LobAppRegistryDetectionTypePExists is a pointer to Win32LobAppRegistryDetectionTypeVExists + Win32LobAppRegistryDetectionTypePExists = &_Win32LobAppRegistryDetectionTypePExists + // Win32LobAppRegistryDetectionTypePDoesNotExist is a pointer to Win32LobAppRegistryDetectionTypeVDoesNotExist + Win32LobAppRegistryDetectionTypePDoesNotExist = &_Win32LobAppRegistryDetectionTypePDoesNotExist + // Win32LobAppRegistryDetectionTypePString is a pointer to Win32LobAppRegistryDetectionTypeVString + Win32LobAppRegistryDetectionTypePString = &_Win32LobAppRegistryDetectionTypePString + // Win32LobAppRegistryDetectionTypePInteger is a pointer to Win32LobAppRegistryDetectionTypeVInteger + Win32LobAppRegistryDetectionTypePInteger = &_Win32LobAppRegistryDetectionTypePInteger + // Win32LobAppRegistryDetectionTypePVersion is a pointer to Win32LobAppRegistryDetectionTypeVVersion + Win32LobAppRegistryDetectionTypePVersion = &_Win32LobAppRegistryDetectionTypePVersion +) + +var ( + _Win32LobAppRegistryDetectionTypePNotConfigured = Win32LobAppRegistryDetectionTypeVNotConfigured + _Win32LobAppRegistryDetectionTypePExists = Win32LobAppRegistryDetectionTypeVExists + _Win32LobAppRegistryDetectionTypePDoesNotExist = Win32LobAppRegistryDetectionTypeVDoesNotExist + _Win32LobAppRegistryDetectionTypePString = Win32LobAppRegistryDetectionTypeVString + _Win32LobAppRegistryDetectionTypePInteger = Win32LobAppRegistryDetectionTypeVInteger + _Win32LobAppRegistryDetectionTypePVersion = Win32LobAppRegistryDetectionTypeVVersion +) + +// Win32LobAppRestartBehavior undocumented +type Win32LobAppRestartBehavior string + +const ( + // Win32LobAppRestartBehaviorVBasedOnReturnCode undocumented + Win32LobAppRestartBehaviorVBasedOnReturnCode Win32LobAppRestartBehavior = "basedOnReturnCode" + // Win32LobAppRestartBehaviorVAllow undocumented + Win32LobAppRestartBehaviorVAllow Win32LobAppRestartBehavior = "allow" + // Win32LobAppRestartBehaviorVSuppress undocumented + Win32LobAppRestartBehaviorVSuppress Win32LobAppRestartBehavior = "suppress" + // Win32LobAppRestartBehaviorVForce undocumented + Win32LobAppRestartBehaviorVForce Win32LobAppRestartBehavior = "force" +) + +var ( + // Win32LobAppRestartBehaviorPBasedOnReturnCode is a pointer to Win32LobAppRestartBehaviorVBasedOnReturnCode + Win32LobAppRestartBehaviorPBasedOnReturnCode = &_Win32LobAppRestartBehaviorPBasedOnReturnCode + // Win32LobAppRestartBehaviorPAllow is a pointer to Win32LobAppRestartBehaviorVAllow + Win32LobAppRestartBehaviorPAllow = &_Win32LobAppRestartBehaviorPAllow + // Win32LobAppRestartBehaviorPSuppress is a pointer to Win32LobAppRestartBehaviorVSuppress + Win32LobAppRestartBehaviorPSuppress = &_Win32LobAppRestartBehaviorPSuppress + // Win32LobAppRestartBehaviorPForce is a pointer to Win32LobAppRestartBehaviorVForce + Win32LobAppRestartBehaviorPForce = &_Win32LobAppRestartBehaviorPForce +) + +var ( + _Win32LobAppRestartBehaviorPBasedOnReturnCode = Win32LobAppRestartBehaviorVBasedOnReturnCode + _Win32LobAppRestartBehaviorPAllow = Win32LobAppRestartBehaviorVAllow + _Win32LobAppRestartBehaviorPSuppress = Win32LobAppRestartBehaviorVSuppress + _Win32LobAppRestartBehaviorPForce = Win32LobAppRestartBehaviorVForce +) + +// Win32LobAppReturnCodeType undocumented +type Win32LobAppReturnCodeType string + +const ( + // Win32LobAppReturnCodeTypeVFailed undocumented + Win32LobAppReturnCodeTypeVFailed Win32LobAppReturnCodeType = "failed" + // Win32LobAppReturnCodeTypeVSuccess undocumented + Win32LobAppReturnCodeTypeVSuccess Win32LobAppReturnCodeType = "success" + // Win32LobAppReturnCodeTypeVSoftReboot undocumented + Win32LobAppReturnCodeTypeVSoftReboot Win32LobAppReturnCodeType = "softReboot" + // Win32LobAppReturnCodeTypeVHardReboot undocumented + Win32LobAppReturnCodeTypeVHardReboot Win32LobAppReturnCodeType = "hardReboot" + // Win32LobAppReturnCodeTypeVRetry undocumented + Win32LobAppReturnCodeTypeVRetry Win32LobAppReturnCodeType = "retry" +) + +var ( + // Win32LobAppReturnCodeTypePFailed is a pointer to Win32LobAppReturnCodeTypeVFailed + Win32LobAppReturnCodeTypePFailed = &_Win32LobAppReturnCodeTypePFailed + // Win32LobAppReturnCodeTypePSuccess is a pointer to Win32LobAppReturnCodeTypeVSuccess + Win32LobAppReturnCodeTypePSuccess = &_Win32LobAppReturnCodeTypePSuccess + // Win32LobAppReturnCodeTypePSoftReboot is a pointer to Win32LobAppReturnCodeTypeVSoftReboot + Win32LobAppReturnCodeTypePSoftReboot = &_Win32LobAppReturnCodeTypePSoftReboot + // Win32LobAppReturnCodeTypePHardReboot is a pointer to Win32LobAppReturnCodeTypeVHardReboot + Win32LobAppReturnCodeTypePHardReboot = &_Win32LobAppReturnCodeTypePHardReboot + // Win32LobAppReturnCodeTypePRetry is a pointer to Win32LobAppReturnCodeTypeVRetry + Win32LobAppReturnCodeTypePRetry = &_Win32LobAppReturnCodeTypePRetry +) + +var ( + _Win32LobAppReturnCodeTypePFailed = Win32LobAppReturnCodeTypeVFailed + _Win32LobAppReturnCodeTypePSuccess = Win32LobAppReturnCodeTypeVSuccess + _Win32LobAppReturnCodeTypePSoftReboot = Win32LobAppReturnCodeTypeVSoftReboot + _Win32LobAppReturnCodeTypePHardReboot = Win32LobAppReturnCodeTypeVHardReboot + _Win32LobAppReturnCodeTypePRetry = Win32LobAppReturnCodeTypeVRetry +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go new file mode 100644 index 00000000..d95f48c5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go @@ -0,0 +1,1723 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WindowsAppStartLayoutTileSize undocumented +type WindowsAppStartLayoutTileSize string + +const ( + // WindowsAppStartLayoutTileSizeVHidden undocumented + WindowsAppStartLayoutTileSizeVHidden WindowsAppStartLayoutTileSize = "hidden" + // WindowsAppStartLayoutTileSizeVSmall undocumented + WindowsAppStartLayoutTileSizeVSmall WindowsAppStartLayoutTileSize = "small" + // WindowsAppStartLayoutTileSizeVMedium undocumented + WindowsAppStartLayoutTileSizeVMedium WindowsAppStartLayoutTileSize = "medium" + // WindowsAppStartLayoutTileSizeVWide undocumented + WindowsAppStartLayoutTileSizeVWide WindowsAppStartLayoutTileSize = "wide" + // WindowsAppStartLayoutTileSizeVLarge undocumented + WindowsAppStartLayoutTileSizeVLarge WindowsAppStartLayoutTileSize = "large" +) + +var ( + // WindowsAppStartLayoutTileSizePHidden is a pointer to WindowsAppStartLayoutTileSizeVHidden + WindowsAppStartLayoutTileSizePHidden = &_WindowsAppStartLayoutTileSizePHidden + // WindowsAppStartLayoutTileSizePSmall is a pointer to WindowsAppStartLayoutTileSizeVSmall + WindowsAppStartLayoutTileSizePSmall = &_WindowsAppStartLayoutTileSizePSmall + // WindowsAppStartLayoutTileSizePMedium is a pointer to WindowsAppStartLayoutTileSizeVMedium + WindowsAppStartLayoutTileSizePMedium = &_WindowsAppStartLayoutTileSizePMedium + // WindowsAppStartLayoutTileSizePWide is a pointer to WindowsAppStartLayoutTileSizeVWide + WindowsAppStartLayoutTileSizePWide = &_WindowsAppStartLayoutTileSizePWide + // WindowsAppStartLayoutTileSizePLarge is a pointer to WindowsAppStartLayoutTileSizeVLarge + WindowsAppStartLayoutTileSizePLarge = &_WindowsAppStartLayoutTileSizePLarge +) + +var ( + _WindowsAppStartLayoutTileSizePHidden = WindowsAppStartLayoutTileSizeVHidden + _WindowsAppStartLayoutTileSizePSmall = WindowsAppStartLayoutTileSizeVSmall + _WindowsAppStartLayoutTileSizePMedium = WindowsAppStartLayoutTileSizeVMedium + _WindowsAppStartLayoutTileSizePWide = WindowsAppStartLayoutTileSizeVWide + _WindowsAppStartLayoutTileSizePLarge = WindowsAppStartLayoutTileSizeVLarge +) + +// WindowsArchitecture undocumented +type WindowsArchitecture string + +const ( + // WindowsArchitectureVNone undocumented + WindowsArchitectureVNone WindowsArchitecture = "none" + // WindowsArchitectureVX86 undocumented + WindowsArchitectureVX86 WindowsArchitecture = "x86" + // WindowsArchitectureVX64 undocumented + WindowsArchitectureVX64 WindowsArchitecture = "x64" + // WindowsArchitectureVArm undocumented + WindowsArchitectureVArm WindowsArchitecture = "arm" + // WindowsArchitectureVNeutral undocumented + WindowsArchitectureVNeutral WindowsArchitecture = "neutral" + // WindowsArchitectureVArm64 undocumented + WindowsArchitectureVArm64 WindowsArchitecture = "arm64" +) + +var ( + // WindowsArchitecturePNone is a pointer to WindowsArchitectureVNone + WindowsArchitecturePNone = &_WindowsArchitecturePNone + // WindowsArchitecturePX86 is a pointer to WindowsArchitectureVX86 + WindowsArchitecturePX86 = &_WindowsArchitecturePX86 + // WindowsArchitecturePX64 is a pointer to WindowsArchitectureVX64 + WindowsArchitecturePX64 = &_WindowsArchitecturePX64 + // WindowsArchitecturePArm is a pointer to WindowsArchitectureVArm + WindowsArchitecturePArm = &_WindowsArchitecturePArm + // WindowsArchitecturePNeutral is a pointer to WindowsArchitectureVNeutral + WindowsArchitecturePNeutral = &_WindowsArchitecturePNeutral + // WindowsArchitecturePArm64 is a pointer to WindowsArchitectureVArm64 + WindowsArchitecturePArm64 = &_WindowsArchitecturePArm64 +) + +var ( + _WindowsArchitecturePNone = WindowsArchitectureVNone + _WindowsArchitecturePX86 = WindowsArchitectureVX86 + _WindowsArchitecturePX64 = WindowsArchitectureVX64 + _WindowsArchitecturePArm = WindowsArchitectureVArm + _WindowsArchitecturePNeutral = WindowsArchitectureVNeutral + _WindowsArchitecturePArm64 = WindowsArchitectureVArm64 +) + +// WindowsAutopilotDeploymentState undocumented +type WindowsAutopilotDeploymentState string + +const ( + // WindowsAutopilotDeploymentStateVUnknown undocumented + WindowsAutopilotDeploymentStateVUnknown WindowsAutopilotDeploymentState = "unknown" + // WindowsAutopilotDeploymentStateVSuccess undocumented + WindowsAutopilotDeploymentStateVSuccess WindowsAutopilotDeploymentState = "success" + // WindowsAutopilotDeploymentStateVInProgress undocumented + WindowsAutopilotDeploymentStateVInProgress WindowsAutopilotDeploymentState = "inProgress" + // WindowsAutopilotDeploymentStateVFailure undocumented + WindowsAutopilotDeploymentStateVFailure WindowsAutopilotDeploymentState = "failure" + // WindowsAutopilotDeploymentStateVSuccessWithTimeout undocumented + WindowsAutopilotDeploymentStateVSuccessWithTimeout WindowsAutopilotDeploymentState = "successWithTimeout" +) + +var ( + // WindowsAutopilotDeploymentStatePUnknown is a pointer to WindowsAutopilotDeploymentStateVUnknown + WindowsAutopilotDeploymentStatePUnknown = &_WindowsAutopilotDeploymentStatePUnknown + // WindowsAutopilotDeploymentStatePSuccess is a pointer to WindowsAutopilotDeploymentStateVSuccess + WindowsAutopilotDeploymentStatePSuccess = &_WindowsAutopilotDeploymentStatePSuccess + // WindowsAutopilotDeploymentStatePInProgress is a pointer to WindowsAutopilotDeploymentStateVInProgress + WindowsAutopilotDeploymentStatePInProgress = &_WindowsAutopilotDeploymentStatePInProgress + // WindowsAutopilotDeploymentStatePFailure is a pointer to WindowsAutopilotDeploymentStateVFailure + WindowsAutopilotDeploymentStatePFailure = &_WindowsAutopilotDeploymentStatePFailure + // WindowsAutopilotDeploymentStatePSuccessWithTimeout is a pointer to WindowsAutopilotDeploymentStateVSuccessWithTimeout + WindowsAutopilotDeploymentStatePSuccessWithTimeout = &_WindowsAutopilotDeploymentStatePSuccessWithTimeout +) + +var ( + _WindowsAutopilotDeploymentStatePUnknown = WindowsAutopilotDeploymentStateVUnknown + _WindowsAutopilotDeploymentStatePSuccess = WindowsAutopilotDeploymentStateVSuccess + _WindowsAutopilotDeploymentStatePInProgress = WindowsAutopilotDeploymentStateVInProgress + _WindowsAutopilotDeploymentStatePFailure = WindowsAutopilotDeploymentStateVFailure + _WindowsAutopilotDeploymentStatePSuccessWithTimeout = WindowsAutopilotDeploymentStateVSuccessWithTimeout +) + +// WindowsAutopilotDeviceType undocumented +type WindowsAutopilotDeviceType string + +const ( + // WindowsAutopilotDeviceTypeVWindowsPc undocumented + WindowsAutopilotDeviceTypeVWindowsPc WindowsAutopilotDeviceType = "windowsPc" + // WindowsAutopilotDeviceTypeVSurfaceHub2 undocumented + WindowsAutopilotDeviceTypeVSurfaceHub2 WindowsAutopilotDeviceType = "surfaceHub2" +) + +var ( + // WindowsAutopilotDeviceTypePWindowsPc is a pointer to WindowsAutopilotDeviceTypeVWindowsPc + WindowsAutopilotDeviceTypePWindowsPc = &_WindowsAutopilotDeviceTypePWindowsPc + // WindowsAutopilotDeviceTypePSurfaceHub2 is a pointer to WindowsAutopilotDeviceTypeVSurfaceHub2 + WindowsAutopilotDeviceTypePSurfaceHub2 = &_WindowsAutopilotDeviceTypePSurfaceHub2 +) + +var ( + _WindowsAutopilotDeviceTypePWindowsPc = WindowsAutopilotDeviceTypeVWindowsPc + _WindowsAutopilotDeviceTypePSurfaceHub2 = WindowsAutopilotDeviceTypeVSurfaceHub2 +) + +// WindowsAutopilotEnrollmentType undocumented +type WindowsAutopilotEnrollmentType string + +const ( + // WindowsAutopilotEnrollmentTypeVUnknown undocumented + WindowsAutopilotEnrollmentTypeVUnknown WindowsAutopilotEnrollmentType = "unknown" + // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile undocumented + WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedWithAutopilotProfile" + // WindowsAutopilotEnrollmentTypeVOfflineDomainJoined undocumented + WindowsAutopilotEnrollmentTypeVOfflineDomainJoined WindowsAutopilotEnrollmentType = "offlineDomainJoined" + // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile undocumented + WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedUsingDeviceAuthWithAutopilotProfile" + // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile undocumented + WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedUsingDeviceAuthWithoutAutopilotProfile" + // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile undocumented + WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedWithOfflineAutopilotProfile" + // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove undocumented + WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = "azureADJoinedWithWhiteGlove" + // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove undocumented + WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = "offlineDomainJoinedWithWhiteGlove" + // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile undocumented + WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = "offlineDomainJoinedWithOfflineAutopilotProfile" +) + +var ( + // WindowsAutopilotEnrollmentTypePUnknown is a pointer to WindowsAutopilotEnrollmentTypeVUnknown + WindowsAutopilotEnrollmentTypePUnknown = &_WindowsAutopilotEnrollmentTypePUnknown + // WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile + WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile + // WindowsAutopilotEnrollmentTypePOfflineDomainJoined is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoined + WindowsAutopilotEnrollmentTypePOfflineDomainJoined = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoined + // WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile + WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile + // WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile + WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile + // WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile + WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile + // WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove + WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove + // WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove + WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove + // WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile + WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile +) + +var ( + _WindowsAutopilotEnrollmentTypePUnknown = WindowsAutopilotEnrollmentTypeVUnknown + _WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile + _WindowsAutopilotEnrollmentTypePOfflineDomainJoined = WindowsAutopilotEnrollmentTypeVOfflineDomainJoined + _WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile + _WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile + _WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile + _WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove + _WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove = WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove + _WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile = WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile +) + +// WindowsAutopilotProfileAssignmentDetailedStatus undocumented +type WindowsAutopilotProfileAssignmentDetailedStatus string + +const ( + // WindowsAutopilotProfileAssignmentDetailedStatusVNone undocumented + WindowsAutopilotProfileAssignmentDetailedStatusVNone WindowsAutopilotProfileAssignmentDetailedStatus = "none" + // WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet undocumented + WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet WindowsAutopilotProfileAssignmentDetailedStatus = "hardwareRequirementsNotMet" +) + +var ( + // WindowsAutopilotProfileAssignmentDetailedStatusPNone is a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVNone + WindowsAutopilotProfileAssignmentDetailedStatusPNone = &_WindowsAutopilotProfileAssignmentDetailedStatusPNone + // WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet is a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet + WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet = &_WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet +) + +var ( + _WindowsAutopilotProfileAssignmentDetailedStatusPNone = WindowsAutopilotProfileAssignmentDetailedStatusVNone + _WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet = WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet +) + +// WindowsAutopilotProfileAssignmentStatus undocumented +type WindowsAutopilotProfileAssignmentStatus string + +const ( + // WindowsAutopilotProfileAssignmentStatusVUnknown undocumented + WindowsAutopilotProfileAssignmentStatusVUnknown WindowsAutopilotProfileAssignmentStatus = "unknown" + // WindowsAutopilotProfileAssignmentStatusVAssignedInSync undocumented + WindowsAutopilotProfileAssignmentStatusVAssignedInSync WindowsAutopilotProfileAssignmentStatus = "assignedInSync" + // WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync undocumented + WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync WindowsAutopilotProfileAssignmentStatus = "assignedOutOfSync" + // WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState undocumented + WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState WindowsAutopilotProfileAssignmentStatus = "assignedUnkownSyncState" + // WindowsAutopilotProfileAssignmentStatusVNotAssigned undocumented + WindowsAutopilotProfileAssignmentStatusVNotAssigned WindowsAutopilotProfileAssignmentStatus = "notAssigned" + // WindowsAutopilotProfileAssignmentStatusVPending undocumented + WindowsAutopilotProfileAssignmentStatusVPending WindowsAutopilotProfileAssignmentStatus = "pending" + // WindowsAutopilotProfileAssignmentStatusVFailed undocumented + WindowsAutopilotProfileAssignmentStatusVFailed WindowsAutopilotProfileAssignmentStatus = "failed" +) + +var ( + // WindowsAutopilotProfileAssignmentStatusPUnknown is a pointer to WindowsAutopilotProfileAssignmentStatusVUnknown + WindowsAutopilotProfileAssignmentStatusPUnknown = &_WindowsAutopilotProfileAssignmentStatusPUnknown + // WindowsAutopilotProfileAssignmentStatusPAssignedInSync is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedInSync + WindowsAutopilotProfileAssignmentStatusPAssignedInSync = &_WindowsAutopilotProfileAssignmentStatusPAssignedInSync + // WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync + WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync = &_WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync + // WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState + WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState = &_WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState + // WindowsAutopilotProfileAssignmentStatusPNotAssigned is a pointer to WindowsAutopilotProfileAssignmentStatusVNotAssigned + WindowsAutopilotProfileAssignmentStatusPNotAssigned = &_WindowsAutopilotProfileAssignmentStatusPNotAssigned + // WindowsAutopilotProfileAssignmentStatusPPending is a pointer to WindowsAutopilotProfileAssignmentStatusVPending + WindowsAutopilotProfileAssignmentStatusPPending = &_WindowsAutopilotProfileAssignmentStatusPPending + // WindowsAutopilotProfileAssignmentStatusPFailed is a pointer to WindowsAutopilotProfileAssignmentStatusVFailed + WindowsAutopilotProfileAssignmentStatusPFailed = &_WindowsAutopilotProfileAssignmentStatusPFailed +) + +var ( + _WindowsAutopilotProfileAssignmentStatusPUnknown = WindowsAutopilotProfileAssignmentStatusVUnknown + _WindowsAutopilotProfileAssignmentStatusPAssignedInSync = WindowsAutopilotProfileAssignmentStatusVAssignedInSync + _WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync = WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync + _WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState = WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState + _WindowsAutopilotProfileAssignmentStatusPNotAssigned = WindowsAutopilotProfileAssignmentStatusVNotAssigned + _WindowsAutopilotProfileAssignmentStatusPPending = WindowsAutopilotProfileAssignmentStatusVPending + _WindowsAutopilotProfileAssignmentStatusPFailed = WindowsAutopilotProfileAssignmentStatusVFailed +) + +// WindowsAutopilotSyncStatus undocumented +type WindowsAutopilotSyncStatus string + +const ( + // WindowsAutopilotSyncStatusVUnknown undocumented + WindowsAutopilotSyncStatusVUnknown WindowsAutopilotSyncStatus = "unknown" + // WindowsAutopilotSyncStatusVInProgress undocumented + WindowsAutopilotSyncStatusVInProgress WindowsAutopilotSyncStatus = "inProgress" + // WindowsAutopilotSyncStatusVCompleted undocumented + WindowsAutopilotSyncStatusVCompleted WindowsAutopilotSyncStatus = "completed" + // WindowsAutopilotSyncStatusVFailed undocumented + WindowsAutopilotSyncStatusVFailed WindowsAutopilotSyncStatus = "failed" +) + +var ( + // WindowsAutopilotSyncStatusPUnknown is a pointer to WindowsAutopilotSyncStatusVUnknown + WindowsAutopilotSyncStatusPUnknown = &_WindowsAutopilotSyncStatusPUnknown + // WindowsAutopilotSyncStatusPInProgress is a pointer to WindowsAutopilotSyncStatusVInProgress + WindowsAutopilotSyncStatusPInProgress = &_WindowsAutopilotSyncStatusPInProgress + // WindowsAutopilotSyncStatusPCompleted is a pointer to WindowsAutopilotSyncStatusVCompleted + WindowsAutopilotSyncStatusPCompleted = &_WindowsAutopilotSyncStatusPCompleted + // WindowsAutopilotSyncStatusPFailed is a pointer to WindowsAutopilotSyncStatusVFailed + WindowsAutopilotSyncStatusPFailed = &_WindowsAutopilotSyncStatusPFailed +) + +var ( + _WindowsAutopilotSyncStatusPUnknown = WindowsAutopilotSyncStatusVUnknown + _WindowsAutopilotSyncStatusPInProgress = WindowsAutopilotSyncStatusVInProgress + _WindowsAutopilotSyncStatusPCompleted = WindowsAutopilotSyncStatusVCompleted + _WindowsAutopilotSyncStatusPFailed = WindowsAutopilotSyncStatusVFailed +) + +// WindowsDefenderApplicationControlSupplementalPolicyStatuses undocumented +type WindowsDefenderApplicationControlSupplementalPolicyStatuses string + +const ( + // WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown undocumented + WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown WindowsDefenderApplicationControlSupplementalPolicyStatuses = "unknown" + // WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess undocumented + WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess WindowsDefenderApplicationControlSupplementalPolicyStatuses = "success" + // WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError undocumented + WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError WindowsDefenderApplicationControlSupplementalPolicyStatuses = "tokenError" + // WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken undocumented + WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken WindowsDefenderApplicationControlSupplementalPolicyStatuses = "notAuthorizedByToken" + // WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound undocumented + WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound WindowsDefenderApplicationControlSupplementalPolicyStatuses = "policyNotFound" +) + +var ( + // WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown + WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown + // WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess + WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess + // WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError + WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError + // WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken + WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken + // WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound + WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound +) + +var ( + _WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown = WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown + _WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess = WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess + _WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError = WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError + _WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken = WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken + _WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound = WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound +) + +// WindowsDefenderTamperProtectionOptions undocumented +type WindowsDefenderTamperProtectionOptions string + +const ( + // WindowsDefenderTamperProtectionOptionsVNotConfigured undocumented + WindowsDefenderTamperProtectionOptionsVNotConfigured WindowsDefenderTamperProtectionOptions = "notConfigured" + // WindowsDefenderTamperProtectionOptionsVEnable undocumented + WindowsDefenderTamperProtectionOptionsVEnable WindowsDefenderTamperProtectionOptions = "enable" + // WindowsDefenderTamperProtectionOptionsVDisable undocumented + WindowsDefenderTamperProtectionOptionsVDisable WindowsDefenderTamperProtectionOptions = "disable" +) + +var ( + // WindowsDefenderTamperProtectionOptionsPNotConfigured is a pointer to WindowsDefenderTamperProtectionOptionsVNotConfigured + WindowsDefenderTamperProtectionOptionsPNotConfigured = &_WindowsDefenderTamperProtectionOptionsPNotConfigured + // WindowsDefenderTamperProtectionOptionsPEnable is a pointer to WindowsDefenderTamperProtectionOptionsVEnable + WindowsDefenderTamperProtectionOptionsPEnable = &_WindowsDefenderTamperProtectionOptionsPEnable + // WindowsDefenderTamperProtectionOptionsPDisable is a pointer to WindowsDefenderTamperProtectionOptionsVDisable + WindowsDefenderTamperProtectionOptionsPDisable = &_WindowsDefenderTamperProtectionOptionsPDisable +) + +var ( + _WindowsDefenderTamperProtectionOptionsPNotConfigured = WindowsDefenderTamperProtectionOptionsVNotConfigured + _WindowsDefenderTamperProtectionOptionsPEnable = WindowsDefenderTamperProtectionOptionsVEnable + _WindowsDefenderTamperProtectionOptionsPDisable = WindowsDefenderTamperProtectionOptionsVDisable +) + +// WindowsDeliveryOptimizationMode undocumented +type WindowsDeliveryOptimizationMode string + +const ( + // WindowsDeliveryOptimizationModeVUserDefined undocumented + WindowsDeliveryOptimizationModeVUserDefined WindowsDeliveryOptimizationMode = "userDefined" + // WindowsDeliveryOptimizationModeVHTTPOnly undocumented + WindowsDeliveryOptimizationModeVHTTPOnly WindowsDeliveryOptimizationMode = "httpOnly" + // WindowsDeliveryOptimizationModeVHTTPWithPeeringNat undocumented + WindowsDeliveryOptimizationModeVHTTPWithPeeringNat WindowsDeliveryOptimizationMode = "httpWithPeeringNat" + // WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup undocumented + WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup WindowsDeliveryOptimizationMode = "httpWithPeeringPrivateGroup" + // WindowsDeliveryOptimizationModeVHTTPWithInternetPeering undocumented + WindowsDeliveryOptimizationModeVHTTPWithInternetPeering WindowsDeliveryOptimizationMode = "httpWithInternetPeering" + // WindowsDeliveryOptimizationModeVSimpleDownload undocumented + WindowsDeliveryOptimizationModeVSimpleDownload WindowsDeliveryOptimizationMode = "simpleDownload" + // WindowsDeliveryOptimizationModeVBypassMode undocumented + WindowsDeliveryOptimizationModeVBypassMode WindowsDeliveryOptimizationMode = "bypassMode" +) + +var ( + // WindowsDeliveryOptimizationModePUserDefined is a pointer to WindowsDeliveryOptimizationModeVUserDefined + WindowsDeliveryOptimizationModePUserDefined = &_WindowsDeliveryOptimizationModePUserDefined + // WindowsDeliveryOptimizationModePHTTPOnly is a pointer to WindowsDeliveryOptimizationModeVHTTPOnly + WindowsDeliveryOptimizationModePHTTPOnly = &_WindowsDeliveryOptimizationModePHTTPOnly + // WindowsDeliveryOptimizationModePHTTPWithPeeringNat is a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringNat + WindowsDeliveryOptimizationModePHTTPWithPeeringNat = &_WindowsDeliveryOptimizationModePHTTPWithPeeringNat + // WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup is a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup + WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup = &_WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup + // WindowsDeliveryOptimizationModePHTTPWithInternetPeering is a pointer to WindowsDeliveryOptimizationModeVHTTPWithInternetPeering + WindowsDeliveryOptimizationModePHTTPWithInternetPeering = &_WindowsDeliveryOptimizationModePHTTPWithInternetPeering + // WindowsDeliveryOptimizationModePSimpleDownload is a pointer to WindowsDeliveryOptimizationModeVSimpleDownload + WindowsDeliveryOptimizationModePSimpleDownload = &_WindowsDeliveryOptimizationModePSimpleDownload + // WindowsDeliveryOptimizationModePBypassMode is a pointer to WindowsDeliveryOptimizationModeVBypassMode + WindowsDeliveryOptimizationModePBypassMode = &_WindowsDeliveryOptimizationModePBypassMode +) + +var ( + _WindowsDeliveryOptimizationModePUserDefined = WindowsDeliveryOptimizationModeVUserDefined + _WindowsDeliveryOptimizationModePHTTPOnly = WindowsDeliveryOptimizationModeVHTTPOnly + _WindowsDeliveryOptimizationModePHTTPWithPeeringNat = WindowsDeliveryOptimizationModeVHTTPWithPeeringNat + _WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup = WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup + _WindowsDeliveryOptimizationModePHTTPWithInternetPeering = WindowsDeliveryOptimizationModeVHTTPWithInternetPeering + _WindowsDeliveryOptimizationModePSimpleDownload = WindowsDeliveryOptimizationModeVSimpleDownload + _WindowsDeliveryOptimizationModePBypassMode = WindowsDeliveryOptimizationModeVBypassMode +) + +// WindowsDeviceHealthState undocumented +type WindowsDeviceHealthState string + +const ( + // WindowsDeviceHealthStateVClean undocumented + WindowsDeviceHealthStateVClean WindowsDeviceHealthState = "clean" + // WindowsDeviceHealthStateVFullScanPending undocumented + WindowsDeviceHealthStateVFullScanPending WindowsDeviceHealthState = "fullScanPending" + // WindowsDeviceHealthStateVRebootPending undocumented + WindowsDeviceHealthStateVRebootPending WindowsDeviceHealthState = "rebootPending" + // WindowsDeviceHealthStateVManualStepsPending undocumented + WindowsDeviceHealthStateVManualStepsPending WindowsDeviceHealthState = "manualStepsPending" + // WindowsDeviceHealthStateVOfflineScanPending undocumented + WindowsDeviceHealthStateVOfflineScanPending WindowsDeviceHealthState = "offlineScanPending" + // WindowsDeviceHealthStateVCritical undocumented + WindowsDeviceHealthStateVCritical WindowsDeviceHealthState = "critical" +) + +var ( + // WindowsDeviceHealthStatePClean is a pointer to WindowsDeviceHealthStateVClean + WindowsDeviceHealthStatePClean = &_WindowsDeviceHealthStatePClean + // WindowsDeviceHealthStatePFullScanPending is a pointer to WindowsDeviceHealthStateVFullScanPending + WindowsDeviceHealthStatePFullScanPending = &_WindowsDeviceHealthStatePFullScanPending + // WindowsDeviceHealthStatePRebootPending is a pointer to WindowsDeviceHealthStateVRebootPending + WindowsDeviceHealthStatePRebootPending = &_WindowsDeviceHealthStatePRebootPending + // WindowsDeviceHealthStatePManualStepsPending is a pointer to WindowsDeviceHealthStateVManualStepsPending + WindowsDeviceHealthStatePManualStepsPending = &_WindowsDeviceHealthStatePManualStepsPending + // WindowsDeviceHealthStatePOfflineScanPending is a pointer to WindowsDeviceHealthStateVOfflineScanPending + WindowsDeviceHealthStatePOfflineScanPending = &_WindowsDeviceHealthStatePOfflineScanPending + // WindowsDeviceHealthStatePCritical is a pointer to WindowsDeviceHealthStateVCritical + WindowsDeviceHealthStatePCritical = &_WindowsDeviceHealthStatePCritical +) + +var ( + _WindowsDeviceHealthStatePClean = WindowsDeviceHealthStateVClean + _WindowsDeviceHealthStatePFullScanPending = WindowsDeviceHealthStateVFullScanPending + _WindowsDeviceHealthStatePRebootPending = WindowsDeviceHealthStateVRebootPending + _WindowsDeviceHealthStatePManualStepsPending = WindowsDeviceHealthStateVManualStepsPending + _WindowsDeviceHealthStatePOfflineScanPending = WindowsDeviceHealthStateVOfflineScanPending + _WindowsDeviceHealthStatePCritical = WindowsDeviceHealthStateVCritical +) + +// WindowsDeviceType undocumented +type WindowsDeviceType string + +const ( + // WindowsDeviceTypeVNone undocumented + WindowsDeviceTypeVNone WindowsDeviceType = "none" + // WindowsDeviceTypeVDesktop undocumented + WindowsDeviceTypeVDesktop WindowsDeviceType = "desktop" + // WindowsDeviceTypeVMobile undocumented + WindowsDeviceTypeVMobile WindowsDeviceType = "mobile" + // WindowsDeviceTypeVHolographic undocumented + WindowsDeviceTypeVHolographic WindowsDeviceType = "holographic" + // WindowsDeviceTypeVTeam undocumented + WindowsDeviceTypeVTeam WindowsDeviceType = "team" +) + +var ( + // WindowsDeviceTypePNone is a pointer to WindowsDeviceTypeVNone + WindowsDeviceTypePNone = &_WindowsDeviceTypePNone + // WindowsDeviceTypePDesktop is a pointer to WindowsDeviceTypeVDesktop + WindowsDeviceTypePDesktop = &_WindowsDeviceTypePDesktop + // WindowsDeviceTypePMobile is a pointer to WindowsDeviceTypeVMobile + WindowsDeviceTypePMobile = &_WindowsDeviceTypePMobile + // WindowsDeviceTypePHolographic is a pointer to WindowsDeviceTypeVHolographic + WindowsDeviceTypePHolographic = &_WindowsDeviceTypePHolographic + // WindowsDeviceTypePTeam is a pointer to WindowsDeviceTypeVTeam + WindowsDeviceTypePTeam = &_WindowsDeviceTypePTeam +) + +var ( + _WindowsDeviceTypePNone = WindowsDeviceTypeVNone + _WindowsDeviceTypePDesktop = WindowsDeviceTypeVDesktop + _WindowsDeviceTypePMobile = WindowsDeviceTypeVMobile + _WindowsDeviceTypePHolographic = WindowsDeviceTypeVHolographic + _WindowsDeviceTypePTeam = WindowsDeviceTypeVTeam +) + +// WindowsDeviceUsageType undocumented +type WindowsDeviceUsageType string + +const ( + // WindowsDeviceUsageTypeVSingleUser undocumented + WindowsDeviceUsageTypeVSingleUser WindowsDeviceUsageType = "singleUser" + // WindowsDeviceUsageTypeVShared undocumented + WindowsDeviceUsageTypeVShared WindowsDeviceUsageType = "shared" +) + +var ( + // WindowsDeviceUsageTypePSingleUser is a pointer to WindowsDeviceUsageTypeVSingleUser + WindowsDeviceUsageTypePSingleUser = &_WindowsDeviceUsageTypePSingleUser + // WindowsDeviceUsageTypePShared is a pointer to WindowsDeviceUsageTypeVShared + WindowsDeviceUsageTypePShared = &_WindowsDeviceUsageTypePShared +) + +var ( + _WindowsDeviceUsageTypePSingleUser = WindowsDeviceUsageTypeVSingleUser + _WindowsDeviceUsageTypePShared = WindowsDeviceUsageTypeVShared +) + +// WindowsFirewallRuleInterfaceTypes undocumented +type WindowsFirewallRuleInterfaceTypes string + +const ( + // WindowsFirewallRuleInterfaceTypesVNotConfigured undocumented + WindowsFirewallRuleInterfaceTypesVNotConfigured WindowsFirewallRuleInterfaceTypes = "notConfigured" + // WindowsFirewallRuleInterfaceTypesVRemoteAccess undocumented + WindowsFirewallRuleInterfaceTypesVRemoteAccess WindowsFirewallRuleInterfaceTypes = "remoteAccess" + // WindowsFirewallRuleInterfaceTypesVWireless undocumented + WindowsFirewallRuleInterfaceTypesVWireless WindowsFirewallRuleInterfaceTypes = "wireless" + // WindowsFirewallRuleInterfaceTypesVLan undocumented + WindowsFirewallRuleInterfaceTypesVLan WindowsFirewallRuleInterfaceTypes = "lan" +) + +var ( + // WindowsFirewallRuleInterfaceTypesPNotConfigured is a pointer to WindowsFirewallRuleInterfaceTypesVNotConfigured + WindowsFirewallRuleInterfaceTypesPNotConfigured = &_WindowsFirewallRuleInterfaceTypesPNotConfigured + // WindowsFirewallRuleInterfaceTypesPRemoteAccess is a pointer to WindowsFirewallRuleInterfaceTypesVRemoteAccess + WindowsFirewallRuleInterfaceTypesPRemoteAccess = &_WindowsFirewallRuleInterfaceTypesPRemoteAccess + // WindowsFirewallRuleInterfaceTypesPWireless is a pointer to WindowsFirewallRuleInterfaceTypesVWireless + WindowsFirewallRuleInterfaceTypesPWireless = &_WindowsFirewallRuleInterfaceTypesPWireless + // WindowsFirewallRuleInterfaceTypesPLan is a pointer to WindowsFirewallRuleInterfaceTypesVLan + WindowsFirewallRuleInterfaceTypesPLan = &_WindowsFirewallRuleInterfaceTypesPLan +) + +var ( + _WindowsFirewallRuleInterfaceTypesPNotConfigured = WindowsFirewallRuleInterfaceTypesVNotConfigured + _WindowsFirewallRuleInterfaceTypesPRemoteAccess = WindowsFirewallRuleInterfaceTypesVRemoteAccess + _WindowsFirewallRuleInterfaceTypesPWireless = WindowsFirewallRuleInterfaceTypesVWireless + _WindowsFirewallRuleInterfaceTypesPLan = WindowsFirewallRuleInterfaceTypesVLan +) + +// WindowsFirewallRuleNetworkProfileTypes undocumented +type WindowsFirewallRuleNetworkProfileTypes string + +const ( + // WindowsFirewallRuleNetworkProfileTypesVNotConfigured undocumented + WindowsFirewallRuleNetworkProfileTypesVNotConfigured WindowsFirewallRuleNetworkProfileTypes = "notConfigured" + // WindowsFirewallRuleNetworkProfileTypesVDomain undocumented + WindowsFirewallRuleNetworkProfileTypesVDomain WindowsFirewallRuleNetworkProfileTypes = "domain" + // WindowsFirewallRuleNetworkProfileTypesVPrivate undocumented + WindowsFirewallRuleNetworkProfileTypesVPrivate WindowsFirewallRuleNetworkProfileTypes = "private" + // WindowsFirewallRuleNetworkProfileTypesVPublic undocumented + WindowsFirewallRuleNetworkProfileTypesVPublic WindowsFirewallRuleNetworkProfileTypes = "public" +) + +var ( + // WindowsFirewallRuleNetworkProfileTypesPNotConfigured is a pointer to WindowsFirewallRuleNetworkProfileTypesVNotConfigured + WindowsFirewallRuleNetworkProfileTypesPNotConfigured = &_WindowsFirewallRuleNetworkProfileTypesPNotConfigured + // WindowsFirewallRuleNetworkProfileTypesPDomain is a pointer to WindowsFirewallRuleNetworkProfileTypesVDomain + WindowsFirewallRuleNetworkProfileTypesPDomain = &_WindowsFirewallRuleNetworkProfileTypesPDomain + // WindowsFirewallRuleNetworkProfileTypesPPrivate is a pointer to WindowsFirewallRuleNetworkProfileTypesVPrivate + WindowsFirewallRuleNetworkProfileTypesPPrivate = &_WindowsFirewallRuleNetworkProfileTypesPPrivate + // WindowsFirewallRuleNetworkProfileTypesPPublic is a pointer to WindowsFirewallRuleNetworkProfileTypesVPublic + WindowsFirewallRuleNetworkProfileTypesPPublic = &_WindowsFirewallRuleNetworkProfileTypesPPublic +) + +var ( + _WindowsFirewallRuleNetworkProfileTypesPNotConfigured = WindowsFirewallRuleNetworkProfileTypesVNotConfigured + _WindowsFirewallRuleNetworkProfileTypesPDomain = WindowsFirewallRuleNetworkProfileTypesVDomain + _WindowsFirewallRuleNetworkProfileTypesPPrivate = WindowsFirewallRuleNetworkProfileTypesVPrivate + _WindowsFirewallRuleNetworkProfileTypesPPublic = WindowsFirewallRuleNetworkProfileTypesVPublic +) + +// WindowsFirewallRuleTrafficDirectionType undocumented +type WindowsFirewallRuleTrafficDirectionType string + +const ( + // WindowsFirewallRuleTrafficDirectionTypeVNotConfigured undocumented + WindowsFirewallRuleTrafficDirectionTypeVNotConfigured WindowsFirewallRuleTrafficDirectionType = "notConfigured" + // WindowsFirewallRuleTrafficDirectionTypeVOut undocumented + WindowsFirewallRuleTrafficDirectionTypeVOut WindowsFirewallRuleTrafficDirectionType = "out" + // WindowsFirewallRuleTrafficDirectionTypeVIn undocumented + WindowsFirewallRuleTrafficDirectionTypeVIn WindowsFirewallRuleTrafficDirectionType = "in" +) + +var ( + // WindowsFirewallRuleTrafficDirectionTypePNotConfigured is a pointer to WindowsFirewallRuleTrafficDirectionTypeVNotConfigured + WindowsFirewallRuleTrafficDirectionTypePNotConfigured = &_WindowsFirewallRuleTrafficDirectionTypePNotConfigured + // WindowsFirewallRuleTrafficDirectionTypePOut is a pointer to WindowsFirewallRuleTrafficDirectionTypeVOut + WindowsFirewallRuleTrafficDirectionTypePOut = &_WindowsFirewallRuleTrafficDirectionTypePOut + // WindowsFirewallRuleTrafficDirectionTypePIn is a pointer to WindowsFirewallRuleTrafficDirectionTypeVIn + WindowsFirewallRuleTrafficDirectionTypePIn = &_WindowsFirewallRuleTrafficDirectionTypePIn +) + +var ( + _WindowsFirewallRuleTrafficDirectionTypePNotConfigured = WindowsFirewallRuleTrafficDirectionTypeVNotConfigured + _WindowsFirewallRuleTrafficDirectionTypePOut = WindowsFirewallRuleTrafficDirectionTypeVOut + _WindowsFirewallRuleTrafficDirectionTypePIn = WindowsFirewallRuleTrafficDirectionTypeVIn +) + +// WindowsHealthMonitoringScope undocumented +type WindowsHealthMonitoringScope string + +const ( + // WindowsHealthMonitoringScopeVUndefined undocumented + WindowsHealthMonitoringScopeVUndefined WindowsHealthMonitoringScope = "undefined" + // WindowsHealthMonitoringScopeVHealthMonitoring undocumented + WindowsHealthMonitoringScopeVHealthMonitoring WindowsHealthMonitoringScope = "healthMonitoring" + // WindowsHealthMonitoringScopeVBootPerformance undocumented + WindowsHealthMonitoringScopeVBootPerformance WindowsHealthMonitoringScope = "bootPerformance" + // WindowsHealthMonitoringScopeVUserExperienceAnalytics undocumented + WindowsHealthMonitoringScopeVUserExperienceAnalytics WindowsHealthMonitoringScope = "userExperienceAnalytics" +) + +var ( + // WindowsHealthMonitoringScopePUndefined is a pointer to WindowsHealthMonitoringScopeVUndefined + WindowsHealthMonitoringScopePUndefined = &_WindowsHealthMonitoringScopePUndefined + // WindowsHealthMonitoringScopePHealthMonitoring is a pointer to WindowsHealthMonitoringScopeVHealthMonitoring + WindowsHealthMonitoringScopePHealthMonitoring = &_WindowsHealthMonitoringScopePHealthMonitoring + // WindowsHealthMonitoringScopePBootPerformance is a pointer to WindowsHealthMonitoringScopeVBootPerformance + WindowsHealthMonitoringScopePBootPerformance = &_WindowsHealthMonitoringScopePBootPerformance + // WindowsHealthMonitoringScopePUserExperienceAnalytics is a pointer to WindowsHealthMonitoringScopeVUserExperienceAnalytics + WindowsHealthMonitoringScopePUserExperienceAnalytics = &_WindowsHealthMonitoringScopePUserExperienceAnalytics +) + +var ( + _WindowsHealthMonitoringScopePUndefined = WindowsHealthMonitoringScopeVUndefined + _WindowsHealthMonitoringScopePHealthMonitoring = WindowsHealthMonitoringScopeVHealthMonitoring + _WindowsHealthMonitoringScopePBootPerformance = WindowsHealthMonitoringScopeVBootPerformance + _WindowsHealthMonitoringScopePUserExperienceAnalytics = WindowsHealthMonitoringScopeVUserExperienceAnalytics +) + +// WindowsHelloForBusinessPinUsage undocumented +type WindowsHelloForBusinessPinUsage string + +const ( + // WindowsHelloForBusinessPinUsageVAllowed undocumented + WindowsHelloForBusinessPinUsageVAllowed WindowsHelloForBusinessPinUsage = "allowed" + // WindowsHelloForBusinessPinUsageVRequired undocumented + WindowsHelloForBusinessPinUsageVRequired WindowsHelloForBusinessPinUsage = "required" + // WindowsHelloForBusinessPinUsageVDisallowed undocumented + WindowsHelloForBusinessPinUsageVDisallowed WindowsHelloForBusinessPinUsage = "disallowed" +) + +var ( + // WindowsHelloForBusinessPinUsagePAllowed is a pointer to WindowsHelloForBusinessPinUsageVAllowed + WindowsHelloForBusinessPinUsagePAllowed = &_WindowsHelloForBusinessPinUsagePAllowed + // WindowsHelloForBusinessPinUsagePRequired is a pointer to WindowsHelloForBusinessPinUsageVRequired + WindowsHelloForBusinessPinUsagePRequired = &_WindowsHelloForBusinessPinUsagePRequired + // WindowsHelloForBusinessPinUsagePDisallowed is a pointer to WindowsHelloForBusinessPinUsageVDisallowed + WindowsHelloForBusinessPinUsagePDisallowed = &_WindowsHelloForBusinessPinUsagePDisallowed +) + +var ( + _WindowsHelloForBusinessPinUsagePAllowed = WindowsHelloForBusinessPinUsageVAllowed + _WindowsHelloForBusinessPinUsagePRequired = WindowsHelloForBusinessPinUsageVRequired + _WindowsHelloForBusinessPinUsagePDisallowed = WindowsHelloForBusinessPinUsageVDisallowed +) + +// WindowsInformationProtectionEnforcementLevel undocumented +type WindowsInformationProtectionEnforcementLevel string + +const ( + // WindowsInformationProtectionEnforcementLevelVNoProtection undocumented + WindowsInformationProtectionEnforcementLevelVNoProtection WindowsInformationProtectionEnforcementLevel = "noProtection" + // WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly undocumented + WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly WindowsInformationProtectionEnforcementLevel = "encryptAndAuditOnly" + // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt undocumented + WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt WindowsInformationProtectionEnforcementLevel = "encryptAuditAndPrompt" + // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock undocumented + WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock WindowsInformationProtectionEnforcementLevel = "encryptAuditAndBlock" +) + +var ( + // WindowsInformationProtectionEnforcementLevelPNoProtection is a pointer to WindowsInformationProtectionEnforcementLevelVNoProtection + WindowsInformationProtectionEnforcementLevelPNoProtection = &_WindowsInformationProtectionEnforcementLevelPNoProtection + // WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly + WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly = &_WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly + // WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt + WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt = &_WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt + // WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock + WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock = &_WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock +) + +var ( + _WindowsInformationProtectionEnforcementLevelPNoProtection = WindowsInformationProtectionEnforcementLevelVNoProtection + _WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly = WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly + _WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt = WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt + _WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock = WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock +) + +// WindowsInformationProtectionPinCharacterRequirements undocumented +type WindowsInformationProtectionPinCharacterRequirements string + +const ( + // WindowsInformationProtectionPinCharacterRequirementsVNotAllow undocumented + WindowsInformationProtectionPinCharacterRequirementsVNotAllow WindowsInformationProtectionPinCharacterRequirements = "notAllow" + // WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne undocumented + WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne WindowsInformationProtectionPinCharacterRequirements = "requireAtLeastOne" + // WindowsInformationProtectionPinCharacterRequirementsVAllow undocumented + WindowsInformationProtectionPinCharacterRequirementsVAllow WindowsInformationProtectionPinCharacterRequirements = "allow" +) + +var ( + // WindowsInformationProtectionPinCharacterRequirementsPNotAllow is a pointer to WindowsInformationProtectionPinCharacterRequirementsVNotAllow + WindowsInformationProtectionPinCharacterRequirementsPNotAllow = &_WindowsInformationProtectionPinCharacterRequirementsPNotAllow + // WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne is a pointer to WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne + WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne = &_WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne + // WindowsInformationProtectionPinCharacterRequirementsPAllow is a pointer to WindowsInformationProtectionPinCharacterRequirementsVAllow + WindowsInformationProtectionPinCharacterRequirementsPAllow = &_WindowsInformationProtectionPinCharacterRequirementsPAllow +) + +var ( + _WindowsInformationProtectionPinCharacterRequirementsPNotAllow = WindowsInformationProtectionPinCharacterRequirementsVNotAllow + _WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne = WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne + _WindowsInformationProtectionPinCharacterRequirementsPAllow = WindowsInformationProtectionPinCharacterRequirementsVAllow +) + +// WindowsKioskAppType undocumented +type WindowsKioskAppType string + +const ( + // WindowsKioskAppTypeVUnknown undocumented + WindowsKioskAppTypeVUnknown WindowsKioskAppType = "unknown" + // WindowsKioskAppTypeVStore undocumented + WindowsKioskAppTypeVStore WindowsKioskAppType = "store" + // WindowsKioskAppTypeVDesktop undocumented + WindowsKioskAppTypeVDesktop WindowsKioskAppType = "desktop" + // WindowsKioskAppTypeVAumID undocumented + WindowsKioskAppTypeVAumID WindowsKioskAppType = "aumId" +) + +var ( + // WindowsKioskAppTypePUnknown is a pointer to WindowsKioskAppTypeVUnknown + WindowsKioskAppTypePUnknown = &_WindowsKioskAppTypePUnknown + // WindowsKioskAppTypePStore is a pointer to WindowsKioskAppTypeVStore + WindowsKioskAppTypePStore = &_WindowsKioskAppTypePStore + // WindowsKioskAppTypePDesktop is a pointer to WindowsKioskAppTypeVDesktop + WindowsKioskAppTypePDesktop = &_WindowsKioskAppTypePDesktop + // WindowsKioskAppTypePAumID is a pointer to WindowsKioskAppTypeVAumID + WindowsKioskAppTypePAumID = &_WindowsKioskAppTypePAumID +) + +var ( + _WindowsKioskAppTypePUnknown = WindowsKioskAppTypeVUnknown + _WindowsKioskAppTypePStore = WindowsKioskAppTypeVStore + _WindowsKioskAppTypePDesktop = WindowsKioskAppTypeVDesktop + _WindowsKioskAppTypePAumID = WindowsKioskAppTypeVAumID +) + +// WindowsMalwareCategory undocumented +type WindowsMalwareCategory string + +const ( + // WindowsMalwareCategoryVInvalid undocumented + WindowsMalwareCategoryVInvalid WindowsMalwareCategory = "invalid" + // WindowsMalwareCategoryVAdware undocumented + WindowsMalwareCategoryVAdware WindowsMalwareCategory = "adware" + // WindowsMalwareCategoryVSpyware undocumented + WindowsMalwareCategoryVSpyware WindowsMalwareCategory = "spyware" + // WindowsMalwareCategoryVPasswordStealer undocumented + WindowsMalwareCategoryVPasswordStealer WindowsMalwareCategory = "passwordStealer" + // WindowsMalwareCategoryVTrojanDownloader undocumented + WindowsMalwareCategoryVTrojanDownloader WindowsMalwareCategory = "trojanDownloader" + // WindowsMalwareCategoryVWorm undocumented + WindowsMalwareCategoryVWorm WindowsMalwareCategory = "worm" + // WindowsMalwareCategoryVBackdoor undocumented + WindowsMalwareCategoryVBackdoor WindowsMalwareCategory = "backdoor" + // WindowsMalwareCategoryVRemoteAccessTrojan undocumented + WindowsMalwareCategoryVRemoteAccessTrojan WindowsMalwareCategory = "remoteAccessTrojan" + // WindowsMalwareCategoryVTrojan undocumented + WindowsMalwareCategoryVTrojan WindowsMalwareCategory = "trojan" + // WindowsMalwareCategoryVEmailFlooder undocumented + WindowsMalwareCategoryVEmailFlooder WindowsMalwareCategory = "emailFlooder" + // WindowsMalwareCategoryVKeylogger undocumented + WindowsMalwareCategoryVKeylogger WindowsMalwareCategory = "keylogger" + // WindowsMalwareCategoryVDialer undocumented + WindowsMalwareCategoryVDialer WindowsMalwareCategory = "dialer" + // WindowsMalwareCategoryVMonitoringSoftware undocumented + WindowsMalwareCategoryVMonitoringSoftware WindowsMalwareCategory = "monitoringSoftware" + // WindowsMalwareCategoryVBrowserModifier undocumented + WindowsMalwareCategoryVBrowserModifier WindowsMalwareCategory = "browserModifier" + // WindowsMalwareCategoryVCookie undocumented + WindowsMalwareCategoryVCookie WindowsMalwareCategory = "cookie" + // WindowsMalwareCategoryVBrowserPlugin undocumented + WindowsMalwareCategoryVBrowserPlugin WindowsMalwareCategory = "browserPlugin" + // WindowsMalwareCategoryVAolExploit undocumented + WindowsMalwareCategoryVAolExploit WindowsMalwareCategory = "aolExploit" + // WindowsMalwareCategoryVNuker undocumented + WindowsMalwareCategoryVNuker WindowsMalwareCategory = "nuker" + // WindowsMalwareCategoryVSecurityDisabler undocumented + WindowsMalwareCategoryVSecurityDisabler WindowsMalwareCategory = "securityDisabler" + // WindowsMalwareCategoryVJokeProgram undocumented + WindowsMalwareCategoryVJokeProgram WindowsMalwareCategory = "jokeProgram" + // WindowsMalwareCategoryVHostileActiveXControl undocumented + WindowsMalwareCategoryVHostileActiveXControl WindowsMalwareCategory = "hostileActiveXControl" + // WindowsMalwareCategoryVSoftwareBundler undocumented + WindowsMalwareCategoryVSoftwareBundler WindowsMalwareCategory = "softwareBundler" + // WindowsMalwareCategoryVStealthNotifier undocumented + WindowsMalwareCategoryVStealthNotifier WindowsMalwareCategory = "stealthNotifier" + // WindowsMalwareCategoryVSettingsModifier undocumented + WindowsMalwareCategoryVSettingsModifier WindowsMalwareCategory = "settingsModifier" + // WindowsMalwareCategoryVToolBar undocumented + WindowsMalwareCategoryVToolBar WindowsMalwareCategory = "toolBar" + // WindowsMalwareCategoryVRemoteControlSoftware undocumented + WindowsMalwareCategoryVRemoteControlSoftware WindowsMalwareCategory = "remoteControlSoftware" + // WindowsMalwareCategoryVTrojanFtp undocumented + WindowsMalwareCategoryVTrojanFtp WindowsMalwareCategory = "trojanFtp" + // WindowsMalwareCategoryVPotentialUnwantedSoftware undocumented + WindowsMalwareCategoryVPotentialUnwantedSoftware WindowsMalwareCategory = "potentialUnwantedSoftware" + // WindowsMalwareCategoryVIcqExploit undocumented + WindowsMalwareCategoryVIcqExploit WindowsMalwareCategory = "icqExploit" + // WindowsMalwareCategoryVTrojanTelnet undocumented + WindowsMalwareCategoryVTrojanTelnet WindowsMalwareCategory = "trojanTelnet" + // WindowsMalwareCategoryVExploit undocumented + WindowsMalwareCategoryVExploit WindowsMalwareCategory = "exploit" + // WindowsMalwareCategoryVFilesharingProgram undocumented + WindowsMalwareCategoryVFilesharingProgram WindowsMalwareCategory = "filesharingProgram" + // WindowsMalwareCategoryVMalwareCreationTool undocumented + WindowsMalwareCategoryVMalwareCreationTool WindowsMalwareCategory = "malwareCreationTool" + // WindowsMalwareCategoryVRemote_Control_Software undocumented + WindowsMalwareCategoryVRemote_Control_Software WindowsMalwareCategory = "remote_Control_Software" + // WindowsMalwareCategoryVTool undocumented + WindowsMalwareCategoryVTool WindowsMalwareCategory = "tool" + // WindowsMalwareCategoryVTrojanDenialOfService undocumented + WindowsMalwareCategoryVTrojanDenialOfService WindowsMalwareCategory = "trojanDenialOfService" + // WindowsMalwareCategoryVTrojanDropper undocumented + WindowsMalwareCategoryVTrojanDropper WindowsMalwareCategory = "trojanDropper" + // WindowsMalwareCategoryVTrojanMassMailer undocumented + WindowsMalwareCategoryVTrojanMassMailer WindowsMalwareCategory = "trojanMassMailer" + // WindowsMalwareCategoryVTrojanMonitoringSoftware undocumented + WindowsMalwareCategoryVTrojanMonitoringSoftware WindowsMalwareCategory = "trojanMonitoringSoftware" + // WindowsMalwareCategoryVTrojanProxyServer undocumented + WindowsMalwareCategoryVTrojanProxyServer WindowsMalwareCategory = "trojanProxyServer" + // WindowsMalwareCategoryVVirus undocumented + WindowsMalwareCategoryVVirus WindowsMalwareCategory = "virus" + // WindowsMalwareCategoryVKnown undocumented + WindowsMalwareCategoryVKnown WindowsMalwareCategory = "known" + // WindowsMalwareCategoryVUnknown undocumented + WindowsMalwareCategoryVUnknown WindowsMalwareCategory = "unknown" + // WindowsMalwareCategoryVSpp undocumented + WindowsMalwareCategoryVSpp WindowsMalwareCategory = "spp" + // WindowsMalwareCategoryVBehavior undocumented + WindowsMalwareCategoryVBehavior WindowsMalwareCategory = "behavior" + // WindowsMalwareCategoryVVulnerability undocumented + WindowsMalwareCategoryVVulnerability WindowsMalwareCategory = "vulnerability" + // WindowsMalwareCategoryVPolicy undocumented + WindowsMalwareCategoryVPolicy WindowsMalwareCategory = "policy" + // WindowsMalwareCategoryVEnterpriseUnwantedSoftware undocumented + WindowsMalwareCategoryVEnterpriseUnwantedSoftware WindowsMalwareCategory = "enterpriseUnwantedSoftware" + // WindowsMalwareCategoryVRansom undocumented + WindowsMalwareCategoryVRansom WindowsMalwareCategory = "ransom" + // WindowsMalwareCategoryVHipsRule undocumented + WindowsMalwareCategoryVHipsRule WindowsMalwareCategory = "hipsRule" +) + +var ( + // WindowsMalwareCategoryPInvalid is a pointer to WindowsMalwareCategoryVInvalid + WindowsMalwareCategoryPInvalid = &_WindowsMalwareCategoryPInvalid + // WindowsMalwareCategoryPAdware is a pointer to WindowsMalwareCategoryVAdware + WindowsMalwareCategoryPAdware = &_WindowsMalwareCategoryPAdware + // WindowsMalwareCategoryPSpyware is a pointer to WindowsMalwareCategoryVSpyware + WindowsMalwareCategoryPSpyware = &_WindowsMalwareCategoryPSpyware + // WindowsMalwareCategoryPPasswordStealer is a pointer to WindowsMalwareCategoryVPasswordStealer + WindowsMalwareCategoryPPasswordStealer = &_WindowsMalwareCategoryPPasswordStealer + // WindowsMalwareCategoryPTrojanDownloader is a pointer to WindowsMalwareCategoryVTrojanDownloader + WindowsMalwareCategoryPTrojanDownloader = &_WindowsMalwareCategoryPTrojanDownloader + // WindowsMalwareCategoryPWorm is a pointer to WindowsMalwareCategoryVWorm + WindowsMalwareCategoryPWorm = &_WindowsMalwareCategoryPWorm + // WindowsMalwareCategoryPBackdoor is a pointer to WindowsMalwareCategoryVBackdoor + WindowsMalwareCategoryPBackdoor = &_WindowsMalwareCategoryPBackdoor + // WindowsMalwareCategoryPRemoteAccessTrojan is a pointer to WindowsMalwareCategoryVRemoteAccessTrojan + WindowsMalwareCategoryPRemoteAccessTrojan = &_WindowsMalwareCategoryPRemoteAccessTrojan + // WindowsMalwareCategoryPTrojan is a pointer to WindowsMalwareCategoryVTrojan + WindowsMalwareCategoryPTrojan = &_WindowsMalwareCategoryPTrojan + // WindowsMalwareCategoryPEmailFlooder is a pointer to WindowsMalwareCategoryVEmailFlooder + WindowsMalwareCategoryPEmailFlooder = &_WindowsMalwareCategoryPEmailFlooder + // WindowsMalwareCategoryPKeylogger is a pointer to WindowsMalwareCategoryVKeylogger + WindowsMalwareCategoryPKeylogger = &_WindowsMalwareCategoryPKeylogger + // WindowsMalwareCategoryPDialer is a pointer to WindowsMalwareCategoryVDialer + WindowsMalwareCategoryPDialer = &_WindowsMalwareCategoryPDialer + // WindowsMalwareCategoryPMonitoringSoftware is a pointer to WindowsMalwareCategoryVMonitoringSoftware + WindowsMalwareCategoryPMonitoringSoftware = &_WindowsMalwareCategoryPMonitoringSoftware + // WindowsMalwareCategoryPBrowserModifier is a pointer to WindowsMalwareCategoryVBrowserModifier + WindowsMalwareCategoryPBrowserModifier = &_WindowsMalwareCategoryPBrowserModifier + // WindowsMalwareCategoryPCookie is a pointer to WindowsMalwareCategoryVCookie + WindowsMalwareCategoryPCookie = &_WindowsMalwareCategoryPCookie + // WindowsMalwareCategoryPBrowserPlugin is a pointer to WindowsMalwareCategoryVBrowserPlugin + WindowsMalwareCategoryPBrowserPlugin = &_WindowsMalwareCategoryPBrowserPlugin + // WindowsMalwareCategoryPAolExploit is a pointer to WindowsMalwareCategoryVAolExploit + WindowsMalwareCategoryPAolExploit = &_WindowsMalwareCategoryPAolExploit + // WindowsMalwareCategoryPNuker is a pointer to WindowsMalwareCategoryVNuker + WindowsMalwareCategoryPNuker = &_WindowsMalwareCategoryPNuker + // WindowsMalwareCategoryPSecurityDisabler is a pointer to WindowsMalwareCategoryVSecurityDisabler + WindowsMalwareCategoryPSecurityDisabler = &_WindowsMalwareCategoryPSecurityDisabler + // WindowsMalwareCategoryPJokeProgram is a pointer to WindowsMalwareCategoryVJokeProgram + WindowsMalwareCategoryPJokeProgram = &_WindowsMalwareCategoryPJokeProgram + // WindowsMalwareCategoryPHostileActiveXControl is a pointer to WindowsMalwareCategoryVHostileActiveXControl + WindowsMalwareCategoryPHostileActiveXControl = &_WindowsMalwareCategoryPHostileActiveXControl + // WindowsMalwareCategoryPSoftwareBundler is a pointer to WindowsMalwareCategoryVSoftwareBundler + WindowsMalwareCategoryPSoftwareBundler = &_WindowsMalwareCategoryPSoftwareBundler + // WindowsMalwareCategoryPStealthNotifier is a pointer to WindowsMalwareCategoryVStealthNotifier + WindowsMalwareCategoryPStealthNotifier = &_WindowsMalwareCategoryPStealthNotifier + // WindowsMalwareCategoryPSettingsModifier is a pointer to WindowsMalwareCategoryVSettingsModifier + WindowsMalwareCategoryPSettingsModifier = &_WindowsMalwareCategoryPSettingsModifier + // WindowsMalwareCategoryPToolBar is a pointer to WindowsMalwareCategoryVToolBar + WindowsMalwareCategoryPToolBar = &_WindowsMalwareCategoryPToolBar + // WindowsMalwareCategoryPRemoteControlSoftware is a pointer to WindowsMalwareCategoryVRemoteControlSoftware + WindowsMalwareCategoryPRemoteControlSoftware = &_WindowsMalwareCategoryPRemoteControlSoftware + // WindowsMalwareCategoryPTrojanFtp is a pointer to WindowsMalwareCategoryVTrojanFtp + WindowsMalwareCategoryPTrojanFtp = &_WindowsMalwareCategoryPTrojanFtp + // WindowsMalwareCategoryPPotentialUnwantedSoftware is a pointer to WindowsMalwareCategoryVPotentialUnwantedSoftware + WindowsMalwareCategoryPPotentialUnwantedSoftware = &_WindowsMalwareCategoryPPotentialUnwantedSoftware + // WindowsMalwareCategoryPIcqExploit is a pointer to WindowsMalwareCategoryVIcqExploit + WindowsMalwareCategoryPIcqExploit = &_WindowsMalwareCategoryPIcqExploit + // WindowsMalwareCategoryPTrojanTelnet is a pointer to WindowsMalwareCategoryVTrojanTelnet + WindowsMalwareCategoryPTrojanTelnet = &_WindowsMalwareCategoryPTrojanTelnet + // WindowsMalwareCategoryPExploit is a pointer to WindowsMalwareCategoryVExploit + WindowsMalwareCategoryPExploit = &_WindowsMalwareCategoryPExploit + // WindowsMalwareCategoryPFilesharingProgram is a pointer to WindowsMalwareCategoryVFilesharingProgram + WindowsMalwareCategoryPFilesharingProgram = &_WindowsMalwareCategoryPFilesharingProgram + // WindowsMalwareCategoryPMalwareCreationTool is a pointer to WindowsMalwareCategoryVMalwareCreationTool + WindowsMalwareCategoryPMalwareCreationTool = &_WindowsMalwareCategoryPMalwareCreationTool + // WindowsMalwareCategoryPRemote_Control_Software is a pointer to WindowsMalwareCategoryVRemote_Control_Software + WindowsMalwareCategoryPRemote_Control_Software = &_WindowsMalwareCategoryPRemote_Control_Software + // WindowsMalwareCategoryPTool is a pointer to WindowsMalwareCategoryVTool + WindowsMalwareCategoryPTool = &_WindowsMalwareCategoryPTool + // WindowsMalwareCategoryPTrojanDenialOfService is a pointer to WindowsMalwareCategoryVTrojanDenialOfService + WindowsMalwareCategoryPTrojanDenialOfService = &_WindowsMalwareCategoryPTrojanDenialOfService + // WindowsMalwareCategoryPTrojanDropper is a pointer to WindowsMalwareCategoryVTrojanDropper + WindowsMalwareCategoryPTrojanDropper = &_WindowsMalwareCategoryPTrojanDropper + // WindowsMalwareCategoryPTrojanMassMailer is a pointer to WindowsMalwareCategoryVTrojanMassMailer + WindowsMalwareCategoryPTrojanMassMailer = &_WindowsMalwareCategoryPTrojanMassMailer + // WindowsMalwareCategoryPTrojanMonitoringSoftware is a pointer to WindowsMalwareCategoryVTrojanMonitoringSoftware + WindowsMalwareCategoryPTrojanMonitoringSoftware = &_WindowsMalwareCategoryPTrojanMonitoringSoftware + // WindowsMalwareCategoryPTrojanProxyServer is a pointer to WindowsMalwareCategoryVTrojanProxyServer + WindowsMalwareCategoryPTrojanProxyServer = &_WindowsMalwareCategoryPTrojanProxyServer + // WindowsMalwareCategoryPVirus is a pointer to WindowsMalwareCategoryVVirus + WindowsMalwareCategoryPVirus = &_WindowsMalwareCategoryPVirus + // WindowsMalwareCategoryPKnown is a pointer to WindowsMalwareCategoryVKnown + WindowsMalwareCategoryPKnown = &_WindowsMalwareCategoryPKnown + // WindowsMalwareCategoryPUnknown is a pointer to WindowsMalwareCategoryVUnknown + WindowsMalwareCategoryPUnknown = &_WindowsMalwareCategoryPUnknown + // WindowsMalwareCategoryPSpp is a pointer to WindowsMalwareCategoryVSpp + WindowsMalwareCategoryPSpp = &_WindowsMalwareCategoryPSpp + // WindowsMalwareCategoryPBehavior is a pointer to WindowsMalwareCategoryVBehavior + WindowsMalwareCategoryPBehavior = &_WindowsMalwareCategoryPBehavior + // WindowsMalwareCategoryPVulnerability is a pointer to WindowsMalwareCategoryVVulnerability + WindowsMalwareCategoryPVulnerability = &_WindowsMalwareCategoryPVulnerability + // WindowsMalwareCategoryPPolicy is a pointer to WindowsMalwareCategoryVPolicy + WindowsMalwareCategoryPPolicy = &_WindowsMalwareCategoryPPolicy + // WindowsMalwareCategoryPEnterpriseUnwantedSoftware is a pointer to WindowsMalwareCategoryVEnterpriseUnwantedSoftware + WindowsMalwareCategoryPEnterpriseUnwantedSoftware = &_WindowsMalwareCategoryPEnterpriseUnwantedSoftware + // WindowsMalwareCategoryPRansom is a pointer to WindowsMalwareCategoryVRansom + WindowsMalwareCategoryPRansom = &_WindowsMalwareCategoryPRansom + // WindowsMalwareCategoryPHipsRule is a pointer to WindowsMalwareCategoryVHipsRule + WindowsMalwareCategoryPHipsRule = &_WindowsMalwareCategoryPHipsRule +) + +var ( + _WindowsMalwareCategoryPInvalid = WindowsMalwareCategoryVInvalid + _WindowsMalwareCategoryPAdware = WindowsMalwareCategoryVAdware + _WindowsMalwareCategoryPSpyware = WindowsMalwareCategoryVSpyware + _WindowsMalwareCategoryPPasswordStealer = WindowsMalwareCategoryVPasswordStealer + _WindowsMalwareCategoryPTrojanDownloader = WindowsMalwareCategoryVTrojanDownloader + _WindowsMalwareCategoryPWorm = WindowsMalwareCategoryVWorm + _WindowsMalwareCategoryPBackdoor = WindowsMalwareCategoryVBackdoor + _WindowsMalwareCategoryPRemoteAccessTrojan = WindowsMalwareCategoryVRemoteAccessTrojan + _WindowsMalwareCategoryPTrojan = WindowsMalwareCategoryVTrojan + _WindowsMalwareCategoryPEmailFlooder = WindowsMalwareCategoryVEmailFlooder + _WindowsMalwareCategoryPKeylogger = WindowsMalwareCategoryVKeylogger + _WindowsMalwareCategoryPDialer = WindowsMalwareCategoryVDialer + _WindowsMalwareCategoryPMonitoringSoftware = WindowsMalwareCategoryVMonitoringSoftware + _WindowsMalwareCategoryPBrowserModifier = WindowsMalwareCategoryVBrowserModifier + _WindowsMalwareCategoryPCookie = WindowsMalwareCategoryVCookie + _WindowsMalwareCategoryPBrowserPlugin = WindowsMalwareCategoryVBrowserPlugin + _WindowsMalwareCategoryPAolExploit = WindowsMalwareCategoryVAolExploit + _WindowsMalwareCategoryPNuker = WindowsMalwareCategoryVNuker + _WindowsMalwareCategoryPSecurityDisabler = WindowsMalwareCategoryVSecurityDisabler + _WindowsMalwareCategoryPJokeProgram = WindowsMalwareCategoryVJokeProgram + _WindowsMalwareCategoryPHostileActiveXControl = WindowsMalwareCategoryVHostileActiveXControl + _WindowsMalwareCategoryPSoftwareBundler = WindowsMalwareCategoryVSoftwareBundler + _WindowsMalwareCategoryPStealthNotifier = WindowsMalwareCategoryVStealthNotifier + _WindowsMalwareCategoryPSettingsModifier = WindowsMalwareCategoryVSettingsModifier + _WindowsMalwareCategoryPToolBar = WindowsMalwareCategoryVToolBar + _WindowsMalwareCategoryPRemoteControlSoftware = WindowsMalwareCategoryVRemoteControlSoftware + _WindowsMalwareCategoryPTrojanFtp = WindowsMalwareCategoryVTrojanFtp + _WindowsMalwareCategoryPPotentialUnwantedSoftware = WindowsMalwareCategoryVPotentialUnwantedSoftware + _WindowsMalwareCategoryPIcqExploit = WindowsMalwareCategoryVIcqExploit + _WindowsMalwareCategoryPTrojanTelnet = WindowsMalwareCategoryVTrojanTelnet + _WindowsMalwareCategoryPExploit = WindowsMalwareCategoryVExploit + _WindowsMalwareCategoryPFilesharingProgram = WindowsMalwareCategoryVFilesharingProgram + _WindowsMalwareCategoryPMalwareCreationTool = WindowsMalwareCategoryVMalwareCreationTool + _WindowsMalwareCategoryPRemote_Control_Software = WindowsMalwareCategoryVRemote_Control_Software + _WindowsMalwareCategoryPTool = WindowsMalwareCategoryVTool + _WindowsMalwareCategoryPTrojanDenialOfService = WindowsMalwareCategoryVTrojanDenialOfService + _WindowsMalwareCategoryPTrojanDropper = WindowsMalwareCategoryVTrojanDropper + _WindowsMalwareCategoryPTrojanMassMailer = WindowsMalwareCategoryVTrojanMassMailer + _WindowsMalwareCategoryPTrojanMonitoringSoftware = WindowsMalwareCategoryVTrojanMonitoringSoftware + _WindowsMalwareCategoryPTrojanProxyServer = WindowsMalwareCategoryVTrojanProxyServer + _WindowsMalwareCategoryPVirus = WindowsMalwareCategoryVVirus + _WindowsMalwareCategoryPKnown = WindowsMalwareCategoryVKnown + _WindowsMalwareCategoryPUnknown = WindowsMalwareCategoryVUnknown + _WindowsMalwareCategoryPSpp = WindowsMalwareCategoryVSpp + _WindowsMalwareCategoryPBehavior = WindowsMalwareCategoryVBehavior + _WindowsMalwareCategoryPVulnerability = WindowsMalwareCategoryVVulnerability + _WindowsMalwareCategoryPPolicy = WindowsMalwareCategoryVPolicy + _WindowsMalwareCategoryPEnterpriseUnwantedSoftware = WindowsMalwareCategoryVEnterpriseUnwantedSoftware + _WindowsMalwareCategoryPRansom = WindowsMalwareCategoryVRansom + _WindowsMalwareCategoryPHipsRule = WindowsMalwareCategoryVHipsRule +) + +// WindowsMalwareExecutionState undocumented +type WindowsMalwareExecutionState string + +const ( + // WindowsMalwareExecutionStateVUnknown undocumented + WindowsMalwareExecutionStateVUnknown WindowsMalwareExecutionState = "unknown" + // WindowsMalwareExecutionStateVBlocked undocumented + WindowsMalwareExecutionStateVBlocked WindowsMalwareExecutionState = "blocked" + // WindowsMalwareExecutionStateVAllowed undocumented + WindowsMalwareExecutionStateVAllowed WindowsMalwareExecutionState = "allowed" + // WindowsMalwareExecutionStateVRunning undocumented + WindowsMalwareExecutionStateVRunning WindowsMalwareExecutionState = "running" + // WindowsMalwareExecutionStateVNotRunning undocumented + WindowsMalwareExecutionStateVNotRunning WindowsMalwareExecutionState = "notRunning" +) + +var ( + // WindowsMalwareExecutionStatePUnknown is a pointer to WindowsMalwareExecutionStateVUnknown + WindowsMalwareExecutionStatePUnknown = &_WindowsMalwareExecutionStatePUnknown + // WindowsMalwareExecutionStatePBlocked is a pointer to WindowsMalwareExecutionStateVBlocked + WindowsMalwareExecutionStatePBlocked = &_WindowsMalwareExecutionStatePBlocked + // WindowsMalwareExecutionStatePAllowed is a pointer to WindowsMalwareExecutionStateVAllowed + WindowsMalwareExecutionStatePAllowed = &_WindowsMalwareExecutionStatePAllowed + // WindowsMalwareExecutionStatePRunning is a pointer to WindowsMalwareExecutionStateVRunning + WindowsMalwareExecutionStatePRunning = &_WindowsMalwareExecutionStatePRunning + // WindowsMalwareExecutionStatePNotRunning is a pointer to WindowsMalwareExecutionStateVNotRunning + WindowsMalwareExecutionStatePNotRunning = &_WindowsMalwareExecutionStatePNotRunning +) + +var ( + _WindowsMalwareExecutionStatePUnknown = WindowsMalwareExecutionStateVUnknown + _WindowsMalwareExecutionStatePBlocked = WindowsMalwareExecutionStateVBlocked + _WindowsMalwareExecutionStatePAllowed = WindowsMalwareExecutionStateVAllowed + _WindowsMalwareExecutionStatePRunning = WindowsMalwareExecutionStateVRunning + _WindowsMalwareExecutionStatePNotRunning = WindowsMalwareExecutionStateVNotRunning +) + +// WindowsMalwareSeverity undocumented +type WindowsMalwareSeverity string + +const ( + // WindowsMalwareSeverityVUnknown undocumented + WindowsMalwareSeverityVUnknown WindowsMalwareSeverity = "unknown" + // WindowsMalwareSeverityVLow undocumented + WindowsMalwareSeverityVLow WindowsMalwareSeverity = "low" + // WindowsMalwareSeverityVModerate undocumented + WindowsMalwareSeverityVModerate WindowsMalwareSeverity = "moderate" + // WindowsMalwareSeverityVHigh undocumented + WindowsMalwareSeverityVHigh WindowsMalwareSeverity = "high" + // WindowsMalwareSeverityVSevere undocumented + WindowsMalwareSeverityVSevere WindowsMalwareSeverity = "severe" +) + +var ( + // WindowsMalwareSeverityPUnknown is a pointer to WindowsMalwareSeverityVUnknown + WindowsMalwareSeverityPUnknown = &_WindowsMalwareSeverityPUnknown + // WindowsMalwareSeverityPLow is a pointer to WindowsMalwareSeverityVLow + WindowsMalwareSeverityPLow = &_WindowsMalwareSeverityPLow + // WindowsMalwareSeverityPModerate is a pointer to WindowsMalwareSeverityVModerate + WindowsMalwareSeverityPModerate = &_WindowsMalwareSeverityPModerate + // WindowsMalwareSeverityPHigh is a pointer to WindowsMalwareSeverityVHigh + WindowsMalwareSeverityPHigh = &_WindowsMalwareSeverityPHigh + // WindowsMalwareSeverityPSevere is a pointer to WindowsMalwareSeverityVSevere + WindowsMalwareSeverityPSevere = &_WindowsMalwareSeverityPSevere +) + +var ( + _WindowsMalwareSeverityPUnknown = WindowsMalwareSeverityVUnknown + _WindowsMalwareSeverityPLow = WindowsMalwareSeverityVLow + _WindowsMalwareSeverityPModerate = WindowsMalwareSeverityVModerate + _WindowsMalwareSeverityPHigh = WindowsMalwareSeverityVHigh + _WindowsMalwareSeverityPSevere = WindowsMalwareSeverityVSevere +) + +// WindowsMalwareState undocumented +type WindowsMalwareState string + +const ( + // WindowsMalwareStateVUnknown undocumented + WindowsMalwareStateVUnknown WindowsMalwareState = "unknown" + // WindowsMalwareStateVDetected undocumented + WindowsMalwareStateVDetected WindowsMalwareState = "detected" + // WindowsMalwareStateVCleaned undocumented + WindowsMalwareStateVCleaned WindowsMalwareState = "cleaned" + // WindowsMalwareStateVQuarantined undocumented + WindowsMalwareStateVQuarantined WindowsMalwareState = "quarantined" + // WindowsMalwareStateVRemoved undocumented + WindowsMalwareStateVRemoved WindowsMalwareState = "removed" + // WindowsMalwareStateVAllowed undocumented + WindowsMalwareStateVAllowed WindowsMalwareState = "allowed" + // WindowsMalwareStateVBlocked undocumented + WindowsMalwareStateVBlocked WindowsMalwareState = "blocked" + // WindowsMalwareStateVCleanFailed undocumented + WindowsMalwareStateVCleanFailed WindowsMalwareState = "cleanFailed" + // WindowsMalwareStateVQuarantineFailed undocumented + WindowsMalwareStateVQuarantineFailed WindowsMalwareState = "quarantineFailed" + // WindowsMalwareStateVRemoveFailed undocumented + WindowsMalwareStateVRemoveFailed WindowsMalwareState = "removeFailed" + // WindowsMalwareStateVAllowFailed undocumented + WindowsMalwareStateVAllowFailed WindowsMalwareState = "allowFailed" + // WindowsMalwareStateVAbandoned undocumented + WindowsMalwareStateVAbandoned WindowsMalwareState = "abandoned" + // WindowsMalwareStateVBlockFailed undocumented + WindowsMalwareStateVBlockFailed WindowsMalwareState = "blockFailed" +) + +var ( + // WindowsMalwareStatePUnknown is a pointer to WindowsMalwareStateVUnknown + WindowsMalwareStatePUnknown = &_WindowsMalwareStatePUnknown + // WindowsMalwareStatePDetected is a pointer to WindowsMalwareStateVDetected + WindowsMalwareStatePDetected = &_WindowsMalwareStatePDetected + // WindowsMalwareStatePCleaned is a pointer to WindowsMalwareStateVCleaned + WindowsMalwareStatePCleaned = &_WindowsMalwareStatePCleaned + // WindowsMalwareStatePQuarantined is a pointer to WindowsMalwareStateVQuarantined + WindowsMalwareStatePQuarantined = &_WindowsMalwareStatePQuarantined + // WindowsMalwareStatePRemoved is a pointer to WindowsMalwareStateVRemoved + WindowsMalwareStatePRemoved = &_WindowsMalwareStatePRemoved + // WindowsMalwareStatePAllowed is a pointer to WindowsMalwareStateVAllowed + WindowsMalwareStatePAllowed = &_WindowsMalwareStatePAllowed + // WindowsMalwareStatePBlocked is a pointer to WindowsMalwareStateVBlocked + WindowsMalwareStatePBlocked = &_WindowsMalwareStatePBlocked + // WindowsMalwareStatePCleanFailed is a pointer to WindowsMalwareStateVCleanFailed + WindowsMalwareStatePCleanFailed = &_WindowsMalwareStatePCleanFailed + // WindowsMalwareStatePQuarantineFailed is a pointer to WindowsMalwareStateVQuarantineFailed + WindowsMalwareStatePQuarantineFailed = &_WindowsMalwareStatePQuarantineFailed + // WindowsMalwareStatePRemoveFailed is a pointer to WindowsMalwareStateVRemoveFailed + WindowsMalwareStatePRemoveFailed = &_WindowsMalwareStatePRemoveFailed + // WindowsMalwareStatePAllowFailed is a pointer to WindowsMalwareStateVAllowFailed + WindowsMalwareStatePAllowFailed = &_WindowsMalwareStatePAllowFailed + // WindowsMalwareStatePAbandoned is a pointer to WindowsMalwareStateVAbandoned + WindowsMalwareStatePAbandoned = &_WindowsMalwareStatePAbandoned + // WindowsMalwareStatePBlockFailed is a pointer to WindowsMalwareStateVBlockFailed + WindowsMalwareStatePBlockFailed = &_WindowsMalwareStatePBlockFailed +) + +var ( + _WindowsMalwareStatePUnknown = WindowsMalwareStateVUnknown + _WindowsMalwareStatePDetected = WindowsMalwareStateVDetected + _WindowsMalwareStatePCleaned = WindowsMalwareStateVCleaned + _WindowsMalwareStatePQuarantined = WindowsMalwareStateVQuarantined + _WindowsMalwareStatePRemoved = WindowsMalwareStateVRemoved + _WindowsMalwareStatePAllowed = WindowsMalwareStateVAllowed + _WindowsMalwareStatePBlocked = WindowsMalwareStateVBlocked + _WindowsMalwareStatePCleanFailed = WindowsMalwareStateVCleanFailed + _WindowsMalwareStatePQuarantineFailed = WindowsMalwareStateVQuarantineFailed + _WindowsMalwareStatePRemoveFailed = WindowsMalwareStateVRemoveFailed + _WindowsMalwareStatePAllowFailed = WindowsMalwareStateVAllowFailed + _WindowsMalwareStatePAbandoned = WindowsMalwareStateVAbandoned + _WindowsMalwareStatePBlockFailed = WindowsMalwareStateVBlockFailed +) + +// WindowsMalwareThreatState undocumented +type WindowsMalwareThreatState string + +const ( + // WindowsMalwareThreatStateVActive undocumented + WindowsMalwareThreatStateVActive WindowsMalwareThreatState = "active" + // WindowsMalwareThreatStateVActionFailed undocumented + WindowsMalwareThreatStateVActionFailed WindowsMalwareThreatState = "actionFailed" + // WindowsMalwareThreatStateVManualStepsRequired undocumented + WindowsMalwareThreatStateVManualStepsRequired WindowsMalwareThreatState = "manualStepsRequired" + // WindowsMalwareThreatStateVFullScanRequired undocumented + WindowsMalwareThreatStateVFullScanRequired WindowsMalwareThreatState = "fullScanRequired" + // WindowsMalwareThreatStateVRebootRequired undocumented + WindowsMalwareThreatStateVRebootRequired WindowsMalwareThreatState = "rebootRequired" + // WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures undocumented + WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures WindowsMalwareThreatState = "remediatedWithNonCriticalFailures" + // WindowsMalwareThreatStateVQuarantined undocumented + WindowsMalwareThreatStateVQuarantined WindowsMalwareThreatState = "quarantined" + // WindowsMalwareThreatStateVRemoved undocumented + WindowsMalwareThreatStateVRemoved WindowsMalwareThreatState = "removed" + // WindowsMalwareThreatStateVCleaned undocumented + WindowsMalwareThreatStateVCleaned WindowsMalwareThreatState = "cleaned" + // WindowsMalwareThreatStateVAllowed undocumented + WindowsMalwareThreatStateVAllowed WindowsMalwareThreatState = "allowed" + // WindowsMalwareThreatStateVNoStatusCleared undocumented + WindowsMalwareThreatStateVNoStatusCleared WindowsMalwareThreatState = "noStatusCleared" +) + +var ( + // WindowsMalwareThreatStatePActive is a pointer to WindowsMalwareThreatStateVActive + WindowsMalwareThreatStatePActive = &_WindowsMalwareThreatStatePActive + // WindowsMalwareThreatStatePActionFailed is a pointer to WindowsMalwareThreatStateVActionFailed + WindowsMalwareThreatStatePActionFailed = &_WindowsMalwareThreatStatePActionFailed + // WindowsMalwareThreatStatePManualStepsRequired is a pointer to WindowsMalwareThreatStateVManualStepsRequired + WindowsMalwareThreatStatePManualStepsRequired = &_WindowsMalwareThreatStatePManualStepsRequired + // WindowsMalwareThreatStatePFullScanRequired is a pointer to WindowsMalwareThreatStateVFullScanRequired + WindowsMalwareThreatStatePFullScanRequired = &_WindowsMalwareThreatStatePFullScanRequired + // WindowsMalwareThreatStatePRebootRequired is a pointer to WindowsMalwareThreatStateVRebootRequired + WindowsMalwareThreatStatePRebootRequired = &_WindowsMalwareThreatStatePRebootRequired + // WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures is a pointer to WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures + WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures = &_WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures + // WindowsMalwareThreatStatePQuarantined is a pointer to WindowsMalwareThreatStateVQuarantined + WindowsMalwareThreatStatePQuarantined = &_WindowsMalwareThreatStatePQuarantined + // WindowsMalwareThreatStatePRemoved is a pointer to WindowsMalwareThreatStateVRemoved + WindowsMalwareThreatStatePRemoved = &_WindowsMalwareThreatStatePRemoved + // WindowsMalwareThreatStatePCleaned is a pointer to WindowsMalwareThreatStateVCleaned + WindowsMalwareThreatStatePCleaned = &_WindowsMalwareThreatStatePCleaned + // WindowsMalwareThreatStatePAllowed is a pointer to WindowsMalwareThreatStateVAllowed + WindowsMalwareThreatStatePAllowed = &_WindowsMalwareThreatStatePAllowed + // WindowsMalwareThreatStatePNoStatusCleared is a pointer to WindowsMalwareThreatStateVNoStatusCleared + WindowsMalwareThreatStatePNoStatusCleared = &_WindowsMalwareThreatStatePNoStatusCleared +) + +var ( + _WindowsMalwareThreatStatePActive = WindowsMalwareThreatStateVActive + _WindowsMalwareThreatStatePActionFailed = WindowsMalwareThreatStateVActionFailed + _WindowsMalwareThreatStatePManualStepsRequired = WindowsMalwareThreatStateVManualStepsRequired + _WindowsMalwareThreatStatePFullScanRequired = WindowsMalwareThreatStateVFullScanRequired + _WindowsMalwareThreatStatePRebootRequired = WindowsMalwareThreatStateVRebootRequired + _WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures = WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures + _WindowsMalwareThreatStatePQuarantined = WindowsMalwareThreatStateVQuarantined + _WindowsMalwareThreatStatePRemoved = WindowsMalwareThreatStateVRemoved + _WindowsMalwareThreatStatePCleaned = WindowsMalwareThreatStateVCleaned + _WindowsMalwareThreatStatePAllowed = WindowsMalwareThreatStateVAllowed + _WindowsMalwareThreatStatePNoStatusCleared = WindowsMalwareThreatStateVNoStatusCleared +) + +// WindowsPrivacyDataAccessLevel undocumented +type WindowsPrivacyDataAccessLevel string + +const ( + // WindowsPrivacyDataAccessLevelVNotConfigured undocumented + WindowsPrivacyDataAccessLevelVNotConfigured WindowsPrivacyDataAccessLevel = "notConfigured" + // WindowsPrivacyDataAccessLevelVForceAllow undocumented + WindowsPrivacyDataAccessLevelVForceAllow WindowsPrivacyDataAccessLevel = "forceAllow" + // WindowsPrivacyDataAccessLevelVForceDeny undocumented + WindowsPrivacyDataAccessLevelVForceDeny WindowsPrivacyDataAccessLevel = "forceDeny" + // WindowsPrivacyDataAccessLevelVUserInControl undocumented + WindowsPrivacyDataAccessLevelVUserInControl WindowsPrivacyDataAccessLevel = "userInControl" +) + +var ( + // WindowsPrivacyDataAccessLevelPNotConfigured is a pointer to WindowsPrivacyDataAccessLevelVNotConfigured + WindowsPrivacyDataAccessLevelPNotConfigured = &_WindowsPrivacyDataAccessLevelPNotConfigured + // WindowsPrivacyDataAccessLevelPForceAllow is a pointer to WindowsPrivacyDataAccessLevelVForceAllow + WindowsPrivacyDataAccessLevelPForceAllow = &_WindowsPrivacyDataAccessLevelPForceAllow + // WindowsPrivacyDataAccessLevelPForceDeny is a pointer to WindowsPrivacyDataAccessLevelVForceDeny + WindowsPrivacyDataAccessLevelPForceDeny = &_WindowsPrivacyDataAccessLevelPForceDeny + // WindowsPrivacyDataAccessLevelPUserInControl is a pointer to WindowsPrivacyDataAccessLevelVUserInControl + WindowsPrivacyDataAccessLevelPUserInControl = &_WindowsPrivacyDataAccessLevelPUserInControl +) + +var ( + _WindowsPrivacyDataAccessLevelPNotConfigured = WindowsPrivacyDataAccessLevelVNotConfigured + _WindowsPrivacyDataAccessLevelPForceAllow = WindowsPrivacyDataAccessLevelVForceAllow + _WindowsPrivacyDataAccessLevelPForceDeny = WindowsPrivacyDataAccessLevelVForceDeny + _WindowsPrivacyDataAccessLevelPUserInControl = WindowsPrivacyDataAccessLevelVUserInControl +) + +// WindowsPrivacyDataCategory undocumented +type WindowsPrivacyDataCategory string + +const ( + // WindowsPrivacyDataCategoryVNotConfigured undocumented + WindowsPrivacyDataCategoryVNotConfigured WindowsPrivacyDataCategory = "notConfigured" + // WindowsPrivacyDataCategoryVAccountInfo undocumented + WindowsPrivacyDataCategoryVAccountInfo WindowsPrivacyDataCategory = "accountInfo" + // WindowsPrivacyDataCategoryVAppsRunInBackground undocumented + WindowsPrivacyDataCategoryVAppsRunInBackground WindowsPrivacyDataCategory = "appsRunInBackground" + // WindowsPrivacyDataCategoryVCalendar undocumented + WindowsPrivacyDataCategoryVCalendar WindowsPrivacyDataCategory = "calendar" + // WindowsPrivacyDataCategoryVCallHistory undocumented + WindowsPrivacyDataCategoryVCallHistory WindowsPrivacyDataCategory = "callHistory" + // WindowsPrivacyDataCategoryVCamera undocumented + WindowsPrivacyDataCategoryVCamera WindowsPrivacyDataCategory = "camera" + // WindowsPrivacyDataCategoryVContacts undocumented + WindowsPrivacyDataCategoryVContacts WindowsPrivacyDataCategory = "contacts" + // WindowsPrivacyDataCategoryVDiagnosticsInfo undocumented + WindowsPrivacyDataCategoryVDiagnosticsInfo WindowsPrivacyDataCategory = "diagnosticsInfo" + // WindowsPrivacyDataCategoryVEmail undocumented + WindowsPrivacyDataCategoryVEmail WindowsPrivacyDataCategory = "email" + // WindowsPrivacyDataCategoryVLocation undocumented + WindowsPrivacyDataCategoryVLocation WindowsPrivacyDataCategory = "location" + // WindowsPrivacyDataCategoryVMessaging undocumented + WindowsPrivacyDataCategoryVMessaging WindowsPrivacyDataCategory = "messaging" + // WindowsPrivacyDataCategoryVMicrophone undocumented + WindowsPrivacyDataCategoryVMicrophone WindowsPrivacyDataCategory = "microphone" + // WindowsPrivacyDataCategoryVMotion undocumented + WindowsPrivacyDataCategoryVMotion WindowsPrivacyDataCategory = "motion" + // WindowsPrivacyDataCategoryVNotifications undocumented + WindowsPrivacyDataCategoryVNotifications WindowsPrivacyDataCategory = "notifications" + // WindowsPrivacyDataCategoryVPhone undocumented + WindowsPrivacyDataCategoryVPhone WindowsPrivacyDataCategory = "phone" + // WindowsPrivacyDataCategoryVRadios undocumented + WindowsPrivacyDataCategoryVRadios WindowsPrivacyDataCategory = "radios" + // WindowsPrivacyDataCategoryVTasks undocumented + WindowsPrivacyDataCategoryVTasks WindowsPrivacyDataCategory = "tasks" + // WindowsPrivacyDataCategoryVSyncWithDevices undocumented + WindowsPrivacyDataCategoryVSyncWithDevices WindowsPrivacyDataCategory = "syncWithDevices" + // WindowsPrivacyDataCategoryVTrustedDevices undocumented + WindowsPrivacyDataCategoryVTrustedDevices WindowsPrivacyDataCategory = "trustedDevices" +) + +var ( + // WindowsPrivacyDataCategoryPNotConfigured is a pointer to WindowsPrivacyDataCategoryVNotConfigured + WindowsPrivacyDataCategoryPNotConfigured = &_WindowsPrivacyDataCategoryPNotConfigured + // WindowsPrivacyDataCategoryPAccountInfo is a pointer to WindowsPrivacyDataCategoryVAccountInfo + WindowsPrivacyDataCategoryPAccountInfo = &_WindowsPrivacyDataCategoryPAccountInfo + // WindowsPrivacyDataCategoryPAppsRunInBackground is a pointer to WindowsPrivacyDataCategoryVAppsRunInBackground + WindowsPrivacyDataCategoryPAppsRunInBackground = &_WindowsPrivacyDataCategoryPAppsRunInBackground + // WindowsPrivacyDataCategoryPCalendar is a pointer to WindowsPrivacyDataCategoryVCalendar + WindowsPrivacyDataCategoryPCalendar = &_WindowsPrivacyDataCategoryPCalendar + // WindowsPrivacyDataCategoryPCallHistory is a pointer to WindowsPrivacyDataCategoryVCallHistory + WindowsPrivacyDataCategoryPCallHistory = &_WindowsPrivacyDataCategoryPCallHistory + // WindowsPrivacyDataCategoryPCamera is a pointer to WindowsPrivacyDataCategoryVCamera + WindowsPrivacyDataCategoryPCamera = &_WindowsPrivacyDataCategoryPCamera + // WindowsPrivacyDataCategoryPContacts is a pointer to WindowsPrivacyDataCategoryVContacts + WindowsPrivacyDataCategoryPContacts = &_WindowsPrivacyDataCategoryPContacts + // WindowsPrivacyDataCategoryPDiagnosticsInfo is a pointer to WindowsPrivacyDataCategoryVDiagnosticsInfo + WindowsPrivacyDataCategoryPDiagnosticsInfo = &_WindowsPrivacyDataCategoryPDiagnosticsInfo + // WindowsPrivacyDataCategoryPEmail is a pointer to WindowsPrivacyDataCategoryVEmail + WindowsPrivacyDataCategoryPEmail = &_WindowsPrivacyDataCategoryPEmail + // WindowsPrivacyDataCategoryPLocation is a pointer to WindowsPrivacyDataCategoryVLocation + WindowsPrivacyDataCategoryPLocation = &_WindowsPrivacyDataCategoryPLocation + // WindowsPrivacyDataCategoryPMessaging is a pointer to WindowsPrivacyDataCategoryVMessaging + WindowsPrivacyDataCategoryPMessaging = &_WindowsPrivacyDataCategoryPMessaging + // WindowsPrivacyDataCategoryPMicrophone is a pointer to WindowsPrivacyDataCategoryVMicrophone + WindowsPrivacyDataCategoryPMicrophone = &_WindowsPrivacyDataCategoryPMicrophone + // WindowsPrivacyDataCategoryPMotion is a pointer to WindowsPrivacyDataCategoryVMotion + WindowsPrivacyDataCategoryPMotion = &_WindowsPrivacyDataCategoryPMotion + // WindowsPrivacyDataCategoryPNotifications is a pointer to WindowsPrivacyDataCategoryVNotifications + WindowsPrivacyDataCategoryPNotifications = &_WindowsPrivacyDataCategoryPNotifications + // WindowsPrivacyDataCategoryPPhone is a pointer to WindowsPrivacyDataCategoryVPhone + WindowsPrivacyDataCategoryPPhone = &_WindowsPrivacyDataCategoryPPhone + // WindowsPrivacyDataCategoryPRadios is a pointer to WindowsPrivacyDataCategoryVRadios + WindowsPrivacyDataCategoryPRadios = &_WindowsPrivacyDataCategoryPRadios + // WindowsPrivacyDataCategoryPTasks is a pointer to WindowsPrivacyDataCategoryVTasks + WindowsPrivacyDataCategoryPTasks = &_WindowsPrivacyDataCategoryPTasks + // WindowsPrivacyDataCategoryPSyncWithDevices is a pointer to WindowsPrivacyDataCategoryVSyncWithDevices + WindowsPrivacyDataCategoryPSyncWithDevices = &_WindowsPrivacyDataCategoryPSyncWithDevices + // WindowsPrivacyDataCategoryPTrustedDevices is a pointer to WindowsPrivacyDataCategoryVTrustedDevices + WindowsPrivacyDataCategoryPTrustedDevices = &_WindowsPrivacyDataCategoryPTrustedDevices +) + +var ( + _WindowsPrivacyDataCategoryPNotConfigured = WindowsPrivacyDataCategoryVNotConfigured + _WindowsPrivacyDataCategoryPAccountInfo = WindowsPrivacyDataCategoryVAccountInfo + _WindowsPrivacyDataCategoryPAppsRunInBackground = WindowsPrivacyDataCategoryVAppsRunInBackground + _WindowsPrivacyDataCategoryPCalendar = WindowsPrivacyDataCategoryVCalendar + _WindowsPrivacyDataCategoryPCallHistory = WindowsPrivacyDataCategoryVCallHistory + _WindowsPrivacyDataCategoryPCamera = WindowsPrivacyDataCategoryVCamera + _WindowsPrivacyDataCategoryPContacts = WindowsPrivacyDataCategoryVContacts + _WindowsPrivacyDataCategoryPDiagnosticsInfo = WindowsPrivacyDataCategoryVDiagnosticsInfo + _WindowsPrivacyDataCategoryPEmail = WindowsPrivacyDataCategoryVEmail + _WindowsPrivacyDataCategoryPLocation = WindowsPrivacyDataCategoryVLocation + _WindowsPrivacyDataCategoryPMessaging = WindowsPrivacyDataCategoryVMessaging + _WindowsPrivacyDataCategoryPMicrophone = WindowsPrivacyDataCategoryVMicrophone + _WindowsPrivacyDataCategoryPMotion = WindowsPrivacyDataCategoryVMotion + _WindowsPrivacyDataCategoryPNotifications = WindowsPrivacyDataCategoryVNotifications + _WindowsPrivacyDataCategoryPPhone = WindowsPrivacyDataCategoryVPhone + _WindowsPrivacyDataCategoryPRadios = WindowsPrivacyDataCategoryVRadios + _WindowsPrivacyDataCategoryPTasks = WindowsPrivacyDataCategoryVTasks + _WindowsPrivacyDataCategoryPSyncWithDevices = WindowsPrivacyDataCategoryVSyncWithDevices + _WindowsPrivacyDataCategoryPTrustedDevices = WindowsPrivacyDataCategoryVTrustedDevices +) + +// WindowsSModeConfiguration undocumented +type WindowsSModeConfiguration string + +const ( + // WindowsSModeConfigurationVNoRestriction undocumented + WindowsSModeConfigurationVNoRestriction WindowsSModeConfiguration = "noRestriction" + // WindowsSModeConfigurationVBlock undocumented + WindowsSModeConfigurationVBlock WindowsSModeConfiguration = "block" + // WindowsSModeConfigurationVUnlock undocumented + WindowsSModeConfigurationVUnlock WindowsSModeConfiguration = "unlock" +) + +var ( + // WindowsSModeConfigurationPNoRestriction is a pointer to WindowsSModeConfigurationVNoRestriction + WindowsSModeConfigurationPNoRestriction = &_WindowsSModeConfigurationPNoRestriction + // WindowsSModeConfigurationPBlock is a pointer to WindowsSModeConfigurationVBlock + WindowsSModeConfigurationPBlock = &_WindowsSModeConfigurationPBlock + // WindowsSModeConfigurationPUnlock is a pointer to WindowsSModeConfigurationVUnlock + WindowsSModeConfigurationPUnlock = &_WindowsSModeConfigurationPUnlock +) + +var ( + _WindowsSModeConfigurationPNoRestriction = WindowsSModeConfigurationVNoRestriction + _WindowsSModeConfigurationPBlock = WindowsSModeConfigurationVBlock + _WindowsSModeConfigurationPUnlock = WindowsSModeConfigurationVUnlock +) + +// WindowsSpotlightEnablementSettings undocumented +type WindowsSpotlightEnablementSettings string + +const ( + // WindowsSpotlightEnablementSettingsVNotConfigured undocumented + WindowsSpotlightEnablementSettingsVNotConfigured WindowsSpotlightEnablementSettings = "notConfigured" + // WindowsSpotlightEnablementSettingsVDisabled undocumented + WindowsSpotlightEnablementSettingsVDisabled WindowsSpotlightEnablementSettings = "disabled" + // WindowsSpotlightEnablementSettingsVEnabled undocumented + WindowsSpotlightEnablementSettingsVEnabled WindowsSpotlightEnablementSettings = "enabled" +) + +var ( + // WindowsSpotlightEnablementSettingsPNotConfigured is a pointer to WindowsSpotlightEnablementSettingsVNotConfigured + WindowsSpotlightEnablementSettingsPNotConfigured = &_WindowsSpotlightEnablementSettingsPNotConfigured + // WindowsSpotlightEnablementSettingsPDisabled is a pointer to WindowsSpotlightEnablementSettingsVDisabled + WindowsSpotlightEnablementSettingsPDisabled = &_WindowsSpotlightEnablementSettingsPDisabled + // WindowsSpotlightEnablementSettingsPEnabled is a pointer to WindowsSpotlightEnablementSettingsVEnabled + WindowsSpotlightEnablementSettingsPEnabled = &_WindowsSpotlightEnablementSettingsPEnabled +) + +var ( + _WindowsSpotlightEnablementSettingsPNotConfigured = WindowsSpotlightEnablementSettingsVNotConfigured + _WindowsSpotlightEnablementSettingsPDisabled = WindowsSpotlightEnablementSettingsVDisabled + _WindowsSpotlightEnablementSettingsPEnabled = WindowsSpotlightEnablementSettingsVEnabled +) + +// WindowsStartMenuAppListVisibilityType undocumented +type WindowsStartMenuAppListVisibilityType string + +const ( + // WindowsStartMenuAppListVisibilityTypeVUserDefined undocumented + WindowsStartMenuAppListVisibilityTypeVUserDefined WindowsStartMenuAppListVisibilityType = "userDefined" + // WindowsStartMenuAppListVisibilityTypeVCollapse undocumented + WindowsStartMenuAppListVisibilityTypeVCollapse WindowsStartMenuAppListVisibilityType = "collapse" + // WindowsStartMenuAppListVisibilityTypeVRemove undocumented + WindowsStartMenuAppListVisibilityTypeVRemove WindowsStartMenuAppListVisibilityType = "remove" + // WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp undocumented + WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp WindowsStartMenuAppListVisibilityType = "disableSettingsApp" +) + +var ( + // WindowsStartMenuAppListVisibilityTypePUserDefined is a pointer to WindowsStartMenuAppListVisibilityTypeVUserDefined + WindowsStartMenuAppListVisibilityTypePUserDefined = &_WindowsStartMenuAppListVisibilityTypePUserDefined + // WindowsStartMenuAppListVisibilityTypePCollapse is a pointer to WindowsStartMenuAppListVisibilityTypeVCollapse + WindowsStartMenuAppListVisibilityTypePCollapse = &_WindowsStartMenuAppListVisibilityTypePCollapse + // WindowsStartMenuAppListVisibilityTypePRemove is a pointer to WindowsStartMenuAppListVisibilityTypeVRemove + WindowsStartMenuAppListVisibilityTypePRemove = &_WindowsStartMenuAppListVisibilityTypePRemove + // WindowsStartMenuAppListVisibilityTypePDisableSettingsApp is a pointer to WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp + WindowsStartMenuAppListVisibilityTypePDisableSettingsApp = &_WindowsStartMenuAppListVisibilityTypePDisableSettingsApp +) + +var ( + _WindowsStartMenuAppListVisibilityTypePUserDefined = WindowsStartMenuAppListVisibilityTypeVUserDefined + _WindowsStartMenuAppListVisibilityTypePCollapse = WindowsStartMenuAppListVisibilityTypeVCollapse + _WindowsStartMenuAppListVisibilityTypePRemove = WindowsStartMenuAppListVisibilityTypeVRemove + _WindowsStartMenuAppListVisibilityTypePDisableSettingsApp = WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp +) + +// WindowsStartMenuModeType undocumented +type WindowsStartMenuModeType string + +const ( + // WindowsStartMenuModeTypeVUserDefined undocumented + WindowsStartMenuModeTypeVUserDefined WindowsStartMenuModeType = "userDefined" + // WindowsStartMenuModeTypeVFullScreen undocumented + WindowsStartMenuModeTypeVFullScreen WindowsStartMenuModeType = "fullScreen" + // WindowsStartMenuModeTypeVNonFullScreen undocumented + WindowsStartMenuModeTypeVNonFullScreen WindowsStartMenuModeType = "nonFullScreen" +) + +var ( + // WindowsStartMenuModeTypePUserDefined is a pointer to WindowsStartMenuModeTypeVUserDefined + WindowsStartMenuModeTypePUserDefined = &_WindowsStartMenuModeTypePUserDefined + // WindowsStartMenuModeTypePFullScreen is a pointer to WindowsStartMenuModeTypeVFullScreen + WindowsStartMenuModeTypePFullScreen = &_WindowsStartMenuModeTypePFullScreen + // WindowsStartMenuModeTypePNonFullScreen is a pointer to WindowsStartMenuModeTypeVNonFullScreen + WindowsStartMenuModeTypePNonFullScreen = &_WindowsStartMenuModeTypePNonFullScreen +) + +var ( + _WindowsStartMenuModeTypePUserDefined = WindowsStartMenuModeTypeVUserDefined + _WindowsStartMenuModeTypePFullScreen = WindowsStartMenuModeTypeVFullScreen + _WindowsStartMenuModeTypePNonFullScreen = WindowsStartMenuModeTypeVNonFullScreen +) + +// WindowsUpdateForBusinessUpdateWeeks undocumented +type WindowsUpdateForBusinessUpdateWeeks string + +const ( + // WindowsUpdateForBusinessUpdateWeeksVUserDefined undocumented + WindowsUpdateForBusinessUpdateWeeksVUserDefined WindowsUpdateForBusinessUpdateWeeks = "userDefined" + // WindowsUpdateForBusinessUpdateWeeksVFirstWeek undocumented + WindowsUpdateForBusinessUpdateWeeksVFirstWeek WindowsUpdateForBusinessUpdateWeeks = "firstWeek" + // WindowsUpdateForBusinessUpdateWeeksVSecondWeek undocumented + WindowsUpdateForBusinessUpdateWeeksVSecondWeek WindowsUpdateForBusinessUpdateWeeks = "secondWeek" + // WindowsUpdateForBusinessUpdateWeeksVThirdWeek undocumented + WindowsUpdateForBusinessUpdateWeeksVThirdWeek WindowsUpdateForBusinessUpdateWeeks = "thirdWeek" + // WindowsUpdateForBusinessUpdateWeeksVFourthWeek undocumented + WindowsUpdateForBusinessUpdateWeeksVFourthWeek WindowsUpdateForBusinessUpdateWeeks = "fourthWeek" + // WindowsUpdateForBusinessUpdateWeeksVEveryWeek undocumented + WindowsUpdateForBusinessUpdateWeeksVEveryWeek WindowsUpdateForBusinessUpdateWeeks = "everyWeek" +) + +var ( + // WindowsUpdateForBusinessUpdateWeeksPUserDefined is a pointer to WindowsUpdateForBusinessUpdateWeeksVUserDefined + WindowsUpdateForBusinessUpdateWeeksPUserDefined = &_WindowsUpdateForBusinessUpdateWeeksPUserDefined + // WindowsUpdateForBusinessUpdateWeeksPFirstWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVFirstWeek + WindowsUpdateForBusinessUpdateWeeksPFirstWeek = &_WindowsUpdateForBusinessUpdateWeeksPFirstWeek + // WindowsUpdateForBusinessUpdateWeeksPSecondWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVSecondWeek + WindowsUpdateForBusinessUpdateWeeksPSecondWeek = &_WindowsUpdateForBusinessUpdateWeeksPSecondWeek + // WindowsUpdateForBusinessUpdateWeeksPThirdWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVThirdWeek + WindowsUpdateForBusinessUpdateWeeksPThirdWeek = &_WindowsUpdateForBusinessUpdateWeeksPThirdWeek + // WindowsUpdateForBusinessUpdateWeeksPFourthWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVFourthWeek + WindowsUpdateForBusinessUpdateWeeksPFourthWeek = &_WindowsUpdateForBusinessUpdateWeeksPFourthWeek + // WindowsUpdateForBusinessUpdateWeeksPEveryWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVEveryWeek + WindowsUpdateForBusinessUpdateWeeksPEveryWeek = &_WindowsUpdateForBusinessUpdateWeeksPEveryWeek +) + +var ( + _WindowsUpdateForBusinessUpdateWeeksPUserDefined = WindowsUpdateForBusinessUpdateWeeksVUserDefined + _WindowsUpdateForBusinessUpdateWeeksPFirstWeek = WindowsUpdateForBusinessUpdateWeeksVFirstWeek + _WindowsUpdateForBusinessUpdateWeeksPSecondWeek = WindowsUpdateForBusinessUpdateWeeksVSecondWeek + _WindowsUpdateForBusinessUpdateWeeksPThirdWeek = WindowsUpdateForBusinessUpdateWeeksVThirdWeek + _WindowsUpdateForBusinessUpdateWeeksPFourthWeek = WindowsUpdateForBusinessUpdateWeeksVFourthWeek + _WindowsUpdateForBusinessUpdateWeeksPEveryWeek = WindowsUpdateForBusinessUpdateWeeksVEveryWeek +) + +// WindowsUpdateNotificationDisplayOption undocumented +type WindowsUpdateNotificationDisplayOption string + +const ( + // WindowsUpdateNotificationDisplayOptionVNotConfigured undocumented + WindowsUpdateNotificationDisplayOptionVNotConfigured WindowsUpdateNotificationDisplayOption = "notConfigured" + // WindowsUpdateNotificationDisplayOptionVDefaultNotifications undocumented + WindowsUpdateNotificationDisplayOptionVDefaultNotifications WindowsUpdateNotificationDisplayOption = "defaultNotifications" + // WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly undocumented + WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly WindowsUpdateNotificationDisplayOption = "restartWarningsOnly" + // WindowsUpdateNotificationDisplayOptionVDisableAllNotifications undocumented + WindowsUpdateNotificationDisplayOptionVDisableAllNotifications WindowsUpdateNotificationDisplayOption = "disableAllNotifications" +) + +var ( + // WindowsUpdateNotificationDisplayOptionPNotConfigured is a pointer to WindowsUpdateNotificationDisplayOptionVNotConfigured + WindowsUpdateNotificationDisplayOptionPNotConfigured = &_WindowsUpdateNotificationDisplayOptionPNotConfigured + // WindowsUpdateNotificationDisplayOptionPDefaultNotifications is a pointer to WindowsUpdateNotificationDisplayOptionVDefaultNotifications + WindowsUpdateNotificationDisplayOptionPDefaultNotifications = &_WindowsUpdateNotificationDisplayOptionPDefaultNotifications + // WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly is a pointer to WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly + WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly = &_WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly + // WindowsUpdateNotificationDisplayOptionPDisableAllNotifications is a pointer to WindowsUpdateNotificationDisplayOptionVDisableAllNotifications + WindowsUpdateNotificationDisplayOptionPDisableAllNotifications = &_WindowsUpdateNotificationDisplayOptionPDisableAllNotifications +) + +var ( + _WindowsUpdateNotificationDisplayOptionPNotConfigured = WindowsUpdateNotificationDisplayOptionVNotConfigured + _WindowsUpdateNotificationDisplayOptionPDefaultNotifications = WindowsUpdateNotificationDisplayOptionVDefaultNotifications + _WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly = WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly + _WindowsUpdateNotificationDisplayOptionPDisableAllNotifications = WindowsUpdateNotificationDisplayOptionVDisableAllNotifications +) + +// WindowsUpdateStatus undocumented +type WindowsUpdateStatus string + +const ( + // WindowsUpdateStatusVUpToDate undocumented + WindowsUpdateStatusVUpToDate WindowsUpdateStatus = "upToDate" + // WindowsUpdateStatusVPendingInstallation undocumented + WindowsUpdateStatusVPendingInstallation WindowsUpdateStatus = "pendingInstallation" + // WindowsUpdateStatusVPendingReboot undocumented + WindowsUpdateStatusVPendingReboot WindowsUpdateStatus = "pendingReboot" + // WindowsUpdateStatusVFailed undocumented + WindowsUpdateStatusVFailed WindowsUpdateStatus = "failed" +) + +var ( + // WindowsUpdateStatusPUpToDate is a pointer to WindowsUpdateStatusVUpToDate + WindowsUpdateStatusPUpToDate = &_WindowsUpdateStatusPUpToDate + // WindowsUpdateStatusPPendingInstallation is a pointer to WindowsUpdateStatusVPendingInstallation + WindowsUpdateStatusPPendingInstallation = &_WindowsUpdateStatusPPendingInstallation + // WindowsUpdateStatusPPendingReboot is a pointer to WindowsUpdateStatusVPendingReboot + WindowsUpdateStatusPPendingReboot = &_WindowsUpdateStatusPPendingReboot + // WindowsUpdateStatusPFailed is a pointer to WindowsUpdateStatusVFailed + WindowsUpdateStatusPFailed = &_WindowsUpdateStatusPFailed +) + +var ( + _WindowsUpdateStatusPUpToDate = WindowsUpdateStatusVUpToDate + _WindowsUpdateStatusPPendingInstallation = WindowsUpdateStatusVPendingInstallation + _WindowsUpdateStatusPPendingReboot = WindowsUpdateStatusVPendingReboot + _WindowsUpdateStatusPFailed = WindowsUpdateStatusVFailed +) + +// WindowsUpdateType undocumented +type WindowsUpdateType string + +const ( + // WindowsUpdateTypeVUserDefined undocumented + WindowsUpdateTypeVUserDefined WindowsUpdateType = "userDefined" + // WindowsUpdateTypeVAll undocumented + WindowsUpdateTypeVAll WindowsUpdateType = "all" + // WindowsUpdateTypeVBusinessReadyOnly undocumented + WindowsUpdateTypeVBusinessReadyOnly WindowsUpdateType = "businessReadyOnly" + // WindowsUpdateTypeVWindowsInsiderBuildFast undocumented + WindowsUpdateTypeVWindowsInsiderBuildFast WindowsUpdateType = "windowsInsiderBuildFast" + // WindowsUpdateTypeVWindowsInsiderBuildSlow undocumented + WindowsUpdateTypeVWindowsInsiderBuildSlow WindowsUpdateType = "windowsInsiderBuildSlow" + // WindowsUpdateTypeVWindowsInsiderBuildRelease undocumented + WindowsUpdateTypeVWindowsInsiderBuildRelease WindowsUpdateType = "windowsInsiderBuildRelease" +) + +var ( + // WindowsUpdateTypePUserDefined is a pointer to WindowsUpdateTypeVUserDefined + WindowsUpdateTypePUserDefined = &_WindowsUpdateTypePUserDefined + // WindowsUpdateTypePAll is a pointer to WindowsUpdateTypeVAll + WindowsUpdateTypePAll = &_WindowsUpdateTypePAll + // WindowsUpdateTypePBusinessReadyOnly is a pointer to WindowsUpdateTypeVBusinessReadyOnly + WindowsUpdateTypePBusinessReadyOnly = &_WindowsUpdateTypePBusinessReadyOnly + // WindowsUpdateTypePWindowsInsiderBuildFast is a pointer to WindowsUpdateTypeVWindowsInsiderBuildFast + WindowsUpdateTypePWindowsInsiderBuildFast = &_WindowsUpdateTypePWindowsInsiderBuildFast + // WindowsUpdateTypePWindowsInsiderBuildSlow is a pointer to WindowsUpdateTypeVWindowsInsiderBuildSlow + WindowsUpdateTypePWindowsInsiderBuildSlow = &_WindowsUpdateTypePWindowsInsiderBuildSlow + // WindowsUpdateTypePWindowsInsiderBuildRelease is a pointer to WindowsUpdateTypeVWindowsInsiderBuildRelease + WindowsUpdateTypePWindowsInsiderBuildRelease = &_WindowsUpdateTypePWindowsInsiderBuildRelease +) + +var ( + _WindowsUpdateTypePUserDefined = WindowsUpdateTypeVUserDefined + _WindowsUpdateTypePAll = WindowsUpdateTypeVAll + _WindowsUpdateTypePBusinessReadyOnly = WindowsUpdateTypeVBusinessReadyOnly + _WindowsUpdateTypePWindowsInsiderBuildFast = WindowsUpdateTypeVWindowsInsiderBuildFast + _WindowsUpdateTypePWindowsInsiderBuildSlow = WindowsUpdateTypeVWindowsInsiderBuildSlow + _WindowsUpdateTypePWindowsInsiderBuildRelease = WindowsUpdateTypeVWindowsInsiderBuildRelease +) + +// WindowsUserAccountControlSettings undocumented +type WindowsUserAccountControlSettings string + +const ( + // WindowsUserAccountControlSettingsVUserDefined undocumented + WindowsUserAccountControlSettingsVUserDefined WindowsUserAccountControlSettings = "userDefined" + // WindowsUserAccountControlSettingsVAlwaysNotify undocumented + WindowsUserAccountControlSettingsVAlwaysNotify WindowsUserAccountControlSettings = "alwaysNotify" + // WindowsUserAccountControlSettingsVNotifyOnAppChanges undocumented + WindowsUserAccountControlSettingsVNotifyOnAppChanges WindowsUserAccountControlSettings = "notifyOnAppChanges" + // WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming undocumented + WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming WindowsUserAccountControlSettings = "notifyOnAppChangesWithoutDimming" + // WindowsUserAccountControlSettingsVNeverNotify undocumented + WindowsUserAccountControlSettingsVNeverNotify WindowsUserAccountControlSettings = "neverNotify" +) + +var ( + // WindowsUserAccountControlSettingsPUserDefined is a pointer to WindowsUserAccountControlSettingsVUserDefined + WindowsUserAccountControlSettingsPUserDefined = &_WindowsUserAccountControlSettingsPUserDefined + // WindowsUserAccountControlSettingsPAlwaysNotify is a pointer to WindowsUserAccountControlSettingsVAlwaysNotify + WindowsUserAccountControlSettingsPAlwaysNotify = &_WindowsUserAccountControlSettingsPAlwaysNotify + // WindowsUserAccountControlSettingsPNotifyOnAppChanges is a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChanges + WindowsUserAccountControlSettingsPNotifyOnAppChanges = &_WindowsUserAccountControlSettingsPNotifyOnAppChanges + // WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming is a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming + WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming = &_WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming + // WindowsUserAccountControlSettingsPNeverNotify is a pointer to WindowsUserAccountControlSettingsVNeverNotify + WindowsUserAccountControlSettingsPNeverNotify = &_WindowsUserAccountControlSettingsPNeverNotify +) + +var ( + _WindowsUserAccountControlSettingsPUserDefined = WindowsUserAccountControlSettingsVUserDefined + _WindowsUserAccountControlSettingsPAlwaysNotify = WindowsUserAccountControlSettingsVAlwaysNotify + _WindowsUserAccountControlSettingsPNotifyOnAppChanges = WindowsUserAccountControlSettingsVNotifyOnAppChanges + _WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming = WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming + _WindowsUserAccountControlSettingsPNeverNotify = WindowsUserAccountControlSettingsVNeverNotify +) + +// WindowsUserType undocumented +type WindowsUserType string + +const ( + // WindowsUserTypeVAdministrator undocumented + WindowsUserTypeVAdministrator WindowsUserType = "administrator" + // WindowsUserTypeVStandard undocumented + WindowsUserTypeVStandard WindowsUserType = "standard" +) + +var ( + // WindowsUserTypePAdministrator is a pointer to WindowsUserTypeVAdministrator + WindowsUserTypePAdministrator = &_WindowsUserTypePAdministrator + // WindowsUserTypePStandard is a pointer to WindowsUserTypeVStandard + WindowsUserTypePStandard = &_WindowsUserTypePStandard +) + +var ( + _WindowsUserTypePAdministrator = WindowsUserTypeVAdministrator + _WindowsUserTypePStandard = WindowsUserTypeVStandard +) + +// WindowsVPNConnectionType undocumented +type WindowsVPNConnectionType string + +const ( + // WindowsVPNConnectionTypeVPulseSecure undocumented + WindowsVPNConnectionTypeVPulseSecure WindowsVPNConnectionType = "pulseSecure" + // WindowsVPNConnectionTypeVF5EdgeClient undocumented + WindowsVPNConnectionTypeVF5EdgeClient WindowsVPNConnectionType = "f5EdgeClient" + // WindowsVPNConnectionTypeVDellSonicWallMobileConnect undocumented + WindowsVPNConnectionTypeVDellSonicWallMobileConnect WindowsVPNConnectionType = "dellSonicWallMobileConnect" + // WindowsVPNConnectionTypeVCheckPointCapsuleVPN undocumented + WindowsVPNConnectionTypeVCheckPointCapsuleVPN WindowsVPNConnectionType = "checkPointCapsuleVpn" +) + +var ( + // WindowsVPNConnectionTypePPulseSecure is a pointer to WindowsVPNConnectionTypeVPulseSecure + WindowsVPNConnectionTypePPulseSecure = &_WindowsVPNConnectionTypePPulseSecure + // WindowsVPNConnectionTypePF5EdgeClient is a pointer to WindowsVPNConnectionTypeVF5EdgeClient + WindowsVPNConnectionTypePF5EdgeClient = &_WindowsVPNConnectionTypePF5EdgeClient + // WindowsVPNConnectionTypePDellSonicWallMobileConnect is a pointer to WindowsVPNConnectionTypeVDellSonicWallMobileConnect + WindowsVPNConnectionTypePDellSonicWallMobileConnect = &_WindowsVPNConnectionTypePDellSonicWallMobileConnect + // WindowsVPNConnectionTypePCheckPointCapsuleVPN is a pointer to WindowsVPNConnectionTypeVCheckPointCapsuleVPN + WindowsVPNConnectionTypePCheckPointCapsuleVPN = &_WindowsVPNConnectionTypePCheckPointCapsuleVPN +) + +var ( + _WindowsVPNConnectionTypePPulseSecure = WindowsVPNConnectionTypeVPulseSecure + _WindowsVPNConnectionTypePF5EdgeClient = WindowsVPNConnectionTypeVF5EdgeClient + _WindowsVPNConnectionTypePDellSonicWallMobileConnect = WindowsVPNConnectionTypeVDellSonicWallMobileConnect + _WindowsVPNConnectionTypePCheckPointCapsuleVPN = WindowsVPNConnectionTypeVCheckPointCapsuleVPN +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go new file mode 100644 index 00000000..82c6825c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go @@ -0,0 +1,307 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Windows10AppType undocumented +type Windows10AppType string + +const ( + // Windows10AppTypeVDesktop undocumented + Windows10AppTypeVDesktop Windows10AppType = "desktop" + // Windows10AppTypeVUniversal undocumented + Windows10AppTypeVUniversal Windows10AppType = "universal" +) + +var ( + // Windows10AppTypePDesktop is a pointer to Windows10AppTypeVDesktop + Windows10AppTypePDesktop = &_Windows10AppTypePDesktop + // Windows10AppTypePUniversal is a pointer to Windows10AppTypeVUniversal + Windows10AppTypePUniversal = &_Windows10AppTypePUniversal +) + +var ( + _Windows10AppTypePDesktop = Windows10AppTypeVDesktop + _Windows10AppTypePUniversal = Windows10AppTypeVUniversal +) + +// Windows10AppsUpdateRecurrence undocumented +type Windows10AppsUpdateRecurrence string + +const ( + // Windows10AppsUpdateRecurrenceVNone undocumented + Windows10AppsUpdateRecurrenceVNone Windows10AppsUpdateRecurrence = "none" + // Windows10AppsUpdateRecurrenceVDaily undocumented + Windows10AppsUpdateRecurrenceVDaily Windows10AppsUpdateRecurrence = "daily" + // Windows10AppsUpdateRecurrenceVWeekly undocumented + Windows10AppsUpdateRecurrenceVWeekly Windows10AppsUpdateRecurrence = "weekly" + // Windows10AppsUpdateRecurrenceVMonthly undocumented + Windows10AppsUpdateRecurrenceVMonthly Windows10AppsUpdateRecurrence = "monthly" +) + +var ( + // Windows10AppsUpdateRecurrencePNone is a pointer to Windows10AppsUpdateRecurrenceVNone + Windows10AppsUpdateRecurrencePNone = &_Windows10AppsUpdateRecurrencePNone + // Windows10AppsUpdateRecurrencePDaily is a pointer to Windows10AppsUpdateRecurrenceVDaily + Windows10AppsUpdateRecurrencePDaily = &_Windows10AppsUpdateRecurrencePDaily + // Windows10AppsUpdateRecurrencePWeekly is a pointer to Windows10AppsUpdateRecurrenceVWeekly + Windows10AppsUpdateRecurrencePWeekly = &_Windows10AppsUpdateRecurrencePWeekly + // Windows10AppsUpdateRecurrencePMonthly is a pointer to Windows10AppsUpdateRecurrenceVMonthly + Windows10AppsUpdateRecurrencePMonthly = &_Windows10AppsUpdateRecurrencePMonthly +) + +var ( + _Windows10AppsUpdateRecurrencePNone = Windows10AppsUpdateRecurrenceVNone + _Windows10AppsUpdateRecurrencePDaily = Windows10AppsUpdateRecurrenceVDaily + _Windows10AppsUpdateRecurrencePWeekly = Windows10AppsUpdateRecurrenceVWeekly + _Windows10AppsUpdateRecurrencePMonthly = Windows10AppsUpdateRecurrenceVMonthly +) + +// Windows10DeviceModeType undocumented +type Windows10DeviceModeType string + +const ( + // Windows10DeviceModeTypeVStandardConfiguration undocumented + Windows10DeviceModeTypeVStandardConfiguration Windows10DeviceModeType = "standardConfiguration" + // Windows10DeviceModeTypeVSModeConfiguration undocumented + Windows10DeviceModeTypeVSModeConfiguration Windows10DeviceModeType = "sModeConfiguration" +) + +var ( + // Windows10DeviceModeTypePStandardConfiguration is a pointer to Windows10DeviceModeTypeVStandardConfiguration + Windows10DeviceModeTypePStandardConfiguration = &_Windows10DeviceModeTypePStandardConfiguration + // Windows10DeviceModeTypePSModeConfiguration is a pointer to Windows10DeviceModeTypeVSModeConfiguration + Windows10DeviceModeTypePSModeConfiguration = &_Windows10DeviceModeTypePSModeConfiguration +) + +var ( + _Windows10DeviceModeTypePStandardConfiguration = Windows10DeviceModeTypeVStandardConfiguration + _Windows10DeviceModeTypePSModeConfiguration = Windows10DeviceModeTypeVSModeConfiguration +) + +// Windows10EditionType undocumented +type Windows10EditionType string + +const ( + // Windows10EditionTypeVWindows10Enterprise undocumented + Windows10EditionTypeVWindows10Enterprise Windows10EditionType = "windows10Enterprise" + // Windows10EditionTypeVWindows10EnterpriseN undocumented + Windows10EditionTypeVWindows10EnterpriseN Windows10EditionType = "windows10EnterpriseN" + // Windows10EditionTypeVWindows10Education undocumented + Windows10EditionTypeVWindows10Education Windows10EditionType = "windows10Education" + // Windows10EditionTypeVWindows10EducationN undocumented + Windows10EditionTypeVWindows10EducationN Windows10EditionType = "windows10EducationN" + // Windows10EditionTypeVWindows10MobileEnterprise undocumented + Windows10EditionTypeVWindows10MobileEnterprise Windows10EditionType = "windows10MobileEnterprise" + // Windows10EditionTypeVWindows10HolographicEnterprise undocumented + Windows10EditionTypeVWindows10HolographicEnterprise Windows10EditionType = "windows10HolographicEnterprise" + // Windows10EditionTypeVWindows10Professional undocumented + Windows10EditionTypeVWindows10Professional Windows10EditionType = "windows10Professional" + // Windows10EditionTypeVWindows10ProfessionalN undocumented + Windows10EditionTypeVWindows10ProfessionalN Windows10EditionType = "windows10ProfessionalN" + // Windows10EditionTypeVWindows10ProfessionalEducation undocumented + Windows10EditionTypeVWindows10ProfessionalEducation Windows10EditionType = "windows10ProfessionalEducation" + // Windows10EditionTypeVWindows10ProfessionalEducationN undocumented + Windows10EditionTypeVWindows10ProfessionalEducationN Windows10EditionType = "windows10ProfessionalEducationN" + // Windows10EditionTypeVWindows10ProfessionalWorkstation undocumented + Windows10EditionTypeVWindows10ProfessionalWorkstation Windows10EditionType = "windows10ProfessionalWorkstation" + // Windows10EditionTypeVWindows10ProfessionalWorkstationN undocumented + Windows10EditionTypeVWindows10ProfessionalWorkstationN Windows10EditionType = "windows10ProfessionalWorkstationN" + // Windows10EditionTypeVNotConfigured undocumented + Windows10EditionTypeVNotConfigured Windows10EditionType = "notConfigured" + // Windows10EditionTypeVWindows10Home undocumented + Windows10EditionTypeVWindows10Home Windows10EditionType = "windows10Home" + // Windows10EditionTypeVWindows10HomeChina undocumented + Windows10EditionTypeVWindows10HomeChina Windows10EditionType = "windows10HomeChina" + // Windows10EditionTypeVWindows10HomeN undocumented + Windows10EditionTypeVWindows10HomeN Windows10EditionType = "windows10HomeN" + // Windows10EditionTypeVWindows10HomeSingleLanguage undocumented + Windows10EditionTypeVWindows10HomeSingleLanguage Windows10EditionType = "windows10HomeSingleLanguage" + // Windows10EditionTypeVWindows10Mobile undocumented + Windows10EditionTypeVWindows10Mobile Windows10EditionType = "windows10Mobile" + // Windows10EditionTypeVWindows10IoTCore undocumented + Windows10EditionTypeVWindows10IoTCore Windows10EditionType = "windows10IoTCore" + // Windows10EditionTypeVWindows10IoTCoreCommercial undocumented + Windows10EditionTypeVWindows10IoTCoreCommercial Windows10EditionType = "windows10IoTCoreCommercial" +) + +var ( + // Windows10EditionTypePWindows10Enterprise is a pointer to Windows10EditionTypeVWindows10Enterprise + Windows10EditionTypePWindows10Enterprise = &_Windows10EditionTypePWindows10Enterprise + // Windows10EditionTypePWindows10EnterpriseN is a pointer to Windows10EditionTypeVWindows10EnterpriseN + Windows10EditionTypePWindows10EnterpriseN = &_Windows10EditionTypePWindows10EnterpriseN + // Windows10EditionTypePWindows10Education is a pointer to Windows10EditionTypeVWindows10Education + Windows10EditionTypePWindows10Education = &_Windows10EditionTypePWindows10Education + // Windows10EditionTypePWindows10EducationN is a pointer to Windows10EditionTypeVWindows10EducationN + Windows10EditionTypePWindows10EducationN = &_Windows10EditionTypePWindows10EducationN + // Windows10EditionTypePWindows10MobileEnterprise is a pointer to Windows10EditionTypeVWindows10MobileEnterprise + Windows10EditionTypePWindows10MobileEnterprise = &_Windows10EditionTypePWindows10MobileEnterprise + // Windows10EditionTypePWindows10HolographicEnterprise is a pointer to Windows10EditionTypeVWindows10HolographicEnterprise + Windows10EditionTypePWindows10HolographicEnterprise = &_Windows10EditionTypePWindows10HolographicEnterprise + // Windows10EditionTypePWindows10Professional is a pointer to Windows10EditionTypeVWindows10Professional + Windows10EditionTypePWindows10Professional = &_Windows10EditionTypePWindows10Professional + // Windows10EditionTypePWindows10ProfessionalN is a pointer to Windows10EditionTypeVWindows10ProfessionalN + Windows10EditionTypePWindows10ProfessionalN = &_Windows10EditionTypePWindows10ProfessionalN + // Windows10EditionTypePWindows10ProfessionalEducation is a pointer to Windows10EditionTypeVWindows10ProfessionalEducation + Windows10EditionTypePWindows10ProfessionalEducation = &_Windows10EditionTypePWindows10ProfessionalEducation + // Windows10EditionTypePWindows10ProfessionalEducationN is a pointer to Windows10EditionTypeVWindows10ProfessionalEducationN + Windows10EditionTypePWindows10ProfessionalEducationN = &_Windows10EditionTypePWindows10ProfessionalEducationN + // Windows10EditionTypePWindows10ProfessionalWorkstation is a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstation + Windows10EditionTypePWindows10ProfessionalWorkstation = &_Windows10EditionTypePWindows10ProfessionalWorkstation + // Windows10EditionTypePWindows10ProfessionalWorkstationN is a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstationN + Windows10EditionTypePWindows10ProfessionalWorkstationN = &_Windows10EditionTypePWindows10ProfessionalWorkstationN + // Windows10EditionTypePNotConfigured is a pointer to Windows10EditionTypeVNotConfigured + Windows10EditionTypePNotConfigured = &_Windows10EditionTypePNotConfigured + // Windows10EditionTypePWindows10Home is a pointer to Windows10EditionTypeVWindows10Home + Windows10EditionTypePWindows10Home = &_Windows10EditionTypePWindows10Home + // Windows10EditionTypePWindows10HomeChina is a pointer to Windows10EditionTypeVWindows10HomeChina + Windows10EditionTypePWindows10HomeChina = &_Windows10EditionTypePWindows10HomeChina + // Windows10EditionTypePWindows10HomeN is a pointer to Windows10EditionTypeVWindows10HomeN + Windows10EditionTypePWindows10HomeN = &_Windows10EditionTypePWindows10HomeN + // Windows10EditionTypePWindows10HomeSingleLanguage is a pointer to Windows10EditionTypeVWindows10HomeSingleLanguage + Windows10EditionTypePWindows10HomeSingleLanguage = &_Windows10EditionTypePWindows10HomeSingleLanguage + // Windows10EditionTypePWindows10Mobile is a pointer to Windows10EditionTypeVWindows10Mobile + Windows10EditionTypePWindows10Mobile = &_Windows10EditionTypePWindows10Mobile + // Windows10EditionTypePWindows10IoTCore is a pointer to Windows10EditionTypeVWindows10IoTCore + Windows10EditionTypePWindows10IoTCore = &_Windows10EditionTypePWindows10IoTCore + // Windows10EditionTypePWindows10IoTCoreCommercial is a pointer to Windows10EditionTypeVWindows10IoTCoreCommercial + Windows10EditionTypePWindows10IoTCoreCommercial = &_Windows10EditionTypePWindows10IoTCoreCommercial +) + +var ( + _Windows10EditionTypePWindows10Enterprise = Windows10EditionTypeVWindows10Enterprise + _Windows10EditionTypePWindows10EnterpriseN = Windows10EditionTypeVWindows10EnterpriseN + _Windows10EditionTypePWindows10Education = Windows10EditionTypeVWindows10Education + _Windows10EditionTypePWindows10EducationN = Windows10EditionTypeVWindows10EducationN + _Windows10EditionTypePWindows10MobileEnterprise = Windows10EditionTypeVWindows10MobileEnterprise + _Windows10EditionTypePWindows10HolographicEnterprise = Windows10EditionTypeVWindows10HolographicEnterprise + _Windows10EditionTypePWindows10Professional = Windows10EditionTypeVWindows10Professional + _Windows10EditionTypePWindows10ProfessionalN = Windows10EditionTypeVWindows10ProfessionalN + _Windows10EditionTypePWindows10ProfessionalEducation = Windows10EditionTypeVWindows10ProfessionalEducation + _Windows10EditionTypePWindows10ProfessionalEducationN = Windows10EditionTypeVWindows10ProfessionalEducationN + _Windows10EditionTypePWindows10ProfessionalWorkstation = Windows10EditionTypeVWindows10ProfessionalWorkstation + _Windows10EditionTypePWindows10ProfessionalWorkstationN = Windows10EditionTypeVWindows10ProfessionalWorkstationN + _Windows10EditionTypePNotConfigured = Windows10EditionTypeVNotConfigured + _Windows10EditionTypePWindows10Home = Windows10EditionTypeVWindows10Home + _Windows10EditionTypePWindows10HomeChina = Windows10EditionTypeVWindows10HomeChina + _Windows10EditionTypePWindows10HomeN = Windows10EditionTypeVWindows10HomeN + _Windows10EditionTypePWindows10HomeSingleLanguage = Windows10EditionTypeVWindows10HomeSingleLanguage + _Windows10EditionTypePWindows10Mobile = Windows10EditionTypeVWindows10Mobile + _Windows10EditionTypePWindows10IoTCore = Windows10EditionTypeVWindows10IoTCore + _Windows10EditionTypePWindows10IoTCoreCommercial = Windows10EditionTypeVWindows10IoTCoreCommercial +) + +// Windows10VpnAuthenticationMethod undocumented +type Windows10VpnAuthenticationMethod string + +const ( + // Windows10VpnAuthenticationMethodVCertificate undocumented + Windows10VpnAuthenticationMethodVCertificate Windows10VpnAuthenticationMethod = "certificate" + // Windows10VpnAuthenticationMethodVUsernameAndPassword undocumented + Windows10VpnAuthenticationMethodVUsernameAndPassword Windows10VpnAuthenticationMethod = "usernameAndPassword" + // Windows10VpnAuthenticationMethodVCustomEapXML undocumented + Windows10VpnAuthenticationMethodVCustomEapXML Windows10VpnAuthenticationMethod = "customEapXml" +) + +var ( + // Windows10VpnAuthenticationMethodPCertificate is a pointer to Windows10VpnAuthenticationMethodVCertificate + Windows10VpnAuthenticationMethodPCertificate = &_Windows10VpnAuthenticationMethodPCertificate + // Windows10VpnAuthenticationMethodPUsernameAndPassword is a pointer to Windows10VpnAuthenticationMethodVUsernameAndPassword + Windows10VpnAuthenticationMethodPUsernameAndPassword = &_Windows10VpnAuthenticationMethodPUsernameAndPassword + // Windows10VpnAuthenticationMethodPCustomEapXML is a pointer to Windows10VpnAuthenticationMethodVCustomEapXML + Windows10VpnAuthenticationMethodPCustomEapXML = &_Windows10VpnAuthenticationMethodPCustomEapXML +) + +var ( + _Windows10VpnAuthenticationMethodPCertificate = Windows10VpnAuthenticationMethodVCertificate + _Windows10VpnAuthenticationMethodPUsernameAndPassword = Windows10VpnAuthenticationMethodVUsernameAndPassword + _Windows10VpnAuthenticationMethodPCustomEapXML = Windows10VpnAuthenticationMethodVCustomEapXML +) + +// Windows10VpnConnectionType undocumented +type Windows10VpnConnectionType string + +const ( + // Windows10VpnConnectionTypeVPulseSecure undocumented + Windows10VpnConnectionTypeVPulseSecure Windows10VpnConnectionType = "pulseSecure" + // Windows10VpnConnectionTypeVF5EdgeClient undocumented + Windows10VpnConnectionTypeVF5EdgeClient Windows10VpnConnectionType = "f5EdgeClient" + // Windows10VpnConnectionTypeVDellSonicWallMobileConnect undocumented + Windows10VpnConnectionTypeVDellSonicWallMobileConnect Windows10VpnConnectionType = "dellSonicWallMobileConnect" + // Windows10VpnConnectionTypeVCheckPointCapsuleVPN undocumented + Windows10VpnConnectionTypeVCheckPointCapsuleVPN Windows10VpnConnectionType = "checkPointCapsuleVpn" + // Windows10VpnConnectionTypeVAutomatic undocumented + Windows10VpnConnectionTypeVAutomatic Windows10VpnConnectionType = "automatic" + // Windows10VpnConnectionTypeVIkEv2 undocumented + Windows10VpnConnectionTypeVIkEv2 Windows10VpnConnectionType = "ikEv2" + // Windows10VpnConnectionTypeVL2tp undocumented + Windows10VpnConnectionTypeVL2tp Windows10VpnConnectionType = "l2tp" + // Windows10VpnConnectionTypeVPptp undocumented + Windows10VpnConnectionTypeVPptp Windows10VpnConnectionType = "pptp" + // Windows10VpnConnectionTypeVCitrix undocumented + Windows10VpnConnectionTypeVCitrix Windows10VpnConnectionType = "citrix" + // Windows10VpnConnectionTypeVPaloAltoGlobalProtect undocumented + Windows10VpnConnectionTypeVPaloAltoGlobalProtect Windows10VpnConnectionType = "paloAltoGlobalProtect" +) + +var ( + // Windows10VpnConnectionTypePPulseSecure is a pointer to Windows10VpnConnectionTypeVPulseSecure + Windows10VpnConnectionTypePPulseSecure = &_Windows10VpnConnectionTypePPulseSecure + // Windows10VpnConnectionTypePF5EdgeClient is a pointer to Windows10VpnConnectionTypeVF5EdgeClient + Windows10VpnConnectionTypePF5EdgeClient = &_Windows10VpnConnectionTypePF5EdgeClient + // Windows10VpnConnectionTypePDellSonicWallMobileConnect is a pointer to Windows10VpnConnectionTypeVDellSonicWallMobileConnect + Windows10VpnConnectionTypePDellSonicWallMobileConnect = &_Windows10VpnConnectionTypePDellSonicWallMobileConnect + // Windows10VpnConnectionTypePCheckPointCapsuleVPN is a pointer to Windows10VpnConnectionTypeVCheckPointCapsuleVPN + Windows10VpnConnectionTypePCheckPointCapsuleVPN = &_Windows10VpnConnectionTypePCheckPointCapsuleVPN + // Windows10VpnConnectionTypePAutomatic is a pointer to Windows10VpnConnectionTypeVAutomatic + Windows10VpnConnectionTypePAutomatic = &_Windows10VpnConnectionTypePAutomatic + // Windows10VpnConnectionTypePIkEv2 is a pointer to Windows10VpnConnectionTypeVIkEv2 + Windows10VpnConnectionTypePIkEv2 = &_Windows10VpnConnectionTypePIkEv2 + // Windows10VpnConnectionTypePL2tp is a pointer to Windows10VpnConnectionTypeVL2tp + Windows10VpnConnectionTypePL2tp = &_Windows10VpnConnectionTypePL2tp + // Windows10VpnConnectionTypePPptp is a pointer to Windows10VpnConnectionTypeVPptp + Windows10VpnConnectionTypePPptp = &_Windows10VpnConnectionTypePPptp + // Windows10VpnConnectionTypePCitrix is a pointer to Windows10VpnConnectionTypeVCitrix + Windows10VpnConnectionTypePCitrix = &_Windows10VpnConnectionTypePCitrix + // Windows10VpnConnectionTypePPaloAltoGlobalProtect is a pointer to Windows10VpnConnectionTypeVPaloAltoGlobalProtect + Windows10VpnConnectionTypePPaloAltoGlobalProtect = &_Windows10VpnConnectionTypePPaloAltoGlobalProtect +) + +var ( + _Windows10VpnConnectionTypePPulseSecure = Windows10VpnConnectionTypeVPulseSecure + _Windows10VpnConnectionTypePF5EdgeClient = Windows10VpnConnectionTypeVF5EdgeClient + _Windows10VpnConnectionTypePDellSonicWallMobileConnect = Windows10VpnConnectionTypeVDellSonicWallMobileConnect + _Windows10VpnConnectionTypePCheckPointCapsuleVPN = Windows10VpnConnectionTypeVCheckPointCapsuleVPN + _Windows10VpnConnectionTypePAutomatic = Windows10VpnConnectionTypeVAutomatic + _Windows10VpnConnectionTypePIkEv2 = Windows10VpnConnectionTypeVIkEv2 + _Windows10VpnConnectionTypePL2tp = Windows10VpnConnectionTypeVL2tp + _Windows10VpnConnectionTypePPptp = Windows10VpnConnectionTypeVPptp + _Windows10VpnConnectionTypePCitrix = Windows10VpnConnectionTypeVCitrix + _Windows10VpnConnectionTypePPaloAltoGlobalProtect = Windows10VpnConnectionTypeVPaloAltoGlobalProtect +) + +// Windows10VpnProfileTarget undocumented +type Windows10VpnProfileTarget string + +const ( + // Windows10VpnProfileTargetVUser undocumented + Windows10VpnProfileTargetVUser Windows10VpnProfileTarget = "user" + // Windows10VpnProfileTargetVDevice undocumented + Windows10VpnProfileTargetVDevice Windows10VpnProfileTarget = "device" + // Windows10VpnProfileTargetVAutoPilotDevice undocumented + Windows10VpnProfileTargetVAutoPilotDevice Windows10VpnProfileTarget = "autoPilotDevice" +) + +var ( + // Windows10VpnProfileTargetPUser is a pointer to Windows10VpnProfileTargetVUser + Windows10VpnProfileTargetPUser = &_Windows10VpnProfileTargetPUser + // Windows10VpnProfileTargetPDevice is a pointer to Windows10VpnProfileTargetVDevice + Windows10VpnProfileTargetPDevice = &_Windows10VpnProfileTargetPDevice + // Windows10VpnProfileTargetPAutoPilotDevice is a pointer to Windows10VpnProfileTargetVAutoPilotDevice + Windows10VpnProfileTargetPAutoPilotDevice = &_Windows10VpnProfileTargetPAutoPilotDevice +) + +var ( + _Windows10VpnProfileTargetPUser = Windows10VpnProfileTargetVUser + _Windows10VpnProfileTargetPDevice = Windows10VpnProfileTargetVDevice + _Windows10VpnProfileTargetPAutoPilotDevice = Windows10VpnProfileTargetVAutoPilotDevice +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go new file mode 100644 index 00000000..847fc045 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go @@ -0,0 +1,50 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WiredNetworkInterface undocumented +type WiredNetworkInterface string + +const ( + // WiredNetworkInterfaceVAnyEthernet undocumented + WiredNetworkInterfaceVAnyEthernet WiredNetworkInterface = "anyEthernet" + // WiredNetworkInterfaceVFirstActiveEthernet undocumented + WiredNetworkInterfaceVFirstActiveEthernet WiredNetworkInterface = "firstActiveEthernet" + // WiredNetworkInterfaceVSecondActiveEthernet undocumented + WiredNetworkInterfaceVSecondActiveEthernet WiredNetworkInterface = "secondActiveEthernet" + // WiredNetworkInterfaceVThirdActiveEthernet undocumented + WiredNetworkInterfaceVThirdActiveEthernet WiredNetworkInterface = "thirdActiveEthernet" + // WiredNetworkInterfaceVFirstEthernet undocumented + WiredNetworkInterfaceVFirstEthernet WiredNetworkInterface = "firstEthernet" + // WiredNetworkInterfaceVSecondEthernet undocumented + WiredNetworkInterfaceVSecondEthernet WiredNetworkInterface = "secondEthernet" + // WiredNetworkInterfaceVThirdEthernet undocumented + WiredNetworkInterfaceVThirdEthernet WiredNetworkInterface = "thirdEthernet" +) + +var ( + // WiredNetworkInterfacePAnyEthernet is a pointer to WiredNetworkInterfaceVAnyEthernet + WiredNetworkInterfacePAnyEthernet = &_WiredNetworkInterfacePAnyEthernet + // WiredNetworkInterfacePFirstActiveEthernet is a pointer to WiredNetworkInterfaceVFirstActiveEthernet + WiredNetworkInterfacePFirstActiveEthernet = &_WiredNetworkInterfacePFirstActiveEthernet + // WiredNetworkInterfacePSecondActiveEthernet is a pointer to WiredNetworkInterfaceVSecondActiveEthernet + WiredNetworkInterfacePSecondActiveEthernet = &_WiredNetworkInterfacePSecondActiveEthernet + // WiredNetworkInterfacePThirdActiveEthernet is a pointer to WiredNetworkInterfaceVThirdActiveEthernet + WiredNetworkInterfacePThirdActiveEthernet = &_WiredNetworkInterfacePThirdActiveEthernet + // WiredNetworkInterfacePFirstEthernet is a pointer to WiredNetworkInterfaceVFirstEthernet + WiredNetworkInterfacePFirstEthernet = &_WiredNetworkInterfacePFirstEthernet + // WiredNetworkInterfacePSecondEthernet is a pointer to WiredNetworkInterfaceVSecondEthernet + WiredNetworkInterfacePSecondEthernet = &_WiredNetworkInterfacePSecondEthernet + // WiredNetworkInterfacePThirdEthernet is a pointer to WiredNetworkInterfaceVThirdEthernet + WiredNetworkInterfacePThirdEthernet = &_WiredNetworkInterfacePThirdEthernet +) + +var ( + _WiredNetworkInterfacePAnyEthernet = WiredNetworkInterfaceVAnyEthernet + _WiredNetworkInterfacePFirstActiveEthernet = WiredNetworkInterfaceVFirstActiveEthernet + _WiredNetworkInterfacePSecondActiveEthernet = WiredNetworkInterfaceVSecondActiveEthernet + _WiredNetworkInterfacePThirdActiveEthernet = WiredNetworkInterfaceVThirdActiveEthernet + _WiredNetworkInterfacePFirstEthernet = WiredNetworkInterfaceVFirstEthernet + _WiredNetworkInterfacePSecondEthernet = WiredNetworkInterfaceVSecondEthernet + _WiredNetworkInterfacePThirdEthernet = WiredNetworkInterfaceVThirdEthernet +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go new file mode 100644 index 00000000..90378adf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WorkforceIntegrationEncryptionProtocol undocumented +type WorkforceIntegrationEncryptionProtocol string + +const ( + // WorkforceIntegrationEncryptionProtocolVSharedSecret undocumented + WorkforceIntegrationEncryptionProtocolVSharedSecret WorkforceIntegrationEncryptionProtocol = "sharedSecret" + // WorkforceIntegrationEncryptionProtocolVUnknownFutureValue undocumented + WorkforceIntegrationEncryptionProtocolVUnknownFutureValue WorkforceIntegrationEncryptionProtocol = "unknownFutureValue" +) + +var ( + // WorkforceIntegrationEncryptionProtocolPSharedSecret is a pointer to WorkforceIntegrationEncryptionProtocolVSharedSecret + WorkforceIntegrationEncryptionProtocolPSharedSecret = &_WorkforceIntegrationEncryptionProtocolPSharedSecret + // WorkforceIntegrationEncryptionProtocolPUnknownFutureValue is a pointer to WorkforceIntegrationEncryptionProtocolVUnknownFutureValue + WorkforceIntegrationEncryptionProtocolPUnknownFutureValue = &_WorkforceIntegrationEncryptionProtocolPUnknownFutureValue +) + +var ( + _WorkforceIntegrationEncryptionProtocolPSharedSecret = WorkforceIntegrationEncryptionProtocolVSharedSecret + _WorkforceIntegrationEncryptionProtocolPUnknownFutureValue = WorkforceIntegrationEncryptionProtocolVUnknownFutureValue +) + +// WorkforceIntegrationSupportedEntities undocumented +type WorkforceIntegrationSupportedEntities string + +const ( + // WorkforceIntegrationSupportedEntitiesVNone undocumented + WorkforceIntegrationSupportedEntitiesVNone WorkforceIntegrationSupportedEntities = "none" + // WorkforceIntegrationSupportedEntitiesVShift undocumented + WorkforceIntegrationSupportedEntitiesVShift WorkforceIntegrationSupportedEntities = "shift" + // WorkforceIntegrationSupportedEntitiesVSwapRequest undocumented + WorkforceIntegrationSupportedEntitiesVSwapRequest WorkforceIntegrationSupportedEntities = "swapRequest" + // WorkforceIntegrationSupportedEntitiesVUserShiftPreferences undocumented + WorkforceIntegrationSupportedEntitiesVUserShiftPreferences WorkforceIntegrationSupportedEntities = "userShiftPreferences" + // WorkforceIntegrationSupportedEntitiesVOpenShift undocumented + WorkforceIntegrationSupportedEntitiesVOpenShift WorkforceIntegrationSupportedEntities = "openShift" + // WorkforceIntegrationSupportedEntitiesVOpenShiftRequest undocumented + WorkforceIntegrationSupportedEntitiesVOpenShiftRequest WorkforceIntegrationSupportedEntities = "openShiftRequest" +) + +var ( + // WorkforceIntegrationSupportedEntitiesPNone is a pointer to WorkforceIntegrationSupportedEntitiesVNone + WorkforceIntegrationSupportedEntitiesPNone = &_WorkforceIntegrationSupportedEntitiesPNone + // WorkforceIntegrationSupportedEntitiesPShift is a pointer to WorkforceIntegrationSupportedEntitiesVShift + WorkforceIntegrationSupportedEntitiesPShift = &_WorkforceIntegrationSupportedEntitiesPShift + // WorkforceIntegrationSupportedEntitiesPSwapRequest is a pointer to WorkforceIntegrationSupportedEntitiesVSwapRequest + WorkforceIntegrationSupportedEntitiesPSwapRequest = &_WorkforceIntegrationSupportedEntitiesPSwapRequest + // WorkforceIntegrationSupportedEntitiesPUserShiftPreferences is a pointer to WorkforceIntegrationSupportedEntitiesVUserShiftPreferences + WorkforceIntegrationSupportedEntitiesPUserShiftPreferences = &_WorkforceIntegrationSupportedEntitiesPUserShiftPreferences + // WorkforceIntegrationSupportedEntitiesPOpenShift is a pointer to WorkforceIntegrationSupportedEntitiesVOpenShift + WorkforceIntegrationSupportedEntitiesPOpenShift = &_WorkforceIntegrationSupportedEntitiesPOpenShift + // WorkforceIntegrationSupportedEntitiesPOpenShiftRequest is a pointer to WorkforceIntegrationSupportedEntitiesVOpenShiftRequest + WorkforceIntegrationSupportedEntitiesPOpenShiftRequest = &_WorkforceIntegrationSupportedEntitiesPOpenShiftRequest +) + +var ( + _WorkforceIntegrationSupportedEntitiesPNone = WorkforceIntegrationSupportedEntitiesVNone + _WorkforceIntegrationSupportedEntitiesPShift = WorkforceIntegrationSupportedEntitiesVShift + _WorkforceIntegrationSupportedEntitiesPSwapRequest = WorkforceIntegrationSupportedEntitiesVSwapRequest + _WorkforceIntegrationSupportedEntitiesPUserShiftPreferences = WorkforceIntegrationSupportedEntitiesVUserShiftPreferences + _WorkforceIntegrationSupportedEntitiesPOpenShift = WorkforceIntegrationSupportedEntitiesVOpenShift + _WorkforceIntegrationSupportedEntitiesPOpenShiftRequest = WorkforceIntegrationSupportedEntitiesVOpenShiftRequest +) diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go b/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go new file mode 100644 index 00000000..89fdddba --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go @@ -0,0 +1,9272 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection +func (b *GraphServiceRequestBuilder) AccessPackageAssignmentPolicies() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder { + bb := &GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentPolicies" + return bb +} + +// GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection +type GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentPolicy collection +func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest { + return &GraphServiceAccessPackageAssignmentPoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentPolicy item +func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder { + bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection +type GraphServiceAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection +func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentPolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentPolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages +func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentPolicy collection +func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentPolicy collection +func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection +func (b *GraphServiceRequestBuilder) AccessPackageAssignmentRequests() *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder { + bb := &GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentRequests" + return bb +} + +// GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection +type GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentRequestObject collection +func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentRequestsCollectionRequest { + return &GraphServiceAccessPackageAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentRequestObject item +func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder { + bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection +type GraphServiceAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection +func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages +func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentRequestObject collection +func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentRequestObject collection +func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection +func (b *GraphServiceRequestBuilder) AccessPackageAssignmentResourceRoles() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder { + bb := &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignmentResourceRoles" + return bb +} + +// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection +type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignmentResourceRole collection +func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest { + return &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignmentResourceRole item +func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder { + bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection +type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection +func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignmentResourceRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignmentResourceRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages +func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignmentResourceRole collection +func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignmentResourceRole collection +func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageAssignments returns request builder for AccessPackageAssignment collection +func (b *GraphServiceRequestBuilder) AccessPackageAssignments() *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder { + bb := &GraphServiceAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageAssignments" + return bb +} + +// GraphServiceAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection +type GraphServiceAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageAssignment collection +func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentsCollectionRequest { + return &GraphServiceAccessPackageAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageAssignment item +func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder { + bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection +type GraphServiceAccessPackageAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageAssignment collection +func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageAssignment collection, max N pages +func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageAssignment collection +func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageAssignment collection +func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection +func (b *GraphServiceRequestBuilder) AccessPackageCatalogs() *GraphServiceAccessPackageCatalogsCollectionRequestBuilder { + bb := &GraphServiceAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageCatalogs" + return bb +} + +// GraphServiceAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection +type GraphServiceAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageCatalog collection +func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) Request() *GraphServiceAccessPackageCatalogsCollectionRequest { + return &GraphServiceAccessPackageCatalogsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageCatalog item +func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder { + bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection +type GraphServiceAccessPackageCatalogsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageCatalog collection +func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageCatalog, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageCatalog + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageCatalog + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageCatalog collection, max N pages +func (r *GraphServiceAccessPackageCatalogsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageCatalog, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageCatalog collection +func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageCatalog collection +func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection +func (b *GraphServiceRequestBuilder) AccessPackageResourceRequests() *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder { + bb := &GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRequests" + return bb +} + +// GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection +type GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRequestObject collection +func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRequestsCollectionRequest { + return &GraphServiceAccessPackageResourceRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRequestObject item +func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder { + bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection +type GraphServiceAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRequestObject collection +func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRequestObject collection, max N pages +func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRequestObject collection +func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRequestObject collection +func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection +func (b *GraphServiceRequestBuilder) AccessPackageResourceRoleScopes() *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder { + bb := &GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResourceRoleScopes" + return bb +} + +// GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection +type GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResourceRoleScope collection +func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRoleScopesCollectionRequest { + return &GraphServiceAccessPackageResourceRoleScopesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResourceRoleScope item +func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder { + bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection +type GraphServiceAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResourceRoleScope collection +func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResourceRoleScope + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResourceRoleScope + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages +func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResourceRoleScope collection +func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResourceRoleScope collection +func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackageResources returns request builder for AccessPackageResource collection +func (b *GraphServiceRequestBuilder) AccessPackageResources() *GraphServiceAccessPackageResourcesCollectionRequestBuilder { + bb := &GraphServiceAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackageResources" + return bb +} + +// GraphServiceAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection +type GraphServiceAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackageResource collection +func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourcesCollectionRequest { + return &GraphServiceAccessPackageResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackageResource item +func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder { + bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection +type GraphServiceAccessPackageResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackageResource collection +func (r *GraphServiceAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackageResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackageResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackageResource collection, max N pages +func (r *GraphServiceAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackageResource collection +func (r *GraphServiceAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackageResource collection +func (r *GraphServiceAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessPackages returns request builder for AccessPackage collection +func (b *GraphServiceRequestBuilder) AccessPackages() *GraphServiceAccessPackagesCollectionRequestBuilder { + bb := &GraphServiceAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessPackages" + return bb +} + +// GraphServiceAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection +type GraphServiceAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessPackage collection +func (b *GraphServiceAccessPackagesCollectionRequestBuilder) Request() *GraphServiceAccessPackagesCollectionRequest { + return &GraphServiceAccessPackagesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessPackage item +func (b *GraphServiceAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder { + bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessPackagesCollectionRequest is request for AccessPackage collection +type GraphServiceAccessPackagesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessPackage collection +func (r *GraphServiceAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessPackage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessPackage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessPackage collection, max N pages +func (r *GraphServiceAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessPackage collection +func (r *GraphServiceAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessPackage collection +func (r *GraphServiceAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessReviewDecisions returns request builder for AccessReviewDecision collection +func (b *GraphServiceRequestBuilder) AccessReviewDecisions() *GraphServiceAccessReviewDecisionsCollectionRequestBuilder { + bb := &GraphServiceAccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessReviewDecisions" + return bb +} + +// GraphServiceAccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection +type GraphServiceAccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReviewDecision collection +func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) Request() *GraphServiceAccessReviewDecisionsCollectionRequest { + return &GraphServiceAccessReviewDecisionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReviewDecision item +func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder { + bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection +type GraphServiceAccessReviewDecisionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReviewDecision collection +func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReviewDecision + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReviewDecision + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReviewDecision collection, max N pages +func (r *GraphServiceAccessReviewDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReviewDecision collection +func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReviewDecision collection +func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AccessReviews returns request builder for AccessReview collection +func (b *GraphServiceRequestBuilder) AccessReviews() *GraphServiceAccessReviewsCollectionRequestBuilder { + bb := &GraphServiceAccessReviewsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/accessReviews" + return bb +} + +// GraphServiceAccessReviewsCollectionRequestBuilder is request builder for AccessReview collection +type GraphServiceAccessReviewsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AccessReview collection +func (b *GraphServiceAccessReviewsCollectionRequestBuilder) Request() *GraphServiceAccessReviewsCollectionRequest { + return &GraphServiceAccessReviewsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AccessReview item +func (b *GraphServiceAccessReviewsCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder { + bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAccessReviewsCollectionRequest is request for AccessReview collection +type GraphServiceAccessReviewsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AccessReview collection +func (r *GraphServiceAccessReviewsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReview, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AccessReview + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AccessReview + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AccessReview collection, max N pages +func (r *GraphServiceAccessReviewsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReview, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AccessReview collection +func (r *GraphServiceAccessReviewsCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AccessReview collection +func (r *GraphServiceAccessReviewsCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Activitystatistics returns request builder for ActivityStatistics collection +func (b *GraphServiceRequestBuilder) Activitystatistics() *GraphServiceActivitystatisticsCollectionRequestBuilder { + bb := &GraphServiceActivitystatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/activitystatistics" + return bb +} + +// GraphServiceActivitystatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection +type GraphServiceActivitystatisticsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ActivityStatistics collection +func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) Request() *GraphServiceActivitystatisticsCollectionRequest { + return &GraphServiceActivitystatisticsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ActivityStatistics item +func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder { + bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceActivitystatisticsCollectionRequest is request for ActivityStatistics collection +type GraphServiceActivitystatisticsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ActivityStatistics collection +func (r *GraphServiceActivitystatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityStatistics, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ActivityStatistics + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ActivityStatistics + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ActivityStatistics collection, max N pages +func (r *GraphServiceActivitystatisticsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityStatistics, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ActivityStatistics collection +func (r *GraphServiceActivitystatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ActivityStatistics collection +func (r *GraphServiceActivitystatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AdministrativeUnits returns request builder for AdministrativeUnit collection +func (b *GraphServiceRequestBuilder) AdministrativeUnits() *GraphServiceAdministrativeUnitsCollectionRequestBuilder { + bb := &GraphServiceAdministrativeUnitsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/administrativeUnits" + return bb +} + +// GraphServiceAdministrativeUnitsCollectionRequestBuilder is request builder for AdministrativeUnit collection +type GraphServiceAdministrativeUnitsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AdministrativeUnit collection +func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) Request() *GraphServiceAdministrativeUnitsCollectionRequest { + return &GraphServiceAdministrativeUnitsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AdministrativeUnit item +func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) ID(id string) *AdministrativeUnitRequestBuilder { + bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAdministrativeUnitsCollectionRequest is request for AdministrativeUnit collection +type GraphServiceAdministrativeUnitsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AdministrativeUnit collection +func (r *GraphServiceAdministrativeUnitsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AdministrativeUnit, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AdministrativeUnit + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AdministrativeUnit + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AdministrativeUnit collection, max N pages +func (r *GraphServiceAdministrativeUnitsCollectionRequest) GetN(ctx context.Context, n int) ([]AdministrativeUnit, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AdministrativeUnit collection +func (r *GraphServiceAdministrativeUnitsCollectionRequest) Get(ctx context.Context) ([]AdministrativeUnit, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AdministrativeUnit collection +func (r *GraphServiceAdministrativeUnitsCollectionRequest) Add(ctx context.Context, reqObj *AdministrativeUnit) (resObj *AdministrativeUnit, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AgreementAcceptances returns request builder for AgreementAcceptance collection +func (b *GraphServiceRequestBuilder) AgreementAcceptances() *GraphServiceAgreementAcceptancesCollectionRequestBuilder { + bb := &GraphServiceAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agreementAcceptances" + return bb +} + +// GraphServiceAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection +type GraphServiceAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AgreementAcceptance collection +func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) Request() *GraphServiceAgreementAcceptancesCollectionRequest { + return &GraphServiceAgreementAcceptancesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AgreementAcceptance item +func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder { + bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection +type GraphServiceAgreementAcceptancesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AgreementAcceptance collection +func (r *GraphServiceAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementAcceptance, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AgreementAcceptance + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AgreementAcceptance + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AgreementAcceptance collection, max N pages +func (r *GraphServiceAgreementAcceptancesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementAcceptance, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AgreementAcceptance collection +func (r *GraphServiceAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AgreementAcceptance collection +func (r *GraphServiceAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Agreements returns request builder for Agreement collection +func (b *GraphServiceRequestBuilder) Agreements() *GraphServiceAgreementsCollectionRequestBuilder { + bb := &GraphServiceAgreementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/agreements" + return bb +} + +// GraphServiceAgreementsCollectionRequestBuilder is request builder for Agreement collection +type GraphServiceAgreementsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Agreement collection +func (b *GraphServiceAgreementsCollectionRequestBuilder) Request() *GraphServiceAgreementsCollectionRequest { + return &GraphServiceAgreementsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Agreement item +func (b *GraphServiceAgreementsCollectionRequestBuilder) ID(id string) *AgreementRequestBuilder { + bb := &AgreementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAgreementsCollectionRequest is request for Agreement collection +type GraphServiceAgreementsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Agreement collection +func (r *GraphServiceAgreementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Agreement, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Agreement + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Agreement + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Agreement collection, max N pages +func (r *GraphServiceAgreementsCollectionRequest) GetN(ctx context.Context, n int) ([]Agreement, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Agreement collection +func (r *GraphServiceAgreementsCollectionRequest) Get(ctx context.Context) ([]Agreement, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Agreement collection +func (r *GraphServiceAgreementsCollectionRequest) Add(ctx context.Context, reqObj *Agreement) (resObj *Agreement, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AllowedDataLocations returns request builder for AllowedDataLocation collection +func (b *GraphServiceRequestBuilder) AllowedDataLocations() *GraphServiceAllowedDataLocationsCollectionRequestBuilder { + bb := &GraphServiceAllowedDataLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/allowedDataLocations" + return bb +} + +// GraphServiceAllowedDataLocationsCollectionRequestBuilder is request builder for AllowedDataLocation collection +type GraphServiceAllowedDataLocationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AllowedDataLocation collection +func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) Request() *GraphServiceAllowedDataLocationsCollectionRequest { + return &GraphServiceAllowedDataLocationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AllowedDataLocation item +func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) ID(id string) *AllowedDataLocationRequestBuilder { + bb := &AllowedDataLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAllowedDataLocationsCollectionRequest is request for AllowedDataLocation collection +type GraphServiceAllowedDataLocationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AllowedDataLocation collection +func (r *GraphServiceAllowedDataLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AllowedDataLocation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AllowedDataLocation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AllowedDataLocation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AllowedDataLocation collection, max N pages +func (r *GraphServiceAllowedDataLocationsCollectionRequest) GetN(ctx context.Context, n int) ([]AllowedDataLocation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AllowedDataLocation collection +func (r *GraphServiceAllowedDataLocationsCollectionRequest) Get(ctx context.Context) ([]AllowedDataLocation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AllowedDataLocation collection +func (r *GraphServiceAllowedDataLocationsCollectionRequest) Add(ctx context.Context, reqObj *AllowedDataLocation) (resObj *AllowedDataLocation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AnonymousIPRiskEvents returns request builder for AnonymousIPRiskEvent collection +func (b *GraphServiceRequestBuilder) AnonymousIPRiskEvents() *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder { + bb := &GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/anonymousIpRiskEvents" + return bb +} + +// GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder is request builder for AnonymousIPRiskEvent collection +type GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AnonymousIPRiskEvent collection +func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceAnonymousIPRiskEventsCollectionRequest { + return &GraphServiceAnonymousIPRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AnonymousIPRiskEvent item +func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) ID(id string) *AnonymousIPRiskEventRequestBuilder { + bb := &AnonymousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAnonymousIPRiskEventsCollectionRequest is request for AnonymousIPRiskEvent collection +type GraphServiceAnonymousIPRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AnonymousIPRiskEvent collection +func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AnonymousIPRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AnonymousIPRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AnonymousIPRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AnonymousIPRiskEvent collection, max N pages +func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]AnonymousIPRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AnonymousIPRiskEvent collection +func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]AnonymousIPRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AnonymousIPRiskEvent collection +func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *AnonymousIPRiskEvent) (resObj *AnonymousIPRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// AppRoleAssignments returns request builder for AppRoleAssignment collection +func (b *GraphServiceRequestBuilder) AppRoleAssignments() *GraphServiceAppRoleAssignmentsCollectionRequestBuilder { + bb := &GraphServiceAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appRoleAssignments" + return bb +} + +// GraphServiceAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection +type GraphServiceAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AppRoleAssignment collection +func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceAppRoleAssignmentsCollectionRequest { + return &GraphServiceAppRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AppRoleAssignment item +func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder { + bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection +type GraphServiceAppRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AppRoleAssignment collection +func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AppRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AppRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AppRoleAssignment collection, max N pages +func (r *GraphServiceAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AppRoleAssignment collection +func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AppRoleAssignment collection +func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ApplicationTemplates returns request builder for ApplicationTemplate collection +func (b *GraphServiceRequestBuilder) ApplicationTemplates() *GraphServiceApplicationTemplatesCollectionRequestBuilder { + bb := &GraphServiceApplicationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/applicationTemplates" + return bb +} + +// GraphServiceApplicationTemplatesCollectionRequestBuilder is request builder for ApplicationTemplate collection +type GraphServiceApplicationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ApplicationTemplate collection +func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) Request() *GraphServiceApplicationTemplatesCollectionRequest { + return &GraphServiceApplicationTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ApplicationTemplate item +func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) ID(id string) *ApplicationTemplateRequestBuilder { + bb := &ApplicationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceApplicationTemplatesCollectionRequest is request for ApplicationTemplate collection +type GraphServiceApplicationTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ApplicationTemplate collection +func (r *GraphServiceApplicationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApplicationTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ApplicationTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ApplicationTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ApplicationTemplate collection, max N pages +func (r *GraphServiceApplicationTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]ApplicationTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ApplicationTemplate collection +func (r *GraphServiceApplicationTemplatesCollectionRequest) Get(ctx context.Context) ([]ApplicationTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ApplicationTemplate collection +func (r *GraphServiceApplicationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *ApplicationTemplate) (resObj *ApplicationTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Applications returns request builder for Application collection +func (b *GraphServiceRequestBuilder) Applications() *GraphServiceApplicationsCollectionRequestBuilder { + bb := &GraphServiceApplicationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/applications" + return bb +} + +// GraphServiceApplicationsCollectionRequestBuilder is request builder for Application collection +type GraphServiceApplicationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Application collection +func (b *GraphServiceApplicationsCollectionRequestBuilder) Request() *GraphServiceApplicationsCollectionRequest { + return &GraphServiceApplicationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Application item +func (b *GraphServiceApplicationsCollectionRequestBuilder) ID(id string) *ApplicationRequestBuilder { + bb := &ApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceApplicationsCollectionRequest is request for Application collection +type GraphServiceApplicationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Application collection +func (r *GraphServiceApplicationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Application, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Application + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Application + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Application collection, max N pages +func (r *GraphServiceApplicationsCollectionRequest) GetN(ctx context.Context, n int) ([]Application, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Application collection +func (r *GraphServiceApplicationsCollectionRequest) Get(ctx context.Context) ([]Application, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Application collection +func (r *GraphServiceApplicationsCollectionRequest) Add(ctx context.Context, reqObj *Application) (resObj *Application, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ApprovalWorkflowProviders returns request builder for ApprovalWorkflowProvider collection +func (b *GraphServiceRequestBuilder) ApprovalWorkflowProviders() *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder { + bb := &GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/approvalWorkflowProviders" + return bb +} + +// GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder is request builder for ApprovalWorkflowProvider collection +type GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ApprovalWorkflowProvider collection +func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) Request() *GraphServiceApprovalWorkflowProvidersCollectionRequest { + return &GraphServiceApprovalWorkflowProvidersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ApprovalWorkflowProvider item +func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) ID(id string) *ApprovalWorkflowProviderRequestBuilder { + bb := &ApprovalWorkflowProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceApprovalWorkflowProvidersCollectionRequest is request for ApprovalWorkflowProvider collection +type GraphServiceApprovalWorkflowProvidersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ApprovalWorkflowProvider collection +func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApprovalWorkflowProvider, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ApprovalWorkflowProvider + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ApprovalWorkflowProvider + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ApprovalWorkflowProvider collection, max N pages +func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) GetN(ctx context.Context, n int) ([]ApprovalWorkflowProvider, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ApprovalWorkflowProvider collection +func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Get(ctx context.Context) ([]ApprovalWorkflowProvider, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ApprovalWorkflowProvider collection +func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Add(ctx context.Context, reqObj *ApprovalWorkflowProvider) (resObj *ApprovalWorkflowProvider, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// BookingBusinesses returns request builder for BookingBusiness collection +func (b *GraphServiceRequestBuilder) BookingBusinesses() *GraphServiceBookingBusinessesCollectionRequestBuilder { + bb := &GraphServiceBookingBusinessesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/bookingBusinesses" + return bb +} + +// GraphServiceBookingBusinessesCollectionRequestBuilder is request builder for BookingBusiness collection +type GraphServiceBookingBusinessesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingBusiness collection +func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) Request() *GraphServiceBookingBusinessesCollectionRequest { + return &GraphServiceBookingBusinessesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingBusiness item +func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) ID(id string) *BookingBusinessRequestBuilder { + bb := &BookingBusinessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceBookingBusinessesCollectionRequest is request for BookingBusiness collection +type GraphServiceBookingBusinessesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingBusiness collection +func (r *GraphServiceBookingBusinessesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingBusiness, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingBusiness + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingBusiness + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingBusiness collection, max N pages +func (r *GraphServiceBookingBusinessesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingBusiness, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingBusiness collection +func (r *GraphServiceBookingBusinessesCollectionRequest) Get(ctx context.Context) ([]BookingBusiness, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingBusiness collection +func (r *GraphServiceBookingBusinessesCollectionRequest) Add(ctx context.Context, reqObj *BookingBusiness) (resObj *BookingBusiness, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// BookingCurrencies returns request builder for BookingCurrency collection +func (b *GraphServiceRequestBuilder) BookingCurrencies() *GraphServiceBookingCurrenciesCollectionRequestBuilder { + bb := &GraphServiceBookingCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/bookingCurrencies" + return bb +} + +// GraphServiceBookingCurrenciesCollectionRequestBuilder is request builder for BookingCurrency collection +type GraphServiceBookingCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BookingCurrency collection +func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) Request() *GraphServiceBookingCurrenciesCollectionRequest { + return &GraphServiceBookingCurrenciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BookingCurrency item +func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) ID(id string) *BookingCurrencyRequestBuilder { + bb := &BookingCurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceBookingCurrenciesCollectionRequest is request for BookingCurrency collection +type GraphServiceBookingCurrenciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BookingCurrency collection +func (r *GraphServiceBookingCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingCurrency, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BookingCurrency + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BookingCurrency + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BookingCurrency collection, max N pages +func (r *GraphServiceBookingCurrenciesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingCurrency, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BookingCurrency collection +func (r *GraphServiceBookingCurrenciesCollectionRequest) Get(ctx context.Context) ([]BookingCurrency, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BookingCurrency collection +func (r *GraphServiceBookingCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *BookingCurrency) (resObj *BookingCurrency, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// BusinessFlowTemplates returns request builder for BusinessFlowTemplate collection +func (b *GraphServiceRequestBuilder) BusinessFlowTemplates() *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder { + bb := &GraphServiceBusinessFlowTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/businessFlowTemplates" + return bb +} + +// GraphServiceBusinessFlowTemplatesCollectionRequestBuilder is request builder for BusinessFlowTemplate collection +type GraphServiceBusinessFlowTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for BusinessFlowTemplate collection +func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) Request() *GraphServiceBusinessFlowTemplatesCollectionRequest { + return &GraphServiceBusinessFlowTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for BusinessFlowTemplate item +func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) ID(id string) *BusinessFlowTemplateRequestBuilder { + bb := &BusinessFlowTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceBusinessFlowTemplatesCollectionRequest is request for BusinessFlowTemplate collection +type GraphServiceBusinessFlowTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for BusinessFlowTemplate collection +func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlowTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []BusinessFlowTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []BusinessFlowTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for BusinessFlowTemplate collection, max N pages +func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlowTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for BusinessFlowTemplate collection +func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Get(ctx context.Context) ([]BusinessFlowTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for BusinessFlowTemplate collection +func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlowTemplate) (resObj *BusinessFlowTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection +func (b *GraphServiceRequestBuilder) CertificateBasedAuthConfiguration() *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder { + bb := &GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/certificateBasedAuthConfiguration" + return bb +} + +// GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection +type GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for CertificateBasedAuthConfiguration collection +func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *GraphServiceCertificateBasedAuthConfigurationCollectionRequest { + return &GraphServiceCertificateBasedAuthConfigurationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for CertificateBasedAuthConfiguration item +func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder { + bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection +type GraphServiceCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection +func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CertificateBasedAuthConfiguration, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []CertificateBasedAuthConfiguration + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []CertificateBasedAuthConfiguration + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for CertificateBasedAuthConfiguration collection, max N pages +func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) GetN(ctx context.Context, n int) ([]CertificateBasedAuthConfiguration, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for CertificateBasedAuthConfiguration collection +func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for CertificateBasedAuthConfiguration collection +func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Chats returns request builder for Chat collection +func (b *GraphServiceRequestBuilder) Chats() *GraphServiceChatsCollectionRequestBuilder { + bb := &GraphServiceChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/chats" + return bb +} + +// GraphServiceChatsCollectionRequestBuilder is request builder for Chat collection +type GraphServiceChatsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Chat collection +func (b *GraphServiceChatsCollectionRequestBuilder) Request() *GraphServiceChatsCollectionRequest { + return &GraphServiceChatsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Chat item +func (b *GraphServiceChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder { + bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceChatsCollectionRequest is request for Chat collection +type GraphServiceChatsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Chat collection +func (r *GraphServiceChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Chat, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Chat + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Chat + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Chat collection, max N pages +func (r *GraphServiceChatsCollectionRequest) GetN(ctx context.Context, n int) ([]Chat, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Chat collection +func (r *GraphServiceChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Chat collection +func (r *GraphServiceChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Commands returns request builder for Command collection +func (b *GraphServiceRequestBuilder) Commands() *GraphServiceCommandsCollectionRequestBuilder { + bb := &GraphServiceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/commands" + return bb +} + +// GraphServiceCommandsCollectionRequestBuilder is request builder for Command collection +type GraphServiceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Command collection +func (b *GraphServiceCommandsCollectionRequestBuilder) Request() *GraphServiceCommandsCollectionRequest { + return &GraphServiceCommandsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Command item +func (b *GraphServiceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder { + bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceCommandsCollectionRequest is request for Command collection +type GraphServiceCommandsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Command collection +func (r *GraphServiceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Command, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Command + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Command + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Command collection, max N pages +func (r *GraphServiceCommandsCollectionRequest) GetN(ctx context.Context, n int) ([]Command, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Command collection +func (r *GraphServiceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Command collection +func (r *GraphServiceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Connections returns request builder for ExternalConnection collection +func (b *GraphServiceRequestBuilder) Connections() *GraphServiceConnectionsCollectionRequestBuilder { + bb := &GraphServiceConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/connections" + return bb +} + +// GraphServiceConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection +type GraphServiceConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ExternalConnection collection +func (b *GraphServiceConnectionsCollectionRequestBuilder) Request() *GraphServiceConnectionsCollectionRequest { + return &GraphServiceConnectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ExternalConnection item +func (b *GraphServiceConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder { + bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceConnectionsCollectionRequest is request for ExternalConnection collection +type GraphServiceConnectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ExternalConnection collection +func (r *GraphServiceConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalConnection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ExternalConnection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ExternalConnection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ExternalConnection collection, max N pages +func (r *GraphServiceConnectionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalConnection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ExternalConnection collection +func (r *GraphServiceConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ExternalConnection collection +func (r *GraphServiceConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Contacts returns request builder for OrgContact collection +func (b *GraphServiceRequestBuilder) Contacts() *GraphServiceContactsCollectionRequestBuilder { + bb := &GraphServiceContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contacts" + return bb +} + +// GraphServiceContactsCollectionRequestBuilder is request builder for OrgContact collection +type GraphServiceContactsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OrgContact collection +func (b *GraphServiceContactsCollectionRequestBuilder) Request() *GraphServiceContactsCollectionRequest { + return &GraphServiceContactsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OrgContact item +func (b *GraphServiceContactsCollectionRequestBuilder) ID(id string) *OrgContactRequestBuilder { + bb := &OrgContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceContactsCollectionRequest is request for OrgContact collection +type GraphServiceContactsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OrgContact collection +func (r *GraphServiceContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OrgContact, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OrgContact + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OrgContact + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OrgContact collection, max N pages +func (r *GraphServiceContactsCollectionRequest) GetN(ctx context.Context, n int) ([]OrgContact, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OrgContact collection +func (r *GraphServiceContactsCollectionRequest) Get(ctx context.Context) ([]OrgContact, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OrgContact collection +func (r *GraphServiceContactsCollectionRequest) Add(ctx context.Context, reqObj *OrgContact) (resObj *OrgContact, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Contracts returns request builder for Contract collection +func (b *GraphServiceRequestBuilder) Contracts() *GraphServiceContractsCollectionRequestBuilder { + bb := &GraphServiceContractsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/contracts" + return bb +} + +// GraphServiceContractsCollectionRequestBuilder is request builder for Contract collection +type GraphServiceContractsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Contract collection +func (b *GraphServiceContractsCollectionRequestBuilder) Request() *GraphServiceContractsCollectionRequest { + return &GraphServiceContractsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Contract item +func (b *GraphServiceContractsCollectionRequestBuilder) ID(id string) *ContractRequestBuilder { + bb := &ContractRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceContractsCollectionRequest is request for Contract collection +type GraphServiceContractsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Contract collection +func (r *GraphServiceContractsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contract, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Contract + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Contract + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Contract collection, max N pages +func (r *GraphServiceContractsCollectionRequest) GetN(ctx context.Context, n int) ([]Contract, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Contract collection +func (r *GraphServiceContractsCollectionRequest) Get(ctx context.Context) ([]Contract, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Contract collection +func (r *GraphServiceContractsCollectionRequest) Add(ctx context.Context, reqObj *Contract) (resObj *Contract, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DataPolicyOperations returns request builder for DataPolicyOperation collection +func (b *GraphServiceRequestBuilder) DataPolicyOperations() *GraphServiceDataPolicyOperationsCollectionRequestBuilder { + bb := &GraphServiceDataPolicyOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dataPolicyOperations" + return bb +} + +// GraphServiceDataPolicyOperationsCollectionRequestBuilder is request builder for DataPolicyOperation collection +type GraphServiceDataPolicyOperationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DataPolicyOperation collection +func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) Request() *GraphServiceDataPolicyOperationsCollectionRequest { + return &GraphServiceDataPolicyOperationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DataPolicyOperation item +func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) ID(id string) *DataPolicyOperationRequestBuilder { + bb := &DataPolicyOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDataPolicyOperationsCollectionRequest is request for DataPolicyOperation collection +type GraphServiceDataPolicyOperationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DataPolicyOperation collection +func (r *GraphServiceDataPolicyOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataPolicyOperation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DataPolicyOperation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DataPolicyOperation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DataPolicyOperation collection, max N pages +func (r *GraphServiceDataPolicyOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]DataPolicyOperation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DataPolicyOperation collection +func (r *GraphServiceDataPolicyOperationsCollectionRequest) Get(ctx context.Context) ([]DataPolicyOperation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DataPolicyOperation collection +func (r *GraphServiceDataPolicyOperationsCollectionRequest) Add(ctx context.Context, reqObj *DataPolicyOperation) (resObj *DataPolicyOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Devices returns request builder for Device collection +func (b *GraphServiceRequestBuilder) Devices() *GraphServiceDevicesCollectionRequestBuilder { + bb := &GraphServiceDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/devices" + return bb +} + +// GraphServiceDevicesCollectionRequestBuilder is request builder for Device collection +type GraphServiceDevicesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Device collection +func (b *GraphServiceDevicesCollectionRequestBuilder) Request() *GraphServiceDevicesCollectionRequest { + return &GraphServiceDevicesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Device item +func (b *GraphServiceDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder { + bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDevicesCollectionRequest is request for Device collection +type GraphServiceDevicesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Device collection +func (r *GraphServiceDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Device, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Device + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Device + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Device collection, max N pages +func (r *GraphServiceDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]Device, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Device collection +func (r *GraphServiceDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Device collection +func (r *GraphServiceDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Directories returns request builder for DirectoryDefinition collection +func (b *GraphServiceRequestBuilder) Directories() *GraphServiceDirectoriesCollectionRequestBuilder { + bb := &GraphServiceDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directories" + return bb +} + +// GraphServiceDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection +type GraphServiceDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryDefinition collection +func (b *GraphServiceDirectoriesCollectionRequestBuilder) Request() *GraphServiceDirectoriesCollectionRequest { + return &GraphServiceDirectoriesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryDefinition item +func (b *GraphServiceDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder { + bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDirectoriesCollectionRequest is request for DirectoryDefinition collection +type GraphServiceDirectoriesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryDefinition collection +func (r *GraphServiceDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryDefinition collection, max N pages +func (r *GraphServiceDirectoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryDefinition collection +func (r *GraphServiceDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryDefinition collection +func (r *GraphServiceDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectoryObjects returns request builder for DirectoryObject collection +func (b *GraphServiceRequestBuilder) DirectoryObjects() *GraphServiceDirectoryObjectsCollectionRequestBuilder { + bb := &GraphServiceDirectoryObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directoryObjects" + return bb +} + +// GraphServiceDirectoryObjectsCollectionRequestBuilder is request builder for DirectoryObject collection +type GraphServiceDirectoryObjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryObject collection +func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) Request() *GraphServiceDirectoryObjectsCollectionRequest { + return &GraphServiceDirectoryObjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryObject item +func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder { + bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDirectoryObjectsCollectionRequest is request for DirectoryObject collection +type GraphServiceDirectoryObjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryObject collection +func (r *GraphServiceDirectoryObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryObject collection, max N pages +func (r *GraphServiceDirectoryObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryObject collection +func (r *GraphServiceDirectoryObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryObject collection +func (r *GraphServiceDirectoryObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectoryRoleTemplates returns request builder for DirectoryRoleTemplate collection +func (b *GraphServiceRequestBuilder) DirectoryRoleTemplates() *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder { + bb := &GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directoryRoleTemplates" + return bb +} + +// GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder is request builder for DirectoryRoleTemplate collection +type GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryRoleTemplate collection +func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectoryRoleTemplatesCollectionRequest { + return &GraphServiceDirectoryRoleTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryRoleTemplate item +func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) ID(id string) *DirectoryRoleTemplateRequestBuilder { + bb := &DirectoryRoleTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDirectoryRoleTemplatesCollectionRequest is request for DirectoryRoleTemplate collection +type GraphServiceDirectoryRoleTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryRoleTemplate collection +func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryRoleTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryRoleTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryRoleTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryRoleTemplate collection, max N pages +func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryRoleTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryRoleTemplate collection +func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectoryRoleTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryRoleTemplate collection +func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRoleTemplate) (resObj *DirectoryRoleTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectoryRoles returns request builder for DirectoryRole collection +func (b *GraphServiceRequestBuilder) DirectoryRoles() *GraphServiceDirectoryRolesCollectionRequestBuilder { + bb := &GraphServiceDirectoryRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directoryRoles" + return bb +} + +// GraphServiceDirectoryRolesCollectionRequestBuilder is request builder for DirectoryRole collection +type GraphServiceDirectoryRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectoryRole collection +func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) Request() *GraphServiceDirectoryRolesCollectionRequest { + return &GraphServiceDirectoryRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectoryRole item +func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) ID(id string) *DirectoryRoleRequestBuilder { + bb := &DirectoryRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDirectoryRolesCollectionRequest is request for DirectoryRole collection +type GraphServiceDirectoryRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectoryRole collection +func (r *GraphServiceDirectoryRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectoryRole collection, max N pages +func (r *GraphServiceDirectoryRolesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectoryRole collection +func (r *GraphServiceDirectoryRolesCollectionRequest) Get(ctx context.Context) ([]DirectoryRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectoryRole collection +func (r *GraphServiceDirectoryRolesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRole) (resObj *DirectoryRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DirectorySettingTemplates returns request builder for DirectorySettingTemplate collection +func (b *GraphServiceRequestBuilder) DirectorySettingTemplates() *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder { + bb := &GraphServiceDirectorySettingTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directorySettingTemplates" + return bb +} + +// GraphServiceDirectorySettingTemplatesCollectionRequestBuilder is request builder for DirectorySettingTemplate collection +type GraphServiceDirectorySettingTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectorySettingTemplate collection +func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectorySettingTemplatesCollectionRequest { + return &GraphServiceDirectorySettingTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectorySettingTemplate item +func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) ID(id string) *DirectorySettingTemplateRequestBuilder { + bb := &DirectorySettingTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDirectorySettingTemplatesCollectionRequest is request for DirectorySettingTemplate collection +type GraphServiceDirectorySettingTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectorySettingTemplate collection +func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySettingTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectorySettingTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectorySettingTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectorySettingTemplate collection, max N pages +func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySettingTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectorySettingTemplate collection +func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectorySettingTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectorySettingTemplate collection +func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectorySettingTemplate) (resObj *DirectorySettingTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// DomainDNSRecords returns request builder for DomainDNSRecord collection +func (b *GraphServiceRequestBuilder) DomainDNSRecords() *GraphServiceDomainDNSRecordsCollectionRequestBuilder { + bb := &GraphServiceDomainDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domainDnsRecords" + return bb +} + +// GraphServiceDomainDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection +type GraphServiceDomainDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DomainDNSRecord collection +func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) Request() *GraphServiceDomainDNSRecordsCollectionRequest { + return &GraphServiceDomainDNSRecordsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DomainDNSRecord item +func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder { + bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDomainDNSRecordsCollectionRequest is request for DomainDNSRecord collection +type GraphServiceDomainDNSRecordsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DomainDNSRecord collection +func (r *GraphServiceDomainDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DomainDNSRecord + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DomainDNSRecord + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DomainDNSRecord collection, max N pages +func (r *GraphServiceDomainDNSRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DomainDNSRecord collection +func (r *GraphServiceDomainDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DomainDNSRecord collection +func (r *GraphServiceDomainDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Domains returns request builder for Domain collection +func (b *GraphServiceRequestBuilder) Domains() *GraphServiceDomainsCollectionRequestBuilder { + bb := &GraphServiceDomainsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/domains" + return bb +} + +// GraphServiceDomainsCollectionRequestBuilder is request builder for Domain collection +type GraphServiceDomainsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Domain collection +func (b *GraphServiceDomainsCollectionRequestBuilder) Request() *GraphServiceDomainsCollectionRequest { + return &GraphServiceDomainsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Domain item +func (b *GraphServiceDomainsCollectionRequestBuilder) ID(id string) *DomainRequestBuilder { + bb := &DomainRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDomainsCollectionRequest is request for Domain collection +type GraphServiceDomainsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Domain collection +func (r *GraphServiceDomainsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Domain, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Domain + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Domain + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Domain collection, max N pages +func (r *GraphServiceDomainsCollectionRequest) GetN(ctx context.Context, n int) ([]Domain, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Domain collection +func (r *GraphServiceDomainsCollectionRequest) Get(ctx context.Context) ([]Domain, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Domain collection +func (r *GraphServiceDomainsCollectionRequest) Add(ctx context.Context, reqObj *Domain) (resObj *Domain, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Drives returns request builder for Drive collection +func (b *GraphServiceRequestBuilder) Drives() *GraphServiceDrivesCollectionRequestBuilder { + bb := &GraphServiceDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drives" + return bb +} + +// GraphServiceDrivesCollectionRequestBuilder is request builder for Drive collection +type GraphServiceDrivesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Drive collection +func (b *GraphServiceDrivesCollectionRequestBuilder) Request() *GraphServiceDrivesCollectionRequest { + return &GraphServiceDrivesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Drive item +func (b *GraphServiceDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceDrivesCollectionRequest is request for Drive collection +type GraphServiceDrivesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Drive collection +func (r *GraphServiceDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Drive + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Drive + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Drive collection, max N pages +func (r *GraphServiceDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Drive collection +func (r *GraphServiceDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Drive collection +func (r *GraphServiceDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// FilterOperators returns request builder for FilterOperatorSchema collection +func (b *GraphServiceRequestBuilder) FilterOperators() *GraphServiceFilterOperatorsCollectionRequestBuilder { + bb := &GraphServiceFilterOperatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/filterOperators" + return bb +} + +// GraphServiceFilterOperatorsCollectionRequestBuilder is request builder for FilterOperatorSchema collection +type GraphServiceFilterOperatorsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for FilterOperatorSchema collection +func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) Request() *GraphServiceFilterOperatorsCollectionRequest { + return &GraphServiceFilterOperatorsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for FilterOperatorSchema item +func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) ID(id string) *FilterOperatorSchemaRequestBuilder { + bb := &FilterOperatorSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceFilterOperatorsCollectionRequest is request for FilterOperatorSchema collection +type GraphServiceFilterOperatorsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for FilterOperatorSchema collection +func (r *GraphServiceFilterOperatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FilterOperatorSchema, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []FilterOperatorSchema + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []FilterOperatorSchema + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for FilterOperatorSchema collection, max N pages +func (r *GraphServiceFilterOperatorsCollectionRequest) GetN(ctx context.Context, n int) ([]FilterOperatorSchema, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for FilterOperatorSchema collection +func (r *GraphServiceFilterOperatorsCollectionRequest) Get(ctx context.Context) ([]FilterOperatorSchema, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for FilterOperatorSchema collection +func (r *GraphServiceFilterOperatorsCollectionRequest) Add(ctx context.Context, reqObj *FilterOperatorSchema) (resObj *FilterOperatorSchema, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Functions returns request builder for AttributeMappingFunctionSchema collection +func (b *GraphServiceRequestBuilder) Functions() *GraphServiceFunctionsCollectionRequestBuilder { + bb := &GraphServiceFunctionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/functions" + return bb +} + +// GraphServiceFunctionsCollectionRequestBuilder is request builder for AttributeMappingFunctionSchema collection +type GraphServiceFunctionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for AttributeMappingFunctionSchema collection +func (b *GraphServiceFunctionsCollectionRequestBuilder) Request() *GraphServiceFunctionsCollectionRequest { + return &GraphServiceFunctionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for AttributeMappingFunctionSchema item +func (b *GraphServiceFunctionsCollectionRequestBuilder) ID(id string) *AttributeMappingFunctionSchemaRequestBuilder { + bb := &AttributeMappingFunctionSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceFunctionsCollectionRequest is request for AttributeMappingFunctionSchema collection +type GraphServiceFunctionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for AttributeMappingFunctionSchema collection +func (r *GraphServiceFunctionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AttributeMappingFunctionSchema, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []AttributeMappingFunctionSchema + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []AttributeMappingFunctionSchema + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for AttributeMappingFunctionSchema collection, max N pages +func (r *GraphServiceFunctionsCollectionRequest) GetN(ctx context.Context, n int) ([]AttributeMappingFunctionSchema, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for AttributeMappingFunctionSchema collection +func (r *GraphServiceFunctionsCollectionRequest) Get(ctx context.Context) ([]AttributeMappingFunctionSchema, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for AttributeMappingFunctionSchema collection +func (r *GraphServiceFunctionsCollectionRequest) Add(ctx context.Context, reqObj *AttributeMappingFunctionSchema) (resObj *AttributeMappingFunctionSchema, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceResources returns request builder for GovernanceResource collection +func (b *GraphServiceRequestBuilder) GovernanceResources() *GraphServiceGovernanceResourcesCollectionRequestBuilder { + bb := &GraphServiceGovernanceResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceResources" + return bb +} + +// GraphServiceGovernanceResourcesCollectionRequestBuilder is request builder for GovernanceResource collection +type GraphServiceGovernanceResourcesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceResource collection +func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) Request() *GraphServiceGovernanceResourcesCollectionRequest { + return &GraphServiceGovernanceResourcesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceResource item +func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder { + bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceResourcesCollectionRequest is request for GovernanceResource collection +type GraphServiceGovernanceResourcesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceResource collection +func (r *GraphServiceGovernanceResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceResource, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceResource + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceResource + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceResource collection, max N pages +func (r *GraphServiceGovernanceResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceResource, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceResource collection +func (r *GraphServiceGovernanceResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceResource collection +func (r *GraphServiceGovernanceResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceRoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection +func (b *GraphServiceRequestBuilder) GovernanceRoleAssignmentRequests() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder { + bb := &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceRoleAssignmentRequests" + return bb +} + +// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection +type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignmentRequestObject collection +func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest { + return &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignmentRequestObject item +func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder { + bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection +type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection +func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages +func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignmentRequestObject collection +func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignmentRequestObject collection +func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceRoleAssignments returns request builder for GovernanceRoleAssignment collection +func (b *GraphServiceRequestBuilder) GovernanceRoleAssignments() *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder { + bb := &GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceRoleAssignments" + return bb +} + +// GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection +type GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleAssignment collection +func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentsCollectionRequest { + return &GraphServiceGovernanceRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleAssignment item +func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder { + bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection +type GraphServiceGovernanceRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleAssignment collection +func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleAssignment collection, max N pages +func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleAssignment collection +func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleAssignment collection +func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceRoleDefinitions returns request builder for GovernanceRoleDefinition collection +func (b *GraphServiceRequestBuilder) GovernanceRoleDefinitions() *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder { + bb := &GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceRoleDefinitions" + return bb +} + +// GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection +type GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleDefinition collection +func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleDefinitionsCollectionRequest { + return &GraphServiceGovernanceRoleDefinitionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleDefinition item +func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder { + bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection +type GraphServiceGovernanceRoleDefinitionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleDefinition collection +func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleDefinition + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleDefinition + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleDefinition collection, max N pages +func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleDefinition collection +func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleDefinition collection +func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceRoleSettings returns request builder for GovernanceRoleSetting collection +func (b *GraphServiceRequestBuilder) GovernanceRoleSettings() *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder { + bb := &GraphServiceGovernanceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceRoleSettings" + return bb +} + +// GraphServiceGovernanceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection +type GraphServiceGovernanceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceRoleSetting collection +func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleSettingsCollectionRequest { + return &GraphServiceGovernanceRoleSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceRoleSetting item +func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder { + bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection +type GraphServiceGovernanceRoleSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceRoleSetting collection +func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceRoleSetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceRoleSetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceRoleSetting collection, max N pages +func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceRoleSetting collection +func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceRoleSetting collection +func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GovernanceSubjects returns request builder for GovernanceSubject collection +func (b *GraphServiceRequestBuilder) GovernanceSubjects() *GraphServiceGovernanceSubjectsCollectionRequestBuilder { + bb := &GraphServiceGovernanceSubjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/governanceSubjects" + return bb +} + +// GraphServiceGovernanceSubjectsCollectionRequestBuilder is request builder for GovernanceSubject collection +type GraphServiceGovernanceSubjectsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GovernanceSubject collection +func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) Request() *GraphServiceGovernanceSubjectsCollectionRequest { + return &GraphServiceGovernanceSubjectsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GovernanceSubject item +func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) ID(id string) *GovernanceSubjectRequestBuilder { + bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGovernanceSubjectsCollectionRequest is request for GovernanceSubject collection +type GraphServiceGovernanceSubjectsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GovernanceSubject collection +func (r *GraphServiceGovernanceSubjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceSubject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GovernanceSubject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GovernanceSubject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GovernanceSubject collection, max N pages +func (r *GraphServiceGovernanceSubjectsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceSubject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GovernanceSubject collection +func (r *GraphServiceGovernanceSubjectsCollectionRequest) Get(ctx context.Context) ([]GovernanceSubject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GovernanceSubject collection +func (r *GraphServiceGovernanceSubjectsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceSubject) (resObj *GovernanceSubject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection +func (b *GraphServiceRequestBuilder) GroupLifecyclePolicies() *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder { + bb := &GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groupLifecyclePolicies" + return bb +} + +// GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection +type GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for GroupLifecyclePolicy collection +func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GraphServiceGroupLifecyclePoliciesCollectionRequest { + return &GraphServiceGroupLifecyclePoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for GroupLifecyclePolicy item +func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder { + bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection +type GraphServiceGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for GroupLifecyclePolicy collection +func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupLifecyclePolicy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupLifecyclePolicy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupLifecyclePolicy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for GroupLifecyclePolicy collection, max N pages +func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupLifecyclePolicy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for GroupLifecyclePolicy collection +func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for GroupLifecyclePolicy collection +func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Groups returns request builder for Group collection +func (b *GraphServiceRequestBuilder) Groups() *GraphServiceGroupsCollectionRequestBuilder { + bb := &GraphServiceGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/groups" + return bb +} + +// GraphServiceGroupsCollectionRequestBuilder is request builder for Group collection +type GraphServiceGroupsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Group collection +func (b *GraphServiceGroupsCollectionRequestBuilder) Request() *GraphServiceGroupsCollectionRequest { + return &GraphServiceGroupsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Group item +func (b *GraphServiceGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder { + bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceGroupsCollectionRequest is request for Group collection +type GraphServiceGroupsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Group collection +func (r *GraphServiceGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Group, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Group + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Group + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Group collection, max N pages +func (r *GraphServiceGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]Group, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Group collection +func (r *GraphServiceGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Group collection +func (r *GraphServiceGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityProviders returns request builder for IdentityProvider collection +func (b *GraphServiceRequestBuilder) IdentityProviders() *GraphServiceIdentityProvidersCollectionRequestBuilder { + bb := &GraphServiceIdentityProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityProviders" + return bb +} + +// GraphServiceIdentityProvidersCollectionRequestBuilder is request builder for IdentityProvider collection +type GraphServiceIdentityProvidersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IdentityProvider collection +func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) Request() *GraphServiceIdentityProvidersCollectionRequest { + return &GraphServiceIdentityProvidersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IdentityProvider item +func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) ID(id string) *IdentityProviderRequestBuilder { + bb := &IdentityProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceIdentityProvidersCollectionRequest is request for IdentityProvider collection +type GraphServiceIdentityProvidersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IdentityProvider collection +func (r *GraphServiceIdentityProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityProvider, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IdentityProvider + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IdentityProvider + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IdentityProvider collection, max N pages +func (r *GraphServiceIdentityProvidersCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityProvider, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IdentityProvider collection +func (r *GraphServiceIdentityProvidersCollectionRequest) Get(ctx context.Context) ([]IdentityProvider, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IdentityProvider collection +func (r *GraphServiceIdentityProvidersCollectionRequest) Add(ctx context.Context, reqObj *IdentityProvider) (resObj *IdentityProvider, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// IdentityRiskEvents returns request builder for IdentityRiskEvent collection +func (b *GraphServiceRequestBuilder) IdentityRiskEvents() *GraphServiceIdentityRiskEventsCollectionRequestBuilder { + bb := &GraphServiceIdentityRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityRiskEvents" + return bb +} + +// GraphServiceIdentityRiskEventsCollectionRequestBuilder is request builder for IdentityRiskEvent collection +type GraphServiceIdentityRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for IdentityRiskEvent collection +func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) Request() *GraphServiceIdentityRiskEventsCollectionRequest { + return &GraphServiceIdentityRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for IdentityRiskEvent item +func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) ID(id string) *IdentityRiskEventRequestBuilder { + bb := &IdentityRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceIdentityRiskEventsCollectionRequest is request for IdentityRiskEvent collection +type GraphServiceIdentityRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for IdentityRiskEvent collection +func (r *GraphServiceIdentityRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []IdentityRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []IdentityRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for IdentityRiskEvent collection, max N pages +func (r *GraphServiceIdentityRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for IdentityRiskEvent collection +func (r *GraphServiceIdentityRiskEventsCollectionRequest) Get(ctx context.Context) ([]IdentityRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for IdentityRiskEvent collection +func (r *GraphServiceIdentityRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *IdentityRiskEvent) (resObj *IdentityRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ImpossibleTravelRiskEvents returns request builder for ImpossibleTravelRiskEvent collection +func (b *GraphServiceRequestBuilder) ImpossibleTravelRiskEvents() *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder { + bb := &GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/impossibleTravelRiskEvents" + return bb +} + +// GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder is request builder for ImpossibleTravelRiskEvent collection +type GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ImpossibleTravelRiskEvent collection +func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) Request() *GraphServiceImpossibleTravelRiskEventsCollectionRequest { + return &GraphServiceImpossibleTravelRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ImpossibleTravelRiskEvent item +func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) ID(id string) *ImpossibleTravelRiskEventRequestBuilder { + bb := &ImpossibleTravelRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceImpossibleTravelRiskEventsCollectionRequest is request for ImpossibleTravelRiskEvent collection +type GraphServiceImpossibleTravelRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ImpossibleTravelRiskEvent collection +func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImpossibleTravelRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImpossibleTravelRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImpossibleTravelRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ImpossibleTravelRiskEvent collection, max N pages +func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]ImpossibleTravelRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ImpossibleTravelRiskEvent collection +func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Get(ctx context.Context) ([]ImpossibleTravelRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ImpossibleTravelRiskEvent collection +func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *ImpossibleTravelRiskEvent) (resObj *ImpossibleTravelRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Invitations returns request builder for Invitation collection +func (b *GraphServiceRequestBuilder) Invitations() *GraphServiceInvitationsCollectionRequestBuilder { + bb := &GraphServiceInvitationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/invitations" + return bb +} + +// GraphServiceInvitationsCollectionRequestBuilder is request builder for Invitation collection +type GraphServiceInvitationsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Invitation collection +func (b *GraphServiceInvitationsCollectionRequestBuilder) Request() *GraphServiceInvitationsCollectionRequest { + return &GraphServiceInvitationsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Invitation item +func (b *GraphServiceInvitationsCollectionRequestBuilder) ID(id string) *InvitationRequestBuilder { + bb := &InvitationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceInvitationsCollectionRequest is request for Invitation collection +type GraphServiceInvitationsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Invitation collection +func (r *GraphServiceInvitationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Invitation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Invitation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Invitation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Invitation collection, max N pages +func (r *GraphServiceInvitationsCollectionRequest) GetN(ctx context.Context, n int) ([]Invitation, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Invitation collection +func (r *GraphServiceInvitationsCollectionRequest) Get(ctx context.Context) ([]Invitation, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Invitation collection +func (r *GraphServiceInvitationsCollectionRequest) Add(ctx context.Context, reqObj *Invitation) (resObj *Invitation, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// LeakedCredentialsRiskEvents returns request builder for LeakedCredentialsRiskEvent collection +func (b *GraphServiceRequestBuilder) LeakedCredentialsRiskEvents() *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder { + bb := &GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/leakedCredentialsRiskEvents" + return bb +} + +// GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder is request builder for LeakedCredentialsRiskEvent collection +type GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for LeakedCredentialsRiskEvent collection +func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) Request() *GraphServiceLeakedCredentialsRiskEventsCollectionRequest { + return &GraphServiceLeakedCredentialsRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for LeakedCredentialsRiskEvent item +func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) ID(id string) *LeakedCredentialsRiskEventRequestBuilder { + bb := &LeakedCredentialsRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceLeakedCredentialsRiskEventsCollectionRequest is request for LeakedCredentialsRiskEvent collection +type GraphServiceLeakedCredentialsRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for LeakedCredentialsRiskEvent collection +func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LeakedCredentialsRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []LeakedCredentialsRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []LeakedCredentialsRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for LeakedCredentialsRiskEvent collection, max N pages +func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]LeakedCredentialsRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for LeakedCredentialsRiskEvent collection +func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Get(ctx context.Context) ([]LeakedCredentialsRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for LeakedCredentialsRiskEvent collection +func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *LeakedCredentialsRiskEvent) (resObj *LeakedCredentialsRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// MalwareRiskEvents returns request builder for MalwareRiskEvent collection +func (b *GraphServiceRequestBuilder) MalwareRiskEvents() *GraphServiceMalwareRiskEventsCollectionRequestBuilder { + bb := &GraphServiceMalwareRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/malwareRiskEvents" + return bb +} + +// GraphServiceMalwareRiskEventsCollectionRequestBuilder is request builder for MalwareRiskEvent collection +type GraphServiceMalwareRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for MalwareRiskEvent collection +func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) Request() *GraphServiceMalwareRiskEventsCollectionRequest { + return &GraphServiceMalwareRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for MalwareRiskEvent item +func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) ID(id string) *MalwareRiskEventRequestBuilder { + bb := &MalwareRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceMalwareRiskEventsCollectionRequest is request for MalwareRiskEvent collection +type GraphServiceMalwareRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for MalwareRiskEvent collection +func (r *GraphServiceMalwareRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MalwareRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MalwareRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MalwareRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for MalwareRiskEvent collection, max N pages +func (r *GraphServiceMalwareRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MalwareRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for MalwareRiskEvent collection +func (r *GraphServiceMalwareRiskEventsCollectionRequest) Get(ctx context.Context) ([]MalwareRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for MalwareRiskEvent collection +func (r *GraphServiceMalwareRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *MalwareRiskEvent) (resObj *MalwareRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection +func (b *GraphServiceRequestBuilder) Oauth2PermissionGrants() *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder { + bb := &GraphServiceOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/oauth2PermissionGrants" + return bb +} + +// GraphServiceOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection +type GraphServiceOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OAuth2PermissionGrant collection +func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) Request() *GraphServiceOauth2PermissionGrantsCollectionRequest { + return &GraphServiceOauth2PermissionGrantsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OAuth2PermissionGrant item +func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder { + bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection +type GraphServiceOauth2PermissionGrantsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OAuth2PermissionGrant collection +func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OAuth2PermissionGrant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OAuth2PermissionGrant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OAuth2PermissionGrant collection, max N pages +func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OAuth2PermissionGrant collection +func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OAuth2PermissionGrant collection +func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// OnPremisesPublishingProfiles returns request builder for OnPremisesPublishingProfile collection +func (b *GraphServiceRequestBuilder) OnPremisesPublishingProfiles() *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder { + bb := &GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/onPremisesPublishingProfiles" + return bb +} + +// GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder is request builder for OnPremisesPublishingProfile collection +type GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for OnPremisesPublishingProfile collection +func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) Request() *GraphServiceOnPremisesPublishingProfilesCollectionRequest { + return &GraphServiceOnPremisesPublishingProfilesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for OnPremisesPublishingProfile item +func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) ID(id string) *OnPremisesPublishingProfileRequestBuilder { + bb := &OnPremisesPublishingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceOnPremisesPublishingProfilesCollectionRequest is request for OnPremisesPublishingProfile collection +type GraphServiceOnPremisesPublishingProfilesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for OnPremisesPublishingProfile collection +func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesPublishingProfile, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OnPremisesPublishingProfile + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OnPremisesPublishingProfile + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for OnPremisesPublishingProfile collection, max N pages +func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesPublishingProfile, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for OnPremisesPublishingProfile collection +func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Get(ctx context.Context) ([]OnPremisesPublishingProfile, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for OnPremisesPublishingProfile collection +func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesPublishingProfile) (resObj *OnPremisesPublishingProfile, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Organization returns request builder for Organization collection +func (b *GraphServiceRequestBuilder) Organization() *GraphServiceOrganizationCollectionRequestBuilder { + bb := &GraphServiceOrganizationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/organization" + return bb +} + +// GraphServiceOrganizationCollectionRequestBuilder is request builder for Organization collection +type GraphServiceOrganizationCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Organization collection +func (b *GraphServiceOrganizationCollectionRequestBuilder) Request() *GraphServiceOrganizationCollectionRequest { + return &GraphServiceOrganizationCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Organization item +func (b *GraphServiceOrganizationCollectionRequestBuilder) ID(id string) *OrganizationRequestBuilder { + bb := &OrganizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceOrganizationCollectionRequest is request for Organization collection +type GraphServiceOrganizationCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Organization collection +func (r *GraphServiceOrganizationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Organization, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Organization + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Organization + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Organization collection, max N pages +func (r *GraphServiceOrganizationCollectionRequest) GetN(ctx context.Context, n int) ([]Organization, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Organization collection +func (r *GraphServiceOrganizationCollectionRequest) Get(ctx context.Context) ([]Organization, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Organization collection +func (r *GraphServiceOrganizationCollectionRequest) Add(ctx context.Context, reqObj *Organization) (resObj *Organization, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PayloadResponse returns request builder for PayloadResponse collection +func (b *GraphServiceRequestBuilder) PayloadResponse() *GraphServicePayloadResponseCollectionRequestBuilder { + bb := &GraphServicePayloadResponseCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/payloadResponse" + return bb +} + +// GraphServicePayloadResponseCollectionRequestBuilder is request builder for PayloadResponse collection +type GraphServicePayloadResponseCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PayloadResponse collection +func (b *GraphServicePayloadResponseCollectionRequestBuilder) Request() *GraphServicePayloadResponseCollectionRequest { + return &GraphServicePayloadResponseCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PayloadResponse item +func (b *GraphServicePayloadResponseCollectionRequestBuilder) ID(id string) *PayloadResponseRequestBuilder { + bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePayloadResponseCollectionRequest is request for PayloadResponse collection +type GraphServicePayloadResponseCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PayloadResponse collection +func (r *GraphServicePayloadResponseCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PayloadResponse, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PayloadResponse + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PayloadResponse + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PayloadResponse collection, max N pages +func (r *GraphServicePayloadResponseCollectionRequest) GetN(ctx context.Context, n int) ([]PayloadResponse, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PayloadResponse collection +func (r *GraphServicePayloadResponseCollectionRequest) Get(ctx context.Context) ([]PayloadResponse, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PayloadResponse collection +func (r *GraphServicePayloadResponseCollectionRequest) Add(ctx context.Context, reqObj *PayloadResponse) (resObj *PayloadResponse, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection +func (b *GraphServiceRequestBuilder) PermissionGrants() *GraphServicePermissionGrantsCollectionRequestBuilder { + bb := &GraphServicePermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/permissionGrants" + return bb +} + +// GraphServicePermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection +type GraphServicePermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ResourceSpecificPermissionGrant collection +func (b *GraphServicePermissionGrantsCollectionRequestBuilder) Request() *GraphServicePermissionGrantsCollectionRequest { + return &GraphServicePermissionGrantsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ResourceSpecificPermissionGrant item +func (b *GraphServicePermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder { + bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection +type GraphServicePermissionGrantsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection +func (r *GraphServicePermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResourceSpecificPermissionGrant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResourceSpecificPermissionGrant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ResourceSpecificPermissionGrant collection, max N pages +func (r *GraphServicePermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ResourceSpecificPermissionGrant collection +func (r *GraphServicePermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ResourceSpecificPermissionGrant collection +func (r *GraphServicePermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Places returns request builder for Place collection +func (b *GraphServiceRequestBuilder) Places() *GraphServicePlacesCollectionRequestBuilder { + bb := &GraphServicePlacesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/places" + return bb +} + +// GraphServicePlacesCollectionRequestBuilder is request builder for Place collection +type GraphServicePlacesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Place collection +func (b *GraphServicePlacesCollectionRequestBuilder) Request() *GraphServicePlacesCollectionRequest { + return &GraphServicePlacesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Place item +func (b *GraphServicePlacesCollectionRequestBuilder) ID(id string) *PlaceRequestBuilder { + bb := &PlaceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePlacesCollectionRequest is request for Place collection +type GraphServicePlacesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Place collection +func (r *GraphServicePlacesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Place, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Place + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Place + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Place collection, max N pages +func (r *GraphServicePlacesCollectionRequest) GetN(ctx context.Context, n int) ([]Place, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Place collection +func (r *GraphServicePlacesCollectionRequest) Get(ctx context.Context) ([]Place, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Place collection +func (r *GraphServicePlacesCollectionRequest) Add(ctx context.Context, reqObj *Place) (resObj *Place, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Policies returns request builder for Policy collection +func (b *GraphServiceRequestBuilder) Policies() *GraphServicePoliciesCollectionRequestBuilder { + bb := &GraphServicePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/policies" + return bb +} + +// GraphServicePoliciesCollectionRequestBuilder is request builder for Policy collection +type GraphServicePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Policy collection +func (b *GraphServicePoliciesCollectionRequestBuilder) Request() *GraphServicePoliciesCollectionRequest { + return &GraphServicePoliciesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Policy item +func (b *GraphServicePoliciesCollectionRequestBuilder) ID(id string) *PolicyRequestBuilder { + bb := &PolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePoliciesCollectionRequest is request for Policy collection +type GraphServicePoliciesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Policy collection +func (r *GraphServicePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Policy, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Policy + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Policy + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Policy collection, max N pages +func (r *GraphServicePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]Policy, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Policy collection +func (r *GraphServicePoliciesCollectionRequest) Get(ctx context.Context) ([]Policy, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Policy collection +func (r *GraphServicePoliciesCollectionRequest) Add(ctx context.Context, reqObj *Policy) (resObj *Policy, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedAccess returns request builder for PrivilegedAccess collection +func (b *GraphServiceRequestBuilder) PrivilegedAccess() *GraphServicePrivilegedAccessCollectionRequestBuilder { + bb := &GraphServicePrivilegedAccessCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedAccess" + return bb +} + +// GraphServicePrivilegedAccessCollectionRequestBuilder is request builder for PrivilegedAccess collection +type GraphServicePrivilegedAccessCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedAccess collection +func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) Request() *GraphServicePrivilegedAccessCollectionRequest { + return &GraphServicePrivilegedAccessCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedAccess item +func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) ID(id string) *PrivilegedAccessRequestBuilder { + bb := &PrivilegedAccessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedAccessCollectionRequest is request for PrivilegedAccess collection +type GraphServicePrivilegedAccessCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedAccess collection +func (r *GraphServicePrivilegedAccessCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedAccess, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedAccess + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedAccess + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedAccess collection, max N pages +func (r *GraphServicePrivilegedAccessCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedAccess, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedAccess collection +func (r *GraphServicePrivilegedAccessCollectionRequest) Get(ctx context.Context) ([]PrivilegedAccess, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedAccess collection +func (r *GraphServicePrivilegedAccessCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedAccess) (resObj *PrivilegedAccess, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedApproval returns request builder for PrivilegedApproval collection +func (b *GraphServiceRequestBuilder) PrivilegedApproval() *GraphServicePrivilegedApprovalCollectionRequestBuilder { + bb := &GraphServicePrivilegedApprovalCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedApproval" + return bb +} + +// GraphServicePrivilegedApprovalCollectionRequestBuilder is request builder for PrivilegedApproval collection +type GraphServicePrivilegedApprovalCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedApproval collection +func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) Request() *GraphServicePrivilegedApprovalCollectionRequest { + return &GraphServicePrivilegedApprovalCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedApproval item +func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) ID(id string) *PrivilegedApprovalRequestBuilder { + bb := &PrivilegedApprovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedApprovalCollectionRequest is request for PrivilegedApproval collection +type GraphServicePrivilegedApprovalCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedApproval collection +func (r *GraphServicePrivilegedApprovalCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedApproval, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedApproval + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedApproval + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedApproval collection, max N pages +func (r *GraphServicePrivilegedApprovalCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedApproval, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedApproval collection +func (r *GraphServicePrivilegedApprovalCollectionRequest) Get(ctx context.Context) ([]PrivilegedApproval, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedApproval collection +func (r *GraphServicePrivilegedApprovalCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedApproval) (resObj *PrivilegedApproval, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedOperationEvents returns request builder for PrivilegedOperationEvent collection +func (b *GraphServiceRequestBuilder) PrivilegedOperationEvents() *GraphServicePrivilegedOperationEventsCollectionRequestBuilder { + bb := &GraphServicePrivilegedOperationEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedOperationEvents" + return bb +} + +// GraphServicePrivilegedOperationEventsCollectionRequestBuilder is request builder for PrivilegedOperationEvent collection +type GraphServicePrivilegedOperationEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedOperationEvent collection +func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) Request() *GraphServicePrivilegedOperationEventsCollectionRequest { + return &GraphServicePrivilegedOperationEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedOperationEvent item +func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) ID(id string) *PrivilegedOperationEventRequestBuilder { + bb := &PrivilegedOperationEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedOperationEventsCollectionRequest is request for PrivilegedOperationEvent collection +type GraphServicePrivilegedOperationEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedOperationEvent collection +func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedOperationEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedOperationEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedOperationEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedOperationEvent collection, max N pages +func (r *GraphServicePrivilegedOperationEventsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedOperationEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedOperationEvent collection +func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Get(ctx context.Context) ([]PrivilegedOperationEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedOperationEvent collection +func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedOperationEvent) (resObj *PrivilegedOperationEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedRoleAssignmentRequests returns request builder for PrivilegedRoleAssignmentRequestObject collection +func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignmentRequests() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder { + bb := &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedRoleAssignmentRequests" + return bb +} + +// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject collection +type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedRoleAssignmentRequestObject collection +func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest { + return &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedRoleAssignmentRequestObject item +func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestObjectRequestBuilder { + bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest is request for PrivilegedRoleAssignmentRequestObject collection +type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedRoleAssignmentRequestObject collection +func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignmentRequestObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedRoleAssignmentRequestObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedRoleAssignmentRequestObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedRoleAssignmentRequestObject collection, max N pages +func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignmentRequestObject, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedRoleAssignmentRequestObject collection +func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignmentRequestObject, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedRoleAssignmentRequestObject collection +func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) (resObj *PrivilegedRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedRoleAssignments returns request builder for PrivilegedRoleAssignment collection +func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignments() *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder { + bb := &GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedRoleAssignments" + return bb +} + +// GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection +type GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedRoleAssignment collection +func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentsCollectionRequest { + return &GraphServicePrivilegedRoleAssignmentsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedRoleAssignment item +func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder { + bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection +type GraphServicePrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedRoleAssignment collection +func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedRoleAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedRoleAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedRoleAssignment collection, max N pages +func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignment, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedRoleAssignment collection +func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedRoleAssignment collection +func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedRoles returns request builder for PrivilegedRole collection +func (b *GraphServiceRequestBuilder) PrivilegedRoles() *GraphServicePrivilegedRolesCollectionRequestBuilder { + bb := &GraphServicePrivilegedRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedRoles" + return bb +} + +// GraphServicePrivilegedRolesCollectionRequestBuilder is request builder for PrivilegedRole collection +type GraphServicePrivilegedRolesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedRole collection +func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) Request() *GraphServicePrivilegedRolesCollectionRequest { + return &GraphServicePrivilegedRolesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedRole item +func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) ID(id string) *PrivilegedRoleRequestBuilder { + bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedRolesCollectionRequest is request for PrivilegedRole collection +type GraphServicePrivilegedRolesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedRole collection +func (r *GraphServicePrivilegedRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRole, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedRole + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedRole + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedRole collection, max N pages +func (r *GraphServicePrivilegedRolesCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRole, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedRole collection +func (r *GraphServicePrivilegedRolesCollectionRequest) Get(ctx context.Context) ([]PrivilegedRole, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedRole collection +func (r *GraphServicePrivilegedRolesCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRole) (resObj *PrivilegedRole, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// PrivilegedSignupStatus returns request builder for PrivilegedSignupStatus collection +func (b *GraphServiceRequestBuilder) PrivilegedSignupStatus() *GraphServicePrivilegedSignupStatusCollectionRequestBuilder { + bb := &GraphServicePrivilegedSignupStatusCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/privilegedSignupStatus" + return bb +} + +// GraphServicePrivilegedSignupStatusCollectionRequestBuilder is request builder for PrivilegedSignupStatus collection +type GraphServicePrivilegedSignupStatusCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for PrivilegedSignupStatus collection +func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) Request() *GraphServicePrivilegedSignupStatusCollectionRequest { + return &GraphServicePrivilegedSignupStatusCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for PrivilegedSignupStatus item +func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) ID(id string) *PrivilegedSignupStatusRequestBuilder { + bb := &PrivilegedSignupStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServicePrivilegedSignupStatusCollectionRequest is request for PrivilegedSignupStatus collection +type GraphServicePrivilegedSignupStatusCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for PrivilegedSignupStatus collection +func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedSignupStatus, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PrivilegedSignupStatus + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PrivilegedSignupStatus + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for PrivilegedSignupStatus collection, max N pages +func (r *GraphServicePrivilegedSignupStatusCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedSignupStatus, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for PrivilegedSignupStatus collection +func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Get(ctx context.Context) ([]PrivilegedSignupStatus, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for PrivilegedSignupStatus collection +func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedSignupStatus) (resObj *PrivilegedSignupStatus, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ProgramControlTypes returns request builder for ProgramControlType collection +func (b *GraphServiceRequestBuilder) ProgramControlTypes() *GraphServiceProgramControlTypesCollectionRequestBuilder { + bb := &GraphServiceProgramControlTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/programControlTypes" + return bb +} + +// GraphServiceProgramControlTypesCollectionRequestBuilder is request builder for ProgramControlType collection +type GraphServiceProgramControlTypesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProgramControlType collection +func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) Request() *GraphServiceProgramControlTypesCollectionRequest { + return &GraphServiceProgramControlTypesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProgramControlType item +func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) ID(id string) *ProgramControlTypeRequestBuilder { + bb := &ProgramControlTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceProgramControlTypesCollectionRequest is request for ProgramControlType collection +type GraphServiceProgramControlTypesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProgramControlType collection +func (r *GraphServiceProgramControlTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControlType, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProgramControlType + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProgramControlType + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProgramControlType collection, max N pages +func (r *GraphServiceProgramControlTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControlType, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProgramControlType collection +func (r *GraphServiceProgramControlTypesCollectionRequest) Get(ctx context.Context) ([]ProgramControlType, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProgramControlType collection +func (r *GraphServiceProgramControlTypesCollectionRequest) Add(ctx context.Context, reqObj *ProgramControlType) (resObj *ProgramControlType, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ProgramControls returns request builder for ProgramControl collection +func (b *GraphServiceRequestBuilder) ProgramControls() *GraphServiceProgramControlsCollectionRequestBuilder { + bb := &GraphServiceProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/programControls" + return bb +} + +// GraphServiceProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection +type GraphServiceProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ProgramControl collection +func (b *GraphServiceProgramControlsCollectionRequestBuilder) Request() *GraphServiceProgramControlsCollectionRequest { + return &GraphServiceProgramControlsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ProgramControl item +func (b *GraphServiceProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder { + bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceProgramControlsCollectionRequest is request for ProgramControl collection +type GraphServiceProgramControlsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ProgramControl collection +func (r *GraphServiceProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControl, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ProgramControl + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ProgramControl + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ProgramControl collection, max N pages +func (r *GraphServiceProgramControlsCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControl, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ProgramControl collection +func (r *GraphServiceProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ProgramControl collection +func (r *GraphServiceProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Programs returns request builder for Program collection +func (b *GraphServiceRequestBuilder) Programs() *GraphServiceProgramsCollectionRequestBuilder { + bb := &GraphServiceProgramsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/programs" + return bb +} + +// GraphServiceProgramsCollectionRequestBuilder is request builder for Program collection +type GraphServiceProgramsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Program collection +func (b *GraphServiceProgramsCollectionRequestBuilder) Request() *GraphServiceProgramsCollectionRequest { + return &GraphServiceProgramsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Program item +func (b *GraphServiceProgramsCollectionRequestBuilder) ID(id string) *ProgramRequestBuilder { + bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceProgramsCollectionRequest is request for Program collection +type GraphServiceProgramsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Program collection +func (r *GraphServiceProgramsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Program, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Program + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Program + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Program collection, max N pages +func (r *GraphServiceProgramsCollectionRequest) GetN(ctx context.Context, n int) ([]Program, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Program collection +func (r *GraphServiceProgramsCollectionRequest) Get(ctx context.Context) ([]Program, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Program collection +func (r *GraphServiceProgramsCollectionRequest) Add(ctx context.Context, reqObj *Program) (resObj *Program, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RiskDetections returns request builder for RiskDetection collection +func (b *GraphServiceRequestBuilder) RiskDetections() *GraphServiceRiskDetectionsCollectionRequestBuilder { + bb := &GraphServiceRiskDetectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/riskDetections" + return bb +} + +// GraphServiceRiskDetectionsCollectionRequestBuilder is request builder for RiskDetection collection +type GraphServiceRiskDetectionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RiskDetection collection +func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) Request() *GraphServiceRiskDetectionsCollectionRequest { + return &GraphServiceRiskDetectionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RiskDetection item +func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) ID(id string) *RiskDetectionRequestBuilder { + bb := &RiskDetectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceRiskDetectionsCollectionRequest is request for RiskDetection collection +type GraphServiceRiskDetectionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RiskDetection collection +func (r *GraphServiceRiskDetectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskDetection, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RiskDetection + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RiskDetection + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RiskDetection collection, max N pages +func (r *GraphServiceRiskDetectionsCollectionRequest) GetN(ctx context.Context, n int) ([]RiskDetection, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RiskDetection collection +func (r *GraphServiceRiskDetectionsCollectionRequest) Get(ctx context.Context) ([]RiskDetection, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RiskDetection collection +func (r *GraphServiceRiskDetectionsCollectionRequest) Add(ctx context.Context, reqObj *RiskDetection) (resObj *RiskDetection, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// RiskyUsers returns request builder for RiskyUser collection +func (b *GraphServiceRequestBuilder) RiskyUsers() *GraphServiceRiskyUsersCollectionRequestBuilder { + bb := &GraphServiceRiskyUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/riskyUsers" + return bb +} + +// GraphServiceRiskyUsersCollectionRequestBuilder is request builder for RiskyUser collection +type GraphServiceRiskyUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for RiskyUser collection +func (b *GraphServiceRiskyUsersCollectionRequestBuilder) Request() *GraphServiceRiskyUsersCollectionRequest { + return &GraphServiceRiskyUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for RiskyUser item +func (b *GraphServiceRiskyUsersCollectionRequestBuilder) ID(id string) *RiskyUserRequestBuilder { + bb := &RiskyUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceRiskyUsersCollectionRequest is request for RiskyUser collection +type GraphServiceRiskyUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for RiskyUser collection +func (r *GraphServiceRiskyUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskyUser, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RiskyUser + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RiskyUser + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for RiskyUser collection, max N pages +func (r *GraphServiceRiskyUsersCollectionRequest) GetN(ctx context.Context, n int) ([]RiskyUser, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for RiskyUser collection +func (r *GraphServiceRiskyUsersCollectionRequest) Get(ctx context.Context) ([]RiskyUser, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for RiskyUser collection +func (r *GraphServiceRiskyUsersCollectionRequest) Add(ctx context.Context, reqObj *RiskyUser) (resObj *RiskyUser, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SchemaExtensions returns request builder for SchemaExtension collection +func (b *GraphServiceRequestBuilder) SchemaExtensions() *GraphServiceSchemaExtensionsCollectionRequestBuilder { + bb := &GraphServiceSchemaExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/schemaExtensions" + return bb +} + +// GraphServiceSchemaExtensionsCollectionRequestBuilder is request builder for SchemaExtension collection +type GraphServiceSchemaExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SchemaExtension collection +func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) Request() *GraphServiceSchemaExtensionsCollectionRequest { + return &GraphServiceSchemaExtensionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SchemaExtension item +func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) ID(id string) *SchemaExtensionRequestBuilder { + bb := &SchemaExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSchemaExtensionsCollectionRequest is request for SchemaExtension collection +type GraphServiceSchemaExtensionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SchemaExtension collection +func (r *GraphServiceSchemaExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SchemaExtension, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SchemaExtension + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SchemaExtension + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SchemaExtension collection, max N pages +func (r *GraphServiceSchemaExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]SchemaExtension, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SchemaExtension collection +func (r *GraphServiceSchemaExtensionsCollectionRequest) Get(ctx context.Context) ([]SchemaExtension, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SchemaExtension collection +func (r *GraphServiceSchemaExtensionsCollectionRequest) Add(ctx context.Context, reqObj *SchemaExtension) (resObj *SchemaExtension, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ScopedRoleMemberships returns request builder for ScopedRoleMembership collection +func (b *GraphServiceRequestBuilder) ScopedRoleMemberships() *GraphServiceScopedRoleMembershipsCollectionRequestBuilder { + bb := &GraphServiceScopedRoleMembershipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/scopedRoleMemberships" + return bb +} + +// GraphServiceScopedRoleMembershipsCollectionRequestBuilder is request builder for ScopedRoleMembership collection +type GraphServiceScopedRoleMembershipsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ScopedRoleMembership collection +func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) Request() *GraphServiceScopedRoleMembershipsCollectionRequest { + return &GraphServiceScopedRoleMembershipsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ScopedRoleMembership item +func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder { + bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceScopedRoleMembershipsCollectionRequest is request for ScopedRoleMembership collection +type GraphServiceScopedRoleMembershipsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ScopedRoleMembership collection +func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ScopedRoleMembership + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ScopedRoleMembership + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ScopedRoleMembership collection, max N pages +func (r *GraphServiceScopedRoleMembershipsCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ScopedRoleMembership collection +func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ScopedRoleMembership collection +func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// ServicePrincipals returns request builder for ServicePrincipal collection +func (b *GraphServiceRequestBuilder) ServicePrincipals() *GraphServiceServicePrincipalsCollectionRequestBuilder { + bb := &GraphServiceServicePrincipalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/servicePrincipals" + return bb +} + +// GraphServiceServicePrincipalsCollectionRequestBuilder is request builder for ServicePrincipal collection +type GraphServiceServicePrincipalsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for ServicePrincipal collection +func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) Request() *GraphServiceServicePrincipalsCollectionRequest { + return &GraphServiceServicePrincipalsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for ServicePrincipal item +func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) ID(id string) *ServicePrincipalRequestBuilder { + bb := &ServicePrincipalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceServicePrincipalsCollectionRequest is request for ServicePrincipal collection +type GraphServiceServicePrincipalsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for ServicePrincipal collection +func (r *GraphServiceServicePrincipalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ServicePrincipal, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ServicePrincipal + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ServicePrincipal + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for ServicePrincipal collection, max N pages +func (r *GraphServiceServicePrincipalsCollectionRequest) GetN(ctx context.Context, n int) ([]ServicePrincipal, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for ServicePrincipal collection +func (r *GraphServiceServicePrincipalsCollectionRequest) Get(ctx context.Context) ([]ServicePrincipal, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for ServicePrincipal collection +func (r *GraphServiceServicePrincipalsCollectionRequest) Add(ctx context.Context, reqObj *ServicePrincipal) (resObj *ServicePrincipal, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Settings returns request builder for DirectorySetting collection +func (b *GraphServiceRequestBuilder) Settings() *GraphServiceSettingsCollectionRequestBuilder { + bb := &GraphServiceSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/settings" + return bb +} + +// GraphServiceSettingsCollectionRequestBuilder is request builder for DirectorySetting collection +type GraphServiceSettingsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DirectorySetting collection +func (b *GraphServiceSettingsCollectionRequestBuilder) Request() *GraphServiceSettingsCollectionRequest { + return &GraphServiceSettingsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DirectorySetting item +func (b *GraphServiceSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder { + bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSettingsCollectionRequest is request for DirectorySetting collection +type GraphServiceSettingsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DirectorySetting collection +func (r *GraphServiceSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySetting, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectorySetting + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectorySetting + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DirectorySetting collection, max N pages +func (r *GraphServiceSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySetting, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DirectorySetting collection +func (r *GraphServiceSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DirectorySetting collection +func (r *GraphServiceSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Shares returns request builder for SharedDriveItem collection +func (b *GraphServiceRequestBuilder) Shares() *GraphServiceSharesCollectionRequestBuilder { + bb := &GraphServiceSharesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/shares" + return bb +} + +// GraphServiceSharesCollectionRequestBuilder is request builder for SharedDriveItem collection +type GraphServiceSharesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SharedDriveItem collection +func (b *GraphServiceSharesCollectionRequestBuilder) Request() *GraphServiceSharesCollectionRequest { + return &GraphServiceSharesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SharedDriveItem item +func (b *GraphServiceSharesCollectionRequestBuilder) ID(id string) *SharedDriveItemRequestBuilder { + bb := &SharedDriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSharesCollectionRequest is request for SharedDriveItem collection +type GraphServiceSharesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SharedDriveItem collection +func (r *GraphServiceSharesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SharedDriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SharedDriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SharedDriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SharedDriveItem collection, max N pages +func (r *GraphServiceSharesCollectionRequest) GetN(ctx context.Context, n int) ([]SharedDriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SharedDriveItem collection +func (r *GraphServiceSharesCollectionRequest) Get(ctx context.Context) ([]SharedDriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SharedDriveItem collection +func (r *GraphServiceSharesCollectionRequest) Add(ctx context.Context, reqObj *SharedDriveItem) (resObj *SharedDriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Sites returns request builder for Site collection +func (b *GraphServiceRequestBuilder) Sites() *GraphServiceSitesCollectionRequestBuilder { + bb := &GraphServiceSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/sites" + return bb +} + +// GraphServiceSitesCollectionRequestBuilder is request builder for Site collection +type GraphServiceSitesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Site collection +func (b *GraphServiceSitesCollectionRequestBuilder) Request() *GraphServiceSitesCollectionRequest { + return &GraphServiceSitesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Site item +func (b *GraphServiceSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder { + bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSitesCollectionRequest is request for Site collection +type GraphServiceSitesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Site collection +func (r *GraphServiceSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Site collection, max N pages +func (r *GraphServiceSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Site collection +func (r *GraphServiceSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Site collection +func (r *GraphServiceSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SubscribedSKUs returns request builder for SubscribedSKU collection +func (b *GraphServiceRequestBuilder) SubscribedSKUs() *GraphServiceSubscribedSKUsCollectionRequestBuilder { + bb := &GraphServiceSubscribedSKUsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subscribedSkus" + return bb +} + +// GraphServiceSubscribedSKUsCollectionRequestBuilder is request builder for SubscribedSKU collection +type GraphServiceSubscribedSKUsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SubscribedSKU collection +func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) Request() *GraphServiceSubscribedSKUsCollectionRequest { + return &GraphServiceSubscribedSKUsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SubscribedSKU item +func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) ID(id string) *SubscribedSKURequestBuilder { + bb := &SubscribedSKURequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSubscribedSKUsCollectionRequest is request for SubscribedSKU collection +type GraphServiceSubscribedSKUsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SubscribedSKU collection +func (r *GraphServiceSubscribedSKUsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SubscribedSKU, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SubscribedSKU + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SubscribedSKU + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SubscribedSKU collection, max N pages +func (r *GraphServiceSubscribedSKUsCollectionRequest) GetN(ctx context.Context, n int) ([]SubscribedSKU, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SubscribedSKU collection +func (r *GraphServiceSubscribedSKUsCollectionRequest) Get(ctx context.Context) ([]SubscribedSKU, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SubscribedSKU collection +func (r *GraphServiceSubscribedSKUsCollectionRequest) Add(ctx context.Context, reqObj *SubscribedSKU) (resObj *SubscribedSKU, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Subscriptions returns request builder for Subscription collection +func (b *GraphServiceRequestBuilder) Subscriptions() *GraphServiceSubscriptionsCollectionRequestBuilder { + bb := &GraphServiceSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/subscriptions" + return bb +} + +// GraphServiceSubscriptionsCollectionRequestBuilder is request builder for Subscription collection +type GraphServiceSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Subscription collection +func (b *GraphServiceSubscriptionsCollectionRequestBuilder) Request() *GraphServiceSubscriptionsCollectionRequest { + return &GraphServiceSubscriptionsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Subscription item +func (b *GraphServiceSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder { + bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSubscriptionsCollectionRequest is request for Subscription collection +type GraphServiceSubscriptionsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Subscription collection +func (r *GraphServiceSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Subscription + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Subscription + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Subscription collection, max N pages +func (r *GraphServiceSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Subscription collection +func (r *GraphServiceSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Subscription collection +func (r *GraphServiceSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// SuspiciousIPRiskEvents returns request builder for SuspiciousIPRiskEvent collection +func (b *GraphServiceRequestBuilder) SuspiciousIPRiskEvents() *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder { + bb := &GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/suspiciousIpRiskEvents" + return bb +} + +// GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder is request builder for SuspiciousIPRiskEvent collection +type GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for SuspiciousIPRiskEvent collection +func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceSuspiciousIPRiskEventsCollectionRequest { + return &GraphServiceSuspiciousIPRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for SuspiciousIPRiskEvent item +func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) ID(id string) *SuspiciousIPRiskEventRequestBuilder { + bb := &SuspiciousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceSuspiciousIPRiskEventsCollectionRequest is request for SuspiciousIPRiskEvent collection +type GraphServiceSuspiciousIPRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for SuspiciousIPRiskEvent collection +func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SuspiciousIPRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SuspiciousIPRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SuspiciousIPRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for SuspiciousIPRiskEvent collection, max N pages +func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]SuspiciousIPRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for SuspiciousIPRiskEvent collection +func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]SuspiciousIPRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for SuspiciousIPRiskEvent collection +func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *SuspiciousIPRiskEvent) (resObj *SuspiciousIPRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Teams returns request builder for Team collection +func (b *GraphServiceRequestBuilder) Teams() *GraphServiceTeamsCollectionRequestBuilder { + bb := &GraphServiceTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teams" + return bb +} + +// GraphServiceTeamsCollectionRequestBuilder is request builder for Team collection +type GraphServiceTeamsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for Team collection +func (b *GraphServiceTeamsCollectionRequestBuilder) Request() *GraphServiceTeamsCollectionRequest { + return &GraphServiceTeamsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for Team item +func (b *GraphServiceTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder { + bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceTeamsCollectionRequest is request for Team collection +type GraphServiceTeamsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for Team collection +func (r *GraphServiceTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Team, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Team + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Team + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for Team collection, max N pages +func (r *GraphServiceTeamsCollectionRequest) GetN(ctx context.Context, n int) ([]Team, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for Team collection +func (r *GraphServiceTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for Team collection +func (r *GraphServiceTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// TeamsTemplates returns request builder for TeamsTemplate collection +func (b *GraphServiceRequestBuilder) TeamsTemplates() *GraphServiceTeamsTemplatesCollectionRequestBuilder { + bb := &GraphServiceTeamsTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamsTemplates" + return bb +} + +// GraphServiceTeamsTemplatesCollectionRequestBuilder is request builder for TeamsTemplate collection +type GraphServiceTeamsTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for TeamsTemplate collection +func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) Request() *GraphServiceTeamsTemplatesCollectionRequest { + return &GraphServiceTeamsTemplatesCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for TeamsTemplate item +func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) ID(id string) *TeamsTemplateRequestBuilder { + bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceTeamsTemplatesCollectionRequest is request for TeamsTemplate collection +type GraphServiceTeamsTemplatesCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for TeamsTemplate collection +func (r *GraphServiceTeamsTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsTemplate, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TeamsTemplate + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TeamsTemplate + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for TeamsTemplate collection, max N pages +func (r *GraphServiceTeamsTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsTemplate, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for TeamsTemplate collection +func (r *GraphServiceTeamsTemplatesCollectionRequest) Get(ctx context.Context) ([]TeamsTemplate, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for TeamsTemplate collection +func (r *GraphServiceTeamsTemplatesCollectionRequest) Add(ctx context.Context, reqObj *TeamsTemplate) (resObj *TeamsTemplate, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// UnfamiliarLocationRiskEvents returns request builder for UnfamiliarLocationRiskEvent collection +func (b *GraphServiceRequestBuilder) UnfamiliarLocationRiskEvents() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder { + bb := &GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/unfamiliarLocationRiskEvents" + return bb +} + +// GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder is request builder for UnfamiliarLocationRiskEvent collection +type GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for UnfamiliarLocationRiskEvent collection +func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) Request() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest { + return &GraphServiceUnfamiliarLocationRiskEventsCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for UnfamiliarLocationRiskEvent item +func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) ID(id string) *UnfamiliarLocationRiskEventRequestBuilder { + bb := &UnfamiliarLocationRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceUnfamiliarLocationRiskEventsCollectionRequest is request for UnfamiliarLocationRiskEvent collection +type GraphServiceUnfamiliarLocationRiskEventsCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for UnfamiliarLocationRiskEvent collection +func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnfamiliarLocationRiskEvent, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []UnfamiliarLocationRiskEvent + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []UnfamiliarLocationRiskEvent + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for UnfamiliarLocationRiskEvent collection, max N pages +func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]UnfamiliarLocationRiskEvent, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for UnfamiliarLocationRiskEvent collection +func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Get(ctx context.Context) ([]UnfamiliarLocationRiskEvent, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for UnfamiliarLocationRiskEvent collection +func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *UnfamiliarLocationRiskEvent) (resObj *UnfamiliarLocationRiskEvent, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Users returns request builder for User collection +func (b *GraphServiceRequestBuilder) Users() *GraphServiceUsersCollectionRequestBuilder { + bb := &GraphServiceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/users" + return bb +} + +// GraphServiceUsersCollectionRequestBuilder is request builder for User collection +type GraphServiceUsersCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for User collection +func (b *GraphServiceUsersCollectionRequestBuilder) Request() *GraphServiceUsersCollectionRequest { + return &GraphServiceUsersCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for User item +func (b *GraphServiceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceUsersCollectionRequest is request for User collection +type GraphServiceUsersCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for User collection +func (r *GraphServiceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []User + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []User + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for User collection, max N pages +func (r *GraphServiceUsersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for User collection +func (r *GraphServiceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for User collection +func (r *GraphServiceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Workbooks returns request builder for DriveItem collection +func (b *GraphServiceRequestBuilder) Workbooks() *GraphServiceWorkbooksCollectionRequestBuilder { + bb := &GraphServiceWorkbooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/workbooks" + return bb +} + +// GraphServiceWorkbooksCollectionRequestBuilder is request builder for DriveItem collection +type GraphServiceWorkbooksCollectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns request for DriveItem collection +func (b *GraphServiceWorkbooksCollectionRequestBuilder) Request() *GraphServiceWorkbooksCollectionRequest { + return &GraphServiceWorkbooksCollectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ID returns request builder for DriveItem item +func (b *GraphServiceWorkbooksCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder { + bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/" + id + return bb +} + +// GraphServiceWorkbooksCollectionRequest is request for DriveItem collection +type GraphServiceWorkbooksCollectionRequest struct{ BaseRequest } + +// Paging perfoms paging operation for DriveItem collection +func (r *GraphServiceWorkbooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DriveItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DriveItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// GetN performs GET request for DriveItem collection, max N pages +func (r *GraphServiceWorkbooksCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + return r.Paging(ctx, "GET", query, nil, n) +} + +// Get performs GET request for DriveItem collection +func (r *GraphServiceWorkbooksCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) { + return r.GetN(ctx, 0) +} + +// Add performs POST request for DriveItem collection +func (r *GraphServiceWorkbooksCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj) + return +} + +// Security is navigation property +func (b *GraphServiceRequestBuilder) Security() *SecurityRequestBuilder { + bb := &SecurityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/Security" + return bb +} + +// App is navigation property +func (b *GraphServiceRequestBuilder) App() *CommsApplicationRequestBuilder { + bb := &CommsApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/app" + return bb +} + +// AppCatalogs is navigation property +func (b *GraphServiceRequestBuilder) AppCatalogs() *AppCatalogsRequestBuilder { + bb := &AppCatalogsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/appCatalogs" + return bb +} + +// AuditLogs is navigation property +func (b *GraphServiceRequestBuilder) AuditLogs() *AuditLogRootRequestBuilder { + bb := &AuditLogRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/auditLogs" + return bb +} + +// Communications is navigation property +func (b *GraphServiceRequestBuilder) Communications() *CloudCommunicationsRequestBuilder { + bb := &CloudCommunicationsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/communications" + return bb +} + +// ConditionalAccess is navigation property +func (b *GraphServiceRequestBuilder) ConditionalAccess() *ConditionalAccessRootRequestBuilder { + bb := &ConditionalAccessRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/conditionalAccess" + return bb +} + +// DataClassification is navigation property +func (b *GraphServiceRequestBuilder) DataClassification() *DataClassificationServiceRequestBuilder { + bb := &DataClassificationServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/dataClassification" + return bb +} + +// DeviceAppManagement is navigation property +func (b *GraphServiceRequestBuilder) DeviceAppManagement() *DeviceAppManagementRequestBuilder { + bb := &DeviceAppManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceAppManagement" + return bb +} + +// DeviceManagement is navigation property +func (b *GraphServiceRequestBuilder) DeviceManagement() *DeviceManagementRequestBuilder { + bb := &DeviceManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/deviceManagement" + return bb +} + +// Directory is navigation property +func (b *GraphServiceRequestBuilder) Directory() *DirectoryRequestBuilder { + bb := &DirectoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/directory" + return bb +} + +// Drive is navigation property +func (b *GraphServiceRequestBuilder) Drive() *DriveRequestBuilder { + bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/drive" + return bb +} + +// Education is navigation property +func (b *GraphServiceRequestBuilder) Education() *EducationRootRequestBuilder { + bb := &EducationRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/education" + return bb +} + +// EntitlementManagement is navigation property +func (b *GraphServiceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder { + bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/entitlementManagement" + return bb +} + +// External is navigation property +func (b *GraphServiceRequestBuilder) External() *ExternalRequestBuilder { + bb := &ExternalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/external" + return bb +} + +// Financials is navigation property +func (b *GraphServiceRequestBuilder) Financials() *FinancialsRequestBuilder { + bb := &FinancialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/financials" + return bb +} + +// Identity is navigation property +func (b *GraphServiceRequestBuilder) Identity() *IdentityContainerRequestBuilder { + bb := &IdentityContainerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identity" + return bb +} + +// IdentityGovernance is navigation property +func (b *GraphServiceRequestBuilder) IdentityGovernance() *IdentityGovernanceRequestBuilder { + bb := &IdentityGovernanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/identityGovernance" + return bb +} + +// InformationProtection is navigation property +func (b *GraphServiceRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder { + bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/informationProtection" + return bb +} + +// Me is navigation property +func (b *GraphServiceRequestBuilder) Me() *UserRequestBuilder { + bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/me" + return bb +} + +// OfficeConfiguration is navigation property +func (b *GraphServiceRequestBuilder) OfficeConfiguration() *OfficeConfigurationRequestBuilder { + bb := &OfficeConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/officeConfiguration" + return bb +} + +// Planner is navigation property +func (b *GraphServiceRequestBuilder) Planner() *PlannerRequestBuilder { + bb := &PlannerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/planner" + return bb +} + +// Reports is navigation property +func (b *GraphServiceRequestBuilder) Reports() *ReportRootRequestBuilder { + bb := &ReportRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/reports" + return bb +} + +// RoleManagement is navigation property +func (b *GraphServiceRequestBuilder) RoleManagement() *RoleManagementRequestBuilder { + bb := &RoleManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/roleManagement" + return bb +} + +// Search is navigation property +func (b *GraphServiceRequestBuilder) Search() *SearchRequestBuilder { + bb := &SearchRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/search" + return bb +} + +// Teamwork is navigation property +func (b *GraphServiceRequestBuilder) Teamwork() *TeamworkRequestBuilder { + bb := &TeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/teamwork" + return bb +} + +// TrustFramework is navigation property +func (b *GraphServiceRequestBuilder) TrustFramework() *TrustFrameworkRequestBuilder { + bb := &TrustFrameworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.baseURL += "/trustFramework" + return bb +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ACLModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go new file mode 100644 index 00000000..6102195e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// APIApplication undocumented +type APIApplication struct { + // Object is the base model of APIApplication + Object + // AcceptMappedClaims undocumented + AcceptMappedClaims *bool `json:"acceptMappedClaims,omitempty"` + // KnownClientApplications undocumented + KnownClientApplications []UUID `json:"knownClientApplications,omitempty"` + // PreAuthorizedApplications undocumented + PreAuthorizedApplications []PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"` + // RequestedAccessTokenVersion undocumented + RequestedAccessTokenVersion *int `json:"requestedAccessTokenVersion,omitempty"` + // Oauth2PermissionScopes undocumented + Oauth2PermissionScopes []PermissionScope `json:"oauth2PermissionScopes,omitempty"` +} + +// APIServicePrincipal undocumented +type APIServicePrincipal struct { + // Object is the base model of APIServicePrincipal + Object + // ResourceSpecificApplicationPermissions undocumented + ResourceSpecificApplicationPermissions []ResourceSpecificPermission `json:"resourceSpecificApplicationPermissions,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go new file mode 100644 index 00000000..e6b45726 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go @@ -0,0 +1,423 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AccessAction undocumented +type AccessAction struct { + // Object is the base model of AccessAction + Object +} + +// AccessPackage undocumented +type AccessPackage struct { + // Entity is the base model of AccessPackage + Entity + // CatalogID undocumented + CatalogID *string `json:"catalogId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // IsHidden undocumented + IsHidden *bool `json:"isHidden,omitempty"` + // IsRoleScopesVisible undocumented + IsRoleScopesVisible *bool `json:"isRoleScopesVisible,omitempty"` + // CreatedBy undocumented + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedBy undocumented + ModifiedBy *string `json:"modifiedBy,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // AccessPackageCatalog undocumented + AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"` + // AccessPackageResourceRoleScopes undocumented + AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"` + // AccessPackageAssignmentPolicies undocumented + AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"` +} + +// AccessPackageAssignment undocumented +type AccessPackageAssignment struct { + // Entity is the base model of AccessPackageAssignment + Entity + // CatalogID undocumented + CatalogID *string `json:"catalogId,omitempty"` + // AccessPackageID undocumented + AccessPackageID *string `json:"accessPackageId,omitempty"` + // AssignmentPolicyID undocumented + AssignmentPolicyID *string `json:"assignmentPolicyId,omitempty"` + // TargetID undocumented + TargetID *string `json:"targetId,omitempty"` + // AssignmentStatus undocumented + AssignmentStatus *string `json:"assignmentStatus,omitempty"` + // AssignmentState undocumented + AssignmentState *string `json:"assignmentState,omitempty"` + // IsExtended undocumented + IsExtended *bool `json:"isExtended,omitempty"` + // ExpiredDateTime undocumented + ExpiredDateTime *time.Time `json:"expiredDateTime,omitempty"` + // AccessPackage undocumented + AccessPackage *AccessPackage `json:"accessPackage,omitempty"` + // AccessPackageAssignmentPolicy undocumented + AccessPackageAssignmentPolicy *AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicy,omitempty"` + // Target undocumented + Target *AccessPackageSubject `json:"target,omitempty"` + // AccessPackageAssignmentRequests undocumented + AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"` + // AccessPackageAssignmentResourceRoles undocumented + AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"` +} + +// AccessPackageAssignmentPolicy undocumented +type AccessPackageAssignmentPolicy struct { + // Entity is the base model of AccessPackageAssignmentPolicy + Entity + // UserType undocumented + UserType *string `json:"userType,omitempty"` + // AccessPackageID undocumented + AccessPackageID *string `json:"accessPackageId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // CanExtend undocumented + CanExtend *bool `json:"canExtend,omitempty"` + // DurationInDays undocumented + DurationInDays *int `json:"durationInDays,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedBy undocumented + ModifiedBy *string `json:"modifiedBy,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // AccessPackage undocumented + AccessPackage *AccessPackage `json:"accessPackage,omitempty"` + // AccessPackageCatalog undocumented + AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"` +} + +// AccessPackageAssignmentRequestObject undocumented +type AccessPackageAssignmentRequestObject struct { + // Entity is the base model of AccessPackageAssignmentRequestObject + Entity + // RequestType undocumented + RequestType *string `json:"requestType,omitempty"` + // RequestState undocumented + RequestState *string `json:"requestState,omitempty"` + // RequestStatus undocumented + RequestStatus *string `json:"requestStatus,omitempty"` + // IsValidationOnly undocumented + IsValidationOnly *bool `json:"isValidationOnly,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CompletedDate undocumented + CompletedDate *time.Time `json:"completedDate,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // Justification undocumented + Justification *string `json:"justification,omitempty"` + // AccessPackage undocumented + AccessPackage *AccessPackage `json:"accessPackage,omitempty"` + // AccessPackageAssignment undocumented + AccessPackageAssignment *AccessPackageAssignment `json:"accessPackageAssignment,omitempty"` + // Requestor undocumented + Requestor *AccessPackageSubject `json:"requestor,omitempty"` +} + +// AccessPackageAssignmentResourceRole undocumented +type AccessPackageAssignmentResourceRole struct { + // Entity is the base model of AccessPackageAssignmentResourceRole + Entity + // OriginID undocumented + OriginID *string `json:"originId,omitempty"` + // OriginSystem undocumented + OriginSystem *string `json:"originSystem,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // AccessPackageResourceScope undocumented + AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"` + // AccessPackageResourceRole undocumented + AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"` + // AccessPackageSubject undocumented + AccessPackageSubject *AccessPackageSubject `json:"accessPackageSubject,omitempty"` + // AccessPackageAssignments undocumented + AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"` +} + +// AccessPackageCatalog undocumented +type AccessPackageCatalog struct { + // Entity is the base model of AccessPackageCatalog + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // CatalogType undocumented + CatalogType *string `json:"catalogType,omitempty"` + // CatalogStatus undocumented + CatalogStatus *string `json:"catalogStatus,omitempty"` + // IsExternallyVisible undocumented + IsExternallyVisible *bool `json:"isExternallyVisible,omitempty"` + // CreatedBy undocumented + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedBy undocumented + ModifiedBy *string `json:"modifiedBy,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // AccessPackageResources undocumented + AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"` + // AccessPackageResourceRoles undocumented + AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"` + // AccessPackageResourceScopes undocumented + AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"` + // AccessPackages undocumented + AccessPackages []AccessPackage `json:"accessPackages,omitempty"` +} + +// AccessPackageResource undocumented +type AccessPackageResource struct { + // Entity is the base model of AccessPackageResource + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // ResourceType undocumented + ResourceType *string `json:"resourceType,omitempty"` + // OriginID undocumented + OriginID *string `json:"originId,omitempty"` + // OriginSystem undocumented + OriginSystem *string `json:"originSystem,omitempty"` + // IsPendingOnboarding undocumented + IsPendingOnboarding *bool `json:"isPendingOnboarding,omitempty"` + // AddedBy undocumented + AddedBy *string `json:"addedBy,omitempty"` + // AddedOn undocumented + AddedOn *time.Time `json:"addedOn,omitempty"` + // AccessPackageResourceScopes undocumented + AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"` + // AccessPackageResourceRoles undocumented + AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"` +} + +// AccessPackageResourceRequestObject undocumented +type AccessPackageResourceRequestObject struct { + // Entity is the base model of AccessPackageResourceRequestObject + Entity + // CatalogID undocumented + CatalogID *string `json:"catalogId,omitempty"` + // ExecuteImmediately undocumented + ExecuteImmediately *bool `json:"executeImmediately,omitempty"` + // IsValidationOnly undocumented + IsValidationOnly *bool `json:"isValidationOnly,omitempty"` + // RequestType undocumented + RequestType *string `json:"requestType,omitempty"` + // RequestState undocumented + RequestState *string `json:"requestState,omitempty"` + // RequestStatus undocumented + RequestStatus *string `json:"requestStatus,omitempty"` + // Justification undocumented + Justification *string `json:"justification,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // AccessPackageResource undocumented + AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"` + // Requestor undocumented + Requestor *AccessPackageSubject `json:"requestor,omitempty"` +} + +// AccessPackageResourceRole undocumented +type AccessPackageResourceRole struct { + // Entity is the base model of AccessPackageResourceRole + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // OriginID undocumented + OriginID *string `json:"originId,omitempty"` + // OriginSystem undocumented + OriginSystem *string `json:"originSystem,omitempty"` + // AccessPackageResource undocumented + AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"` +} + +// AccessPackageResourceRoleScope undocumented +type AccessPackageResourceRoleScope struct { + // Entity is the base model of AccessPackageResourceRoleScope + Entity + // CreatedBy undocumented + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedBy undocumented + ModifiedBy *string `json:"modifiedBy,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // AccessPackageResourceRole undocumented + AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"` + // AccessPackageResourceScope undocumented + AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"` +} + +// AccessPackageResourceScope undocumented +type AccessPackageResourceScope struct { + // Entity is the base model of AccessPackageResourceScope + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // OriginID undocumented + OriginID *string `json:"originId,omitempty"` + // OriginSystem undocumented + OriginSystem *string `json:"originSystem,omitempty"` + // RoleOriginID undocumented + RoleOriginID *string `json:"roleOriginId,omitempty"` + // IsRootScope undocumented + IsRootScope *bool `json:"isRootScope,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // AccessPackageResource undocumented + AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"` +} + +// AccessPackageSubject undocumented +type AccessPackageSubject struct { + // Entity is the base model of AccessPackageSubject + Entity + // ObjectID undocumented + ObjectID *string `json:"objectId,omitempty"` + // AltSecID undocumented + AltSecID *string `json:"altSecId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // PrincipalName undocumented + PrincipalName *string `json:"principalName,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // OnPremisesSecurityIdentifier undocumented + OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// AccessReview undocumented +type AccessReview struct { + // Entity is the base model of AccessReview + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // CreatedBy undocumented + CreatedBy *UserIdentity `json:"createdBy,omitempty"` + // BusinessFlowTemplateID undocumented + BusinessFlowTemplateID *string `json:"businessFlowTemplateId,omitempty"` + // ReviewerType undocumented + ReviewerType *string `json:"reviewerType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Settings undocumented + Settings *AccessReviewSettings `json:"settings,omitempty"` + // ReviewedEntity undocumented + ReviewedEntity *Identity `json:"reviewedEntity,omitempty"` + // Reviewers undocumented + Reviewers []AccessReviewReviewer `json:"reviewers,omitempty"` + // Decisions undocumented + Decisions []AccessReviewDecision `json:"decisions,omitempty"` + // MyDecisions undocumented + MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"` + // Instances undocumented + Instances []AccessReview `json:"instances,omitempty"` +} + +// AccessReviewDecision undocumented +type AccessReviewDecision struct { + // Entity is the base model of AccessReviewDecision + Entity + // AccessReviewID undocumented + AccessReviewID *string `json:"accessReviewId,omitempty"` + // ReviewedBy undocumented + ReviewedBy *UserIdentity `json:"reviewedBy,omitempty"` + // ReviewedDateTime undocumented + ReviewedDateTime *time.Time `json:"reviewedDateTime,omitempty"` + // ReviewResult undocumented + ReviewResult *string `json:"reviewResult,omitempty"` + // Justification undocumented + Justification *string `json:"justification,omitempty"` + // AppliedBy undocumented + AppliedBy *UserIdentity `json:"appliedBy,omitempty"` + // AppliedDateTime undocumented + AppliedDateTime *time.Time `json:"appliedDateTime,omitempty"` + // ApplyResult undocumented + ApplyResult *string `json:"applyResult,omitempty"` + // AccessRecommendation undocumented + AccessRecommendation *string `json:"accessRecommendation,omitempty"` +} + +// AccessReviewRecurrenceSettings undocumented +type AccessReviewRecurrenceSettings struct { + // Object is the base model of AccessReviewRecurrenceSettings + Object + // RecurrenceType undocumented + RecurrenceType *string `json:"recurrenceType,omitempty"` + // RecurrenceEndType undocumented + RecurrenceEndType *string `json:"recurrenceEndType,omitempty"` + // DurationInDays undocumented + DurationInDays *int `json:"durationInDays,omitempty"` + // RecurrenceCount undocumented + RecurrenceCount *int `json:"recurrenceCount,omitempty"` +} + +// AccessReviewReviewer undocumented +type AccessReviewReviewer struct { + // Entity is the base model of AccessReviewReviewer + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// AccessReviewSettings undocumented +type AccessReviewSettings struct { + // Object is the base model of AccessReviewSettings + Object + // MailNotificationsEnabled undocumented + MailNotificationsEnabled *bool `json:"mailNotificationsEnabled,omitempty"` + // RemindersEnabled undocumented + RemindersEnabled *bool `json:"remindersEnabled,omitempty"` + // JustificationRequiredOnApproval undocumented + JustificationRequiredOnApproval *bool `json:"justificationRequiredOnApproval,omitempty"` + // RecurrenceSettings undocumented + RecurrenceSettings *AccessReviewRecurrenceSettings `json:"recurrenceSettings,omitempty"` + // AutoReviewEnabled undocumented + AutoReviewEnabled *bool `json:"autoReviewEnabled,omitempty"` + // ActivityDurationInDays undocumented + ActivityDurationInDays *int `json:"activityDurationInDays,omitempty"` + // AutoReviewSettings undocumented + AutoReviewSettings *AutoReviewSettings `json:"autoReviewSettings,omitempty"` + // AutoApplyReviewResultsEnabled undocumented + AutoApplyReviewResultsEnabled *bool `json:"autoApplyReviewResultsEnabled,omitempty"` + // AccessRecommendationsEnabled undocumented + AccessRecommendationsEnabled *bool `json:"accessRecommendationsEnabled,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go new file mode 100644 index 00000000..a4fdac03 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Account undocumented +type Account struct { + // Entity is the base model of Account + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Category undocumented + Category *string `json:"category,omitempty"` + // SubCategory undocumented + SubCategory *string `json:"subCategory,omitempty"` + // Blocked undocumented + Blocked *bool `json:"blocked,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// AccountAlias undocumented +type AccountAlias struct { + // Object is the base model of AccountAlias + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // IDType undocumented + IDType *string `json:"idType,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go new file mode 100644 index 00000000..230f4514 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ActivityHistoryItem undocumented +type ActivityHistoryItem struct { + // Entity is the base model of ActivityHistoryItem + Entity + // Status undocumented + Status *Status `json:"status,omitempty"` + // ActiveDurationSeconds undocumented + ActiveDurationSeconds *int `json:"activeDurationSeconds,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastActiveDateTime undocumented + LastActiveDateTime *time.Time `json:"lastActiveDateTime,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // StartedDateTime undocumented + StartedDateTime *time.Time `json:"startedDateTime,omitempty"` + // UserTimezone undocumented + UserTimezone *string `json:"userTimezone,omitempty"` + // Activity undocumented + Activity *UserActivity `json:"activity,omitempty"` +} + +// ActivityStatistics undocumented +type ActivityStatistics struct { + // Entity is the base model of ActivityStatistics + Entity + // Activity undocumented + Activity *AnalyticsActivityType `json:"activity,omitempty"` + // StartDate undocumented + StartDate *Date `json:"startDate,omitempty"` + // EndDate undocumented + EndDate *Date `json:"endDate,omitempty"` + // TimeZoneUsed undocumented + TimeZoneUsed *string `json:"timeZoneUsed,omitempty"` + // Duration undocumented + Duration *Duration `json:"duration,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go new file mode 100644 index 00000000..5143cd0d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go @@ -0,0 +1,101 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AddContentFooterAction undocumented +type AddContentFooterAction struct { + // InformationProtectionAction is the base model of AddContentFooterAction + InformationProtectionAction + // UIElementName undocumented + UIElementName *string `json:"uiElementName,omitempty"` + // Text undocumented + Text *string `json:"text,omitempty"` + // FontName undocumented + FontName *string `json:"fontName,omitempty"` + // FontSize undocumented + FontSize *int `json:"fontSize,omitempty"` + // FontColor undocumented + FontColor *string `json:"fontColor,omitempty"` + // Alignment undocumented + Alignment *ContentAlignment `json:"alignment,omitempty"` + // Margin undocumented + Margin *int `json:"margin,omitempty"` +} + +// AddContentHeaderAction undocumented +type AddContentHeaderAction struct { + // InformationProtectionAction is the base model of AddContentHeaderAction + InformationProtectionAction + // UIElementName undocumented + UIElementName *string `json:"uiElementName,omitempty"` + // Text undocumented + Text *string `json:"text,omitempty"` + // FontName undocumented + FontName *string `json:"fontName,omitempty"` + // FontSize undocumented + FontSize *int `json:"fontSize,omitempty"` + // FontColor undocumented + FontColor *string `json:"fontColor,omitempty"` + // Alignment undocumented + Alignment *ContentAlignment `json:"alignment,omitempty"` + // Margin undocumented + Margin *int `json:"margin,omitempty"` +} + +// AddFooter undocumented +type AddFooter struct { + // MarkContent is the base model of AddFooter + MarkContent + // Margin undocumented + Margin *int `json:"margin,omitempty"` + // Alignment undocumented + Alignment *Alignment `json:"alignment,omitempty"` +} + +// AddHeader undocumented +type AddHeader struct { + // MarkContent is the base model of AddHeader + MarkContent + // Margin undocumented + Margin *int `json:"margin,omitempty"` + // Alignment undocumented + Alignment *Alignment `json:"alignment,omitempty"` +} + +// AddIn undocumented +type AddIn struct { + // Object is the base model of AddIn + Object + // ID undocumented + ID *UUID `json:"id,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Properties undocumented + Properties []KeyValue `json:"properties,omitempty"` +} + +// AddWatermark undocumented +type AddWatermark struct { + // MarkContent is the base model of AddWatermark + MarkContent + // Orientation undocumented + Orientation *PageOrientation `json:"orientation,omitempty"` +} + +// AddWatermarkAction undocumented +type AddWatermarkAction struct { + // InformationProtectionAction is the base model of AddWatermarkAction + InformationProtectionAction + // UIElementName undocumented + UIElementName *string `json:"uiElementName,omitempty"` + // Layout undocumented + Layout *WatermarkLayout `json:"layout,omitempty"` + // Text undocumented + Text *string `json:"text,omitempty"` + // FontName undocumented + FontName *string `json:"fontName,omitempty"` + // FontSize undocumented + FontSize *int `json:"fontSize,omitempty"` + // FontColor undocumented + FontColor *string `json:"fontColor,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go new file mode 100644 index 00000000..23e14596 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AdvancedThreatProtectionOnboardingDeviceSettingState ATP onboarding State for a given device. +type AdvancedThreatProtectionOnboardingDeviceSettingState struct { + // Entity is the base model of AdvancedThreatProtectionOnboardingDeviceSettingState + Entity + // PlatformType Device platform type + PlatformType *DeviceType `json:"platformType,omitempty"` + // Setting The setting class name and property name. + Setting *string `json:"setting,omitempty"` + // SettingName The Setting Name that is being reported + SettingName *string `json:"settingName,omitempty"` + // DeviceID The Device Id that is being reported + DeviceID *string `json:"deviceId,omitempty"` + // DeviceName The Device Name that is being reported + DeviceName *string `json:"deviceName,omitempty"` + // UserID The user Id that is being reported + UserID *string `json:"userId,omitempty"` + // UserEmail The User email address that is being reported + UserEmail *string `json:"userEmail,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // UserPrincipalName The User PrincipalName that is being reported + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // State The compliance state of the setting + State *ComplianceStatus `json:"state,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` +} + +// AdvancedThreatProtectionOnboardingStateSummary Windows defender advanced threat protection onboarding state summary across the account. +type AdvancedThreatProtectionOnboardingStateSummary struct { + // Entity is the base model of AdvancedThreatProtectionOnboardingStateSummary + Entity + // UnknownDeviceCount Number of unknown devices + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // NotApplicableDeviceCount Number of not applicable devices + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // CompliantDeviceCount Number of compliant devices + CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"` + // RemediatedDeviceCount Number of remediated devices + RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"` + // NonCompliantDeviceCount Number of NonCompliant devices + NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"` + // ErrorDeviceCount Number of error devices + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // ConflictDeviceCount Number of conflict devices + ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"` + // NotAssignedDeviceCount Number of not assigned devices + NotAssignedDeviceCount *int `json:"notAssignedDeviceCount,omitempty"` + // AdvancedThreatProtectionOnboardingDeviceSettingStates undocumented + AdvancedThreatProtectionOnboardingDeviceSettingStates []AdvancedThreatProtectionOnboardingDeviceSettingState `json:"advancedThreatProtectionOnboardingDeviceSettingStates,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go new file mode 100644 index 00000000..29575d77 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AgedAccountsPayable undocumented +type AgedAccountsPayable struct { + // Entity is the base model of AgedAccountsPayable + Entity + // VendorNumber undocumented + VendorNumber *string `json:"vendorNumber,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // BalanceDue undocumented + BalanceDue *int `json:"balanceDue,omitempty"` + // CurrentAmount undocumented + CurrentAmount *int `json:"currentAmount,omitempty"` + // Period1Amount undocumented + Period1Amount *int `json:"period1Amount,omitempty"` + // Period2Amount undocumented + Period2Amount *int `json:"period2Amount,omitempty"` + // Period3Amount undocumented + Period3Amount *int `json:"period3Amount,omitempty"` + // AgedAsOfDate undocumented + AgedAsOfDate *Date `json:"agedAsOfDate,omitempty"` + // PeriodLengthFilter undocumented + PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"` +} + +// AgedAccountsReceivable undocumented +type AgedAccountsReceivable struct { + // Entity is the base model of AgedAccountsReceivable + Entity + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // BalanceDue undocumented + BalanceDue *int `json:"balanceDue,omitempty"` + // CurrentAmount undocumented + CurrentAmount *int `json:"currentAmount,omitempty"` + // Period1Amount undocumented + Period1Amount *int `json:"period1Amount,omitempty"` + // Period2Amount undocumented + Period2Amount *int `json:"period2Amount,omitempty"` + // Period3Amount undocumented + Period3Amount *int `json:"period3Amount,omitempty"` + // AgedAsOfDate undocumented + AgedAsOfDate *Date `json:"agedAsOfDate,omitempty"` + // PeriodLengthFilter undocumented + PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go new file mode 100644 index 00000000..19b094ab --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go @@ -0,0 +1,61 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Agreement undocumented +type Agreement struct { + // Entity is the base model of Agreement + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsViewingBeforeAcceptanceRequired undocumented + IsViewingBeforeAcceptanceRequired *bool `json:"isViewingBeforeAcceptanceRequired,omitempty"` + // Files undocumented + Files []AgreementFile `json:"files,omitempty"` +} + +// AgreementAcceptance undocumented +type AgreementAcceptance struct { + // Entity is the base model of AgreementAcceptance + Entity + // AgreementID undocumented + AgreementID *string `json:"agreementId,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // AgreementFileID undocumented + AgreementFileID *string `json:"agreementFileId,omitempty"` + // RecordedDateTime undocumented + RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserEmail undocumented + UserEmail *string `json:"userEmail,omitempty"` + // State undocumented + State *AgreementAcceptanceState `json:"state,omitempty"` +} + +// AgreementFile undocumented +type AgreementFile struct { + // Entity is the base model of AgreementFile + Entity + // Language undocumented + Language *string `json:"language,omitempty"` + // FileName undocumented + FileName *string `json:"fileName,omitempty"` + // FileData undocumented + FileData *AgreementFileData `json:"fileData,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` +} + +// AgreementFileData undocumented +type AgreementFileData struct { + // Object is the base model of AgreementFileData + Object + // Data undocumented + Data *Binary `json:"data,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AirPrintDestinationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AirPrintDestinationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlbumModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AlbumModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go new file mode 100644 index 00000000..c7ceb9d2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go @@ -0,0 +1,107 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Alert undocumented +type Alert struct { + // Entity is the base model of Alert + Entity + // ActivityGroupName undocumented + ActivityGroupName *string `json:"activityGroupName,omitempty"` + // AssignedTo undocumented + AssignedTo *string `json:"assignedTo,omitempty"` + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // Category undocumented + Category *string `json:"category,omitempty"` + // ClosedDateTime undocumented + ClosedDateTime *time.Time `json:"closedDateTime,omitempty"` + // CloudAppStates undocumented + CloudAppStates []CloudAppSecurityState `json:"cloudAppStates,omitempty"` + // Comments undocumented + Comments []string `json:"comments,omitempty"` + // Confidence undocumented + Confidence *int `json:"confidence,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DetectionIDs undocumented + DetectionIDs []string `json:"detectionIds,omitempty"` + // EventDateTime undocumented + EventDateTime *time.Time `json:"eventDateTime,omitempty"` + // Feedback undocumented + Feedback *AlertFeedback `json:"feedback,omitempty"` + // FileStates undocumented + FileStates []FileSecurityState `json:"fileStates,omitempty"` + // HistoryStates undocumented + HistoryStates []AlertHistoryState `json:"historyStates,omitempty"` + // HostStates undocumented + HostStates []HostSecurityState `json:"hostStates,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // MalwareStates undocumented + MalwareStates []MalwareState `json:"malwareStates,omitempty"` + // NetworkConnections undocumented + NetworkConnections []NetworkConnection `json:"networkConnections,omitempty"` + // Processes undocumented + Processes []Process `json:"processes,omitempty"` + // RecommendedActions undocumented + RecommendedActions []string `json:"recommendedActions,omitempty"` + // RegistryKeyStates undocumented + RegistryKeyStates []RegistryKeyState `json:"registryKeyStates,omitempty"` + // Severity undocumented + Severity *AlertSeverity `json:"severity,omitempty"` + // SourceMaterials undocumented + SourceMaterials []string `json:"sourceMaterials,omitempty"` + // Status undocumented + Status *AlertStatus `json:"status,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // Triggers undocumented + Triggers []AlertTrigger `json:"triggers,omitempty"` + // UserStates undocumented + UserStates []UserSecurityState `json:"userStates,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` + // VulnerabilityStates undocumented + VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"` +} + +// AlertHistoryState undocumented +type AlertHistoryState struct { + // Object is the base model of AlertHistoryState + Object + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // AssignedTo undocumented + AssignedTo *string `json:"assignedTo,omitempty"` + // Comments undocumented + Comments []string `json:"comments,omitempty"` + // Feedback undocumented + Feedback *AlertFeedback `json:"feedback,omitempty"` + // Status undocumented + Status *AlertStatus `json:"status,omitempty"` + // UpdatedDateTime undocumented + UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"` + // User undocumented + User *string `json:"user,omitempty"` +} + +// AlertTrigger undocumented +type AlertTrigger struct { + // Object is the base model of AlertTrigger + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go new file mode 100644 index 00000000..0252a663 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go @@ -0,0 +1,15 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AllDevicesAssignmentTarget undocumented +type AllDevicesAssignmentTarget struct { + // DeviceAndAppManagementAssignmentTarget is the base model of AllDevicesAssignmentTarget + DeviceAndAppManagementAssignmentTarget +} + +// AllLicensedUsersAssignmentTarget undocumented +type AllLicensedUsersAssignmentTarget struct { + // DeviceAndAppManagementAssignmentTarget is the base model of AllLicensedUsersAssignmentTarget + DeviceAndAppManagementAssignmentTarget +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go new file mode 100644 index 00000000..aa654424 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go @@ -0,0 +1,23 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AllowedDataLocation undocumented +type AllowedDataLocation struct { + // Entity is the base model of AllowedDataLocation + Entity + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // Location undocumented + Location *string `json:"location,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // Domain undocumented + Domain *string `json:"domain,omitempty"` +} + +// AllowedDataLocationInfo undocumented +type AllowedDataLocationInfo struct { + // Object is the base model of AllowedDataLocationInfo + Object +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AlternativeSecurityIDModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go new file mode 100644 index 00000000..65a5086b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go @@ -0,0 +1,1741 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AndroidCertificateProfileBase Android certificate profile base. +type AndroidCertificateProfileBase struct { + // DeviceConfiguration is the base model of AndroidCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // RootCertificate undocumented + RootCertificate *AndroidTrustedRootCertificate `json:"rootCertificate,omitempty"` +} + +// AndroidCompliancePolicy This class contains compliance settings for Android. +type AndroidCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of AndroidCompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordMinimumLength Minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordRequiredType Type of characters in password + PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources. + SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"` + // SecurityDisableUsbDebugging Disable USB debugging on Android devices. + SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted. + SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"` + // OsMinimumVersion Minimum Android version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Android version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // MinAndroidSecurityPatchLevel Minimum Android security patch level. + MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"` + // StorageRequireEncryption Require encryption on Android devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check. + SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"` + // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check. + SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"` + // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device. + SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"` + // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date. + SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"` + // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check. + SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"` + // ConditionStatementID Condition statement id. + ConditionStatementID *string `json:"conditionStatementId,omitempty"` + // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements. + RestrictedApps []AppListItem `json:"restrictedApps,omitempty"` +} + +// AndroidCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidCustomConfiguration resource. +type AndroidCustomConfiguration struct { + // DeviceConfiguration is the base model of AndroidCustomConfiguration + DeviceConfiguration + // OMASettings OMA settings. This collection can contain a maximum of 1000 elements. + OMASettings []OMASetting `json:"omaSettings,omitempty"` +} + +// AndroidDeviceComplianceLocalActionBase Local Action Configuration +type AndroidDeviceComplianceLocalActionBase struct { + // Entity is the base model of AndroidDeviceComplianceLocalActionBase + Entity + // GracePeriodInMinutes Number of minutes to wait till a local action is enforced. Valid values 0 to 2147483647 + GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"` +} + +// AndroidDeviceComplianceLocalActionLockDevice Local Action Lock Device Only Configuration +type AndroidDeviceComplianceLocalActionLockDevice struct { + // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDevice + AndroidDeviceComplianceLocalActionBase +} + +// AndroidDeviceComplianceLocalActionLockDeviceWithPasscode Local Action Lock Device with Passcode Configuration +type AndroidDeviceComplianceLocalActionLockDeviceWithPasscode struct { + // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDeviceWithPasscode + AndroidDeviceComplianceLocalActionBase + // Passcode Passcode to reset to Android device. This property is read-only. + Passcode *string `json:"passcode,omitempty"` + // PasscodeSignInFailureCountBeforeWipe Number of sign in failures before wiping device, the value can be 4-11. Valid values 4 to 11 + PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"` +} + +// AndroidDeviceOwnerCertificateProfileBase Android Device Owner certificate profile base. +type AndroidDeviceOwnerCertificateProfileBase struct { + // DeviceConfiguration is the base model of AndroidDeviceOwnerCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // RootCertificate undocumented + RootCertificate *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificate,omitempty"` +} + +// AndroidDeviceOwnerCompliancePolicy This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerCompliancePolicy resource. +type AndroidDeviceOwnerCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of AndroidDeviceOwnerCompliancePolicy + DeviceCompliancePolicy + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check. + SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"` + // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check. + SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"` + // OsMinimumVersion Minimum Android version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Android version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // MinAndroidSecurityPatchLevel Minimum Android security patch level. + MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"` + // PasswordRequired Require a password to unlock device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordMinimumLength Minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16 + PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"` + // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16 + PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"` + // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16 + PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"` + // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16 + PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"` + // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16 + PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"` + // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper case letter characters required for device password. Valid values 1 to 16 + PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"` + // PasswordRequiredType Type of characters in password + PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordPreviousPasswordCountToBlock Number of previous passwords to block. Valid values 1 to 24 + PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"` + // StorageRequireEncryption Require encryption on Android devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` +} + +// AndroidDeviceOwnerEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management. +type AndroidDeviceOwnerEnrollmentProfile struct { + // Entity is the base model of AndroidDeviceOwnerEnrollmentProfile + Entity + // AccountID Tenant GUID the enrollment profile belongs to. + AccountID *string `json:"accountId,omitempty"` + // DisplayName Display name for the enrollment profile. + DisplayName *string `json:"displayName,omitempty"` + // Description Description for the enrollment profile. + Description *string `json:"description,omitempty"` + // CreatedDateTime Date time the enrollment profile was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Date time the enrollment profile was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // TokenValue Value of the most recently created token for this enrollment profile. + TokenValue *string `json:"tokenValue,omitempty"` + // TokenCreationDateTime Date time the most recently created token was created. + TokenCreationDateTime *time.Time `json:"tokenCreationDateTime,omitempty"` + // TokenExpirationDateTime Date time the most recently created token will expire. + TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"` + // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile. + EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"` + // QrCodeContent String used to generate a QR code for the token. + QrCodeContent *string `json:"qrCodeContent,omitempty"` + // QrCodeImage String used to generate a QR code for the token. + QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// AndroidDeviceOwnerEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Device Owner device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type AndroidDeviceOwnerEnterpriseWiFiConfiguration struct { + // AndroidDeviceOwnerWiFiConfiguration is the base model of AndroidDeviceOwnerEnterpriseWiFiConfiguration + AndroidDeviceOwnerWiFiConfiguration + // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *AndroidEapType `json:"eapType,omitempty"` + // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// AndroidDeviceOwnerGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidDeviceOwnerGeneralDeviceConfiguration resource. +type AndroidDeviceOwnerGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of AndroidDeviceOwnerGeneralDeviceConfiguration + DeviceConfiguration + // AccountsBlockModification Indicates whether or not adding or removing accounts is disabled. + AccountsBlockModification *bool `json:"accountsBlockModification,omitempty"` + // AppsAllowInstallFromUnknownSources Indicates whether or not the user is allowed to enable to unknown sources setting. + AppsAllowInstallFromUnknownSources *bool `json:"appsAllowInstallFromUnknownSources,omitempty"` + // AppsAutoUpdatePolicy Indicates the value of the app auto update policy. + AppsAutoUpdatePolicy *AndroidDeviceOwnerAppAutoUpdatePolicyType `json:"appsAutoUpdatePolicy,omitempty"` + // AppsDefaultPermissionPolicy Indicates the permission policy for requests for runtime permissions if one is not defined for the app specifically. + AppsDefaultPermissionPolicy *AndroidDeviceOwnerDefaultAppPermissionPolicyType `json:"appsDefaultPermissionPolicy,omitempty"` + // AppsRecommendSkippingFirstUseHints Whether or not to recommend all apps skip any first-time-use hints they may have added. + AppsRecommendSkippingFirstUseHints *bool `json:"appsRecommendSkippingFirstUseHints,omitempty"` + // BluetoothBlockConfiguration Indicates whether or not to block a user from configuring bluetooth. + BluetoothBlockConfiguration *bool `json:"bluetoothBlockConfiguration,omitempty"` + // BluetoothBlockContactSharing Indicates whether or not to block a user from sharing contacts via bluetooth. + BluetoothBlockContactSharing *bool `json:"bluetoothBlockContactSharing,omitempty"` + // CameraBlocked Indicates whether or not to disable the use of the camera. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // CellularBlockWiFiTethering Indicates whether or not to block Wi-Fi tethering. + CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"` + // DataRoamingBlocked Indicates whether or not to block a user from data roaming. + DataRoamingBlocked *bool `json:"dataRoamingBlocked,omitempty"` + // DateTimeConfigurationBlocked Indicates whether or not to block the user from manually changing the date or time on the device + DateTimeConfigurationBlocked *bool `json:"dateTimeConfigurationBlocked,omitempty"` + // FactoryResetDeviceAdministratorEmails List of Google account emails that will be required to authenticate after a device is factory reset before it can be set up. + FactoryResetDeviceAdministratorEmails []string `json:"factoryResetDeviceAdministratorEmails,omitempty"` + // FactoryResetBlocked Indicates whether or not the factory reset option in settings is disabled. + FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"` + // GlobalProxy Proxy is set up directly with host, port and excluded hosts. + GlobalProxy *AndroidDeviceOwnerGlobalProxy `json:"globalProxy,omitempty"` + // GoogleAccountsBlocked Indicates whether or not google accounts will be blocked. + GoogleAccountsBlocked *bool `json:"googleAccountsBlocked,omitempty"` + // KioskModeScreenSaverConfigurationEnabled Whether or not to enable screen saver mode or not in Kiosk Mode. + KioskModeScreenSaverConfigurationEnabled *bool `json:"kioskModeScreenSaverConfigurationEnabled,omitempty"` + // KioskModeScreenSaverImageURL URL for an image that will be the device's screen saver in Kiosk Mode. + KioskModeScreenSaverImageURL *string `json:"kioskModeScreenSaverImageUrl,omitempty"` + // KioskModeScreenSaverDisplayTimeInSeconds The number of seconds that the device will display the screen saver for in Kiosk Mode. Valid values 0 to 9999999 + KioskModeScreenSaverDisplayTimeInSeconds *int `json:"kioskModeScreenSaverDisplayTimeInSeconds,omitempty"` + // KioskModeScreenSaverStartDelayInSeconds The number of seconds the device needs to be inactive for before the screen saver is shown in Kiosk Mode. Valid values 1 to 9999999 + KioskModeScreenSaverStartDelayInSeconds *int `json:"kioskModeScreenSaverStartDelayInSeconds,omitempty"` + // KioskModeScreenSaverDetectMediaDisabled Whether or not the device screen should show the screen saver if audio/video is playing in Kiosk Mode. + KioskModeScreenSaverDetectMediaDisabled *bool `json:"kioskModeScreenSaverDetectMediaDisabled,omitempty"` + // KioskModeApps A list of managed apps that will be shown when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements. + KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"` + // KioskModeWallpaperURL URL to a publicly accessible image to use for the wallpaper when the device is in Kiosk Mode. + KioskModeWallpaperURL *string `json:"kioskModeWallpaperUrl,omitempty"` + // KioskModeExitCode Exit code to allow a user to escape from Kiosk Mode when the device is in Kiosk Mode. + KioskModeExitCode *string `json:"kioskModeExitCode,omitempty"` + // KioskModeVirtualHomeButtonEnabled Whether or not to display a virtual home button when the device is in Kiosk Mode. + KioskModeVirtualHomeButtonEnabled *bool `json:"kioskModeVirtualHomeButtonEnabled,omitempty"` + // KioskModeVirtualHomeButtonType Indicates whether the virtual home button is a swipe up home button or a floating home button. + KioskModeVirtualHomeButtonType *AndroidDeviceOwnerVirtualHomeButtonType `json:"kioskModeVirtualHomeButtonType,omitempty"` + // KioskModeBluetoothConfigurationEnabled Whether or not to allow a user to configure Bluetooth settings in Kiosk Mode. + KioskModeBluetoothConfigurationEnabled *bool `json:"kioskModeBluetoothConfigurationEnabled,omitempty"` + // KioskModeWiFiConfigurationEnabled Whether or not to allow a user to configure Wi-Fi settings in Kiosk Mode. + KioskModeWiFiConfigurationEnabled *bool `json:"kioskModeWiFiConfigurationEnabled,omitempty"` + // KioskModeFlashlightConfigurationEnabled Whether or not to allow a user to use the flashlight in Kiosk Mode. + KioskModeFlashlightConfigurationEnabled *bool `json:"kioskModeFlashlightConfigurationEnabled,omitempty"` + // KioskModeMediaVolumeConfigurationEnabled Whether or not to allow a user to change the media volume in Kiosk Mode. + KioskModeMediaVolumeConfigurationEnabled *bool `json:"kioskModeMediaVolumeConfigurationEnabled,omitempty"` + // MicrophoneForceMute Indicates whether or not to block unmuting the microphone on the device. + MicrophoneForceMute *bool `json:"microphoneForceMute,omitempty"` + // NetworkEscapeHatchAllowed Indicates whether or not the device will allow connecting to a temporary network connection at boot time. + NetworkEscapeHatchAllowed *bool `json:"networkEscapeHatchAllowed,omitempty"` + // NfcBlockOutgoingBeam Indicates whether or not to block NFC outgoing beam. + NfcBlockOutgoingBeam *bool `json:"nfcBlockOutgoingBeam,omitempty"` + // PasswordBlockKeyguard Indicates whether or not the keyguard is disabled. + PasswordBlockKeyguard *bool `json:"passwordBlockKeyguard,omitempty"` + // PasswordBlockKeyguardFeatures List of device keyguard features to block. This collection can contain a maximum of 7 elements. + PasswordBlockKeyguardFeatures []AndroidKeyguardFeature `json:"passwordBlockKeyguardFeatures,omitempty"` + // PasswordExpirationDays Indicates the amount of time in seconds that a password can be set for before it expires and a new password will be required. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Indicates the minimum length of the password required on the device. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16 + PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"` + // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16 + PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"` + // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16 + PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"` + // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16 + PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"` + // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16 + PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"` + // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper caseletter characters required for device password. Valid values 1 to 16 + PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Milliseconds of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordPreviousPasswordCountToBlock Indicates the length of password history, where the user will not be able to enter a new password that is the same as any password in the history. Valid values 0 to 24 + PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"` + // PasswordRequiredType Indicates the minimum password quality required on the device. + PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Indicates the number of times a user can enter an incorrect password before the device is wiped. Valid values 4 to 11 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PlayStoreMode Indicates the Play Store mode of the device. + PlayStoreMode *AndroidDeviceOwnerPlayStoreMode `json:"playStoreMode,omitempty"` + // SafeBootBlocked Indicates whether or not rebooting the device into safe boot is disabled. + SafeBootBlocked *bool `json:"safeBootBlocked,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to disable the capability to take screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // SecurityAllowDebuggingFeatures Indicates whether or not to block the user from enabling debugging features on the device. + SecurityAllowDebuggingFeatures *bool `json:"securityAllowDebuggingFeatures,omitempty"` + // SecurityRequireVerifyApps Indicates whether or not verify apps is required. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // StatusBarBlocked Indicates whether or the status bar is disabled, including notifications, quick settings and other screen overlays. + StatusBarBlocked *bool `json:"statusBarBlocked,omitempty"` + // StayOnModes List of modes in which the device's display will stay powered-on. This collection can contain a maximum of 4 elements. + StayOnModes []AndroidDeviceOwnerBatteryPluggedMode `json:"stayOnModes,omitempty"` + // StorageAllowUsb Indicates whether or not to allow USB mass storage. + StorageAllowUsb *bool `json:"storageAllowUsb,omitempty"` + // StorageBlockExternalMedia Indicates whether or not to block external media. + StorageBlockExternalMedia *bool `json:"storageBlockExternalMedia,omitempty"` + // StorageBlockUsbFileTransfer Indicates whether or not to block USB file transfer. + StorageBlockUsbFileTransfer *bool `json:"storageBlockUsbFileTransfer,omitempty"` + // SystemUpdateWindowStartMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window starts. Valid values 0 to 1440 + SystemUpdateWindowStartMinutesAfterMidnight *int `json:"systemUpdateWindowStartMinutesAfterMidnight,omitempty"` + // SystemUpdateWindowEndMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window ends. Valid values 0 to 1440 + SystemUpdateWindowEndMinutesAfterMidnight *int `json:"systemUpdateWindowEndMinutesAfterMidnight,omitempty"` + // SystemUpdateInstallType The type of system update configuration. + SystemUpdateInstallType *AndroidDeviceOwnerSystemUpdateInstallType `json:"systemUpdateInstallType,omitempty"` + // SystemWindowsBlocked Whether or not to block Android system prompt windows, like toasts, phone activities, and system alerts. + SystemWindowsBlocked *bool `json:"systemWindowsBlocked,omitempty"` + // UsersBlockAdd Indicates whether or not adding users and profiles is disabled. + UsersBlockAdd *bool `json:"usersBlockAdd,omitempty"` + // UsersBlockRemove Indicates whether or not to disable removing other users from the device. + UsersBlockRemove *bool `json:"usersBlockRemove,omitempty"` + // VolumeBlockAdjustment Indicates whether or not adjusting the master volume is disabled. + VolumeBlockAdjustment *bool `json:"volumeBlockAdjustment,omitempty"` + // VPNAlwaysOnPackageIdentifier Android app package name for app that will handle an always-on VPN connection. + VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"` + // VPNAlwaysOnLockdownMode If an always on VPN package name is specified, whether or not to lock network traffic when that VPN is disconnected. + VPNAlwaysOnLockdownMode *bool `json:"vpnAlwaysOnLockdownMode,omitempty"` + // WiFiBlockEditConfigurations Indicates whether or not to block the user from editing the wifi connection settings. + WiFiBlockEditConfigurations *bool `json:"wifiBlockEditConfigurations,omitempty"` + // WiFiBlockEditPolicyDefinedConfigurations Indicates whether or not to block the user from editing just the networks defined by the policy. + WiFiBlockEditPolicyDefinedConfigurations *bool `json:"wifiBlockEditPolicyDefinedConfigurations,omitempty"` +} + +// AndroidDeviceOwnerGlobalProxy undocumented +type AndroidDeviceOwnerGlobalProxy struct { + // Object is the base model of AndroidDeviceOwnerGlobalProxy + Object +} + +// AndroidDeviceOwnerGlobalProxyAutoConfig undocumented +type AndroidDeviceOwnerGlobalProxyAutoConfig struct { + // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyAutoConfig + AndroidDeviceOwnerGlobalProxy + // ProxyAutoConfigURL The proxy auto-config URL + ProxyAutoConfigURL *string `json:"proxyAutoConfigURL,omitempty"` +} + +// AndroidDeviceOwnerGlobalProxyDirect undocumented +type AndroidDeviceOwnerGlobalProxyDirect struct { + // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyDirect + AndroidDeviceOwnerGlobalProxy + // Host The host name + Host *string `json:"host,omitempty"` + // Port The port + Port *int `json:"port,omitempty"` + // ExcludedHosts The excluded hosts + ExcludedHosts []string `json:"excludedHosts,omitempty"` +} + +// AndroidDeviceOwnerScepCertificateProfile Android Device Owner SCEP certificate profile +type AndroidDeviceOwnerScepCertificateProfile struct { + // AndroidDeviceOwnerCertificateProfileBase is the base model of AndroidDeviceOwnerScepCertificateProfile + AndroidDeviceOwnerCertificateProfileBase + // ScepServerUrls SCEP Server Url(s) + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidDeviceOwnerTrustedRootCertificate Android Device Owner Trusted Root Certificate configuration profile +type AndroidDeviceOwnerTrustedRootCertificate struct { + // DeviceConfiguration is the base model of AndroidDeviceOwnerTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// AndroidDeviceOwnerVPNConfiguration By providing the configurations in this profile you can instruct the Android Fully Managed device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type AndroidDeviceOwnerVPNConfiguration struct { + // VPNConfiguration is the base model of AndroidDeviceOwnerVPNConfiguration + VPNConfiguration + // ConnectionType Connection type. + ConnectionType *AndroidVPNConnectionType `json:"connectionType,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidDeviceOwnerWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. +type AndroidDeviceOwnerWiFiConfiguration struct { + // DeviceConfiguration is the base model of AndroidDeviceOwnerWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *AndroidDeviceOwnerWiFiSecurityType `json:"wiFiSecurityType,omitempty"` + // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network. + PreSharedKey *string `json:"preSharedKey,omitempty"` + // PreSharedKeyIsSet This is the pre-shared key for WPA Personal Wi-Fi network. + PreSharedKeyIsSet *bool `json:"preSharedKeyIsSet,omitempty"` +} + +// AndroidEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on KNOX devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type AndroidEasEmailProfileConfiguration struct { + // DeviceConfiguration is the base model of AndroidEasEmailProfileConfiguration + DeviceConfiguration + // AccountName Exchange ActiveSync account name, displayed to users as name of EAS (this) profile. + AccountName *string `json:"accountName,omitempty"` + // AuthenticationMethod Authentication method for Exchange ActiveSync. + AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"` + // SyncCalendar Toggles syncing the calendar. If set to false calendar is turned off on the device. + SyncCalendar *bool `json:"syncCalendar,omitempty"` + // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device. + SyncContacts *bool `json:"syncContacts,omitempty"` + // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device. + SyncTasks *bool `json:"syncTasks,omitempty"` + // SyncNotes Toggles syncing notes. If set to false notes are turned off on the device. + SyncNotes *bool `json:"syncNotes,omitempty"` + // DurationOfEmailToSync Duration of time email should be synced to. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // EmailSyncSchedule Email sync schedule. + EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"` + // HostName Exchange location (URL) that the native mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSmime Indicates whether or not to use S/MIME certificate. + RequireSmime *bool `json:"requireSmime,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` + // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device. + UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"` + // UserDomainNameSource UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. + UserDomainNameSource *DomainNameSource `json:"userDomainNameSource,omitempty"` + // CustomDomainName Custom domain name value used while generating an email profile before installing on the device. + CustomDomainName *string `json:"customDomainName,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"` + // SmimeSigningCertificate undocumented + SmimeSigningCertificate *AndroidCertificateProfileBase `json:"smimeSigningCertificate,omitempty"` +} + +// AndroidEnrollmentCompanyCode undocumented +type AndroidEnrollmentCompanyCode struct { + // Object is the base model of AndroidEnrollmentCompanyCode + Object + // EnrollmentToken Enrollment Token used by the User to enroll their device. + EnrollmentToken *string `json:"enrollmentToken,omitempty"` + // QrCodeContent String used to generate a QR code for the token. + QrCodeContent *string `json:"qrCodeContent,omitempty"` + // QrCodeImage Generated QR code for the token. + QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"` +} + +// AndroidEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type AndroidEnterpriseWiFiConfiguration struct { + // AndroidWiFiConfiguration is the base model of AndroidEnterpriseWiFiConfiguration + AndroidWiFiConfiguration + // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *AndroidEapType `json:"eapType,omitempty"` + // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // UsernameFormatString Username format string used to build the username to connect to wifi + UsernameFormatString *string `json:"usernameFormatString,omitempty"` + // PasswordFormatString Password format string used to build the password to connect to wifi + PasswordFormatString *string `json:"passwordFormatString,omitempty"` + // PreSharedKey PreSharedKey used to build the password to connect to wifi + PreSharedKey *string `json:"preSharedKey,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *AndroidTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *AndroidCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// AndroidForWorkApp Contains properties and inherited properties for Android for Work (AFW) Apps. +type AndroidForWorkApp struct { + // MobileApp is the base model of AndroidForWorkApp + MobileApp + // PackageID The package identifier. + PackageID *string `json:"packageId,omitempty"` + // AppIdentifier The Identity Name. + AppIdentifier *string `json:"appIdentifier,omitempty"` + // UsedLicenseCount The number of VPP licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // TotalLicenseCount The total number of VPP licenses. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // AppStoreURL The Play for Work Store app URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` +} + +// AndroidForWorkAppConfigurationSchema Schema describing an Android for Work application's custom configurations. +type AndroidForWorkAppConfigurationSchema struct { + // Entity is the base model of AndroidForWorkAppConfigurationSchema + Entity + // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app + ExampleJSON *Binary `json:"exampleJson,omitempty"` + // SchemaItems Collection of items each representing a named configuration option in the schema + SchemaItems []AndroidForWorkAppConfigurationSchemaItem `json:"schemaItems,omitempty"` +} + +// AndroidForWorkAppConfigurationSchemaItem undocumented +type AndroidForWorkAppConfigurationSchemaItem struct { + // Object is the base model of AndroidForWorkAppConfigurationSchemaItem + Object + // SchemaItemKey Unique key the application uses to identify the item + SchemaItemKey *string `json:"schemaItemKey,omitempty"` + // DisplayName Human readable name + DisplayName *string `json:"displayName,omitempty"` + // Description Description of what the item controls within the application + Description *string `json:"description,omitempty"` + // DefaultBoolValue Default value for boolean type items, if specified by the app developer + DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"` + // DefaultIntValue Default value for integer type items, if specified by the app developer + DefaultIntValue *int `json:"defaultIntValue,omitempty"` + // DefaultStringValue Default value for string type items, if specified by the app developer + DefaultStringValue *string `json:"defaultStringValue,omitempty"` + // DefaultStringArrayValue Default value for string array type items, if specified by the app developer + DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"` + // DataType The type of value this item describes + DataType *AndroidForWorkAppConfigurationSchemaItemDataType `json:"dataType,omitempty"` + // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only) + Selections []KeyValuePair `json:"selections,omitempty"` +} + +// AndroidForWorkCertificateProfileBase Android For Work certificate profile base. +type AndroidForWorkCertificateProfileBase struct { + // DeviceConfiguration is the base model of AndroidForWorkCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // RootCertificate undocumented + RootCertificate *AndroidForWorkTrustedRootCertificate `json:"rootCertificate,omitempty"` +} + +// AndroidForWorkCompliancePolicy This class contains compliance settings for Android for Work. +type AndroidForWorkCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of AndroidForWorkCompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordMinimumLength Minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordRequiredType Type of characters in password + PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources. + SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"` + // SecurityDisableUsbDebugging Disable USB debugging on Android devices. + SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted. + SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"` + // OsMinimumVersion Minimum Android version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Android version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // MinAndroidSecurityPatchLevel Minimum Android security patch level. + MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"` + // StorageRequireEncryption Require encryption on Android devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check. + SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"` + // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check. + SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"` + // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device. + SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"` + // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date. + SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"` + // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check. + SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"` +} + +// AndroidForWorkCustomConfiguration Android For Work custom configuration +type AndroidForWorkCustomConfiguration struct { + // DeviceConfiguration is the base model of AndroidForWorkCustomConfiguration + DeviceConfiguration + // OMASettings OMA settings. This collection can contain a maximum of 500 elements. + OMASettings []OMASetting `json:"omaSettings,omitempty"` +} + +// AndroidForWorkEasEmailProfileBase Base for Android For Work EAS Email profiles +type AndroidForWorkEasEmailProfileBase struct { + // DeviceConfiguration is the base model of AndroidForWorkEasEmailProfileBase + DeviceConfiguration + // AuthenticationMethod Authentication method for Exchange ActiveSync. + AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"` + // DurationOfEmailToSync Duration of time email should be synced to. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // HostName Exchange location (URL) that the mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` + // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device. + UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidForWorkEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management. +type AndroidForWorkEnrollmentProfile struct { + // Entity is the base model of AndroidForWorkEnrollmentProfile + Entity + // AccountID Tenant GUID the enrollment profile belongs to. + AccountID *string `json:"accountId,omitempty"` + // DisplayName Display name for the enrollment profile. + DisplayName *string `json:"displayName,omitempty"` + // Description Description for the enrollment profile. + Description *string `json:"description,omitempty"` + // CreatedDateTime Date time the enrollment profile was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Date time the enrollment profile was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // TokenValue Value of the most recently created token for this enrollment profile. + TokenValue *string `json:"tokenValue,omitempty"` + // TokenExpirationDateTime Date time the most recently created token will expire. + TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"` + // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile. + EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"` + // QrCodeContent String used to generate a QR code for the token. + QrCodeContent *string `json:"qrCodeContent,omitempty"` + // QrCodeImage String used to generate a QR code for the token. + QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"` +} + +// AndroidForWorkEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type AndroidForWorkEnterpriseWiFiConfiguration struct { + // AndroidForWorkWiFiConfiguration is the base model of AndroidForWorkEnterpriseWiFiConfiguration + AndroidForWorkWiFiConfiguration + // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *AndroidEapType `json:"eapType,omitempty"` + // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *AndroidForWorkTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *AndroidForWorkCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// AndroidForWorkGeneralDeviceConfiguration Android For Work general device configuration. +type AndroidForWorkGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of AndroidForWorkGeneralDeviceConfiguration + DeviceConfiguration + // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock. + PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"` + // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents. + PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PasswordRequiredType Type of password that is required. + PasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // WorkProfileDataSharingType Type of data sharing that is allowed. + WorkProfileDataSharingType *AndroidForWorkCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"` + // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked. + WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"` + // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile. + WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"` + // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts. + WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"` + // WorkProfileBlockScreenCapture Block screen capture in work profile. + WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"` + // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile. + WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"` + // WorkProfileBlockCamera Block work profile camera. + WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"` + // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile. + WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"` + // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled. + WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"` + // WorkProfileDefaultAppPermissionPolicy Type of password that is required. + WorkProfileDefaultAppPermissionPolicy *AndroidForWorkDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"` + // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile. + WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"` + // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile. + WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"` + // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365 + WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"` + // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16 + WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"` + // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"` + // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"` + // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"` + // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"` + // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"` + // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"` + // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24 + WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"` + // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16 + WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"` + // WorkProfilePasswordRequiredType Type of work profile password that is required. + WorkProfilePasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"` + // WorkProfileRequirePassword Password is required or not for work profile + WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // VPNAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN. + VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"` + // VPNEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN. + VPNEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"` + // WorkProfileAllowWidgets Allow widgets from work profile apps. + WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"` + // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile. + WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"` +} + +// AndroidForWorkGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type AndroidForWorkGmailEasConfiguration struct { + // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkGmailEasConfiguration + AndroidForWorkEasEmailProfileBase +} + +// AndroidForWorkImportedPFXCertificateProfile Android For Work PFX Import certificate profile +type AndroidForWorkImportedPFXCertificateProfile struct { + // AndroidCertificateProfileBase is the base model of AndroidForWorkImportedPFXCertificateProfile + AndroidCertificateProfileBase + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidForWorkMobileAppConfiguration Contains properties, inherited properties and actions for AFW mobile app configurations. +type AndroidForWorkMobileAppConfiguration struct { + // ManagedDeviceMobileAppConfiguration is the base model of AndroidForWorkMobileAppConfiguration + ManagedDeviceMobileAppConfiguration + // PackageID Android For Work app configuration package id. + PackageID *string `json:"packageId,omitempty"` + // PayloadJSON Android For Work app configuration JSON payload. + PayloadJSON *string `json:"payloadJson,omitempty"` + // PermissionActions List of Android app permissions and corresponding permission actions. + PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"` +} + +// AndroidForWorkNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type AndroidForWorkNineWorkEasConfiguration struct { + // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkNineWorkEasConfiguration + AndroidForWorkEasEmailProfileBase + // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device. + SyncCalendar *bool `json:"syncCalendar,omitempty"` + // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device. + SyncContacts *bool `json:"syncContacts,omitempty"` + // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device. + SyncTasks *bool `json:"syncTasks,omitempty"` +} + +// AndroidForWorkPkcsCertificateProfile Android For Work PKCS certificate profile +type AndroidForWorkPkcsCertificateProfile struct { + // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkPkcsCertificateProfile + AndroidForWorkCertificateProfileBase + // CertificationAuthority PKCS Certification Authority + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidForWorkScepCertificateProfile Android For Work SCEP certificate profile +type AndroidForWorkScepCertificateProfile struct { + // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkScepCertificateProfile + AndroidForWorkCertificateProfileBase + // ScepServerUrls SCEP Server Url(s) + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidForWorkSettings Settings for Android For Work. +type AndroidForWorkSettings struct { + // Entity is the base model of AndroidForWorkSettings + Entity + // BindStatus Bind status of the tenant with the Google EMM API + BindStatus *AndroidForWorkBindStatus `json:"bindStatus,omitempty"` + // LastAppSyncDateTime Last completion time for app sync + LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"` + // LastAppSyncStatus Last application sync result + LastAppSyncStatus *AndroidForWorkSyncStatus `json:"lastAppSyncStatus,omitempty"` + // OwnerUserPrincipalName Owner UPN that created the enterprise + OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"` + // OwnerOrganizationName Organization name used when onboarding Android for Work + OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"` + // LastModifiedDateTime Last modification time for Android for Work settings + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // EnrollmentTarget Indicates which users can enroll devices in Android for Work device management + EnrollmentTarget *AndroidForWorkEnrollmentTarget `json:"enrollmentTarget,omitempty"` + // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted' + TargetGroupIDs []string `json:"targetGroupIds,omitempty"` + // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC. + DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"` +} + +// AndroidForWorkTrustedRootCertificate Android For Work Trusted Root Certificate configuration profile +type AndroidForWorkTrustedRootCertificate struct { + // DeviceConfiguration is the base model of AndroidForWorkTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// AndroidForWorkVPNConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type AndroidForWorkVPNConfiguration struct { + // DeviceConfiguration is the base model of AndroidForWorkVPNConfiguration + DeviceConfiguration + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // ConnectionType Connection type. + ConnectionType *AndroidForWorkVPNConnectionType `json:"connectionType,omitempty"` + // Role Role when connection type is set to Pulse Secure. + Role *string `json:"role,omitempty"` + // Realm Realm when connection type is set to Pulse Secure. + Realm *string `json:"realm,omitempty"` + // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. + Servers []VPNServer `json:"servers,omitempty"` + // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN. + Fingerprint *string `json:"fingerprint,omitempty"` + // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomData []KeyValue `json:"customData,omitempty"` + // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"` + // AuthenticationMethod Authentication method. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidForWorkWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. +type AndroidForWorkWiFiConfiguration struct { + // DeviceConfiguration is the base model of AndroidForWorkWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"` +} + +// AndroidGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidGeneralDeviceConfiguration resource. +type AndroidGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of AndroidGeneralDeviceConfiguration + DeviceConfiguration + // AppsBlockClipboardSharing Indicates whether or not to block clipboard sharing to copy and paste between applications. + AppsBlockClipboardSharing *bool `json:"appsBlockClipboardSharing,omitempty"` + // AppsBlockCopyPaste Indicates whether or not to block copy and paste within applications. + AppsBlockCopyPaste *bool `json:"appsBlockCopyPaste,omitempty"` + // AppsBlockYouTube Indicates whether or not to block the YouTube app. + AppsBlockYouTube *bool `json:"appsBlockYouTube,omitempty"` + // BluetoothBlocked Indicates whether or not to block Bluetooth. + BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"` + // CameraBlocked Indicates whether or not to block the use of the camera. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // CellularBlockDataRoaming Indicates whether or not to block data roaming. + CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"` + // CellularBlockMessaging Indicates whether or not to block SMS/MMS messaging. + CellularBlockMessaging *bool `json:"cellularBlockMessaging,omitempty"` + // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming. + CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"` + // CellularBlockWiFiTethering Indicates whether or not to block syncing Wi-Fi tethering. + CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"` + // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements. + CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"` + // CompliantAppListType Type of list that is in the CompliantAppsList. + CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"` + // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission. + DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"` + // LocationServicesBlocked Indicates whether or not to block location services. + LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"` + // GoogleAccountBlockAutoSync Indicates whether or not to block Google account auto sync. + GoogleAccountBlockAutoSync *bool `json:"googleAccountBlockAutoSync,omitempty"` + // GooglePlayStoreBlocked Indicates whether or not to block the Google Play store. + GooglePlayStoreBlocked *bool `json:"googlePlayStoreBlocked,omitempty"` + // KioskModeBlockSleepButton Indicates whether or not to block the screen sleep button while in Kiosk Mode. + KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"` + // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode. + KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"` + // DateAndTimeBlockChanges Indicates whether or not to block changing date and time while in KNOX Mode. + DateAndTimeBlockChanges *bool `json:"dateAndTimeBlockChanges,omitempty"` + // KioskModeApps A list of apps that will be allowed to run when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements. + KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"` + // NfcBlocked Indicates whether or not to block Near-Field Communication. + NfcBlocked *bool `json:"nfcBlocked,omitempty"` + // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock. + PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"` + // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents. + PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PasswordRequiredType Type of password that is required. + PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordRequired Indicates whether or not to require a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PowerOffBlocked Indicates whether or not to block powering off the device. + PowerOffBlocked *bool `json:"powerOffBlocked,omitempty"` + // FactoryResetBlocked Indicates whether or not to block user performing a factory reset. + FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to block screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // DeviceSharingAllowed Indicates whether or not to allow device sharing mode. + DeviceSharingAllowed *bool `json:"deviceSharingAllowed,omitempty"` + // StorageBlockGoogleBackup Indicates whether or not to block Google Backup. + StorageBlockGoogleBackup *bool `json:"storageBlockGoogleBackup,omitempty"` + // StorageBlockRemovableStorage Indicates whether or not to block removable storage usage. + StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"` + // StorageRequireDeviceEncryption Indicates whether or not to require device encryption. + StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"` + // StorageRequireRemovableStorageEncryption Indicates whether or not to require removable storage encryption. + StorageRequireRemovableStorageEncryption *bool `json:"storageRequireRemovableStorageEncryption,omitempty"` + // VoiceAssistantBlocked Indicates whether or not to block the use of the Voice Assistant. + VoiceAssistantBlocked *bool `json:"voiceAssistantBlocked,omitempty"` + // VoiceDialingBlocked Indicates whether or not to block voice dialing. + VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"` + // WebBrowserBlockPopups Indicates whether or not to block popups within the web browser. + WebBrowserBlockPopups *bool `json:"webBrowserBlockPopups,omitempty"` + // WebBrowserBlockAutofill Indicates whether or not to block the web browser's auto fill feature. + WebBrowserBlockAutofill *bool `json:"webBrowserBlockAutofill,omitempty"` + // WebBrowserBlockJavaScript Indicates whether or not to block JavaScript within the web browser. + WebBrowserBlockJavaScript *bool `json:"webBrowserBlockJavaScript,omitempty"` + // WebBrowserBlocked Indicates whether or not to block the web browser. + WebBrowserBlocked *bool `json:"webBrowserBlocked,omitempty"` + // WebBrowserCookieSettings Cookie settings within the web browser. + WebBrowserCookieSettings *WebBrowserCookieSettings `json:"webBrowserCookieSettings,omitempty"` + // WiFiBlocked Indicates whether or not to block syncing Wi-Fi. + WiFiBlocked *bool `json:"wiFiBlocked,omitempty"` + // AppsInstallAllowList List of apps which can be installed on the KNOX device. This collection can contain a maximum of 500 elements. + AppsInstallAllowList []AppListItem `json:"appsInstallAllowList,omitempty"` + // AppsLaunchBlockList List of apps which are blocked from being launched on the KNOX device. This collection can contain a maximum of 500 elements. + AppsLaunchBlockList []AppListItem `json:"appsLaunchBlockList,omitempty"` + // AppsHideList List of apps to be hidden on the KNOX device. This collection can contain a maximum of 500 elements. + AppsHideList []AppListItem `json:"appsHideList,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` +} + +// AndroidImportedPFXCertificateProfile Android PFX Import certificate profile +type AndroidImportedPFXCertificateProfile struct { + // AndroidCertificateProfileBase is the base model of AndroidImportedPFXCertificateProfile + AndroidCertificateProfileBase + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidLobApp Contains properties and inherited properties for Android Line Of Business apps. +type AndroidLobApp struct { + // MobileLobApp is the base model of AndroidLobApp + MobileLobApp + // PackageID The package identifier. + PackageID *string `json:"packageId,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // VersionName The version name of Android Line of Business (LoB) app. + VersionName *string `json:"versionName,omitempty"` + // VersionCode The version code of Android Line of Business (LoB) app. + VersionCode *string `json:"versionCode,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// AndroidManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an Android device +type AndroidManagedAppProtection struct { + // TargetedManagedAppProtection is the base model of AndroidManagedAppProtection + TargetedManagedAppProtection + // ScreenCaptureBlocked Indicates whether a managed user can take screen captures of managed apps + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled + DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"` + // EncryptAppData Indicates whether application data for managed apps should be encrypted + EncryptAppData *bool `json:"encryptAppData,omitempty"` + // DeployedAppCount Count of apps to which the current policy is deployed. + DeployedAppCount *int `json:"deployedAppCount,omitempty"` + // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app. + MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"` + // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app. + MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"` + // ExemptedAppPackages App packages in this list will be exempt from the policy and will be able to receive data from managed apps. + ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"` + // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data. + MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"` + // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work. + AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"` + // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed. + AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"` + // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work. + RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"` + // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails. + AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"` + // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work. + RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"` + // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails. + AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"` + // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android. + CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"` + // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android. + CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"` + // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked + MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"` + // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning + MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"` + // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped + MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"` + // KeyboardsRestricted Indicates if keyboard restriction is enabled. If enabled list of approved keyboards must be provided as well. + KeyboardsRestricted *bool `json:"keyboardsRestricted,omitempty"` + // ApprovedKeyboards If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name + ApprovedKeyboards []KeyValuePair `json:"approvedKeyboards,omitempty"` + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` + // DeploymentSummary undocumented + DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"` +} + +// AndroidManagedAppRegistration Represents the synchronization details of an android app, with management capabilities, for a specific user. +type AndroidManagedAppRegistration struct { + // ManagedAppRegistration is the base model of AndroidManagedAppRegistration + ManagedAppRegistration + // PatchVersion The patch version for the current android app registration + PatchVersion *string `json:"patchVersion,omitempty"` +} + +// AndroidManagedStoreAccountEnterpriseSettings Enterprise settings for an Android managed store account. +type AndroidManagedStoreAccountEnterpriseSettings struct { + // Entity is the base model of AndroidManagedStoreAccountEnterpriseSettings + Entity + // BindStatus Bind status of the tenant with the Google EMM API + BindStatus *AndroidManagedStoreAccountBindStatus `json:"bindStatus,omitempty"` + // LastAppSyncDateTime Last completion time for app sync + LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"` + // LastAppSyncStatus Last application sync result + LastAppSyncStatus *AndroidManagedStoreAccountAppSyncStatus `json:"lastAppSyncStatus,omitempty"` + // OwnerUserPrincipalName Owner UPN that created the enterprise + OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"` + // OwnerOrganizationName Organization name used when onboarding Android Enterprise + OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"` + // LastModifiedDateTime Last modification time for Android enterprise settings + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // EnrollmentTarget Indicates which users can enroll devices in Android Enterprise device management + EnrollmentTarget *AndroidManagedStoreAccountEnrollmentTarget `json:"enrollmentTarget,omitempty"` + // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted' + TargetGroupIDs []string `json:"targetGroupIds,omitempty"` + // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC. + DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"` + // CompanyCodes Company codes for AndroidManagedStoreAccountEnterpriseSettings + CompanyCodes []AndroidEnrollmentCompanyCode `json:"companyCodes,omitempty"` + // AndroidDeviceOwnerFullyManagedEnrollmentEnabled Company codes for AndroidManagedStoreAccountEnterpriseSettings + AndroidDeviceOwnerFullyManagedEnrollmentEnabled *bool `json:"androidDeviceOwnerFullyManagedEnrollmentEnabled,omitempty"` +} + +// AndroidManagedStoreApp Contains properties and inherited properties for Android Managed Store Apps. +type AndroidManagedStoreApp struct { + // MobileApp is the base model of AndroidManagedStoreApp + MobileApp + // PackageID The package identifier. + PackageID *string `json:"packageId,omitempty"` + // AppIdentifier The Identity Name. + AppIdentifier *string `json:"appIdentifier,omitempty"` + // UsedLicenseCount The number of VPP licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // TotalLicenseCount The total number of VPP licenses. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // AppStoreURL The Play for Work Store app URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // IsPrivate Indicates whether the app is only available to a given enterprise's users. + IsPrivate *bool `json:"isPrivate,omitempty"` + // IsSystemApp Indicates whether the app is a preinstalled system app. + IsSystemApp *bool `json:"isSystemApp,omitempty"` + // SupportsOemConfig Whether this app supports OEMConfig policy. + SupportsOemConfig *bool `json:"supportsOemConfig,omitempty"` +} + +// AndroidManagedStoreAppConfiguration Contains properties, inherited properties and actions for Android Enterprise mobile app configurations. +type AndroidManagedStoreAppConfiguration struct { + // ManagedDeviceMobileAppConfiguration is the base model of AndroidManagedStoreAppConfiguration + ManagedDeviceMobileAppConfiguration + // PackageID Android Enterprise app configuration package id. + PackageID *string `json:"packageId,omitempty"` + // PayloadJSON Android Enterprise app configuration JSON payload. + PayloadJSON *string `json:"payloadJson,omitempty"` + // PermissionActions List of Android app permissions and corresponding permission actions. + PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"` + // AppSupportsOemConfig Whether or not this AppConfig is an OEMConfig policy. + AppSupportsOemConfig *bool `json:"appSupportsOemConfig,omitempty"` +} + +// AndroidManagedStoreAppConfigurationSchema Schema describing an Android application's custom configurations. +type AndroidManagedStoreAppConfigurationSchema struct { + // Entity is the base model of AndroidManagedStoreAppConfigurationSchema + Entity + // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app + ExampleJSON *Binary `json:"exampleJson,omitempty"` + // SchemaItems Collection of items each representing a named configuration option in the schema. It only contains the root-level configuration. + SchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"schemaItems,omitempty"` + // NestedSchemaItems Collection of items each representing a named configuration option in the schema. It contains a flat list of all configuration. + NestedSchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"nestedSchemaItems,omitempty"` +} + +// AndroidManagedStoreAppConfigurationSchemaItem undocumented +type AndroidManagedStoreAppConfigurationSchemaItem struct { + // Object is the base model of AndroidManagedStoreAppConfigurationSchemaItem + Object + // Index Unique index the application uses to maintain nested schema items + Index *int `json:"index,omitempty"` + // ParentIndex Index of parent schema item to track nested schema items + ParentIndex *int `json:"parentIndex,omitempty"` + // SchemaItemKey Unique key the application uses to identify the item + SchemaItemKey *string `json:"schemaItemKey,omitempty"` + // DisplayName Human readable name + DisplayName *string `json:"displayName,omitempty"` + // Description Description of what the item controls within the application + Description *string `json:"description,omitempty"` + // DefaultBoolValue Default value for boolean type items, if specified by the app developer + DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"` + // DefaultIntValue Default value for integer type items, if specified by the app developer + DefaultIntValue *int `json:"defaultIntValue,omitempty"` + // DefaultStringValue Default value for string type items, if specified by the app developer + DefaultStringValue *string `json:"defaultStringValue,omitempty"` + // DefaultStringArrayValue Default value for string array type items, if specified by the app developer + DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"` + // DataType The type of value this item describes + DataType *AndroidManagedStoreAppConfigurationSchemaItemDataType `json:"dataType,omitempty"` + // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only) + Selections []KeyValuePair `json:"selections,omitempty"` +} + +// AndroidManagedStoreWebApp Contains properties and inherited properties for web apps configured to be distributed via the managed Android app store. +type AndroidManagedStoreWebApp struct { + // AndroidManagedStoreApp is the base model of AndroidManagedStoreWebApp + AndroidManagedStoreApp +} + +// AndroidMinimumOperatingSystem undocumented +type AndroidMinimumOperatingSystem struct { + // Object is the base model of AndroidMinimumOperatingSystem + Object + // V4_0 Version 4.0 or later. + V4_0 *bool `json:"v4_0,omitempty"` + // V4_0_3 Version 4.0.3 or later. + V4_0_3 *bool `json:"v4_0_3,omitempty"` + // V4_1 Version 4.1 or later. + V4_1 *bool `json:"v4_1,omitempty"` + // V4_2 Version 4.2 or later. + V4_2 *bool `json:"v4_2,omitempty"` + // V4_3 Version 4.3 or later. + V4_3 *bool `json:"v4_3,omitempty"` + // V4_4 Version 4.4 or later. + V4_4 *bool `json:"v4_4,omitempty"` + // V5_0 Version 5.0 or later. + V5_0 *bool `json:"v5_0,omitempty"` + // V5_1 Version 5.1 or later. + V5_1 *bool `json:"v5_1,omitempty"` + // V6_0 Version 6.0 or later. + V6_0 *bool `json:"v6_0,omitempty"` + // V7_0 Version 7.0 or later. + V7_0 *bool `json:"v7_0,omitempty"` + // V7_1 Version 7.1 or later. + V7_1 *bool `json:"v7_1,omitempty"` + // V8_0 Version 8.0 or later. + V8_0 *bool `json:"v8_0,omitempty"` + // V8_1 Version 8.1 or later. + V8_1 *bool `json:"v8_1,omitempty"` + // V9_0 Version 9.0 or later. + V9_0 *bool `json:"v9_0,omitempty"` +} + +// AndroidMobileAppIdentifier undocumented +type AndroidMobileAppIdentifier struct { + // MobileAppIdentifier is the base model of AndroidMobileAppIdentifier + MobileAppIdentifier + // PackageID The identifier for an app, as specified in the play store. + PackageID *string `json:"packageId,omitempty"` +} + +// AndroidOMACpConfiguration By providing a configuration in this profile you can configure Android devices that support OMA-CP. +type AndroidOMACpConfiguration struct { + // DeviceConfiguration is the base model of AndroidOMACpConfiguration + DeviceConfiguration + // ConfigurationXML Configuration XML that will be applied to the device. When it is read, it only provides a placeholder string since the original data is encrypted and stored. + ConfigurationXML *Binary `json:"configurationXml,omitempty"` +} + +// AndroidPermissionAction undocumented +type AndroidPermissionAction struct { + // Object is the base model of AndroidPermissionAction + Object + // Permission Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'. + Permission *string `json:"permission,omitempty"` + // Action Type of Android permission action. + Action *AndroidPermissionActionType `json:"action,omitempty"` +} + +// AndroidPkcsCertificateProfile Android PKCS certificate profile +type AndroidPkcsCertificateProfile struct { + // AndroidCertificateProfileBase is the base model of AndroidPkcsCertificateProfile + AndroidCertificateProfileBase + // CertificationAuthority PKCS Certification Authority + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidScepCertificateProfile Android SCEP certificate profile +type AndroidScepCertificateProfile struct { + // AndroidCertificateProfileBase is the base model of AndroidScepCertificateProfile + AndroidCertificateProfileBase + // ScepServerUrls SCEP Server Url(s) + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidStoreApp Contains properties and inherited properties for Android store apps. +type AndroidStoreApp struct { + // MobileApp is the base model of AndroidStoreApp + MobileApp + // PackageID The package identifier. + PackageID *string `json:"packageId,omitempty"` + // AppIdentifier The Identity Name. + AppIdentifier *string `json:"appIdentifier,omitempty"` + // AppStoreURL The Android app store URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` +} + +// AndroidTrustedRootCertificate Android Trusted Root Certificate configuration profile +type AndroidTrustedRootCertificate struct { + // DeviceConfiguration is the base model of AndroidTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// AndroidVPNConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type AndroidVPNConfiguration struct { + // DeviceConfiguration is the base model of AndroidVPNConfiguration + DeviceConfiguration + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // ConnectionType Connection type. + ConnectionType *AndroidVPNConnectionType `json:"connectionType,omitempty"` + // Role Role when connection type is set to Pulse Secure. + Role *string `json:"role,omitempty"` + // Realm Realm when connection type is set to Pulse Secure. + Realm *string `json:"realm,omitempty"` + // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. + Servers []VPNServer `json:"servers,omitempty"` + // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN. + Fingerprint *string `json:"fingerprint,omitempty"` + // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomData []KeyValue `json:"customData,omitempty"` + // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"` + // AuthenticationMethod Authentication method. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. +type AndroidWiFiConfiguration struct { + // DeviceConfiguration is the base model of AndroidWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"` +} + +// AndroidWorkProfileCertificateProfileBase Android Work Profile certificate profile base. +type AndroidWorkProfileCertificateProfileBase struct { + // DeviceConfiguration is the base model of AndroidWorkProfileCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // RootCertificate undocumented + RootCertificate *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificate,omitempty"` +} + +// AndroidWorkProfileCompliancePolicy This class contains compliance settings for Android Work Profile. +type AndroidWorkProfileCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of AndroidWorkProfileCompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordMinimumLength Minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordRequiredType Type of characters in password + PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources. + SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"` + // SecurityDisableUsbDebugging Disable USB debugging on Android devices. + SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted. + SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"` + // OsMinimumVersion Minimum Android version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Android version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // MinAndroidSecurityPatchLevel Minimum Android security patch level. + MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"` + // StorageRequireEncryption Require encryption on Android devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check. + SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"` + // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check. + SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"` + // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device. + SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"` + // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date. + SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"` + // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check. + SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"` +} + +// AndroidWorkProfileCustomConfiguration Android Work Profile custom configuration +type AndroidWorkProfileCustomConfiguration struct { + // DeviceConfiguration is the base model of AndroidWorkProfileCustomConfiguration + DeviceConfiguration + // OMASettings OMA settings. This collection can contain a maximum of 500 elements. + OMASettings []OMASetting `json:"omaSettings,omitempty"` +} + +// AndroidWorkProfileEasEmailProfileBase Base for Android Work Profile EAS Email profiles +type AndroidWorkProfileEasEmailProfileBase struct { + // DeviceConfiguration is the base model of AndroidWorkProfileEasEmailProfileBase + DeviceConfiguration + // AuthenticationMethod Authentication method for Exchange ActiveSync. + AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"` + // DurationOfEmailToSync Duration of time email should be synced to. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // HostName Exchange location (URL) that the mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` + // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device. + UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidWorkProfileEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type AndroidWorkProfileEnterpriseWiFiConfiguration struct { + // AndroidWorkProfileWiFiConfiguration is the base model of AndroidWorkProfileEnterpriseWiFiConfiguration + AndroidWorkProfileWiFiConfiguration + // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *AndroidEapType `json:"eapType,omitempty"` + // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *AndroidWorkProfileCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// AndroidWorkProfileGeneralDeviceConfiguration Android Work Profile general device configuration. +type AndroidWorkProfileGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of AndroidWorkProfileGeneralDeviceConfiguration + DeviceConfiguration + // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock. + PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"` + // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents. + PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PasswordRequiredType Type of password that is required. + PasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"passwordRequiredType,omitempty"` + // WorkProfileDataSharingType Type of data sharing that is allowed. + WorkProfileDataSharingType *AndroidWorkProfileCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"` + // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked. + WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"` + // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile. + WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"` + // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts. + WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"` + // WorkProfileBlockScreenCapture Block screen capture in work profile. + WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"` + // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile. + WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"` + // WorkProfileBlockCamera Block work profile camera. + WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"` + // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile. + WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"` + // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled. + WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"` + // WorkProfileDefaultAppPermissionPolicy Type of password that is required. + WorkProfileDefaultAppPermissionPolicy *AndroidWorkProfileDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"` + // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile. + WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"` + // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile. + WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"` + // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365 + WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"` + // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16 + WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"` + // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"` + // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"` + // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"` + // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"` + // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"` + // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10 + WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"` + // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24 + WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"` + // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16 + WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"` + // WorkProfilePasswordRequiredType Type of work profile password that is required. + WorkProfilePasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"` + // WorkProfileRequirePassword Password is required or not for work profile + WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"` + // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on. + SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"` + // VPNAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN. + VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"` + // VPNEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN. + VPNEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"` + // WorkProfileAllowWidgets Allow widgets from work profile apps. + WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"` + // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile. + WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"` +} + +// AndroidWorkProfileGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type AndroidWorkProfileGmailEasConfiguration struct { + // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileGmailEasConfiguration + AndroidWorkProfileEasEmailProfileBase +} + +// AndroidWorkProfileNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type AndroidWorkProfileNineWorkEasConfiguration struct { + // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileNineWorkEasConfiguration + AndroidWorkProfileEasEmailProfileBase + // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device. + SyncCalendar *bool `json:"syncCalendar,omitempty"` + // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device. + SyncContacts *bool `json:"syncContacts,omitempty"` + // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device. + SyncTasks *bool `json:"syncTasks,omitempty"` +} + +// AndroidWorkProfilePkcsCertificateProfile Android Work Profile PKCS certificate profile +type AndroidWorkProfilePkcsCertificateProfile struct { + // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfilePkcsCertificateProfile + AndroidWorkProfileCertificateProfileBase + // CertificationAuthority PKCS Certification Authority + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidWorkProfileScepCertificateProfile Android Work Profile SCEP certificate profile +type AndroidWorkProfileScepCertificateProfile struct { + // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfileScepCertificateProfile + AndroidWorkProfileCertificateProfileBase + // ScepServerUrls SCEP Server Url(s) + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// AndroidWorkProfileTrustedRootCertificate Android Work Profile Trusted Root Certificate configuration profile +type AndroidWorkProfileTrustedRootCertificate struct { + // DeviceConfiguration is the base model of AndroidWorkProfileTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// AndroidWorkProfileVPNConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type AndroidWorkProfileVPNConfiguration struct { + // DeviceConfiguration is the base model of AndroidWorkProfileVPNConfiguration + DeviceConfiguration + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // ConnectionType Connection type. + ConnectionType *AndroidWorkProfileVPNConnectionType `json:"connectionType,omitempty"` + // Role Role when connection type is set to Pulse Secure. + Role *string `json:"role,omitempty"` + // Realm Realm when connection type is set to Pulse Secure. + Realm *string `json:"realm,omitempty"` + // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. + Servers []VPNServer `json:"servers,omitempty"` + // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN. + Fingerprint *string `json:"fingerprint,omitempty"` + // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomData []KeyValue `json:"customData,omitempty"` + // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements. + CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"` + // AuthenticationMethod Authentication method. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// AndroidWorkProfileWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. +type AndroidWorkProfileWiFiConfiguration struct { + // DeviceConfiguration is the base model of AndroidWorkProfileWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go new file mode 100644 index 00000000..affb4575 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go @@ -0,0 +1,183 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AppCatalogs undocumented +type AppCatalogs struct { + // Entity is the base model of AppCatalogs + Entity + // TeamsApps undocumented + TeamsApps []TeamsApp `json:"teamsApps,omitempty"` +} + +// AppConfigurationSettingItem undocumented +type AppConfigurationSettingItem struct { + // Object is the base model of AppConfigurationSettingItem + Object + // AppConfigKey app configuration key. + AppConfigKey *string `json:"appConfigKey,omitempty"` + // AppConfigKeyType app configuration key type. + AppConfigKeyType *MDMAppConfigKeyType `json:"appConfigKeyType,omitempty"` + // AppConfigKeyValue app configuration key value. + AppConfigKeyValue *string `json:"appConfigKeyValue,omitempty"` +} + +// AppHostedMediaConfig undocumented +type AppHostedMediaConfig struct { + // MediaConfig is the base model of AppHostedMediaConfig + MediaConfig + // Blob undocumented + Blob *string `json:"blob,omitempty"` +} + +// AppIdentity undocumented +type AppIdentity struct { + // Object is the base model of AppIdentity + Object + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ServicePrincipalID undocumented + ServicePrincipalID *string `json:"servicePrincipalId,omitempty"` + // ServicePrincipalName undocumented + ServicePrincipalName *string `json:"servicePrincipalName,omitempty"` +} + +// AppListItem undocumented +type AppListItem struct { + // Object is the base model of AppListItem + Object + // Name The application name + Name *string `json:"name,omitempty"` + // Publisher The publisher of the application + Publisher *string `json:"publisher,omitempty"` + // AppStoreURL The Store URL of the application + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // AppID The application or bundle identifier of the application + AppID *string `json:"appId,omitempty"` +} + +// AppLogCollectionDownloadDetails undocumented +type AppLogCollectionDownloadDetails struct { + // Object is the base model of AppLogCollectionDownloadDetails + Object + // DownloadURL Download SAS Url for completed AppLogUploadRequest + DownloadURL *string `json:"downloadUrl,omitempty"` + // DecryptionKey DecryptionKey as string + DecryptionKey *string `json:"decryptionKey,omitempty"` + // AppLogDecryptionAlgorithm DecryptionAlgorithm for Content + AppLogDecryptionAlgorithm *AppLogDecryptionAlgorithm `json:"appLogDecryptionAlgorithm,omitempty"` +} + +// AppLogCollectionRequestObject AppLogCollectionRequest Entity. +type AppLogCollectionRequestObject struct { + // Entity is the base model of AppLogCollectionRequestObject + Entity + // Status Log upload status + Status *AppLogUploadState `json:"status,omitempty"` + // ErrorMessage Error message if any during the upload process + ErrorMessage *string `json:"errorMessage,omitempty"` + // CustomLogFolders List of log folders. + CustomLogFolders []string `json:"customLogFolders,omitempty"` + // CompletedDateTime Time at which the upload log request reached a terminal state + CompletedDateTime *time.Time `json:"completedDateTime,omitempty"` +} + +// AppRole undocumented +type AppRole struct { + // Object is the base model of AppRole + Object + // AllowedMemberTypes undocumented + AllowedMemberTypes []string `json:"allowedMemberTypes,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ID undocumented + ID *UUID `json:"id,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // Origin undocumented + Origin *string `json:"origin,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// AppRoleAssignment undocumented +type AppRoleAssignment struct { + // Entity is the base model of AppRoleAssignment + Entity + // AppRoleID undocumented + AppRoleID *UUID `json:"appRoleId,omitempty"` + // CreationTimestamp undocumented + CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"` + // PrincipalDisplayName undocumented + PrincipalDisplayName *string `json:"principalDisplayName,omitempty"` + // PrincipalID undocumented + PrincipalID *UUID `json:"principalId,omitempty"` + // PrincipalType undocumented + PrincipalType *string `json:"principalType,omitempty"` + // ResourceDisplayName undocumented + ResourceDisplayName *string `json:"resourceDisplayName,omitempty"` + // ResourceID undocumented + ResourceID *UUID `json:"resourceId,omitempty"` +} + +// AppVulnerabilityManagedDevice An app vulnerability managed device. +type AppVulnerabilityManagedDevice struct { + // Entity is the base model of AppVulnerabilityManagedDevice + Entity + // ManagedDeviceID The Intune managed device ID. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // DisplayName The device name. + DisplayName *string `json:"displayName,omitempty"` + // LastSyncDateTime The created date. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` +} + +// AppVulnerabilityMobileApp An app vulnerability mobile app. +type AppVulnerabilityMobileApp struct { + // Entity is the base model of AppVulnerabilityMobileApp + Entity + // MobileAppID The Intune mobile app ID. + MobileAppID *string `json:"mobileAppId,omitempty"` + // DisplayName The device name. + DisplayName *string `json:"displayName,omitempty"` + // CreatedDateTime The created date. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The last modified date. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // MobileAppType The app type. + MobileAppType *string `json:"mobileAppType,omitempty"` + // Version The app version. + Version *string `json:"version,omitempty"` +} + +// AppVulnerabilityTask An app vulnerability task. +type AppVulnerabilityTask struct { + // DeviceAppManagementTask is the base model of AppVulnerabilityTask + DeviceAppManagementTask + // AppName The app name. + AppName *string `json:"appName,omitempty"` + // AppPublisher The app publisher. + AppPublisher *string `json:"appPublisher,omitempty"` + // AppVersion The app version. + AppVersion *string `json:"appVersion,omitempty"` + // MitigationType The mitigation type. + MitigationType *AppVulnerabilityTaskMitigationType `json:"mitigationType,omitempty"` + // Insights Information about the mitigation. + Insights *string `json:"insights,omitempty"` + // ManagedDeviceCount The number of vulnerable devices. + ManagedDeviceCount *int `json:"managedDeviceCount,omitempty"` + // MobileAppCount The number of vulnerable mobile apps. + MobileAppCount *int `json:"mobileAppCount,omitempty"` + // Remediation The remediation steps. + Remediation *string `json:"remediation,omitempty"` + // ManagedDevices undocumented + ManagedDevices []AppVulnerabilityManagedDevice `json:"managedDevices,omitempty"` + // MobileApps undocumented + MobileApps []AppVulnerabilityMobileApp `json:"mobileApps,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go new file mode 100644 index 00000000..cfec8a7c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AppleDeviceFeaturesConfigurationBase Apple device features configuration profile. +type AppleDeviceFeaturesConfigurationBase struct { + // DeviceConfiguration is the base model of AppleDeviceFeaturesConfigurationBase + DeviceConfiguration + // AirPrintDestinations An array of AirPrint printers that should always be shown. This collection can contain a maximum of 500 elements. + AirPrintDestinations []AirPrintDestination `json:"airPrintDestinations,omitempty"` +} + +// AppleEnrollmentProfileAssignment An assignment of an Apple profile. +type AppleEnrollmentProfileAssignment struct { + // Entity is the base model of AppleEnrollmentProfileAssignment + Entity + // Target The assignment target for the Apple user initiated deployment profile. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// AppleOwnerTypeEnrollmentType undocumented +type AppleOwnerTypeEnrollmentType struct { + // Object is the base model of AppleOwnerTypeEnrollmentType + Object + // OwnerType The owner type. + OwnerType *ManagedDeviceOwnerType `json:"ownerType,omitempty"` + // EnrollmentType The enrollment type. + EnrollmentType *AppleUserInitiatedEnrollmentType `json:"enrollmentType,omitempty"` +} + +// ApplePushNotificationCertificate Apple push notification certificate. +type ApplePushNotificationCertificate struct { + // Entity is the base model of ApplePushNotificationCertificate + Entity + // AppleIdentifier Apple Id of the account used to create the MDM push certificate. + AppleIdentifier *string `json:"appleIdentifier,omitempty"` + // TopicIdentifier Topic Id. + TopicIdentifier *string `json:"topicIdentifier,omitempty"` + // LastModifiedDateTime Last modified date and time for Apple push notification certificate. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // ExpirationDateTime The expiration date and time for Apple push notification certificate. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // CertificateUploadStatus The certificate upload status. + CertificateUploadStatus *string `json:"certificateUploadStatus,omitempty"` + // CertificateUploadFailureReason The reason the certificate upload failed. + CertificateUploadFailureReason *string `json:"certificateUploadFailureReason,omitempty"` + // Certificate undocumented + Certificate *string `json:"certificate,omitempty"` +} + +// AppleUserInitiatedEnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device. +type AppleUserInitiatedEnrollmentProfile struct { + // Entity is the base model of AppleUserInitiatedEnrollmentProfile + Entity + // DefaultEnrollmentType The default profile enrollment type. + DefaultEnrollmentType *AppleUserInitiatedEnrollmentType `json:"defaultEnrollmentType,omitempty"` + // AvailableEnrollmentTypeOptions List of available enrollment type options + AvailableEnrollmentTypeOptions []AppleOwnerTypeEnrollmentType `json:"availableEnrollmentTypeOptions,omitempty"` + // DisplayName Name of the profile + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the profile + Description *string `json:"description,omitempty"` + // Priority Priority, 0 is highest + Priority *int `json:"priority,omitempty"` + // Platform The platform of the Device. + Platform *DevicePlatformType `json:"platform,omitempty"` + // CreatedDateTime Profile creation time + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Profile last modified time + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Assignments undocumented + Assignments []AppleEnrollmentProfileAssignment `json:"assignments,omitempty"` +} + +// AppleVPNConfiguration Apple VPN configuration profile. +type AppleVPNConfiguration struct { + // DeviceConfiguration is the base model of AppleVPNConfiguration + DeviceConfiguration + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // ConnectionType Connection type. + ConnectionType *AppleVPNConnectionType `json:"connectionType,omitempty"` + // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection. + LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"` + // Role Role when connection type is set to Pulse Secure. + Role *string `json:"role,omitempty"` + // Realm Realm when connection type is set to Pulse Secure. + Realm *string `json:"realm,omitempty"` + // Server VPN Server on the network. Make sure end users can access this network location. + Server *VPNServer `json:"server,omitempty"` + // Identifier Identifier provided by VPN vendor when connection type is set to Custom VPN. For example: Cisco AnyConnect uses an identifier of the form com.cisco.anyconnect.applevpn.plugin + Identifier *string `json:"identifier,omitempty"` + // CustomData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements. + CustomData []KeyValue `json:"customData,omitempty"` + // CustomKeyValueData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements. + CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"` + // EnableSplitTunneling Send all network traffic through VPN. + EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"` + // AuthenticationMethod Authentication method for this VPN connection. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // EnablePerApp Setting this to true creates Per-App VPN payload which can later be associated with Apps that can trigger this VPN conneciton on the end user's iOS device. + EnablePerApp *bool `json:"enablePerApp,omitempty"` + // SafariDomains Safari domains when this VPN per App setting is enabled. In addition to the apps associated with this VPN, Safari domains specified here will also be able to trigger this VPN connection. + SafariDomains []string `json:"safariDomains,omitempty"` + // OnDemandRules On-Demand Rules. This collection can contain a maximum of 500 elements. + OnDemandRules []VPNOnDemandRule `json:"onDemandRules,omitempty"` + // ProxyServer Proxy Server. + ProxyServer *VPNProxyServer `json:"proxyServer,omitempty"` + // OptInToDeviceIDSharing Opt-In to sharing the device's Id to third-party vpn clients for use during network access control validation. + OptInToDeviceIDSharing *bool `json:"optInToDeviceIdSharing,omitempty"` +} + +// AppleVPPTokenTroubleshootingEvent Event representing an Apple Vpp Token Troubleshooting Event. +type AppleVPPTokenTroubleshootingEvent struct { + // DeviceManagementTroubleshootingEvent is the base model of AppleVPPTokenTroubleshootingEvent + DeviceManagementTroubleshootingEvent + // TokenID Apple Volume Purchase Program Token Identifier. + TokenID *string `json:"tokenId,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go new file mode 100644 index 00000000..5e90bcbc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go @@ -0,0 +1,133 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Application undocumented +type Application struct { + // DirectoryObject is the base model of Application + DirectoryObject + // API undocumented + API *APIApplication `json:"api,omitempty"` + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // AppRoles undocumented + AppRoles []AppRole `json:"appRoles,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // IsFallbackPublicClient undocumented + IsFallbackPublicClient *bool `json:"isFallbackPublicClient,omitempty"` + // IdentifierUris undocumented + IdentifierUris []string `json:"identifierUris,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GroupMembershipClaims undocumented + GroupMembershipClaims *string `json:"groupMembershipClaims,omitempty"` + // Info undocumented + Info *InformationalURL `json:"info,omitempty"` + // IsDeviceOnlyAuthSupported undocumented + IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"` + // KeyCredentials undocumented + KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"` + // Logo undocumented + Logo *Stream `json:"logo,omitempty"` + // OptionalClaims undocumented + OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"` + // ParentalControlSettings undocumented + ParentalControlSettings *ParentalControlSettings `json:"parentalControlSettings,omitempty"` + // PasswordCredentials undocumented + PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"` + // PublicClient undocumented + PublicClient *PublicClientApplication `json:"publicClient,omitempty"` + // PublisherDomain undocumented + PublisherDomain *string `json:"publisherDomain,omitempty"` + // RequiredResourceAccess undocumented + RequiredResourceAccess []RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` + // SignInAudience undocumented + SignInAudience *string `json:"signInAudience,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // TokenEncryptionKeyID undocumented + TokenEncryptionKeyID *UUID `json:"tokenEncryptionKeyId,omitempty"` + // Web undocumented + Web *WebApplication `json:"web,omitempty"` + // ExtensionProperties undocumented + ExtensionProperties []ExtensionProperty `json:"extensionProperties,omitempty"` + // CreatedOnBehalfOf undocumented + CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"` + // Owners undocumented + Owners []DirectoryObject `json:"owners,omitempty"` + // Policies undocumented + Policies []DirectoryObject `json:"policies,omitempty"` + // Synchronization undocumented + Synchronization *Synchronization `json:"synchronization,omitempty"` +} + +// ApplicationEnforcedRestrictionsSessionControl undocumented +type ApplicationEnforcedRestrictionsSessionControl struct { + // ConditionalAccessSessionControl is the base model of ApplicationEnforcedRestrictionsSessionControl + ConditionalAccessSessionControl +} + +// ApplicationServicePrincipal undocumented +type ApplicationServicePrincipal struct { + // Object is the base model of ApplicationServicePrincipal + Object + // Application undocumented + Application *Application `json:"application,omitempty"` + // ServicePrincipal undocumented + ServicePrincipal *ServicePrincipal `json:"servicePrincipal,omitempty"` +} + +// ApplicationSignInDetailedSummary undocumented +type ApplicationSignInDetailedSummary struct { + // Entity is the base model of ApplicationSignInDetailedSummary + Entity + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // Status undocumented + Status *SignInStatus `json:"status,omitempty"` + // SignInCount undocumented + SignInCount *int `json:"signInCount,omitempty"` + // AggregatedEventDateTime undocumented + AggregatedEventDateTime *time.Time `json:"aggregatedEventDateTime,omitempty"` +} + +// ApplicationSignInSummary undocumented +type ApplicationSignInSummary struct { + // Entity is the base model of ApplicationSignInSummary + Entity + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // SuccessfulSignInCount undocumented + SuccessfulSignInCount *int `json:"successfulSignInCount,omitempty"` + // FailedSignInCount undocumented + FailedSignInCount *int `json:"failedSignInCount,omitempty"` + // SuccessPercentage undocumented + SuccessPercentage *float64 `json:"successPercentage,omitempty"` +} + +// ApplicationTemplate undocumented +type ApplicationTemplate struct { + // Entity is the base model of ApplicationTemplate + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // HomePageURL undocumented + HomePageURL *string `json:"homePageUrl,omitempty"` + // SupportedSingleSignOnModes undocumented + SupportedSingleSignOnModes []string `json:"supportedSingleSignOnModes,omitempty"` + // SupportedProvisioningTypes undocumented + SupportedProvisioningTypes []string `json:"supportedProvisioningTypes,omitempty"` + // LogoURL undocumented + LogoURL *string `json:"logoUrl,omitempty"` + // Categories undocumented + Categories []string `json:"categories,omitempty"` + // Publisher undocumented + Publisher *string `json:"publisher,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ApplyLabelActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ApprovalWorkflowProviderModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go new file mode 100644 index 00000000..1fc02328 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go @@ -0,0 +1,39 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AssignedLabel undocumented +type AssignedLabel struct { + // Object is the base model of AssignedLabel + Object + // LabelID undocumented + LabelID *string `json:"labelId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// AssignedLicense undocumented +type AssignedLicense struct { + // Object is the base model of AssignedLicense + Object + // DisabledPlans undocumented + DisabledPlans []UUID `json:"disabledPlans,omitempty"` + // SKUID undocumented + SKUID *UUID `json:"skuId,omitempty"` +} + +// AssignedPlan undocumented +type AssignedPlan struct { + // Object is the base model of AssignedPlan + Object + // AssignedDateTime undocumented + AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"` + // CapabilityStatus undocumented + CapabilityStatus *string `json:"capabilityStatus,omitempty"` + // Service undocumented + Service *string `json:"service,omitempty"` + // ServicePlanID undocumented + ServicePlanID *UUID `json:"servicePlanId,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go new file mode 100644 index 00000000..b1d19356 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go @@ -0,0 +1,37 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Attachment undocumented +type Attachment struct { + // Entity is the base model of Attachment + Entity + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ContentType undocumented + ContentType *string `json:"contentType,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // IsInline undocumented + IsInline *bool `json:"isInline,omitempty"` +} + +// AttachmentItem undocumented +type AttachmentItem struct { + // Object is the base model of AttachmentItem + Object + // AttachmentType undocumented + AttachmentType *AttachmentType `json:"attachmentType,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // ContentType undocumented + ContentType *string `json:"contentType,omitempty"` + // IsInline undocumented + IsInline *bool `json:"isInline,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go new file mode 100644 index 00000000..2d09290a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Attendee undocumented +type Attendee struct { + // AttendeeBase is the base model of Attendee + AttendeeBase + // Status undocumented + Status *ResponseStatus `json:"status,omitempty"` + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"` +} + +// AttendeeAvailability undocumented +type AttendeeAvailability struct { + // Object is the base model of AttendeeAvailability + Object + // Attendee undocumented + Attendee *AttendeeBase `json:"attendee,omitempty"` + // Availability undocumented + Availability *FreeBusyStatus `json:"availability,omitempty"` +} + +// AttendeeBase undocumented +type AttendeeBase struct { + // Recipient is the base model of AttendeeBase + Recipient + // Type undocumented + Type *AttendeeType `json:"type,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go new file mode 100644 index 00000000..6bc9aa27 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go @@ -0,0 +1,87 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AttributeDefinition undocumented +type AttributeDefinition struct { + // Object is the base model of AttributeDefinition + Object + // Anchor undocumented + Anchor *bool `json:"anchor,omitempty"` + // APIExpressions undocumented + APIExpressions []StringKeyStringValuePair `json:"apiExpressions,omitempty"` + // CaseExact undocumented + CaseExact *bool `json:"caseExact,omitempty"` + // DefaultValue undocumented + DefaultValue *string `json:"defaultValue,omitempty"` + // Metadata undocumented + Metadata []MetadataEntry `json:"metadata,omitempty"` + // Multivalued undocumented + Multivalued *bool `json:"multivalued,omitempty"` + // Mutability undocumented + Mutability *Mutability `json:"mutability,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Required undocumented + Required *bool `json:"required,omitempty"` + // ReferencedObjects undocumented + ReferencedObjects []ReferencedObject `json:"referencedObjects,omitempty"` + // Type undocumented + Type *AttributeType `json:"type,omitempty"` +} + +// AttributeMapping undocumented +type AttributeMapping struct { + // Object is the base model of AttributeMapping + Object + // DefaultValue undocumented + DefaultValue *string `json:"defaultValue,omitempty"` + // ExportMissingReferences undocumented + ExportMissingReferences *bool `json:"exportMissingReferences,omitempty"` + // FlowBehavior undocumented + FlowBehavior *AttributeFlowBehavior `json:"flowBehavior,omitempty"` + // FlowType undocumented + FlowType *AttributeFlowType `json:"flowType,omitempty"` + // MatchingPriority undocumented + MatchingPriority *int `json:"matchingPriority,omitempty"` + // Source undocumented + Source *AttributeMappingSource `json:"source,omitempty"` + // TargetAttributeName undocumented + TargetAttributeName *string `json:"targetAttributeName,omitempty"` +} + +// AttributeMappingFunctionSchema undocumented +type AttributeMappingFunctionSchema struct { + // Entity is the base model of AttributeMappingFunctionSchema + Entity + // Parameters undocumented + Parameters []AttributeMappingParameterSchema `json:"parameters,omitempty"` +} + +// AttributeMappingParameterSchema undocumented +type AttributeMappingParameterSchema struct { + // Object is the base model of AttributeMappingParameterSchema + Object + // AllowMultipleOccurrences undocumented + AllowMultipleOccurrences *bool `json:"allowMultipleOccurrences,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Required undocumented + Required *bool `json:"required,omitempty"` + // Type undocumented + Type *AttributeType `json:"type,omitempty"` +} + +// AttributeMappingSource undocumented +type AttributeMappingSource struct { + // Object is the base model of AttributeMappingSource + Object + // Expression undocumented + Expression *string `json:"expression,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Parameters undocumented + Parameters []StringKeyAttributeMappingSourceValuePair `json:"parameters,omitempty"` + // Type undocumented + Type *AttributeMappingSourceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go new file mode 100644 index 00000000..d77d9e85 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Audio undocumented +type Audio struct { + // Object is the base model of Audio + Object + // Album undocumented + Album *string `json:"album,omitempty"` + // AlbumArtist undocumented + AlbumArtist *string `json:"albumArtist,omitempty"` + // Artist undocumented + Artist *string `json:"artist,omitempty"` + // Bitrate undocumented + Bitrate *int `json:"bitrate,omitempty"` + // Composers undocumented + Composers *string `json:"composers,omitempty"` + // Copyright undocumented + Copyright *string `json:"copyright,omitempty"` + // Disc undocumented + Disc *int `json:"disc,omitempty"` + // DiscCount undocumented + DiscCount *int `json:"discCount,omitempty"` + // Duration undocumented + Duration *int `json:"duration,omitempty"` + // Genre undocumented + Genre *string `json:"genre,omitempty"` + // HasDrm undocumented + HasDrm *bool `json:"hasDrm,omitempty"` + // IsVariableBitrate undocumented + IsVariableBitrate *bool `json:"isVariableBitrate,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // Track undocumented + Track *int `json:"track,omitempty"` + // TrackCount undocumented + TrackCount *int `json:"trackCount,omitempty"` + // Year undocumented + Year *int `json:"year,omitempty"` +} + +// AudioConferencing undocumented +type AudioConferencing struct { + // Object is the base model of AudioConferencing + Object + // ConferenceID undocumented + ConferenceID *string `json:"conferenceId,omitempty"` + // TollNumber undocumented + TollNumber *string `json:"tollNumber,omitempty"` + // TollFreeNumber undocumented + TollFreeNumber *string `json:"tollFreeNumber,omitempty"` + // DialinURL undocumented + DialinURL *string `json:"dialinUrl,omitempty"` +} + +// AudioRoutingGroup undocumented +type AudioRoutingGroup struct { + // Entity is the base model of AudioRoutingGroup + Entity + // RoutingMode undocumented + RoutingMode *RoutingMode `json:"routingMode,omitempty"` + // Sources undocumented + Sources []string `json:"sources,omitempty"` + // Receivers undocumented + Receivers []string `json:"receivers,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go new file mode 100644 index 00000000..e65ab1d6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go @@ -0,0 +1,109 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AuditActivityInitiator undocumented +type AuditActivityInitiator struct { + // Object is the base model of AuditActivityInitiator + Object + // User undocumented + User *UserIdentity `json:"user,omitempty"` + // App undocumented + App *AppIdentity `json:"app,omitempty"` +} + +// AuditActor undocumented +type AuditActor struct { + // Object is the base model of AuditActor + Object + // Type Actor Type. + Type *string `json:"type,omitempty"` + // UserPermissions List of user permissions when the audit was performed. + UserPermissions []string `json:"userPermissions,omitempty"` + // ApplicationID AAD Application Id. + ApplicationID *string `json:"applicationId,omitempty"` + // ApplicationDisplayName Name of the Application. + ApplicationDisplayName *string `json:"applicationDisplayName,omitempty"` + // UserPrincipalName User Principal Name (UPN). + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // ServicePrincipalName Service Principal Name (SPN). + ServicePrincipalName *string `json:"servicePrincipalName,omitempty"` + // IPAddress IPAddress. + IPAddress *string `json:"ipAddress,omitempty"` + // UserID User Id. + UserID *string `json:"userId,omitempty"` + // UserRoleScopeTags List of user scope tags when the audit was performed. + UserRoleScopeTags []RoleScopeTagInfo `json:"userRoleScopeTags,omitempty"` +} + +// AuditEvent A class containing the properties for Audit Event. +type AuditEvent struct { + // Entity is the base model of AuditEvent + Entity + // DisplayName Event display name. + DisplayName *string `json:"displayName,omitempty"` + // ComponentName Component name. + ComponentName *string `json:"componentName,omitempty"` + // Actor AAD user and application that are associated with the audit event. + Actor *AuditActor `json:"actor,omitempty"` + // Activity Friendly name of the activity. + Activity *string `json:"activity,omitempty"` + // ActivityDateTime The date time in UTC when the activity was performed. + ActivityDateTime *time.Time `json:"activityDateTime,omitempty"` + // ActivityType The type of activity that was being performed. + ActivityType *string `json:"activityType,omitempty"` + // ActivityOperationType The HTTP operation type of the activity. + ActivityOperationType *string `json:"activityOperationType,omitempty"` + // ActivityResult The result of the activity. + ActivityResult *string `json:"activityResult,omitempty"` + // CorrelationID The client request Id that is used to correlate activity within the system. + CorrelationID *UUID `json:"correlationId,omitempty"` + // Resources Resources being modified. + Resources []AuditResource `json:"resources,omitempty"` + // Category Audit category. + Category *string `json:"category,omitempty"` +} + +// AuditLogRoot undocumented +type AuditLogRoot struct { + // Entity is the base model of AuditLogRoot + Entity + // SignIns undocumented + SignIns []SignIn `json:"signIns,omitempty"` + // DirectoryAudits undocumented + DirectoryAudits []DirectoryAudit `json:"directoryAudits,omitempty"` + // RestrictedSignIns undocumented + RestrictedSignIns []RestrictedSignIn `json:"restrictedSignIns,omitempty"` + // DirectoryProvisioning undocumented + DirectoryProvisioning []ProvisioningObjectSummary `json:"directoryProvisioning,omitempty"` + // Provisioning undocumented + Provisioning []ProvisioningObjectSummary `json:"provisioning,omitempty"` +} + +// AuditProperty undocumented +type AuditProperty struct { + // Object is the base model of AuditProperty + Object + // DisplayName Display name. + DisplayName *string `json:"displayName,omitempty"` + // OldValue Old value. + OldValue *string `json:"oldValue,omitempty"` + // NewValue New value. + NewValue *string `json:"newValue,omitempty"` +} + +// AuditResource undocumented +type AuditResource struct { + // Object is the base model of AuditResource + Object + // DisplayName Display name. + DisplayName *string `json:"displayName,omitempty"` + // ModifiedProperties List of modified properties. + ModifiedProperties []AuditProperty `json:"modifiedProperties,omitempty"` + // Type Audit resource's type. + Type *string `json:"type,omitempty"` + // ResourceID Audit resource's Id. + ResourceID *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go new file mode 100644 index 00000000..1f0041de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AuthenticationDetail undocumented +type AuthenticationDetail struct { + // Object is the base model of AuthenticationDetail + Object + // AuthenticationStepDateTime undocumented + AuthenticationStepDateTime *time.Time `json:"authenticationStepDateTime,omitempty"` + // AuthenticationMethod undocumented + AuthenticationMethod *string `json:"authenticationMethod,omitempty"` + // AuthenticationMethodDetail undocumented + AuthenticationMethodDetail *string `json:"authenticationMethodDetail,omitempty"` + // Succeeded undocumented + Succeeded *bool `json:"succeeded,omitempty"` + // AuthenticationStepResultDetail undocumented + AuthenticationStepResultDetail *string `json:"authenticationStepResultDetail,omitempty"` + // AuthenticationStepRequirement undocumented + AuthenticationStepRequirement *string `json:"authenticationStepRequirement,omitempty"` +} + +// AuthenticationRequirementPolicy undocumented +type AuthenticationRequirementPolicy struct { + // Object is the base model of AuthenticationRequirementPolicy + Object + // RequirementProvider undocumented + RequirementProvider *RequirementProvider `json:"requirementProvider,omitempty"` + // Detail undocumented + Detail *string `json:"detail,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go new file mode 100644 index 00000000..7cd007fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go @@ -0,0 +1,21 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AutoLabeling undocumented +type AutoLabeling struct { + // Object is the base model of AutoLabeling + Object + // SensitiveTypeIDs undocumented + SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` +} + +// AutoReviewSettings undocumented +type AutoReviewSettings struct { + // Object is the base model of AutoReviewSettings + Object + // NotReviewedResult undocumented + NotReviewedResult *string `json:"notReviewedResult,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go new file mode 100644 index 00000000..89cf4ea1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// AutomaticRepliesMailTips undocumented +type AutomaticRepliesMailTips struct { + // Object is the base model of AutomaticRepliesMailTips + Object + // Message undocumented + Message *string `json:"message,omitempty"` + // MessageLanguage undocumented + MessageLanguage *LocaleInfo `json:"messageLanguage,omitempty"` + // ScheduledStartTime undocumented + ScheduledStartTime *DateTimeTimeZone `json:"scheduledStartTime,omitempty"` + // ScheduledEndTime undocumented + ScheduledEndTime *DateTimeTimeZone `json:"scheduledEndTime,omitempty"` +} + +// AutomaticRepliesSetting undocumented +type AutomaticRepliesSetting struct { + // Object is the base model of AutomaticRepliesSetting + Object + // Status undocumented + Status *AutomaticRepliesStatus `json:"status,omitempty"` + // ExternalAudience undocumented + ExternalAudience *ExternalAudienceScope `json:"externalAudience,omitempty"` + // ScheduledStartDateTime undocumented + ScheduledStartDateTime *DateTimeTimeZone `json:"scheduledStartDateTime,omitempty"` + // ScheduledEndDateTime undocumented + ScheduledEndDateTime *DateTimeTimeZone `json:"scheduledEndDateTime,omitempty"` + // InternalReplyMessage undocumented + InternalReplyMessage *string `json:"internalReplyMessage,omitempty"` + // ExternalReplyMessage undocumented + ExternalReplyMessage *string `json:"externalReplyMessage,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AverageComparativeScoreModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go new file mode 100644 index 00000000..7bdcfaf5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go @@ -0,0 +1,53 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// AzureADFeatureUsage undocumented +type AzureADFeatureUsage struct { + // Entity is the base model of AzureADFeatureUsage + Entity + // SnapshotDateTime undocumented + SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"` + // FeatureName undocumented + FeatureName *string `json:"featureName,omitempty"` + // Usage undocumented + Usage *int `json:"usage,omitempty"` +} + +// AzureADLicenseUsage undocumented +type AzureADLicenseUsage struct { + // Entity is the base model of AzureADLicenseUsage + Entity + // SnapshotDateTime undocumented + SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"` + // LicenseInfoDetails undocumented + LicenseInfoDetails []LicenseInfoDetail `json:"licenseInfoDetails,omitempty"` +} + +// AzureADUserFeatureUsage undocumented +type AzureADUserFeatureUsage struct { + // Entity is the base model of AzureADUserFeatureUsage + Entity + // LastUpdatedDateTime undocumented + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // LicenseRecommended undocumented + LicenseRecommended *AzureADLicenseType `json:"licenseRecommended,omitempty"` + // LicenseAssigned undocumented + LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"` + // FeatureUsageDetails undocumented + FeatureUsageDetails []FeatureUsageDetail `json:"featureUsageDetails,omitempty"` +} + +// AzureADWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile +type AzureADWindowsAutopilotDeploymentProfile struct { + // WindowsAutopilotDeploymentProfile is the base model of AzureADWindowsAutopilotDeploymentProfile + WindowsAutopilotDeploymentProfile +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go new file mode 100644 index 00000000..81464b5d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// BaseItem undocumented +type BaseItem struct { + // Entity is the base model of BaseItem + Entity + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // ETag undocumented + ETag *string `json:"eTag,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ParentReference undocumented + ParentReference *ItemReference `json:"parentReference,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` + // CreatedByUser undocumented + CreatedByUser *User `json:"createdByUser,omitempty"` + // LastModifiedByUser undocumented + LastModifiedByUser *User `json:"lastModifiedByUser,omitempty"` +} + +// BaseItemVersion undocumented +type BaseItemVersion struct { + // Entity is the base model of BaseItemVersion + Entity + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Publication undocumented + Publication *PublicationFacet `json:"publication,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/BinaryManagementConditionExpressionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go new file mode 100644 index 00000000..1388d0a7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go @@ -0,0 +1,77 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BitLockerFixedDrivePolicy undocumented +type BitLockerFixedDrivePolicy struct { + // Object is the base model of BitLockerFixedDrivePolicy + Object + // EncryptionMethod Select the encryption method for fixed drives. + EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"` + // RequireEncryptionForWriteAccess This policy setting determines whether BitLocker protection is required for fixed data drives to be writable on a computer. + RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"` + // RecoveryOptions This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"` +} + +// BitLockerRecoveryOptions undocumented +type BitLockerRecoveryOptions struct { + // Object is the base model of BitLockerRecoveryOptions + Object + // BlockDataRecoveryAgent Indicates whether to block certificate-based data recovery agent. + BlockDataRecoveryAgent *bool `json:"blockDataRecoveryAgent,omitempty"` + // RecoveryPasswordUsage Indicates whether users are allowed or required to generate a 48-digit recovery password for fixed or system disk. + RecoveryPasswordUsage *ConfigurationUsage `json:"recoveryPasswordUsage,omitempty"` + // RecoveryKeyUsage Indicates whether users are allowed or required to generate a 256-bit recovery key for fixed or system disk. + RecoveryKeyUsage *ConfigurationUsage `json:"recoveryKeyUsage,omitempty"` + // HideRecoveryOptions Indicates whether or not to allow showing recovery options in BitLocker Setup Wizard for fixed or system disk. + HideRecoveryOptions *bool `json:"hideRecoveryOptions,omitempty"` + // EnableRecoveryInformationSaveToStore Indicates whether or not to allow BitLocker recovery information to store in AD DS. + EnableRecoveryInformationSaveToStore *bool `json:"enableRecoveryInformationSaveToStore,omitempty"` + // RecoveryInformationToStore Configure what pieces of BitLocker recovery information are stored to AD DS. + RecoveryInformationToStore *BitLockerRecoveryInformationType `json:"recoveryInformationToStore,omitempty"` + // EnableBitLockerAfterRecoveryInformationToStore Indicates whether or not to enable BitLocker until recovery information is stored in AD DS. + EnableBitLockerAfterRecoveryInformationToStore *bool `json:"enableBitLockerAfterRecoveryInformationToStore,omitempty"` +} + +// BitLockerRemovableDrivePolicy undocumented +type BitLockerRemovableDrivePolicy struct { + // Object is the base model of BitLockerRemovableDrivePolicy + Object + // EncryptionMethod Select the encryption method for removable drives. + EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"` + // RequireEncryptionForWriteAccess Indicates whether to block write access to devices configured in another organization. If requireEncryptionForWriteAccess is false, this value does not affect. + RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"` + // BlockCrossOrganizationWriteAccess This policy setting determines whether BitLocker protection is required for removable data drives to be writable on a computer. + BlockCrossOrganizationWriteAccess *bool `json:"blockCrossOrganizationWriteAccess,omitempty"` +} + +// BitLockerSystemDrivePolicy undocumented +type BitLockerSystemDrivePolicy struct { + // Object is the base model of BitLockerSystemDrivePolicy + Object + // EncryptionMethod Select the encryption method for operating system drives. + EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"` + // StartupAuthenticationRequired Require additional authentication at startup. + StartupAuthenticationRequired *bool `json:"startupAuthenticationRequired,omitempty"` + // StartupAuthenticationBlockWithoutTpmChip Indicates whether to allow BitLocker without a compatible TPM (requires a password or a startup key on a USB flash drive). + StartupAuthenticationBlockWithoutTpmChip *bool `json:"startupAuthenticationBlockWithoutTpmChip,omitempty"` + // StartupAuthenticationTpmUsage Indicates if TPM startup is allowed/required/disallowed. + StartupAuthenticationTpmUsage *ConfigurationUsage `json:"startupAuthenticationTpmUsage,omitempty"` + // StartupAuthenticationTpmPinUsage Indicates if TPM startup pin is allowed/required/disallowed. + StartupAuthenticationTpmPinUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinUsage,omitempty"` + // StartupAuthenticationTpmKeyUsage Indicates if TPM startup key is allowed/required/disallowed. + StartupAuthenticationTpmKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmKeyUsage,omitempty"` + // StartupAuthenticationTpmPinAndKeyUsage Indicates if TPM startup pin key and key are allowed/required/disallowed. + StartupAuthenticationTpmPinAndKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinAndKeyUsage,omitempty"` + // MinimumPinLength Indicates the minimum length of startup pin. Valid values 4 to 20 + MinimumPinLength *int `json:"minimumPinLength,omitempty"` + // RecoveryOptions Allows to recover BitLocker encrypted operating system drives in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"` + // PrebootRecoveryEnableMessageAndURL Enable pre-boot recovery message and Url. If requireStartupAuthentication is false, this value does not affect. + PrebootRecoveryEnableMessageAndURL *bool `json:"prebootRecoveryEnableMessageAndUrl,omitempty"` + // PrebootRecoveryMessage Defines a custom recovery message. + PrebootRecoveryMessage *string `json:"prebootRecoveryMessage,omitempty"` + // PrebootRecoveryURL Defines a custom recovery URL. + PrebootRecoveryURL *string `json:"prebootRecoveryUrl,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BlockAccessActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/BlockAccessActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go new file mode 100644 index 00000000..20c6d777 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go @@ -0,0 +1,221 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BookingAppointment Represents a booked appointment of a service by a customer in a business. +type BookingAppointment struct { + // Entity is the base model of BookingAppointment + Entity + // SelfServiceAppointmentID undocumented + SelfServiceAppointmentID *string `json:"selfServiceAppointmentId,omitempty"` + // CustomerID The id of the booking customer associated with this appointment. + CustomerID *string `json:"customerId,omitempty"` + // CustomerName undocumented + CustomerName *string `json:"customerName,omitempty"` + // CustomerEmailAddress undocumented + CustomerEmailAddress *string `json:"customerEmailAddress,omitempty"` + // CustomerPhone undocumented + CustomerPhone *string `json:"customerPhone,omitempty"` + // CustomerLocation undocumented + CustomerLocation *Location `json:"customerLocation,omitempty"` + // CustomerNotes Notes from the customer associated with this appointment. + CustomerNotes *string `json:"customerNotes,omitempty"` + // ServiceID The id of the booking service associated with this appointment. + ServiceID *string `json:"serviceId,omitempty"` + // ServiceName The name of the booking service associated with this appointment. + ServiceName *string `json:"serviceName,omitempty"` + // Start undocumented + Start *DateTimeTimeZone `json:"start,omitempty"` + // End undocumented + End *DateTimeTimeZone `json:"end,omitempty"` + // Duration undocumented + Duration *Duration `json:"duration,omitempty"` + // PreBuffer undocumented + PreBuffer *Duration `json:"preBuffer,omitempty"` + // PostBuffer undocumented + PostBuffer *Duration `json:"postBuffer,omitempty"` + // ServiceLocation undocumented + ServiceLocation *Location `json:"serviceLocation,omitempty"` + // PriceType undocumented + PriceType *BookingPriceType `json:"priceType,omitempty"` + // Price undocumented + Price *float64 `json:"price,omitempty"` + // ServiceNotes undocumented + ServiceNotes *string `json:"serviceNotes,omitempty"` + // Reminders undocumented + Reminders []BookingReminder `json:"reminders,omitempty"` + // OptOutOfCustomerEmail undocumented + OptOutOfCustomerEmail *bool `json:"optOutOfCustomerEmail,omitempty"` + // StaffMemberIDs undocumented + StaffMemberIDs []string `json:"staffMemberIds,omitempty"` + // InvoiceAmount undocumented + InvoiceAmount *float64 `json:"invoiceAmount,omitempty"` + // InvoiceDate undocumented + InvoiceDate *DateTimeTimeZone `json:"invoiceDate,omitempty"` + // InvoiceID undocumented + InvoiceID *string `json:"invoiceId,omitempty"` + // InvoiceStatus undocumented + InvoiceStatus *BookingInvoiceStatus `json:"invoiceStatus,omitempty"` + // InvoiceURL undocumented + InvoiceURL *string `json:"invoiceUrl,omitempty"` +} + +// BookingBusiness Represents a Microsot Bookings Business. +type BookingBusiness struct { + // BookingNamedEntity is the base model of BookingBusiness + BookingNamedEntity + // BusinessType undocumented + BusinessType *string `json:"businessType,omitempty"` + // Address undocumented + Address *PhysicalAddress `json:"address,omitempty"` + // Phone undocumented + Phone *string `json:"phone,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // WebSiteURL The URL of the business web site. + WebSiteURL *string `json:"webSiteUrl,omitempty"` + // DefaultCurrencyIso undocumented + DefaultCurrencyIso *string `json:"defaultCurrencyIso,omitempty"` + // BusinessHours undocumented + BusinessHours []BookingWorkHours `json:"businessHours,omitempty"` + // SchedulingPolicy undocumented + SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"` + // IsPublished undocumented + IsPublished *bool `json:"isPublished,omitempty"` + // PublicURL undocumented + PublicURL *string `json:"publicUrl,omitempty"` + // Appointments undocumented + Appointments []BookingAppointment `json:"appointments,omitempty"` + // CalendarView undocumented + CalendarView []BookingAppointment `json:"calendarView,omitempty"` + // Customers undocumented + Customers []BookingCustomer `json:"customers,omitempty"` + // Services undocumented + Services []BookingService `json:"services,omitempty"` + // StaffMembers undocumented + StaffMembers []BookingStaffMember `json:"staffMembers,omitempty"` +} + +// BookingCurrency undocumented +type BookingCurrency struct { + // Entity is the base model of BookingCurrency + Entity + // Symbol undocumented + Symbol *string `json:"symbol,omitempty"` +} + +// BookingCustomer Represents a customer of the business. +type BookingCustomer struct { + // BookingPerson is the base model of BookingCustomer + BookingPerson +} + +// BookingNamedEntity Booking entities that provide a display name. +type BookingNamedEntity struct { + // Entity is the base model of BookingNamedEntity + Entity + // DisplayName Display name of this entity. + DisplayName *string `json:"displayName,omitempty"` +} + +// BookingPerson Represents a booking customer or staff member. +type BookingPerson struct { + // BookingNamedEntity is the base model of BookingPerson + BookingNamedEntity + // EmailAddress The e-mail address of this person. + EmailAddress *string `json:"emailAddress,omitempty"` +} + +// BookingReminder undocumented +type BookingReminder struct { + // Object is the base model of BookingReminder + Object + // Offset How much time before an appointment the reminder should be sent. + Offset *Duration `json:"offset,omitempty"` + // Recipients Who should receive the reminder. + Recipients *BookingReminderRecipients `json:"recipients,omitempty"` + // Message Message to send. + Message *string `json:"message,omitempty"` +} + +// BookingSchedulingPolicy undocumented +type BookingSchedulingPolicy struct { + // Object is the base model of BookingSchedulingPolicy + Object + // TimeSlotInterval Duration of each time slot. + TimeSlotInterval *Duration `json:"timeSlotInterval,omitempty"` + // MinimumLeadTime Minimum lead time for bookings and cancellations. + MinimumLeadTime *Duration `json:"minimumLeadTime,omitempty"` + // MaximumAdvance Maximum number of days in advance that a booking can be made. + MaximumAdvance *Duration `json:"maximumAdvance,omitempty"` + // SendConfirmationsToOwner Notify the business via email when a booking is created or changed. + SendConfirmationsToOwner *bool `json:"sendConfirmationsToOwner,omitempty"` + // AllowStaffSelection Allow customers to choose a specific person for the booking. + AllowStaffSelection *bool `json:"allowStaffSelection,omitempty"` +} + +// BookingService Represents a particular service offered by a booking business. +type BookingService struct { + // BookingNamedEntity is the base model of BookingService + BookingNamedEntity + // DefaultDuration undocumented + DefaultDuration *Duration `json:"defaultDuration,omitempty"` + // DefaultLocation undocumented + DefaultLocation *Location `json:"defaultLocation,omitempty"` + // DefaultPrice undocumented + DefaultPrice *float64 `json:"defaultPrice,omitempty"` + // DefaultPriceType undocumented + DefaultPriceType *BookingPriceType `json:"defaultPriceType,omitempty"` + // DefaultReminders The default reminders set in an appointment of this service. + DefaultReminders []BookingReminder `json:"defaultReminders,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // IsHiddenFromCustomers undocumented + IsHiddenFromCustomers *bool `json:"isHiddenFromCustomers,omitempty"` + // Notes undocumented + Notes *string `json:"notes,omitempty"` + // PreBuffer undocumented + PreBuffer *Duration `json:"preBuffer,omitempty"` + // PostBuffer undocumented + PostBuffer *Duration `json:"postBuffer,omitempty"` + // SchedulingPolicy undocumented + SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"` + // StaffMemberIDs undocumented + StaffMemberIDs []string `json:"staffMemberIds,omitempty"` +} + +// BookingStaffMember Represents a staff member who provides services in a business. +type BookingStaffMember struct { + // BookingPerson is the base model of BookingStaffMember + BookingPerson + // AvailabilityIsAffectedByPersonalCalendar undocumented + AvailabilityIsAffectedByPersonalCalendar *bool `json:"availabilityIsAffectedByPersonalCalendar,omitempty"` + // ColorIndex undocumented + ColorIndex *int `json:"colorIndex,omitempty"` + // Role undocumented + Role *BookingStaffRole `json:"role,omitempty"` + // UseBusinessHours undocumented + UseBusinessHours *bool `json:"useBusinessHours,omitempty"` + // WorkingHours undocumented + WorkingHours []BookingWorkHours `json:"workingHours,omitempty"` +} + +// BookingWorkHours undocumented +type BookingWorkHours struct { + // Object is the base model of BookingWorkHours + Object + // Day The day of the week represented by this instance. + Day *DayOfWeek `json:"day,omitempty"` + // TimeSlots A list of start/end times during a day. + TimeSlots []BookingWorkTimeSlot `json:"timeSlots,omitempty"` +} + +// BookingWorkTimeSlot undocumented +type BookingWorkTimeSlot struct { + // Object is the base model of BookingWorkTimeSlot + Object + // Start undocumented + Start *TimeOfDay `json:"start,omitempty"` + // End undocumented + End *TimeOfDay `json:"end,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/BooleanColumnModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/BulkManagedDeviceActionResultModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/BundleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/BundleModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go new file mode 100644 index 00000000..7e0dddf0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// BusinessFlow undocumented +type BusinessFlow struct { + // Entity is the base model of BusinessFlow + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DeDuplicationID undocumented + DeDuplicationID *string `json:"deDuplicationId,omitempty"` + // SchemaID undocumented + SchemaID *string `json:"schemaId,omitempty"` + // CustomData undocumented + CustomData *string `json:"customData,omitempty"` + // RecordVersion undocumented + RecordVersion *string `json:"recordVersion,omitempty"` + // Policy undocumented + Policy *GovernancePolicy `json:"policy,omitempty"` + // PolicyTemplateID undocumented + PolicyTemplateID *string `json:"policyTemplateId,omitempty"` + // Settings undocumented + Settings *BusinessFlowSettings `json:"settings,omitempty"` +} + +// BusinessFlowSettings undocumented +type BusinessFlowSettings struct { + // AccessReviewSettings is the base model of BusinessFlowSettings + AccessReviewSettings + // DurationInDays undocumented + DurationInDays *int `json:"durationInDays,omitempty"` +} + +// BusinessFlowTemplate undocumented +type BusinessFlowTemplate struct { + // Entity is the base model of BusinessFlowTemplate + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CalculatedColumnModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go new file mode 100644 index 00000000..672036fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go @@ -0,0 +1,105 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Calendar undocumented +type Calendar struct { + // Entity is the base model of Calendar + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Color undocumented + Color *CalendarColor `json:"color,omitempty"` + // HexColor undocumented + HexColor *string `json:"hexColor,omitempty"` + // IsDefaultCalendar undocumented + IsDefaultCalendar *bool `json:"isDefaultCalendar,omitempty"` + // ChangeKey undocumented + ChangeKey *string `json:"changeKey,omitempty"` + // CanShare undocumented + CanShare *bool `json:"canShare,omitempty"` + // CanViewPrivateItems undocumented + CanViewPrivateItems *bool `json:"canViewPrivateItems,omitempty"` + // IsShared undocumented + IsShared *bool `json:"isShared,omitempty"` + // IsSharedWithMe undocumented + IsSharedWithMe *bool `json:"isSharedWithMe,omitempty"` + // CanEdit undocumented + CanEdit *bool `json:"canEdit,omitempty"` + // Owner undocumented + Owner *EmailAddress `json:"owner,omitempty"` + // AllowedOnlineMeetingProviders undocumented + AllowedOnlineMeetingProviders []OnlineMeetingProviderType `json:"allowedOnlineMeetingProviders,omitempty"` + // DefaultOnlineMeetingProvider undocumented + DefaultOnlineMeetingProvider *OnlineMeetingProviderType `json:"defaultOnlineMeetingProvider,omitempty"` + // IsTallyingResponses undocumented + IsTallyingResponses *bool `json:"isTallyingResponses,omitempty"` + // IsRemovable undocumented + IsRemovable *bool `json:"isRemovable,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // CalendarPermissions undocumented + CalendarPermissions []CalendarPermission `json:"calendarPermissions,omitempty"` + // Events undocumented + Events []Event `json:"events,omitempty"` + // CalendarView undocumented + CalendarView []Event `json:"calendarView,omitempty"` +} + +// CalendarGroup undocumented +type CalendarGroup struct { + // Entity is the base model of CalendarGroup + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // ClassID undocumented + ClassID *UUID `json:"classId,omitempty"` + // ChangeKey undocumented + ChangeKey *string `json:"changeKey,omitempty"` + // Calendars undocumented + Calendars []Calendar `json:"calendars,omitempty"` +} + +// CalendarPermission undocumented +type CalendarPermission struct { + // Entity is the base model of CalendarPermission + Entity + // EmailAddress undocumented + EmailAddress *EmailAddress `json:"emailAddress,omitempty"` + // IsRemovable undocumented + IsRemovable *bool `json:"isRemovable,omitempty"` + // IsInsideOrganization undocumented + IsInsideOrganization *bool `json:"isInsideOrganization,omitempty"` + // Role undocumented + Role *CalendarRoleType `json:"role,omitempty"` + // AllowedRoles undocumented + AllowedRoles []CalendarRoleType `json:"allowedRoles,omitempty"` +} + +// CalendarSharingMessage undocumented +type CalendarSharingMessage struct { + // Message is the base model of CalendarSharingMessage + Message + // CanAccept undocumented + CanAccept *bool `json:"canAccept,omitempty"` + // SuggestedCalendarName undocumented + SuggestedCalendarName *string `json:"suggestedCalendarName,omitempty"` + // SharingMessageAction undocumented + SharingMessageAction *CalendarSharingMessageAction `json:"sharingMessageAction,omitempty"` + // SharingMessageActions undocumented + SharingMessageActions []CalendarSharingMessageAction `json:"sharingMessageActions,omitempty"` +} + +// CalendarSharingMessageAction undocumented +type CalendarSharingMessageAction struct { + // Object is the base model of CalendarSharingMessageAction + Object + // Importance undocumented + Importance *CalendarSharingActionImportance `json:"importance,omitempty"` + // ActionType undocumented + ActionType *CalendarSharingActionType `json:"actionType,omitempty"` + // Action undocumented + Action *CalendarSharingAction `json:"action,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go new file mode 100644 index 00000000..0430d408 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Call undocumented +type Call struct { + // Entity is the base model of Call + Entity + // State undocumented + State *CallState `json:"state,omitempty"` + // MediaState undocumented + MediaState *CallMediaState `json:"mediaState,omitempty"` + // ResultInfo undocumented + ResultInfo *ResultInfo `json:"resultInfo,omitempty"` + // TerminationReason undocumented + TerminationReason *string `json:"terminationReason,omitempty"` + // Direction undocumented + Direction *CallDirection `json:"direction,omitempty"` + // RingingTimeoutInSeconds undocumented + RingingTimeoutInSeconds *int `json:"ringingTimeoutInSeconds,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // CallbackURI undocumented + CallbackURI *string `json:"callbackUri,omitempty"` + // CallRoutes undocumented + CallRoutes []CallRoute `json:"callRoutes,omitempty"` + // Source undocumented + Source *ParticipantInfo `json:"source,omitempty"` + // Targets undocumented + Targets []InvitationParticipantInfo `json:"targets,omitempty"` + // AnsweredBy undocumented + AnsweredBy *ParticipantInfo `json:"answeredBy,omitempty"` + // RequestedModalities undocumented + RequestedModalities []Modality `json:"requestedModalities,omitempty"` + // ActiveModalities undocumented + ActiveModalities []Modality `json:"activeModalities,omitempty"` + // MediaConfig undocumented + MediaConfig *MediaConfig `json:"mediaConfig,omitempty"` + // ChatInfo undocumented + ChatInfo *ChatInfo `json:"chatInfo,omitempty"` + // CallOptions undocumented + CallOptions *CallOptions `json:"callOptions,omitempty"` + // MeetingInfo undocumented + MeetingInfo *MeetingInfo `json:"meetingInfo,omitempty"` + // MeetingCapability undocumented + MeetingCapability *MeetingCapability `json:"meetingCapability,omitempty"` + // RoutingPolicies undocumented + RoutingPolicies []RoutingPolicy `json:"routingPolicies,omitempty"` + // TenantID undocumented + TenantID *string `json:"tenantId,omitempty"` + // MyParticipantID undocumented + MyParticipantID *string `json:"myParticipantId,omitempty"` + // ToneInfo undocumented + ToneInfo *ToneInfo `json:"toneInfo,omitempty"` + // IncomingContext undocumented + IncomingContext *IncomingContext `json:"incomingContext,omitempty"` + // Participants undocumented + Participants []Participant `json:"participants,omitempty"` + // AudioRoutingGroups undocumented + AudioRoutingGroups []AudioRoutingGroup `json:"audioRoutingGroups,omitempty"` + // Operations undocumented + Operations []CommsOperation `json:"operations,omitempty"` +} + +// CallActivityStatistics undocumented +type CallActivityStatistics struct { + // ActivityStatistics is the base model of CallActivityStatistics + ActivityStatistics + // AfterHours undocumented + AfterHours *Duration `json:"afterHours,omitempty"` +} + +// CallMediaState undocumented +type CallMediaState struct { + // Object is the base model of CallMediaState + Object + // Audio undocumented + Audio *MediaState `json:"audio,omitempty"` +} + +// CallOptions undocumented +type CallOptions struct { + // Object is the base model of CallOptions + Object +} + +// CallRoute undocumented +type CallRoute struct { + // Object is the base model of CallRoute + Object + // RoutingType undocumented + RoutingType *RoutingType `json:"routingType,omitempty"` + // Original undocumented + Original *IdentitySet `json:"original,omitempty"` + // Final undocumented + Final *IdentitySet `json:"final,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CancelMediaProcessingOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go new file mode 100644 index 00000000..29697ce2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go @@ -0,0 +1,49 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// CertificateAuthority undocumented +type CertificateAuthority struct { + // Object is the base model of CertificateAuthority + Object + // IsRootAuthority undocumented + IsRootAuthority *bool `json:"isRootAuthority,omitempty"` + // CertificateRevocationListURL undocumented + CertificateRevocationListURL *string `json:"certificateRevocationListUrl,omitempty"` + // DeltaCertificateRevocationListURL undocumented + DeltaCertificateRevocationListURL *string `json:"deltaCertificateRevocationListUrl,omitempty"` + // Certificate undocumented + Certificate *Binary `json:"certificate,omitempty"` + // Issuer undocumented + Issuer *string `json:"issuer,omitempty"` + // IssuerSki undocumented + IssuerSki *string `json:"issuerSki,omitempty"` +} + +// CertificateBasedAuthConfiguration undocumented +type CertificateBasedAuthConfiguration struct { + // Entity is the base model of CertificateBasedAuthConfiguration + Entity + // CertificateAuthorities undocumented + CertificateAuthorities []CertificateAuthority `json:"certificateAuthorities,omitempty"` +} + +// CertificateConnectorSetting undocumented +type CertificateConnectorSetting struct { + // Object is the base model of CertificateConnectorSetting + Object + // Status Certificate connector status + Status *int `json:"status,omitempty"` + // CertExpiryTime Certificate expire time + CertExpiryTime *time.Time `json:"certExpiryTime,omitempty"` + // EnrollmentError Certificate connector enrollment error + EnrollmentError *string `json:"enrollmentError,omitempty"` + // LastConnectorConnectionTime Last time certificate connector connected + LastConnectorConnectionTime *time.Time `json:"lastConnectorConnectionTime,omitempty"` + // ConnectorVersion Version of certificate connector + ConnectorVersion *string `json:"connectorVersion,omitempty"` + // LastUploadVersion Version of last uploaded certificate connector + LastUploadVersion *int `json:"lastUploadVersion,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CertificationControlModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ChangeTrackedEntityModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ChannelModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go new file mode 100644 index 00000000..77da3278 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go @@ -0,0 +1,169 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Chat undocumented +type Chat struct { + // Entity is the base model of Chat + Entity + // Topic undocumented + Topic *string `json:"topic,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastUpdatedDateTime undocumented + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` + // Members undocumented + Members []ConversationMember `json:"members,omitempty"` + // Messages undocumented + Messages []ChatMessage `json:"messages,omitempty"` + // InstalledApps undocumented + InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"` +} + +// ChatActivityStatistics undocumented +type ChatActivityStatistics struct { + // ActivityStatistics is the base model of ChatActivityStatistics + ActivityStatistics + // AfterHours undocumented + AfterHours *Duration `json:"afterHours,omitempty"` +} + +// ChatInfo undocumented +type ChatInfo struct { + // Object is the base model of ChatInfo + Object + // ThreadID undocumented + ThreadID *string `json:"threadId,omitempty"` + // MessageID undocumented + MessageID *string `json:"messageId,omitempty"` + // ReplyChainMessageID undocumented + ReplyChainMessageID *string `json:"replyChainMessageId,omitempty"` +} + +// ChatMembersNotificationAudience undocumented +type ChatMembersNotificationAudience struct { + // Object is the base model of ChatMembersNotificationAudience + Object +} + +// ChatMessage undocumented +type ChatMessage struct { + // Entity is the base model of ChatMessage + Entity + // ReplyToID undocumented + ReplyToID *string `json:"replyToId,omitempty"` + // From undocumented + From *IdentitySet `json:"from,omitempty"` + // Etag undocumented + Etag *string `json:"etag,omitempty"` + // MessageType undocumented + MessageType *ChatMessageType `json:"messageType,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DeletedDateTime undocumented + DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // Body undocumented + Body *ItemBody `json:"body,omitempty"` + // Summary undocumented + Summary *string `json:"summary,omitempty"` + // Attachments undocumented + Attachments []ChatMessageAttachment `json:"attachments,omitempty"` + // Mentions undocumented + Mentions []ChatMessageMention `json:"mentions,omitempty"` + // Importance undocumented + Importance *ChatMessageImportance `json:"importance,omitempty"` + // PolicyViolation undocumented + PolicyViolation *ChatMessagePolicyViolation `json:"policyViolation,omitempty"` + // Reactions undocumented + Reactions []ChatMessageReaction `json:"reactions,omitempty"` + // Locale undocumented + Locale *string `json:"locale,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` + // Replies undocumented + Replies []ChatMessage `json:"replies,omitempty"` + // HostedContents undocumented + HostedContents []ChatMessageHostedContent `json:"hostedContents,omitempty"` +} + +// ChatMessageAttachment undocumented +type ChatMessageAttachment struct { + // Object is the base model of ChatMessageAttachment + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // ContentType undocumented + ContentType *string `json:"contentType,omitempty"` + // ContentURL undocumented + ContentURL *string `json:"contentUrl,omitempty"` + // Content undocumented + Content *string `json:"content,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ThumbnailURL undocumented + ThumbnailURL *string `json:"thumbnailUrl,omitempty"` +} + +// ChatMessageHostedContent undocumented +type ChatMessageHostedContent struct { + // Entity is the base model of ChatMessageHostedContent + Entity +} + +// ChatMessageMention undocumented +type ChatMessageMention struct { + // Object is the base model of ChatMessageMention + Object + // ID undocumented + ID *int `json:"id,omitempty"` + // MentionText undocumented + MentionText *string `json:"mentionText,omitempty"` + // Mentioned undocumented + Mentioned *IdentitySet `json:"mentioned,omitempty"` +} + +// ChatMessagePolicyViolation undocumented +type ChatMessagePolicyViolation struct { + // Object is the base model of ChatMessagePolicyViolation + Object + // DlpAction undocumented + DlpAction *ChatMessagePolicyViolationDlpActionTypes `json:"dlpAction,omitempty"` + // JustificationText undocumented + JustificationText *string `json:"justificationText,omitempty"` + // PolicyTip undocumented + PolicyTip *ChatMessagePolicyViolationPolicyTip `json:"policyTip,omitempty"` + // UserAction undocumented + UserAction *ChatMessagePolicyViolationUserActionTypes `json:"userAction,omitempty"` + // VerdictDetails undocumented + VerdictDetails *ChatMessagePolicyViolationVerdictDetailsTypes `json:"verdictDetails,omitempty"` +} + +// ChatMessagePolicyViolationPolicyTip undocumented +type ChatMessagePolicyViolationPolicyTip struct { + // Object is the base model of ChatMessagePolicyViolationPolicyTip + Object + // GeneralText undocumented + GeneralText *string `json:"generalText,omitempty"` + // ComplianceURL undocumented + ComplianceURL *string `json:"complianceUrl,omitempty"` + // MatchedConditionDescriptions undocumented + MatchedConditionDescriptions []string `json:"matchedConditionDescriptions,omitempty"` +} + +// ChatMessageReaction undocumented +type ChatMessageReaction struct { + // Object is the base model of ChatMessageReaction + Object + // ReactionType undocumented + ReactionType *string `json:"reactionType,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // User undocumented + User *IdentitySet `json:"user,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ChoiceColumnModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CircularGeofenceManagementConditionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ClassifcationErrorBaseModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go new file mode 100644 index 00000000..e437a5b4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ClassificationError undocumented +type ClassificationError struct { + // ClassifcationErrorBase is the base model of ClassificationError + ClassifcationErrorBase + // Details undocumented + Details []ClassifcationErrorBase `json:"details,omitempty"` +} + +// ClassificationInnerError undocumented +type ClassificationInnerError struct { + // Object is the base model of ClassificationInnerError + Object + // ErrorDateTime undocumented + ErrorDateTime *time.Time `json:"errorDateTime,omitempty"` + // Code undocumented + Code *string `json:"code,omitempty"` + // ClientRequestID undocumented + ClientRequestID *string `json:"clientRequestId,omitempty"` + // ActivityID undocumented + ActivityID *string `json:"activityId,omitempty"` +} + +// ClassificationJobResponse undocumented +type ClassificationJobResponse struct { + // JobResponseBase is the base model of ClassificationJobResponse + JobResponseBase + // Result undocumented + Result *DetectedSensitiveContentWrapper `json:"result,omitempty"` +} + +// ClassificationResult undocumented +type ClassificationResult struct { + // Object is the base model of ClassificationResult + Object + // SensitiveTypeID undocumented + SensitiveTypeID *UUID `json:"sensitiveTypeId,omitempty"` + // Count undocumented + Count *int `json:"count,omitempty"` + // ConfidenceLevel undocumented + ConfidenceLevel *int `json:"confidenceLevel,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go new file mode 100644 index 00000000..ab33298b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go @@ -0,0 +1,75 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// CloudAppSecurityProfile undocumented +type CloudAppSecurityProfile struct { + // Entity is the base model of CloudAppSecurityProfile + Entity + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DeploymentPackageURL undocumented + DeploymentPackageURL *string `json:"deploymentPackageUrl,omitempty"` + // DestinationServiceName undocumented + DestinationServiceName *string `json:"destinationServiceName,omitempty"` + // IsSigned undocumented + IsSigned *bool `json:"isSigned,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Manifest undocumented + Manifest *string `json:"manifest,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // PermissionsRequired undocumented + PermissionsRequired *ApplicationPermissionsRequired `json:"permissionsRequired,omitempty"` + // Platform undocumented + Platform *string `json:"platform,omitempty"` + // PolicyName undocumented + PolicyName *string `json:"policyName,omitempty"` + // Publisher undocumented + Publisher *string `json:"publisher,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// CloudAppSecuritySessionControl undocumented +type CloudAppSecuritySessionControl struct { + // ConditionalAccessSessionControl is the base model of CloudAppSecuritySessionControl + ConditionalAccessSessionControl + // CloudAppSecurityType undocumented + CloudAppSecurityType *CloudAppSecuritySessionControlType `json:"cloudAppSecurityType,omitempty"` +} + +// CloudAppSecurityState undocumented +type CloudAppSecurityState struct { + // Object is the base model of CloudAppSecurityState + Object + // DestinationServiceIP undocumented + DestinationServiceIP *string `json:"destinationServiceIp,omitempty"` + // DestinationServiceName undocumented + DestinationServiceName *string `json:"destinationServiceName,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` +} + +// CloudCommunications undocumented +type CloudCommunications struct { + // Entity is the base model of CloudCommunications + Entity + // Calls undocumented + Calls []Call `json:"calls,omitempty"` + // OnlineMeetings undocumented + OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go new file mode 100644 index 00000000..34c73677 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ColumnDefinition undocumented +type ColumnDefinition struct { + // Entity is the base model of ColumnDefinition + Entity + // Boolean undocumented + Boolean *BooleanColumn `json:"boolean,omitempty"` + // Calculated undocumented + Calculated *CalculatedColumn `json:"calculated,omitempty"` + // Choice undocumented + Choice *ChoiceColumn `json:"choice,omitempty"` + // ColumnGroup undocumented + ColumnGroup *string `json:"columnGroup,omitempty"` + // Currency undocumented + Currency *CurrencyColumn `json:"currency,omitempty"` + // DateTime undocumented + DateTime *DateTimeColumn `json:"dateTime,omitempty"` + // DefaultValue undocumented + DefaultValue *DefaultColumnValue `json:"defaultValue,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // EnforceUniqueValues undocumented + EnforceUniqueValues *bool `json:"enforceUniqueValues,omitempty"` + // Geolocation undocumented + Geolocation *GeolocationColumn `json:"geolocation,omitempty"` + // Hidden undocumented + Hidden *bool `json:"hidden,omitempty"` + // Indexed undocumented + Indexed *bool `json:"indexed,omitempty"` + // Lookup undocumented + Lookup *LookupColumn `json:"lookup,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Number undocumented + Number *NumberColumn `json:"number,omitempty"` + // PersonOrGroup undocumented + PersonOrGroup *PersonOrGroupColumn `json:"personOrGroup,omitempty"` + // ReadOnly undocumented + ReadOnly *bool `json:"readOnly,omitempty"` + // Required undocumented + Required *bool `json:"required,omitempty"` + // Text undocumented + Text *TextColumn `json:"text,omitempty"` +} + +// ColumnLink undocumented +type ColumnLink struct { + // Entity is the base model of ColumnLink + Entity + // Name undocumented + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CommandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CommandModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CommentActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CommentActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go new file mode 100644 index 00000000..74334b77 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CommsApplication undocumented +type CommsApplication struct { + // Entity is the base model of CommsApplication + Entity + // Calls undocumented + Calls []Call `json:"calls,omitempty"` + // OnlineMeetings undocumented + OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"` +} + +// CommsNotification undocumented +type CommsNotification struct { + // Object is the base model of CommsNotification + Object + // ChangeType undocumented + ChangeType *ChangeType `json:"changeType,omitempty"` + // ResourceURL undocumented + ResourceURL *string `json:"resourceUrl,omitempty"` +} + +// CommsNotifications undocumented +type CommsNotifications struct { + // Object is the base model of CommsNotifications + Object + // Value undocumented + Value []CommsNotification `json:"value,omitempty"` +} + +// CommsOperation undocumented +type CommsOperation struct { + // Entity is the base model of CommsOperation + Entity + // Status undocumented + Status *OperationStatus `json:"status,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` + // ResultInfo undocumented + ResultInfo *ResultInfo `json:"resultInfo,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go new file mode 100644 index 00000000..7d792dd8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go @@ -0,0 +1,149 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Company undocumented +type Company struct { + // Entity is the base model of Company + Entity + // SystemVersion undocumented + SystemVersion *string `json:"systemVersion,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // BusinessProfileID undocumented + BusinessProfileID *string `json:"businessProfileId,omitempty"` + // Items undocumented + Items []Item `json:"items,omitempty"` + // Customers undocumented + Customers []Customer `json:"customers,omitempty"` + // Vendors undocumented + Vendors []Vendor `json:"vendors,omitempty"` + // CompanyInformation undocumented + CompanyInformation []CompanyInformation `json:"companyInformation,omitempty"` + // SalesInvoices undocumented + SalesInvoices []SalesInvoice `json:"salesInvoices,omitempty"` + // SalesInvoiceLines undocumented + SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"` + // CustomerPaymentJournals undocumented + CustomerPaymentJournals []CustomerPaymentJournal `json:"customerPaymentJournals,omitempty"` + // CustomerPayments undocumented + CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"` + // Accounts undocumented + Accounts []Account `json:"accounts,omitempty"` + // TaxGroups undocumented + TaxGroups []TaxGroup `json:"taxGroups,omitempty"` + // Journals undocumented + Journals []Journal `json:"journals,omitempty"` + // JournalLines undocumented + JournalLines []JournalLine `json:"journalLines,omitempty"` + // Employees undocumented + Employees []Employee `json:"employees,omitempty"` + // GeneralLedgerEntries undocumented + GeneralLedgerEntries []GeneralLedgerEntry `json:"generalLedgerEntries,omitempty"` + // Currencies undocumented + Currencies []Currency `json:"currencies,omitempty"` + // PaymentMethods undocumented + PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"` + // Dimensions undocumented + Dimensions []Dimension `json:"dimensions,omitempty"` + // DimensionValues undocumented + DimensionValues []DimensionValue `json:"dimensionValues,omitempty"` + // PaymentTerms undocumented + PaymentTerms []PaymentTerm `json:"paymentTerms,omitempty"` + // ShipmentMethods undocumented + ShipmentMethods []ShipmentMethod `json:"shipmentMethods,omitempty"` + // ItemCategories undocumented + ItemCategories []ItemCategory `json:"itemCategories,omitempty"` + // CountriesRegions undocumented + CountriesRegions []CountryRegion `json:"countriesRegions,omitempty"` + // SalesOrders undocumented + SalesOrders []SalesOrder `json:"salesOrders,omitempty"` + // SalesOrderLines undocumented + SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"` + // UnitsOfMeasure undocumented + UnitsOfMeasure []UnitOfMeasure `json:"unitsOfMeasure,omitempty"` + // AgedAccountsReceivable undocumented + AgedAccountsReceivable []AgedAccountsReceivable `json:"agedAccountsReceivable,omitempty"` + // AgedAccountsPayable undocumented + AgedAccountsPayable []AgedAccountsPayable `json:"agedAccountsPayable,omitempty"` + // TaxAreas undocumented + TaxAreas []TaxArea `json:"taxAreas,omitempty"` + // SalesQuotes undocumented + SalesQuotes []SalesQuote `json:"salesQuotes,omitempty"` + // SalesQuoteLines undocumented + SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"` + // SalesCreditMemos undocumented + SalesCreditMemos []SalesCreditMemo `json:"salesCreditMemos,omitempty"` + // SalesCreditMemoLines undocumented + SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"` + // PurchaseInvoices undocumented + PurchaseInvoices []PurchaseInvoice `json:"purchaseInvoices,omitempty"` + // PurchaseInvoiceLines undocumented + PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"` + // Picture undocumented + Picture []Picture `json:"picture,omitempty"` +} + +// CompanyDetail undocumented +type CompanyDetail struct { + // Object is the base model of CompanyDetail + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Pronunciation undocumented + Pronunciation *string `json:"pronunciation,omitempty"` + // Department undocumented + Department *string `json:"department,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // Address undocumented + Address *PhysicalAddress `json:"address,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// CompanyInformation undocumented +type CompanyInformation struct { + // Entity is the base model of CompanyInformation + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Address undocumented + Address *PostalAddressType `json:"address,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // FaxNumber undocumented + FaxNumber *string `json:"faxNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // Website undocumented + Website *string `json:"website,omitempty"` + // TaxRegistrationNumber undocumented + TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // CurrentFiscalYearStartDate undocumented + CurrentFiscalYearStartDate *Date `json:"currentFiscalYearStartDate,omitempty"` + // Industry undocumented + Industry *string `json:"industry,omitempty"` + // Picture undocumented + Picture *Stream `json:"picture,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// CompanyPortalBlockedAction undocumented +type CompanyPortalBlockedAction struct { + // Object is the base model of CompanyPortalBlockedAction + Object + // Platform Device OS/Platform + Platform *DevicePlatformType `json:"platform,omitempty"` + // OwnerType Device ownership type + OwnerType *OwnerType `json:"ownerType,omitempty"` + // Action Device Action + Action *CompanyPortalAction `json:"action,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ComplexExtensionValueModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go new file mode 100644 index 00000000..ca88c6f6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ComplianceInformation undocumented +type ComplianceInformation struct { + // Object is the base model of ComplianceInformation + Object + // CertificationControls undocumented + CertificationControls []CertificationControl `json:"certificationControls,omitempty"` + // CertificationName undocumented + CertificationName *string `json:"certificationName,omitempty"` +} + +// ComplianceManagementPartner Compliance management partner for all platforms +type ComplianceManagementPartner struct { + // Entity is the base model of ComplianceManagementPartner + Entity + // LastHeartbeatDateTime Timestamp of last heartbeat after admin onboarded to the compliance management partner + LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"` + // PartnerState Partner state of this tenant + PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"` + // DisplayName Partner display name + DisplayName *string `json:"displayName,omitempty"` + // MacOsOnboarded Partner onboarded for Mac devices. + MacOsOnboarded *bool `json:"macOsOnboarded,omitempty"` + // WindowsOnboarded Partner onboarded for Windows devices. + WindowsOnboarded *bool `json:"windowsOnboarded,omitempty"` + // AndroidOnboarded Partner onboarded for Android devices. + AndroidOnboarded *bool `json:"androidOnboarded,omitempty"` + // IOSOnboarded Partner onboarded for ios devices. + IOSOnboarded *bool `json:"iosOnboarded,omitempty"` + // MacOsEnrollmentAssignments User groups which enroll Mac devices through partner. + MacOsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"macOsEnrollmentAssignments,omitempty"` + // WindowsEnrollmentAssignments User groups which enroll Windows devices through partner. + WindowsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"windowsEnrollmentAssignments,omitempty"` + // AndroidEnrollmentAssignments User groups which enroll Android devices through partner. + AndroidEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"androidEnrollmentAssignments,omitempty"` + // IOSEnrollmentAssignments User groups which enroll ios devices through partner. + IOSEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"iosEnrollmentAssignments,omitempty"` +} + +// ComplianceManagementPartnerAssignment undocumented +type ComplianceManagementPartnerAssignment struct { + // Object is the base model of ComplianceManagementPartnerAssignment + Object + // Target Group assignment target. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go new file mode 100644 index 00000000..13a53737 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go @@ -0,0 +1,153 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ConditionalAccessApplications undocumented +type ConditionalAccessApplications struct { + // Object is the base model of ConditionalAccessApplications + Object + // IncludeApplications undocumented + IncludeApplications []string `json:"includeApplications,omitempty"` + // ExcludeApplications undocumented + ExcludeApplications []string `json:"excludeApplications,omitempty"` + // IncludeUserActions undocumented + IncludeUserActions []string `json:"includeUserActions,omitempty"` +} + +// ConditionalAccessConditionSet undocumented +type ConditionalAccessConditionSet struct { + // Object is the base model of ConditionalAccessConditionSet + Object + // Applications undocumented + Applications *ConditionalAccessApplications `json:"applications,omitempty"` + // Users undocumented + Users *ConditionalAccessUsers `json:"users,omitempty"` + // SignInRiskLevels undocumented + SignInRiskLevels []RiskLevel `json:"signInRiskLevels,omitempty"` + // Platforms undocumented + Platforms *ConditionalAccessPlatforms `json:"platforms,omitempty"` + // Locations undocumented + Locations *ConditionalAccessLocations `json:"locations,omitempty"` + // ClientAppTypes undocumented + ClientAppTypes []ConditionalAccessClientApp `json:"clientAppTypes,omitempty"` + // DeviceStates undocumented + DeviceStates *ConditionalAccessDeviceStates `json:"deviceStates,omitempty"` +} + +// ConditionalAccessDeviceStates undocumented +type ConditionalAccessDeviceStates struct { + // Object is the base model of ConditionalAccessDeviceStates + Object + // IncludeStates undocumented + IncludeStates []string `json:"includeStates,omitempty"` + // ExcludeStates undocumented + ExcludeStates []string `json:"excludeStates,omitempty"` +} + +// ConditionalAccessGrantControls undocumented +type ConditionalAccessGrantControls struct { + // Object is the base model of ConditionalAccessGrantControls + Object + // Operator undocumented + Operator *string `json:"operator,omitempty"` + // BuiltInControls undocumented + BuiltInControls []ConditionalAccessGrantControl `json:"builtInControls,omitempty"` + // CustomAuthenticationFactors undocumented + CustomAuthenticationFactors []string `json:"customAuthenticationFactors,omitempty"` + // TermsOfUse undocumented + TermsOfUse []string `json:"termsOfUse,omitempty"` +} + +// ConditionalAccessLocations undocumented +type ConditionalAccessLocations struct { + // Object is the base model of ConditionalAccessLocations + Object + // IncludeLocations undocumented + IncludeLocations []string `json:"includeLocations,omitempty"` + // ExcludeLocations undocumented + ExcludeLocations []string `json:"excludeLocations,omitempty"` +} + +// ConditionalAccessPlatforms undocumented +type ConditionalAccessPlatforms struct { + // Object is the base model of ConditionalAccessPlatforms + Object + // IncludePlatforms undocumented + IncludePlatforms []ConditionalAccessDevicePlatform `json:"includePlatforms,omitempty"` + // ExcludePlatforms undocumented + ExcludePlatforms []ConditionalAccessDevicePlatform `json:"excludePlatforms,omitempty"` +} + +// ConditionalAccessPolicy undocumented +type ConditionalAccessPolicy struct { + // Entity is the base model of ConditionalAccessPolicy + Entity + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // State undocumented + State *ConditionalAccessPolicyState `json:"state,omitempty"` + // Conditions undocumented + Conditions *ConditionalAccessConditionSet `json:"conditions,omitempty"` + // GrantControls undocumented + GrantControls *ConditionalAccessGrantControls `json:"grantControls,omitempty"` + // SessionControls undocumented + SessionControls *ConditionalAccessSessionControls `json:"sessionControls,omitempty"` +} + +// ConditionalAccessRoot undocumented +type ConditionalAccessRoot struct { + // Entity is the base model of ConditionalAccessRoot + Entity + // Policies undocumented + Policies []ConditionalAccessPolicy `json:"policies,omitempty"` + // NamedLocations undocumented + NamedLocations []NamedLocation `json:"namedLocations,omitempty"` +} + +// ConditionalAccessSessionControl undocumented +type ConditionalAccessSessionControl struct { + // Object is the base model of ConditionalAccessSessionControl + Object + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` +} + +// ConditionalAccessSessionControls undocumented +type ConditionalAccessSessionControls struct { + // Object is the base model of ConditionalAccessSessionControls + Object + // ApplicationEnforcedRestrictions undocumented + ApplicationEnforcedRestrictions *ApplicationEnforcedRestrictionsSessionControl `json:"applicationEnforcedRestrictions,omitempty"` + // CloudAppSecurity undocumented + CloudAppSecurity *CloudAppSecuritySessionControl `json:"cloudAppSecurity,omitempty"` + // SignInFrequency undocumented + SignInFrequency *SignInFrequencySessionControl `json:"signInFrequency,omitempty"` + // PersistentBrowser undocumented + PersistentBrowser *PersistentBrowserSessionControl `json:"persistentBrowser,omitempty"` +} + +// ConditionalAccessUsers undocumented +type ConditionalAccessUsers struct { + // Object is the base model of ConditionalAccessUsers + Object + // IncludeUsers undocumented + IncludeUsers []string `json:"includeUsers,omitempty"` + // ExcludeUsers undocumented + ExcludeUsers []string `json:"excludeUsers,omitempty"` + // IncludeGroups undocumented + IncludeGroups []string `json:"includeGroups,omitempty"` + // ExcludeGroups undocumented + ExcludeGroups []string `json:"excludeGroups,omitempty"` + // IncludeRoles undocumented + IncludeRoles []string `json:"includeRoles,omitempty"` + // ExcludeRoles undocumented + ExcludeRoles []string `json:"excludeRoles,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go new file mode 100644 index 00000000..39d59b05 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go @@ -0,0 +1,63 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Configuration undocumented +type Configuration struct { + // Object is the base model of Configuration + Object + // AuthorizedApps undocumented + AuthorizedApps []string `json:"authorizedApps,omitempty"` +} + +// ConfigurationManagerAction undocumented +type ConfigurationManagerAction struct { + // Object is the base model of ConfigurationManagerAction + Object + // Action The action type to trigger on Configuration Manager client + Action *ConfigurationManagerActionType `json:"action,omitempty"` +} + +// ConfigurationManagerClientEnabledFeatures undocumented +type ConfigurationManagerClientEnabledFeatures struct { + // Object is the base model of ConfigurationManagerClientEnabledFeatures + Object + // Inventory Whether inventory is managed by Intune + Inventory *bool `json:"inventory,omitempty"` + // ModernApps Whether modern application is managed by Intune + ModernApps *bool `json:"modernApps,omitempty"` + // ResourceAccess Whether resource access is managed by Intune + ResourceAccess *bool `json:"resourceAccess,omitempty"` + // DeviceConfiguration Whether device configuration is managed by Intune + DeviceConfiguration *bool `json:"deviceConfiguration,omitempty"` + // CompliancePolicy Whether compliance policy is managed by Intune + CompliancePolicy *bool `json:"compliancePolicy,omitempty"` + // WindowsUpdateForBusiness Whether Windows Update for Business is managed by Intune + WindowsUpdateForBusiness *bool `json:"windowsUpdateForBusiness,omitempty"` + // EndpointProtection Whether Endpoint Protection is managed by Intune + EndpointProtection *bool `json:"endpointProtection,omitempty"` + // OfficeApps Whether Office application is managed by Intune + OfficeApps *bool `json:"officeApps,omitempty"` +} + +// ConfigurationManagerClientHealthState undocumented +type ConfigurationManagerClientHealthState struct { + // Object is the base model of ConfigurationManagerClientHealthState + Object + // State Current configuration manager client state. + State *ConfigurationManagerClientState `json:"state,omitempty"` + // ErrorCode Error code for failed state. + ErrorCode *int `json:"errorCode,omitempty"` + // LastSyncDateTime Datetime fo last sync with configuration manager management point. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` +} + +// ConfigurationManagerClientInformation undocumented +type ConfigurationManagerClientInformation struct { + // Object is the base model of ConfigurationManagerClientInformation + Object + // ClientIdentifier Configuration Manager Client Id from SCCM + ClientIdentifier *string `json:"clientIdentifier,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go new file mode 100644 index 00000000..72bdbcf9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go @@ -0,0 +1,105 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Contact undocumented +type Contact struct { + // OutlookItem is the base model of Contact + OutlookItem + // ParentFolderID undocumented + ParentFolderID *string `json:"parentFolderId,omitempty"` + // Birthday undocumented + Birthday *time.Time `json:"birthday,omitempty"` + // FileAs undocumented + FileAs *string `json:"fileAs,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GivenName undocumented + GivenName *string `json:"givenName,omitempty"` + // Initials undocumented + Initials *string `json:"initials,omitempty"` + // MiddleName undocumented + MiddleName *string `json:"middleName,omitempty"` + // NickName undocumented + NickName *string `json:"nickName,omitempty"` + // Surname undocumented + Surname *string `json:"surname,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // YomiGivenName undocumented + YomiGivenName *string `json:"yomiGivenName,omitempty"` + // YomiSurname undocumented + YomiSurname *string `json:"yomiSurname,omitempty"` + // YomiCompanyName undocumented + YomiCompanyName *string `json:"yomiCompanyName,omitempty"` + // Generation undocumented + Generation *string `json:"generation,omitempty"` + // EmailAddresses undocumented + EmailAddresses []TypedEmailAddress `json:"emailAddresses,omitempty"` + // Websites undocumented + Websites []Website `json:"websites,omitempty"` + // ImAddresses undocumented + ImAddresses []string `json:"imAddresses,omitempty"` + // JobTitle undocumented + JobTitle *string `json:"jobTitle,omitempty"` + // CompanyName undocumented + CompanyName *string `json:"companyName,omitempty"` + // Department undocumented + Department *string `json:"department,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // Profession undocumented + Profession *string `json:"profession,omitempty"` + // AssistantName undocumented + AssistantName *string `json:"assistantName,omitempty"` + // Manager undocumented + Manager *string `json:"manager,omitempty"` + // Phones undocumented + Phones []Phone `json:"phones,omitempty"` + // PostalAddresses undocumented + PostalAddresses []PhysicalAddress `json:"postalAddresses,omitempty"` + // SpouseName undocumented + SpouseName *string `json:"spouseName,omitempty"` + // PersonalNotes undocumented + PersonalNotes *string `json:"personalNotes,omitempty"` + // Children undocumented + Children []string `json:"children,omitempty"` + // WeddingAnniversary undocumented + WeddingAnniversary *Date `json:"weddingAnniversary,omitempty"` + // Gender undocumented + Gender *string `json:"gender,omitempty"` + // IsFavorite undocumented + IsFavorite *bool `json:"isFavorite,omitempty"` + // Flag undocumented + Flag *FollowupFlag `json:"flag,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Photo undocumented + Photo *ProfilePhoto `json:"photo,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` +} + +// ContactFolder undocumented +type ContactFolder struct { + // Entity is the base model of ContactFolder + Entity + // ParentFolderID undocumented + ParentFolderID *string `json:"parentFolderId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // WellKnownName undocumented + WellKnownName *string `json:"wellKnownName,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Contacts undocumented + Contacts []Contact `json:"contacts,omitempty"` + // ChildFolders undocumented + ChildFolders []ContactFolder `json:"childFolders,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go new file mode 100644 index 00000000..50b13c25 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go @@ -0,0 +1,99 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ContentClassification undocumented +type ContentClassification struct { + // Object is the base model of ContentClassification + Object + // SensitiveTypeID undocumented + SensitiveTypeID *string `json:"sensitiveTypeId,omitempty"` + // UniqueCount undocumented + UniqueCount *int `json:"uniqueCount,omitempty"` + // Confidence undocumented + Confidence *int `json:"confidence,omitempty"` + // Matches undocumented + Matches []MatchLocation `json:"matches,omitempty"` +} + +// ContentInfo undocumented +type ContentInfo struct { + // Object is the base model of ContentInfo + Object + // Format undocumented + Format *ContentFormat `json:"format,omitempty"` + // State undocumented + State *ContentState `json:"state,omitempty"` + // Identifier undocumented + Identifier *string `json:"identifier,omitempty"` + // Metadata undocumented + Metadata []KeyValuePair `json:"metadata,omitempty"` +} + +// ContentMetadata undocumented +type ContentMetadata struct { + // Object is the base model of ContentMetadata + Object +} + +// ContentProperties undocumented +type ContentProperties struct { + // Object is the base model of ContentProperties + Object + // Extensions undocumented + Extensions []string `json:"extensions,omitempty"` + // Metadata undocumented + Metadata *ContentMetadata `json:"metadata,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` +} + +// ContentType undocumented +type ContentType struct { + // Entity is the base model of ContentType + Entity + // Description undocumented + Description *string `json:"description,omitempty"` + // Group undocumented + Group *string `json:"group,omitempty"` + // Hidden undocumented + Hidden *bool `json:"hidden,omitempty"` + // InheritedFrom undocumented + InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Order undocumented + Order *ContentTypeOrder `json:"order,omitempty"` + // ParentID undocumented + ParentID *string `json:"parentId,omitempty"` + // ReadOnly undocumented + ReadOnly *bool `json:"readOnly,omitempty"` + // Sealed undocumented + Sealed *bool `json:"sealed,omitempty"` + // ColumnLinks undocumented + ColumnLinks []ColumnLink `json:"columnLinks,omitempty"` +} + +// ContentTypeInfo undocumented +type ContentTypeInfo struct { + // Object is the base model of ContentTypeInfo + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// ContentTypeOrder undocumented +type ContentTypeOrder struct { + // Object is the base model of ContentTypeOrder + Object + // Default undocumented + Default *bool `json:"default,omitempty"` + // Position undocumented + Position *int `json:"position,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContractModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ContractModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ControlScoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ControlScoreModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go new file mode 100644 index 00000000..866aba53 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go @@ -0,0 +1,63 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Conversation undocumented +type Conversation struct { + // Entity is the base model of Conversation + Entity + // Topic undocumented + Topic *string `json:"topic,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // LastDeliveredDateTime undocumented + LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"` + // UniqueSenders undocumented + UniqueSenders []string `json:"uniqueSenders,omitempty"` + // Preview undocumented + Preview *string `json:"preview,omitempty"` + // Threads undocumented + Threads []ConversationThread `json:"threads,omitempty"` +} + +// ConversationMember undocumented +type ConversationMember struct { + // Entity is the base model of ConversationMember + Entity + // Roles undocumented + Roles []string `json:"roles,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// ConversationMemberRoles undocumented +type ConversationMemberRoles struct { + // Object is the base model of ConversationMemberRoles + Object +} + +// ConversationThread undocumented +type ConversationThread struct { + // Entity is the base model of ConversationThread + Entity + // ToRecipients undocumented + ToRecipients []Recipient `json:"toRecipients,omitempty"` + // Topic undocumented + Topic *string `json:"topic,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // LastDeliveredDateTime undocumented + LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"` + // UniqueSenders undocumented + UniqueSenders []string `json:"uniqueSenders,omitempty"` + // CcRecipients undocumented + CcRecipients []Recipient `json:"ccRecipients,omitempty"` + // Preview undocumented + Preview *string `json:"preview,omitempty"` + // IsLocked undocumented + IsLocked *bool `json:"isLocked,omitempty"` + // Posts undocumented + Posts []Post `json:"posts,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConvertIDResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ConvertIDResultModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CopyNotebookModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CopyNotebookModelModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go new file mode 100644 index 00000000..bffb694b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// CountryNamedLocation undocumented +type CountryNamedLocation struct { + // NamedLocation is the base model of CountryNamedLocation + NamedLocation + // CountriesAndRegions undocumented + CountriesAndRegions []string `json:"countriesAndRegions,omitempty"` + // IncludeUnknownCountriesAndRegions undocumented + IncludeUnknownCountriesAndRegions *bool `json:"includeUnknownCountriesAndRegions,omitempty"` +} + +// CountryRegion undocumented +type CountryRegion struct { + // Entity is the base model of CountryRegion + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // AddressFormat undocumented + AddressFormat *string `json:"addressFormat,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CreateActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CreateActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go new file mode 100644 index 00000000..7bb1fc0a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go @@ -0,0 +1,75 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Credential undocumented +type Credential struct { + // Object is the base model of Credential + Object + // FieldID undocumented + FieldID *string `json:"fieldId,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// CredentialSingleSignOnExtension undocumented +type CredentialSingleSignOnExtension struct { + // SingleSignOnExtension is the base model of CredentialSingleSignOnExtension + SingleSignOnExtension + // ExtensionIdentifier Gets or sets the bundle ID of the app extension that performs SSO for the specified URLs. + ExtensionIdentifier *string `json:"extensionIdentifier,omitempty"` + // TeamIdentifier Gets or sets the team ID of the app extension that performs SSO for the specified URLs. + TeamIdentifier *string `json:"teamIdentifier,omitempty"` + // Domains Gets or sets a list of hosts or domain names for which the app extension performs SSO. + Domains []string `json:"domains,omitempty"` + // Realm Gets or sets the case-sensitive realm name for this profile. + Realm *string `json:"realm,omitempty"` + // Configurations Gets or sets a list of typed key-value pairs used to configure Credential-type profiles. This collection can contain a maximum of 500 elements. + Configurations []KeyTypedValuePair `json:"configurations,omitempty"` +} + +// CredentialUsageSummary undocumented +type CredentialUsageSummary struct { + // Entity is the base model of CredentialUsageSummary + Entity + // Feature undocumented + Feature *FeatureType `json:"feature,omitempty"` + // SuccessfulActivityCount undocumented + SuccessfulActivityCount *int `json:"successfulActivityCount,omitempty"` + // FailureActivityCount undocumented + FailureActivityCount *int `json:"failureActivityCount,omitempty"` + // AuthMethod undocumented + AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"` +} + +// CredentialUserRegistrationCount undocumented +type CredentialUserRegistrationCount struct { + // Entity is the base model of CredentialUserRegistrationCount + Entity + // TotalUserCount undocumented + TotalUserCount *int `json:"totalUserCount,omitempty"` + // UserRegistrationCounts undocumented + UserRegistrationCounts []UserRegistrationCount `json:"userRegistrationCounts,omitempty"` +} + +// CredentialUserRegistrationDetails undocumented +type CredentialUserRegistrationDetails struct { + // Entity is the base model of CredentialUserRegistrationDetails + Entity + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // AuthMethods undocumented + AuthMethods []RegistrationAuthMethod `json:"authMethods,omitempty"` + // IsRegistered undocumented + IsRegistered *bool `json:"isRegistered,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // IsCapable undocumented + IsCapable *bool `json:"isCapable,omitempty"` + // IsMFARegistered undocumented + IsMFARegistered *bool `json:"isMfaRegistered,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go new file mode 100644 index 00000000..3157e8e3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Currency undocumented +type Currency struct { + // Entity is the base model of Currency + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Symbol undocumented + Symbol *string `json:"symbol,omitempty"` + // AmountDecimalPlaces undocumented + AmountDecimalPlaces *string `json:"amountDecimalPlaces,omitempty"` + // AmountRoundingPrecision undocumented + AmountRoundingPrecision *int `json:"amountRoundingPrecision,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// CurrencyColumn undocumented +type CurrencyColumn struct { + // Object is the base model of CurrencyColumn + Object + // Locale undocumented + Locale *string `json:"locale,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CurrentLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CurrentLabelModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go new file mode 100644 index 00000000..33d0fa72 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// CustomAction undocumented +type CustomAction struct { + // InformationProtectionAction is the base model of CustomAction + InformationProtectionAction + // Name undocumented + Name *string `json:"name,omitempty"` + // Properties undocumented + Properties []KeyValuePair `json:"properties,omitempty"` +} + +// CustomSubjectAlternativeName undocumented +type CustomSubjectAlternativeName struct { + // Object is the base model of CustomSubjectAlternativeName + Object + // SanType Custom SAN Type. + SanType *SubjectAlternativeNameType `json:"sanType,omitempty"` + // Name Custom SAN Name + Name *string `json:"name,omitempty"` +} + +// CustomTimeZone undocumented +type CustomTimeZone struct { + // TimeZoneBase is the base model of CustomTimeZone + TimeZoneBase + // Bias undocumented + Bias *int `json:"bias,omitempty"` + // StandardOffset undocumented + StandardOffset *StandardTimeZoneOffset `json:"standardOffset,omitempty"` + // DaylightOffset undocumented + DaylightOffset *DaylightTimeZoneOffset `json:"daylightOffset,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go new file mode 100644 index 00000000..b9e435fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Customer undocumented +type Customer struct { + // Entity is the base model of Customer + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Address undocumented + Address *PostalAddressType `json:"address,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // Website undocumented + Website *string `json:"website,omitempty"` + // TaxLiable undocumented + TaxLiable *bool `json:"taxLiable,omitempty"` + // TaxAreaID undocumented + TaxAreaID *UUID `json:"taxAreaId,omitempty"` + // TaxAreaDisplayName undocumented + TaxAreaDisplayName *string `json:"taxAreaDisplayName,omitempty"` + // TaxRegistrationNumber undocumented + TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // PaymentTermsID undocumented + PaymentTermsID *UUID `json:"paymentTermsId,omitempty"` + // ShipmentMethodID undocumented + ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"` + // PaymentMethodID undocumented + PaymentMethodID *UUID `json:"paymentMethodId,omitempty"` + // Blocked undocumented + Blocked *string `json:"blocked,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Picture undocumented + Picture []Picture `json:"picture,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` + // PaymentTerm undocumented + PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"` + // ShipmentMethod undocumented + ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"` + // PaymentMethod undocumented + PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"` +} + +// CustomerPayment undocumented +type CustomerPayment struct { + // Entity is the base model of CustomerPayment + Entity + // JournalDisplayName undocumented + JournalDisplayName *string `json:"journalDisplayName,omitempty"` + // LineNumber undocumented + LineNumber *int `json:"lineNumber,omitempty"` + // CustomerID undocumented + CustomerID *UUID `json:"customerId,omitempty"` + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // ContactID undocumented + ContactID *string `json:"contactId,omitempty"` + // PostingDate undocumented + PostingDate *Date `json:"postingDate,omitempty"` + // DocumentNumber undocumented + DocumentNumber *string `json:"documentNumber,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // Amount undocumented + Amount *int `json:"amount,omitempty"` + // AppliesToInvoiceID undocumented + AppliesToInvoiceID *UUID `json:"appliesToInvoiceId,omitempty"` + // AppliesToInvoiceNumber undocumented + AppliesToInvoiceNumber *string `json:"appliesToInvoiceNumber,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Customer undocumented + Customer *Customer `json:"customer,omitempty"` +} + +// CustomerPaymentJournal undocumented +type CustomerPaymentJournal struct { + // Entity is the base model of CustomerPaymentJournal + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // BalancingAccountID undocumented + BalancingAccountID *UUID `json:"balancingAccountId,omitempty"` + // BalancingAccountNumber undocumented + BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"` + // CustomerPayments undocumented + CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DailyScheduleModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go new file mode 100644 index 00000000..bd1f5ca4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go @@ -0,0 +1,93 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// DataClassificationService undocumented +type DataClassificationService struct { + // Entity is the base model of DataClassificationService + Entity + // ExactMatchDataStores undocumented + ExactMatchDataStores []ExactMatchDataStore `json:"exactMatchDataStores,omitempty"` + // SensitiveTypes undocumented + SensitiveTypes []SensitiveType `json:"sensitiveTypes,omitempty"` + // Jobs undocumented + Jobs []JobResponseBase `json:"jobs,omitempty"` + // ClassifyFileJobs undocumented + ClassifyFileJobs []JobResponseBase `json:"classifyFileJobs,omitempty"` + // ClassifyTextJobs undocumented + ClassifyTextJobs []JobResponseBase `json:"classifyTextJobs,omitempty"` + // EvaluateLabelJobs undocumented + EvaluateLabelJobs []JobResponseBase `json:"evaluateLabelJobs,omitempty"` + // EvaluateDlpPoliciesJobs undocumented + EvaluateDlpPoliciesJobs []JobResponseBase `json:"evaluateDlpPoliciesJobs,omitempty"` + // LabelsAndPoliciesEvaluationJobs undocumented + LabelsAndPoliciesEvaluationJobs []JobResponseBase `json:"labelsAndPoliciesEvaluationJobs,omitempty"` + // ClassifyText undocumented + ClassifyText []TextClassificationRequestObject `json:"classifyText,omitempty"` + // ClassifyFile undocumented + ClassifyFile []FileClassificationRequestObject `json:"classifyFile,omitempty"` + // SensitivityLabels undocumented + SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"` + // ExactMatchUploadAgents undocumented + ExactMatchUploadAgents []ExactMatchUploadAgent `json:"exactMatchUploadAgents,omitempty"` +} + +// DataLossPreventionPolicy undocumented +type DataLossPreventionPolicy struct { + // Entity is the base model of DataLossPreventionPolicy + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` +} + +// DataPolicyOperation undocumented +type DataPolicyOperation struct { + // Entity is the base model of DataPolicyOperation + Entity + // CompletedDateTime undocumented + CompletedDateTime *time.Time `json:"completedDateTime,omitempty"` + // Status undocumented + Status *DataPolicyOperationStatus `json:"status,omitempty"` + // StorageLocation undocumented + StorageLocation *string `json:"storageLocation,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // SubmittedDateTime undocumented + SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"` + // Progress undocumented + Progress *float64 `json:"progress,omitempty"` +} + +// DataSharingConsent Data sharing consent information. +type DataSharingConsent struct { + // Entity is the base model of DataSharingConsent + Entity + // ServiceDisplayName The display name of the service work flow + ServiceDisplayName *string `json:"serviceDisplayName,omitempty"` + // TermsURL The TermsUrl for the data sharing consent + TermsURL *string `json:"termsUrl,omitempty"` + // Granted The granted state for the data sharing consent + Granted *bool `json:"granted,omitempty"` + // GrantDateTime The time consent was granted for this account + GrantDateTime *time.Time `json:"grantDateTime,omitempty"` + // GrantedByUpn The Upn of the user that granted consent for this account + GrantedByUpn *string `json:"grantedByUpn,omitempty"` + // GrantedByUserID The UserId of the user that granted consent for this account + GrantedByUserID *string `json:"grantedByUserId,omitempty"` +} + +// DataStoreField undocumented +type DataStoreField struct { + // Object is the base model of DataStoreField + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Unique undocumented + Unique *bool `json:"unique,omitempty"` + // Searchable undocumented + Searchable *bool `json:"searchable,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go new file mode 100644 index 00000000..5845f4fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DateTimeColumn undocumented +type DateTimeColumn struct { + // Object is the base model of DateTimeColumn + Object + // DisplayAs undocumented + DisplayAs *string `json:"displayAs,omitempty"` + // Format undocumented + Format *string `json:"format,omitempty"` +} + +// DateTimeTimeZone undocumented +type DateTimeTimeZone struct { + // Object is the base model of DateTimeTimeZone + Object + // DateTime undocumented + DateTime *string `json:"dateTime,omitempty"` + // TimeZone undocumented + TimeZone *string `json:"timeZone,omitempty"` +} + +// DateTimeTimeZoneType undocumented +type DateTimeTimeZoneType struct { + // Object is the base model of DateTimeTimeZoneType + Object + // DateTime undocumented + DateTime *string `json:"dateTime,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DaylightTimeZoneOffsetModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go new file mode 100644 index 00000000..686ddfe1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go @@ -0,0 +1,93 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DefaultColumnValue undocumented +type DefaultColumnValue struct { + // Object is the base model of DefaultColumnValue + Object + // Formula undocumented + Formula *string `json:"formula,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// DefaultDeviceCompliancePolicy Default device compliance policy rules that are enforced account wide. +type DefaultDeviceCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of DefaultDeviceCompliancePolicy + DeviceCompliancePolicy +} + +// DefaultManagedAppProtection Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy +type DefaultManagedAppProtection struct { + // ManagedAppProtection is the base model of DefaultManagedAppProtection + ManagedAppProtection + // AppDataEncryptionType Type of encryption which should be used for data in a managed app. (iOS Only) + AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"` + // ScreenCaptureBlocked Indicates whether screen capture is blocked. (Android only) + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // EncryptAppData Indicates whether managed-app data should be encrypted. (Android only) + EncryptAppData *bool `json:"encryptAppData,omitempty"` + // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only) + DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"` + // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data. (iOS Only) + MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"` + // CustomSettings A set of string key and string value pairs to be sent to the affected users, unalterned by this service + CustomSettings []KeyValuePair `json:"customSettings,omitempty"` + // DeployedAppCount Count of apps to which the current policy is deployed. + DeployedAppCount *int `json:"deployedAppCount,omitempty"` + // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only) + MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"` + // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only) + MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"` + // ExemptedAppProtocols iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only) + ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"` + // ExemptedAppPackages Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only) + ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"` + // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only) + FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"` + // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data. + MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"` + // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data. (Android only) + MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"` + // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work. (iOS Only) + AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"` + // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. (iOS Only) + AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"` + // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work. (Android only) + AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"` + // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed. (Android only) + AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"` + // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app. (iOS Only) + ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"` + // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False. (iOS Only) + FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"` + // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps. (iOS Only) + DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"` + // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps. (iOS Only) + ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"` + // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work. + RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"` + // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails. + AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"` + // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work. + RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"` + // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails. + AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"` + // CustomBrowserProtocol A custom browser protocol to open weblink on iOS. (iOS only) + CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"` + // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android. (Android only) + CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"` + // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android. (Android only) + CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"` + // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked + MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"` + // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning + MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"` + // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped + MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"` + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` + // DeploymentSummary undocumented + DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DelegatedPermissionClassificationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go new file mode 100644 index 00000000..d93fd856 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go @@ -0,0 +1,21 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DeleteAction undocumented +type DeleteAction struct { + // Object is the base model of DeleteAction + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // ObjectType undocumented + ObjectType *string `json:"objectType,omitempty"` +} + +// DeleteUserFromSharedAppleDeviceActionResult undocumented +type DeleteUserFromSharedAppleDeviceActionResult struct { + // DeviceActionResult is the base model of DeleteUserFromSharedAppleDeviceActionResult + DeviceActionResult + // UserPrincipalName User principal name of the user to be deleted + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DeletedModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DeletedModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go new file mode 100644 index 00000000..aabdf0c3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DeliveryOptimizationBandwidth undocumented +type DeliveryOptimizationBandwidth struct { + // Object is the base model of DeliveryOptimizationBandwidth + Object +} + +// DeliveryOptimizationBandwidthAbsolute undocumented +type DeliveryOptimizationBandwidthAbsolute struct { + // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthAbsolute + DeliveryOptimizationBandwidth + // MaximumDownloadBandwidthInKilobytesPerSecond Specifies the maximum download bandwidth in KiloBytes/second that the device can use across all concurrent download activities using Delivery Optimization. Valid values 0 to 4294967295 + MaximumDownloadBandwidthInKilobytesPerSecond *int `json:"maximumDownloadBandwidthInKilobytesPerSecond,omitempty"` + // MaximumUploadBandwidthInKilobytesPerSecond Specifies the maximum upload bandwidth in KiloBytes/second that a device will use across all concurrent upload activity using Delivery Optimization (0-4000000). Valid values 0 to 4000000 + MaximumUploadBandwidthInKilobytesPerSecond *int `json:"maximumUploadBandwidthInKilobytesPerSecond,omitempty"` +} + +// DeliveryOptimizationBandwidthBusinessHoursLimit undocumented +type DeliveryOptimizationBandwidthBusinessHoursLimit struct { + // Object is the base model of DeliveryOptimizationBandwidthBusinessHoursLimit + Object + // BandwidthBeginBusinessHours Specifies the beginning of business hours using a 24-hour clock (0-23). Valid values 0 to 23 + BandwidthBeginBusinessHours *int `json:"bandwidthBeginBusinessHours,omitempty"` + // BandwidthEndBusinessHours Specifies the end of business hours using a 24-hour clock (0-23). Valid values 0 to 23 + BandwidthEndBusinessHours *int `json:"bandwidthEndBusinessHours,omitempty"` + // BandwidthPercentageDuringBusinessHours Specifies the percentage of bandwidth to limit during business hours (0-100). Valid values 0 to 100 + BandwidthPercentageDuringBusinessHours *int `json:"bandwidthPercentageDuringBusinessHours,omitempty"` + // BandwidthPercentageOutsideBusinessHours Specifies the percentage of bandwidth to limit outsidse business hours (0-100). Valid values 0 to 100 + BandwidthPercentageOutsideBusinessHours *int `json:"bandwidthPercentageOutsideBusinessHours,omitempty"` +} + +// DeliveryOptimizationBandwidthHoursWithPercentage undocumented +type DeliveryOptimizationBandwidthHoursWithPercentage struct { + // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthHoursWithPercentage + DeliveryOptimizationBandwidth + // BandwidthBackgroundPercentageHours Background download percentage hours. + BandwidthBackgroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthBackgroundPercentageHours,omitempty"` + // BandwidthForegroundPercentageHours Foreground download percentage hours. + BandwidthForegroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthForegroundPercentageHours,omitempty"` +} + +// DeliveryOptimizationBandwidthPercentage undocumented +type DeliveryOptimizationBandwidthPercentage struct { + // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthPercentage + DeliveryOptimizationBandwidth + // MaximumBackgroundBandwidthPercentage Specifies the maximum background download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100 + MaximumBackgroundBandwidthPercentage *int `json:"maximumBackgroundBandwidthPercentage,omitempty"` + // MaximumForegroundBandwidthPercentage Specifies the maximum foreground download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100 + MaximumForegroundBandwidthPercentage *int `json:"maximumForegroundBandwidthPercentage,omitempty"` +} + +// DeliveryOptimizationGroupIDCustom undocumented +type DeliveryOptimizationGroupIDCustom struct { + // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDCustom + DeliveryOptimizationGroupIDSource + // GroupIDCustom Specifies an arbitrary group ID that the device belongs to + GroupIDCustom *string `json:"groupIdCustom,omitempty"` +} + +// DeliveryOptimizationGroupIDSource undocumented +type DeliveryOptimizationGroupIDSource struct { + // Object is the base model of DeliveryOptimizationGroupIDSource + Object +} + +// DeliveryOptimizationGroupIDSourceOptions undocumented +type DeliveryOptimizationGroupIDSourceOptions struct { + // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDSourceOptions + DeliveryOptimizationGroupIDSource + // GroupIDSourceOption Set this policy to restrict peer selection to a specific source. + GroupIDSourceOption *DeliveryOptimizationGroupIDOptionsType `json:"groupIdSourceOption,omitempty"` +} + +// DeliveryOptimizationMaxCacheSize undocumented +type DeliveryOptimizationMaxCacheSize struct { + // Object is the base model of DeliveryOptimizationMaxCacheSize + Object +} + +// DeliveryOptimizationMaxCacheSizeAbsolute undocumented +type DeliveryOptimizationMaxCacheSizeAbsolute struct { + // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizeAbsolute + DeliveryOptimizationMaxCacheSize + // MaximumCacheSizeInGigabytes Specifies the maximum size in GB of Delivery Optimization cache. Valid values 0 to 4294967295 + MaximumCacheSizeInGigabytes *int `json:"maximumCacheSizeInGigabytes,omitempty"` +} + +// DeliveryOptimizationMaxCacheSizePercentage undocumented +type DeliveryOptimizationMaxCacheSizePercentage struct { + // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizePercentage + DeliveryOptimizationMaxCacheSize + // MaximumCacheSizePercentage Specifies the maximum cache size that Delivery Optimization can utilize, as a percentage of disk size (1-100). Valid values 1 to 100 + MaximumCacheSizePercentage *int `json:"maximumCacheSizePercentage,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go new file mode 100644 index 00000000..1e884831 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go @@ -0,0 +1,205 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// DepEnrollmentBaseProfile The DepEnrollmentBaseProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. +type DepEnrollmentBaseProfile struct { + // EnrollmentProfile is the base model of DepEnrollmentBaseProfile + EnrollmentProfile + // IsDefault Indicates if this is the default profile + IsDefault *bool `json:"isDefault,omitempty"` + // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. + SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"` + // SupportDepartment Support department information + SupportDepartment *string `json:"supportDepartment,omitempty"` + // PassCodeDisabled Indicates if Passcode setup pane is disabled + PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"` + // IsMandatory Indicates if the profile is mandatory + IsMandatory *bool `json:"isMandatory,omitempty"` + // LocationDisabled Indicates if Location service setup pane is disabled + LocationDisabled *bool `json:"locationDisabled,omitempty"` + // SupportPhoneNumber Support phone number + SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"` + // ProfileRemovalDisabled Indicates if the profile removal option is disabled + ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"` + // RestoreBlocked Indicates if Restore setup pane is blocked + RestoreBlocked *bool `json:"restoreBlocked,omitempty"` + // AppleIDDisabled Indicates if Apple id setup pane is disabled + AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"` + // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled + TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"` + // TouchIDDisabled Indicates if touch id setup pane is disabled + TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"` + // ApplePayDisabled Indicates if Apple pay setup pane is disabled + ApplePayDisabled *bool `json:"applePayDisabled,omitempty"` + // ZoomDisabled Indicates if zoom setup pane is disabled + ZoomDisabled *bool `json:"zoomDisabled,omitempty"` + // SiriDisabled Indicates if siri setup pane is disabled + SiriDisabled *bool `json:"siriDisabled,omitempty"` + // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled + DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"` + // DisplayToneSetupDisabled Indicates if displaytone setup screen is disabled + DisplayToneSetupDisabled *bool `json:"displayToneSetupDisabled,omitempty"` + // PrivacyPaneDisabled Indicates if privacy screen is disabled + PrivacyPaneDisabled *bool `json:"privacyPaneDisabled,omitempty"` + // ScreenTimeScreenDisabled Indicates if screen timeout setup is disabled + ScreenTimeScreenDisabled *bool `json:"screenTimeScreenDisabled,omitempty"` + // DeviceNameTemplate Sets a literal or name pattern. + DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"` + // ConfigurationWebURL URL for setup assistant login + ConfigurationWebURL *bool `json:"configurationWebUrl,omitempty"` +} + +// DepEnrollmentProfile The depEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. +type DepEnrollmentProfile struct { + // EnrollmentProfile is the base model of DepEnrollmentProfile + EnrollmentProfile + // IsDefault Indicates if this is the default profile + IsDefault *bool `json:"isDefault,omitempty"` + // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. + SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"` + // SupportDepartment Support department information + SupportDepartment *string `json:"supportDepartment,omitempty"` + // PassCodeDisabled Indicates if Passcode setup pane is disabled + PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"` + // IsMandatory Indicates if the profile is mandatory + IsMandatory *bool `json:"isMandatory,omitempty"` + // LocationDisabled Indicates if Location service setup pane is disabled + LocationDisabled *bool `json:"locationDisabled,omitempty"` + // SupportPhoneNumber Support phone number + SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"` + // ITunesPairingMode Indicates the iTunes pairing mode + ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"` + // ProfileRemovalDisabled Indicates if the profile removal option is disabled + ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"` + // ManagementCertificates Management certificates for Apple Configurator + ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"` + // RestoreBlocked Indicates if Restore setup pane is blocked + RestoreBlocked *bool `json:"restoreBlocked,omitempty"` + // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled + RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"` + // AppleIDDisabled Indicates if Apple id setup pane is disabled + AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"` + // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled + TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"` + // TouchIDDisabled Indicates if touch id setup pane is disabled + TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"` + // ApplePayDisabled Indicates if Apple pay setup pane is disabled + ApplePayDisabled *bool `json:"applePayDisabled,omitempty"` + // ZoomDisabled Indicates if zoom setup pane is disabled + ZoomDisabled *bool `json:"zoomDisabled,omitempty"` + // SiriDisabled Indicates if siri setup pane is disabled + SiriDisabled *bool `json:"siriDisabled,omitempty"` + // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled + DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"` + // MacOSRegistrationDisabled Indicates if Mac OS registration is disabled + MacOSRegistrationDisabled *bool `json:"macOSRegistrationDisabled,omitempty"` + // MacOSFileVaultDisabled Indicates if Mac OS file vault is disabled + MacOSFileVaultDisabled *bool `json:"macOSFileVaultDisabled,omitempty"` + // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation + AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"` + // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode. + SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"` + // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads. + EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"` +} + +// DepIOSEnrollmentProfile The DepIOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to iOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. +type DepIOSEnrollmentProfile struct { + // DepEnrollmentBaseProfile is the base model of DepIOSEnrollmentProfile + DepEnrollmentBaseProfile + // ITunesPairingMode Indicates the iTunes pairing mode + ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"` + // ManagementCertificates Management certificates for Apple Configurator + ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"` + // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled + RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"` + // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation + AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"` + // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode. + SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"` + // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads. + EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"` + // CompanyPortalVPPTokenID If set, indicates which Vpp token should be used to deploy the Company Portal w/ device licensing. 'enableAuthenticationViaCompanyPortal' must be set in order for this property to be set. + CompanyPortalVPPTokenID *string `json:"companyPortalVppTokenId,omitempty"` + // EnableSingleAppEnrollmentMode Tells the device to enable single app mode and apply app-lock during enrollment. Default is false. 'enableAuthenticationViaCompanyPortal' and 'companyPortalVppTokenId' must be set for this property to be set. + EnableSingleAppEnrollmentMode *bool `json:"enableSingleAppEnrollmentMode,omitempty"` + // HomeButtonScreenDisabled Indicates if home button sensitivity screen is disabled + HomeButtonScreenDisabled *bool `json:"homeButtonScreenDisabled,omitempty"` + // IMessageAndFaceTimeScreenDisabled Indicates if iMessage and FaceTime screen is disabled + IMessageAndFaceTimeScreenDisabled *bool `json:"iMessageAndFaceTimeScreenDisabled,omitempty"` + // OnBoardingScreenDisabled Indicates if onboarding setup screen is disabled + OnBoardingScreenDisabled *bool `json:"onBoardingScreenDisabled,omitempty"` + // SimSetupScreenDisabled Indicates if the SIMSetup screen is disabled + SimSetupScreenDisabled *bool `json:"simSetupScreenDisabled,omitempty"` + // SoftwareUpdateScreenDisabled Indicates if the mandatory sofware update screen is disabled + SoftwareUpdateScreenDisabled *bool `json:"softwareUpdateScreenDisabled,omitempty"` + // WatchMigrationScreenDisabled Indicates if the watch migration screen is disabled + WatchMigrationScreenDisabled *bool `json:"watchMigrationScreenDisabled,omitempty"` + // AppearanceScreenDisabled Indicates if Apperance screen is disabled + AppearanceScreenDisabled *bool `json:"appearanceScreenDisabled,omitempty"` + // ExpressLanguageScreenDisabled Indicates if Express Language screen is disabled + ExpressLanguageScreenDisabled *bool `json:"expressLanguageScreenDisabled,omitempty"` + // PreferredLanguageScreenDisabled Indicates if Preferred language screen is disabled + PreferredLanguageScreenDisabled *bool `json:"preferredLanguageScreenDisabled,omitempty"` + // DeviceToDeviceMigrationDisabled Indicates if Device To Device Migration is disabled + DeviceToDeviceMigrationDisabled *bool `json:"deviceToDeviceMigrationDisabled,omitempty"` + // WelcomeScreenDisabled Indicates if Weclome screen is disabled + WelcomeScreenDisabled *bool `json:"welcomeScreenDisabled,omitempty"` +} + +// DepMacOSEnrollmentProfile The DepMacOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to macOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. +type DepMacOSEnrollmentProfile struct { + // DepEnrollmentBaseProfile is the base model of DepMacOSEnrollmentProfile + DepEnrollmentBaseProfile + // RegistrationDisabled Indicates if registration is disabled + RegistrationDisabled *bool `json:"registrationDisabled,omitempty"` + // FileVaultDisabled Indicates if file vault is disabled + FileVaultDisabled *bool `json:"fileVaultDisabled,omitempty"` + // ICloudDiagnosticsDisabled Indicates if iCloud Analytics screen is disabled + ICloudDiagnosticsDisabled *bool `json:"iCloudDiagnosticsDisabled,omitempty"` + // ICloudStorageDisabled Indicates if iCloud Documents and Desktop screen is disabled + ICloudStorageDisabled *bool `json:"iCloudStorageDisabled,omitempty"` + // ChooseYourLockScreenDisabled Indicates if iCloud Documents and Desktop screen is disabled + ChooseYourLockScreenDisabled *bool `json:"chooseYourLockScreenDisabled,omitempty"` +} + +// DepOnboardingSetting The depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune. +type DepOnboardingSetting struct { + // Entity is the base model of DepOnboardingSetting + Entity + // AppleIdentifier The Apple ID used to obtain the current token. + AppleIdentifier *string `json:"appleIdentifier,omitempty"` + // TokenExpirationDateTime When the token will expire. + TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"` + // LastModifiedDateTime When the service was onboarded. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastSuccessfulSyncDateTime When the service last syned with Intune + LastSuccessfulSyncDateTime *time.Time `json:"lastSuccessfulSyncDateTime,omitempty"` + // LastSyncTriggeredDateTime When Intune last requested a sync. + LastSyncTriggeredDateTime *time.Time `json:"lastSyncTriggeredDateTime,omitempty"` + // ShareTokenWithSchoolDataSyncService Whether or not the Dep token sharing is enabled with the School Data Sync service. + ShareTokenWithSchoolDataSyncService *bool `json:"shareTokenWithSchoolDataSyncService,omitempty"` + // LastSyncErrorCode Error code reported by Apple during last dep sync. + LastSyncErrorCode *int `json:"lastSyncErrorCode,omitempty"` + // TokenType Gets or sets the Dep Token Type. + TokenType *DepTokenType `json:"tokenType,omitempty"` + // TokenName Friendly Name for Dep Token + TokenName *string `json:"tokenName,omitempty"` + // SyncedDeviceCount Gets synced device count + SyncedDeviceCount *int `json:"syncedDeviceCount,omitempty"` + // DataSharingConsentGranted Consent granted for data sharing with Apple Dep Service + DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // DefaultIOSEnrollmentProfile undocumented + DefaultIOSEnrollmentProfile *DepIOSEnrollmentProfile `json:"defaultIosEnrollmentProfile,omitempty"` + // DefaultMacOsEnrollmentProfile undocumented + DefaultMacOsEnrollmentProfile *DepMacOSEnrollmentProfile `json:"defaultMacOsEnrollmentProfile,omitempty"` + // EnrollmentProfiles undocumented + EnrollmentProfiles []EnrollmentProfile `json:"enrollmentProfiles,omitempty"` + // ImportedAppleDeviceIdentities undocumented + ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DetailsInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go new file mode 100644 index 00000000..c0e77e5d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DetectedApp A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned. +type DetectedApp struct { + // Entity is the base model of DetectedApp + Entity + // DisplayName Name of the discovered application. Read-only + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the discovered application. Read-only + Version *string `json:"version,omitempty"` + // SizeInByte Discovered application size in bytes. Read-only + SizeInByte *int `json:"sizeInByte,omitempty"` + // DeviceCount The number of devices that have installed this application + DeviceCount *int `json:"deviceCount,omitempty"` + // ManagedDevices undocumented + ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"` +} + +// DetectedSensitiveContent undocumented +type DetectedSensitiveContent struct { + // Object is the base model of DetectedSensitiveContent + Object + // ID undocumented + ID *UUID `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // UniqueCount undocumented + UniqueCount *int `json:"uniqueCount,omitempty"` + // Confidence undocumented + Confidence *int `json:"confidence,omitempty"` + // RecommendedConfidence undocumented + RecommendedConfidence *int `json:"recommendedConfidence,omitempty"` + // Matches undocumented + Matches []SensitiveContentLocation `json:"matches,omitempty"` +} + +// DetectedSensitiveContentWrapper undocumented +type DetectedSensitiveContentWrapper struct { + // Object is the base model of DetectedSensitiveContentWrapper + Object + // Classification undocumented + Classification []DetectedSensitiveContent `json:"classification,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go new file mode 100644 index 00000000..7c892460 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go @@ -0,0 +1,2323 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Device undocumented +type Device struct { + // DirectoryObject is the base model of Device + DirectoryObject + // AccountEnabled undocumented + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AlternativeSecurityIDs undocumented + AlternativeSecurityIDs []AlternativeSecurityID `json:"alternativeSecurityIds,omitempty"` + // ApproximateLastSignInDateTime undocumented + ApproximateLastSignInDateTime *time.Time `json:"approximateLastSignInDateTime,omitempty"` + // ComplianceExpirationDateTime undocumented + ComplianceExpirationDateTime *time.Time `json:"complianceExpirationDateTime,omitempty"` + // DeviceID undocumented + DeviceID *string `json:"deviceId,omitempty"` + // DeviceMetadata undocumented + DeviceMetadata *string `json:"deviceMetadata,omitempty"` + // DeviceVersion undocumented + DeviceVersion *int `json:"deviceVersion,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsCompliant undocumented + IsCompliant *bool `json:"isCompliant,omitempty"` + // IsManaged undocumented + IsManaged *bool `json:"isManaged,omitempty"` + // OnPremisesLastSyncDateTime undocumented + OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"` + // OnPremisesSyncEnabled undocumented + OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"` + // OperatingSystem undocumented + OperatingSystem *string `json:"operatingSystem,omitempty"` + // OperatingSystemVersion undocumented + OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"` + // PhysicalIDs undocumented + PhysicalIDs []string `json:"physicalIds,omitempty"` + // ProfileType undocumented + ProfileType *string `json:"profileType,omitempty"` + // SystemLabels undocumented + SystemLabels []string `json:"systemLabels,omitempty"` + // TrustType undocumented + TrustType *string `json:"trustType,omitempty"` + // Name undocumented + Name *string `json:"Name,omitempty"` + // Manufacturer undocumented + Manufacturer *string `json:"Manufacturer,omitempty"` + // Model undocumented + Model *string `json:"Model,omitempty"` + // Kind undocumented + Kind *string `json:"Kind,omitempty"` + // Status undocumented + Status *string `json:"Status,omitempty"` + // Platform undocumented + Platform *string `json:"Platform,omitempty"` + // MemberOf undocumented + MemberOf []DirectoryObject `json:"memberOf,omitempty"` + // RegisteredOwners undocumented + RegisteredOwners []DirectoryObject `json:"registeredOwners,omitempty"` + // RegisteredUsers undocumented + RegisteredUsers []DirectoryObject `json:"registeredUsers,omitempty"` + // TransitiveMemberOf undocumented + TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` + // Commands undocumented + Commands []Command `json:"commands,omitempty"` +} + +// DeviceActionResult undocumented +type DeviceActionResult struct { + // Object is the base model of DeviceActionResult + Object + // ActionName Action name + ActionName *string `json:"actionName,omitempty"` + // ActionState State of the action + ActionState *ActionState `json:"actionState,omitempty"` + // StartDateTime Time the action was initiated + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // LastUpdatedDateTime Time the action state was last updated + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` +} + +// DeviceAndAppManagementAssignedRoleDetails undocumented +type DeviceAndAppManagementAssignedRoleDetails struct { + // Object is the base model of DeviceAndAppManagementAssignedRoleDetails + Object + // RoleDefinitionIDs Role Definition IDs for the specifc Role Definitions assigned to a user. + RoleDefinitionIDs []string `json:"roleDefinitionIds,omitempty"` + // RoleAssignmentIDs Role Assignment IDs for the specifc Role Assignments assigned to a user. + RoleAssignmentIDs []string `json:"roleAssignmentIds,omitempty"` +} + +// DeviceAndAppManagementAssignmentTarget undocumented +type DeviceAndAppManagementAssignmentTarget struct { + // Object is the base model of DeviceAndAppManagementAssignmentTarget + Object +} + +// DeviceAndAppManagementData undocumented +type DeviceAndAppManagementData struct { + // Object is the base model of DeviceAndAppManagementData + Object + // Content undocumented + Content *Stream `json:"content,omitempty"` +} + +// DeviceAndAppManagementRoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. +type DeviceAndAppManagementRoleAssignment struct { + // RoleAssignment is the base model of DeviceAndAppManagementRoleAssignment + RoleAssignment + // Members The list of ids of role member security groups. These are IDs from Azure Active Directory. + Members []string `json:"members,omitempty"` + // RoleScopeTags undocumented + RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"` +} + +// DeviceAndAppManagementRoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. +type DeviceAndAppManagementRoleDefinition struct { + // RoleDefinition is the base model of DeviceAndAppManagementRoleDefinition + RoleDefinition +} + +// DeviceAppManagement Singleton entity that acts as a container for all device and app management functionality. +type DeviceAppManagement struct { + // Entity is the base model of DeviceAppManagement + Entity + // MicrosoftStoreForBusinessLastSuccessfulSyncDateTime The last time the apps from the Microsoft Store for Business were synced successfully for the account. + MicrosoftStoreForBusinessLastSuccessfulSyncDateTime *time.Time `json:"microsoftStoreForBusinessLastSuccessfulSyncDateTime,omitempty"` + // IsEnabledForMicrosoftStoreForBusiness Whether the account is enabled for syncing applications from the Microsoft Store for Business. + IsEnabledForMicrosoftStoreForBusiness *bool `json:"isEnabledForMicrosoftStoreForBusiness,omitempty"` + // MicrosoftStoreForBusinessLanguage The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture. + MicrosoftStoreForBusinessLanguage *string `json:"microsoftStoreForBusinessLanguage,omitempty"` + // MicrosoftStoreForBusinessLastCompletedApplicationSyncTime The last time an application sync from the Microsoft Store for Business was completed. + MicrosoftStoreForBusinessLastCompletedApplicationSyncTime *time.Time `json:"microsoftStoreForBusinessLastCompletedApplicationSyncTime,omitempty"` + // MicrosoftStoreForBusinessPortalSelection The end user portal information is used to sync applications from the Microsoft Store for Business to Intune Company Portal. There are three options to pick from ['Company portal only', 'Company portal and private store', 'Private store only'] + MicrosoftStoreForBusinessPortalSelection *MicrosoftStoreForBusinessPortalSelectionOptions `json:"microsoftStoreForBusinessPortalSelection,omitempty"` + // ManagedEBooks undocumented + ManagedEBooks []ManagedEBook `json:"managedEBooks,omitempty"` + // MobileApps undocumented + MobileApps []MobileApp `json:"mobileApps,omitempty"` + // MobileAppCategories undocumented + MobileAppCategories []MobileAppCategory `json:"mobileAppCategories,omitempty"` + // EnterpriseCodeSigningCertificates undocumented + EnterpriseCodeSigningCertificates []EnterpriseCodeSigningCertificate `json:"enterpriseCodeSigningCertificates,omitempty"` + // IOSLobAppProvisioningConfigurations undocumented + IOSLobAppProvisioningConfigurations []IOSLobAppProvisioningConfiguration `json:"iosLobAppProvisioningConfigurations,omitempty"` + // SymantecCodeSigningCertificate undocumented + SymantecCodeSigningCertificate *SymantecCodeSigningCertificate `json:"symantecCodeSigningCertificate,omitempty"` + // MobileAppConfigurations undocumented + MobileAppConfigurations []ManagedDeviceMobileAppConfiguration `json:"mobileAppConfigurations,omitempty"` + // ManagedEBookCategories undocumented + ManagedEBookCategories []ManagedEBookCategory `json:"managedEBookCategories,omitempty"` + // PolicySets undocumented + PolicySets []PolicySet `json:"policySets,omitempty"` + // SideLoadingKeys undocumented + SideLoadingKeys []SideLoadingKey `json:"sideLoadingKeys,omitempty"` + // VPPTokens undocumented + VPPTokens []VPPToken `json:"vppTokens,omitempty"` + // WindowsManagementApp undocumented + WindowsManagementApp *WindowsManagementApp `json:"windowsManagementApp,omitempty"` + // ManagedAppPolicies undocumented + ManagedAppPolicies []ManagedAppPolicy `json:"managedAppPolicies,omitempty"` + // IOSManagedAppProtections undocumented + IOSManagedAppProtections []IOSManagedAppProtection `json:"iosManagedAppProtections,omitempty"` + // AndroidManagedAppProtections undocumented + AndroidManagedAppProtections []AndroidManagedAppProtection `json:"androidManagedAppProtections,omitempty"` + // DefaultManagedAppProtections undocumented + DefaultManagedAppProtections []DefaultManagedAppProtection `json:"defaultManagedAppProtections,omitempty"` + // TargetedManagedAppConfigurations undocumented + TargetedManagedAppConfigurations []TargetedManagedAppConfiguration `json:"targetedManagedAppConfigurations,omitempty"` + // MDMWindowsInformationProtectionPolicies undocumented + MDMWindowsInformationProtectionPolicies []MDMWindowsInformationProtectionPolicy `json:"mdmWindowsInformationProtectionPolicies,omitempty"` + // WindowsInformationProtectionPolicies undocumented + WindowsInformationProtectionPolicies []WindowsInformationProtectionPolicy `json:"windowsInformationProtectionPolicies,omitempty"` + // ManagedAppRegistrations undocumented + ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"` + // ManagedAppStatuses undocumented + ManagedAppStatuses []ManagedAppStatus `json:"managedAppStatuses,omitempty"` + // WindowsInformationProtectionDeviceRegistrations undocumented + WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"` + // WindowsInformationProtectionWipeActions undocumented + WindowsInformationProtectionWipeActions []WindowsInformationProtectionWipeAction `json:"windowsInformationProtectionWipeActions,omitempty"` + // DeviceAppManagementTasks undocumented + DeviceAppManagementTasks []DeviceAppManagementTask `json:"deviceAppManagementTasks,omitempty"` + // WdacSupplementalPolicies undocumented + WdacSupplementalPolicies []WindowsDefenderApplicationControlSupplementalPolicy `json:"wdacSupplementalPolicies,omitempty"` +} + +// DeviceAppManagementTask A device app management task. +type DeviceAppManagementTask struct { + // Entity is the base model of DeviceAppManagementTask + Entity + // DisplayName The name. + DisplayName *string `json:"displayName,omitempty"` + // Description The description. + Description *string `json:"description,omitempty"` + // CreatedDateTime The created date. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DueDateTime The due date. + DueDateTime *time.Time `json:"dueDateTime,omitempty"` + // Category The category. + Category *DeviceAppManagementTaskCategory `json:"category,omitempty"` + // Priority The priority. + Priority *DeviceAppManagementTaskPriority `json:"priority,omitempty"` + // Creator The email address of the creator. + Creator *string `json:"creator,omitempty"` + // CreatorNotes Notes from the creator. + CreatorNotes *string `json:"creatorNotes,omitempty"` + // AssignedTo The name or email of the admin this task is assigned to. + AssignedTo *string `json:"assignedTo,omitempty"` + // Status The status. + Status *DeviceAppManagementTaskStatus `json:"status,omitempty"` +} + +// DeviceCategory Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories. +type DeviceCategory struct { + // Entity is the base model of DeviceCategory + Entity + // DisplayName Display name for the device category. + DisplayName *string `json:"displayName,omitempty"` + // Description Optional description for the device category. + Description *string `json:"description,omitempty"` + // RoleScopeTagIDs Optional role scope tags for the device category. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// DeviceComplianceActionItem Scheduled Action Configuration +type DeviceComplianceActionItem struct { + // Entity is the base model of DeviceComplianceActionItem + Entity + // GracePeriodHours Number of hours to wait till the action will be enforced. Valid values 0 to 8760 + GracePeriodHours *int `json:"gracePeriodHours,omitempty"` + // ActionType What action to take + ActionType *DeviceComplianceActionType `json:"actionType,omitempty"` + // NotificationTemplateID What notification Message template to use + NotificationTemplateID *string `json:"notificationTemplateId,omitempty"` + // NotificationMessageCCList A list of group IDs to speicify who to CC this notification message to. + NotificationMessageCCList []string `json:"notificationMessageCCList,omitempty"` +} + +// DeviceComplianceDeviceOverview undocumented +type DeviceComplianceDeviceOverview struct { + // Entity is the base model of DeviceComplianceDeviceOverview + Entity + // PendingCount Number of pending devices + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy + NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"` + // SuccessCount Number of succeeded devices + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed devices + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of devices in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// DeviceComplianceDeviceStatus undocumented +type DeviceComplianceDeviceStatus struct { + // Entity is the base model of DeviceComplianceDeviceStatus + Entity + // DeviceDisplayName Device name of the DevicePolicyStatus. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // Platform Platform of the device that is being reported + Platform *int `json:"platform,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceCompliancePolicy This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here. +type DeviceCompliancePolicy struct { + // Entity is the base model of DeviceCompliancePolicy + Entity + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description Admin provided description of the Device Configuration. + Description *string `json:"description,omitempty"` + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Admin provided name of the device configuration. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the device configuration. + Version *int `json:"version,omitempty"` + // ScheduledActionsForRule undocumented + ScheduledActionsForRule []DeviceComplianceScheduledActionForRule `json:"scheduledActionsForRule,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []DeviceComplianceDeviceStatus `json:"deviceStatuses,omitempty"` + // UserStatuses undocumented + UserStatuses []DeviceComplianceUserStatus `json:"userStatuses,omitempty"` + // DeviceStatusOverview undocumented + DeviceStatusOverview *DeviceComplianceDeviceOverview `json:"deviceStatusOverview,omitempty"` + // UserStatusOverview undocumented + UserStatusOverview *DeviceComplianceUserOverview `json:"userStatusOverview,omitempty"` + // DeviceSettingStateSummaries undocumented + DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"` + // Assignments undocumented + Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"` +} + +// DeviceCompliancePolicyAssignment Device compliance policy assignment. +type DeviceCompliancePolicyAssignment struct { + // Entity is the base model of DeviceCompliancePolicyAssignment + Entity + // Target Target for the compliance policy assignment. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Source The assignment source for the device compliance policy, direct or parcel/policySet. + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID The identifier of the source of the assignment. + SourceID *string `json:"sourceId,omitempty"` +} + +// DeviceCompliancePolicyDeviceStateSummary undocumented +type DeviceCompliancePolicyDeviceStateSummary struct { + // Entity is the base model of DeviceCompliancePolicyDeviceStateSummary + Entity + // InGracePeriodCount Number of devices that are in grace period + InGracePeriodCount *int `json:"inGracePeriodCount,omitempty"` + // ConfigManagerCount Number of devices that have compliance managed by System Center Configuration Manager + ConfigManagerCount *int `json:"configManagerCount,omitempty"` + // UnknownDeviceCount Number of unknown devices + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // NotApplicableDeviceCount Number of not applicable devices + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // CompliantDeviceCount Number of compliant devices + CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"` + // RemediatedDeviceCount Number of remediated devices + RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"` + // NonCompliantDeviceCount Number of NonCompliant devices + NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"` + // ErrorDeviceCount Number of error devices + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // ConflictDeviceCount Number of conflict devices + ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"` +} + +// DeviceCompliancePolicyGroupAssignment Device compliance policy group assignment. +type DeviceCompliancePolicyGroupAssignment struct { + // Entity is the base model of DeviceCompliancePolicyGroupAssignment + Entity + // TargetGroupID The Id of the AAD group we are targeting the device compliance policy to. + TargetGroupID *string `json:"targetGroupId,omitempty"` + // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included + ExcludeGroup *bool `json:"excludeGroup,omitempty"` + // DeviceCompliancePolicy undocumented + DeviceCompliancePolicy *DeviceCompliancePolicy `json:"deviceCompliancePolicy,omitempty"` +} + +// DeviceCompliancePolicyPolicySetItem A class containing the properties used for device compliance policy PolicySetItem. +type DeviceCompliancePolicyPolicySetItem struct { + // PolicySetItem is the base model of DeviceCompliancePolicyPolicySetItem + PolicySetItem +} + +// DeviceCompliancePolicySettingState undocumented +type DeviceCompliancePolicySettingState struct { + // Object is the base model of DeviceCompliancePolicySettingState + Object + // Setting The setting that is being reported + Setting *string `json:"setting,omitempty"` + // SettingName Localized/user friendly setting name that is being reported + SettingName *string `json:"settingName,omitempty"` + // InstanceDisplayName Name of setting instance that is being reported. + InstanceDisplayName *string `json:"instanceDisplayName,omitempty"` + // State The compliance state of the setting + State *ComplianceStatus `json:"state,omitempty"` + // ErrorCode Error code for the setting + ErrorCode *int `json:"errorCode,omitempty"` + // ErrorDescription Error description + ErrorDescription *string `json:"errorDescription,omitempty"` + // UserID UserId + UserID *string `json:"userId,omitempty"` + // UserName UserName + UserName *string `json:"userName,omitempty"` + // UserEmail UserEmail + UserEmail *string `json:"userEmail,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // Sources Contributing policies + Sources []SettingSource `json:"sources,omitempty"` + // CurrentValue Current value of setting on device + CurrentValue *string `json:"currentValue,omitempty"` +} + +// DeviceCompliancePolicySettingStateSummary Device Compilance Policy Setting State summary across the account. +type DeviceCompliancePolicySettingStateSummary struct { + // Entity is the base model of DeviceCompliancePolicySettingStateSummary + Entity + // Setting The setting class name and property name. + Setting *string `json:"setting,omitempty"` + // SettingName Name of the setting. + SettingName *string `json:"settingName,omitempty"` + // PlatformType Setting platform + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // UnknownDeviceCount Number of unknown devices + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // NotApplicableDeviceCount Number of not applicable devices + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // CompliantDeviceCount Number of compliant devices + CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"` + // RemediatedDeviceCount Number of remediated devices + RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"` + // NonCompliantDeviceCount Number of NonCompliant devices + NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"` + // ErrorDeviceCount Number of error devices + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // ConflictDeviceCount Number of conflict devices + ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"` + // DeviceComplianceSettingStates undocumented + DeviceComplianceSettingStates []DeviceComplianceSettingState `json:"deviceComplianceSettingStates,omitempty"` +} + +// DeviceCompliancePolicyState Device Compliance Policy State for a given device. +type DeviceCompliancePolicyState struct { + // Entity is the base model of DeviceCompliancePolicyState + Entity + // SettingStates undocumented + SettingStates []DeviceCompliancePolicySettingState `json:"settingStates,omitempty"` + // DisplayName The name of the policy for this policyBase + DisplayName *string `json:"displayName,omitempty"` + // Version The version of the policy + Version *int `json:"version,omitempty"` + // PlatformType Platform type that the policy applies to + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // State The compliance state of the policy + State *ComplianceStatus `json:"state,omitempty"` + // SettingCount Count of how many setting a policy holds + SettingCount *int `json:"settingCount,omitempty"` + // UserID User unique identifier, must be Guid + UserID *string `json:"userId,omitempty"` + // UserPrincipalName User Principal Name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceComplianceScheduledActionForRule Scheduled Action for Rule +type DeviceComplianceScheduledActionForRule struct { + // Entity is the base model of DeviceComplianceScheduledActionForRule + Entity + // RuleName Name of the rule which this scheduled action applies to. + RuleName *string `json:"ruleName,omitempty"` + // ScheduledActionConfigurations undocumented + ScheduledActionConfigurations []DeviceComplianceActionItem `json:"scheduledActionConfigurations,omitempty"` +} + +// DeviceComplianceSettingState Device compliance setting State for a given device. +type DeviceComplianceSettingState struct { + // Entity is the base model of DeviceComplianceSettingState + Entity + // PlatformType Device platform type + PlatformType *DeviceType `json:"platformType,omitempty"` + // Setting The setting class name and property name. + Setting *string `json:"setting,omitempty"` + // SettingName The Setting Name that is being reported + SettingName *string `json:"settingName,omitempty"` + // DeviceID The Device Id that is being reported + DeviceID *string `json:"deviceId,omitempty"` + // DeviceName The Device Name that is being reported + DeviceName *string `json:"deviceName,omitempty"` + // UserID The user Id that is being reported + UserID *string `json:"userId,omitempty"` + // UserEmail The User email address that is being reported + UserEmail *string `json:"userEmail,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // UserPrincipalName The User PrincipalName that is being reported + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // State The compliance state of the setting + State *ComplianceStatus `json:"state,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` +} + +// DeviceComplianceUserOverview undocumented +type DeviceComplianceUserOverview struct { + // Entity is the base model of DeviceComplianceUserOverview + Entity + // PendingCount Number of pending Users + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable users + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // SuccessCount Number of succeeded Users + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error Users + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed Users + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of users in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// DeviceComplianceUserStatus undocumented +type DeviceComplianceUserStatus struct { + // Entity is the base model of DeviceComplianceUserStatus + Entity + // UserDisplayName User name of the DevicePolicyStatus. + UserDisplayName *string `json:"userDisplayName,omitempty"` + // DevicesCount Devices count for that user. + DevicesCount *int `json:"devicesCount,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceConfiguration Device Configuration. +type DeviceConfiguration struct { + // Entity is the base model of DeviceConfiguration + Entity + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // SupportsScopeTags Indicates whether or not the underlying Device Configuration supports the assignment of scope tags. Assigning to the ScopeTags property is not allowed when this value is false and entities will not be visible to scoped users. This occurs for Legacy policies created in Silverlight and can be resolved by deleting and recreating the policy in the Azure Portal. This property is read-only. + SupportsScopeTags *bool `json:"supportsScopeTags,omitempty"` + // DeviceManagementApplicabilityRuleOsEdition The OS edition applicability for this Policy. + DeviceManagementApplicabilityRuleOsEdition *DeviceManagementApplicabilityRuleOsEdition `json:"deviceManagementApplicabilityRuleOsEdition,omitempty"` + // DeviceManagementApplicabilityRuleOsVersion The OS version applicability rule for this Policy. + DeviceManagementApplicabilityRuleOsVersion *DeviceManagementApplicabilityRuleOsVersion `json:"deviceManagementApplicabilityRuleOsVersion,omitempty"` + // DeviceManagementApplicabilityRuleDeviceMode The device mode applicability rule for this Policy. + DeviceManagementApplicabilityRuleDeviceMode *DeviceManagementApplicabilityRuleDeviceMode `json:"deviceManagementApplicabilityRuleDeviceMode,omitempty"` + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description Admin provided description of the Device Configuration. + Description *string `json:"description,omitempty"` + // DisplayName Admin provided name of the device configuration. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the device configuration. + Version *int `json:"version,omitempty"` + // GroupAssignments undocumented + GroupAssignments []DeviceConfigurationGroupAssignment `json:"groupAssignments,omitempty"` + // Assignments undocumented + Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []DeviceConfigurationDeviceStatus `json:"deviceStatuses,omitempty"` + // UserStatuses undocumented + UserStatuses []DeviceConfigurationUserStatus `json:"userStatuses,omitempty"` + // DeviceStatusOverview undocumented + DeviceStatusOverview *DeviceConfigurationDeviceOverview `json:"deviceStatusOverview,omitempty"` + // UserStatusOverview undocumented + UserStatusOverview *DeviceConfigurationUserOverview `json:"userStatusOverview,omitempty"` + // DeviceSettingStateSummaries undocumented + DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"` +} + +// DeviceConfigurationAssignment The device configuration assignment entity assigns an AAD group to a specific device configuration. +type DeviceConfigurationAssignment struct { + // Entity is the base model of DeviceConfigurationAssignment + Entity + // Target The assignment target for the device configuration. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Source The assignment source for the device configuration, direct or parcel/policySet. This property is read-only. + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID The identifier of the source of the assignment. This property is read-only. + SourceID *string `json:"sourceId,omitempty"` +} + +// DeviceConfigurationConflictSummary Conflict summary for a set of device configuration policies. +type DeviceConfigurationConflictSummary struct { + // Entity is the base model of DeviceConfigurationConflictSummary + Entity + // ConflictingDeviceConfigurations The set of policies in conflict with the given setting + ConflictingDeviceConfigurations []SettingSource `json:"conflictingDeviceConfigurations,omitempty"` + // ContributingSettings The set of settings in conflict with the given policies + ContributingSettings []string `json:"contributingSettings,omitempty"` + // DeviceCheckinsImpacted The count of checkins impacted by the conflicting policies and settings + DeviceCheckinsImpacted *int `json:"deviceCheckinsImpacted,omitempty"` +} + +// DeviceConfigurationDeviceOverview undocumented +type DeviceConfigurationDeviceOverview struct { + // Entity is the base model of DeviceConfigurationDeviceOverview + Entity + // PendingCount Number of pending devices + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy + NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"` + // SuccessCount Number of succeeded devices + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed devices + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of devices in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// DeviceConfigurationDeviceStateSummary undocumented +type DeviceConfigurationDeviceStateSummary struct { + // Entity is the base model of DeviceConfigurationDeviceStateSummary + Entity + // UnknownDeviceCount Number of unknown devices + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // NotApplicableDeviceCount Number of not applicable devices + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // CompliantDeviceCount Number of compliant devices + CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"` + // RemediatedDeviceCount Number of remediated devices + RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"` + // NonCompliantDeviceCount Number of NonCompliant devices + NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"` + // ErrorDeviceCount Number of error devices + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // ConflictDeviceCount Number of conflict devices + ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"` +} + +// DeviceConfigurationDeviceStatus undocumented +type DeviceConfigurationDeviceStatus struct { + // Entity is the base model of DeviceConfigurationDeviceStatus + Entity + // DeviceDisplayName Device name of the DevicePolicyStatus. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // Platform Platform of the device that is being reported + Platform *int `json:"platform,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceConfigurationGroupAssignment Device configuration group assignment. +type DeviceConfigurationGroupAssignment struct { + // Entity is the base model of DeviceConfigurationGroupAssignment + Entity + // TargetGroupID The Id of the AAD group we are targeting the device configuration to. + TargetGroupID *string `json:"targetGroupId,omitempty"` + // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included + ExcludeGroup *bool `json:"excludeGroup,omitempty"` + // DeviceConfiguration undocumented + DeviceConfiguration *DeviceConfiguration `json:"deviceConfiguration,omitempty"` +} + +// DeviceConfigurationPolicySetItem A class containing the properties used for device configuration PolicySetItem. +type DeviceConfigurationPolicySetItem struct { + // PolicySetItem is the base model of DeviceConfigurationPolicySetItem + PolicySetItem +} + +// DeviceConfigurationSettingState undocumented +type DeviceConfigurationSettingState struct { + // Object is the base model of DeviceConfigurationSettingState + Object + // Setting The setting that is being reported + Setting *string `json:"setting,omitempty"` + // SettingName Localized/user friendly setting name that is being reported + SettingName *string `json:"settingName,omitempty"` + // InstanceDisplayName Name of setting instance that is being reported. + InstanceDisplayName *string `json:"instanceDisplayName,omitempty"` + // State The compliance state of the setting + State *ComplianceStatus `json:"state,omitempty"` + // ErrorCode Error code for the setting + ErrorCode *int `json:"errorCode,omitempty"` + // ErrorDescription Error description + ErrorDescription *string `json:"errorDescription,omitempty"` + // UserID UserId + UserID *string `json:"userId,omitempty"` + // UserName UserName + UserName *string `json:"userName,omitempty"` + // UserEmail UserEmail + UserEmail *string `json:"userEmail,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // Sources Contributing policies + Sources []SettingSource `json:"sources,omitempty"` + // CurrentValue Current value of setting on device + CurrentValue *string `json:"currentValue,omitempty"` +} + +// DeviceConfigurationState Device Configuration State for a given device. +type DeviceConfigurationState struct { + // Entity is the base model of DeviceConfigurationState + Entity + // SettingStates undocumented + SettingStates []DeviceConfigurationSettingState `json:"settingStates,omitempty"` + // DisplayName The name of the policy for this policyBase + DisplayName *string `json:"displayName,omitempty"` + // Version The version of the policy + Version *int `json:"version,omitempty"` + // PlatformType Platform type that the policy applies to + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // State The compliance state of the policy + State *ComplianceStatus `json:"state,omitempty"` + // SettingCount Count of how many setting a policy holds + SettingCount *int `json:"settingCount,omitempty"` + // UserID User unique identifier, must be Guid + UserID *string `json:"userId,omitempty"` + // UserPrincipalName User Principal Name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceConfigurationTargetedUserAndDevice undocumented +type DeviceConfigurationTargetedUserAndDevice struct { + // Object is the base model of DeviceConfigurationTargetedUserAndDevice + Object + // DeviceID The id of the device in the checkin. + DeviceID *string `json:"deviceId,omitempty"` + // DeviceName The name of the device in the checkin. + DeviceName *string `json:"deviceName,omitempty"` + // UserID The id of the user in the checkin. + UserID *string `json:"userId,omitempty"` + // UserDisplayName The display name of the user in the checkin + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName The UPN of the user in the checkin. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // LastCheckinDateTime Last checkin time for this user/device pair. + LastCheckinDateTime *time.Time `json:"lastCheckinDateTime,omitempty"` +} + +// DeviceConfigurationUserOverview undocumented +type DeviceConfigurationUserOverview struct { + // Entity is the base model of DeviceConfigurationUserOverview + Entity + // PendingCount Number of pending Users + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable users + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // SuccessCount Number of succeeded Users + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error Users + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed Users + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of users in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// DeviceConfigurationUserStateSummary undocumented +type DeviceConfigurationUserStateSummary struct { + // Entity is the base model of DeviceConfigurationUserStateSummary + Entity + // UnknownUserCount Number of unknown users + UnknownUserCount *int `json:"unknownUserCount,omitempty"` + // NotApplicableUserCount Number of not applicable users + NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"` + // CompliantUserCount Number of compliant users + CompliantUserCount *int `json:"compliantUserCount,omitempty"` + // RemediatedUserCount Number of remediated users + RemediatedUserCount *int `json:"remediatedUserCount,omitempty"` + // NonCompliantUserCount Number of NonCompliant users + NonCompliantUserCount *int `json:"nonCompliantUserCount,omitempty"` + // ErrorUserCount Number of error users + ErrorUserCount *int `json:"errorUserCount,omitempty"` + // ConflictUserCount Number of conflict users + ConflictUserCount *int `json:"conflictUserCount,omitempty"` +} + +// DeviceConfigurationUserStatus undocumented +type DeviceConfigurationUserStatus struct { + // Entity is the base model of DeviceConfigurationUserStatus + Entity + // UserDisplayName User name of the DevicePolicyStatus. + UserDisplayName *string `json:"userDisplayName,omitempty"` + // DevicesCount Devices count for that user. + DevicesCount *int `json:"devicesCount,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// DeviceDetail undocumented +type DeviceDetail struct { + // Object is the base model of DeviceDetail + Object + // DeviceID undocumented + DeviceID *string `json:"deviceId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // OperatingSystem undocumented + OperatingSystem *string `json:"operatingSystem,omitempty"` + // Browser undocumented + Browser *string `json:"browser,omitempty"` + // BrowserID undocumented + BrowserID *string `json:"browserId,omitempty"` + // IsCompliant undocumented + IsCompliant *bool `json:"isCompliant,omitempty"` + // IsManaged undocumented + IsManaged *bool `json:"isManaged,omitempty"` + // TrustType undocumented + TrustType *string `json:"trustType,omitempty"` +} + +// DeviceEnrollmentConfiguration The Base Class of Device Enrollment Configuration +type DeviceEnrollmentConfiguration struct { + // Entity is the base model of DeviceEnrollmentConfiguration + Entity + // DisplayName The display name of the device enrollment configuration + DisplayName *string `json:"displayName,omitempty"` + // Description The description of the device enrollment configuration + Description *string `json:"description,omitempty"` + // Priority Priority is used when a user exists in multiple groups that are assigned enrollment configuration. Users are subject only to the configuration with the lowest priority value. + Priority *int `json:"priority,omitempty"` + // CreatedDateTime Created date time in UTC of the device enrollment configuration + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Last modified date time in UTC of the device enrollment configuration + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Version The version of the device enrollment configuration + Version *int `json:"version,omitempty"` + // Assignments undocumented + Assignments []EnrollmentConfigurationAssignment `json:"assignments,omitempty"` +} + +// DeviceEnrollmentLimitConfiguration Device Enrollment Configuration that restricts the number of devices a user can enroll +type DeviceEnrollmentLimitConfiguration struct { + // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentLimitConfiguration + DeviceEnrollmentConfiguration + // Limit The maximum number of devices that a user can enroll + Limit *int `json:"limit,omitempty"` +} + +// DeviceEnrollmentPlatformRestriction undocumented +type DeviceEnrollmentPlatformRestriction struct { + // Object is the base model of DeviceEnrollmentPlatformRestriction + Object + // PlatformBlocked Block the platform from enrolling + PlatformBlocked *bool `json:"platformBlocked,omitempty"` + // PersonalDeviceEnrollmentBlocked Block personally owned devices from enrolling + PersonalDeviceEnrollmentBlocked *bool `json:"personalDeviceEnrollmentBlocked,omitempty"` + // OsMinimumVersion Min OS version supported + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Max OS version supported + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` +} + +// DeviceEnrollmentPlatformRestrictionsConfiguration Device Enrollment Configuration that restricts the types of devices a user can enroll +type DeviceEnrollmentPlatformRestrictionsConfiguration struct { + // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentPlatformRestrictionsConfiguration + DeviceEnrollmentConfiguration + // IOSRestriction Ios restrictions based on platform, platform operating system version, and device ownership + IOSRestriction *DeviceEnrollmentPlatformRestriction `json:"iosRestriction,omitempty"` + // WindowsRestriction Windows restrictions based on platform, platform operating system version, and device ownership + WindowsRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsRestriction,omitempty"` + // WindowsMobileRestriction Windows mobile restrictions based on platform, platform operating system version, and device ownership + WindowsMobileRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsMobileRestriction,omitempty"` + // AndroidRestriction Android restrictions based on platform, platform operating system version, and device ownership + AndroidRestriction *DeviceEnrollmentPlatformRestriction `json:"androidRestriction,omitempty"` + // AndroidForWorkRestriction Android for work restrictions based on platform, platform operating system version, and device ownership + AndroidForWorkRestriction *DeviceEnrollmentPlatformRestriction `json:"androidForWorkRestriction,omitempty"` + // MacRestriction Mac restrictions based on platform, platform operating system version, and device ownership + MacRestriction *DeviceEnrollmentPlatformRestriction `json:"macRestriction,omitempty"` + // MacOSRestriction Mac restrictions based on platform, platform operating system version, and device ownership + MacOSRestriction *DeviceEnrollmentPlatformRestriction `json:"macOSRestriction,omitempty"` +} + +// DeviceEnrollmentWindowsHelloForBusinessConfiguration Windows Hello for Business settings lets users access their devices using a gesture, such as biometric authentication, or a PIN. Configure settings for enrolled Windows 10, Windows 10 Mobile and later. +type DeviceEnrollmentWindowsHelloForBusinessConfiguration struct { + // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentWindowsHelloForBusinessConfiguration + DeviceEnrollmentConfiguration + // PinMinimumLength Controls the minimum number of characters required for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive, and less than or equal to the value set for the maximum PIN. + PinMinimumLength *int `json:"pinMinimumLength,omitempty"` + // PinMaximumLength Controls the maximum number of characters allowed for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive. This value must be greater than or equal to the value set for the minimum PIN. + PinMaximumLength *int `json:"pinMaximumLength,omitempty"` + // PinUppercaseCharactersUsage Controls the ability to use uppercase letters in the Windows Hello for Business PIN. Allowed permits the use of uppercase letter(s), whereas Required ensures they are present. If set to Not Allowed, uppercase letters will not be permitted. + PinUppercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinUppercaseCharactersUsage,omitempty"` + // PinLowercaseCharactersUsage Controls the ability to use lowercase letters in the Windows Hello for Business PIN. Allowed permits the use of lowercase letter(s), whereas Required ensures they are present. If set to Not Allowed, lowercase letters will not be permitted. + PinLowercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinLowercaseCharactersUsage,omitempty"` + // PinSpecialCharactersUsage Controls the ability to use special characters in the Windows Hello for Business PIN. Allowed permits the use of special character(s), whereas Required ensures they are present. If set to Not Allowed, special character(s) will not be permitted. + PinSpecialCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinSpecialCharactersUsage,omitempty"` + // State Controls whether to allow the device to be configured for Windows Hello for Business. If set to disabled, the user cannot provision Windows Hello for Business except on Azure Active Directory joined mobile phones if otherwise required. If set to Not Configured, Intune will not override client defaults. + State *Enablement `json:"state,omitempty"` + // SecurityDeviceRequired Controls whether to require a Trusted Platform Module (TPM) for provisioning Windows Hello for Business. A TPM provides an additional security benefit in that data stored on it cannot be used on other devices. If set to False, all devices can provision Windows Hello for Business even if there is not a usable TPM. + SecurityDeviceRequired *bool `json:"securityDeviceRequired,omitempty"` + // UnlockWithBiometricsEnabled Controls the use of biometric gestures, such as face and fingerprint, as an alternative to the Windows Hello for Business PIN. If set to False, biometric gestures are not allowed. Users must still configure a PIN as a backup in case of failures. + UnlockWithBiometricsEnabled *bool `json:"unlockWithBiometricsEnabled,omitempty"` + // RemotePassportEnabled Controls the use of Remote Windows Hello for Business. Remote Windows Hello for Business provides the ability for a portable, registered device to be usable as a companion for desktop authentication. The desktop must be Azure AD joined and the companion device must have a Windows Hello for Business PIN. + RemotePassportEnabled *bool `json:"remotePassportEnabled,omitempty"` + // PinPreviousBlockCount Controls the ability to prevent users from using past PINs. This must be set between 0 and 50, inclusive, and the current PIN of the user is included in that count. If set to 0, previous PINs are not stored. PIN history is not preserved through a PIN reset. + PinPreviousBlockCount *int `json:"pinPreviousBlockCount,omitempty"` + // PinExpirationInDays Controls the period of time (in days) that a PIN can be used before the system requires the user to change it. This must be set between 0 and 730, inclusive. If set to 0, the user's PIN will never expire + PinExpirationInDays *int `json:"pinExpirationInDays,omitempty"` + // EnhancedBiometricsState Controls the ability to use the anti-spoofing features for facial recognition on devices which support it. If set to disabled, anti-spoofing features are not allowed. If set to Not Configured, the user can choose whether they want to use anti-spoofing. + EnhancedBiometricsState *Enablement `json:"enhancedBiometricsState,omitempty"` + // SecurityKeyForSignIn Security key for Sign In provides the capacity for remotely turning ON/OFF Windows Hello Sercurity Keyl Not configured will honor configurations done on the clinet. + SecurityKeyForSignIn *Enablement `json:"securityKeyForSignIn,omitempty"` +} + +// DeviceExchangeAccessStateSummary undocumented +type DeviceExchangeAccessStateSummary struct { + // Object is the base model of DeviceExchangeAccessStateSummary + Object + // AllowedDeviceCount Total count of devices with Exchange Access State: Allowed. + AllowedDeviceCount *int `json:"allowedDeviceCount,omitempty"` + // BlockedDeviceCount Total count of devices with Exchange Access State: Blocked. + BlockedDeviceCount *int `json:"blockedDeviceCount,omitempty"` + // QuarantinedDeviceCount Total count of devices with Exchange Access State: Quarantined. + QuarantinedDeviceCount *int `json:"quarantinedDeviceCount,omitempty"` + // UnknownDeviceCount Total count of devices with Exchange Access State: Unknown. + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // UnavailableDeviceCount Total count of devices for which no Exchange Access State could be found. + UnavailableDeviceCount *int `json:"unavailableDeviceCount,omitempty"` +} + +// DeviceGeoLocation undocumented +type DeviceGeoLocation struct { + // Object is the base model of DeviceGeoLocation + Object + // LastCollectedDateTimeUtc Time at which location was recorded, relative to UTC + LastCollectedDateTimeUtc *time.Time `json:"lastCollectedDateTimeUtc,omitempty"` + // LastCollectedDateTime Time at which location was recorded, relative to UTC + LastCollectedDateTime *time.Time `json:"lastCollectedDateTime,omitempty"` + // Longitude Longitude coordinate of the device's location + Longitude *float64 `json:"longitude,omitempty"` + // Latitude Latitude coordinate of the device's location + Latitude *float64 `json:"latitude,omitempty"` + // Altitude Altitude, given in meters above sea level + Altitude *float64 `json:"altitude,omitempty"` + // HorizontalAccuracy Accuracy of longitude and latitude in meters + HorizontalAccuracy *float64 `json:"horizontalAccuracy,omitempty"` + // VerticalAccuracy Accuracy of altitude in meters + VerticalAccuracy *float64 `json:"verticalAccuracy,omitempty"` + // Heading Heading in degrees from true north + Heading *float64 `json:"heading,omitempty"` + // Speed Speed the device is traveling in meters per second + Speed *float64 `json:"speed,omitempty"` +} + +// DeviceHealthAttestationState undocumented +type DeviceHealthAttestationState struct { + // Object is the base model of DeviceHealthAttestationState + Object + // LastUpdateDateTime The Timestamp of the last update. + LastUpdateDateTime *string `json:"lastUpdateDateTime,omitempty"` + // ContentNamespaceURL The DHA report version. (Namespace version) + ContentNamespaceURL *string `json:"contentNamespaceUrl,omitempty"` + // DeviceHealthAttestationStatus The DHA report version. (Namespace version) + DeviceHealthAttestationStatus *string `json:"deviceHealthAttestationStatus,omitempty"` + // ContentVersion The HealthAttestation state schema version + ContentVersion *string `json:"contentVersion,omitempty"` + // IssuedDateTime The DateTime when device was evaluated or issued to MDM + IssuedDateTime *time.Time `json:"issuedDateTime,omitempty"` + // AttestationIdentityKey TWhen an Attestation Identity Key (AIK) is present on a device, it indicates that the device has an endorsement key (EK) certificate. + AttestationIdentityKey *string `json:"attestationIdentityKey,omitempty"` + // ResetCount The number of times a PC device has hibernated or resumed + ResetCount *int `json:"resetCount,omitempty"` + // RestartCount The number of times a PC device has rebooted + RestartCount *int `json:"restartCount,omitempty"` + // DataExcutionPolicy DEP Policy defines a set of hardware and software technologies that perform additional checks on memory + DataExcutionPolicy *string `json:"dataExcutionPolicy,omitempty"` + // BitLockerStatus On or Off of BitLocker Drive Encryption + BitLockerStatus *string `json:"bitLockerStatus,omitempty"` + // BootManagerVersion The version of the Boot Manager + BootManagerVersion *string `json:"bootManagerVersion,omitempty"` + // CodeIntegrityCheckVersion The version of the Boot Manager + CodeIntegrityCheckVersion *string `json:"codeIntegrityCheckVersion,omitempty"` + // SecureBoot When Secure Boot is enabled, the core components must have the correct cryptographic signatures + SecureBoot *string `json:"secureBoot,omitempty"` + // BootDebugging When bootDebugging is enabled, the device is used in development and testing + BootDebugging *string `json:"bootDebugging,omitempty"` + // OperatingSystemKernelDebugging When operatingSystemKernelDebugging is enabled, the device is used in development and testing + OperatingSystemKernelDebugging *string `json:"operatingSystemKernelDebugging,omitempty"` + // CodeIntegrity When code integrity is enabled, code execution is restricted to integrity verified code + CodeIntegrity *string `json:"codeIntegrity,omitempty"` + // TestSigning When test signing is allowed, the device does not enforce signature validation during boot + TestSigning *string `json:"testSigning,omitempty"` + // SafeMode Safe mode is a troubleshooting option for Windows that starts your computer in a limited state + SafeMode *string `json:"safeMode,omitempty"` + // WindowsPE Operating system running with limited services that is used to prepare a computer for Windows + WindowsPE *string `json:"windowsPE,omitempty"` + // EarlyLaunchAntiMalwareDriverProtection ELAM provides protection for the computers in your network when they start up + EarlyLaunchAntiMalwareDriverProtection *string `json:"earlyLaunchAntiMalwareDriverProtection,omitempty"` + // VirtualSecureMode VSM is a container that protects high value assets from a compromised kernel + VirtualSecureMode *string `json:"virtualSecureMode,omitempty"` + // PcrHashAlgorithm Informational attribute that identifies the HASH algorithm that was used by TPM + PcrHashAlgorithm *string `json:"pcrHashAlgorithm,omitempty"` + // BootAppSecurityVersion The security version number of the Boot Application + BootAppSecurityVersion *string `json:"bootAppSecurityVersion,omitempty"` + // BootManagerSecurityVersion The security version number of the Boot Application + BootManagerSecurityVersion *string `json:"bootManagerSecurityVersion,omitempty"` + // TpmVersion The security version number of the Boot Application + TpmVersion *string `json:"tpmVersion,omitempty"` + // Pcr0 The measurement that is captured in PCR[0] + Pcr0 *string `json:"pcr0,omitempty"` + // SecureBootConfigurationPolicyFingerPrint Fingerprint of the Custom Secure Boot Configuration Policy + SecureBootConfigurationPolicyFingerPrint *string `json:"secureBootConfigurationPolicyFingerPrint,omitempty"` + // CodeIntegrityPolicy The Code Integrity policy that is controlling the security of the boot environment + CodeIntegrityPolicy *string `json:"codeIntegrityPolicy,omitempty"` + // BootRevisionListInfo The Boot Revision List that was loaded during initial boot on the attested device + BootRevisionListInfo *string `json:"bootRevisionListInfo,omitempty"` + // OperatingSystemRevListInfo The Operating System Revision List that was loaded during initial boot on the attested device + OperatingSystemRevListInfo *string `json:"operatingSystemRevListInfo,omitempty"` + // HealthStatusMismatchInfo This attribute appears if DHA-Service detects an integrity issue + HealthStatusMismatchInfo *string `json:"healthStatusMismatchInfo,omitempty"` + // HealthAttestationSupportedStatus This attribute indicates if DHA is supported for the device + HealthAttestationSupportedStatus *string `json:"healthAttestationSupportedStatus,omitempty"` +} + +// DeviceHealthScript Intune will provide customer the ability to run their Powershell Health scripts (remediation + detection) on the enrolled windows 10 Azure Active Directory joined devices. +type DeviceHealthScript struct { + // Entity is the base model of DeviceHealthScript + Entity + // Publisher Name of the device health script publisher + Publisher *string `json:"publisher,omitempty"` + // Version Version of the device health script + Version *string `json:"version,omitempty"` + // DisplayName Name of the device health script + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the device health script + Description *string `json:"description,omitempty"` + // DetectionScriptContent The entire content of the detection powershell script + DetectionScriptContent *Binary `json:"detectionScriptContent,omitempty"` + // RemediationScriptContent The entire content of the remediation powershell script + RemediationScriptContent *Binary `json:"remediationScriptContent,omitempty"` + // CreatedDateTime The timestamp of when the device health script was created. This property is read-only. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The timestamp of when the device health script was modified. This property is read-only. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RunAsAccount Indicates the type of execution context + RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"` + // EnforceSignatureCheck Indicate whether the script signature needs be checked + EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"` + // RunAs32Bit Indicate whether PowerShell script(s) should run as 32-bit + RunAs32Bit *bool `json:"runAs32Bit,omitempty"` + // RoleScopeTagIDs List of Scope Tag IDs for the device health script + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // Assignments undocumented + Assignments []DeviceHealthScriptAssignment `json:"assignments,omitempty"` + // RunSummary undocumented + RunSummary *DeviceHealthScriptRunSummary `json:"runSummary,omitempty"` + // DeviceRunStates undocumented + DeviceRunStates []DeviceHealthScriptDeviceState `json:"deviceRunStates,omitempty"` +} + +// DeviceHealthScriptAssignment Contains properties used to assign a device management script to a group. +type DeviceHealthScriptAssignment struct { + // Entity is the base model of DeviceHealthScriptAssignment + Entity + // Target The Azure Active Directory group we are targeting the script to + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // RunRemediationScript Determine whether we want to run detection script only or run both detection script and remediation script + RunRemediationScript *bool `json:"runRemediationScript,omitempty"` + // RunSchedule Script run schedule for the target group + RunSchedule *RunSchedule `json:"runSchedule,omitempty"` +} + +// DeviceHealthScriptDeviceState Contains properties for device run state of the device health script. +type DeviceHealthScriptDeviceState struct { + // Entity is the base model of DeviceHealthScriptDeviceState + Entity + // DetectionState Detection state from the lastest device health script execution + DetectionState *RunState `json:"detectionState,omitempty"` + // LastStateUpdateDateTime The last timestamp of when the device health script executed + LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"` + // ExpectedStateUpdateDateTime The next timestamp of when the device health script is expected to execute + ExpectedStateUpdateDateTime *time.Time `json:"expectedStateUpdateDateTime,omitempty"` + // LastSyncDateTime The last time that Intune Managment Extension synced with Intune + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // PreRemediationDetectionScriptOutput Output of the detection script before remediation + PreRemediationDetectionScriptOutput *string `json:"preRemediationDetectionScriptOutput,omitempty"` + // PreRemediationDetectionScriptError Error from the detection script before remediation + PreRemediationDetectionScriptError *string `json:"preRemediationDetectionScriptError,omitempty"` + // RemediationScriptError Error output of the remediation script + RemediationScriptError *string `json:"remediationScriptError,omitempty"` + // PostRemediationDetectionScriptOutput Detection script output after remediation + PostRemediationDetectionScriptOutput *string `json:"postRemediationDetectionScriptOutput,omitempty"` + // PostRemediationDetectionScriptError Error from the detection script after remediation + PostRemediationDetectionScriptError *string `json:"postRemediationDetectionScriptError,omitempty"` + // RemediationState Remediation state from the lastest device health script execution + RemediationState *RemediationState `json:"remediationState,omitempty"` + // ManagedDevice undocumented + ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"` +} + +// DeviceHealthScriptRunSummary Contains properties for the run summary of a device management script. +type DeviceHealthScriptRunSummary struct { + // Entity is the base model of DeviceHealthScriptRunSummary + Entity + // NoIssueDetectedDeviceCount Number of devices for which the detection script did not find an issue and the device is healthy + NoIssueDetectedDeviceCount *int `json:"noIssueDetectedDeviceCount,omitempty"` + // IssueDetectedDeviceCount Number of devices for which the detection script found an issue + IssueDetectedDeviceCount *int `json:"issueDetectedDeviceCount,omitempty"` + // DetectionScriptErrorDeviceCount Number of devices on which the detection script execution encountered an error and did not complete + DetectionScriptErrorDeviceCount *int `json:"detectionScriptErrorDeviceCount,omitempty"` + // DetectionScriptPendingDeviceCount Number of devices which have not yet run the latest version of the device health script + DetectionScriptPendingDeviceCount *int `json:"detectionScriptPendingDeviceCount,omitempty"` + // IssueRemediatedDeviceCount Number of devices for which the remediation script was able to resolve the detected issue + IssueRemediatedDeviceCount *int `json:"issueRemediatedDeviceCount,omitempty"` + // RemediationSkippedDeviceCount Number of devices for which remediation was skipped + RemediationSkippedDeviceCount *int `json:"remediationSkippedDeviceCount,omitempty"` + // IssueReoccurredDeviceCount Number of devices for which the remediation script executed successfully but failed to resolve the detected issue + IssueReoccurredDeviceCount *int `json:"issueReoccurredDeviceCount,omitempty"` + // RemediationScriptErrorDeviceCount Number of devices for which the remediation script execution encountered an error and did not complete + RemediationScriptErrorDeviceCount *int `json:"remediationScriptErrorDeviceCount,omitempty"` + // LastScriptRunDateTime Last run time for the script across all devices + LastScriptRunDateTime *time.Time `json:"lastScriptRunDateTime,omitempty"` +} + +// DeviceInstallState Contains properties for the installation state for a device. +type DeviceInstallState struct { + // Entity is the base model of DeviceInstallState + Entity + // DeviceName Device name. + DeviceName *string `json:"deviceName,omitempty"` + // DeviceID Device Id. + DeviceID *string `json:"deviceId,omitempty"` + // LastSyncDateTime Last sync date and time. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // InstallState The install state of the eBook. + InstallState *InstallState `json:"installState,omitempty"` + // ErrorCode The error code for install failures. + ErrorCode *string `json:"errorCode,omitempty"` + // OsVersion OS Version. + OsVersion *string `json:"osVersion,omitempty"` + // OsDescription OS Description. + OsDescription *string `json:"osDescription,omitempty"` + // UserName Device User Name. + UserName *string `json:"userName,omitempty"` +} + +// DeviceKey undocumented +type DeviceKey struct { + // Object is the base model of DeviceKey + Object + // KeyType undocumented + KeyType *string `json:"keyType,omitempty"` + // KeyMaterial undocumented + KeyMaterial *Binary `json:"keyMaterial,omitempty"` + // DeviceID undocumented + DeviceID *UUID `json:"deviceId,omitempty"` +} + +// DeviceManagement Singleton that acts as container for a collection of UserPFXCertificate entities. +type DeviceManagement struct { + // Entity is the base model of DeviceManagement + Entity + // Settings Account level settings. + Settings *DeviceManagementSettings `json:"settings,omitempty"` + // MaximumDepTokens Maximum number of dep tokens allowed per-tenant. + MaximumDepTokens *int `json:"maximumDepTokens,omitempty"` + // IntuneAccountID Intune Account Id for given tenant + IntuneAccountID *UUID `json:"intuneAccountId,omitempty"` + // LastReportAggregationDateTime The last modified time of reporting for this account. This property is read-only. + LastReportAggregationDateTime *time.Time `json:"lastReportAggregationDateTime,omitempty"` + // DeviceComplianceReportSummarizationDateTime The last requested time of device compliance reporting for this account. This property is read-only. + DeviceComplianceReportSummarizationDateTime *time.Time `json:"deviceComplianceReportSummarizationDateTime,omitempty"` + // LegacyPcManangementEnabled The property to enable Non-MDM managed legacy PC management for this account. This property is read-only. + LegacyPcManangementEnabled *bool `json:"legacyPcManangementEnabled,omitempty"` + // IntuneBrand intuneBrand contains data which is used in customizing the appearance of the Company Portal applications as well as the end user web portal. + IntuneBrand *IntuneBrand `json:"intuneBrand,omitempty"` + // SubscriptionState Tenant mobile device management subscription state. + SubscriptionState *DeviceManagementSubscriptionState `json:"subscriptionState,omitempty"` + // Subscriptions Tenant's Subscription. + Subscriptions *DeviceManagementSubscriptions `json:"subscriptions,omitempty"` + // ManagedDeviceCleanupSettings Device cleanup rule + ManagedDeviceCleanupSettings *ManagedDeviceCleanupSettings `json:"managedDeviceCleanupSettings,omitempty"` + // AdminConsent Admin consent information. + AdminConsent *AdminConsent `json:"adminConsent,omitempty"` + // DeviceProtectionOverview Device protection overview. + DeviceProtectionOverview *DeviceProtectionOverview `json:"deviceProtectionOverview,omitempty"` + // WindowsMalwareOverview Malware overview for windows devices. + WindowsMalwareOverview *WindowsMalwareOverview `json:"windowsMalwareOverview,omitempty"` + // AccountMoveCompletionDateTime The date & time when tenant data moved between scaleunits. + AccountMoveCompletionDateTime *time.Time `json:"accountMoveCompletionDateTime,omitempty"` + // GroupPolicyObjectFiles A list of Group Policy Object files uploaded. + GroupPolicyObjectFiles []GroupPolicyObjectFile `json:"groupPolicyObjectFiles,omitempty"` + // AuditEvents undocumented + AuditEvents []AuditEvent `json:"auditEvents,omitempty"` + // AndroidForWorkSettings undocumented + AndroidForWorkSettings *AndroidForWorkSettings `json:"androidForWorkSettings,omitempty"` + // AndroidForWorkAppConfigurationSchemas undocumented + AndroidForWorkAppConfigurationSchemas []AndroidForWorkAppConfigurationSchema `json:"androidForWorkAppConfigurationSchemas,omitempty"` + // AndroidForWorkEnrollmentProfiles undocumented + AndroidForWorkEnrollmentProfiles []AndroidForWorkEnrollmentProfile `json:"androidForWorkEnrollmentProfiles,omitempty"` + // AndroidManagedStoreAccountEnterpriseSettings undocumented + AndroidManagedStoreAccountEnterpriseSettings *AndroidManagedStoreAccountEnterpriseSettings `json:"androidManagedStoreAccountEnterpriseSettings,omitempty"` + // AndroidManagedStoreAppConfigurationSchemas undocumented + AndroidManagedStoreAppConfigurationSchemas []AndroidManagedStoreAppConfigurationSchema `json:"androidManagedStoreAppConfigurationSchemas,omitempty"` + // AndroidDeviceOwnerEnrollmentProfiles undocumented + AndroidDeviceOwnerEnrollmentProfiles []AndroidDeviceOwnerEnrollmentProfile `json:"androidDeviceOwnerEnrollmentProfiles,omitempty"` + // TermsAndConditions undocumented + TermsAndConditions []TermsAndConditions `json:"termsAndConditions,omitempty"` + // DeviceConfigurations undocumented + DeviceConfigurations []DeviceConfiguration `json:"deviceConfigurations,omitempty"` + // DeviceCompliancePolicies undocumented + DeviceCompliancePolicies []DeviceCompliancePolicy `json:"deviceCompliancePolicies,omitempty"` + // SoftwareUpdateStatusSummary undocumented + SoftwareUpdateStatusSummary *SoftwareUpdateStatusSummary `json:"softwareUpdateStatusSummary,omitempty"` + // DeviceCompliancePolicyDeviceStateSummary undocumented + DeviceCompliancePolicyDeviceStateSummary *DeviceCompliancePolicyDeviceStateSummary `json:"deviceCompliancePolicyDeviceStateSummary,omitempty"` + // DeviceCompliancePolicySettingStateSummaries undocumented + DeviceCompliancePolicySettingStateSummaries []DeviceCompliancePolicySettingStateSummary `json:"deviceCompliancePolicySettingStateSummaries,omitempty"` + // AdvancedThreatProtectionOnboardingStateSummary undocumented + AdvancedThreatProtectionOnboardingStateSummary *AdvancedThreatProtectionOnboardingStateSummary `json:"advancedThreatProtectionOnboardingStateSummary,omitempty"` + // DeviceConfigurationDeviceStateSummaries undocumented + DeviceConfigurationDeviceStateSummaries *DeviceConfigurationDeviceStateSummary `json:"deviceConfigurationDeviceStateSummaries,omitempty"` + // DeviceConfigurationUserStateSummaries undocumented + DeviceConfigurationUserStateSummaries *DeviceConfigurationUserStateSummary `json:"deviceConfigurationUserStateSummaries,omitempty"` + // CartToClassAssociations undocumented + CartToClassAssociations []CartToClassAssociation `json:"cartToClassAssociations,omitempty"` + // IOSUpdateStatuses undocumented + IOSUpdateStatuses []IOSUpdateDeviceStatus `json:"iosUpdateStatuses,omitempty"` + // NDESConnectors undocumented + NDESConnectors []NDESConnector `json:"ndesConnectors,omitempty"` + // DeviceConfigurationRestrictedAppsViolations undocumented + DeviceConfigurationRestrictedAppsViolations []RestrictedAppsViolation `json:"deviceConfigurationRestrictedAppsViolations,omitempty"` + // ManagedDeviceEncryptionStates undocumented + ManagedDeviceEncryptionStates []ManagedDeviceEncryptionState `json:"managedDeviceEncryptionStates,omitempty"` + // DeviceConfigurationConflictSummary undocumented + DeviceConfigurationConflictSummary []DeviceConfigurationConflictSummary `json:"deviceConfigurationConflictSummary,omitempty"` + // DeviceConfigurationsAllManagedDeviceCertificateStates undocumented + DeviceConfigurationsAllManagedDeviceCertificateStates []ManagedAllDeviceCertificateState `json:"deviceConfigurationsAllManagedDeviceCertificateStates,omitempty"` + // DeviceCategories undocumented + DeviceCategories []DeviceCategory `json:"deviceCategories,omitempty"` + // ExchangeConnectors undocumented + ExchangeConnectors []DeviceManagementExchangeConnector `json:"exchangeConnectors,omitempty"` + // DeviceEnrollmentConfigurations undocumented + DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"` + // ExchangeOnPremisesPolicy undocumented + ExchangeOnPremisesPolicy *DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicy,omitempty"` + // ExchangeOnPremisesPolicies undocumented + ExchangeOnPremisesPolicies []DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicies,omitempty"` + // ConditionalAccessSettings undocumented + ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"` + // MobileThreatDefenseConnectors undocumented + MobileThreatDefenseConnectors []MobileThreatDefenseConnector `json:"mobileThreatDefenseConnectors,omitempty"` + // DeviceManagementPartners undocumented + DeviceManagementPartners []DeviceManagementPartner `json:"deviceManagementPartners,omitempty"` + // ComplianceManagementPartners undocumented + ComplianceManagementPartners []ComplianceManagementPartner `json:"complianceManagementPartners,omitempty"` + // Intents undocumented + Intents []DeviceManagementIntent `json:"intents,omitempty"` + // SettingDefinitions undocumented + SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"` + // Templates undocumented + Templates []DeviceManagementTemplate `json:"templates,omitempty"` + // Categories undocumented + Categories []DeviceManagementSettingCategory `json:"categories,omitempty"` + // RemoteActionAudits undocumented + RemoteActionAudits []RemoteActionAudit `json:"remoteActionAudits,omitempty"` + // ApplePushNotificationCertificate undocumented + ApplePushNotificationCertificate *ApplePushNotificationCertificate `json:"applePushNotificationCertificate,omitempty"` + // DeviceManagementScripts undocumented + DeviceManagementScripts []DeviceManagementScript `json:"deviceManagementScripts,omitempty"` + // DeviceHealthScripts undocumented + DeviceHealthScripts []DeviceHealthScript `json:"deviceHealthScripts,omitempty"` + // ManagedDeviceOverview undocumented + ManagedDeviceOverview *ManagedDeviceOverview `json:"managedDeviceOverview,omitempty"` + // DetectedApps undocumented + DetectedApps []DetectedApp `json:"detectedApps,omitempty"` + // ManagedDevices undocumented + ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"` + // WindowsMalwareInformation undocumented + WindowsMalwareInformation []WindowsMalwareInformation `json:"windowsMalwareInformation,omitempty"` + // DataSharingConsents undocumented + DataSharingConsents []DataSharingConsent `json:"dataSharingConsents,omitempty"` + // MobileAppTroubleshootingEvents undocumented + MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"` + // UserExperienceAnalyticsOverview undocumented + UserExperienceAnalyticsOverview *UserExperienceAnalyticsOverview `json:"userExperienceAnalyticsOverview,omitempty"` + // UserExperienceAnalyticsBaselines undocumented + UserExperienceAnalyticsBaselines []UserExperienceAnalyticsBaseline `json:"userExperienceAnalyticsBaselines,omitempty"` + // UserExperienceAnalyticsCategories undocumented + UserExperienceAnalyticsCategories []UserExperienceAnalyticsCategory `json:"userExperienceAnalyticsCategories,omitempty"` + // UserExperienceAnalyticsDevicePerformance undocumented + UserExperienceAnalyticsDevicePerformance []UserExperienceAnalyticsDevicePerformance `json:"userExperienceAnalyticsDevicePerformance,omitempty"` + // UserExperienceAnalyticsRegressionSummary undocumented + UserExperienceAnalyticsRegressionSummary *UserExperienceAnalyticsRegressionSummary `json:"userExperienceAnalyticsRegressionSummary,omitempty"` + // UserExperienceAnalyticsDeviceStartupHistory undocumented + UserExperienceAnalyticsDeviceStartupHistory []UserExperienceAnalyticsDeviceStartupHistory `json:"userExperienceAnalyticsDeviceStartupHistory,omitempty"` + // DerivedCredentials undocumented + DerivedCredentials []DeviceManagementDerivedCredentialSettings `json:"derivedCredentials,omitempty"` + // WindowsAutopilotSettings undocumented + WindowsAutopilotSettings *WindowsAutopilotSettings `json:"windowsAutopilotSettings,omitempty"` + // WindowsAutopilotDeviceIdentities undocumented + WindowsAutopilotDeviceIdentities []WindowsAutopilotDeviceIdentity `json:"windowsAutopilotDeviceIdentities,omitempty"` + // WindowsAutopilotDeploymentProfiles undocumented + WindowsAutopilotDeploymentProfiles []WindowsAutopilotDeploymentProfile `json:"windowsAutopilotDeploymentProfiles,omitempty"` + // ImportedDeviceIdentities undocumented + ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"` + // DepOnboardingSettings undocumented + DepOnboardingSettings []DepOnboardingSetting `json:"depOnboardingSettings,omitempty"` + // ImportedWindowsAutopilotDeviceIdentities undocumented + ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"` + // AppleUserInitiatedEnrollmentProfiles undocumented + AppleUserInitiatedEnrollmentProfiles []AppleUserInitiatedEnrollmentProfile `json:"appleUserInitiatedEnrollmentProfiles,omitempty"` + // ManagementConditions undocumented + ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"` + // ManagementConditionStatements undocumented + ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"` + // GroupPolicyMigrationReports undocumented + GroupPolicyMigrationReports []GroupPolicyMigrationReport `json:"groupPolicyMigrationReports,omitempty"` + // GroupPolicyConfigurations undocumented + GroupPolicyConfigurations []GroupPolicyConfiguration `json:"groupPolicyConfigurations,omitempty"` + // GroupPolicyDefinitions undocumented + GroupPolicyDefinitions []GroupPolicyDefinition `json:"groupPolicyDefinitions,omitempty"` + // GroupPolicyDefinitionFiles undocumented + GroupPolicyDefinitionFiles []GroupPolicyDefinitionFile `json:"groupPolicyDefinitionFiles,omitempty"` + // NotificationMessageTemplates undocumented + NotificationMessageTemplates []NotificationMessageTemplate `json:"notificationMessageTemplates,omitempty"` + // DomainJoinConnectors undocumented + DomainJoinConnectors []DeviceManagementDomainJoinConnector `json:"domainJoinConnectors,omitempty"` + // RoleDefinitions undocumented + RoleDefinitions []RoleDefinition `json:"roleDefinitions,omitempty"` + // RoleAssignments undocumented + RoleAssignments []DeviceAndAppManagementRoleAssignment `json:"roleAssignments,omitempty"` + // RoleScopeTags undocumented + RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"` + // ResourceOperations undocumented + ResourceOperations []ResourceOperation `json:"resourceOperations,omitempty"` + // RemoteAssistancePartners undocumented + RemoteAssistancePartners []RemoteAssistancePartner `json:"remoteAssistancePartners,omitempty"` + // Reports undocumented + Reports *DeviceManagementReports `json:"reports,omitempty"` + // TelecomExpenseManagementPartners undocumented + TelecomExpenseManagementPartners []TelecomExpenseManagementPartner `json:"telecomExpenseManagementPartners,omitempty"` + // EmbeddedSIMActivationCodePools undocumented + EmbeddedSIMActivationCodePools []EmbeddedSIMActivationCodePool `json:"embeddedSIMActivationCodePools,omitempty"` + // TroubleshootingEvents undocumented + TroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"troubleshootingEvents,omitempty"` + // AutopilotEvents undocumented + AutopilotEvents []DeviceManagementAutopilotEvent `json:"autopilotEvents,omitempty"` + // WindowsFeatureUpdateProfiles undocumented + WindowsFeatureUpdateProfiles []WindowsFeatureUpdateProfile `json:"windowsFeatureUpdateProfiles,omitempty"` + // WindowsInformationProtectionAppLearningSummaries undocumented + WindowsInformationProtectionAppLearningSummaries []WindowsInformationProtectionAppLearningSummary `json:"windowsInformationProtectionAppLearningSummaries,omitempty"` + // WindowsInformationProtectionNetworkLearningSummaries undocumented + WindowsInformationProtectionNetworkLearningSummaries []WindowsInformationProtectionNetworkLearningSummary `json:"windowsInformationProtectionNetworkLearningSummaries,omitempty"` + // IntuneBrandingProfiles undocumented + IntuneBrandingProfiles []IntuneBrandingProfile `json:"intuneBrandingProfiles,omitempty"` + // UserPfxCertificates undocumented + UserPfxCertificates []UserPFXCertificate `json:"userPfxCertificates,omitempty"` +} + +// DeviceManagementAbstractComplexSettingDefinition Entity representing the defintion for an abstract complex setting +type DeviceManagementAbstractComplexSettingDefinition struct { + // DeviceManagementSettingDefinition is the base model of DeviceManagementAbstractComplexSettingDefinition + DeviceManagementSettingDefinition + // Implementations List of definition IDs for all possible implementations of this abstract complex setting + Implementations []string `json:"implementations,omitempty"` +} + +// DeviceManagementAbstractComplexSettingInstance A setting instance representing a complex value for an abstract setting +type DeviceManagementAbstractComplexSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementAbstractComplexSettingInstance + DeviceManagementSettingInstance + // ImplementationID The definition ID for the chosen implementation of this complex setting + ImplementationID *string `json:"implementationId,omitempty"` + // Value undocumented + Value []DeviceManagementSettingInstance `json:"value,omitempty"` +} + +// DeviceManagementApplicabilityRuleDeviceMode undocumented +type DeviceManagementApplicabilityRuleDeviceMode struct { + // Object is the base model of DeviceManagementApplicabilityRuleDeviceMode + Object + // DeviceMode Applicability rule for device mode. + DeviceMode *Windows10DeviceModeType `json:"deviceMode,omitempty"` + // Name Name for object. + Name *string `json:"name,omitempty"` + // RuleType Applicability Rule type. + RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"` +} + +// DeviceManagementApplicabilityRuleOsEdition undocumented +type DeviceManagementApplicabilityRuleOsEdition struct { + // Object is the base model of DeviceManagementApplicabilityRuleOsEdition + Object + // OsEditionTypes Applicability rule OS edition type. + OsEditionTypes []Windows10EditionType `json:"osEditionTypes,omitempty"` + // Name Name for object. + Name *string `json:"name,omitempty"` + // RuleType Applicability Rule type. + RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"` +} + +// DeviceManagementApplicabilityRuleOsVersion undocumented +type DeviceManagementApplicabilityRuleOsVersion struct { + // Object is the base model of DeviceManagementApplicabilityRuleOsVersion + Object + // MinOSVersion Min OS version for Applicability Rule. + MinOSVersion *string `json:"minOSVersion,omitempty"` + // MaxOSVersion Max OS version for Applicability Rule. + MaxOSVersion *string `json:"maxOSVersion,omitempty"` + // Name Name for object. + Name *string `json:"name,omitempty"` + // RuleType Applicability Rule type. + RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"` +} + +// DeviceManagementAutopilotEvent Represents an Autopilot flow event. +type DeviceManagementAutopilotEvent struct { + // Entity is the base model of DeviceManagementAutopilotEvent + Entity + // EventDateTime Time when the event occurred . + EventDateTime *time.Time `json:"eventDateTime,omitempty"` + // DeviceRegisteredDateTime Device registration date. + DeviceRegisteredDateTime *time.Time `json:"deviceRegisteredDateTime,omitempty"` + // EnrollmentStartDateTime Device enrollment start date. + EnrollmentStartDateTime *time.Time `json:"enrollmentStartDateTime,omitempty"` + // EnrollmentType Enrollment type. + EnrollmentType *WindowsAutopilotEnrollmentType `json:"enrollmentType,omitempty"` + // DeviceSerialNumber Device serial number. + DeviceSerialNumber *string `json:"deviceSerialNumber,omitempty"` + // ManagedDeviceName Managed device name. + ManagedDeviceName *string `json:"managedDeviceName,omitempty"` + // UserPrincipalName User principal name used to enroll the device. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // WindowsAutopilotDeploymentProfileDisplayName Autopilot profile name. + WindowsAutopilotDeploymentProfileDisplayName *string `json:"windowsAutopilotDeploymentProfileDisplayName,omitempty"` + // EnrollmentState Enrollment state like Enrolled, Failed. + EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"` + // Windows10EnrollmentCompletionPageConfigurationDisplayName Enrollment Status Page profile name + Windows10EnrollmentCompletionPageConfigurationDisplayName *string `json:"windows10EnrollmentCompletionPageConfigurationDisplayName,omitempty"` + // DeploymentState Deployment state like Success, Failure, InProgress, SuccessWithTimeout. + DeploymentState *WindowsAutopilotDeploymentState `json:"deploymentState,omitempty"` + // OsVersion Device operating system version. + OsVersion *string `json:"osVersion,omitempty"` + // DeploymentDuration Autopilot deployment duration including enrollment. + DeploymentDuration *Duration `json:"deploymentDuration,omitempty"` + // DeploymentTotalDuration Total deployment duration from enrollment to Desktop screen. + DeploymentTotalDuration *Duration `json:"deploymentTotalDuration,omitempty"` + // DevicePreparationDuration Time spent in device enrollment. + DevicePreparationDuration *Duration `json:"devicePreparationDuration,omitempty"` + // DeviceSetupDuration Time spent in device ESP. + DeviceSetupDuration *Duration `json:"deviceSetupDuration,omitempty"` + // AccountSetupDuration Time spent in user ESP. + AccountSetupDuration *Duration `json:"accountSetupDuration,omitempty"` + // DeploymentStartDateTime Deployment start time. + DeploymentStartDateTime *time.Time `json:"deploymentStartDateTime,omitempty"` + // DeploymentEndDateTime Deployment end time. + DeploymentEndDateTime *time.Time `json:"deploymentEndDateTime,omitempty"` + // TargetedAppCount Count of applications targeted. + TargetedAppCount *int `json:"targetedAppCount,omitempty"` + // TargetedPolicyCount Count of policies targeted. + TargetedPolicyCount *int `json:"targetedPolicyCount,omitempty"` + // EnrollmentFailureDetails Enrollment failure details. + EnrollmentFailureDetails *string `json:"enrollmentFailureDetails,omitempty"` +} + +// DeviceManagementBooleanSettingInstance A setting instance representing a boolean value +type DeviceManagementBooleanSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementBooleanSettingInstance + DeviceManagementSettingInstance + // Value The boolean value + Value *bool `json:"value,omitempty"` +} + +// DeviceManagementCachedReportConfiguration Entity representing the configuration of a cached report +type DeviceManagementCachedReportConfiguration struct { + // Entity is the base model of DeviceManagementCachedReportConfiguration + Entity + // ReportName Name of the report + ReportName *string `json:"reportName,omitempty"` + // Filter Filters applied on report creation. + Filter *string `json:"filter,omitempty"` + // Select Columns selected from the report + Select []string `json:"select,omitempty"` + // OrderBy Ordering of columns in the report + OrderBy []string `json:"orderBy,omitempty"` + // Status Status of the cached report + Status *DeviceManagementReportStatus `json:"status,omitempty"` + // LastRefreshDateTime Time that the cached report was last refreshed + LastRefreshDateTime *time.Time `json:"lastRefreshDateTime,omitempty"` + // ExpirationDateTime Time that the cached report expires + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` +} + +// DeviceManagementCollectionSettingDefinition Entity representing the defintion for a collection setting +type DeviceManagementCollectionSettingDefinition struct { + // DeviceManagementSettingDefinition is the base model of DeviceManagementCollectionSettingDefinition + DeviceManagementSettingDefinition + // ElementDefinitionID The Setting Definition ID that describes what each element of the collection looks like + ElementDefinitionID *string `json:"elementDefinitionId,omitempty"` +} + +// DeviceManagementCollectionSettingInstance A setting instance representing a collection of values +type DeviceManagementCollectionSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementCollectionSettingInstance + DeviceManagementSettingInstance + // Value undocumented + Value []DeviceManagementSettingInstance `json:"value,omitempty"` +} + +// DeviceManagementComplexSettingDefinition Entity representing the defintion for a complex setting +type DeviceManagementComplexSettingDefinition struct { + // DeviceManagementSettingDefinition is the base model of DeviceManagementComplexSettingDefinition + DeviceManagementSettingDefinition + // PropertyDefinitionIDs The definitions of each property of the complex setting + PropertyDefinitionIDs []string `json:"propertyDefinitionIds,omitempty"` +} + +// DeviceManagementComplexSettingInstance A setting instance representing a complex value +type DeviceManagementComplexSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementComplexSettingInstance + DeviceManagementSettingInstance + // Value undocumented + Value []DeviceManagementSettingInstance `json:"value,omitempty"` +} + +// DeviceManagementConstraint undocumented +type DeviceManagementConstraint struct { + // Object is the base model of DeviceManagementConstraint + Object +} + +// DeviceManagementDerivedCredentialSettings Entity that describes tenant level settings for derived credentials +type DeviceManagementDerivedCredentialSettings struct { + // Entity is the base model of DeviceManagementDerivedCredentialSettings + Entity + // HelpURL The URL that will be accessible to end users as they retrieve a derived credential using the Company Portal. + HelpURL *string `json:"helpUrl,omitempty"` + // DisplayName The display name for the profile. + DisplayName *string `json:"displayName,omitempty"` + // Issuer The derived credential provider to use. + Issuer *DeviceManagementDerivedCredentialIssuer `json:"issuer,omitempty"` + // NotificationType The methods used to inform the end user to open Company Portal to deliver Wi-Fi, VPN, or email profiles that use certificates to the device. + NotificationType *DeviceManagementDerivedCredentialNotificationType `json:"notificationType,omitempty"` +} + +// DeviceManagementDomainJoinConnector A Domain Join Connector is a connector that is responsible to allocate (and delete) machine account blobs +type DeviceManagementDomainJoinConnector struct { + // Entity is the base model of DeviceManagementDomainJoinConnector + Entity + // DisplayName The connector display name. + DisplayName *string `json:"displayName,omitempty"` + // LastConnectionDateTime Last time connector contacted Intune. + LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"` + // State The connector state. + State *DeviceManagementDomainJoinConnectorState `json:"state,omitempty"` + // Version The version of the connector. + Version *string `json:"version,omitempty"` +} + +// DeviceManagementEnumConstraint undocumented +type DeviceManagementEnumConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementEnumConstraint + DeviceManagementConstraint + // Values List of valid values for this string + Values []DeviceManagementEnumValue `json:"values,omitempty"` +} + +// DeviceManagementEnumValue undocumented +type DeviceManagementEnumValue struct { + // Object is the base model of DeviceManagementEnumValue + Object + // Value The raw enum value text + Value *string `json:"value,omitempty"` + // DisplayName Display name for this enum value + DisplayName *string `json:"displayName,omitempty"` +} + +// DeviceManagementExchangeAccessRule undocumented +type DeviceManagementExchangeAccessRule struct { + // Object is the base model of DeviceManagementExchangeAccessRule + Object + // DeviceClass Device Class which will be impacted by this rule. + DeviceClass *DeviceManagementExchangeDeviceClass `json:"deviceClass,omitempty"` + // AccessLevel Access Level for Exchange granted by this rule. + AccessLevel *DeviceManagementExchangeAccessLevel `json:"accessLevel,omitempty"` +} + +// DeviceManagementExchangeConnector Entity which represents a connection to an Exchange environment. +type DeviceManagementExchangeConnector struct { + // Entity is the base model of DeviceManagementExchangeConnector + Entity + // LastSyncDateTime Last sync time for the Exchange Connector + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // Status Exchange Connector Status + Status *DeviceManagementExchangeConnectorStatus `json:"status,omitempty"` + // PrimarySMTPAddress Email address used to configure the Service To Service Exchange Connector. + PrimarySMTPAddress *string `json:"primarySmtpAddress,omitempty"` + // ServerName The name of the Exchange server. + ServerName *string `json:"serverName,omitempty"` + // ConnectorServerName The name of the server hosting the Exchange Connector. + ConnectorServerName *string `json:"connectorServerName,omitempty"` + // ExchangeConnectorType The type of Exchange Connector Configured. + ExchangeConnectorType *DeviceManagementExchangeConnectorType `json:"exchangeConnectorType,omitempty"` + // Version The version of the ExchangeConnectorAgent + Version *string `json:"version,omitempty"` + // ExchangeAlias An alias assigned to the Exchange server + ExchangeAlias *string `json:"exchangeAlias,omitempty"` + // ExchangeOrganization Exchange Organization to the Exchange server + ExchangeOrganization *string `json:"exchangeOrganization,omitempty"` +} + +// DeviceManagementExchangeDeviceClass undocumented +type DeviceManagementExchangeDeviceClass struct { + // Object is the base model of DeviceManagementExchangeDeviceClass + Object + // Name Name of the device class which will be impacted by this rule. + Name *string `json:"name,omitempty"` + // Type Type of device which is impacted by this rule e.g. Model, Family + Type *DeviceManagementExchangeAccessRuleType `json:"type,omitempty"` +} + +// DeviceManagementExchangeOnPremisesPolicy Singleton entity which represents the Exchange OnPremises policy configured for a tenant. +type DeviceManagementExchangeOnPremisesPolicy struct { + // Entity is the base model of DeviceManagementExchangeOnPremisesPolicy + Entity + // NotificationContent Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML. + NotificationContent *Binary `json:"notificationContent,omitempty"` + // DefaultAccessLevel Default access state in Exchange. This rule applies globally to the entire Exchange organization + DefaultAccessLevel *DeviceManagementExchangeAccessLevel `json:"defaultAccessLevel,omitempty"` + // AccessRules The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization + AccessRules []DeviceManagementExchangeAccessRule `json:"accessRules,omitempty"` + // KnownDeviceClasses The list of device classes known to Exchange + KnownDeviceClasses []DeviceManagementExchangeDeviceClass `json:"knownDeviceClasses,omitempty"` + // ConditionalAccessSettings undocumented + ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"` +} + +// DeviceManagementExportJob Entity representing a job to export a report +type DeviceManagementExportJob struct { + // Entity is the base model of DeviceManagementExportJob + Entity + // ReportName Name of the report + ReportName *string `json:"reportName,omitempty"` + // Filter Filters applied on the report + Filter *string `json:"filter,omitempty"` + // Select Columns selected from the report + Select []string `json:"select,omitempty"` + // Format Format of the exported report + Format *DeviceManagementReportFileFormat `json:"format,omitempty"` + // SnapshotID A snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id. + SnapshotID *string `json:"snapshotId,omitempty"` + // Status Status of the export job + Status *DeviceManagementReportStatus `json:"status,omitempty"` + // URL Temporary location of the exported report + URL *string `json:"url,omitempty"` + // RequestDateTime Time that the exported report was requested + RequestDateTime *time.Time `json:"requestDateTime,omitempty"` + // ExpirationDateTime Time that the exported report expires + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` +} + +// DeviceManagementIntegerSettingInstance A setting instance representing an integer value +type DeviceManagementIntegerSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementIntegerSettingInstance + DeviceManagementSettingInstance + // Value The integer value + Value *int `json:"value,omitempty"` +} + +// DeviceManagementIntent Entity that represents an intent to apply settings to a device +type DeviceManagementIntent struct { + // Entity is the base model of DeviceManagementIntent + Entity + // DisplayName The user given display name + DisplayName *string `json:"displayName,omitempty"` + // Description The user given description + Description *string `json:"description,omitempty"` + // IsAssigned Signifies whether or not the intent is assigned to users + IsAssigned *bool `json:"isAssigned,omitempty"` + // LastModifiedDateTime When the intent was last modified + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // TemplateID The ID of the template this intent was created from (if any) + TemplateID *string `json:"templateId,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // Settings undocumented + Settings []DeviceManagementSettingInstance `json:"settings,omitempty"` + // Categories undocumented + Categories []DeviceManagementIntentSettingCategory `json:"categories,omitempty"` + // Assignments undocumented + Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"` + // DeviceSettingStateSummaries undocumented + DeviceSettingStateSummaries []DeviceManagementIntentDeviceSettingStateSummary `json:"deviceSettingStateSummaries,omitempty"` + // DeviceStates undocumented + DeviceStates []DeviceManagementIntentDeviceState `json:"deviceStates,omitempty"` + // UserStates undocumented + UserStates []DeviceManagementIntentUserState `json:"userStates,omitempty"` + // DeviceStateSummary undocumented + DeviceStateSummary *DeviceManagementIntentDeviceStateSummary `json:"deviceStateSummary,omitempty"` + // UserStateSummary undocumented + UserStateSummary *DeviceManagementIntentUserStateSummary `json:"userStateSummary,omitempty"` +} + +// DeviceManagementIntentAssignment Intent assignment entity +type DeviceManagementIntentAssignment struct { + // Entity is the base model of DeviceManagementIntentAssignment + Entity + // Target The assignment target + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// DeviceManagementIntentDeviceSettingStateSummary Entity that represents device setting state summary for an intent +type DeviceManagementIntentDeviceSettingStateSummary struct { + // Entity is the base model of DeviceManagementIntentDeviceSettingStateSummary + Entity + // SettingName Name of a setting + SettingName *string `json:"settingName,omitempty"` + // CompliantCount Number of compliant devices + CompliantCount *int `json:"compliantCount,omitempty"` + // ConflictCount Number of devices in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // NonCompliantCount Number of non compliant devices + NonCompliantCount *int `json:"nonCompliantCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // RemediatedCount Number of remediated devices + RemediatedCount *int `json:"remediatedCount,omitempty"` +} + +// DeviceManagementIntentDeviceState Entity that represents device state for an intent +type DeviceManagementIntentDeviceState struct { + // Entity is the base model of DeviceManagementIntentDeviceState + Entity + // UserPrincipalName The user principal name that is being reported on a device + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserName The user name that is being reported on a device + UserName *string `json:"userName,omitempty"` + // DeviceDisplayName Device name that is being reported + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // LastReportedDateTime Last modified date time of an intent report + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // State Device state for an intent + State *ComplianceStatus `json:"state,omitempty"` + // DeviceID Device id that is being reported + DeviceID *string `json:"deviceId,omitempty"` +} + +// DeviceManagementIntentDeviceStateSummary Entity that represents device state summary for an intent +type DeviceManagementIntentDeviceStateSummary struct { + // Entity is the base model of DeviceManagementIntentDeviceStateSummary + Entity + // ConflictCount Number of devices in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed devices + FailedCount *int `json:"failedCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy + NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"` + // SuccessCount Number of succeeded devices + SuccessCount *int `json:"successCount,omitempty"` +} + +// DeviceManagementIntentSettingCategory Entity representing an intent setting category +type DeviceManagementIntentSettingCategory struct { + // DeviceManagementSettingCategory is the base model of DeviceManagementIntentSettingCategory + DeviceManagementSettingCategory + // Settings undocumented + Settings []DeviceManagementSettingInstance `json:"settings,omitempty"` +} + +// DeviceManagementIntentUserState Entity that represents user state for an intent +type DeviceManagementIntentUserState struct { + // Entity is the base model of DeviceManagementIntentUserState + Entity + // UserPrincipalName The user principal name that is being reported on a device + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserName The user name that is being reported on a device + UserName *string `json:"userName,omitempty"` + // DeviceCount Count of Devices that belongs to a user for an intent + DeviceCount *int `json:"deviceCount,omitempty"` + // LastReportedDateTime Last modified date time of an intent report + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // State User state for an intent + State *ComplianceStatus `json:"state,omitempty"` +} + +// DeviceManagementIntentUserStateSummary Entity that represents user state summary for an intent +type DeviceManagementIntentUserStateSummary struct { + // Entity is the base model of DeviceManagementIntentUserStateSummary + Entity + // ConflictCount Number of users in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // ErrorCount Number of error users + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed users + FailedCount *int `json:"failedCount,omitempty"` + // NotApplicableCount Number of not applicable users + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // SuccessCount Number of succeeded users + SuccessCount *int `json:"successCount,omitempty"` +} + +// DeviceManagementPartner Entity which represents a connection to device management partner. +type DeviceManagementPartner struct { + // Entity is the base model of DeviceManagementPartner + Entity + // LastHeartbeatDateTime Timestamp of last heartbeat after admin enabled option Connect to Device management Partner + LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"` + // PartnerState Partner state of this tenant + PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"` + // PartnerAppType Partner App type + PartnerAppType *DeviceManagementPartnerAppType `json:"partnerAppType,omitempty"` + // SingleTenantAppID Partner Single tenant App id + SingleTenantAppID *string `json:"singleTenantAppId,omitempty"` + // DisplayName Partner display name + DisplayName *string `json:"displayName,omitempty"` + // IsConfigured Whether device management partner is configured or not + IsConfigured *bool `json:"isConfigured,omitempty"` + // WhenPartnerDevicesWillBeRemoved DateTime in UTC when PartnerDevices will be removed. This will become obselete soon. + WhenPartnerDevicesWillBeRemoved *time.Time `json:"whenPartnerDevicesWillBeRemoved,omitempty"` + // WhenPartnerDevicesWillBeMarkedAsNonCompliant DateTime in UTC when PartnerDevices will be marked as NonCompliant. This will become obselete soon. + WhenPartnerDevicesWillBeMarkedAsNonCompliant *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliant,omitempty"` + // WhenPartnerDevicesWillBeRemovedDateTime DateTime in UTC when PartnerDevices will be removed + WhenPartnerDevicesWillBeRemovedDateTime *time.Time `json:"whenPartnerDevicesWillBeRemovedDateTime,omitempty"` + // WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime DateTime in UTC when PartnerDevices will be marked as NonCompliant + WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime,omitempty"` + // GroupsRequiringPartnerEnrollment User groups that specifies whether enrollment is through partner. + GroupsRequiringPartnerEnrollment []DeviceManagementPartnerAssignment `json:"groupsRequiringPartnerEnrollment,omitempty"` +} + +// DeviceManagementPartnerAssignment undocumented +type DeviceManagementPartnerAssignment struct { + // Object is the base model of DeviceManagementPartnerAssignment + Object + // Target User groups targeting for devices to be enrolled through partner. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// DeviceManagementReportSchedule Entity representing a schedule for which reports are delivered +type DeviceManagementReportSchedule struct { + // Entity is the base model of DeviceManagementReportSchedule + Entity + // ReportScheduleName Name of the schedule + ReportScheduleName *string `json:"reportScheduleName,omitempty"` + // Subject Subject of the scheduled reports that are delivered + Subject *string `json:"subject,omitempty"` + // Emails Emails to which the scheduled reports are delivered + Emails []string `json:"emails,omitempty"` + // Recurrence Frequency of scheduled report delivery + Recurrence *DeviceManagementScheduledReportRecurrence `json:"recurrence,omitempty"` + // StartDateTime Time that the delivery of the scheduled reports starts + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime Time that the delivery of the scheduled reports ends + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // UserID The Id of the User who created the report + UserID *string `json:"userId,omitempty"` + // ReportName Name of the report + ReportName *string `json:"reportName,omitempty"` + // Filter Filters applied on the report + Filter *string `json:"filter,omitempty"` + // Select Columns selected from the report + Select []string `json:"select,omitempty"` + // OrderBy Ordering of columns in the report + OrderBy []string `json:"orderBy,omitempty"` + // Format Format of the scheduled report + Format *DeviceManagementReportFileFormat `json:"format,omitempty"` +} + +// DeviceManagementReports Singleton entity that acts as a container for all reports functionality. +type DeviceManagementReports struct { + // Entity is the base model of DeviceManagementReports + Entity + // CachedReportConfigurations undocumented + CachedReportConfigurations []DeviceManagementCachedReportConfiguration `json:"cachedReportConfigurations,omitempty"` + // ExportJobs undocumented + ExportJobs []DeviceManagementExportJob `json:"exportJobs,omitempty"` + // ReportSchedules undocumented + ReportSchedules []DeviceManagementReportSchedule `json:"reportSchedules,omitempty"` +} + +// DeviceManagementScript Intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically. +type DeviceManagementScript struct { + // Entity is the base model of DeviceManagementScript + Entity + // DisplayName Name of the device management script. + DisplayName *string `json:"displayName,omitempty"` + // Description Optional description for the device management script. + Description *string `json:"description,omitempty"` + // ScriptContent The script content. + ScriptContent *Binary `json:"scriptContent,omitempty"` + // CreatedDateTime The date and time the device management script was created. This property is read-only. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The date and time the device management script was last modified. This property is read-only. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RunAsAccount Indicates the type of execution context. + RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"` + // EnforceSignatureCheck Indicate whether the script signature needs be checked. + EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"` + // FileName Script file name. + FileName *string `json:"fileName,omitempty"` + // RoleScopeTagIDs List of Scope Tag IDs for this PowerShellScript instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // RunAs32Bit A value indicating whether the PowerShell script should run as 32-bit + RunAs32Bit *bool `json:"runAs32Bit,omitempty"` + // GroupAssignments undocumented + GroupAssignments []DeviceManagementScriptGroupAssignment `json:"groupAssignments,omitempty"` + // Assignments undocumented + Assignments []DeviceManagementScriptAssignment `json:"assignments,omitempty"` + // RunSummary undocumented + RunSummary *DeviceManagementScriptRunSummary `json:"runSummary,omitempty"` + // DeviceRunStates undocumented + DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"` + // UserRunStates undocumented + UserRunStates []DeviceManagementScriptUserState `json:"userRunStates,omitempty"` +} + +// DeviceManagementScriptAssignment Contains properties used to assign a device management script to a group. +type DeviceManagementScriptAssignment struct { + // Entity is the base model of DeviceManagementScriptAssignment + Entity + // Target The Id of the Azure Active Directory group we are targeting the script to. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// DeviceManagementScriptDeviceState Contains properties for device run state of the device management script. +type DeviceManagementScriptDeviceState struct { + // Entity is the base model of DeviceManagementScriptDeviceState + Entity + // RunState State of latest run of the device management script. + RunState *RunState `json:"runState,omitempty"` + // ResultMessage Details of execution output. + ResultMessage *string `json:"resultMessage,omitempty"` + // LastStateUpdateDateTime Latest time the device management script executes. + LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"` + // ErrorCode Error code corresponding to erroneous execution of the device management script. + ErrorCode *int `json:"errorCode,omitempty"` + // ErrorDescription Error description corresponding to erroneous execution of the device management script. + ErrorDescription *string `json:"errorDescription,omitempty"` + // ManagedDevice undocumented + ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"` +} + +// DeviceManagementScriptGroupAssignment Contains properties used to assign a device management script to a group. +type DeviceManagementScriptGroupAssignment struct { + // Entity is the base model of DeviceManagementScriptGroupAssignment + Entity + // TargetGroupID The Id of the Azure Active Directory group we are targeting the script to. + TargetGroupID *string `json:"targetGroupId,omitempty"` +} + +// DeviceManagementScriptPolicySetItem A class containing the properties used for device management script PolicySetItem. +type DeviceManagementScriptPolicySetItem struct { + // PolicySetItem is the base model of DeviceManagementScriptPolicySetItem + PolicySetItem +} + +// DeviceManagementScriptRunSummary Contains properties for the run summary of a device management script. +type DeviceManagementScriptRunSummary struct { + // Entity is the base model of DeviceManagementScriptRunSummary + Entity + // SuccessDeviceCount Success device count. + SuccessDeviceCount *int `json:"successDeviceCount,omitempty"` + // ErrorDeviceCount Error device count. + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // SuccessUserCount Success user count. + SuccessUserCount *int `json:"successUserCount,omitempty"` + // ErrorUserCount Error user count. + ErrorUserCount *int `json:"errorUserCount,omitempty"` +} + +// DeviceManagementScriptUserState Contains properties for user run state of the device management script. +type DeviceManagementScriptUserState struct { + // Entity is the base model of DeviceManagementScriptUserState + Entity + // SuccessDeviceCount Success device count for specific user. + SuccessDeviceCount *int `json:"successDeviceCount,omitempty"` + // ErrorDeviceCount Error device count for specific user. + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // UserPrincipalName User principle name of specific user. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DeviceRunStates undocumented + DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"` +} + +// DeviceManagementSettingBooleanConstraint undocumented +type DeviceManagementSettingBooleanConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementSettingBooleanConstraint + DeviceManagementConstraint + // Value The boolean value to compare against + Value *bool `json:"value,omitempty"` +} + +// DeviceManagementSettingCategory Entity representing a setting category +type DeviceManagementSettingCategory struct { + // Entity is the base model of DeviceManagementSettingCategory + Entity + // DisplayName The category name + DisplayName *string `json:"displayName,omitempty"` + // SettingDefinitions undocumented + SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"` +} + +// DeviceManagementSettingComparison undocumented +type DeviceManagementSettingComparison struct { + // Object is the base model of DeviceManagementSettingComparison + Object + // ID The setting ID + ID *string `json:"id,omitempty"` + // DisplayName The setting's display name + DisplayName *string `json:"displayName,omitempty"` + // DefinitionID The ID of the setting definition for this instance + DefinitionID *string `json:"definitionId,omitempty"` + // CurrentValueJSON JSON representation of current intent (or) template setting's value + CurrentValueJSON *string `json:"currentValueJson,omitempty"` + // NewValueJSON JSON representation of new template setting's value + NewValueJSON *string `json:"newValueJson,omitempty"` + // ComparisonResult Setting comparison result + ComparisonResult *DeviceManagementComparisonResult `json:"comparisonResult,omitempty"` +} + +// DeviceManagementSettingDefinition Entity representing the defintion for a given setting +type DeviceManagementSettingDefinition struct { + // Entity is the base model of DeviceManagementSettingDefinition + Entity + // ValueType The data type of the value + ValueType *DeviceManangementIntentValueType `json:"valueType,omitempty"` + // DisplayName The setting's display name + DisplayName *string `json:"displayName,omitempty"` + // IsTopLevel If the setting is top level, it can be configured without the need to be wrapped in a collection or complex setting + IsTopLevel *bool `json:"isTopLevel,omitempty"` + // Description The setting's description + Description *string `json:"description,omitempty"` + // DocumentationURL Url to setting documentation + DocumentationURL *string `json:"documentationUrl,omitempty"` + // Keywords Keywords associated with the setting + Keywords []string `json:"keywords,omitempty"` + // Constraints Collection of constraints for the setting value + Constraints []DeviceManagementConstraint `json:"constraints,omitempty"` + // Dependencies Collection of dependencies on other settings + Dependencies []DeviceManagementSettingDependency `json:"dependencies,omitempty"` +} + +// DeviceManagementSettingDependency undocumented +type DeviceManagementSettingDependency struct { + // Object is the base model of DeviceManagementSettingDependency + Object + // DefinitionID The setting definition ID of the setting depended on + DefinitionID *string `json:"definitionId,omitempty"` + // Constraints Collection of constraints for the dependency setting value + Constraints []DeviceManagementConstraint `json:"constraints,omitempty"` +} + +// DeviceManagementSettingInstance Base type for a setting instance +type DeviceManagementSettingInstance struct { + // Entity is the base model of DeviceManagementSettingInstance + Entity + // DefinitionID The ID of the setting definition for this instance + DefinitionID *string `json:"definitionId,omitempty"` + // ValueJSON JSON representation of the value + ValueJSON *string `json:"valueJson,omitempty"` +} + +// DeviceManagementSettingIntegerConstraint undocumented +type DeviceManagementSettingIntegerConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementSettingIntegerConstraint + DeviceManagementConstraint + // MinimumValue The minimum permitted value + MinimumValue *int `json:"minimumValue,omitempty"` + // MaximumValue The maximum permitted value + MaximumValue *int `json:"maximumValue,omitempty"` +} + +// DeviceManagementSettingRegexConstraint undocumented +type DeviceManagementSettingRegexConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementSettingRegexConstraint + DeviceManagementConstraint + // Regex The RegEx pattern to match against + Regex *string `json:"regex,omitempty"` +} + +// DeviceManagementSettingStringLengthConstraint undocumented +type DeviceManagementSettingStringLengthConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementSettingStringLengthConstraint + DeviceManagementConstraint + // MinimumLength The minimum permitted string length + MinimumLength *int `json:"minimumLength,omitempty"` + // MaximumLength The maximum permitted string length + MaximumLength *int `json:"maximumLength,omitempty"` +} + +// DeviceManagementSettingXMLConstraint undocumented +type DeviceManagementSettingXMLConstraint struct { + // DeviceManagementConstraint is the base model of DeviceManagementSettingXMLConstraint + DeviceManagementConstraint +} + +// DeviceManagementSettings undocumented +type DeviceManagementSettings struct { + // Object is the base model of DeviceManagementSettings + Object + // DeviceComplianceCheckinThresholdDays The number of days a device is allowed to go without checking in to remain compliant. + DeviceComplianceCheckinThresholdDays *int `json:"deviceComplianceCheckinThresholdDays,omitempty"` + // IsScheduledActionEnabled Is feature enabled or not for scheduled action for rule. + IsScheduledActionEnabled *bool `json:"isScheduledActionEnabled,omitempty"` + // SecureByDefault Device should be noncompliant when there is no compliance policy targeted when this is true + SecureByDefault *bool `json:"secureByDefault,omitempty"` + // EnhancedJailBreak Is feature enabled or not for enhanced jailbreak detection. + EnhancedJailBreak *bool `json:"enhancedJailBreak,omitempty"` + // DeviceInactivityBeforeRetirementInDay When the device does not check in for specified number of days, the company data might be removed and the device will not be under management. Valid values 30 to 270 + DeviceInactivityBeforeRetirementInDay *int `json:"deviceInactivityBeforeRetirementInDay,omitempty"` + // DerivedCredentialProvider The Derived Credential Provider to use for this account. + DerivedCredentialProvider *DerivedCredentialProviderType `json:"derivedCredentialProvider,omitempty"` + // DerivedCredentialURL The Derived Credential Provider self-service URI. + DerivedCredentialURL *string `json:"derivedCredentialUrl,omitempty"` + // AndroidDeviceAdministratorEnrollmentEnabled The property to determine if Android device administrator enrollment is enabled for this account. + AndroidDeviceAdministratorEnrollmentEnabled *bool `json:"androidDeviceAdministratorEnrollmentEnabled,omitempty"` +} + +// DeviceManagementStringSettingInstance A setting instance representing a string value +type DeviceManagementStringSettingInstance struct { + // DeviceManagementSettingInstance is the base model of DeviceManagementStringSettingInstance + DeviceManagementSettingInstance + // Value The string value + Value *string `json:"value,omitempty"` +} + +// DeviceManagementTemplate Entity that represents a defined collection of device settings +type DeviceManagementTemplate struct { + // Entity is the base model of DeviceManagementTemplate + Entity + // DisplayName The template's display name + DisplayName *string `json:"displayName,omitempty"` + // Description The template's description + Description *string `json:"description,omitempty"` + // VersionInfo The template's version information + VersionInfo *string `json:"versionInfo,omitempty"` + // IsDeprecated The template is deprecated or not. Intents cannot be created from a deprecated template. + IsDeprecated *bool `json:"isDeprecated,omitempty"` + // IntentCount Number of Intents created from this template. + IntentCount *int `json:"intentCount,omitempty"` + // TemplateType The template's type. + TemplateType *DeviceManagementTemplateType `json:"templateType,omitempty"` + // PlatformType The template's platform. + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // PublishedDateTime When the template was published + PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"` + // Settings undocumented + Settings []DeviceManagementSettingInstance `json:"settings,omitempty"` + // Categories undocumented + Categories []DeviceManagementTemplateSettingCategory `json:"categories,omitempty"` + // MigratableTo undocumented + MigratableTo []DeviceManagementTemplate `json:"migratableTo,omitempty"` +} + +// DeviceManagementTemplateSettingCategory Entity representing a template setting category +type DeviceManagementTemplateSettingCategory struct { + // DeviceManagementSettingCategory is the base model of DeviceManagementTemplateSettingCategory + DeviceManagementSettingCategory + // RecommendedSettings undocumented + RecommendedSettings []DeviceManagementSettingInstance `json:"recommendedSettings,omitempty"` +} + +// DeviceManagementTroubleshootingErrorDetails undocumented +type DeviceManagementTroubleshootingErrorDetails struct { + // Object is the base model of DeviceManagementTroubleshootingErrorDetails + Object + // Context undocumented + Context *string `json:"context,omitempty"` + // Failure undocumented + Failure *string `json:"failure,omitempty"` + // FailureDetails The detailed description of what went wrong. + FailureDetails *string `json:"failureDetails,omitempty"` + // Remediation The detailed description of how to remediate this issue. + Remediation *string `json:"remediation,omitempty"` + // Resources Links to helpful documentation about this failure. + Resources []DeviceManagementTroubleshootingErrorResource `json:"resources,omitempty"` +} + +// DeviceManagementTroubleshootingErrorResource undocumented +type DeviceManagementTroubleshootingErrorResource struct { + // Object is the base model of DeviceManagementTroubleshootingErrorResource + Object + // Text undocumented + Text *string `json:"text,omitempty"` + // Link The link to the web resource. Can contain any of the following formatters: {{UPN}}, {{DeviceGUID}}, {{UserGUID}} + Link *string `json:"link,omitempty"` +} + +// DeviceManagementTroubleshootingEvent Event representing an general failure. +type DeviceManagementTroubleshootingEvent struct { + // Entity is the base model of DeviceManagementTroubleshootingEvent + Entity + // EventDateTime Time when the event occurred . + EventDateTime *time.Time `json:"eventDateTime,omitempty"` + // CorrelationID Id used for tracing the failure in the service. + CorrelationID *string `json:"correlationId,omitempty"` + // TroubleshootingErrorDetails Object containing detailed information about the error and its remediation. + TroubleshootingErrorDetails *DeviceManagementTroubleshootingErrorDetails `json:"troubleshootingErrorDetails,omitempty"` + // EventName Event Name corresponding to the Troubleshooting Event. It is an Optional field + EventName *string `json:"eventName,omitempty"` + // AdditionalInformation A set of string key and string value pairs which provides additional information on the Troubleshooting event + AdditionalInformation []KeyValuePair `json:"additionalInformation,omitempty"` +} + +// DeviceManagementUserRightsLocalUserOrGroup undocumented +type DeviceManagementUserRightsLocalUserOrGroup struct { + // Object is the base model of DeviceManagementUserRightsLocalUserOrGroup + Object + // Name The name of this local user or group. + Name *string `json:"name,omitempty"` + // Description Admin’s description of this local user or group. + Description *string `json:"description,omitempty"` + // SecurityIdentifier The security identifier of this local user or group (e.g. *S-1-5-32-544). + SecurityIdentifier *string `json:"securityIdentifier,omitempty"` +} + +// DeviceManagementUserRightsSetting undocumented +type DeviceManagementUserRightsSetting struct { + // Object is the base model of DeviceManagementUserRightsSetting + Object + // State Representing the current state of this user rights setting + State *StateManagementSetting `json:"state,omitempty"` + // LocalUsersOrGroups Representing a collection of local users or groups which will be set on device if the state of this setting is Allowed. This collection can contain a maximum of 500 elements. + LocalUsersOrGroups []DeviceManagementUserRightsLocalUserOrGroup `json:"localUsersOrGroups,omitempty"` +} + +// DeviceOperatingSystemSummary undocumented +type DeviceOperatingSystemSummary struct { + // Object is the base model of DeviceOperatingSystemSummary + Object + // AndroidCount Number of android device count. + AndroidCount *int `json:"androidCount,omitempty"` + // IOSCount Number of iOS device count. + IOSCount *int `json:"iosCount,omitempty"` + // MacOSCount Number of Mac OS X device count. + MacOSCount *int `json:"macOSCount,omitempty"` + // WindowsMobileCount Number of Windows mobile device count. + WindowsMobileCount *int `json:"windowsMobileCount,omitempty"` + // WindowsCount Number of Windows device count. + WindowsCount *int `json:"windowsCount,omitempty"` + // UnknownCount Number of unknown device count. + UnknownCount *int `json:"unknownCount,omitempty"` + // AndroidDedicatedCount Number of dedicated Android devices. + AndroidDedicatedCount *int `json:"androidDedicatedCount,omitempty"` + // AndroidDeviceAdminCount Number of device admin Android devices. + AndroidDeviceAdminCount *int `json:"androidDeviceAdminCount,omitempty"` + // AndroidFullyManagedCount Number of fully managed Android devices. + AndroidFullyManagedCount *int `json:"androidFullyManagedCount,omitempty"` + // AndroidWorkProfileCount Number of work profile Android devices. + AndroidWorkProfileCount *int `json:"androidWorkProfileCount,omitempty"` +} + +// DeviceProtectionOverview undocumented +type DeviceProtectionOverview struct { + // Object is the base model of DeviceProtectionOverview + Object + // TotalReportedDeviceCount Total device count. + TotalReportedDeviceCount *int `json:"totalReportedDeviceCount,omitempty"` + // InactiveThreatAgentDeviceCount Device with inactive threat agent count + InactiveThreatAgentDeviceCount *int `json:"inactiveThreatAgentDeviceCount,omitempty"` + // UnknownStateThreatAgentDeviceCount Device with threat agent state as unknown count. + UnknownStateThreatAgentDeviceCount *int `json:"unknownStateThreatAgentDeviceCount,omitempty"` + // PendingSignatureUpdateDeviceCount Device with old signature count. + PendingSignatureUpdateDeviceCount *int `json:"pendingSignatureUpdateDeviceCount,omitempty"` + // CleanDeviceCount Clean device count. + CleanDeviceCount *int `json:"cleanDeviceCount,omitempty"` + // PendingFullScanDeviceCount Pending full scan device count. + PendingFullScanDeviceCount *int `json:"pendingFullScanDeviceCount,omitempty"` + // PendingRestartDeviceCount Pending restart device count. + PendingRestartDeviceCount *int `json:"pendingRestartDeviceCount,omitempty"` + // PendingManualStepsDeviceCount Pending manual steps device count. + PendingManualStepsDeviceCount *int `json:"pendingManualStepsDeviceCount,omitempty"` + // PendingOfflineScanDeviceCount Pending offline scan device count. + PendingOfflineScanDeviceCount *int `json:"pendingOfflineScanDeviceCount,omitempty"` + // CriticalFailuresDeviceCount Critical failures device count. + CriticalFailuresDeviceCount *int `json:"criticalFailuresDeviceCount,omitempty"` +} + +// DeviceRestrictionAction undocumented +type DeviceRestrictionAction struct { + // DlpActionInfo is the base model of DeviceRestrictionAction + DlpActionInfo + // RestrictionAction undocumented + RestrictionAction *RestrictionAction `json:"restrictionAction,omitempty"` + // Triggers undocumented + Triggers []RestrictionTrigger `json:"triggers,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` +} + +// DeviceSetupConfiguration This is the base class for Setup Configuration. Setup configurations are platform specific and individual per-platform setup configurations inherit from here. +type DeviceSetupConfiguration struct { + // Entity is the base model of DeviceSetupConfiguration + Entity + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description Admin provided description of the Device Configuration. + Description *string `json:"description,omitempty"` + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Admin provided name of the device configuration. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the device configuration. + Version *int `json:"version,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DiagnosticModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go new file mode 100644 index 00000000..ce8156ee --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Dimension undocumented +type Dimension struct { + // Entity is the base model of Dimension + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DimensionValues undocumented + DimensionValues []DimensionValue `json:"dimensionValues,omitempty"` +} + +// DimensionValue undocumented +type DimensionValue struct { + // Entity is the base model of DimensionValue + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go new file mode 100644 index 00000000..a60db606 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go @@ -0,0 +1,133 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Directory undocumented +type Directory struct { + // Entity is the base model of Directory + Entity + // DeletedItems undocumented + DeletedItems []DirectoryObject `json:"deletedItems,omitempty"` + // FeatureRolloutPolicies undocumented + FeatureRolloutPolicies []FeatureRolloutPolicy `json:"featureRolloutPolicies,omitempty"` +} + +// DirectoryAudit undocumented +type DirectoryAudit struct { + // Entity is the base model of DirectoryAudit + Entity + // Category undocumented + Category *string `json:"category,omitempty"` + // CorrelationID undocumented + CorrelationID *string `json:"correlationId,omitempty"` + // Result undocumented + Result *OperationResult `json:"result,omitempty"` + // ResultReason undocumented + ResultReason *string `json:"resultReason,omitempty"` + // ActivityDisplayName undocumented + ActivityDisplayName *string `json:"activityDisplayName,omitempty"` + // ActivityDateTime undocumented + ActivityDateTime *time.Time `json:"activityDateTime,omitempty"` + // LoggedByService undocumented + LoggedByService *string `json:"loggedByService,omitempty"` + // OperationType undocumented + OperationType *string `json:"operationType,omitempty"` + // InitiatedBy undocumented + InitiatedBy *AuditActivityInitiator `json:"initiatedBy,omitempty"` + // TargetResources undocumented + TargetResources []TargetResource `json:"targetResources,omitempty"` + // AdditionalDetails undocumented + AdditionalDetails []KeyValue `json:"additionalDetails,omitempty"` +} + +// DirectoryDefinition undocumented +type DirectoryDefinition struct { + // Entity is the base model of DirectoryDefinition + Entity + // DiscoveryDateTime undocumented + DiscoveryDateTime *time.Time `json:"discoveryDateTime,omitempty"` + // Discoverabilities undocumented + Discoverabilities *DirectoryDefinitionDiscoverabilities `json:"discoverabilities,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Objects undocumented + Objects []ObjectDefinition `json:"objects,omitempty"` + // ReadOnly undocumented + ReadOnly *bool `json:"readOnly,omitempty"` + // Version undocumented + Version *string `json:"version,omitempty"` +} + +// DirectoryObject Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types. +type DirectoryObject struct { + // Entity is the base model of DirectoryObject + Entity + // DeletedDateTime undocumented + DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"` +} + +// DirectoryObjectPartnerReference undocumented +type DirectoryObjectPartnerReference struct { + // DirectoryObject is the base model of DirectoryObjectPartnerReference + DirectoryObject + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ExternalPartnerTenantID undocumented + ExternalPartnerTenantID *UUID `json:"externalPartnerTenantId,omitempty"` + // ObjectType undocumented + ObjectType *string `json:"objectType,omitempty"` +} + +// DirectoryRole undocumented +type DirectoryRole struct { + // DirectoryObject is the base model of DirectoryRole + DirectoryObject + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // RoleTemplateID undocumented + RoleTemplateID *string `json:"roleTemplateId,omitempty"` + // Members undocumented + Members []DirectoryObject `json:"members,omitempty"` + // ScopedMembers undocumented + ScopedMembers []ScopedRoleMembership `json:"scopedMembers,omitempty"` +} + +// DirectoryRoleTemplate undocumented +type DirectoryRoleTemplate struct { + // DirectoryObject is the base model of DirectoryRoleTemplate + DirectoryObject + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// DirectorySetting undocumented +type DirectorySetting struct { + // Entity is the base model of DirectorySetting + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // Values undocumented + Values []SettingValue `json:"values,omitempty"` +} + +// DirectorySettingTemplate undocumented +type DirectorySettingTemplate struct { + // DirectoryObject is the base model of DirectorySettingTemplate + DirectoryObject + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Values undocumented + Values []SettingTemplateValue `json:"values,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DiscoveredSensitiveTypeModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go new file mode 100644 index 00000000..3c068e36 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// DlpActionInfo undocumented +type DlpActionInfo struct { + // Object is the base model of DlpActionInfo + Object + // Action undocumented + Action *DlpAction `json:"action,omitempty"` +} + +// DlpEvaluatePoliciesJobResponse undocumented +type DlpEvaluatePoliciesJobResponse struct { + // JobResponseBase is the base model of DlpEvaluatePoliciesJobResponse + JobResponseBase + // Result undocumented + Result *DlpPoliciesJobResult `json:"result,omitempty"` +} + +// DlpEvaluatePoliciesRequestObject undocumented +type DlpEvaluatePoliciesRequestObject struct { + // Object is the base model of DlpEvaluatePoliciesRequestObject + Object + // Target undocumented + Target *string `json:"target,omitempty"` + // EvaluationInput undocumented + EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"` + // NotificationInfo undocumented + NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"` +} + +// DlpEvaluationInput undocumented +type DlpEvaluationInput struct { + // Object is the base model of DlpEvaluationInput + Object + // DiscoveredSensitiveTypes undocumented + DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"` + // CurrentLabel undocumented + CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"` + // AccessScope undocumented + AccessScope *AccessScope `json:"accessScope,omitempty"` +} + +// DlpEvaluationWindowsDevicesInput undocumented +type DlpEvaluationWindowsDevicesInput struct { + // DlpEvaluationInput is the base model of DlpEvaluationWindowsDevicesInput + DlpEvaluationInput + // ContentProperties undocumented + ContentProperties *ContentProperties `json:"contentProperties,omitempty"` + // SharedBy undocumented + SharedBy *string `json:"sharedBy,omitempty"` +} + +// DlpNotification undocumented +type DlpNotification struct { + // Object is the base model of DlpNotification + Object + // Author undocumented + Author *string `json:"author,omitempty"` +} + +// DlpPoliciesJobResult undocumented +type DlpPoliciesJobResult struct { + // Object is the base model of DlpPoliciesJobResult + Object + // MatchingRules undocumented + MatchingRules []MatchingDlpRule `json:"matchingRules,omitempty"` +} + +// DlpWindowsDevicesNotification undocumented +type DlpWindowsDevicesNotification struct { + // DlpNotification is the base model of DlpWindowsDevicesNotification + DlpNotification + // LastModfiedBy undocumented + LastModfiedBy *string `json:"lastModfiedBy,omitempty"` + // ContentName undocumented + ContentName *string `json:"contentName,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go new file mode 100644 index 00000000..9b886b88 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Document undocumented +type Document struct { + // Entity is the base model of Document + Entity + // Comments undocumented + Comments []DocumentComment `json:"comments,omitempty"` +} + +// DocumentComment undocumented +type DocumentComment struct { + // Entity is the base model of DocumentComment + Entity + // Content undocumented + Content *string `json:"content,omitempty"` + // Replies undocumented + Replies []DocumentCommentReply `json:"replies,omitempty"` +} + +// DocumentCommentReply undocumented +type DocumentCommentReply struct { + // Entity is the base model of DocumentCommentReply + Entity + // Content undocumented + Content *string `json:"content,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go new file mode 100644 index 00000000..a88b7ad2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go @@ -0,0 +1,167 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Domain undocumented +type Domain struct { + // Entity is the base model of Domain + Entity + // AuthenticationType undocumented + AuthenticationType *string `json:"authenticationType,omitempty"` + // AvailabilityStatus undocumented + AvailabilityStatus *string `json:"availabilityStatus,omitempty"` + // IsAdminManaged undocumented + IsAdminManaged *bool `json:"isAdminManaged,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // IsInitial undocumented + IsInitial *bool `json:"isInitial,omitempty"` + // IsRoot undocumented + IsRoot *bool `json:"isRoot,omitempty"` + // IsVerified undocumented + IsVerified *bool `json:"isVerified,omitempty"` + // PasswordNotificationWindowInDays undocumented + PasswordNotificationWindowInDays *int `json:"passwordNotificationWindowInDays,omitempty"` + // PasswordValidityPeriodInDays undocumented + PasswordValidityPeriodInDays *int `json:"passwordValidityPeriodInDays,omitempty"` + // SupportedServices undocumented + SupportedServices []string `json:"supportedServices,omitempty"` + // State undocumented + State *DomainState `json:"state,omitempty"` + // ServiceConfigurationRecords undocumented + ServiceConfigurationRecords []DomainDNSRecord `json:"serviceConfigurationRecords,omitempty"` + // VerificationDNSRecords undocumented + VerificationDNSRecords []DomainDNSRecord `json:"verificationDnsRecords,omitempty"` + // DomainNameReferences undocumented + DomainNameReferences []DirectoryObject `json:"domainNameReferences,omitempty"` +} + +// DomainDNSCnameRecord undocumented +type DomainDNSCnameRecord struct { + // DomainDNSRecord is the base model of DomainDNSCnameRecord + DomainDNSRecord + // CanonicalName undocumented + CanonicalName *string `json:"canonicalName,omitempty"` +} + +// DomainDNSMxRecord undocumented +type DomainDNSMxRecord struct { + // DomainDNSRecord is the base model of DomainDNSMxRecord + DomainDNSRecord + // MailExchange undocumented + MailExchange *string `json:"mailExchange,omitempty"` + // Preference undocumented + Preference *int `json:"preference,omitempty"` +} + +// DomainDNSRecord undocumented +type DomainDNSRecord struct { + // Entity is the base model of DomainDNSRecord + Entity + // IsOptional undocumented + IsOptional *bool `json:"isOptional,omitempty"` + // Label undocumented + Label *string `json:"label,omitempty"` + // RecordType undocumented + RecordType *string `json:"recordType,omitempty"` + // SupportedService undocumented + SupportedService *string `json:"supportedService,omitempty"` + // TTL undocumented + TTL *int `json:"ttl,omitempty"` +} + +// DomainDNSSrvRecord undocumented +type DomainDNSSrvRecord struct { + // DomainDNSRecord is the base model of DomainDNSSrvRecord + DomainDNSRecord + // NameTarget undocumented + NameTarget *string `json:"nameTarget,omitempty"` + // Port undocumented + Port *int `json:"port,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // Protocol undocumented + Protocol *string `json:"protocol,omitempty"` + // Service undocumented + Service *string `json:"service,omitempty"` + // Weight undocumented + Weight *int `json:"weight,omitempty"` +} + +// DomainDNSTxtRecord undocumented +type DomainDNSTxtRecord struct { + // DomainDNSRecord is the base model of DomainDNSTxtRecord + DomainDNSRecord + // Text undocumented + Text *string `json:"text,omitempty"` +} + +// DomainDNSUnavailableRecord undocumented +type DomainDNSUnavailableRecord struct { + // DomainDNSRecord is the base model of DomainDNSUnavailableRecord + DomainDNSRecord + // Description undocumented + Description *string `json:"description,omitempty"` +} + +// DomainRegistrant undocumented +type DomainRegistrant struct { + // Object is the base model of DomainRegistrant + Object + // CountryOrRegionCode undocumented + CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"` + // Organization undocumented + Organization *string `json:"organization,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // Vendor undocumented + Vendor *string `json:"vendor,omitempty"` +} + +// DomainSecurityProfile undocumented +type DomainSecurityProfile struct { + // Entity is the base model of DomainSecurityProfile + Entity + // ActivityGroupNames undocumented + ActivityGroupNames []string `json:"activityGroupNames,omitempty"` + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // CountHits undocumented + CountHits *int `json:"countHits,omitempty"` + // CountInOrg undocumented + CountInOrg *int `json:"countInOrg,omitempty"` + // DomainCategories undocumented + DomainCategories []ReputationCategory `json:"domainCategories,omitempty"` + // DomainRegisteredDateTime undocumented + DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"` + // FirstSeenDateTime undocumented + FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"` + // LastSeenDateTime undocumented + LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Registrant undocumented + Registrant *DomainRegistrant `json:"registrant,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// DomainState undocumented +type DomainState struct { + // Object is the base model of DomainState + Object + // Status undocumented + Status *string `json:"status,omitempty"` + // Operation undocumented + Operation *string `json:"operation,omitempty"` + // LastActionDateTime undocumented + LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/DowngradeJustificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/DowngradeJustificationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go new file mode 100644 index 00000000..835477cc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go @@ -0,0 +1,141 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Drive undocumented +type Drive struct { + // BaseItem is the base model of Drive + BaseItem + // DriveType undocumented + DriveType *string `json:"driveType,omitempty"` + // Owner undocumented + Owner *IdentitySet `json:"owner,omitempty"` + // Quota undocumented + Quota *Quota `json:"quota,omitempty"` + // SharePointIDs undocumented + SharePointIDs *SharepointIDs `json:"sharePointIds,omitempty"` + // System undocumented + System *SystemFacet `json:"system,omitempty"` + // Activities undocumented + Activities []ItemActivityOLD `json:"activities,omitempty"` + // Bundles undocumented + Bundles []DriveItem `json:"bundles,omitempty"` + // Following undocumented + Following []DriveItem `json:"following,omitempty"` + // Items undocumented + Items []DriveItem `json:"items,omitempty"` + // List undocumented + List *List `json:"list,omitempty"` + // Root undocumented + Root *DriveItem `json:"root,omitempty"` + // Special undocumented + Special []DriveItem `json:"special,omitempty"` +} + +// DriveItem undocumented +type DriveItem struct { + // BaseItem is the base model of DriveItem + BaseItem + // Audio undocumented + Audio *Audio `json:"audio,omitempty"` + // Bundle undocumented + Bundle *Bundle `json:"bundle,omitempty"` + // Content undocumented + Content *Stream `json:"content,omitempty"` + // CTag undocumented + CTag *string `json:"cTag,omitempty"` + // Deleted undocumented + Deleted *Deleted `json:"deleted,omitempty"` + // File undocumented + File *File `json:"file,omitempty"` + // FileSystemInfo undocumented + FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"` + // Folder undocumented + Folder *Folder `json:"folder,omitempty"` + // Image undocumented + Image *Image `json:"image,omitempty"` + // Location undocumented + Location *GeoCoordinates `json:"location,omitempty"` + // Package undocumented + Package *Package `json:"package,omitempty"` + // PendingOperations undocumented + PendingOperations *PendingOperations `json:"pendingOperations,omitempty"` + // Photo undocumented + Photo *Photo `json:"photo,omitempty"` + // Publication undocumented + Publication *PublicationFacet `json:"publication,omitempty"` + // RemoteItem undocumented + RemoteItem *RemoteItem `json:"remoteItem,omitempty"` + // Root undocumented + Root *Root `json:"root,omitempty"` + // SearchResult undocumented + SearchResult *SearchResult `json:"searchResult,omitempty"` + // Shared undocumented + Shared *Shared `json:"shared,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // SpecialFolder undocumented + SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"` + // Video undocumented + Video *Video `json:"video,omitempty"` + // WebDavURL undocumented + WebDavURL *string `json:"webDavUrl,omitempty"` + // Workbook undocumented + Workbook *Workbook `json:"workbook,omitempty"` + // Activities undocumented + Activities []ItemActivityOLD `json:"activities,omitempty"` + // Analytics undocumented + Analytics *ItemAnalytics `json:"analytics,omitempty"` + // Children undocumented + Children []DriveItem `json:"children,omitempty"` + // ListItem undocumented + ListItem *ListItem `json:"listItem,omitempty"` + // Permissions undocumented + Permissions []Permission `json:"permissions,omitempty"` + // Subscriptions undocumented + Subscriptions []Subscription `json:"subscriptions,omitempty"` + // Thumbnails undocumented + Thumbnails []ThumbnailSet `json:"thumbnails,omitempty"` + // Versions undocumented + Versions []DriveItemVersion `json:"versions,omitempty"` + // Document undocumented + Document *Document `json:"document,omitempty"` +} + +// DriveItemUploadableProperties undocumented +type DriveItemUploadableProperties struct { + // Object is the base model of DriveItemUploadableProperties + Object + // Description undocumented + Description *string `json:"description,omitempty"` + // FileSystemInfo undocumented + FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // FileSize undocumented + FileSize *int `json:"fileSize,omitempty"` +} + +// DriveItemVersion undocumented +type DriveItemVersion struct { + // BaseItemVersion is the base model of DriveItemVersion + BaseItemVersion + // Content undocumented + Content *Stream `json:"content,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` +} + +// DriveRecipient undocumented +type DriveRecipient struct { + // Object is the base model of DriveRecipient + Object + // Alias undocumented + Alias *string `json:"alias,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // ObjectID undocumented + ObjectID *string `json:"objectId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go new file mode 100644 index 00000000..46eb2e98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EdgeHomeButtonConfiguration undocumented +type EdgeHomeButtonConfiguration struct { + // Object is the base model of EdgeHomeButtonConfiguration + Object +} + +// EdgeHomeButtonHidden undocumented +type EdgeHomeButtonHidden struct { + // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonHidden + EdgeHomeButtonConfiguration +} + +// EdgeHomeButtonLoadsStartPage undocumented +type EdgeHomeButtonLoadsStartPage struct { + // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonLoadsStartPage + EdgeHomeButtonConfiguration +} + +// EdgeHomeButtonOpensCustomURL undocumented +type EdgeHomeButtonOpensCustomURL struct { + // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensCustomURL + EdgeHomeButtonConfiguration + // HomeButtonCustomURL The specific URL to load. + HomeButtonCustomURL *string `json:"homeButtonCustomURL,omitempty"` +} + +// EdgeHomeButtonOpensNewTab undocumented +type EdgeHomeButtonOpensNewTab struct { + // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensNewTab + EdgeHomeButtonConfiguration +} + +// EdgeSearchEngine undocumented +type EdgeSearchEngine struct { + // EdgeSearchEngineBase is the base model of EdgeSearchEngine + EdgeSearchEngineBase + // EdgeSearchEngineType Allows IT admins to set a predefined default search engine for MDM-Controlled devices. + EdgeSearchEngineType *EdgeSearchEngineType `json:"edgeSearchEngineType,omitempty"` +} + +// EdgeSearchEngineBase undocumented +type EdgeSearchEngineBase struct { + // Object is the base model of EdgeSearchEngineBase + Object +} + +// EdgeSearchEngineCustom undocumented +type EdgeSearchEngineCustom struct { + // EdgeSearchEngineBase is the base model of EdgeSearchEngineCustom + EdgeSearchEngineBase + // EdgeSearchEngineOpenSearchXMLURL Points to a https link containing the OpenSearch xml file that contains, at minimum, the short name and the URL to the search Engine. + EdgeSearchEngineOpenSearchXMLURL *string `json:"edgeSearchEngineOpenSearchXmlUrl,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EditActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EditionUpgradeConfigurationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go new file mode 100644 index 00000000..6a89ecd7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go @@ -0,0 +1,849 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// EducationAssignment undocumented +type EducationAssignment struct { + // Entity is the base model of EducationAssignment + Entity + // ClassID undocumented + ClassID *string `json:"classId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Instructions undocumented + Instructions *EducationItemBody `json:"instructions,omitempty"` + // CloseDateTime undocumented + CloseDateTime *time.Time `json:"closeDateTime,omitempty"` + // DueDateTime undocumented + DueDateTime *time.Time `json:"dueDateTime,omitempty"` + // AssignDateTime undocumented + AssignDateTime *time.Time `json:"assignDateTime,omitempty"` + // AssignedDateTime undocumented + AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"` + // Grading undocumented + Grading *EducationAssignmentGradeType `json:"grading,omitempty"` + // AssignTo undocumented + AssignTo *EducationAssignmentRecipient `json:"assignTo,omitempty"` + // AllowLateSubmissions undocumented + AllowLateSubmissions *bool `json:"allowLateSubmissions,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // AllowStudentsToAddResourcesToSubmission undocumented + AllowStudentsToAddResourcesToSubmission *bool `json:"allowStudentsToAddResourcesToSubmission,omitempty"` + // Status undocumented + Status *EducationAssignmentStatus `json:"status,omitempty"` + // Resources undocumented + Resources []EducationAssignmentResource `json:"resources,omitempty"` + // Submissions undocumented + Submissions []EducationSubmission `json:"submissions,omitempty"` + // Categories undocumented + Categories []EducationCategory `json:"categories,omitempty"` + // Rubric undocumented + Rubric *EducationRubric `json:"rubric,omitempty"` +} + +// EducationAssignmentClassRecipient undocumented +type EducationAssignmentClassRecipient struct { + // EducationAssignmentRecipient is the base model of EducationAssignmentClassRecipient + EducationAssignmentRecipient +} + +// EducationAssignmentGrade undocumented +type EducationAssignmentGrade struct { + // Object is the base model of EducationAssignmentGrade + Object + // GradedBy undocumented + GradedBy *IdentitySet `json:"gradedBy,omitempty"` + // GradedDateTime undocumented + GradedDateTime *time.Time `json:"gradedDateTime,omitempty"` +} + +// EducationAssignmentGradeType undocumented +type EducationAssignmentGradeType struct { + // Object is the base model of EducationAssignmentGradeType + Object +} + +// EducationAssignmentGroupRecipient undocumented +type EducationAssignmentGroupRecipient struct { + // EducationAssignmentRecipient is the base model of EducationAssignmentGroupRecipient + EducationAssignmentRecipient +} + +// EducationAssignmentIndividualRecipient undocumented +type EducationAssignmentIndividualRecipient struct { + // EducationAssignmentRecipient is the base model of EducationAssignmentIndividualRecipient + EducationAssignmentRecipient + // Recipients undocumented + Recipients []string `json:"recipients,omitempty"` +} + +// EducationAssignmentPointsGrade undocumented +type EducationAssignmentPointsGrade struct { + // EducationAssignmentGrade is the base model of EducationAssignmentPointsGrade + EducationAssignmentGrade + // Points undocumented + Points *float64 `json:"points,omitempty"` +} + +// EducationAssignmentPointsGradeType undocumented +type EducationAssignmentPointsGradeType struct { + // EducationAssignmentGradeType is the base model of EducationAssignmentPointsGradeType + EducationAssignmentGradeType + // MaxPoints undocumented + MaxPoints *float64 `json:"maxPoints,omitempty"` +} + +// EducationAssignmentRecipient undocumented +type EducationAssignmentRecipient struct { + // Object is the base model of EducationAssignmentRecipient + Object +} + +// EducationAssignmentResource undocumented +type EducationAssignmentResource struct { + // Entity is the base model of EducationAssignmentResource + Entity + // DistributeForStudentWork undocumented + DistributeForStudentWork *bool `json:"distributeForStudentWork,omitempty"` + // Resource undocumented + Resource *EducationResource `json:"resource,omitempty"` +} + +// EducationCategory undocumented +type EducationCategory struct { + // Entity is the base model of EducationCategory + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// EducationClass undocumented +type EducationClass struct { + // Entity is the base model of EducationClass + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // ClassCode undocumented + ClassCode *string `json:"classCode,omitempty"` + // ExternalName undocumented + ExternalName *string `json:"externalName,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // ExternalSource undocumented + ExternalSource *EducationExternalSource `json:"externalSource,omitempty"` + // Grade undocumented + Grade *string `json:"grade,omitempty"` + // Term undocumented + Term *EducationTerm `json:"term,omitempty"` + // Course undocumented + Course *EducationCourse `json:"course,omitempty"` + // Assignments undocumented + Assignments []EducationAssignment `json:"assignments,omitempty"` + // AssignmentCategories undocumented + AssignmentCategories []EducationCategory `json:"assignmentCategories,omitempty"` + // Members undocumented + Members []EducationUser `json:"members,omitempty"` + // Teachers undocumented + Teachers []EducationUser `json:"teachers,omitempty"` + // Schools undocumented + Schools []EducationSchool `json:"schools,omitempty"` + // Group undocumented + Group *Group `json:"group,omitempty"` +} + +// EducationCourse undocumented +type EducationCourse struct { + // Object is the base model of EducationCourse + Object + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // CourseNumber undocumented + CourseNumber *string `json:"courseNumber,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` +} + +// EducationCsvDataProvider undocumented +type EducationCsvDataProvider struct { + // EducationSynchronizationDataProvider is the base model of EducationCsvDataProvider + EducationSynchronizationDataProvider + // Customizations undocumented + Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"` +} + +// EducationExcelResource undocumented +type EducationExcelResource struct { + // EducationResource is the base model of EducationExcelResource + EducationResource + // FileURL undocumented + FileURL *string `json:"fileUrl,omitempty"` +} + +// EducationFeedback undocumented +type EducationFeedback struct { + // Object is the base model of EducationFeedback + Object + // Text undocumented + Text *EducationItemBody `json:"text,omitempty"` + // FeedbackDateTime undocumented + FeedbackDateTime *time.Time `json:"feedbackDateTime,omitempty"` + // FeedbackBy undocumented + FeedbackBy *IdentitySet `json:"feedbackBy,omitempty"` +} + +// EducationFeedbackOutcome undocumented +type EducationFeedbackOutcome struct { + // EducationOutcome is the base model of EducationFeedbackOutcome + EducationOutcome + // Feedback undocumented + Feedback *EducationFeedback `json:"feedback,omitempty"` + // PublishedFeedback undocumented + PublishedFeedback *EducationFeedback `json:"publishedFeedback,omitempty"` +} + +// EducationFileResource undocumented +type EducationFileResource struct { + // EducationResource is the base model of EducationFileResource + EducationResource + // FileURL undocumented + FileURL *string `json:"fileUrl,omitempty"` +} + +// EducationFileSynchronizationVerificationMessage undocumented +type EducationFileSynchronizationVerificationMessage struct { + // Object is the base model of EducationFileSynchronizationVerificationMessage + Object + // Type undocumented + Type *string `json:"type,omitempty"` + // FileName undocumented + FileName *string `json:"fileName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` +} + +// EducationFormResource undocumented +type EducationFormResource struct { + // EducationResource is the base model of EducationFormResource + EducationResource + // OriginalFormID undocumented + OriginalFormID *string `json:"originalFormId,omitempty"` + // FormID undocumented + FormID *string `json:"formId,omitempty"` + // IsGroupForm undocumented + IsGroupForm *bool `json:"isGroupForm,omitempty"` + // ViewURL undocumented + ViewURL *string `json:"viewUrl,omitempty"` + // EditURL undocumented + EditURL *string `json:"editUrl,omitempty"` +} + +// EducationIdentityCreationConfiguration undocumented +type EducationIdentityCreationConfiguration struct { + // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityCreationConfiguration + EducationIdentitySynchronizationConfiguration + // UserDomains undocumented + UserDomains []EducationIdentityDomain `json:"userDomains,omitempty"` +} + +// EducationIdentityDomain undocumented +type EducationIdentityDomain struct { + // Object is the base model of EducationIdentityDomain + Object + // AppliesTo undocumented + AppliesTo *EducationUserRole `json:"appliesTo,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// EducationIdentityMatchingConfiguration undocumented +type EducationIdentityMatchingConfiguration struct { + // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityMatchingConfiguration + EducationIdentitySynchronizationConfiguration + // MatchingOptions undocumented + MatchingOptions []EducationIdentityMatchingOptions `json:"matchingOptions,omitempty"` +} + +// EducationIdentityMatchingOptions undocumented +type EducationIdentityMatchingOptions struct { + // Object is the base model of EducationIdentityMatchingOptions + Object + // AppliesTo undocumented + AppliesTo *EducationUserRole `json:"appliesTo,omitempty"` + // SourcePropertyName undocumented + SourcePropertyName *string `json:"sourcePropertyName,omitempty"` + // TargetPropertyName undocumented + TargetPropertyName *string `json:"targetPropertyName,omitempty"` + // TargetDomain undocumented + TargetDomain *string `json:"targetDomain,omitempty"` +} + +// EducationIdentitySynchronizationConfiguration undocumented +type EducationIdentitySynchronizationConfiguration struct { + // Object is the base model of EducationIdentitySynchronizationConfiguration + Object +} + +// EducationItemBody undocumented +type EducationItemBody struct { + // Object is the base model of EducationItemBody + Object + // ContentType undocumented + ContentType *BodyType `json:"contentType,omitempty"` + // Content undocumented + Content *string `json:"content,omitempty"` +} + +// EducationLinkResource undocumented +type EducationLinkResource struct { + // EducationResource is the base model of EducationLinkResource + EducationResource + // Link undocumented + Link *string `json:"link,omitempty"` +} + +// EducationMakeCodeResource undocumented +type EducationMakeCodeResource struct { + // EducationResource is the base model of EducationMakeCodeResource + EducationResource + // HostWebURL undocumented + HostWebURL *string `json:"hostWebUrl,omitempty"` + // ProjectID undocumented + ProjectID *string `json:"projectId,omitempty"` +} + +// EducationOnPremisesInfo undocumented +type EducationOnPremisesInfo struct { + // Object is the base model of EducationOnPremisesInfo + Object + // ImmutableID undocumented + ImmutableID *string `json:"immutableId,omitempty"` +} + +// EducationOneNoteResource undocumented +type EducationOneNoteResource struct { + // EducationResource is the base model of EducationOneNoteResource + EducationResource + // SectionName undocumented + SectionName *string `json:"sectionName,omitempty"` + // PageURL undocumented + PageURL *string `json:"pageUrl,omitempty"` +} + +// EducationOneRosterAPIDataProvider undocumented +type EducationOneRosterAPIDataProvider struct { + // EducationSynchronizationDataProvider is the base model of EducationOneRosterAPIDataProvider + EducationSynchronizationDataProvider + // ConnectionURL undocumented + ConnectionURL *string `json:"connectionUrl,omitempty"` + // ConnectionSettings undocumented + ConnectionSettings *EducationSynchronizationConnectionSettings `json:"connectionSettings,omitempty"` + // SchoolsIDs undocumented + SchoolsIDs []string `json:"schoolsIds,omitempty"` + // TermIDs undocumented + TermIDs []string `json:"termIds,omitempty"` + // ProviderName undocumented + ProviderName *string `json:"providerName,omitempty"` + // Customizations undocumented + Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"` +} + +// EducationOrganization undocumented +type EducationOrganization struct { + // Entity is the base model of EducationOrganization + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // ExternalSource undocumented + ExternalSource *EducationExternalSource `json:"externalSource,omitempty"` +} + +// EducationOutcome undocumented +type EducationOutcome struct { + // Entity is the base model of EducationOutcome + Entity + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// EducationPointsOutcome undocumented +type EducationPointsOutcome struct { + // EducationOutcome is the base model of EducationPointsOutcome + EducationOutcome + // Points undocumented + Points *EducationAssignmentPointsGrade `json:"points,omitempty"` + // PublishedPoints undocumented + PublishedPoints *EducationAssignmentPointsGrade `json:"publishedPoints,omitempty"` +} + +// EducationPowerPointResource undocumented +type EducationPowerPointResource struct { + // EducationResource is the base model of EducationPowerPointResource + EducationResource + // FileURL undocumented + FileURL *string `json:"fileUrl,omitempty"` +} + +// EducationPowerSchoolDataProvider undocumented +type EducationPowerSchoolDataProvider struct { + // EducationSynchronizationDataProvider is the base model of EducationPowerSchoolDataProvider + EducationSynchronizationDataProvider + // ConnectionURL undocumented + ConnectionURL *string `json:"connectionUrl,omitempty"` + // ClientID undocumented + ClientID *string `json:"clientId,omitempty"` + // ClientSecret undocumented + ClientSecret *string `json:"clientSecret,omitempty"` + // SchoolsIDs undocumented + SchoolsIDs []string `json:"schoolsIds,omitempty"` + // SchoolYear undocumented + SchoolYear *string `json:"schoolYear,omitempty"` + // AllowTeachersInMultipleSchools undocumented + AllowTeachersInMultipleSchools *bool `json:"allowTeachersInMultipleSchools,omitempty"` + // Customizations undocumented + Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"` +} + +// EducationResource undocumented +type EducationResource struct { + // Object is the base model of EducationResource + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` +} + +// EducationRoot undocumented +type EducationRoot struct { + // Entity is the base model of EducationRoot + Entity + // SynchronizationProfiles undocumented + SynchronizationProfiles []EducationSynchronizationProfile `json:"synchronizationProfiles,omitempty"` + // Classes undocumented + Classes []EducationClass `json:"classes,omitempty"` + // Schools undocumented + Schools []EducationSchool `json:"schools,omitempty"` + // Users undocumented + Users []EducationUser `json:"users,omitempty"` + // Me undocumented + Me *EducationUser `json:"me,omitempty"` +} + +// EducationRubric undocumented +type EducationRubric struct { + // Entity is the base model of EducationRubric + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *EducationItemBody `json:"description,omitempty"` + // Qualities undocumented + Qualities []RubricQuality `json:"qualities,omitempty"` + // Levels undocumented + Levels []RubricLevel `json:"levels,omitempty"` + // Grading undocumented + Grading *EducationAssignmentGradeType `json:"grading,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` +} + +// EducationRubricOutcome undocumented +type EducationRubricOutcome struct { + // EducationOutcome is the base model of EducationRubricOutcome + EducationOutcome + // RubricQualityFeedback undocumented + RubricQualityFeedback []RubricQualityFeedbackModel `json:"rubricQualityFeedback,omitempty"` + // RubricQualitySelectedLevels undocumented + RubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"rubricQualitySelectedLevels,omitempty"` + // PublishedRubricQualityFeedback undocumented + PublishedRubricQualityFeedback []RubricQualityFeedbackModel `json:"publishedRubricQualityFeedback,omitempty"` + // PublishedRubricQualitySelectedLevels undocumented + PublishedRubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"publishedRubricQualitySelectedLevels,omitempty"` +} + +// EducationSchool undocumented +type EducationSchool struct { + // EducationOrganization is the base model of EducationSchool + EducationOrganization + // PrincipalEmail undocumented + PrincipalEmail *string `json:"principalEmail,omitempty"` + // PrincipalName undocumented + PrincipalName *string `json:"principalName,omitempty"` + // ExternalPrincipalID undocumented + ExternalPrincipalID *string `json:"externalPrincipalId,omitempty"` + // LowestGrade undocumented + LowestGrade *string `json:"lowestGrade,omitempty"` + // HighestGrade undocumented + HighestGrade *string `json:"highestGrade,omitempty"` + // SchoolNumber undocumented + SchoolNumber *string `json:"schoolNumber,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // Phone undocumented + Phone *string `json:"phone,omitempty"` + // Fax undocumented + Fax *string `json:"fax,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // Address undocumented + Address *PhysicalAddress `json:"address,omitempty"` + // Classes undocumented + Classes []EducationClass `json:"classes,omitempty"` + // Users undocumented + Users []EducationUser `json:"users,omitempty"` + // AdministrativeUnit undocumented + AdministrativeUnit *AdministrativeUnit `json:"administrativeUnit,omitempty"` +} + +// EducationStudent undocumented +type EducationStudent struct { + // Object is the base model of EducationStudent + Object + // GraduationYear undocumented + GraduationYear *string `json:"graduationYear,omitempty"` + // Grade undocumented + Grade *string `json:"grade,omitempty"` + // BirthDate undocumented + BirthDate *Date `json:"birthDate,omitempty"` + // Gender undocumented + Gender *EducationGender `json:"gender,omitempty"` + // StudentNumber undocumented + StudentNumber *string `json:"studentNumber,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` +} + +// EducationSubmission undocumented +type EducationSubmission struct { + // Entity is the base model of EducationSubmission + Entity + // Recipient undocumented + Recipient *EducationSubmissionRecipient `json:"recipient,omitempty"` + // Status undocumented + Status *EducationSubmissionStatus `json:"status,omitempty"` + // SubmittedBy undocumented + SubmittedBy *IdentitySet `json:"submittedBy,omitempty"` + // SubmittedDateTime undocumented + SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"` + // UnsubmittedBy undocumented + UnsubmittedBy *IdentitySet `json:"unsubmittedBy,omitempty"` + // UnsubmittedDateTime undocumented + UnsubmittedDateTime *time.Time `json:"unsubmittedDateTime,omitempty"` + // ReleasedBy undocumented + ReleasedBy *IdentitySet `json:"releasedBy,omitempty"` + // ReleasedDateTime undocumented + ReleasedDateTime *time.Time `json:"releasedDateTime,omitempty"` + // ReturnedBy undocumented + ReturnedBy *IdentitySet `json:"returnedBy,omitempty"` + // ReturnedDateTime undocumented + ReturnedDateTime *time.Time `json:"returnedDateTime,omitempty"` + // ResourcesFolderURL undocumented + ResourcesFolderURL *string `json:"resourcesFolderUrl,omitempty"` + // Resources undocumented + Resources []EducationSubmissionResource `json:"resources,omitempty"` + // SubmittedResources undocumented + SubmittedResources []EducationSubmissionResource `json:"submittedResources,omitempty"` + // Outcomes undocumented + Outcomes []EducationOutcome `json:"outcomes,omitempty"` +} + +// EducationSubmissionIndividualRecipient undocumented +type EducationSubmissionIndividualRecipient struct { + // EducationSubmissionRecipient is the base model of EducationSubmissionIndividualRecipient + EducationSubmissionRecipient + // UserID undocumented + UserID *string `json:"userId,omitempty"` +} + +// EducationSubmissionRecipient undocumented +type EducationSubmissionRecipient struct { + // Object is the base model of EducationSubmissionRecipient + Object +} + +// EducationSubmissionResource undocumented +type EducationSubmissionResource struct { + // Entity is the base model of EducationSubmissionResource + Entity + // Resource undocumented + Resource *EducationResource `json:"resource,omitempty"` + // AssignmentResourceURL undocumented + AssignmentResourceURL *string `json:"assignmentResourceUrl,omitempty"` +} + +// EducationSynchronizationConnectionSettings undocumented +type EducationSynchronizationConnectionSettings struct { + // Object is the base model of EducationSynchronizationConnectionSettings + Object + // ClientID undocumented + ClientID *string `json:"clientId,omitempty"` + // ClientSecret undocumented + ClientSecret *string `json:"clientSecret,omitempty"` +} + +// EducationSynchronizationCustomization undocumented +type EducationSynchronizationCustomization struct { + // Object is the base model of EducationSynchronizationCustomization + Object + // OptionalPropertiesToSync undocumented + OptionalPropertiesToSync []string `json:"optionalPropertiesToSync,omitempty"` + // SynchronizationStartDate undocumented + SynchronizationStartDate *time.Time `json:"synchronizationStartDate,omitempty"` + // IsSyncDeferred undocumented + IsSyncDeferred *bool `json:"isSyncDeferred,omitempty"` + // AllowDisplayNameUpdate undocumented + AllowDisplayNameUpdate *bool `json:"allowDisplayNameUpdate,omitempty"` +} + +// EducationSynchronizationCustomizations undocumented +type EducationSynchronizationCustomizations struct { + // EducationSynchronizationCustomizationsBase is the base model of EducationSynchronizationCustomizations + EducationSynchronizationCustomizationsBase + // School undocumented + School *EducationSynchronizationCustomization `json:"school,omitempty"` + // Section undocumented + Section *EducationSynchronizationCustomization `json:"section,omitempty"` + // Student undocumented + Student *EducationSynchronizationCustomization `json:"student,omitempty"` + // Teacher undocumented + Teacher *EducationSynchronizationCustomization `json:"teacher,omitempty"` + // StudentEnrollment undocumented + StudentEnrollment *EducationSynchronizationCustomization `json:"studentEnrollment,omitempty"` + // TeacherRoster undocumented + TeacherRoster *EducationSynchronizationCustomization `json:"teacherRoster,omitempty"` +} + +// EducationSynchronizationCustomizationsBase undocumented +type EducationSynchronizationCustomizationsBase struct { + // Object is the base model of EducationSynchronizationCustomizationsBase + Object +} + +// EducationSynchronizationDataProvider undocumented +type EducationSynchronizationDataProvider struct { + // Object is the base model of EducationSynchronizationDataProvider + Object +} + +// EducationSynchronizationError undocumented +type EducationSynchronizationError struct { + // Entity is the base model of EducationSynchronizationError + Entity + // EntryType undocumented + EntryType *string `json:"entryType,omitempty"` + // ErrorCode undocumented + ErrorCode *string `json:"errorCode,omitempty"` + // ErrorMessage undocumented + ErrorMessage *string `json:"errorMessage,omitempty"` + // JoiningValue undocumented + JoiningValue *string `json:"joiningValue,omitempty"` + // RecordedDateTime undocumented + RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"` + // ReportableIdentifier undocumented + ReportableIdentifier *string `json:"reportableIdentifier,omitempty"` +} + +// EducationSynchronizationLicenseAssignment undocumented +type EducationSynchronizationLicenseAssignment struct { + // Object is the base model of EducationSynchronizationLicenseAssignment + Object + // AppliesTo undocumented + AppliesTo *EducationUserRole `json:"appliesTo,omitempty"` + // SKUIDs undocumented + SKUIDs []string `json:"skuIds,omitempty"` +} + +// EducationSynchronizationOAuth1ConnectionSettings undocumented +type EducationSynchronizationOAuth1ConnectionSettings struct { + // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth1ConnectionSettings + EducationSynchronizationConnectionSettings +} + +// EducationSynchronizationOAuth2ClientCredentialsConnectionSettings undocumented +type EducationSynchronizationOAuth2ClientCredentialsConnectionSettings struct { + // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth2ClientCredentialsConnectionSettings + EducationSynchronizationConnectionSettings + // TokenURL undocumented + TokenURL *string `json:"tokenUrl,omitempty"` + // Scope undocumented + Scope *string `json:"scope,omitempty"` +} + +// EducationSynchronizationProfile undocumented +type EducationSynchronizationProfile struct { + // Entity is the base model of EducationSynchronizationProfile + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // DataProvider undocumented + DataProvider *EducationSynchronizationDataProvider `json:"dataProvider,omitempty"` + // IdentitySynchronizationConfiguration undocumented + IdentitySynchronizationConfiguration *EducationIdentitySynchronizationConfiguration `json:"identitySynchronizationConfiguration,omitempty"` + // LicensesToAssign undocumented + LicensesToAssign []EducationSynchronizationLicenseAssignment `json:"licensesToAssign,omitempty"` + // State undocumented + State *EducationSynchronizationProfileState `json:"state,omitempty"` + // HandleSpecialCharacterConstraint undocumented + HandleSpecialCharacterConstraint *bool `json:"handleSpecialCharacterConstraint,omitempty"` + // Errors undocumented + Errors []EducationSynchronizationError `json:"errors,omitempty"` + // ProfileStatus undocumented + ProfileStatus *EducationSynchronizationProfileStatus `json:"profileStatus,omitempty"` +} + +// EducationSynchronizationProfileStatus undocumented +type EducationSynchronizationProfileStatus struct { + // Entity is the base model of EducationSynchronizationProfileStatus + Entity + // Status undocumented + Status *EducationSynchronizationStatus `json:"status,omitempty"` + // LastSynchronizationDateTime undocumented + LastSynchronizationDateTime *time.Time `json:"lastSynchronizationDateTime,omitempty"` +} + +// EducationTeacher undocumented +type EducationTeacher struct { + // Object is the base model of EducationTeacher + Object + // TeacherNumber undocumented + TeacherNumber *string `json:"teacherNumber,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` +} + +// EducationTerm undocumented +type EducationTerm struct { + // Object is the base model of EducationTerm + Object + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // StartDate undocumented + StartDate *Date `json:"startDate,omitempty"` + // EndDate undocumented + EndDate *Date `json:"endDate,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// EducationUser undocumented +type EducationUser struct { + // Entity is the base model of EducationUser + Entity + // RelatedContacts undocumented + RelatedContacts []RelatedContact `json:"relatedContacts,omitempty"` + // PrimaryRole undocumented + PrimaryRole *EducationUserRole `json:"primaryRole,omitempty"` + // MiddleName undocumented + MiddleName *string `json:"middleName,omitempty"` + // ExternalSource undocumented + ExternalSource *EducationExternalSource `json:"externalSource,omitempty"` + // ResidenceAddress undocumented + ResidenceAddress *PhysicalAddress `json:"residenceAddress,omitempty"` + // MailingAddress undocumented + MailingAddress *PhysicalAddress `json:"mailingAddress,omitempty"` + // Student undocumented + Student *EducationStudent `json:"student,omitempty"` + // Teacher undocumented + Teacher *EducationTeacher `json:"teacher,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // AccountEnabled undocumented + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AssignedLicenses undocumented + AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"` + // AssignedPlans undocumented + AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"` + // BusinessPhones undocumented + BusinessPhones []string `json:"businessPhones,omitempty"` + // Department undocumented + Department *string `json:"department,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GivenName undocumented + GivenName *string `json:"givenName,omitempty"` + // Mail undocumented + Mail *string `json:"mail,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // MobilePhone undocumented + MobilePhone *string `json:"mobilePhone,omitempty"` + // PasswordPolicies undocumented + PasswordPolicies *string `json:"passwordPolicies,omitempty"` + // PasswordProfile undocumented + PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // PreferredLanguage undocumented + PreferredLanguage *string `json:"preferredLanguage,omitempty"` + // ProvisionedPlans undocumented + ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"` + // RefreshTokensValidFromDateTime undocumented + RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"` + // ShowInAddressList undocumented + ShowInAddressList *bool `json:"showInAddressList,omitempty"` + // Surname undocumented + Surname *string `json:"surname,omitempty"` + // UsageLocation undocumented + UsageLocation *string `json:"usageLocation,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserType undocumented + UserType *string `json:"userType,omitempty"` + // OnPremisesInfo undocumented + OnPremisesInfo *EducationOnPremisesInfo `json:"onPremisesInfo,omitempty"` + // Assignments undocumented + Assignments []EducationAssignment `json:"assignments,omitempty"` + // Rubrics undocumented + Rubrics []EducationRubric `json:"rubrics,omitempty"` + // Classes undocumented + Classes []EducationClass `json:"classes,omitempty"` + // TaughtClasses undocumented + TaughtClasses []EducationClass `json:"taughtClasses,omitempty"` + // Schools undocumented + Schools []EducationSchool `json:"schools,omitempty"` + // User undocumented + User *User `json:"user,omitempty"` +} + +// EducationWordResource undocumented +type EducationWordResource struct { + // EducationResource is the base model of EducationWordResource + EducationResource + // FileURL undocumented + FileURL *string `json:"fileUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go new file mode 100644 index 00000000..3d06bd9f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EducationalActivity undocumented +type EducationalActivity struct { + // ItemFacet is the base model of EducationalActivity + ItemFacet + // CompletionMonthYear undocumented + CompletionMonthYear *Date `json:"completionMonthYear,omitempty"` + // EndMonthYear undocumented + EndMonthYear *Date `json:"endMonthYear,omitempty"` + // Institution undocumented + Institution *InstitutionData `json:"institution,omitempty"` + // Program undocumented + Program *EducationalActivityDetail `json:"program,omitempty"` + // StartMonthYear undocumented + StartMonthYear *Date `json:"startMonthYear,omitempty"` +} + +// EducationalActivityDetail undocumented +type EducationalActivityDetail struct { + // Object is the base model of EducationalActivityDetail + Object + // Abbreviation undocumented + Abbreviation *string `json:"abbreviation,omitempty"` + // Activities undocumented + Activities *string `json:"activities,omitempty"` + // Awards undocumented + Awards *string `json:"awards,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // FieldsOfStudy undocumented + FieldsOfStudy *string `json:"fieldsOfStudy,omitempty"` + // Grade undocumented + Grade *string `json:"grade,omitempty"` + // Notes undocumented + Notes *string `json:"notes,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go new file mode 100644 index 00000000..e577b945 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go @@ -0,0 +1,199 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EmailActivityStatistics undocumented +type EmailActivityStatistics struct { + // ActivityStatistics is the base model of EmailActivityStatistics + ActivityStatistics + // AfterHours undocumented + AfterHours *Duration `json:"afterHours,omitempty"` + // ReadEmail undocumented + ReadEmail *Duration `json:"readEmail,omitempty"` + // SentEmail undocumented + SentEmail *Duration `json:"sentEmail,omitempty"` +} + +// EmailActivitySummary undocumented +type EmailActivitySummary struct { + // Entity is the base model of EmailActivitySummary + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Send undocumented + Send *int `json:"send,omitempty"` + // Receive undocumented + Receive *int `json:"receive,omitempty"` + // Read undocumented + Read *int `json:"read,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailActivityUserDetail undocumented +type EmailActivityUserDetail struct { + // Entity is the base model of EmailActivityUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // SendCount undocumented + SendCount *int `json:"sendCount,omitempty"` + // ReceiveCount undocumented + ReceiveCount *int `json:"receiveCount,omitempty"` + // ReadCount undocumented + ReadCount *int `json:"readCount,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailAddress undocumented +type EmailAddress struct { + // Object is the base model of EmailAddress + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Address undocumented + Address *string `json:"address,omitempty"` +} + +// EmailAppUsageAppsUserCounts undocumented +type EmailAppUsageAppsUserCounts struct { + // Entity is the base model of EmailAppUsageAppsUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // MailForMac undocumented + MailForMac *int `json:"mailForMac,omitempty"` + // OutlookForMac undocumented + OutlookForMac *int `json:"outlookForMac,omitempty"` + // OutlookForWindows undocumented + OutlookForWindows *int `json:"outlookForWindows,omitempty"` + // OutlookForMobile undocumented + OutlookForMobile *int `json:"outlookForMobile,omitempty"` + // OtherForMobile undocumented + OtherForMobile *int `json:"otherForMobile,omitempty"` + // OutlookForWeb undocumented + OutlookForWeb *int `json:"outlookForWeb,omitempty"` + // Pop3App undocumented + Pop3App *int `json:"pop3App,omitempty"` + // Imap4App undocumented + Imap4App *int `json:"imap4App,omitempty"` + // SMTPApp undocumented + SMTPApp *int `json:"smtpApp,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailAppUsageUserCounts undocumented +type EmailAppUsageUserCounts struct { + // Entity is the base model of EmailAppUsageUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // MailForMac undocumented + MailForMac *int `json:"mailForMac,omitempty"` + // OutlookForMac undocumented + OutlookForMac *int `json:"outlookForMac,omitempty"` + // OutlookForWindows undocumented + OutlookForWindows *int `json:"outlookForWindows,omitempty"` + // OutlookForMobile undocumented + OutlookForMobile *int `json:"outlookForMobile,omitempty"` + // OtherForMobile undocumented + OtherForMobile *int `json:"otherForMobile,omitempty"` + // OutlookForWeb undocumented + OutlookForWeb *int `json:"outlookForWeb,omitempty"` + // Pop3App undocumented + Pop3App *int `json:"pop3App,omitempty"` + // Imap4App undocumented + Imap4App *int `json:"imap4App,omitempty"` + // SMTPApp undocumented + SMTPApp *int `json:"smtpApp,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailAppUsageUserDetail undocumented +type EmailAppUsageUserDetail struct { + // Entity is the base model of EmailAppUsageUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // MailForMac undocumented + MailForMac []string `json:"mailForMac,omitempty"` + // OutlookForMac undocumented + OutlookForMac []string `json:"outlookForMac,omitempty"` + // OutlookForWindows undocumented + OutlookForWindows []string `json:"outlookForWindows,omitempty"` + // OutlookForMobile undocumented + OutlookForMobile []string `json:"outlookForMobile,omitempty"` + // OtherForMobile undocumented + OtherForMobile []string `json:"otherForMobile,omitempty"` + // OutlookForWeb undocumented + OutlookForWeb []string `json:"outlookForWeb,omitempty"` + // Pop3App undocumented + Pop3App []string `json:"pop3App,omitempty"` + // Imap4App undocumented + Imap4App []string `json:"imap4App,omitempty"` + // SMTPApp undocumented + SMTPApp []string `json:"smtpApp,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailAppUsageVersionsUserCounts undocumented +type EmailAppUsageVersionsUserCounts struct { + // Entity is the base model of EmailAppUsageVersionsUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Outlook2016 undocumented + Outlook2016 *int `json:"outlook2016,omitempty"` + // Outlook2013 undocumented + Outlook2013 *int `json:"outlook2013,omitempty"` + // Outlook2010 undocumented + Outlook2010 *int `json:"outlook2010,omitempty"` + // Outlook2007 undocumented + Outlook2007 *int `json:"outlook2007,omitempty"` + // Undetermined undocumented + Undetermined *int `json:"undetermined,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// EmailFileAssessmentRequestObject undocumented +type EmailFileAssessmentRequestObject struct { + // ThreatAssessmentRequestObject is the base model of EmailFileAssessmentRequestObject + ThreatAssessmentRequestObject + // RecipientEmail undocumented + RecipientEmail *string `json:"recipientEmail,omitempty"` + // DestinationRoutingReason undocumented + DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"` + // ContentData undocumented + ContentData *string `json:"contentData,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go new file mode 100644 index 00000000..8eff9613 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go @@ -0,0 +1,67 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// EmbeddedSIMActivationCode undocumented +type EmbeddedSIMActivationCode struct { + // Object is the base model of EmbeddedSIMActivationCode + Object + // IntegratedCircuitCardIdentifier The Integrated Circuit Card Identifier (ICCID) for this embedded SIM activation code as provided by the mobile operator. + IntegratedCircuitCardIdentifier *string `json:"integratedCircuitCardIdentifier,omitempty"` + // MatchingIdentifier The MatchingIdentifier (MatchingID) as specified in the GSMA Association SGP.22 RSP Technical Specification section 4.1. + MatchingIdentifier *string `json:"matchingIdentifier,omitempty"` + // SmdpPlusServerAddress The fully qualified domain name of the SM-DP+ server as specified in the GSM Association SPG .22 RSP Technical Specification. + SmdpPlusServerAddress *string `json:"smdpPlusServerAddress,omitempty"` +} + +// EmbeddedSIMActivationCodePool A pool represents a group of embedded SIM activation codes. +type EmbeddedSIMActivationCodePool struct { + // Entity is the base model of EmbeddedSIMActivationCodePool + Entity + // DisplayName The admin defined name of the embedded SIM activation code pool. + DisplayName *string `json:"displayName,omitempty"` + // CreatedDateTime The time the embedded SIM activation code pool was created. Generated service side. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime The time the embedded SIM activation code pool was last modified. Updated service side. + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // ActivationCodes The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune. + ActivationCodes []EmbeddedSIMActivationCode `json:"activationCodes,omitempty"` + // ActivationCodeCount The total count of activation codes which belong to this pool. + ActivationCodeCount *int `json:"activationCodeCount,omitempty"` + // Assignments undocumented + Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"` + // DeviceStates undocumented + DeviceStates []EmbeddedSIMDeviceState `json:"deviceStates,omitempty"` +} + +// EmbeddedSIMActivationCodePoolAssignment The embedded SIM activation code pool assignment entity assigns a specific embeddedSIMActivationCodePool to an AAD device group. +type EmbeddedSIMActivationCodePoolAssignment struct { + // Entity is the base model of EmbeddedSIMActivationCodePoolAssignment + Entity + // Target The type of groups targeted by the embedded SIM activation code pool. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// EmbeddedSIMDeviceState Describes the embedded SIM activation code deployment state in relation to a device. +type EmbeddedSIMDeviceState struct { + // Entity is the base model of EmbeddedSIMDeviceState + Entity + // CreatedDateTime The time the embedded SIM device status was created. Generated service side. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime The time the embedded SIM device status was last modified. Updated service side. + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // LastSyncDateTime The time the embedded SIM device last checked in. Updated service side. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // UniversalIntegratedCircuitCardIdentifier The Universal Integrated Circuit Card Identifier (UICCID) identifying the hardware onto which a profile is to be deployed. + UniversalIntegratedCircuitCardIdentifier *string `json:"universalIntegratedCircuitCardIdentifier,omitempty"` + // DeviceName Device name to which the subscription was provisioned e.g. DESKTOP-JOE + DeviceName *string `json:"deviceName,omitempty"` + // UserName Username which the subscription was provisioned to e.g. joe@contoso.com + UserName *string `json:"userName,omitempty"` + // State The state of the profile operation applied to the device. + State *EmbeddedSIMDeviceStateValue `json:"state,omitempty"` + // StateDetails String description of the provisioning state. + StateDetails *string `json:"stateDetails,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go new file mode 100644 index 00000000..fe3d7924 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Employee undocumented +type Employee struct { + // Entity is the base model of Employee + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GivenName undocumented + GivenName *string `json:"givenName,omitempty"` + // MiddleName undocumented + MiddleName *string `json:"middleName,omitempty"` + // Surname undocumented + Surname *string `json:"surname,omitempty"` + // JobTitle undocumented + JobTitle *string `json:"jobTitle,omitempty"` + // Address undocumented + Address *PostalAddressType `json:"address,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // MobilePhone undocumented + MobilePhone *string `json:"mobilePhone,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // PersonalEmail undocumented + PersonalEmail *string `json:"personalEmail,omitempty"` + // EmploymentDate undocumented + EmploymentDate *Date `json:"employmentDate,omitempty"` + // TerminationDate undocumented + TerminationDate *Date `json:"terminationDate,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // BirthDate undocumented + BirthDate *Date `json:"birthDate,omitempty"` + // StatisticsGroupCode undocumented + StatisticsGroupCode *string `json:"statisticsGroupCode,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Picture undocumented + Picture []Picture `json:"picture,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go new file mode 100644 index 00000000..95f50751 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EncryptContent undocumented +type EncryptContent struct { + // LabelActionBase is the base model of EncryptContent + LabelActionBase + // EncryptWith undocumented + EncryptWith *EncryptWith `json:"encryptWith,omitempty"` +} + +// EncryptWithTemplate undocumented +type EncryptWithTemplate struct { + // EncryptContent is the base model of EncryptWithTemplate + EncryptContent + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // AvailableForEncryption undocumented + AvailableForEncryption *bool `json:"availableForEncryption,omitempty"` +} + +// EncryptWithUserDefinedRights undocumented +type EncryptWithUserDefinedRights struct { + // EncryptContent is the base model of EncryptWithUserDefinedRights + EncryptContent + // DecryptionRightsManagementTemplateID undocumented + DecryptionRightsManagementTemplateID *string `json:"decryptionRightsManagementTemplateId,omitempty"` + // AllowMailForwarding undocumented + AllowMailForwarding *bool `json:"allowMailForwarding,omitempty"` + // AllowAdHocPermissions undocumented + AllowAdHocPermissions *bool `json:"allowAdHocPermissions,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EndpointModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go new file mode 100644 index 00000000..af7008bd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EnrollmentConfigurationAssignment Enrollment Configuration Assignment +type EnrollmentConfigurationAssignment struct { + // Entity is the base model of EnrollmentConfigurationAssignment + Entity + // Target Represents an assignment to managed devices in the tenant + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Source Type of resource used for deployment to a group, direct or policySet + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID Identifier for resource used for deployment to a group + SourceID *string `json:"sourceId,omitempty"` +} + +// EnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device. +type EnrollmentProfile struct { + // Entity is the base model of EnrollmentProfile + Entity + // DisplayName Name of the profile + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the profile + Description *string `json:"description,omitempty"` + // RequiresUserAuthentication Indicates if the profile requires user authentication + RequiresUserAuthentication *bool `json:"requiresUserAuthentication,omitempty"` + // ConfigurationEndpointURL Configuration endpoint url to use for Enrollment + ConfigurationEndpointURL *string `json:"configurationEndpointUrl,omitempty"` + // EnableAuthenticationViaCompanyPortal Indicates to authenticate with Apple Setup Assistant instead of Company Portal. + EnableAuthenticationViaCompanyPortal *bool `json:"enableAuthenticationViaCompanyPortal,omitempty"` + // RequireCompanyPortalOnSetupAssistantEnrolledDevices Indicates that Company Portal is required on setup assistant enrolled devices + RequireCompanyPortalOnSetupAssistantEnrolledDevices *bool `json:"requireCompanyPortalOnSetupAssistantEnrolledDevices,omitempty"` +} + +// EnrollmentRestrictionsConfigurationPolicySetItem A class containing the properties used for enrollment restriction PolicySetItem. +type EnrollmentRestrictionsConfigurationPolicySetItem struct { + // PolicySetItem is the base model of EnrollmentRestrictionsConfigurationPolicySetItem + PolicySetItem + // Priority Priority of the EnrollmentRestrictionsConfigurationPolicySetItem. + Priority *int `json:"priority,omitempty"` + // Limit Limit of the EnrollmentRestrictionsConfigurationPolicySetItem. + Limit *int `json:"limit,omitempty"` +} + +// EnrollmentTroubleshootingEvent Event representing an enrollment failure. +type EnrollmentTroubleshootingEvent struct { + // DeviceManagementTroubleshootingEvent is the base model of EnrollmentTroubleshootingEvent + DeviceManagementTroubleshootingEvent + // ManagedDeviceIdentifier Device identifier created or collected by Intune. + ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"` + // OperatingSystem Operating System. + OperatingSystem *string `json:"operatingSystem,omitempty"` + // OsVersion OS Version. + OsVersion *string `json:"osVersion,omitempty"` + // UserID Identifier for the user that tried to enroll the device. + UserID *string `json:"userId,omitempty"` + // DeviceID Azure AD device identifier. + DeviceID *string `json:"deviceId,omitempty"` + // EnrollmentType Type of the enrollment. + EnrollmentType *DeviceEnrollmentType `json:"enrollmentType,omitempty"` + // FailureCategory Highlevel failure category. + FailureCategory *DeviceEnrollmentFailureReason `json:"failureCategory,omitempty"` + // FailureReason Detailed failure reason. + FailureReason *string `json:"failureReason,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EntitlementManagementModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go new file mode 100644 index 00000000..97d76f19 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Entity undocumented +type Entity struct { + // Object is the base model of Entity + Object + // ID undocumented + ID *string `json:"id,omitempty"` +} + +// EntitySetNames undocumented +type EntitySetNames struct { + // Object is the base model of EntitySetNames + Object +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ErrorDetailModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go new file mode 100644 index 00000000..70cfbac6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go @@ -0,0 +1,75 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// EvaluateDynamicMembershipResult undocumented +type EvaluateDynamicMembershipResult struct { + // Object is the base model of EvaluateDynamicMembershipResult + Object + // MembershipRule undocumented + MembershipRule *string `json:"membershipRule,omitempty"` + // MembershipRuleEvaluationResult undocumented + MembershipRuleEvaluationResult *bool `json:"membershipRuleEvaluationResult,omitempty"` + // MembershipRuleEvaluationDetails undocumented + MembershipRuleEvaluationDetails *ExpressionEvaluationDetails `json:"membershipRuleEvaluationDetails,omitempty"` +} + +// EvaluateLabelJobResponse undocumented +type EvaluateLabelJobResponse struct { + // JobResponseBase is the base model of EvaluateLabelJobResponse + JobResponseBase + // Result undocumented + Result *EvaluateLabelJobResultGroup `json:"result,omitempty"` +} + +// EvaluateLabelJobResult undocumented +type EvaluateLabelJobResult struct { + // Object is the base model of EvaluateLabelJobResult + Object + // SensitivityLabel undocumented + SensitivityLabel *MatchingLabel `json:"sensitivityLabel,omitempty"` + // ResponsibleSensitiveTypes undocumented + ResponsibleSensitiveTypes []ResponsibleSensitiveType `json:"responsibleSensitiveTypes,omitempty"` + // ResponsiblePolicy undocumented + ResponsiblePolicy *ResponsiblePolicy `json:"responsiblePolicy,omitempty"` +} + +// EvaluateLabelJobResultGroup undocumented +type EvaluateLabelJobResultGroup struct { + // Object is the base model of EvaluateLabelJobResultGroup + Object + // Automatic undocumented + Automatic *EvaluateLabelJobResult `json:"automatic,omitempty"` + // Recommended undocumented + Recommended *EvaluateLabelJobResult `json:"recommended,omitempty"` +} + +// EvaluateLabelsAndPoliciesJobResponse undocumented +type EvaluateLabelsAndPoliciesJobResponse struct { + // JobResponseBase is the base model of EvaluateLabelsAndPoliciesJobResponse + JobResponseBase + // Result undocumented + Result *EvaluateLabelsAndPoliciesResult `json:"result,omitempty"` +} + +// EvaluateLabelsAndPoliciesResult undocumented +type EvaluateLabelsAndPoliciesResult struct { + // Object is the base model of EvaluateLabelsAndPoliciesResult + Object + // SensitivityLabelsResult undocumented + SensitivityLabelsResult *EvaluateLabelJobResultGroup `json:"sensitivityLabelsResult,omitempty"` + // DataLossPreventionPoliciesResult undocumented + DataLossPreventionPoliciesResult *DlpPoliciesJobResult `json:"dataLossPreventionPoliciesResult,omitempty"` + // ClassificationResult undocumented + ClassificationResult *DetectedSensitiveContentWrapper `json:"classificationResult,omitempty"` +} + +// EvaluateSensitivityLabelsRequestObject undocumented +type EvaluateSensitivityLabelsRequestObject struct { + // Object is the base model of EvaluateSensitivityLabelsRequestObject + Object + // DiscoveredSensitiveTypes undocumented + DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"` + // CurrentLabel undocumented + CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go new file mode 100644 index 00000000..2077f580 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go @@ -0,0 +1,141 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Event undocumented +type Event struct { + // OutlookItem is the base model of Event + OutlookItem + // OriginalStartTimeZone undocumented + OriginalStartTimeZone *string `json:"originalStartTimeZone,omitempty"` + // OriginalEndTimeZone undocumented + OriginalEndTimeZone *string `json:"originalEndTimeZone,omitempty"` + // ResponseStatus undocumented + ResponseStatus *ResponseStatus `json:"responseStatus,omitempty"` + // UID undocumented + UID *string `json:"uid,omitempty"` + // ReminderMinutesBeforeStart undocumented + ReminderMinutesBeforeStart *int `json:"reminderMinutesBeforeStart,omitempty"` + // IsReminderOn undocumented + IsReminderOn *bool `json:"isReminderOn,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // Body undocumented + Body *ItemBody `json:"body,omitempty"` + // BodyPreview undocumented + BodyPreview *string `json:"bodyPreview,omitempty"` + // Importance undocumented + Importance *Importance `json:"importance,omitempty"` + // Sensitivity undocumented + Sensitivity *Sensitivity `json:"sensitivity,omitempty"` + // Start undocumented + Start *DateTimeTimeZone `json:"start,omitempty"` + // OriginalStart undocumented + OriginalStart *time.Time `json:"originalStart,omitempty"` + // End undocumented + End *DateTimeTimeZone `json:"end,omitempty"` + // Location undocumented + Location *Location `json:"location,omitempty"` + // Locations undocumented + Locations []Location `json:"locations,omitempty"` + // IsAllDay undocumented + IsAllDay *bool `json:"isAllDay,omitempty"` + // IsCancelled undocumented + IsCancelled *bool `json:"isCancelled,omitempty"` + // IsOrganizer undocumented + IsOrganizer *bool `json:"isOrganizer,omitempty"` + // Recurrence undocumented + Recurrence *PatternedRecurrence `json:"recurrence,omitempty"` + // ResponseRequested undocumented + ResponseRequested *bool `json:"responseRequested,omitempty"` + // SeriesMasterID undocumented + SeriesMasterID *string `json:"seriesMasterId,omitempty"` + // ShowAs undocumented + ShowAs *FreeBusyStatus `json:"showAs,omitempty"` + // Type undocumented + Type *EventType `json:"type,omitempty"` + // Attendees undocumented + Attendees []Attendee `json:"attendees,omitempty"` + // Organizer undocumented + Organizer *Recipient `json:"organizer,omitempty"` + // WebLink undocumented + WebLink *string `json:"webLink,omitempty"` + // OnlineMeetingURL undocumented + OnlineMeetingURL *string `json:"onlineMeetingUrl,omitempty"` + // IsOnlineMeeting undocumented + IsOnlineMeeting *bool `json:"isOnlineMeeting,omitempty"` + // OnlineMeetingProvider undocumented + OnlineMeetingProvider *OnlineMeetingProviderType `json:"onlineMeetingProvider,omitempty"` + // OnlineMeeting undocumented + OnlineMeeting *OnlineMeetingInfo `json:"onlineMeeting,omitempty"` + // AllowNewTimeProposals undocumented + AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"` + // Attachments undocumented + Attachments []Attachment `json:"attachments,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Calendar undocumented + Calendar *Calendar `json:"calendar,omitempty"` + // Instances undocumented + Instances []Event `json:"instances,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` +} + +// EventMessage undocumented +type EventMessage struct { + // Message is the base model of EventMessage + Message + // MeetingMessageType undocumented + MeetingMessageType *MeetingMessageType `json:"meetingMessageType,omitempty"` + // StartDateTime undocumented + StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *DateTimeTimeZone `json:"endDateTime,omitempty"` + // Location undocumented + Location *Location `json:"location,omitempty"` + // Type undocumented + Type *EventType `json:"type,omitempty"` + // Recurrence undocumented + Recurrence *PatternedRecurrence `json:"recurrence,omitempty"` + // IsOutOfDate undocumented + IsOutOfDate *bool `json:"isOutOfDate,omitempty"` + // IsAllDay undocumented + IsAllDay *bool `json:"isAllDay,omitempty"` + // IsDelegated undocumented + IsDelegated *bool `json:"isDelegated,omitempty"` + // Event undocumented + Event *Event `json:"event,omitempty"` +} + +// EventMessageRequestObject undocumented +type EventMessageRequestObject struct { + // EventMessage is the base model of EventMessageRequestObject + EventMessage + // PreviousLocation undocumented + PreviousLocation *Location `json:"previousLocation,omitempty"` + // PreviousStartDateTime undocumented + PreviousStartDateTime *DateTimeTimeZone `json:"previousStartDateTime,omitempty"` + // PreviousEndDateTime undocumented + PreviousEndDateTime *DateTimeTimeZone `json:"previousEndDateTime,omitempty"` + // ResponseRequested undocumented + ResponseRequested *bool `json:"responseRequested,omitempty"` + // AllowNewTimeProposals undocumented + AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"` +} + +// EventMessageResponse undocumented +type EventMessageResponse struct { + // EventMessage is the base model of EventMessageResponse + EventMessage + // ProposedNewTime undocumented + ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"` + // ResponseType undocumented + ResponseType *ResponseType `json:"responseType,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go new file mode 100644 index 00000000..fc353ceb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go @@ -0,0 +1,115 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ExactMatchClassificationRequestObject undocumented +type ExactMatchClassificationRequestObject struct { + // Object is the base model of ExactMatchClassificationRequestObject + Object + // SensitiveTypeIDs undocumented + SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"` + // Text undocumented + Text *string `json:"text,omitempty"` + // TimeoutInMs undocumented + TimeoutInMs *int `json:"timeoutInMs,omitempty"` + // ContentClassifications undocumented + ContentClassifications []ContentClassification `json:"contentClassifications,omitempty"` +} + +// ExactMatchClassificationResult undocumented +type ExactMatchClassificationResult struct { + // Object is the base model of ExactMatchClassificationResult + Object + // Classification undocumented + Classification []DetectedSensitiveContent `json:"classification,omitempty"` + // Errors undocumented + Errors []ClassificationError `json:"errors,omitempty"` +} + +// ExactMatchDataStore undocumented +type ExactMatchDataStore struct { + // Entity is the base model of ExactMatchDataStore + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DataLastUpdatedDateTime undocumented + DataLastUpdatedDateTime *time.Time `json:"dataLastUpdatedDateTime,omitempty"` + // Sessions undocumented + Sessions []ExactMatchSession `json:"sessions,omitempty"` +} + +// ExactMatchJobBase undocumented +type ExactMatchJobBase struct { + // Entity is the base model of ExactMatchJobBase + Entity + // CreationDateTime undocumented + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // LastUpdatedDateTime undocumented + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` + // CompletionDateTime undocumented + CompletionDateTime *time.Time `json:"completionDateTime,omitempty"` + // Error undocumented + Error *ClassificationError `json:"error,omitempty"` +} + +// ExactMatchLookupJob undocumented +type ExactMatchLookupJob struct { + // ExactMatchJobBase is the base model of ExactMatchLookupJob + ExactMatchJobBase + // State undocumented + State *string `json:"state,omitempty"` + // MatchingRows undocumented + MatchingRows []LookupResultRow `json:"matchingRows,omitempty"` +} + +// ExactMatchSession undocumented +type ExactMatchSession struct { + // ExactMatchJobBase is the base model of ExactMatchSession + ExactMatchJobBase + // DatastoreID undocumented + DatastoreID *string `json:"datastoreId,omitempty"` + // UploadAgentID undocumented + UploadAgentID *string `json:"uploadAgentId,omitempty"` + // Fields undocumented + Fields []string `json:"fields,omitempty"` + // FileName undocumented + FileName *string `json:"fileName,omitempty"` + // Checksum undocumented + Checksum *string `json:"checksum,omitempty"` + // DataUploadURI undocumented + DataUploadURI *string `json:"dataUploadURI,omitempty"` + // RemainingBlockCount undocumented + RemainingBlockCount *int `json:"remainingBlockCount,omitempty"` + // TotalBlockCount undocumented + TotalBlockCount *int `json:"totalBlockCount,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // UploadCompletionDateTime undocumented + UploadCompletionDateTime *time.Time `json:"uploadCompletionDateTime,omitempty"` + // ProcessingCompletionDateTime undocumented + ProcessingCompletionDateTime *time.Time `json:"processingCompletionDateTime,omitempty"` + // RowsPerBlock undocumented + RowsPerBlock *int `json:"rowsPerBlock,omitempty"` + // TotalJobCount undocumented + TotalJobCount *int `json:"totalJobCount,omitempty"` + // RemainingJobCount undocumented + RemainingJobCount *int `json:"remainingJobCount,omitempty"` + // UploadAgent undocumented + UploadAgent *ExactMatchUploadAgent `json:"uploadAgent,omitempty"` +} + +// ExactMatchUploadAgent undocumented +type ExactMatchUploadAgent struct { + // Entity is the base model of ExactMatchUploadAgent + Entity + // Description undocumented + Description *string `json:"description,omitempty"` + // CreationDateTime undocumented + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ExcludedAppsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go new file mode 100644 index 00000000..c5582be5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ExpressionEvaluationDetails undocumented +type ExpressionEvaluationDetails struct { + // Object is the base model of ExpressionEvaluationDetails + Object + // ExpressionResult undocumented + ExpressionResult *bool `json:"expressionResult,omitempty"` + // Expression undocumented + Expression *string `json:"expression,omitempty"` + // ExpressionEvaluationDetails undocumented + ExpressionEvaluationDetails []ExpressionEvaluationDetails `json:"expressionEvaluationDetails,omitempty"` + // PropertyToEvaluate undocumented + PropertyToEvaluate *PropertyToEvaluate `json:"propertyToEvaluate,omitempty"` +} + +// ExpressionInputObject undocumented +type ExpressionInputObject struct { + // Object is the base model of ExpressionInputObject + Object + // Definition undocumented + Definition *ObjectDefinition `json:"definition,omitempty"` + // Properties undocumented + Properties []StringKeyObjectValuePair `json:"properties,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go new file mode 100644 index 00000000..390f5497 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ExtendedKeyUsage undocumented +type ExtendedKeyUsage struct { + // Object is the base model of ExtendedKeyUsage + Object + // Name Extended Key Usage Name + Name *string `json:"name,omitempty"` + // ObjectIdentifier Extended Key Usage Object Identifier + ObjectIdentifier *string `json:"objectIdentifier,omitempty"` +} + +// ExtendedPlacePropertiesModel undocumented +type ExtendedPlacePropertiesModel struct { + // Object is the base model of ExtendedPlacePropertiesModel + Object + // PriceRange undocumented + PriceRange *string `json:"priceRange,omitempty"` + // MenuURL undocumented + MenuURL *string `json:"menuUrl,omitempty"` + // BusinessURL undocumented + BusinessURL *string `json:"businessUrl,omitempty"` + // FormattedAddress undocumented + FormattedAddress *string `json:"formattedAddress,omitempty"` + // OpeningHoursSpecifications undocumented + OpeningHoursSpecifications []OpeningHoursSpecification `json:"openingHoursSpecifications,omitempty"` + // TimeZone undocumented + TimeZone *string `json:"timeZone,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go new file mode 100644 index 00000000..ce26c608 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Extension undocumented +type Extension struct { + // Entity is the base model of Extension + Entity +} + +// ExtensionProperty undocumented +type ExtensionProperty struct { + // DirectoryObject is the base model of ExtensionProperty + DirectoryObject + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // DataType undocumented + DataType *string `json:"dataType,omitempty"` + // IsSyncedFromOnPremises undocumented + IsSyncedFromOnPremises *bool `json:"isSyncedFromOnPremises,omitempty"` + // TargetObjects undocumented + TargetObjects []string `json:"targetObjects,omitempty"` +} + +// ExtensionSchemaProperty undocumented +type ExtensionSchemaProperty struct { + // Object is the base model of ExtensionSchemaProperty + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go new file mode 100644 index 00000000..a0957a76 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go @@ -0,0 +1,75 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// External undocumented +type External struct { + // Entity is the base model of External + Entity + // Connections undocumented + Connections []ExternalConnection `json:"connections,omitempty"` +} + +// ExternalConnection undocumented +type ExternalConnection struct { + // Entity is the base model of ExternalConnection + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Configuration undocumented + Configuration *Configuration `json:"configuration,omitempty"` + // Schema undocumented + Schema *Schema `json:"schema,omitempty"` + // Items undocumented + Items []ExternalItem `json:"items,omitempty"` + // Operations undocumented + Operations []ConnectionOperation `json:"operations,omitempty"` +} + +// ExternalFile undocumented +type ExternalFile struct { + // ExternalItem is the base model of ExternalFile + ExternalItem + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime undocumented + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *string `json:"createdBy,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Extension undocumented + Extension *string `json:"extension,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` +} + +// ExternalItem undocumented +type ExternalItem struct { + // Entity is the base model of ExternalItem + Entity + // Properties undocumented + Properties *Properties `json:"properties,omitempty"` + // Content undocumented + Content *string `json:"content,omitempty"` + // ACL undocumented + ACL []ACL `json:"acl,omitempty"` +} + +// ExternalLink undocumented +type ExternalLink struct { + // Object is the base model of ExternalLink + Object + // Href undocumented + Href *string `json:"href,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go new file mode 100644 index 00000000..1caa4526 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go @@ -0,0 +1,39 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// FeatureRolloutPolicy undocumented +type FeatureRolloutPolicy struct { + // Entity is the base model of FeatureRolloutPolicy + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Feature undocumented + Feature *StagedFeatureName `json:"feature,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // IsAppliedToOrganization undocumented + IsAppliedToOrganization *bool `json:"isAppliedToOrganization,omitempty"` + // AppliesTo undocumented + AppliesTo []DirectoryObject `json:"appliesTo,omitempty"` +} + +// FeatureUsageDetail undocumented +type FeatureUsageDetail struct { + // Object is the base model of FeatureUsageDetail + Object + // FeatureName undocumented + FeatureName *string `json:"featureName,omitempty"` + // LicenseRequired undocumented + LicenseRequired *AzureADLicenseType `json:"licenseRequired,omitempty"` + // LicenseAssigned undocumented + LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"` + // LastUsedDateTime undocumented + LastUsedDateTime *time.Time `json:"lastUsedDateTime,omitempty"` + // LastConfiguredDateTime undocumented + LastConfiguredDateTime *time.Time `json:"lastConfiguredDateTime,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go new file mode 100644 index 00000000..6bba529a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go @@ -0,0 +1,143 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// File undocumented +type File struct { + // Object is the base model of File + Object + // Hashes undocumented + Hashes *Hashes `json:"hashes,omitempty"` + // MimeType undocumented + MimeType *string `json:"mimeType,omitempty"` + // ProcessingMetadata undocumented + ProcessingMetadata *bool `json:"processingMetadata,omitempty"` +} + +// FileAssessmentRequestObject undocumented +type FileAssessmentRequestObject struct { + // ThreatAssessmentRequestObject is the base model of FileAssessmentRequestObject + ThreatAssessmentRequestObject + // FileName undocumented + FileName *string `json:"fileName,omitempty"` + // ContentData undocumented + ContentData *string `json:"contentData,omitempty"` +} + +// FileAttachment undocumented +type FileAttachment struct { + // Attachment is the base model of FileAttachment + Attachment + // ContentID undocumented + ContentID *string `json:"contentId,omitempty"` + // ContentLocation undocumented + ContentLocation *string `json:"contentLocation,omitempty"` + // ContentBytes undocumented + ContentBytes *Binary `json:"contentBytes,omitempty"` +} + +// FileClassificationRequestObject undocumented +type FileClassificationRequestObject struct { + // Entity is the base model of FileClassificationRequestObject + Entity + // File undocumented + File *Stream `json:"file,omitempty"` + // SensitiveTypeIDs undocumented + SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"` +} + +// FileEncryptionInfo undocumented +type FileEncryptionInfo struct { + // Object is the base model of FileEncryptionInfo + Object + // EncryptionKey The key used to encrypt the file content. + EncryptionKey *Binary `json:"encryptionKey,omitempty"` + // InitializationVector The initialization vector used for the encryption algorithm. + InitializationVector *Binary `json:"initializationVector,omitempty"` + // Mac The hash of the encrypted file content + IV (content hash). + Mac *Binary `json:"mac,omitempty"` + // MacKey The key used to get mac. + MacKey *Binary `json:"macKey,omitempty"` + // ProfileIdentifier The the profile identifier. + ProfileIdentifier *string `json:"profileIdentifier,omitempty"` + // FileDigest The file digest prior to encryption. + FileDigest *Binary `json:"fileDigest,omitempty"` + // FileDigestAlgorithm The file digest algorithm. + FileDigestAlgorithm *string `json:"fileDigestAlgorithm,omitempty"` +} + +// FileHash undocumented +type FileHash struct { + // Object is the base model of FileHash + Object + // HashType undocumented + HashType *FileHashType `json:"hashType,omitempty"` + // HashValue undocumented + HashValue *string `json:"hashValue,omitempty"` +} + +// FileSecurityProfile undocumented +type FileSecurityProfile struct { + // Entity is the base model of FileSecurityProfile + Entity + // ActivityGroupNames undocumented + ActivityGroupNames []string `json:"activityGroupNames,omitempty"` + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // CertificateThumbprint undocumented + CertificateThumbprint *string `json:"certificateThumbprint,omitempty"` + // Extensions undocumented + Extensions []string `json:"extensions,omitempty"` + // FileType undocumented + FileType *string `json:"fileType,omitempty"` + // FirstSeenDateTime undocumented + FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"` + // Hashes undocumented + Hashes []FileHash `json:"hashes,omitempty"` + // LastSeenDateTime undocumented + LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"` + // MalwareStates undocumented + MalwareStates []MalwareState `json:"malwareStates,omitempty"` + // Names undocumented + Names []string `json:"names,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` + // VulnerabilityStates undocumented + VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"` +} + +// FileSecurityState undocumented +type FileSecurityState struct { + // Object is the base model of FileSecurityState + Object + // FileHash undocumented + FileHash *FileHash `json:"fileHash,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Path undocumented + Path *string `json:"path,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` +} + +// FileSystemInfo undocumented +type FileSystemInfo struct { + // Object is the base model of FileSystemInfo + Object + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastAccessedDateTime undocumented + LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go new file mode 100644 index 00000000..98333c3a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go @@ -0,0 +1,57 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Filter undocumented +type Filter struct { + // Object is the base model of Filter + Object + // Groups undocumented + Groups []FilterGroup `json:"groups,omitempty"` + // InputFilterGroups undocumented + InputFilterGroups []FilterGroup `json:"inputFilterGroups,omitempty"` + // CategoryFilterGroups undocumented + CategoryFilterGroups []FilterGroup `json:"categoryFilterGroups,omitempty"` +} + +// FilterClause undocumented +type FilterClause struct { + // Object is the base model of FilterClause + Object + // OperatorName undocumented + OperatorName *string `json:"operatorName,omitempty"` + // SourceOperandName undocumented + SourceOperandName *string `json:"sourceOperandName,omitempty"` + // TargetOperand undocumented + TargetOperand *FilterOperand `json:"targetOperand,omitempty"` +} + +// FilterGroup undocumented +type FilterGroup struct { + // Object is the base model of FilterGroup + Object + // Clauses undocumented + Clauses []FilterClause `json:"clauses,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// FilterOperand undocumented +type FilterOperand struct { + // Object is the base model of FilterOperand + Object + // Values undocumented + Values []string `json:"values,omitempty"` +} + +// FilterOperatorSchema undocumented +type FilterOperatorSchema struct { + // Entity is the base model of FilterOperatorSchema + Entity + // Arity undocumented + Arity *ScopeOperatorType `json:"arity,omitempty"` + // MultivaluedComparisonType undocumented + MultivaluedComparisonType *ScopeOperatorMultiValuedComparisonType `json:"multivaluedComparisonType,omitempty"` + // SupportedAttributeTypes undocumented + SupportedAttributeTypes []AttributeType `json:"supportedAttributeTypes,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FinancialsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FinancialsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FlexSchemaContainerModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FocusActivityStatisticsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go new file mode 100644 index 00000000..87dfbd94 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Folder undocumented +type Folder struct { + // Object is the base model of Folder + Object + // ChildCount undocumented + ChildCount *int `json:"childCount,omitempty"` + // View undocumented + View *FolderView `json:"view,omitempty"` +} + +// FolderView undocumented +type FolderView struct { + // Object is the base model of FolderView + Object + // SortBy undocumented + SortBy *string `json:"sortBy,omitempty"` + // SortOrder undocumented + SortOrder *string `json:"sortOrder,omitempty"` + // ViewType undocumented + ViewType *string `json:"viewType,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FollowupFlagModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FreeBusyErrorModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go new file mode 100644 index 00000000..33938019 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// GeneralLedgerEntry undocumented +type GeneralLedgerEntry struct { + // Entity is the base model of GeneralLedgerEntry + Entity + // PostingDate undocumented + PostingDate *Date `json:"postingDate,omitempty"` + // DocumentNumber undocumented + DocumentNumber *string `json:"documentNumber,omitempty"` + // DocumentType undocumented + DocumentType *string `json:"documentType,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // AccountNumber undocumented + AccountNumber *string `json:"accountNumber,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DebitAmount undocumented + DebitAmount *int `json:"debitAmount,omitempty"` + // CreditAmount undocumented + CreditAmount *int `json:"creditAmount,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GenericErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/GenericErrorModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GeoCoordinatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/GeoCoordinatesModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/GeolocationColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/GeolocationColumnModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go new file mode 100644 index 00000000..5e3adeb5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go @@ -0,0 +1,261 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// GovernanceCriteria undocumented +type GovernanceCriteria struct { + // Object is the base model of GovernanceCriteria + Object +} + +// GovernanceNotificationPolicy undocumented +type GovernanceNotificationPolicy struct { + // Object is the base model of GovernanceNotificationPolicy + Object + // NotificationTemplates undocumented + NotificationTemplates []GovernanceNotificationTemplate `json:"notificationTemplates,omitempty"` + // EnabledTemplateTypes undocumented + EnabledTemplateTypes []string `json:"enabledTemplateTypes,omitempty"` +} + +// GovernanceNotificationTemplate undocumented +type GovernanceNotificationTemplate struct { + // Object is the base model of GovernanceNotificationTemplate + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Source undocumented + Source *string `json:"source,omitempty"` + // Version undocumented + Version *string `json:"version,omitempty"` + // Culture undocumented + Culture *string `json:"culture,omitempty"` +} + +// GovernancePermission undocumented +type GovernancePermission struct { + // Object is the base model of GovernancePermission + Object + // AccessLevel undocumented + AccessLevel *string `json:"accessLevel,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` + // IsEligible undocumented + IsEligible *bool `json:"isEligible,omitempty"` +} + +// GovernancePolicy undocumented +type GovernancePolicy struct { + // Object is the base model of GovernancePolicy + Object + // DecisionMakerCriteria undocumented + DecisionMakerCriteria []GovernanceCriteria `json:"decisionMakerCriteria,omitempty"` + // NotificationPolicy undocumented + NotificationPolicy *GovernanceNotificationPolicy `json:"notificationPolicy,omitempty"` +} + +// GovernancePolicyTemplate undocumented +type GovernancePolicyTemplate struct { + // Entity is the base model of GovernancePolicyTemplate + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Policy undocumented + Policy *GovernancePolicy `json:"policy,omitempty"` + // Settings undocumented + Settings *BusinessFlowSettings `json:"settings,omitempty"` +} + +// GovernanceResource undocumented +type GovernanceResource struct { + // Entity is the base model of GovernanceResource + Entity + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // RegisteredDateTime undocumented + RegisteredDateTime *time.Time `json:"registeredDateTime,omitempty"` + // RegisteredRoot undocumented + RegisteredRoot *string `json:"registeredRoot,omitempty"` + // Parent undocumented + Parent *GovernanceResource `json:"parent,omitempty"` + // RoleDefinitions undocumented + RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"` + // RoleAssignments undocumented + RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"` + // RoleAssignmentRequests undocumented + RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"` + // RoleSettings undocumented + RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"` +} + +// GovernanceRoleAssignment undocumented +type GovernanceRoleAssignment struct { + // Entity is the base model of GovernanceRoleAssignment + Entity + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // RoleDefinitionID undocumented + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + // SubjectID undocumented + SubjectID *string `json:"subjectId,omitempty"` + // LinkedEligibleRoleAssignmentID undocumented + LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // MemberType undocumented + MemberType *string `json:"memberType,omitempty"` + // AssignmentState undocumented + AssignmentState *string `json:"assignmentState,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // Resource undocumented + Resource *GovernanceResource `json:"resource,omitempty"` + // RoleDefinition undocumented + RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"` + // Subject undocumented + Subject *GovernanceSubject `json:"subject,omitempty"` + // LinkedEligibleRoleAssignment undocumented + LinkedEligibleRoleAssignment *GovernanceRoleAssignment `json:"linkedEligibleRoleAssignment,omitempty"` +} + +// GovernanceRoleAssignmentRequestObject undocumented +type GovernanceRoleAssignmentRequestObject struct { + // Entity is the base model of GovernanceRoleAssignmentRequestObject + Entity + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // RoleDefinitionID undocumented + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + // SubjectID undocumented + SubjectID *string `json:"subjectId,omitempty"` + // LinkedEligibleRoleAssignmentID undocumented + LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // AssignmentState undocumented + AssignmentState *string `json:"assignmentState,omitempty"` + // RequestedDateTime undocumented + RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"` + // Reason undocumented + Reason *string `json:"reason,omitempty"` + // Status undocumented + Status *GovernanceRoleAssignmentRequestStatus `json:"status,omitempty"` + // Schedule undocumented + Schedule *GovernanceSchedule `json:"schedule,omitempty"` + // Resource undocumented + Resource *GovernanceResource `json:"resource,omitempty"` + // RoleDefinition undocumented + RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"` + // Subject undocumented + Subject *GovernanceSubject `json:"subject,omitempty"` +} + +// GovernanceRoleAssignmentRequestStatus undocumented +type GovernanceRoleAssignmentRequestStatus struct { + // Object is the base model of GovernanceRoleAssignmentRequestStatus + Object + // Status undocumented + Status *string `json:"status,omitempty"` + // SubStatus undocumented + SubStatus *string `json:"subStatus,omitempty"` + // StatusDetails undocumented + StatusDetails []KeyValue `json:"statusDetails,omitempty"` +} + +// GovernanceRoleDefinition undocumented +type GovernanceRoleDefinition struct { + // Entity is the base model of GovernanceRoleDefinition + Entity + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Resource undocumented + Resource *GovernanceResource `json:"resource,omitempty"` + // RoleSetting undocumented + RoleSetting *GovernanceRoleSetting `json:"roleSetting,omitempty"` +} + +// GovernanceRoleSetting undocumented +type GovernanceRoleSetting struct { + // Entity is the base model of GovernanceRoleSetting + Entity + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // RoleDefinitionID undocumented + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // LastUpdatedDateTime undocumented + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` + // LastUpdatedBy undocumented + LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"` + // AdminEligibleSettings undocumented + AdminEligibleSettings []GovernanceRuleSetting `json:"adminEligibleSettings,omitempty"` + // AdminMemberSettings undocumented + AdminMemberSettings []GovernanceRuleSetting `json:"adminMemberSettings,omitempty"` + // UserEligibleSettings undocumented + UserEligibleSettings []GovernanceRuleSetting `json:"userEligibleSettings,omitempty"` + // UserMemberSettings undocumented + UserMemberSettings []GovernanceRuleSetting `json:"userMemberSettings,omitempty"` + // RoleDefinition undocumented + RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"` + // Resource undocumented + Resource *GovernanceResource `json:"resource,omitempty"` +} + +// GovernanceRuleSetting undocumented +type GovernanceRuleSetting struct { + // Object is the base model of GovernanceRuleSetting + Object + // RuleIdentifier undocumented + RuleIdentifier *string `json:"ruleIdentifier,omitempty"` + // Setting undocumented + Setting *string `json:"setting,omitempty"` +} + +// GovernanceSchedule undocumented +type GovernanceSchedule struct { + // Object is the base model of GovernanceSchedule + Object + // Type undocumented + Type *string `json:"type,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // Duration undocumented + Duration *Duration `json:"duration,omitempty"` +} + +// GovernanceSubject undocumented +type GovernanceSubject struct { + // Entity is the base model of GovernanceSubject + Entity + // Type undocumented + Type *string `json:"type,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // PrincipalName undocumented + PrincipalName *string `json:"principalName,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go new file mode 100644 index 00000000..67de3a9d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go @@ -0,0 +1,555 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Group undocumented +type Group struct { + // DirectoryObject is the base model of Group + DirectoryObject + // AssignedLabels undocumented + AssignedLabels []AssignedLabel `json:"assignedLabels,omitempty"` + // AssignedLicenses undocumented + AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"` + // Classification undocumented + Classification *string `json:"classification,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GroupTypes undocumented + GroupTypes []string `json:"groupTypes,omitempty"` + // HasMembersWithLicenseErrors undocumented + HasMembersWithLicenseErrors *bool `json:"hasMembersWithLicenseErrors,omitempty"` + // IsAssignableToRole undocumented + IsAssignableToRole *bool `json:"isAssignableToRole,omitempty"` + // LicenseProcessingState undocumented + LicenseProcessingState *LicenseProcessingState `json:"licenseProcessingState,omitempty"` + // Mail undocumented + Mail *string `json:"mail,omitempty"` + // MailEnabled undocumented + MailEnabled *bool `json:"mailEnabled,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // MDMAppID undocumented + MDMAppID *string `json:"mdmAppId,omitempty"` + // MembershipRule undocumented + MembershipRule *string `json:"membershipRule,omitempty"` + // MembershipRuleProcessingState undocumented + MembershipRuleProcessingState *string `json:"membershipRuleProcessingState,omitempty"` + // OnPremisesDomainName undocumented + OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"` + // OnPremisesLastSyncDateTime undocumented + OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"` + // OnPremisesNetBiosName undocumented + OnPremisesNetBiosName *string `json:"onPremisesNetBiosName,omitempty"` + // OnPremisesProvisioningErrors undocumented + OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"` + // OnPremisesSamAccountName undocumented + OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"` + // OnPremisesSecurityIdentifier undocumented + OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"` + // OnPremisesSyncEnabled undocumented + OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"` + // PreferredDataLocation undocumented + PreferredDataLocation *string `json:"preferredDataLocation,omitempty"` + // PreferredLanguage undocumented + PreferredLanguage *string `json:"preferredLanguage,omitempty"` + // ProxyAddresses undocumented + ProxyAddresses []string `json:"proxyAddresses,omitempty"` + // RenewedDateTime undocumented + RenewedDateTime *time.Time `json:"renewedDateTime,omitempty"` + // ResourceBehaviorOptions undocumented + ResourceBehaviorOptions []string `json:"resourceBehaviorOptions,omitempty"` + // ResourceProvisioningOptions undocumented + ResourceProvisioningOptions []string `json:"resourceProvisioningOptions,omitempty"` + // SecurityEnabled undocumented + SecurityEnabled *bool `json:"securityEnabled,omitempty"` + // SecurityIdentifier undocumented + SecurityIdentifier *string `json:"securityIdentifier,omitempty"` + // Theme undocumented + Theme *string `json:"theme,omitempty"` + // Visibility undocumented + Visibility *string `json:"visibility,omitempty"` + // AccessType undocumented + AccessType *GroupAccessType `json:"accessType,omitempty"` + // AllowExternalSenders undocumented + AllowExternalSenders *bool `json:"allowExternalSenders,omitempty"` + // AutoSubscribeNewMembers undocumented + AutoSubscribeNewMembers *bool `json:"autoSubscribeNewMembers,omitempty"` + // IsFavorite undocumented + IsFavorite *bool `json:"isFavorite,omitempty"` + // IsSubscribedByMail undocumented + IsSubscribedByMail *bool `json:"isSubscribedByMail,omitempty"` + // UnseenCount undocumented + UnseenCount *int `json:"unseenCount,omitempty"` + // UnseenConversationsCount undocumented + UnseenConversationsCount *int `json:"unseenConversationsCount,omitempty"` + // UnseenMessagesCount undocumented + UnseenMessagesCount *int `json:"unseenMessagesCount,omitempty"` + // HideFromOutlookClients undocumented + HideFromOutlookClients *bool `json:"hideFromOutlookClients,omitempty"` + // HideFromAddressLists undocumented + HideFromAddressLists *bool `json:"hideFromAddressLists,omitempty"` + // IsArchived undocumented + IsArchived *bool `json:"isArchived,omitempty"` + // AppRoleAssignments undocumented + AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"` + // Members undocumented + Members []DirectoryObject `json:"members,omitempty"` + // MembersWithLicenseErrors undocumented + MembersWithLicenseErrors []DirectoryObject `json:"membersWithLicenseErrors,omitempty"` + // MemberOf undocumented + MemberOf []DirectoryObject `json:"memberOf,omitempty"` + // TransitiveMembers undocumented + TransitiveMembers []DirectoryObject `json:"transitiveMembers,omitempty"` + // TransitiveMemberOf undocumented + TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"` + // CreatedOnBehalfOf undocumented + CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"` + // Owners undocumented + Owners []DirectoryObject `json:"owners,omitempty"` + // Settings undocumented + Settings []DirectorySetting `json:"settings,omitempty"` + // Endpoints undocumented + Endpoints []Endpoint `json:"endpoints,omitempty"` + // PermissionGrants undocumented + PermissionGrants []ResourceSpecificPermissionGrant `json:"permissionGrants,omitempty"` + // Conversations undocumented + Conversations []Conversation `json:"conversations,omitempty"` + // Photos undocumented + Photos []ProfilePhoto `json:"photos,omitempty"` + // AcceptedSenders undocumented + AcceptedSenders []DirectoryObject `json:"acceptedSenders,omitempty"` + // RejectedSenders undocumented + RejectedSenders []DirectoryObject `json:"rejectedSenders,omitempty"` + // Threads undocumented + Threads []ConversationThread `json:"threads,omitempty"` + // Calendar undocumented + Calendar *Calendar `json:"calendar,omitempty"` + // CalendarView undocumented + CalendarView []Event `json:"calendarView,omitempty"` + // Events undocumented + Events []Event `json:"events,omitempty"` + // Photo undocumented + Photo *ProfilePhoto `json:"photo,omitempty"` + // Drive undocumented + Drive *Drive `json:"drive,omitempty"` + // Drives undocumented + Drives []Drive `json:"drives,omitempty"` + // Sites undocumented + Sites []Site `json:"sites,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` + // GroupLifecyclePolicies undocumented + GroupLifecyclePolicies []GroupLifecyclePolicy `json:"groupLifecyclePolicies,omitempty"` + // Planner undocumented + Planner *PlannerGroup `json:"planner,omitempty"` + // Onenote undocumented + Onenote *Onenote `json:"onenote,omitempty"` + // Team undocumented + Team *Team `json:"team,omitempty"` +} + +// GroupAssignmentTarget undocumented +type GroupAssignmentTarget struct { + // DeviceAndAppManagementAssignmentTarget is the base model of GroupAssignmentTarget + DeviceAndAppManagementAssignmentTarget + // GroupID The group Id that is the target of the assignment. + GroupID *string `json:"groupId,omitempty"` +} + +// GroupLifecyclePolicy undocumented +type GroupLifecyclePolicy struct { + // Entity is the base model of GroupLifecyclePolicy + Entity + // GroupLifetimeInDays undocumented + GroupLifetimeInDays *int `json:"groupLifetimeInDays,omitempty"` + // ManagedGroupTypes undocumented + ManagedGroupTypes *string `json:"managedGroupTypes,omitempty"` + // AlternateNotificationEmails undocumented + AlternateNotificationEmails *string `json:"alternateNotificationEmails,omitempty"` +} + +// GroupMembershipGovernanceCriteria undocumented +type GroupMembershipGovernanceCriteria struct { + // GovernanceCriteria is the base model of GroupMembershipGovernanceCriteria + GovernanceCriteria + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` +} + +// GroupPolicyConfiguration The group policy configuration entity contains the configured values for one or more group policy definitions. +type GroupPolicyConfiguration struct { + // Entity is the base model of GroupPolicyConfiguration + Entity + // CreatedDateTime The date and time the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DisplayName User provided name for the resource object. + DisplayName *string `json:"displayName,omitempty"` + // Description User provided description for the resource object. + Description *string `json:"description,omitempty"` + // RoleScopeTagIDs The list of scope tags for the configuration. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DefinitionValues undocumented + DefinitionValues []GroupPolicyDefinitionValue `json:"definitionValues,omitempty"` + // Assignments undocumented + Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"` +} + +// GroupPolicyConfigurationAssignment The group policy configuration assignment entity assigns one or more AAD groups to a specific group policy configuration. +type GroupPolicyConfigurationAssignment struct { + // Entity is the base model of GroupPolicyConfigurationAssignment + Entity + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Target The type of groups targeted the group policy configuration. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// GroupPolicyDefinition The entity describes all of the information about a single group policy. +type GroupPolicyDefinition struct { + // Entity is the base model of GroupPolicyDefinition + Entity + // ClassType Identifies the type of groups the policy can be applied to. + ClassType *GroupPolicyDefinitionClassType `json:"classType,omitempty"` + // DisplayName The localized policy name. + DisplayName *string `json:"displayName,omitempty"` + // ExplainText The localized explanation or help text associated with the policy. The default value is empty. + ExplainText *string `json:"explainText,omitempty"` + // CategoryPath The localized full category path for the policy. + CategoryPath *string `json:"categoryPath,omitempty"` + // SupportedOn Localized string used to specify what operating system or application version is affected by the policy. + SupportedOn *string `json:"supportedOn,omitempty"` + // PolicyType Specifies the type of group policy. + PolicyType *GroupPolicyType `json:"policyType,omitempty"` + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DefinitionFile undocumented + DefinitionFile *GroupPolicyDefinitionFile `json:"definitionFile,omitempty"` + // Presentations undocumented + Presentations []GroupPolicyPresentation `json:"presentations,omitempty"` +} + +// GroupPolicyDefinitionFile The entity represents an ADMX (Administrative Template) XML file. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files. +type GroupPolicyDefinitionFile struct { + // Entity is the base model of GroupPolicyDefinitionFile + Entity + // DisplayName The localized friendly name of the ADMX file. + DisplayName *string `json:"displayName,omitempty"` + // Description The localized description of the policy settings in the ADMX file. The default value is empty. + Description *string `json:"description,omitempty"` + // LanguageCodes The supported language codes for the ADMX file. + LanguageCodes []string `json:"languageCodes,omitempty"` + // TargetPrefix Specifies the logical name that refers to the namespace within the ADMX file. + TargetPrefix *string `json:"targetPrefix,omitempty"` + // TargetNamespace Specifies the URI used to identify the namespace within the ADMX file. + TargetNamespace *string `json:"targetNamespace,omitempty"` + // PolicyType Specifies the type of group policy. + PolicyType *GroupPolicyType `json:"policyType,omitempty"` + // Revision The revision version associated with the file. + Revision *string `json:"revision,omitempty"` + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Definitions undocumented + Definitions []GroupPolicyDefinition `json:"definitions,omitempty"` +} + +// GroupPolicyDefinitionValue The definition value entity stores the value for a single group policy definition. +type GroupPolicyDefinitionValue struct { + // Entity is the base model of GroupPolicyDefinitionValue + Entity + // CreatedDateTime The date and time the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Enabled Enables or disables the associated group policy definition. + Enabled *bool `json:"enabled,omitempty"` + // ConfigurationType Specifies how the value should be configured. This can be either as a Policy or as a Preference. + ConfigurationType *GroupPolicyConfigurationType `json:"configurationType,omitempty"` + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PresentationValues undocumented + PresentationValues []GroupPolicyPresentationValue `json:"presentationValues,omitempty"` + // Definition undocumented + Definition *GroupPolicyDefinition `json:"definition,omitempty"` +} + +// GroupPolicyMigrationReport The Group Policy migration report. +type GroupPolicyMigrationReport struct { + // Entity is the base model of GroupPolicyMigrationReport + Entity + // GroupPolicyObjectID The Group Policy Object GUID from GPO Xml content + GroupPolicyObjectID *UUID `json:"groupPolicyObjectId,omitempty"` + // DisplayName The name of Group Policy Object from the GPO Xml Content + DisplayName *string `json:"displayName,omitempty"` + // OuDistinguishedName The distinguished name of the OU. + OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"` + // CreatedDateTime The date and time at which the GroupPolicyMigrationReport was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // GroupPolicyCreatedDateTime The date and time at which the GroupPolicyMigrationReport was created. + GroupPolicyCreatedDateTime *time.Time `json:"groupPolicyCreatedDateTime,omitempty"` + // GroupPolicyLastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified. + GroupPolicyLastModifiedDateTime *time.Time `json:"groupPolicyLastModifiedDateTime,omitempty"` + // MigrationReadiness The Intune coverage for the associated Group Policy Object file. + MigrationReadiness *GroupPolicyMigrationReadiness `json:"migrationReadiness,omitempty"` + // TargetedInActiveDirectory The Targeted in AD property from GPO Xml Content + TargetedInActiveDirectory *bool `json:"targetedInActiveDirectory,omitempty"` + // TotalSettingsCount The total number of Group Policy Settings from GPO file. + TotalSettingsCount *int `json:"totalSettingsCount,omitempty"` + // SupportedSettingsCount The number of Group Policy Settings supported by Intune. + SupportedSettingsCount *int `json:"supportedSettingsCount,omitempty"` + // SupportedSettingsPercent The Percentage of Group Policy Settings supported by Intune. + SupportedSettingsPercent *int `json:"supportedSettingsPercent,omitempty"` + // GroupPolicySettingMappings undocumented + GroupPolicySettingMappings []GroupPolicySettingMapping `json:"groupPolicySettingMappings,omitempty"` +} + +// GroupPolicyObjectFile undocumented +type GroupPolicyObjectFile struct { + // Object is the base model of GroupPolicyObjectFile + Object + // OuDistinguishedName The distinguished name of the OU. + OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"` + // Content The Group Policy Object file content. + Content *string `json:"content,omitempty"` +} + +// GroupPolicyPresentation The base entity for the display presentation of any of the additional options in a group policy definition. +type GroupPolicyPresentation struct { + // Entity is the base model of GroupPolicyPresentation + Entity + // Label Localized text label for any presentation entity. The default value is empty. + Label *string `json:"label,omitempty"` + // LastModifiedDateTime The date and time the entity was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Definition undocumented + Definition *GroupPolicyDefinition `json:"definition,omitempty"` +} + +// GroupPolicyPresentationCheckBox Represents an ADMX checkBox element and an ADMX boolean element. +type GroupPolicyPresentationCheckBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationCheckBox + GroupPolicyPresentation + // DefaultChecked Default value for the check box. The default value is false. + DefaultChecked *bool `json:"defaultChecked,omitempty"` +} + +// GroupPolicyPresentationComboBox Represents an ADMX comboBox element and an ADMX text element. +type GroupPolicyPresentationComboBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationComboBox + GroupPolicyPresentation + // DefaultValue Localized default string displayed in the combo box. The default value is empty. + DefaultValue *string `json:"defaultValue,omitempty"` + // Suggestions Localized strings listed in the drop-down list of the combo box. The default value is empty. + Suggestions []string `json:"suggestions,omitempty"` + // Required Specifies whether a value must be specified for the parameter. The default value is false. + Required *bool `json:"required,omitempty"` + // MaxLength An unsigned integer that specifies the maximum number of text characters for the parameter. The default value is 1023. + MaxLength *int `json:"maxLength,omitempty"` +} + +// GroupPolicyPresentationDecimalTextBox Represents an ADMX decimalTextBox element and an ADMX decimal element. +type GroupPolicyPresentationDecimalTextBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationDecimalTextBox + GroupPolicyPresentation + // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1. + DefaultValue *int `json:"defaultValue,omitempty"` + // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true. + Spin *bool `json:"spin,omitempty"` + // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1. + SpinStep *int `json:"spinStep,omitempty"` + // Required Requirement to enter a value in the parameter box. The default value is false. + Required *bool `json:"required,omitempty"` + // MinValue An unsigned integer that specifies the minimum allowed value. The default value is 0. + MinValue *int `json:"minValue,omitempty"` + // MaxValue An unsigned integer that specifies the maximum allowed value. The default value is 9999. + MaxValue *int `json:"maxValue,omitempty"` +} + +// GroupPolicyPresentationDropdownList Represents an ADMX dropdownList element and an ADMX enum element. +type GroupPolicyPresentationDropdownList struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationDropdownList + GroupPolicyPresentation + // DefaultItem Localized string value identifying the default choice of the list of items. + DefaultItem *GroupPolicyPresentationDropdownListItem `json:"defaultItem,omitempty"` + // Items Represents a set of localized display names and their associated values. + Items []GroupPolicyPresentationDropdownListItem `json:"items,omitempty"` + // Required Requirement to enter a value in the parameter box. The default value is false. + Required *bool `json:"required,omitempty"` +} + +// GroupPolicyPresentationDropdownListItem undocumented +type GroupPolicyPresentationDropdownListItem struct { + // Object is the base model of GroupPolicyPresentationDropdownListItem + Object + // DisplayName Localized display name for the drop-down list item. + DisplayName *string `json:"displayName,omitempty"` + // Value Associated value for the drop-down list item + Value *string `json:"value,omitempty"` +} + +// GroupPolicyPresentationListBox Represents an ADMX listBox element and an ADMX list element. +type GroupPolicyPresentationListBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationListBox + GroupPolicyPresentation + // ExplicitValue If this option is specified true the user must specify the registry subkey value and the registry subkey name. The list box shows two columns, one for the name and one for the data. The default value is false. + ExplicitValue *bool `json:"explicitValue,omitempty"` + // ValuePrefix undocumented + ValuePrefix *string `json:"valuePrefix,omitempty"` +} + +// GroupPolicyPresentationLongDecimalTextBox Represents an ADMX longDecimalTextBox element and an ADMX longDecimal element. +type GroupPolicyPresentationLongDecimalTextBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationLongDecimalTextBox + GroupPolicyPresentation + // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1. + DefaultValue *int `json:"defaultValue,omitempty"` + // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true. + Spin *bool `json:"spin,omitempty"` + // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1. + SpinStep *int `json:"spinStep,omitempty"` + // Required Requirement to enter a value in the parameter box. The default value is false. + Required *bool `json:"required,omitempty"` + // MinValue An unsigned long that specifies the minimum allowed value. The default value is 0. + MinValue *int `json:"minValue,omitempty"` + // MaxValue An unsigned long that specifies the maximum allowed value. The default value is 9999. + MaxValue *int `json:"maxValue,omitempty"` +} + +// GroupPolicyPresentationMultiTextBox Represents an ADMX multiTextBox element and an ADMX multiText element. +type GroupPolicyPresentationMultiTextBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationMultiTextBox + GroupPolicyPresentation + // Required Requirement to enter a value in the text box. Default value is false. + Required *bool `json:"required,omitempty"` + // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023. + MaxLength *int `json:"maxLength,omitempty"` + // MaxStrings An unsigned integer that specifies the maximum number of strings. Default value is 0. + MaxStrings *int `json:"maxStrings,omitempty"` +} + +// GroupPolicyPresentationText Represents an ADMX text element. +type GroupPolicyPresentationText struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationText + GroupPolicyPresentation +} + +// GroupPolicyPresentationTextBox Represents an ADMX textBox element and an ADMX text element. +type GroupPolicyPresentationTextBox struct { + // GroupPolicyPresentation is the base model of GroupPolicyPresentationTextBox + GroupPolicyPresentation + // DefaultValue Localized default string displayed in the text box. The default value is empty. + DefaultValue *string `json:"defaultValue,omitempty"` + // Required Requirement to enter a value in the text box. Default value is false. + Required *bool `json:"required,omitempty"` + // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023. + MaxLength *int `json:"maxLength,omitempty"` +} + +// GroupPolicyPresentationValue The base presentation value entity that stores the value for a single group policy presentation. +type GroupPolicyPresentationValue struct { + // Entity is the base model of GroupPolicyPresentationValue + Entity + // LastModifiedDateTime The date and time the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // CreatedDateTime The date and time the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DefinitionValue undocumented + DefinitionValue *GroupPolicyDefinitionValue `json:"definitionValue,omitempty"` + // Presentation undocumented + Presentation *GroupPolicyPresentation `json:"presentation,omitempty"` +} + +// GroupPolicyPresentationValueBoolean The entity represents a Boolean value of a checkbox presentation on a policy definition. +type GroupPolicyPresentationValueBoolean struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueBoolean + GroupPolicyPresentationValue + // Value An boolean value for the associated presentation. + Value *bool `json:"value,omitempty"` +} + +// GroupPolicyPresentationValueDecimal The entity represents an unsigned integer value of a decimal text box presentation on a policy definition. +type GroupPolicyPresentationValueDecimal struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueDecimal + GroupPolicyPresentationValue + // Value An unsigned integer value for the associated presentation. + Value *int `json:"value,omitempty"` +} + +// GroupPolicyPresentationValueList The entity represents a collection of name/value pairs of a list box presentation on a policy definition. +type GroupPolicyPresentationValueList struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueList + GroupPolicyPresentationValue + // Values A list of pairs for the associated presentation. + Values []KeyValuePair `json:"values,omitempty"` +} + +// GroupPolicyPresentationValueLongDecimal The entity represents an unsigned long value of a long decimal text box presentation on a policy definition. +type GroupPolicyPresentationValueLongDecimal struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueLongDecimal + GroupPolicyPresentationValue + // Value An unsigned long value for the associated presentation. + Value *int `json:"value,omitempty"` +} + +// GroupPolicyPresentationValueMultiText The entity represents a string value of a multi-line text box presentation on a policy definition. +type GroupPolicyPresentationValueMultiText struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueMultiText + GroupPolicyPresentationValue + // Values A collection of non-empty strings for the associated presentation. + Values []string `json:"values,omitempty"` +} + +// GroupPolicyPresentationValueText The entity represents a string value for a drop-down list, combo box, or text box presentation on a policy definition. +type GroupPolicyPresentationValueText struct { + // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueText + GroupPolicyPresentationValue + // Value A string value for the associated presentation. + Value *string `json:"value,omitempty"` +} + +// GroupPolicySettingMapping The Group Policy setting to MDM/Intune mapping. +type GroupPolicySettingMapping struct { + // Entity is the base model of GroupPolicySettingMapping + Entity + // ParentID Parent Id of the group policy setting. + ParentID *string `json:"parentId,omitempty"` + // ChildIDList List of Child Ids of the group policy setting. + ChildIDList []string `json:"childIdList,omitempty"` + // SettingName The name of this group policy setting. + SettingName *string `json:"settingName,omitempty"` + // SettingValue The value of this group policy setting. + SettingValue *string `json:"settingValue,omitempty"` + // SettingValueType The value type of this group policy setting. + SettingValueType *string `json:"settingValueType,omitempty"` + // SettingDisplayName The display name of this group policy setting. + SettingDisplayName *string `json:"settingDisplayName,omitempty"` + // SettingDisplayValue The display value of this group policy setting. + SettingDisplayValue *string `json:"settingDisplayValue,omitempty"` + // SettingDisplayValueType The display value type of this group policy setting. + SettingDisplayValueType *string `json:"settingDisplayValueType,omitempty"` + // SettingValueDisplayUnits The display units of this group policy setting value + SettingValueDisplayUnits *string `json:"settingValueDisplayUnits,omitempty"` + // SettingCategory The category the group policy setting is in. + SettingCategory *string `json:"settingCategory,omitempty"` + // MDMCspName The CSP name this group policy setting maps to. + MDMCspName *string `json:"mdmCspName,omitempty"` + // MDMSettingURI The MDM CSP URI this group policy setting maps to. + MDMSettingURI *string `json:"mdmSettingUri,omitempty"` + // MDMMinimumOSVersion The minimum OS version this mdm setting supports. + MDMMinimumOSVersion *int `json:"mdmMinimumOSVersion,omitempty"` + // SettingType The setting type (security or admx) of the Group Policy. + SettingType *GroupPolicySettingType `json:"settingType,omitempty"` + // IsMDMSupported Indicates if the setting is supported by Intune or not + IsMDMSupported *bool `json:"isMdmSupported,omitempty"` + // SettingScope The scope of the setting + SettingScope *GroupPolicySettingScope `json:"settingScope,omitempty"` + // IntuneSettingURIList The list of Intune Setting URIs this group policy setting maps to + IntuneSettingURIList []string `json:"intuneSettingUriList,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go new file mode 100644 index 00000000..96db6e6a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// HardwareInformation undocumented +type HardwareInformation struct { + // Object is the base model of HardwareInformation + Object + // SerialNumber Serial number. + SerialNumber *string `json:"serialNumber,omitempty"` + // TotalStorageSpace Total storage space of the device. + TotalStorageSpace *int `json:"totalStorageSpace,omitempty"` + // FreeStorageSpace Free storage space of the device. + FreeStorageSpace *int `json:"freeStorageSpace,omitempty"` + // Imei IMEI + Imei *string `json:"imei,omitempty"` + // Meid MEID + Meid *string `json:"meid,omitempty"` + // Manufacturer Manufacturer of the device + Manufacturer *string `json:"manufacturer,omitempty"` + // Model Model of the device + Model *string `json:"model,omitempty"` + // PhoneNumber Phone number of the device + PhoneNumber *string `json:"phoneNumber,omitempty"` + // SubscriberCarrier Subscriber carrier of the device + SubscriberCarrier *string `json:"subscriberCarrier,omitempty"` + // CellularTechnology Cellular technology of the device + CellularTechnology *string `json:"cellularTechnology,omitempty"` + // WiFiMac WiFi MAC address of the device + WiFiMac *string `json:"wifiMac,omitempty"` + // OperatingSystemLanguage Operating system language of the device + OperatingSystemLanguage *string `json:"operatingSystemLanguage,omitempty"` + // IsSupervised Supervised mode of the device + IsSupervised *bool `json:"isSupervised,omitempty"` + // IsEncrypted Encryption status of the device + IsEncrypted *bool `json:"isEncrypted,omitempty"` + // IsSharedDevice Shared iPad + IsSharedDevice *bool `json:"isSharedDevice,omitempty"` + // SharedDeviceCachedUsers All users on the shared Apple device + SharedDeviceCachedUsers []SharedAppleDeviceUser `json:"sharedDeviceCachedUsers,omitempty"` + // TpmSpecificationVersion String that specifies the specification version. + TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"` + // OperatingSystemEdition String that specifies the OS edition. + OperatingSystemEdition *string `json:"operatingSystemEdition,omitempty"` + // DeviceFullQualifiedDomainName Returns the fully qualified domain name of the device (if any). If the device is not domain-joined, it returns an empty string. + DeviceFullQualifiedDomainName *string `json:"deviceFullQualifiedDomainName,omitempty"` + // DeviceGuardVirtualizationBasedSecurityHardwareRequirementState Virtualization-based security hardware requirement status. + DeviceGuardVirtualizationBasedSecurityHardwareRequirementState *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState `json:"deviceGuardVirtualizationBasedSecurityHardwareRequirementState,omitempty"` + // DeviceGuardVirtualizationBasedSecurityState Virtualization-based security status. + DeviceGuardVirtualizationBasedSecurityState *DeviceGuardVirtualizationBasedSecurityState `json:"deviceGuardVirtualizationBasedSecurityState,omitempty"` + // DeviceGuardLocalSystemAuthorityCredentialGuardState Local System Authority (LSA) credential guard status. + DeviceGuardLocalSystemAuthorityCredentialGuardState *DeviceGuardLocalSystemAuthorityCredentialGuardState `json:"deviceGuardLocalSystemAuthorityCredentialGuardState,omitempty"` + // OsBuildNumber Operating System Build Number on Android device + OsBuildNumber *string `json:"osBuildNumber,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/HasPayloadLinkResultItemModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/HashesModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go new file mode 100644 index 00000000..74c5e610 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// HostSecurityProfile undocumented +type HostSecurityProfile struct { + // Entity is the base model of HostSecurityProfile + Entity + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // FirstSeenDateTime undocumented + FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"` + // Fqdn undocumented + Fqdn *string `json:"fqdn,omitempty"` + // IsAzureAdJoined undocumented + IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"` + // IsAzureAdRegistered undocumented + IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"` + // IsHybridAzureDomainJoined undocumented + IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"` + // LastSeenDateTime undocumented + LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"` + // LogonUsers undocumented + LogonUsers []LogonUser `json:"logonUsers,omitempty"` + // NetBiosName undocumented + NetBiosName *string `json:"netBiosName,omitempty"` + // NetworkInterfaces undocumented + NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"` + // Os undocumented + Os *string `json:"os,omitempty"` + // OsVersion undocumented + OsVersion *string `json:"osVersion,omitempty"` + // ParentHost undocumented + ParentHost *string `json:"parentHost,omitempty"` + // RelatedHostIDs undocumented + RelatedHostIDs []string `json:"relatedHostIds,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// HostSecurityState undocumented +type HostSecurityState struct { + // Object is the base model of HostSecurityState + Object + // Fqdn undocumented + Fqdn *string `json:"fqdn,omitempty"` + // IsAzureAdJoined undocumented + IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"` + // IsAzureAdRegistered undocumented + IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"` + // IsHybridAzureDomainJoined undocumented + IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"` + // NetBiosName undocumented + NetBiosName *string `json:"netBiosName,omitempty"` + // Os undocumented + Os *string `json:"os,omitempty"` + // PrivateIPAddress undocumented + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + // PublicIPAddress undocumented + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HourlyScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/HourlyScheduleModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go new file mode 100644 index 00000000..6f2f59c9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go @@ -0,0 +1,1227 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// IOSBookmark undocumented +type IOSBookmark struct { + // Object is the base model of IOSBookmark + Object + // URL URL allowed to access + URL *string `json:"url,omitempty"` + // BookmarkFolder The folder into which the bookmark should be added in Safari + BookmarkFolder *string `json:"bookmarkFolder,omitempty"` + // DisplayName The display name of the bookmark + DisplayName *string `json:"displayName,omitempty"` +} + +// IOSCertificateProfile Device Configuration. +type IOSCertificateProfile struct { + // DeviceConfiguration is the base model of IOSCertificateProfile + DeviceConfiguration +} + +// IOSCertificateProfileBase iOS certificate profile base. +type IOSCertificateProfileBase struct { + // IOSCertificateProfile is the base model of IOSCertificateProfileBase + IOSCertificateProfile + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` +} + +// IOSCompliancePolicy This class contains compliance settings for IOS. +type IOSCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of IOSCompliancePolicy + DeviceCompliancePolicy + // PasscodeBlockSimple Indicates whether or not to block simple passcodes. + PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"` + // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535 + PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"` + // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14 + PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"` + // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required. + PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"` + // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24 + PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"` + // PasscodeMinimumCharacterSetCount The number of character sets required in the password. + PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"` + // PasscodeRequiredType The required passcode type. + PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"` + // PasscodeRequired Indicates whether or not to require a passcode. + PasscodeRequired *bool `json:"passcodeRequired,omitempty"` + // OsMinimumVersion Minimum IOS version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum IOS version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // OsMinimumBuildVersion Minimum IOS build version. + OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"` + // OsMaximumBuildVersion Maximum IOS build version. + OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"` + // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted. + SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection . + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // ManagedEmailProfileRequired Indicates whether or not to require a managed email profile. + ManagedEmailProfileRequired *bool `json:"managedEmailProfileRequired,omitempty"` + // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements. + RestrictedApps []AppListItem `json:"restrictedApps,omitempty"` +} + +// IOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosCustomConfiguration resource. +type IOSCustomConfiguration struct { + // DeviceConfiguration is the base model of IOSCustomConfiguration + DeviceConfiguration + // PayloadName Name that is displayed to the user. + PayloadName *string `json:"payloadName,omitempty"` + // PayloadFileName Payload file name (*.mobileconfig | *.xml). + PayloadFileName *string `json:"payloadFileName,omitempty"` + // Payload Payload. (UTF8 encoded byte array) + Payload *Binary `json:"payload,omitempty"` +} + +// IOSDerivedCredentialAuthenticationConfiguration iOS Derived Credential profile. +type IOSDerivedCredentialAuthenticationConfiguration struct { + // DeviceConfiguration is the base model of IOSDerivedCredentialAuthenticationConfiguration + DeviceConfiguration + // DerivedCredentialSettings undocumented + DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"` +} + +// IOSDeviceFeaturesConfiguration iOS Device Features Configuration Profile. +type IOSDeviceFeaturesConfiguration struct { + // AppleDeviceFeaturesConfigurationBase is the base model of IOSDeviceFeaturesConfiguration + AppleDeviceFeaturesConfigurationBase + // AssetTagTemplate Asset tag information for the device, displayed on the login window and lock screen. + AssetTagTemplate *string `json:"assetTagTemplate,omitempty"` + // ContentFilterSettings Gets or sets iOS Web Content Filter settings, supervised mode only + ContentFilterSettings *IOSWebContentFilterBase `json:"contentFilterSettings,omitempty"` + // LockScreenFootnote A footnote displayed on the login window and lock screen. Available in iOS 9.3.1 and later. + LockScreenFootnote *string `json:"lockScreenFootnote,omitempty"` + // HomeScreenDockIcons A list of app and folders to appear on the Home Screen Dock. This collection can contain a maximum of 500 elements. + HomeScreenDockIcons []IOSHomeScreenItem `json:"homeScreenDockIcons,omitempty"` + // HomeScreenPages A list of pages on the Home Screen. This collection can contain a maximum of 500 elements. + HomeScreenPages []IOSHomeScreenPage `json:"homeScreenPages,omitempty"` + // NotificationSettings Notification settings for each bundle id. Applicable to devices in supervised mode only (iOS 9.3 and later). This collection can contain a maximum of 500 elements. + NotificationSettings []IOSNotificationSettings `json:"notificationSettings,omitempty"` + // SingleSignOnSettings The Kerberos login settings that enable apps on receiving devices to authenticate smoothly. + SingleSignOnSettings *IOSSingleSignOnSettings `json:"singleSignOnSettings,omitempty"` + // WallpaperDisplayLocation A wallpaper display location specifier. + WallpaperDisplayLocation *IOSWallpaperDisplayLocation `json:"wallpaperDisplayLocation,omitempty"` + // WallpaperImage A wallpaper image must be in either PNG or JPEG format. It requires a supervised device with iOS 8 or later version. + WallpaperImage *MimeContent `json:"wallpaperImage,omitempty"` + // SingleSignOnExtension Gets or sets a single sign-on extension profile. + SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` + // SingleSignOnExtensionPkinitCertificate undocumented + SingleSignOnExtensionPkinitCertificate *IOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"` +} + +// IOSDeviceType undocumented +type IOSDeviceType struct { + // Object is the base model of IOSDeviceType + Object + // IPad Whether the app should run on iPads. + IPad *bool `json:"iPad,omitempty"` + // IPhoneAndIPod Whether the app should run on iPhones and iPods. + IPhoneAndIPod *bool `json:"iPhoneAndIPod,omitempty"` +} + +// IOSEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on iOS devices to communicate with an Exchange server and get email, contacts, calendar, reminders, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. +type IOSEasEmailProfileConfiguration struct { + // EasEmailProfileConfigurationBase is the base model of IOSEasEmailProfileConfiguration + EasEmailProfileConfigurationBase + // AccountName Account name. + AccountName *string `json:"accountName,omitempty"` + // AuthenticationMethod Authentication method for this Email profile. + AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"` + // BlockMovingMessagesToOtherEmailAccounts Indicates whether or not to block moving messages to other email accounts. + BlockMovingMessagesToOtherEmailAccounts *bool `json:"blockMovingMessagesToOtherEmailAccounts,omitempty"` + // BlockSendingEmailFromThirdPartyApps Indicates whether or not to block sending email from third party apps. + BlockSendingEmailFromThirdPartyApps *bool `json:"blockSendingEmailFromThirdPartyApps,omitempty"` + // BlockSyncingRecentlyUsedEmailAddresses Indicates whether or not to block syncing recently used email addresses, for instance - when composing new email. + BlockSyncingRecentlyUsedEmailAddresses *bool `json:"blockSyncingRecentlyUsedEmailAddresses,omitempty"` + // DurationOfEmailToSync Duration of time email should be synced back to. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // EasServices Exchange data to sync. + EasServices *EasServices `json:"easServices,omitempty"` + // EasServicesUserOverrideEnabled Allow users to change sync settings. + EasServicesUserOverrideEnabled *bool `json:"easServicesUserOverrideEnabled,omitempty"` + // HostName Exchange location that (URL) that the native mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSmime Indicates whether or not to use S/MIME certificate. + RequireSmime *bool `json:"requireSmime,omitempty"` + // SmimeEnablePerMessageSwitch Indicates whether or not to allow unencrypted emails. + SmimeEnablePerMessageSwitch *bool `json:"smimeEnablePerMessageSwitch,omitempty"` + // SmimeEncryptByDefaultEnabled If set to true S/MIME encryption is enabled by default. + SmimeEncryptByDefaultEnabled *bool `json:"smimeEncryptByDefaultEnabled,omitempty"` + // SmimeSigningEnabled If set to true S/MIME signing is enabled for this account + SmimeSigningEnabled *bool `json:"smimeSigningEnabled,omitempty"` + // SmimeSigningUserOverrideEnabled If set to true, the user can toggle S/MIME signing on or off. + SmimeSigningUserOverrideEnabled *bool `json:"smimeSigningUserOverrideEnabled,omitempty"` + // SmimeEncryptByDefaultUserOverrideEnabled If set to true, the user can toggle the encryption by default setting. + SmimeEncryptByDefaultUserOverrideEnabled *bool `json:"smimeEncryptByDefaultUserOverrideEnabled,omitempty"` + // SmimeSigningCertificateUserOverrideEnabled If set to true, the user can select the signing identity. + SmimeSigningCertificateUserOverrideEnabled *bool `json:"smimeSigningCertificateUserOverrideEnabled,omitempty"` + // SmimeEncryptionCertificateUserOverrideEnabled If set to true the user can select the S/MIME encryption identity. + SmimeEncryptionCertificateUserOverrideEnabled *bool `json:"smimeEncryptionCertificateUserOverrideEnabled,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` + // UseOAuth Specifies whether the connection should use OAuth for authentication. + UseOAuth *bool `json:"useOAuth,omitempty"` + // SigningCertificateType Signing Certificate type for this Email profile. + SigningCertificateType *EmailCertificateType `json:"signingCertificateType,omitempty"` + // EncryptionCertificateType Encryption Certificate type for this Email profile. + EncryptionCertificateType *EmailCertificateType `json:"encryptionCertificateType,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"` + // SmimeSigningCertificate undocumented + SmimeSigningCertificate *IOSCertificateProfile `json:"smimeSigningCertificate,omitempty"` + // SmimeEncryptionCertificate undocumented + SmimeEncryptionCertificate *IOSCertificateProfile `json:"smimeEncryptionCertificate,omitempty"` + // DerivedCredentialSettings undocumented + DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"` +} + +// IOSEduCertificateSettings undocumented +type IOSEduCertificateSettings struct { + // Object is the base model of IOSEduCertificateSettings + Object + // TrustedRootCertificate Trusted Root Certificate. + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` + // CertificationAuthority PKCS Certification Authority. + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name. + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name. + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` +} + +// IOSEduDeviceConfiguration iOS Education device configuration +type IOSEduDeviceConfiguration struct { + // DeviceConfiguration is the base model of IOSEduDeviceConfiguration + DeviceConfiguration + // TeacherCertificateSettings The Trusted Root and PFX certificates for Teacher + TeacherCertificateSettings *IOSEduCertificateSettings `json:"teacherCertificateSettings,omitempty"` + // StudentCertificateSettings The Trusted Root and PFX certificates for Student + StudentCertificateSettings *IOSEduCertificateSettings `json:"studentCertificateSettings,omitempty"` + // DeviceCertificateSettings The Trusted Root and PFX certificates for Device + DeviceCertificateSettings *IOSEduCertificateSettings `json:"deviceCertificateSettings,omitempty"` +} + +// IOSEducationDeviceConfiguration iOS Education configuration profile +type IOSEducationDeviceConfiguration struct { + // DeviceConfiguration is the base model of IOSEducationDeviceConfiguration + DeviceConfiguration +} + +// IOSEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type IOSEnterpriseWiFiConfiguration struct { + // IOSWiFiConfiguration is the base model of IOSEnterpriseWiFiConfiguration + IOSWiFiConfiguration + // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *EapType `json:"eapType,omitempty"` + // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. + EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"` + // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users' devices when they connect to this Wi-Fi network. + TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"` + // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP - TTLS, EAP - FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // UsernameFormatString Username format string used to build the username to connect to wifi + UsernameFormatString *string `json:"usernameFormatString,omitempty"` + // PasswordFormatString Password format string used to build the password to connect to wifi + PasswordFormatString *string `json:"passwordFormatString,omitempty"` + // RootCertificatesForServerValidation undocumented + RootCertificatesForServerValidation []IOSTrustedRootCertificate `json:"rootCertificatesForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` + // DerivedCredentialSettings undocumented + DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"` +} + +// IOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosGeneralDeviceConfiguration resource. +type IOSGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of IOSGeneralDeviceConfiguration + DeviceConfiguration + // AccountBlockModification Indicates whether or not to allow account modification when the device is in supervised mode. + AccountBlockModification *bool `json:"accountBlockModification,omitempty"` + // ActivationLockAllowWhenSupervised Indicates whether or not to allow activation lock when the device is in the supervised mode. + ActivationLockAllowWhenSupervised *bool `json:"activationLockAllowWhenSupervised,omitempty"` + // AirDropBlocked Indicates whether or not to allow AirDrop when the device is in supervised mode. + AirDropBlocked *bool `json:"airDropBlocked,omitempty"` + // AirDropForceUnmanagedDropTarget Indicates whether or not to cause AirDrop to be considered an unmanaged drop target (iOS 9.0 and later). + AirDropForceUnmanagedDropTarget *bool `json:"airDropForceUnmanagedDropTarget,omitempty"` + // AirPlayForcePairingPasswordForOutgoingRequests Indicates whether or not to enforce all devices receiving AirPlay requests from this device to use a pairing password. + AirPlayForcePairingPasswordForOutgoingRequests *bool `json:"airPlayForcePairingPasswordForOutgoingRequests,omitempty"` + // AppleWatchBlockPairing Indicates whether or not to allow Apple Watch pairing when the device is in supervised mode (iOS 9.0 and later). + AppleWatchBlockPairing *bool `json:"appleWatchBlockPairing,omitempty"` + // AppleWatchForceWristDetection Indicates whether or not to force a paired Apple Watch to use Wrist Detection (iOS 8.2 and later). + AppleWatchForceWristDetection *bool `json:"appleWatchForceWristDetection,omitempty"` + // AppleNewsBlocked Indicates whether or not to block the user from using News when the device is in supervised mode (iOS 9.0 and later). + AppleNewsBlocked *bool `json:"appleNewsBlocked,omitempty"` + // AppsSingleAppModeList Gets or sets the list of iOS apps allowed to autonomously enter Single App Mode. Supervised only. iOS 7.0 and later. This collection can contain a maximum of 500 elements. + AppsSingleAppModeList []AppListItem `json:"appsSingleAppModeList,omitempty"` + // AppsVisibilityList List of apps in the visibility list (either visible/launchable apps list or hidden/unlaunchable apps list, controlled by AppsVisibilityListType) (iOS 9.3 and later). This collection can contain a maximum of 10000 elements. + AppsVisibilityList []AppListItem `json:"appsVisibilityList,omitempty"` + // AppsVisibilityListType Type of list that is in the AppsVisibilityList. + AppsVisibilityListType *AppListType `json:"appsVisibilityListType,omitempty"` + // AppStoreBlockAutomaticDownloads Indicates whether or not to block the automatic downloading of apps purchased on other devices when the device is in supervised mode (iOS 9.0 and later). + AppStoreBlockAutomaticDownloads *bool `json:"appStoreBlockAutomaticDownloads,omitempty"` + // AppStoreBlocked Indicates whether or not to block the user from using the App Store. Requires a supervised device for iOS 13 and later. + AppStoreBlocked *bool `json:"appStoreBlocked,omitempty"` + // AppStoreBlockInAppPurchases Indicates whether or not to block the user from making in app purchases. + AppStoreBlockInAppPurchases *bool `json:"appStoreBlockInAppPurchases,omitempty"` + // AppStoreBlockUIAppInstallation Indicates whether or not to block the App Store app, not restricting installation through Host apps. Applies to supervised mode only (iOS 9.0 and later). + AppStoreBlockUIAppInstallation *bool `json:"appStoreBlockUIAppInstallation,omitempty"` + // AppStoreRequirePassword Indicates whether or not to require a password when using the app store. + AppStoreRequirePassword *bool `json:"appStoreRequirePassword,omitempty"` + // AutoFillForceAuthentication Indicates whether or not to force user authentication before autofilling passwords and credit card information in Safari and other apps on supervised devices. + AutoFillForceAuthentication *bool `json:"autoFillForceAuthentication,omitempty"` + // BluetoothBlockModification Indicates whether or not to allow modification of Bluetooth settings when the device is in supervised mode (iOS 10.0 and later). + BluetoothBlockModification *bool `json:"bluetoothBlockModification,omitempty"` + // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device. Requires a supervised device for iOS 13 and later. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // CellularBlockDataRoaming Indicates whether or not to block data roaming. + CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"` + // CellularBlockGlobalBackgroundFetchWhileRoaming Indicates whether or not to block global background fetch while roaming. + CellularBlockGlobalBackgroundFetchWhileRoaming *bool `json:"cellularBlockGlobalBackgroundFetchWhileRoaming,omitempty"` + // CellularBlockPerAppDataModification Indicates whether or not to allow changes to cellular app data usage settings when the device is in supervised mode. + CellularBlockPerAppDataModification *bool `json:"cellularBlockPerAppDataModification,omitempty"` + // CellularBlockPersonalHotspot Indicates whether or not to block Personal Hotspot. + CellularBlockPersonalHotspot *bool `json:"cellularBlockPersonalHotspot,omitempty"` + // CellularBlockPlanModification Indicates whether or not to allow users to change the settings of the cellular plan on a supervised device. + CellularBlockPlanModification *bool `json:"cellularBlockPlanModification,omitempty"` + // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming. + CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"` + // CertificatesBlockUntrustedTLSCertificates Indicates whether or not to block untrusted TLS certificates. + CertificatesBlockUntrustedTLSCertificates *bool `json:"certificatesBlockUntrustedTlsCertificates,omitempty"` + // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app when the device is in supervised mode (iOS 9.3 and later). + ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"` + // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting when the device is in supervised mode. + ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"` + // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student, when the device is in supervised mode. + ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"` + // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Supervised only. + ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"` + // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements. + CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"` + // CompliantAppListType List that is in the AppComplianceList. + CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"` + // ConfigurationProfileBlockChanges Indicates whether or not to block the user from installing configuration profiles and certificates interactively when the device is in supervised mode. + ConfigurationProfileBlockChanges *bool `json:"configurationProfileBlockChanges,omitempty"` + // DefinitionLookupBlocked Indicates whether or not to block definition lookup when the device is in supervised mode (iOS 8.1.3 and later ). + DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"` + // DeviceBlockEnableRestrictions Indicates whether or not to allow the user to enables restrictions in the device settings when the device is in supervised mode. + DeviceBlockEnableRestrictions *bool `json:"deviceBlockEnableRestrictions,omitempty"` + // DeviceBlockEraseContentAndSettings Indicates whether or not to allow the use of the 'Erase all content and settings' option on the device when the device is in supervised mode. + DeviceBlockEraseContentAndSettings *bool `json:"deviceBlockEraseContentAndSettings,omitempty"` + // DeviceBlockNameModification Indicates whether or not to allow device name modification when the device is in supervised mode (iOS 9.0 and later). + DeviceBlockNameModification *bool `json:"deviceBlockNameModification,omitempty"` + // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission. + DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"` + // DiagnosticDataBlockSubmissionModification Indicates whether or not to allow diagnostics submission settings modification when the device is in supervised mode (iOS 9.3.2 and later). + DiagnosticDataBlockSubmissionModification *bool `json:"diagnosticDataBlockSubmissionModification,omitempty"` + // DocumentsBlockManagedDocumentsInUnmanagedApps Indicates whether or not to block the user from viewing managed documents in unmanaged apps. + DocumentsBlockManagedDocumentsInUnmanagedApps *bool `json:"documentsBlockManagedDocumentsInUnmanagedApps,omitempty"` + // DocumentsBlockUnmanagedDocumentsInManagedApps Indicates whether or not to block the user from viewing unmanaged documents in managed apps. + DocumentsBlockUnmanagedDocumentsInManagedApps *bool `json:"documentsBlockUnmanagedDocumentsInManagedApps,omitempty"` + // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain. + EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"` + // EnterpriseAppBlockTrust Indicates whether or not to block the user from trusting an enterprise app. + EnterpriseAppBlockTrust *bool `json:"enterpriseAppBlockTrust,omitempty"` + // EnterpriseAppBlockTrustModification Indicates whether or not to block the user from modifying the enterprise app trust settings. + EnterpriseAppBlockTrustModification *bool `json:"enterpriseAppBlockTrustModification,omitempty"` + // EsimBlockModification Indicates whether or not to allow the addition or removal of cellular plans on the eSIM of a supervised device. + EsimBlockModification *bool `json:"esimBlockModification,omitempty"` + // FaceTimeBlocked Indicates whether or not to block the user from using FaceTime. Requires a supervised device for iOS 13 and later. + FaceTimeBlocked *bool `json:"faceTimeBlocked,omitempty"` + // FindMyFriendsBlocked Indicates whether or not to block changes to Find My Friends when the device is in supervised mode. + FindMyFriendsBlocked *bool `json:"findMyFriendsBlocked,omitempty"` + // GamingBlockGameCenterFriends Indicates whether or not to block the user from having friends in Game Center. Requires a supervised device for iOS 13 and later. + GamingBlockGameCenterFriends *bool `json:"gamingBlockGameCenterFriends,omitempty"` + // GamingBlockMultiplayer Indicates whether or not to block the user from using multiplayer gaming. Requires a supervised device for iOS 13 and later. + GamingBlockMultiplayer *bool `json:"gamingBlockMultiplayer,omitempty"` + // GameCenterBlocked Indicates whether or not to block the user from using Game Center when the device is in supervised mode. + GameCenterBlocked *bool `json:"gameCenterBlocked,omitempty"` + // HostPairingBlocked indicates whether or not to allow host pairing to control the devices an iOS device can pair with when the iOS device is in supervised mode. + HostPairingBlocked *bool `json:"hostPairingBlocked,omitempty"` + // IBooksStoreBlocked Indicates whether or not to block the user from using the iBooks Store when the device is in supervised mode. + IBooksStoreBlocked *bool `json:"iBooksStoreBlocked,omitempty"` + // IBooksStoreBlockErotica Indicates whether or not to block the user from downloading media from the iBookstore that has been tagged as erotica. + IBooksStoreBlockErotica *bool `json:"iBooksStoreBlockErotica,omitempty"` + // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work they started on iOS device to another iOS or macOS device. + ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"` + // ICloudBlockBackup Indicates whether or not to block iCloud backup. Requires a supervised device for iOS 13 and later. + ICloudBlockBackup *bool `json:"iCloudBlockBackup,omitempty"` + // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync. Requires a supervised device for iOS 13 and later. + ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"` + // ICloudBlockManagedAppsSync Indicates whether or not to block Managed Apps Cloud Sync. + ICloudBlockManagedAppsSync *bool `json:"iCloudBlockManagedAppsSync,omitempty"` + // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library. + ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"` + // ICloudBlockPhotoStreamSync Indicates whether or not to block iCloud Photo Stream Sync. + ICloudBlockPhotoStreamSync *bool `json:"iCloudBlockPhotoStreamSync,omitempty"` + // ICloudBlockSharedPhotoStream Indicates whether or not to block Shared Photo Stream. + ICloudBlockSharedPhotoStream *bool `json:"iCloudBlockSharedPhotoStream,omitempty"` + // ICloudRequireEncryptedBackup Indicates whether or not to require backups to iCloud be encrypted. + ICloudRequireEncryptedBackup *bool `json:"iCloudRequireEncryptedBackup,omitempty"` + // ITunesBlockExplicitContent Indicates whether or not to block the user from accessing explicit content in iTunes and the App Store. Requires a supervised device for iOS 13 and later. + ITunesBlockExplicitContent *bool `json:"iTunesBlockExplicitContent,omitempty"` + // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode when the device is in supervised mode (iOS 9.3 and later and macOS 10.12 and later). + ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"` + // ITunesBlockRadio Indicates whether or not to block the user from using iTunes Radio when the device is in supervised mode (iOS 9.3 and later). + ITunesBlockRadio *bool `json:"iTunesBlockRadio,omitempty"` + // KeyboardBlockAutoCorrect Indicates whether or not to block keyboard auto-correction when the device is in supervised mode (iOS 8.1.3 and later). + KeyboardBlockAutoCorrect *bool `json:"keyboardBlockAutoCorrect,omitempty"` + // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input when the device is in supervised mode. + KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"` + // KeyboardBlockPredictive Indicates whether or not to block predictive keyboards when device is in supervised mode (iOS 8.1.3 and later). + KeyboardBlockPredictive *bool `json:"keyboardBlockPredictive,omitempty"` + // KeyboardBlockShortcuts Indicates whether or not to block keyboard shortcuts when the device is in supervised mode (iOS 9.0 and later). + KeyboardBlockShortcuts *bool `json:"keyboardBlockShortcuts,omitempty"` + // KeyboardBlockSpellCheck Indicates whether or not to block keyboard spell-checking when the device is in supervised mode (iOS 8.1.3 and later). + KeyboardBlockSpellCheck *bool `json:"keyboardBlockSpellCheck,omitempty"` + // KioskModeAllowAssistiveSpeak Indicates whether or not to allow assistive speak while in kiosk mode. + KioskModeAllowAssistiveSpeak *bool `json:"kioskModeAllowAssistiveSpeak,omitempty"` + // KioskModeAllowAssistiveTouchSettings Indicates whether or not to allow access to the Assistive Touch Settings while in kiosk mode. + KioskModeAllowAssistiveTouchSettings *bool `json:"kioskModeAllowAssistiveTouchSettings,omitempty"` + // KioskModeAllowAutoLock Indicates whether or not to allow device auto lock while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockAutoLock instead. + KioskModeAllowAutoLock *bool `json:"kioskModeAllowAutoLock,omitempty"` + // KioskModeBlockAutoLock Indicates whether or not to block device auto lock while in kiosk mode. + KioskModeBlockAutoLock *bool `json:"kioskModeBlockAutoLock,omitempty"` + // KioskModeAllowColorInversionSettings Indicates whether or not to allow access to the Color Inversion Settings while in kiosk mode. + KioskModeAllowColorInversionSettings *bool `json:"kioskModeAllowColorInversionSettings,omitempty"` + // KioskModeAllowRingerSwitch Indicates whether or not to allow use of the ringer switch while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockRingerSwitch instead. + KioskModeAllowRingerSwitch *bool `json:"kioskModeAllowRingerSwitch,omitempty"` + // KioskModeBlockRingerSwitch Indicates whether or not to block use of the ringer switch while in kiosk mode. + KioskModeBlockRingerSwitch *bool `json:"kioskModeBlockRingerSwitch,omitempty"` + // KioskModeAllowScreenRotation Indicates whether or not to allow screen rotation while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockScreenRotation instead. + KioskModeAllowScreenRotation *bool `json:"kioskModeAllowScreenRotation,omitempty"` + // KioskModeBlockScreenRotation Indicates whether or not to block screen rotation while in kiosk mode. + KioskModeBlockScreenRotation *bool `json:"kioskModeBlockScreenRotation,omitempty"` + // KioskModeAllowSleepButton Indicates whether or not to allow use of the sleep button while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockSleepButton instead. + KioskModeAllowSleepButton *bool `json:"kioskModeAllowSleepButton,omitempty"` + // KioskModeBlockSleepButton Indicates whether or not to block use of the sleep button while in kiosk mode. + KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"` + // KioskModeAllowTouchscreen Indicates whether or not to allow use of the touchscreen while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockTouchscreen instead. + KioskModeAllowTouchscreen *bool `json:"kioskModeAllowTouchscreen,omitempty"` + // KioskModeBlockTouchscreen Indicates whether or not to block use of the touchscreen while in kiosk mode. + KioskModeBlockTouchscreen *bool `json:"kioskModeBlockTouchscreen,omitempty"` + // KioskModeEnableVoiceControl Indicates whether or not to enable voice control in kiosk mode. + KioskModeEnableVoiceControl *bool `json:"kioskModeEnableVoiceControl,omitempty"` + // KioskModeAllowVoiceControlModification Indicates whether or not to allow the user to toggle voice control in kiosk mode. + KioskModeAllowVoiceControlModification *bool `json:"kioskModeAllowVoiceControlModification,omitempty"` + // KioskModeAllowVoiceOverSettings Indicates whether or not to allow access to the voice over settings while in kiosk mode. + KioskModeAllowVoiceOverSettings *bool `json:"kioskModeAllowVoiceOverSettings,omitempty"` + // KioskModeAllowVolumeButtons Indicates whether or not to allow use of the volume buttons while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockVolumeButtons instead. + KioskModeAllowVolumeButtons *bool `json:"kioskModeAllowVolumeButtons,omitempty"` + // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode. + KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"` + // KioskModeAllowZoomSettings Indicates whether or not to allow access to the zoom settings while in kiosk mode. + KioskModeAllowZoomSettings *bool `json:"kioskModeAllowZoomSettings,omitempty"` + // KioskModeAppStoreURL URL in the app store to the app to use for kiosk mode. Use if KioskModeManagedAppId is not known. + KioskModeAppStoreURL *string `json:"kioskModeAppStoreUrl,omitempty"` + // KioskModeBuiltInAppID ID for built-in apps to use for kiosk mode. Used when KioskModeManagedAppId and KioskModeAppStoreUrl are not set. + KioskModeBuiltInAppID *string `json:"kioskModeBuiltInAppId,omitempty"` + // KioskModeRequireAssistiveTouch Indicates whether or not to require assistive touch while in kiosk mode. + KioskModeRequireAssistiveTouch *bool `json:"kioskModeRequireAssistiveTouch,omitempty"` + // KioskModeRequireColorInversion Indicates whether or not to require color inversion while in kiosk mode. + KioskModeRequireColorInversion *bool `json:"kioskModeRequireColorInversion,omitempty"` + // KioskModeRequireMonoAudio Indicates whether or not to require mono audio while in kiosk mode. + KioskModeRequireMonoAudio *bool `json:"kioskModeRequireMonoAudio,omitempty"` + // KioskModeRequireVoiceOver Indicates whether or not to require voice over while in kiosk mode. + KioskModeRequireVoiceOver *bool `json:"kioskModeRequireVoiceOver,omitempty"` + // KioskModeRequireZoom Indicates whether or not to require zoom while in kiosk mode. + KioskModeRequireZoom *bool `json:"kioskModeRequireZoom,omitempty"` + // KioskModeManagedAppID Managed app id of the app to use for kiosk mode. If KioskModeManagedAppId is specified then KioskModeAppStoreUrl will be ignored. + KioskModeManagedAppID *string `json:"kioskModeManagedAppId,omitempty"` + // LockScreenBlockControlCenter Indicates whether or not to block the user from using control center on the lock screen. + LockScreenBlockControlCenter *bool `json:"lockScreenBlockControlCenter,omitempty"` + // LockScreenBlockNotificationView Indicates whether or not to block the user from using the notification view on the lock screen. + LockScreenBlockNotificationView *bool `json:"lockScreenBlockNotificationView,omitempty"` + // LockScreenBlockPassbook Indicates whether or not to block the user from using passbook when the device is locked. + LockScreenBlockPassbook *bool `json:"lockScreenBlockPassbook,omitempty"` + // LockScreenBlockTodayView Indicates whether or not to block the user from using the Today View on the lock screen. + LockScreenBlockTodayView *bool `json:"lockScreenBlockTodayView,omitempty"` + // MediaContentRatingAustralia Media content rating settings for Australia + MediaContentRatingAustralia *MediaContentRatingAustralia `json:"mediaContentRatingAustralia,omitempty"` + // MediaContentRatingCanada Media content rating settings for Canada + MediaContentRatingCanada *MediaContentRatingCanada `json:"mediaContentRatingCanada,omitempty"` + // MediaContentRatingFrance Media content rating settings for France + MediaContentRatingFrance *MediaContentRatingFrance `json:"mediaContentRatingFrance,omitempty"` + // MediaContentRatingGermany Media content rating settings for Germany + MediaContentRatingGermany *MediaContentRatingGermany `json:"mediaContentRatingGermany,omitempty"` + // MediaContentRatingIreland Media content rating settings for Ireland + MediaContentRatingIreland *MediaContentRatingIreland `json:"mediaContentRatingIreland,omitempty"` + // MediaContentRatingJapan Media content rating settings for Japan + MediaContentRatingJapan *MediaContentRatingJapan `json:"mediaContentRatingJapan,omitempty"` + // MediaContentRatingNewZealand Media content rating settings for New Zealand + MediaContentRatingNewZealand *MediaContentRatingNewZealand `json:"mediaContentRatingNewZealand,omitempty"` + // MediaContentRatingUnitedKingdom Media content rating settings for United Kingdom + MediaContentRatingUnitedKingdom *MediaContentRatingUnitedKingdom `json:"mediaContentRatingUnitedKingdom,omitempty"` + // MediaContentRatingUnitedStates Media content rating settings for United States + MediaContentRatingUnitedStates *MediaContentRatingUnitedStates `json:"mediaContentRatingUnitedStates,omitempty"` + // NetworkUsageRules List of managed apps and the network rules that applies to them. This collection can contain a maximum of 1000 elements. + NetworkUsageRules []IOSNetworkUsageRule `json:"networkUsageRules,omitempty"` + // MediaContentRatingApps Media content rating settings for Apps + MediaContentRatingApps *RatingAppsType `json:"mediaContentRatingApps,omitempty"` + // MessagesBlocked Indicates whether or not to block the user from using the Messages app on the supervised device. + MessagesBlocked *bool `json:"messagesBlocked,omitempty"` + // NotificationsBlockSettingsModification Indicates whether or not to allow notifications settings modification (iOS 9.3 and later). + NotificationsBlockSettingsModification *bool `json:"notificationsBlockSettingsModification,omitempty"` + // PasscodeBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock. + PasscodeBlockFingerprintUnlock *bool `json:"passcodeBlockFingerprintUnlock,omitempty"` + // PasscodeBlockFingerprintModification Block modification of registered Touch ID fingerprints when in supervised mode. + PasscodeBlockFingerprintModification *bool `json:"passcodeBlockFingerprintModification,omitempty"` + // PasscodeBlockModification Indicates whether or not to allow passcode modification on the supervised device (iOS 9.0 and later). + PasscodeBlockModification *bool `json:"passcodeBlockModification,omitempty"` + // PasscodeBlockSimple Indicates whether or not to block simple passcodes. + PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"` + // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535 + PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"` + // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14 + PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"` + // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required. + PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"` + // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out. + PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasscodeMinimumCharacterSetCount Number of character sets a passcode must contain. Valid values 0 to 4 + PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"` + // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24 + PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"` + // PasscodeSignInFailureCountBeforeWipe Number of sign in failures allowed before wiping the device. Valid values 4 to 11 + PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"` + // PasscodeRequiredType Type of passcode that is required. + PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"` + // PasscodeRequired Indicates whether or not to require a passcode. + PasscodeRequired *bool `json:"passcodeRequired,omitempty"` + // PodcastsBlocked Indicates whether or not to block the user from using podcasts on the supervised device (iOS 8.0 and later). + PodcastsBlocked *bool `json:"podcastsBlocked,omitempty"` + // ProximityBlockSetupToNewDevice Indicates whether or not to enable the prompt to setup nearby devices with a supervised device. + ProximityBlockSetupToNewDevice *bool `json:"proximityBlockSetupToNewDevice,omitempty"` + // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari. Requires a supervised device for iOS 13 and later. + SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"` + // SafariBlockJavaScript Indicates whether or not to block JavaScript in Safari. + SafariBlockJavaScript *bool `json:"safariBlockJavaScript,omitempty"` + // SafariBlockPopups Indicates whether or not to block popups in Safari. + SafariBlockPopups *bool `json:"safariBlockPopups,omitempty"` + // SafariBlocked Indicates whether or not to block the user from using Safari. Requires a supervised device for iOS 13 and later. + SafariBlocked *bool `json:"safariBlocked,omitempty"` + // SafariCookieSettings Cookie settings for Safari. + SafariCookieSettings *WebBrowserCookieSettings `json:"safariCookieSettings,omitempty"` + // SafariManagedDomains URLs matching the patterns listed here will be considered managed. + SafariManagedDomains []string `json:"safariManagedDomains,omitempty"` + // SafariPasswordAutoFillDomains Users can save passwords in Safari only from URLs matching the patterns listed here. Applies to devices in supervised mode (iOS 9.3 and later). + SafariPasswordAutoFillDomains []string `json:"safariPasswordAutoFillDomains,omitempty"` + // SafariRequireFraudWarning Indicates whether or not to require fraud warning in Safari. + SafariRequireFraudWarning *bool `json:"safariRequireFraudWarning,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // SiriBlocked Indicates whether or not to block the user from using Siri. + SiriBlocked *bool `json:"siriBlocked,omitempty"` + // SiriBlockedWhenLocked Indicates whether or not to block the user from using Siri when locked. + SiriBlockedWhenLocked *bool `json:"siriBlockedWhenLocked,omitempty"` + // SiriBlockUserGeneratedContent Indicates whether or not to block Siri from querying user-generated content when used on a supervised device. + SiriBlockUserGeneratedContent *bool `json:"siriBlockUserGeneratedContent,omitempty"` + // SiriRequireProfanityFilter Indicates whether or not to prevent Siri from dictating, or speaking profane language on supervised device. + SiriRequireProfanityFilter *bool `json:"siriRequireProfanityFilter,omitempty"` + // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90 + SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"` + // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode. + SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"` + // SpotlightBlockInternetResults Indicates whether or not to block Spotlight search from returning internet results on supervised device. + SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"` + // VoiceDialingBlocked Indicates whether or not to block voice dialing. + VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"` + // WallpaperBlockModification Indicates whether or not to allow wallpaper modification on supervised device (iOS 9.0 and later) . + WallpaperBlockModification *bool `json:"wallpaperBlockModification,omitempty"` + // WiFiConnectOnlyToConfiguredNetworks Indicates whether or not to force the device to use only Wi-Fi networks from configuration profiles when the device is in supervised mode. + WiFiConnectOnlyToConfiguredNetworks *bool `json:"wiFiConnectOnlyToConfiguredNetworks,omitempty"` + // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will request permission from the teacher when attempting to leave the course (iOS 11.3 and later). + ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"` + // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked. Requires a supervised device for iOS 13 and later. + KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"` + // PkiBlockOTAUpdates Indicates whether or not over-the-air PKI updates are blocked. Setting this restriction to false does not disable CRL and OCSP checks (iOS 7.0 and later). + PkiBlockOTAUpdates *bool `json:"pkiBlockOTAUpdates,omitempty"` + // PrivacyForceLimitAdTracking Indicates if ad tracking is limited.(iOS 7.0 and later). + PrivacyForceLimitAdTracking *bool `json:"privacyForceLimitAdTracking,omitempty"` + // EnterpriseBookBlockBackup Indicates whether or not Enterprise book back up is blocked. + EnterpriseBookBlockBackup *bool `json:"enterpriseBookBlockBackup,omitempty"` + // EnterpriseBookBlockMetadataSync Indicates whether or not Enterprise book notes and highlights sync is blocked. + EnterpriseBookBlockMetadataSync *bool `json:"enterpriseBookBlockMetadataSync,omitempty"` + // AirPrintBlocked Indicates whether or not AirPrint is blocked (iOS 11.0 and later). + AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"` + // AirPrintBlockCredentialsStorage Indicates whether or not keychain storage of username and password for Airprint is blocked (iOS 11.0 and later). + AirPrintBlockCredentialsStorage *bool `json:"airPrintBlockCredentialsStorage,omitempty"` + // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (iOS 11.0 and later). + AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"` + // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (iOS 11.0 and later). + AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"` + // FilesNetworkDriveAccessBlocked Indicates if devices can access files or other resources on a network server using the Server Message Block (SMB) protocol. Available for devices running iOS and iPadOS, versions 13.0 and later. + FilesNetworkDriveAccessBlocked *bool `json:"filesNetworkDriveAccessBlocked,omitempty"` + // FilesUsbDriveAccessBlocked Indicates if sevices with access can connect to and open files on a USB drive. Available for devices running iOS and iPadOS, versions 13.0 and later. + FilesUsbDriveAccessBlocked *bool `json:"filesUsbDriveAccessBlocked,omitempty"` + // WiFiPowerOnForced Indicates whether or not Wi-Fi remains on, even when device is in airplane mode. Available for devices running iOS and iPadOS, versions 13.0 and later. + WiFiPowerOnForced *bool `json:"wifiPowerOnForced,omitempty"` + // BlockSystemAppRemoval Indicates whether or not the removal of system apps from the device is blocked on a supervised device (iOS 11.0 and later). + BlockSystemAppRemoval *bool `json:"blockSystemAppRemoval,omitempty"` + // VPNBlockCreation Indicates whether or not the creation of VPN configurations is blocked (iOS 11.0 and later). + VPNBlockCreation *bool `json:"vpnBlockCreation,omitempty"` + // AppRemovalBlocked Indicates if the removal of apps is allowed. + AppRemovalBlocked *bool `json:"appRemovalBlocked,omitempty"` + // UsbRestrictedModeBlocked Indicates if connecting to USB accessories while the device is locked is allowed (iOS 11.4.1 and later). + UsbRestrictedModeBlocked *bool `json:"usbRestrictedModeBlocked,omitempty"` + // PasswordBlockAutoFill Indicates if the AutoFill passwords feature is allowed (iOS 12.0 and later). + PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"` + // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices (iOS 12.0 and later). + PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"` + // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature iOS 12.0 and later). + PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"` + // DateAndTimeForceSetAutomatically Indicates whether or not the Date and Time "Set Automatically" feature is enabled and cannot be turned off by the user (iOS 12.0 and later). + DateAndTimeForceSetAutomatically *bool `json:"dateAndTimeForceSetAutomatically,omitempty"` + // ContactsAllowManagedToUnmanagedWrite Indicates whether or not managed apps can write contacts to unmanaged contacts accounts (iOS 12.0 and later). + ContactsAllowManagedToUnmanagedWrite *bool `json:"contactsAllowManagedToUnmanagedWrite,omitempty"` + // ContactsAllowUnmanagedToManagedRead Indicates whether or not unmanaged apps can read from managed contacts accounts (iOS 12.0 or later). + ContactsAllowUnmanagedToManagedRead *bool `json:"contactsAllowUnmanagedToManagedRead,omitempty"` + // CellularBlockPersonalHotspotModification Indicates whether or not to block the user from modifying the personal hotspot setting (iOS 12.2 or later). + CellularBlockPersonalHotspotModification *bool `json:"cellularBlockPersonalHotspotModification,omitempty"` + // ContinuousPathKeyboardBlocked Indicates whether or not to block the continuous path keyboard when the device is supervised (iOS 13 or later). + ContinuousPathKeyboardBlocked *bool `json:"continuousPathKeyboardBlocked,omitempty"` + // FindMyDeviceInFindMyAppBlocked Indicates whether or not to block Find My Device when the device is supervised (iOS 13 or later). + FindMyDeviceInFindMyAppBlocked *bool `json:"findMyDeviceInFindMyAppBlocked,omitempty"` + // FindMyFriendsInFindMyAppBlocked Indicates whether or not to block Find My Friends when the device is supervised (iOS 13 or later). + FindMyFriendsInFindMyAppBlocked *bool `json:"findMyFriendsInFindMyAppBlocked,omitempty"` + // ITunesBlocked Indicates whether or not to block the iTunes app. Requires a supervised device for iOS 13 and later. + ITunesBlocked *bool `json:"iTunesBlocked,omitempty"` +} + +// IOSHomeScreenApp undocumented +type IOSHomeScreenApp struct { + // IOSHomeScreenItem is the base model of IOSHomeScreenApp + IOSHomeScreenItem + // BundleID BundleID of app + BundleID *string `json:"bundleID,omitempty"` +} + +// IOSHomeScreenFolder undocumented +type IOSHomeScreenFolder struct { + // IOSHomeScreenItem is the base model of IOSHomeScreenFolder + IOSHomeScreenItem + // Pages Pages of Home Screen Layout Icons which must be Application Type. This collection can contain a maximum of 500 elements. + Pages []IOSHomeScreenFolderPage `json:"pages,omitempty"` +} + +// IOSHomeScreenFolderPage undocumented +type IOSHomeScreenFolderPage struct { + // Object is the base model of IOSHomeScreenFolderPage + Object + // DisplayName Name of the folder page + DisplayName *string `json:"displayName,omitempty"` + // Apps A list of apps to appear on a page within a folder. This collection can contain a maximum of 500 elements. + Apps []IOSHomeScreenApp `json:"apps,omitempty"` +} + +// IOSHomeScreenItem undocumented +type IOSHomeScreenItem struct { + // Object is the base model of IOSHomeScreenItem + Object + // DisplayName Name of the app + DisplayName *string `json:"displayName,omitempty"` +} + +// IOSHomeScreenPage undocumented +type IOSHomeScreenPage struct { + // Object is the base model of IOSHomeScreenPage + Object + // DisplayName Name of the page + DisplayName *string `json:"displayName,omitempty"` + // Icons A list of apps and folders to appear on a page. This collection can contain a maximum of 500 elements. + Icons []IOSHomeScreenItem `json:"icons,omitempty"` +} + +// IOSImportedPFXCertificateProfile iOS PFX Import certificate profile +type IOSImportedPFXCertificateProfile struct { + // IOSCertificateProfile is the base model of IOSImportedPFXCertificateProfile + IOSCertificateProfile + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// IOSKerberosSingleSignOnExtension undocumented +type IOSKerberosSingleSignOnExtension struct { + // KerberosSingleSignOnExtension is the base model of IOSKerberosSingleSignOnExtension + KerberosSingleSignOnExtension +} + +// IOSLobApp Contains properties and inherited properties for iOS Line Of Business apps. +type IOSLobApp struct { + // MobileLobApp is the base model of IOSLobApp + MobileLobApp + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // ApplicableDeviceType The iOS architecture for which this app can run on. + ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // ExpirationDateTime The expiration time. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // VersionNumber The version number of iOS Line of Business (LoB) app. + VersionNumber *string `json:"versionNumber,omitempty"` + // BuildNumber The build number of iOS Line of Business (LoB) app. + BuildNumber *string `json:"buildNumber,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// IOSLobAppAssignmentSettings undocumented +type IOSLobAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of IOSLobAppAssignmentSettings + MobileAppAssignmentSettings + // VPNConfigurationID The VPN Configuration Id to apply for this app. + VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"` + // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune. + UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"` +} + +// IOSLobAppProvisioningConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iOS Lob App Provisioning Configuration resource. +type IOSLobAppProvisioningConfiguration struct { + // Entity is the base model of IOSLobAppProvisioningConfiguration + Entity + // ExpirationDateTime Optional profile expiration date and time. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // PayloadFileName Payload file name (*.mobileprovision | *.xml). + PayloadFileName *string `json:"payloadFileName,omitempty"` + // Payload Payload. (UTF8 encoded byte array) + Payload *Binary `json:"payload,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this iOS LOB app provisioning configuration entity. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description Admin provided description of the Device Configuration. + Description *string `json:"description,omitempty"` + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Admin provided name of the device configuration. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the device configuration. + Version *int `json:"version,omitempty"` + // GroupAssignments undocumented + GroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"groupAssignments,omitempty"` + // Assignments undocumented + Assignments []IOSLobAppProvisioningConfigurationAssignment `json:"assignments,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"` + // UserStatuses undocumented + UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"` +} + +// IOSLobAppProvisioningConfigurationAssignment A class containing the properties used for Group Assignment of an iOS LOB App Provisioning and Configuration. +type IOSLobAppProvisioningConfigurationAssignment struct { + // Entity is the base model of IOSLobAppProvisioningConfigurationAssignment + Entity + // Target The target group assignment defined by the admin. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// IOSLobAppProvisioningConfigurationPolicySetItem A class containing the properties used for iOS lob app provisioning configuration PolicySetItem. +type IOSLobAppProvisioningConfigurationPolicySetItem struct { + // PolicySetItem is the base model of IOSLobAppProvisioningConfigurationPolicySetItem + PolicySetItem +} + +// IOSManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an iOS device +type IOSManagedAppProtection struct { + // TargetedManagedAppProtection is the base model of IOSManagedAppProtection + TargetedManagedAppProtection + // AppDataEncryptionType Type of encryption which should be used for data in a managed app. + AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"` + // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data. + MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"` + // DeployedAppCount Count of apps to which the current policy is deployed. + DeployedAppCount *int `json:"deployedAppCount,omitempty"` + // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. + FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"` + // ExemptedAppProtocols Apps in this list will be exempt from the policy and will be able to receive data from managed apps. + ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"` + // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data. + MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"` + // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work. + AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"` + // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. + AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"` + // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app + ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"` + // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False. + FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"` + // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps. + DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"` + // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps. + ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"` + // CustomBrowserProtocol A custom browser protocol to open weblink on iOS. + CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"` + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` + // DeploymentSummary undocumented + DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"` +} + +// IOSManagedAppRegistration Represents the synchronization details of an ios app, with management capabilities, for a specific user. +type IOSManagedAppRegistration struct { + // ManagedAppRegistration is the base model of IOSManagedAppRegistration + ManagedAppRegistration +} + +// IOSMinimumOperatingSystem undocumented +type IOSMinimumOperatingSystem struct { + // Object is the base model of IOSMinimumOperatingSystem + Object + // V8_0 Version 8.0 or later. + V8_0 *bool `json:"v8_0,omitempty"` + // V9_0 Version 9.0 or later. + V9_0 *bool `json:"v9_0,omitempty"` + // V10_0 Version 10.0 or later. + V10_0 *bool `json:"v10_0,omitempty"` + // V11_0 Version 11.0 or later. + V11_0 *bool `json:"v11_0,omitempty"` + // V12_0 Version 12.0 or later. + V12_0 *bool `json:"v12_0,omitempty"` + // V13_0 Version 13.0 or later. + V13_0 *bool `json:"v13_0,omitempty"` +} + +// IOSMobileAppConfiguration Contains properties, inherited properties and actions for iOS mobile app configurations. +type IOSMobileAppConfiguration struct { + // ManagedDeviceMobileAppConfiguration is the base model of IOSMobileAppConfiguration + ManagedDeviceMobileAppConfiguration + // EncodedSettingXML mdm app configuration Base64 binary. + EncodedSettingXML *Binary `json:"encodedSettingXml,omitempty"` + // Settings app configuration setting items. + Settings []AppConfigurationSettingItem `json:"settings,omitempty"` +} + +// IOSMobileAppIdentifier undocumented +type IOSMobileAppIdentifier struct { + // MobileAppIdentifier is the base model of IOSMobileAppIdentifier + MobileAppIdentifier + // BundleID The identifier for an app, as specified in the app store. + BundleID *string `json:"bundleId,omitempty"` +} + +// IOSNetworkUsageRule undocumented +type IOSNetworkUsageRule struct { + // Object is the base model of IOSNetworkUsageRule + Object + // ManagedApps Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements. + ManagedApps []AppListItem `json:"managedApps,omitempty"` + // CellularDataBlockWhenRoaming If set to true, corresponding managed apps will not be allowed to use cellular data when roaming. + CellularDataBlockWhenRoaming *bool `json:"cellularDataBlockWhenRoaming,omitempty"` + // CellularDataBlocked If set to true, corresponding managed apps will not be allowed to use cellular data at any time. + CellularDataBlocked *bool `json:"cellularDataBlocked,omitempty"` +} + +// IOSNotificationSettings undocumented +type IOSNotificationSettings struct { + // Object is the base model of IOSNotificationSettings + Object + // BundleID Bundle id of app to which to apply these notification settings. + BundleID *string `json:"bundleID,omitempty"` + // AppName Application name to be associated with the bundleID. + AppName *string `json:"appName,omitempty"` + // Publisher Publisher to be associated with the bundleID. + Publisher *string `json:"publisher,omitempty"` + // Enabled Indicates whether notifications are allowed for this app. + Enabled *bool `json:"enabled,omitempty"` + // ShowInNotificationCenter Indicates whether notifications can be shown in notification center. + ShowInNotificationCenter *bool `json:"showInNotificationCenter,omitempty"` + // ShowOnLockScreen Indicates whether notifications can be shown on the lock screen. + ShowOnLockScreen *bool `json:"showOnLockScreen,omitempty"` + // AlertType Indicates the type of alert for notifications for this app. + AlertType *IOSNotificationAlertType `json:"alertType,omitempty"` + // BadgesEnabled Indicates whether badges are allowed for this app. + BadgesEnabled *bool `json:"badgesEnabled,omitempty"` + // SoundsEnabled Indicates whether sounds are allowed for this app. + SoundsEnabled *bool `json:"soundsEnabled,omitempty"` +} + +// IOSPkcsCertificateProfile iOS PKCS certificate profile. +type IOSPkcsCertificateProfile struct { + // IOSCertificateProfileBase is the base model of IOSPkcsCertificateProfile + IOSCertificateProfileBase + // CertificationAuthority PKCS Certification Authority. + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name. + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name. + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// IOSScepCertificateProfile iOS SCEP certificate profile. +type IOSScepCertificateProfile struct { + // IOSCertificateProfileBase is the base model of IOSScepCertificateProfile + IOSCertificateProfileBase + // ScepServerUrls SCEP Server Url(s). + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage. + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size. + KeySize *KeySize `json:"keySize,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // RootCertificate undocumented + RootCertificate *IOSTrustedRootCertificate `json:"rootCertificate,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// IOSSingleSignOnSettings undocumented +type IOSSingleSignOnSettings struct { + // Object is the base model of IOSSingleSignOnSettings + Object + // AllowedAppsList List of app identifiers that are allowed to use this login. If this field is omitted, the login applies to all applications on the device. This collection can contain a maximum of 500 elements. + AllowedAppsList []AppListItem `json:"allowedAppsList,omitempty"` + // AllowedUrls List of HTTP URLs that must be matched in order to use this login. With iOS 9.0 or later, a wildcard characters may be used. + AllowedUrls []string `json:"allowedUrls,omitempty"` + // DisplayName The display name of login settings shown on the receiving device. + DisplayName *string `json:"displayName,omitempty"` + // KerberosPrincipalName A Kerberos principal name. If not provided, the user is prompted for one during profile installation. + KerberosPrincipalName *string `json:"kerberosPrincipalName,omitempty"` + // KerberosRealm A Kerberos realm name. Case sensitive. + KerberosRealm *string `json:"kerberosRealm,omitempty"` +} + +// IOSStoreApp Contains properties and inherited properties for iOS store apps. +type IOSStoreApp struct { + // MobileApp is the base model of IOSStoreApp + MobileApp + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // AppStoreURL The Apple App Store URL + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // ApplicableDeviceType The iOS architecture for which this app can run on. + ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` +} + +// IOSStoreAppAssignmentSettings undocumented +type IOSStoreAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of IOSStoreAppAssignmentSettings + MobileAppAssignmentSettings + // VPNConfigurationID The VPN Configuration Id to apply for this app. + VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"` + // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune. + UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"` +} + +// IOSTrustedRootCertificate iOS Trusted Root Certificate configuration profile. +type IOSTrustedRootCertificate struct { + // DeviceConfiguration is the base model of IOSTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate. + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// IOSUpdateConfiguration IOS Update Configuration, allows you to configure time window within week to install iOS updates +type IOSUpdateConfiguration struct { + // DeviceConfiguration is the base model of IOSUpdateConfiguration + DeviceConfiguration + // IsEnabled Is setting enabled in UI + IsEnabled *bool `json:"isEnabled,omitempty"` + // ActiveHoursStart Active Hours Start (active hours mean the time window when updates install should not happen) + ActiveHoursStart *TimeOfDay `json:"activeHoursStart,omitempty"` + // ActiveHoursEnd Active Hours End (active hours mean the time window when updates install should not happen) + ActiveHoursEnd *TimeOfDay `json:"activeHoursEnd,omitempty"` + // ScheduledInstallDays Days in week for which active hours are configured. This collection can contain a maximum of 7 elements. + ScheduledInstallDays []DayOfWeek `json:"scheduledInstallDays,omitempty"` + // UtcTimeOffsetInMinutes UTC Time Offset indicated in minutes + UtcTimeOffsetInMinutes *int `json:"utcTimeOffsetInMinutes,omitempty"` + // EnforcedSoftwareUpdateDelayInDays Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive + EnforcedSoftwareUpdateDelayInDays *int `json:"enforcedSoftwareUpdateDelayInDays,omitempty"` +} + +// IOSUpdateDeviceStatus undocumented +type IOSUpdateDeviceStatus struct { + // Entity is the base model of IOSUpdateDeviceStatus + Entity + // InstallStatus The installation status of the policy report. + InstallStatus *IOSUpdatesInstallStatus `json:"installStatus,omitempty"` + // OsVersion The device version that is being reported. + OsVersion *string `json:"osVersion,omitempty"` + // DeviceID The device id that is being reported. + DeviceID *string `json:"deviceId,omitempty"` + // UserID The User id that is being reported. + UserID *string `json:"userId,omitempty"` + // DeviceDisplayName Device name of the DevicePolicyStatus. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // Platform Platform of the device that is being reported + Platform *int `json:"platform,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// IOSVPNConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type IOSVPNConfiguration struct { + // AppleVPNConfiguration is the base model of IOSVPNConfiguration + AppleVPNConfiguration + // ProviderType Provider type for per-app VPN. + ProviderType *VPNProviderType `json:"providerType,omitempty"` + // UserDomain Zscaler only. Enter a static domain to pre-populate the login field with in the Zscaler app. If this is left empty, the user's Azure Active Directory domain will be used instead. + UserDomain *string `json:"userDomain,omitempty"` + // StrictEnforcement Zscaler only. Blocks network traffic until the user signs into Zscaler app. "True" means traffic is blocked. + StrictEnforcement *bool `json:"strictEnforcement,omitempty"` + // CloudName Zscaler only. Zscaler cloud which the user is assigned to. + CloudName *string `json:"cloudName,omitempty"` + // ExcludeList Zscaler only. List of network addresses which are not sent through the Zscaler cloud. + ExcludeList []string `json:"excludeList,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"` + // DerivedCredentialSettings undocumented + DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"` +} + +// IOSVPNSecurityAssociationParameters undocumented +type IOSVPNSecurityAssociationParameters struct { + // Object is the base model of IOSVPNSecurityAssociationParameters + Object + // SecurityEncryptionAlgorithm Encryption algorithm + SecurityEncryptionAlgorithm *VPNEncryptionAlgorithmType `json:"securityEncryptionAlgorithm,omitempty"` + // SecurityIntegrityAlgorithm Integrity algorithm + SecurityIntegrityAlgorithm *VPNIntegrityAlgorithmType `json:"securityIntegrityAlgorithm,omitempty"` + // SecurityDiffieHellmanGroup Diffie-Hellman Group + SecurityDiffieHellmanGroup *int `json:"securityDiffieHellmanGroup,omitempty"` + // LifetimeInMinutes Lifetime (minutes) + LifetimeInMinutes *int `json:"lifetimeInMinutes,omitempty"` +} + +// IOSVPPApp Contains properties and inherited properties for iOS Volume-Purchased Program (VPP) Apps. +type IOSVPPApp struct { + // MobileApp is the base model of IOSVPPApp + MobileApp + // UsedLicenseCount The number of VPP licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // TotalLicenseCount The total number of VPP licenses. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // ReleaseDateTime The VPP application release date and time. + ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"` + // AppStoreURL The store URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // LicensingType The supported License Type. + LicensingType *VPPLicensingType `json:"licensingType,omitempty"` + // ApplicableDeviceType The applicable iOS Device Type. + ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"` + // VPPTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token + VPPTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"` + // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`. + VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"` + // VPPTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token. + VPPTokenAppleID *string `json:"vppTokenAppleId,omitempty"` + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // VPPTokenID Identifier of the VPP token associated with this app. + VPPTokenID *string `json:"vppTokenId,omitempty"` + // RevokeLicenseActionResults Results of revoke license actions on this app. + RevokeLicenseActionResults []IOSVPPAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"` + // AssignedLicenses undocumented + AssignedLicenses []IOSVPPAppAssignedLicense `json:"assignedLicenses,omitempty"` +} + +// IOSVPPAppAssignedDeviceLicense iOS Volume Purchase Program device license assignment. This class does not support Create, Delete, or Update. +type IOSVPPAppAssignedDeviceLicense struct { + // IOSVPPAppAssignedLicense is the base model of IOSVPPAppAssignedDeviceLicense + IOSVPPAppAssignedLicense + // ManagedDeviceID The managed device ID. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // DeviceName The device name. + DeviceName *string `json:"deviceName,omitempty"` +} + +// IOSVPPAppAssignedLicense iOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update. +type IOSVPPAppAssignedLicense struct { + // Entity is the base model of IOSVPPAppAssignedLicense + Entity + // UserEmailAddress The user email address. + UserEmailAddress *string `json:"userEmailAddress,omitempty"` + // UserID The user ID. + UserID *string `json:"userId,omitempty"` + // UserName The user name. + UserName *string `json:"userName,omitempty"` + // UserPrincipalName The user principal name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// IOSVPPAppAssignedUserLicense iOS Volume Purchase Program user license assignment. This class does not support Create, Delete, or Update. +type IOSVPPAppAssignedUserLicense struct { + // IOSVPPAppAssignedLicense is the base model of IOSVPPAppAssignedUserLicense + IOSVPPAppAssignedLicense +} + +// IOSVPPAppAssignmentSettings undocumented +type IOSVPPAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of IOSVPPAppAssignmentSettings + MobileAppAssignmentSettings + // UseDeviceLicensing Whether or not to use device licensing. + UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"` + // VPNConfigurationID The VPN Configuration Id to apply for this app. + VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"` + // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune. + UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"` +} + +// IOSVPPAppRevokeLicensesActionResult undocumented +type IOSVPPAppRevokeLicensesActionResult struct { + // Object is the base model of IOSVPPAppRevokeLicensesActionResult + Object + // UserID UserId associated with the action. + UserID *string `json:"userId,omitempty"` + // ManagedDeviceID DeviceId associated with the action. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // TotalLicensesCount A count of the number of licenses for which revoke was attempted. + TotalLicensesCount *int `json:"totalLicensesCount,omitempty"` + // FailedLicensesCount A count of the number of licenses for which revoke failed. + FailedLicensesCount *int `json:"failedLicensesCount,omitempty"` + // ActionFailureReason The reason for the revoke licenses action failure. + ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"` + // ActionName Action name + ActionName *string `json:"actionName,omitempty"` + // ActionState State of the action + ActionState *ActionState `json:"actionState,omitempty"` + // StartDateTime Time the action was initiated + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // LastUpdatedDateTime Time the action state was last updated + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` +} + +// IOSVPPEBook A class containing the properties for iOS Vpp eBook. +type IOSVPPEBook struct { + // ManagedEBook is the base model of IOSVPPEBook + ManagedEBook + // VPPTokenID The Vpp token ID. + VPPTokenID *UUID `json:"vppTokenId,omitempty"` + // AppleID The Apple ID associated with Vpp token. + AppleID *string `json:"appleId,omitempty"` + // VPPOrganizationName The Vpp token's organization name. + VPPOrganizationName *string `json:"vppOrganizationName,omitempty"` + // Genres Genres. + Genres []string `json:"genres,omitempty"` + // Language Language. + Language *string `json:"language,omitempty"` + // Seller Seller. + Seller *string `json:"seller,omitempty"` + // TotalLicenseCount Total license count. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // UsedLicenseCount Used license count. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// IOSVPPEBookAssignment Contains properties used to assign an iOS VPP EBook to a group. +type IOSVPPEBookAssignment struct { + // ManagedEBookAssignment is the base model of IOSVPPEBookAssignment + ManagedEBookAssignment +} + +// IOSWebContentFilterAutoFilter undocumented +type IOSWebContentFilterAutoFilter struct { + // IOSWebContentFilterBase is the base model of IOSWebContentFilterAutoFilter + IOSWebContentFilterBase + // AllowedUrls Additional URLs allowed for access + AllowedUrls []string `json:"allowedUrls,omitempty"` + // BlockedUrls Additional URLs blocked for access + BlockedUrls []string `json:"blockedUrls,omitempty"` +} + +// IOSWebContentFilterBase undocumented +type IOSWebContentFilterBase struct { + // Object is the base model of IOSWebContentFilterBase + Object +} + +// IOSWebContentFilterSpecificWebsitesAccess undocumented +type IOSWebContentFilterSpecificWebsitesAccess struct { + // IOSWebContentFilterBase is the base model of IOSWebContentFilterSpecificWebsitesAccess + IOSWebContentFilterBase + // SpecificWebsitesOnly URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements. + SpecificWebsitesOnly []IOSBookmark `json:"specificWebsitesOnly,omitempty"` + // WebsiteList URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements. + WebsiteList []IOSBookmark `json:"websiteList,omitempty"` +} + +// IOSWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. +type IOSWiFiConfiguration struct { + // DeviceConfiguration is the base model of IOSWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"` + // ProxySettings Proxy Type for this Wi-Fi connection + ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"` + // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected. + ProxyManualAddress *string `json:"proxyManualAddress,omitempty"` + // ProxyManualPort Port of the proxy server when manual configuration is selected. + ProxyManualPort *int `json:"proxyManualPort,omitempty"` + // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file. + ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"` + // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network. + PreSharedKey *string `json:"preSharedKey,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go new file mode 100644 index 00000000..5e60d382 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go @@ -0,0 +1,83 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// IPCategory undocumented +type IPCategory struct { + // Object is the base model of IPCategory + Object + // Description undocumented + Description *string `json:"description,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Vendor undocumented + Vendor *string `json:"vendor,omitempty"` +} + +// IPNamedLocation undocumented +type IPNamedLocation struct { + // NamedLocation is the base model of IPNamedLocation + NamedLocation + // IPRanges undocumented + IPRanges []IPRange `json:"ipRanges,omitempty"` + // IsTrusted undocumented + IsTrusted *bool `json:"isTrusted,omitempty"` +} + +// IPRange undocumented +type IPRange struct { + // Object is the base model of IPRange + Object +} + +// IPReferenceData undocumented +type IPReferenceData struct { + // Object is the base model of IPReferenceData + Object + // Asn undocumented + Asn *int `json:"asn,omitempty"` + // City undocumented + City *string `json:"city,omitempty"` + // CountryOrRegionCode undocumented + CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"` + // Organization undocumented + Organization *string `json:"organization,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // Vendor undocumented + Vendor *string `json:"vendor,omitempty"` +} + +// IPSecurityProfile undocumented +type IPSecurityProfile struct { + // Entity is the base model of IPSecurityProfile + Entity + // ActivityGroupNames undocumented + ActivityGroupNames []string `json:"activityGroupNames,omitempty"` + // Address undocumented + Address *string `json:"address,omitempty"` + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // CountHits undocumented + CountHits *int `json:"countHits,omitempty"` + // CountHosts undocumented + CountHosts *int `json:"countHosts,omitempty"` + // FirstSeenDateTime undocumented + FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"` + // IPCategories undocumented + IPCategories []IPCategory `json:"ipCategories,omitempty"` + // IPReferenceData undocumented + IPReferenceData []IPReferenceData `json:"ipReferenceData,omitempty"` + // LastSeenDateTime undocumented + LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go new file mode 100644 index 00000000..a2a15215 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go @@ -0,0 +1,21 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// IPv4CidrRange undocumented +type IPv4CidrRange struct { + // IPRange is the base model of IPv4CidrRange + IPRange + // CIDRAddress undocumented + CIDRAddress *string `json:"cidrAddress,omitempty"` +} + +// IPv4Range undocumented +type IPv4Range struct { + // IPRange is the base model of IPv4Range + IPRange + // LowerAddress Lower address. + LowerAddress *string `json:"lowerAddress,omitempty"` + // UpperAddress Upper address. + UpperAddress *string `json:"upperAddress,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go new file mode 100644 index 00000000..6a9131cb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go @@ -0,0 +1,21 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// IPv6CidrRange undocumented +type IPv6CidrRange struct { + // IPRange is the base model of IPv6CidrRange + IPRange + // CIDRAddress undocumented + CIDRAddress *string `json:"cidrAddress,omitempty"` +} + +// IPv6Range undocumented +type IPv6Range struct { + // IPRange is the base model of IPv6Range + IPRange + // LowerAddress Lower address. + LowerAddress *string `json:"lowerAddress,omitempty"` + // UpperAddress Upper address. + UpperAddress *string `json:"upperAddress,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go new file mode 100644 index 00000000..d989199e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go @@ -0,0 +1,103 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Identity undocumented +type Identity struct { + // Object is the base model of Identity + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// IdentityContainer undocumented +type IdentityContainer struct { + // Entity is the base model of IdentityContainer + Entity + // UserFlows undocumented + UserFlows []IdentityUserFlow `json:"userFlows,omitempty"` +} + +// IdentityGovernance undocumented +type IdentityGovernance struct { + // Entity is the base model of IdentityGovernance + Entity + // EntitlementManagement undocumented + EntitlementManagement *EntitlementManagement `json:"entitlementManagement,omitempty"` +} + +// IdentityProvider undocumented +type IdentityProvider struct { + // Entity is the base model of IdentityProvider + Entity + // Type undocumented + Type *string `json:"type,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ClientID undocumented + ClientID *string `json:"clientId,omitempty"` + // ClientSecret undocumented + ClientSecret *string `json:"clientSecret,omitempty"` +} + +// IdentityRiskEvent undocumented +type IdentityRiskEvent struct { + // Entity is the base model of IdentityRiskEvent + Entity + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // RiskEventDateTime undocumented + RiskEventDateTime *time.Time `json:"riskEventDateTime,omitempty"` + // RiskEventType undocumented + RiskEventType *string `json:"riskEventType,omitempty"` + // RiskLevel undocumented + RiskLevel *RiskLevel `json:"riskLevel,omitempty"` + // RiskEventStatus undocumented + RiskEventStatus *RiskEventStatus `json:"riskEventStatus,omitempty"` + // ClosedDateTime undocumented + ClosedDateTime *time.Time `json:"closedDateTime,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // ImpactedUser undocumented + ImpactedUser *User `json:"impactedUser,omitempty"` +} + +// IdentitySet undocumented +type IdentitySet struct { + // Object is the base model of IdentitySet + Object + // Application undocumented + Application *Identity `json:"application,omitempty"` + // Device undocumented + Device *Identity `json:"device,omitempty"` + // User undocumented + User *Identity `json:"user,omitempty"` +} + +// IdentityUserFlow undocumented +type IdentityUserFlow struct { + // Entity is the base model of IdentityUserFlow + Entity + // UserFlowType undocumented + UserFlowType *UserFlowType `json:"userFlowType,omitempty"` + // UserFlowTypeVersion undocumented + UserFlowTypeVersion *float64 `json:"userFlowTypeVersion,omitempty"` +} + +// IdentityUserRisk undocumented +type IdentityUserRisk struct { + // Object is the base model of IdentityUserRisk + Object + // Level undocumented + Level *UserRiskLevel `json:"level,omitempty"` + // LastChangedDateTime undocumented + LastChangedDateTime *time.Time `json:"lastChangedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go new file mode 100644 index 00000000..7653b2c8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Image undocumented +type Image struct { + // Object is the base model of Image + Object + // Height undocumented + Height *int `json:"height,omitempty"` + // Width undocumented + Width *int `json:"width,omitempty"` +} + +// ImageInfo undocumented +type ImageInfo struct { + // Object is the base model of ImageInfo + Object + // IconURL undocumented + IconURL *string `json:"iconUrl,omitempty"` + // AlternativeText undocumented + AlternativeText *string `json:"alternativeText,omitempty"` + // AlternateText undocumented + AlternateText *string `json:"alternateText,omitempty"` + // AddImageQuery undocumented + AddImageQuery *bool `json:"addImageQuery,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ImplicitGrantSettingsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go new file mode 100644 index 00000000..d4ff89f9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go @@ -0,0 +1,119 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ImportedAppleDeviceIdentity The importedAppleDeviceIdentity resource represents the imported device identity of an Apple device . +type ImportedAppleDeviceIdentity struct { + // Entity is the base model of ImportedAppleDeviceIdentity + Entity + // SerialNumber Device serial number + SerialNumber *string `json:"serialNumber,omitempty"` + // RequestedEnrollmentProfileID Enrollment profile Id admin intends to apply to the device during next enrollment + RequestedEnrollmentProfileID *string `json:"requestedEnrollmentProfileId,omitempty"` + // RequestedEnrollmentProfileAssignmentDateTime The time enrollment profile was assigned to the device + RequestedEnrollmentProfileAssignmentDateTime *time.Time `json:"requestedEnrollmentProfileAssignmentDateTime,omitempty"` + // IsSupervised Indicates if the Apple device is supervised. More information is at: https://support.apple.com/en-us/HT202837 + IsSupervised *bool `json:"isSupervised,omitempty"` + // DiscoverySource Apple device discovery source. + DiscoverySource *DiscoverySource `json:"discoverySource,omitempty"` + // IsDeleted Indicates if the device is deleted from Apple Business Manager + IsDeleted *bool `json:"isDeleted,omitempty"` + // CreatedDateTime Created Date Time of the device + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastContactedDateTime Last Contacted Date Time of the device + LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"` + // Description The description of the device + Description *string `json:"description,omitempty"` + // EnrollmentState The state of the device in Intune + EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"` + // Platform The platform of the Device. + Platform *Platform `json:"platform,omitempty"` +} + +// ImportedAppleDeviceIdentityResult The importedAppleDeviceIdentityResult resource represents the result of attempting to import Apple devices identities. +type ImportedAppleDeviceIdentityResult struct { + // ImportedAppleDeviceIdentity is the base model of ImportedAppleDeviceIdentityResult + ImportedAppleDeviceIdentity + // Status Status of imported device identity + Status *bool `json:"status,omitempty"` +} + +// ImportedDeviceIdentity The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration. +type ImportedDeviceIdentity struct { + // Entity is the base model of ImportedDeviceIdentity + Entity + // ImportedDeviceIdentifier Imported Device Identifier + ImportedDeviceIdentifier *string `json:"importedDeviceIdentifier,omitempty"` + // ImportedDeviceIdentityType Type of Imported Device Identity + ImportedDeviceIdentityType *ImportedDeviceIdentityType `json:"importedDeviceIdentityType,omitempty"` + // LastModifiedDateTime Last Modified DateTime of the description + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // CreatedDateTime Created Date Time of the device + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastContactedDateTime Last Contacted Date Time of the device + LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"` + // Description The description of the device + Description *string `json:"description,omitempty"` + // EnrollmentState The state of the device in Intune + EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"` + // Platform The platform of the Device. + Platform *Platform `json:"platform,omitempty"` +} + +// ImportedDeviceIdentityResult The importedDeviceIdentityResult resource represents the result of attempting to import a device identity. +type ImportedDeviceIdentityResult struct { + // ImportedDeviceIdentity is the base model of ImportedDeviceIdentityResult + ImportedDeviceIdentity + // Status Status of imported device identity + Status *bool `json:"status,omitempty"` +} + +// ImportedWindowsAutopilotDeviceIdentity Imported windows autopilot devices. +type ImportedWindowsAutopilotDeviceIdentity struct { + // Entity is the base model of ImportedWindowsAutopilotDeviceIdentity + Entity + // OrderIdentifier Order Id of the Windows autopilot device. - Deprecate + OrderIdentifier *string `json:"orderIdentifier,omitempty"` + // GroupTag Group Tag of the Windows autopilot device. + GroupTag *string `json:"groupTag,omitempty"` + // SerialNumber Serial number of the Windows autopilot device. + SerialNumber *string `json:"serialNumber,omitempty"` + // ProductKey Product Key of the Windows autopilot device. + ProductKey *string `json:"productKey,omitempty"` + // ImportID The Import Id of the Windows autopilot device. + ImportID *string `json:"importId,omitempty"` + // HardwareIdentifier Hardware Blob of the Windows autopilot device. + HardwareIdentifier *Binary `json:"hardwareIdentifier,omitempty"` + // State Current state of the imported device. + State *ImportedWindowsAutopilotDeviceIdentityState `json:"state,omitempty"` + // AssignedUserPrincipalName UPN of the user the device will be assigned + AssignedUserPrincipalName *string `json:"assignedUserPrincipalName,omitempty"` +} + +// ImportedWindowsAutopilotDeviceIdentityState undocumented +type ImportedWindowsAutopilotDeviceIdentityState struct { + // Object is the base model of ImportedWindowsAutopilotDeviceIdentityState + Object + // DeviceImportStatus Device status reported by Device Directory Service(DDS). + DeviceImportStatus *ImportedWindowsAutopilotDeviceIdentityImportStatus `json:"deviceImportStatus,omitempty"` + // DeviceRegistrationID Device Registration ID for successfully added device reported by Device Directory Service(DDS). + DeviceRegistrationID *string `json:"deviceRegistrationId,omitempty"` + // DeviceErrorCode Device error code reported by Device Directory Service(DDS). + DeviceErrorCode *int `json:"deviceErrorCode,omitempty"` + // DeviceErrorName Device error name reported by Device Directory Service(DDS). + DeviceErrorName *string `json:"deviceErrorName,omitempty"` +} + +// ImportedWindowsAutopilotDeviceIdentityUpload Import windows autopilot devices using upload. +type ImportedWindowsAutopilotDeviceIdentityUpload struct { + // Entity is the base model of ImportedWindowsAutopilotDeviceIdentityUpload + Entity + // CreatedDateTimeUtc DateTime when the entity is created. + CreatedDateTimeUtc *time.Time `json:"createdDateTimeUtc,omitempty"` + // Status Upload status. + Status *ImportedWindowsAutopilotDeviceIdentityUploadStatus `json:"status,omitempty"` + // DeviceIdentities undocumented + DeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"deviceIdentities,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IncomingContextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/IncomingContextModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IncompleteDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/IncompleteDataModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go new file mode 100644 index 00000000..bf0dfa83 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InferenceClassification undocumented +type InferenceClassification struct { + // Entity is the base model of InferenceClassification + Entity + // Overrides undocumented + Overrides []InferenceClassificationOverride `json:"overrides,omitempty"` +} + +// InferenceClassificationOverride undocumented +type InferenceClassificationOverride struct { + // Entity is the base model of InferenceClassificationOverride + Entity + // ClassifyAs undocumented + ClassifyAs *InferenceClassificationType `json:"classifyAs,omitempty"` + // SenderEmailAddress undocumented + SenderEmailAddress *EmailAddress `json:"senderEmailAddress,omitempty"` +} + +// InferenceData undocumented +type InferenceData struct { + // Object is the base model of InferenceData + Object + // ConfidenceScore undocumented + ConfidenceScore *float64 `json:"confidenceScore,omitempty"` + // UserHasVerifiedAccuracy undocumented + UserHasVerifiedAccuracy *bool `json:"userHasVerifiedAccuracy,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go new file mode 100644 index 00000000..20d28337 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// InformationProtection undocumented +type InformationProtection struct { + // Entity is the base model of InformationProtection + Entity + // Policy undocumented + Policy *InformationProtectionPolicy `json:"policy,omitempty"` + // SensitivityLabels undocumented + SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"` + // SensitivityPolicySettings undocumented + SensitivityPolicySettings *SensitivityPolicySettings `json:"sensitivityPolicySettings,omitempty"` + // DataLossPreventionPolicies undocumented + DataLossPreventionPolicies []DataLossPreventionPolicy `json:"dataLossPreventionPolicies,omitempty"` + // ThreatAssessmentRequests undocumented + ThreatAssessmentRequests []ThreatAssessmentRequestObject `json:"threatAssessmentRequests,omitempty"` +} + +// InformationProtectionAction undocumented +type InformationProtectionAction struct { + // Object is the base model of InformationProtectionAction + Object +} + +// InformationProtectionContentLabel undocumented +type InformationProtectionContentLabel struct { + // Object is the base model of InformationProtectionContentLabel + Object + // CreationDateTime undocumented + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` + // AssignmentMethod undocumented + AssignmentMethod *AssignmentMethod `json:"assignmentMethod,omitempty"` + // Label undocumented + Label *LabelDetails `json:"label,omitempty"` +} + +// InformationProtectionLabel undocumented +type InformationProtectionLabel struct { + // Entity is the base model of InformationProtectionLabel + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Color undocumented + Color *string `json:"color,omitempty"` + // Sensitivity undocumented + Sensitivity *int `json:"sensitivity,omitempty"` + // Tooltip undocumented + Tooltip *string `json:"tooltip,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` +} + +// InformationProtectionPolicy undocumented +type InformationProtectionPolicy struct { + // Entity is the base model of InformationProtectionPolicy + Entity + // Labels undocumented + Labels []InformationProtectionLabel `json:"labels,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InformationalURLModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InitiatorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InitiatorModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InnerErrorDetailModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go new file mode 100644 index 00000000..73b5c200 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// InsightIdentity undocumented +type InsightIdentity struct { + // Object is the base model of InsightIdentity + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` + // Address undocumented + Address *string `json:"address,omitempty"` +} + +// InsightValueDouble undocumented +type InsightValueDouble struct { + // UserExperienceAnalyticsInsightValue is the base model of InsightValueDouble + UserExperienceAnalyticsInsightValue + // Value undocumented + Value *float64 `json:"value,omitempty"` +} + +// InsightValueInt undocumented +type InsightValueInt struct { + // UserExperienceAnalyticsInsightValue is the base model of InsightValueInt + UserExperienceAnalyticsInsightValue + // Value undocumented + Value *int `json:"value,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InstanceResourceAccessModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InstitutionDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InstitutionDataModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InternetMessageHeaderModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go new file mode 100644 index 00000000..6f21c939 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go @@ -0,0 +1,119 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// IntuneBrand undocumented +type IntuneBrand struct { + // Object is the base model of IntuneBrand + Object + // DisplayName Company/organization name that is displayed to end users. + DisplayName *string `json:"displayName,omitempty"` + // ThemeColor Primary theme color used in the Company Portal applications and web portal. + ThemeColor *RgbColor `json:"themeColor,omitempty"` + // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not shown. + ShowLogo *bool `json:"showLogo,omitempty"` + // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo. + LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"` + // DarkBackgroundLogo Logo image displayed in Company Portal apps which have a dark background behind the logo. + DarkBackgroundLogo *MimeContent `json:"darkBackgroundLogo,omitempty"` + // ShowNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image. + ShowNameNextToLogo *bool `json:"showNameNextToLogo,omitempty"` + // LandingPageCustomizedImage Customized image displayed in Company Portal app landing page + LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"` + // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image. + ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"` + // ContactITName Name of the person/organization responsible for IT support. + ContactITName *string `json:"contactITName,omitempty"` + // ContactITPhoneNumber Phone number of the person/organization responsible for IT support. + ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"` + // ContactITEmailAddress Email address of the person/organization responsible for IT support. + ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"` + // ContactITNotes Text comments regarding the person/organization responsible for IT support. + ContactITNotes *string `json:"contactITNotes,omitempty"` + // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site. + OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"` + // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site. + OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"` + // PrivacyURL URL to the company/organization’s privacy policy. + PrivacyURL *string `json:"privacyUrl,omitempty"` + // CustomPrivacyMessage Custom privacy message. + CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"` + // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices. + IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"` + // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices. + IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"` + // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types. + CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"` + // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal + ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"` + // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal + ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"` +} + +// IntuneBrandingProfile This entity contains data which is used in customizing the tenant level appearance of the Company Portal applications as well as the end user web portal. +type IntuneBrandingProfile struct { + // Entity is the base model of IntuneBrandingProfile + Entity + // ProfileName Name of the profile + ProfileName *string `json:"profileName,omitempty"` + // ProfileDescription Description of the profile + ProfileDescription *string `json:"profileDescription,omitempty"` + // IsDefaultProfile Boolean that represents whether the profile is used as default or not + IsDefaultProfile *bool `json:"isDefaultProfile,omitempty"` + // CreatedDateTime Time when the BrandingProfile was created + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Time when the BrandingProfile was last modified + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Company/organization name that is displayed to end users + DisplayName *string `json:"displayName,omitempty"` + // ThemeColor Primary theme color used in the Company Portal applications and web portal + ThemeColor *RgbColor `json:"themeColor,omitempty"` + // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not + ShowLogo *bool `json:"showLogo,omitempty"` + // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image or not + ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"` + // ThemeColorLogo Logo image displayed in Company Portal apps which have a theme color background behind the logo + ThemeColorLogo *MimeContent `json:"themeColorLogo,omitempty"` + // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo + LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"` + // LandingPageCustomizedImage Customized image displayed in Company Portal apps landing page + LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"` + // ContactITName Name of the person/organization responsible for IT support + ContactITName *string `json:"contactITName,omitempty"` + // ContactITPhoneNumber Phone number of the person/organization responsible for IT support + ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"` + // ContactITEmailAddress E-mail address of the person/organization responsible for IT support + ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"` + // ContactITNotes Text comments regarding the person/organization responsible for IT support + ContactITNotes *string `json:"contactITNotes,omitempty"` + // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site + OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"` + // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site + OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"` + // PrivacyURL URL to the company/organization’s privacy policy + PrivacyURL *string `json:"privacyUrl,omitempty"` + // CustomPrivacyMessage Text comments regarding what the admin has access to on the device + CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"` + // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices. + IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"` + // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices. + IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"` + // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types. + CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"` + // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal + ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"` + // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal + ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"` + // Assignments undocumented + Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"` +} + +// IntuneBrandingProfileAssignment This entity contains the properties used to assign a branding profile to a group. +type IntuneBrandingProfileAssignment struct { + // Entity is the base model of IntuneBrandingProfileAssignment + Entity + // Target Assignment target that the branding profile is assigned to. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go new file mode 100644 index 00000000..59a8f232 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go @@ -0,0 +1,41 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Invitation undocumented +type Invitation struct { + // Entity is the base model of Invitation + Entity + // InvitedUserDisplayName undocumented + InvitedUserDisplayName *string `json:"invitedUserDisplayName,omitempty"` + // InvitedUserType undocumented + InvitedUserType *string `json:"invitedUserType,omitempty"` + // InvitedUserEmailAddress undocumented + InvitedUserEmailAddress *string `json:"invitedUserEmailAddress,omitempty"` + // InvitedUserMessageInfo undocumented + InvitedUserMessageInfo *InvitedUserMessageInfo `json:"invitedUserMessageInfo,omitempty"` + // SendInvitationMessage undocumented + SendInvitationMessage *bool `json:"sendInvitationMessage,omitempty"` + // InviteRedirectURL undocumented + InviteRedirectURL *string `json:"inviteRedirectUrl,omitempty"` + // InviteRedeemURL undocumented + InviteRedeemURL *string `json:"inviteRedeemUrl,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // ResetRedemption undocumented + ResetRedemption *bool `json:"resetRedemption,omitempty"` + // InvitedUser undocumented + InvitedUser *User `json:"invitedUser,omitempty"` +} + +// InvitationParticipantInfo undocumented +type InvitationParticipantInfo struct { + // Object is the base model of InvitationParticipantInfo + Object + // Identity undocumented + Identity *IdentitySet `json:"identity,omitempty"` + // EndpointType undocumented + EndpointType *EndpointType `json:"endpointType,omitempty"` + // ReplacesCallID undocumented + ReplacesCallID *string `json:"replacesCallId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InviteParticipantsOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/InvitedUserMessageInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go new file mode 100644 index 00000000..b8744c83 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go @@ -0,0 +1,49 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// IosikEv2VpnConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired IKEv2 VPN endpoint. +type IosikEv2VpnConfiguration struct { + // IOSVPNConfiguration is the base model of IosikEv2VpnConfiguration + IOSVPNConfiguration + // ChildSecurityAssociationParameters Child Security Association Parameters + ChildSecurityAssociationParameters *IOSVPNSecurityAssociationParameters `json:"childSecurityAssociationParameters,omitempty"` + // ClientAuthenticationType Type of Client Authentication the VPN client will use. + ClientAuthenticationType *VPNClientAuthenticationType `json:"clientAuthenticationType,omitempty"` + // DeadPeerDetectionRate Determine how often to check if a peer connection is still active. + DeadPeerDetectionRate *VPNDeadPeerDetectionRate `json:"deadPeerDetectionRate,omitempty"` + // DisableMobilityAndMultihoming Disable MOBIKE + DisableMobilityAndMultihoming *bool `json:"disableMobilityAndMultihoming,omitempty"` + // DisableRedirect Disable Redirect + DisableRedirect *bool `json:"disableRedirect,omitempty"` + // EnableCertificateRevocationCheck Enables a best-effort revocation check; server response timeouts will not cause it to fail + EnableCertificateRevocationCheck *bool `json:"enableCertificateRevocationCheck,omitempty"` + // EnableEAP Enables EAP only authentication + EnableEAP *bool `json:"enableEAP,omitempty"` + // EnablePerfectForwardSecrecy Enable Perfect Forward Secrecy (PFS). + EnablePerfectForwardSecrecy *bool `json:"enablePerfectForwardSecrecy,omitempty"` + // EnableUseInternalSubnetAttributes Enable Use Internal Subnet Attributes. + EnableUseInternalSubnetAttributes *bool `json:"enableUseInternalSubnetAttributes,omitempty"` + // LocalIdentifier Method of identifying the client that is trying to connect via VPN. + LocalIdentifier *VPNLocalIdentifier `json:"localIdentifier,omitempty"` + // RemoteIdentifier Address of the IKEv2 server. Must be a FQDN, UserFQDN, network address, or ASN1DN + RemoteIdentifier *string `json:"remoteIdentifier,omitempty"` + // SecurityAssociationParameters Security Association Parameters + SecurityAssociationParameters *IOSVPNSecurityAssociationParameters `json:"securityAssociationParameters,omitempty"` + // ServerCertificateCommonName Common name of the IKEv2 Server Certificate used in Server Authentication + ServerCertificateCommonName *string `json:"serverCertificateCommonName,omitempty"` + // ServerCertificateIssuerCommonName Issuer Common name of the IKEv2 Server Certificate issuer used in Authentication + ServerCertificateIssuerCommonName *string `json:"serverCertificateIssuerCommonName,omitempty"` + // ServerCertificateType The type of certificate the VPN server will present to the VPN client for authentication. + ServerCertificateType *VPNServerCertificateType `json:"serverCertificateType,omitempty"` + // SharedSecret Used when Shared Secret Authentication is selected + SharedSecret *string `json:"sharedSecret,omitempty"` + // TLSMaximumVersion The maximum TLS version to be used with EAP-TLS authentication + TLSMaximumVersion *string `json:"tlsMaximumVersion,omitempty"` + // TLSMinimumVersion The minimum TLS version to be used with EAP-TLS authentication + TLSMinimumVersion *string `json:"tlsMinimumVersion,omitempty"` + // AllowDefaultSecurityAssociationParameters Allows the use of security association parameters by setting all parameters to the device's default unless explicitly specified. + AllowDefaultSecurityAssociationParameters *bool `json:"allowDefaultSecurityAssociationParameters,omitempty"` + // AllowDefaultChildSecurityAssociationParameters Allows the use of child security association parameters by setting all parameters to the device's default unless explicitly specified. + AllowDefaultChildSecurityAssociationParameters *bool `json:"allowDefaultChildSecurityAssociationParameters,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go new file mode 100644 index 00000000..033b2141 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go @@ -0,0 +1,267 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Item undocumented +type Item struct { + // Entity is the base model of Item + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // ItemCategoryID undocumented + ItemCategoryID *UUID `json:"itemCategoryId,omitempty"` + // ItemCategoryCode undocumented + ItemCategoryCode *string `json:"itemCategoryCode,omitempty"` + // Blocked undocumented + Blocked *bool `json:"blocked,omitempty"` + // BaseUnitOfMeasureID undocumented + BaseUnitOfMeasureID *UUID `json:"baseUnitOfMeasureId,omitempty"` + // Gtin undocumented + Gtin *string `json:"gtin,omitempty"` + // Inventory undocumented + Inventory *int `json:"inventory,omitempty"` + // UnitPrice undocumented + UnitPrice *int `json:"unitPrice,omitempty"` + // PriceIncludesTax undocumented + PriceIncludesTax *bool `json:"priceIncludesTax,omitempty"` + // UnitCost undocumented + UnitCost *int `json:"unitCost,omitempty"` + // TaxGroupID undocumented + TaxGroupID *UUID `json:"taxGroupId,omitempty"` + // TaxGroupCode undocumented + TaxGroupCode *string `json:"taxGroupCode,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Picture undocumented + Picture []Picture `json:"picture,omitempty"` + // ItemCategory undocumented + ItemCategory *ItemCategory `json:"itemCategory,omitempty"` +} + +// ItemActionSet undocumented +type ItemActionSet struct { + // Object is the base model of ItemActionSet + Object + // Comment undocumented + Comment *CommentAction `json:"comment,omitempty"` + // Create undocumented + Create *CreateAction `json:"create,omitempty"` + // Delete undocumented + Delete *DeleteAction `json:"delete,omitempty"` + // Edit undocumented + Edit *EditAction `json:"edit,omitempty"` + // Mention undocumented + Mention *MentionAction `json:"mention,omitempty"` + // Move undocumented + Move *MoveAction `json:"move,omitempty"` + // Rename undocumented + Rename *RenameAction `json:"rename,omitempty"` + // Restore undocumented + Restore *RestoreAction `json:"restore,omitempty"` + // Share undocumented + Share *ShareAction `json:"share,omitempty"` + // Version undocumented + Version *VersionAction `json:"version,omitempty"` +} + +// ItemActionStat undocumented +type ItemActionStat struct { + // Object is the base model of ItemActionStat + Object + // ActionCount undocumented + ActionCount *int `json:"actionCount,omitempty"` + // ActorCount undocumented + ActorCount *int `json:"actorCount,omitempty"` +} + +// ItemActivity undocumented +type ItemActivity struct { + // Entity is the base model of ItemActivity + Entity + // Access undocumented + Access *AccessAction `json:"access,omitempty"` + // ActivityDateTime undocumented + ActivityDateTime *time.Time `json:"activityDateTime,omitempty"` + // Actor undocumented + Actor *IdentitySet `json:"actor,omitempty"` + // DriveItem undocumented + DriveItem *DriveItem `json:"driveItem,omitempty"` +} + +// ItemActivityOLD undocumented +type ItemActivityOLD struct { + // Entity is the base model of ItemActivityOLD + Entity + // Action undocumented + Action *ItemActionSet `json:"action,omitempty"` + // Actor undocumented + Actor *IdentitySet `json:"actor,omitempty"` + // Times undocumented + Times *ItemActivityTimeSet `json:"times,omitempty"` + // DriveItem undocumented + DriveItem *DriveItem `json:"driveItem,omitempty"` + // ListItem undocumented + ListItem *ListItem `json:"listItem,omitempty"` +} + +// ItemActivityStat undocumented +type ItemActivityStat struct { + // Entity is the base model of ItemActivityStat + Entity + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // Access undocumented + Access *ItemActionStat `json:"access,omitempty"` + // Create undocumented + Create *ItemActionStat `json:"create,omitempty"` + // Delete undocumented + Delete *ItemActionStat `json:"delete,omitempty"` + // Edit undocumented + Edit *ItemActionStat `json:"edit,omitempty"` + // Move undocumented + Move *ItemActionStat `json:"move,omitempty"` + // IsTrending undocumented + IsTrending *bool `json:"isTrending,omitempty"` + // IncompleteData undocumented + IncompleteData *IncompleteData `json:"incompleteData,omitempty"` + // Activities undocumented + Activities []ItemActivity `json:"activities,omitempty"` +} + +// ItemActivityTimeSet undocumented +type ItemActivityTimeSet struct { + // Object is the base model of ItemActivityTimeSet + Object + // LastRecordedDateTime undocumented + LastRecordedDateTime *time.Time `json:"lastRecordedDateTime,omitempty"` + // ObservedDateTime undocumented + ObservedDateTime *time.Time `json:"observedDateTime,omitempty"` + // RecordedDateTime undocumented + RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"` +} + +// ItemAnalytics undocumented +type ItemAnalytics struct { + // Entity is the base model of ItemAnalytics + Entity + // ItemActivityStats undocumented + ItemActivityStats []ItemActivityStat `json:"itemActivityStats,omitempty"` + // AllTime undocumented + AllTime *ItemActivityStat `json:"allTime,omitempty"` + // LastSevenDays undocumented + LastSevenDays *ItemActivityStat `json:"lastSevenDays,omitempty"` +} + +// ItemAttachment undocumented +type ItemAttachment struct { + // Attachment is the base model of ItemAttachment + Attachment + // Item undocumented + Item *OutlookItem `json:"item,omitempty"` +} + +// ItemBody undocumented +type ItemBody struct { + // Object is the base model of ItemBody + Object + // ContentType undocumented + ContentType *BodyType `json:"contentType,omitempty"` + // Content undocumented + Content *string `json:"content,omitempty"` +} + +// ItemCategory undocumented +type ItemCategory struct { + // Entity is the base model of ItemCategory + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// ItemEmail undocumented +type ItemEmail struct { + // ItemFacet is the base model of ItemEmail + ItemFacet + // Address undocumented + Address *string `json:"address,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Type undocumented + Type *EmailType `json:"type,omitempty"` +} + +// ItemFacet undocumented +type ItemFacet struct { + // Entity is the base model of ItemFacet + Entity + // AllowedAudiences undocumented + AllowedAudiences *AllowedAudiences `json:"allowedAudiences,omitempty"` + // Inference undocumented + Inference *InferenceData `json:"inference,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` +} + +// ItemPhone undocumented +type ItemPhone struct { + // ItemFacet is the base model of ItemPhone + ItemFacet + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Type undocumented + Type *PhoneType `json:"type,omitempty"` + // Number undocumented + Number *string `json:"number,omitempty"` +} + +// ItemPreviewInfo undocumented +type ItemPreviewInfo struct { + // Object is the base model of ItemPreviewInfo + Object + // GetURL undocumented + GetURL *string `json:"getUrl,omitempty"` + // PostParameters undocumented + PostParameters *string `json:"postParameters,omitempty"` + // PostURL undocumented + PostURL *string `json:"postUrl,omitempty"` +} + +// ItemReference undocumented +type ItemReference struct { + // Object is the base model of ItemReference + Object + // DriveID undocumented + DriveID *string `json:"driveId,omitempty"` + // DriveType undocumented + DriveType *string `json:"driveType,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Path undocumented + Path *string `json:"path,omitempty"` + // ShareID undocumented + ShareID *string `json:"shareId,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // SiteID undocumented + SiteID *string `json:"siteId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/JSONModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go new file mode 100644 index 00000000..10aa8215 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Journal undocumented +type Journal struct { + // Entity is the base model of Journal + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // BalancingAccountID undocumented + BalancingAccountID *UUID `json:"balancingAccountId,omitempty"` + // BalancingAccountNumber undocumented + BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` + // JournalLines undocumented + JournalLines []JournalLine `json:"journalLines,omitempty"` +} + +// JournalLine undocumented +type JournalLine struct { + // Entity is the base model of JournalLine + Entity + // JournalDisplayName undocumented + JournalDisplayName *string `json:"journalDisplayName,omitempty"` + // LineNumber undocumented + LineNumber *int `json:"lineNumber,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // AccountNumber undocumented + AccountNumber *string `json:"accountNumber,omitempty"` + // PostingDate undocumented + PostingDate *Date `json:"postingDate,omitempty"` + // DocumentNumber undocumented + DocumentNumber *string `json:"documentNumber,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // Amount undocumented + Amount *int `json:"amount,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/JustifyActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go new file mode 100644 index 00000000..521ef75b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go @@ -0,0 +1,87 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// KeyBooleanValuePair undocumented +type KeyBooleanValuePair struct { + // KeyTypedValuePair is the base model of KeyBooleanValuePair + KeyTypedValuePair + // Value The Boolean value of the key-value pair. + Value *bool `json:"value,omitempty"` +} + +// KeyCredential undocumented +type KeyCredential struct { + // Object is the base model of KeyCredential + Object + // CustomKeyIdentifier undocumented + CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // KeyID undocumented + KeyID *UUID `json:"keyId,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Usage undocumented + Usage *string `json:"usage,omitempty"` + // Key undocumented + Key *Binary `json:"key,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// KeyIntegerValuePair undocumented +type KeyIntegerValuePair struct { + // KeyTypedValuePair is the base model of KeyIntegerValuePair + KeyTypedValuePair + // Value The integer value of the key-value pair. + Value *int `json:"value,omitempty"` +} + +// KeyRealValuePair undocumented +type KeyRealValuePair struct { + // KeyTypedValuePair is the base model of KeyRealValuePair + KeyTypedValuePair + // Value The real (floating-point) value of the key-value pair. + Value *float64 `json:"value,omitempty"` +} + +// KeyStringValuePair undocumented +type KeyStringValuePair struct { + // KeyTypedValuePair is the base model of KeyStringValuePair + KeyTypedValuePair + // Value The string value of the key-value pair. + Value *string `json:"value,omitempty"` +} + +// KeyTypedValuePair undocumented +type KeyTypedValuePair struct { + // Object is the base model of KeyTypedValuePair + Object + // Key The string key of the key-value pair. + Key *string `json:"key,omitempty"` +} + +// KeyValue undocumented +type KeyValue struct { + // Object is the base model of KeyValue + Object + // Key undocumented + Key *string `json:"key,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// KeyValuePair undocumented +type KeyValuePair struct { + // Object is the base model of KeyValuePair + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go new file mode 100644 index 00000000..0dc843fb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go @@ -0,0 +1,41 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LabelActionBase undocumented +type LabelActionBase struct { + // Object is the base model of LabelActionBase + Object + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// LabelDetails undocumented +type LabelDetails struct { + // Object is the base model of LabelDetails + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Color undocumented + Color *string `json:"color,omitempty"` + // Sensitivity undocumented + Sensitivity *int `json:"sensitivity,omitempty"` + // Tooltip undocumented + Tooltip *string `json:"tooltip,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` +} + +// LabelPolicy undocumented +type LabelPolicy struct { + // Object is the base model of LabelPolicy + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LabelingOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LabelingOptionsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LearnedLocationModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LearnedLocationModelModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go new file mode 100644 index 00000000..aa9fd7e3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LicenseAssignmentState undocumented +type LicenseAssignmentState struct { + // Object is the base model of LicenseAssignmentState + Object + // SKUID undocumented + SKUID *UUID `json:"skuId,omitempty"` + // DisabledPlans undocumented + DisabledPlans []UUID `json:"disabledPlans,omitempty"` + // AssignedByGroup undocumented + AssignedByGroup *string `json:"assignedByGroup,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // Error undocumented + Error *string `json:"error,omitempty"` +} + +// LicenseDetails undocumented +type LicenseDetails struct { + // Entity is the base model of LicenseDetails + Entity + // ServicePlans undocumented + ServicePlans []ServicePlanInfo `json:"servicePlans,omitempty"` + // SKUID undocumented + SKUID *UUID `json:"skuId,omitempty"` + // SKUPartNumber undocumented + SKUPartNumber *string `json:"skuPartNumber,omitempty"` +} + +// LicenseInfoDetail undocumented +type LicenseInfoDetail struct { + // Object is the base model of LicenseInfoDetail + Object + // LicenseType undocumented + LicenseType *AzureADLicenseType `json:"licenseType,omitempty"` + // TotalLicenseCount undocumented + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // TotalAssignedCount undocumented + TotalAssignedCount *int `json:"totalAssignedCount,omitempty"` + // TotalUsageCount undocumented + TotalUsageCount *int `json:"totalUsageCount,omitempty"` +} + +// LicenseProcessingState undocumented +type LicenseProcessingState struct { + // Object is the base model of LicenseProcessingState + Object + // State undocumented + State *string `json:"state,omitempty"` +} + +// LicenseUnitsDetail undocumented +type LicenseUnitsDetail struct { + // Object is the base model of LicenseUnitsDetail + Object + // Enabled undocumented + Enabled *int `json:"enabled,omitempty"` + // Suspended undocumented + Suspended *int `json:"suspended,omitempty"` + // Warning undocumented + Warning *int `json:"warning,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go new file mode 100644 index 00000000..eedb7042 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go @@ -0,0 +1,69 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// List undocumented +type List struct { + // BaseItem is the base model of List + BaseItem + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // List undocumented + List *ListInfo `json:"list,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // System undocumented + System *SystemFacet `json:"system,omitempty"` + // Activities undocumented + Activities []ItemActivityOLD `json:"activities,omitempty"` + // Columns undocumented + Columns []ColumnDefinition `json:"columns,omitempty"` + // ContentTypes undocumented + ContentTypes []ContentType `json:"contentTypes,omitempty"` + // Drive undocumented + Drive *Drive `json:"drive,omitempty"` + // Items undocumented + Items []ListItem `json:"items,omitempty"` + // Subscriptions undocumented + Subscriptions []Subscription `json:"subscriptions,omitempty"` +} + +// ListInfo undocumented +type ListInfo struct { + // Object is the base model of ListInfo + Object + // ContentTypesEnabled undocumented + ContentTypesEnabled *bool `json:"contentTypesEnabled,omitempty"` + // Hidden undocumented + Hidden *bool `json:"hidden,omitempty"` + // Template undocumented + Template *string `json:"template,omitempty"` +} + +// ListItem undocumented +type ListItem struct { + // BaseItem is the base model of ListItem + BaseItem + // ContentType undocumented + ContentType *ContentTypeInfo `json:"contentType,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // Activities undocumented + Activities []ItemActivityOLD `json:"activities,omitempty"` + // Analytics undocumented + Analytics *ItemAnalytics `json:"analytics,omitempty"` + // DriveItem undocumented + DriveItem *DriveItem `json:"driveItem,omitempty"` + // Fields undocumented + Fields *FieldValueSet `json:"fields,omitempty"` + // Versions undocumented + Versions []ListItemVersion `json:"versions,omitempty"` +} + +// ListItemVersion undocumented +type ListItemVersion struct { + // BaseItemVersion is the base model of ListItemVersion + BaseItemVersion + // Fields undocumented + Fields *FieldValueSet `json:"fields,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LocaleInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LocateDeviceActionResultModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocatedRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LocatedRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go new file mode 100644 index 00000000..ad455598 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Location undocumented +type Location struct { + // Object is the base model of Location + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LocationEmailAddress undocumented + LocationEmailAddress *string `json:"locationEmailAddress,omitempty"` + // Address undocumented + Address *PhysicalAddress `json:"address,omitempty"` + // Coordinates undocumented + Coordinates *OutlookGeoCoordinates `json:"coordinates,omitempty"` + // LocationURI undocumented + LocationURI *string `json:"locationUri,omitempty"` + // LocationType undocumented + LocationType *LocationType `json:"locationType,omitempty"` + // UniqueID undocumented + UniqueID *string `json:"uniqueId,omitempty"` + // UniqueIDType undocumented + UniqueIDType *LocationUniqueIDType `json:"uniqueIdType,omitempty"` +} + +// LocationConstraint undocumented +type LocationConstraint struct { + // Object is the base model of LocationConstraint + Object + // Locations undocumented + Locations []LocationConstraintItem `json:"locations,omitempty"` + // IsRequired undocumented + IsRequired *bool `json:"isRequired,omitempty"` + // SuggestLocation undocumented + SuggestLocation *bool `json:"suggestLocation,omitempty"` +} + +// LocationConstraintItem undocumented +type LocationConstraintItem struct { + // Location is the base model of LocationConstraintItem + Location + // ResolveAvailability undocumented + ResolveAvailability *bool `json:"resolveAvailability,omitempty"` +} + +// LocationManagementCondition Contains the information to define a location management condition, an area of interest, to monitor. +type LocationManagementCondition struct { + // ManagementCondition is the base model of LocationManagementCondition + ManagementCondition +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LoggedOnUserModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LogonUserModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go new file mode 100644 index 00000000..15f682a7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// LookupColumn undocumented +type LookupColumn struct { + // Object is the base model of LookupColumn + Object + // AllowMultipleValues undocumented + AllowMultipleValues *bool `json:"allowMultipleValues,omitempty"` + // AllowUnlimitedLength undocumented + AllowUnlimitedLength *bool `json:"allowUnlimitedLength,omitempty"` + // ColumnName undocumented + ColumnName *string `json:"columnName,omitempty"` + // ListID undocumented + ListID *string `json:"listId,omitempty"` + // PrimaryLookupColumnID undocumented + PrimaryLookupColumnID *string `json:"primaryLookupColumnId,omitempty"` +} + +// LookupResultRow undocumented +type LookupResultRow struct { + // Entity is the base model of LookupResultRow + Entity + // Row undocumented + Row *string `json:"row,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go new file mode 100644 index 00000000..ddba816b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go @@ -0,0 +1,15 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MDMWindowsInformationProtectionPolicy Policy for Windows information protection with MDM +type MDMWindowsInformationProtectionPolicy struct { + // WindowsInformationProtection is the base model of MDMWindowsInformationProtectionPolicy + WindowsInformationProtection +} + +// MDMWindowsInformationProtectionPolicyPolicySetItem A class containing the properties used for mdm windows information protection policy PolicySetItem. +type MDMWindowsInformationProtectionPolicyPolicySetItem struct { + // PolicySetItem is the base model of MDMWindowsInformationProtectionPolicyPolicySetItem + PolicySetItem +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MfaDetailModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go new file mode 100644 index 00000000..e1360e10 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go @@ -0,0 +1,633 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// MacManagedAppProtection undocumented +type MacManagedAppProtection struct { + // Entity is the base model of MacManagedAppProtection + Entity +} + +// MacOSCertificateProfileBase Mac OS certificate profile. +type MacOSCertificateProfileBase struct { + // DeviceConfiguration is the base model of MacOSCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` +} + +// MacOSCompliancePolicy This class contains compliance settings for Mac OS. +type MacOSCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of MacOSCompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Whether or not to require a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordBlockSimple Indicates whether or not to block simple passwords. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 65535 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of password. Valid values 4 to 14 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // OsMinimumVersion Minimum MacOS version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum MacOS version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // OsMinimumBuildVersion Minimum MacOS build version. + OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"` + // OsMaximumBuildVersion Maximum MacOS build version. + OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"` + // SystemIntegrityProtectionEnabled Require that devices have enabled system integrity protection. + SystemIntegrityProtectionEnabled *bool `json:"systemIntegrityProtectionEnabled,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // StorageRequireEncryption Require encryption on Mac OS devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device. + GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"` + // FirewallEnabled Whether the firewall should be enabled or not. + FirewallEnabled *bool `json:"firewallEnabled,omitempty"` + // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option. + FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"` + // FirewallEnableStealthMode Corresponds to “Enable stealth mode.” + FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"` +} + +// MacOSCustomAppConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomAppConfiguration resource. +type MacOSCustomAppConfiguration struct { + // DeviceConfiguration is the base model of MacOSCustomAppConfiguration + DeviceConfiguration + // BundleID Bundle id for targeting. + BundleID *string `json:"bundleId,omitempty"` + // FileName Configuration file name (*.plist | *.xml). + FileName *string `json:"fileName,omitempty"` + // ConfigurationXML Configuration xml. (UTF8 encoded byte array) + ConfigurationXML *Binary `json:"configurationXml,omitempty"` +} + +// MacOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomConfiguration resource. +type MacOSCustomConfiguration struct { + // DeviceConfiguration is the base model of MacOSCustomConfiguration + DeviceConfiguration + // PayloadName Name that is displayed to the user. + PayloadName *string `json:"payloadName,omitempty"` + // PayloadFileName Payload file name (*.mobileconfig | *.xml). + PayloadFileName *string `json:"payloadFileName,omitempty"` + // Payload Payload. (UTF8 encoded byte array) + Payload *Binary `json:"payload,omitempty"` +} + +// MacOSDeviceFeaturesConfiguration MacOS device features configuration profile. +type MacOSDeviceFeaturesConfiguration struct { + // AppleDeviceFeaturesConfigurationBase is the base model of MacOSDeviceFeaturesConfiguration + AppleDeviceFeaturesConfigurationBase + // AutoLaunchItems List of applications, files, folders, and other items to launch when the user logs in. This collection can contain a maximum of 500 elements. + AutoLaunchItems []MacOSLaunchItem `json:"autoLaunchItems,omitempty"` + // AdminShowHostInfo Whether to show admin host information on the login window. + AdminShowHostInfo *bool `json:"adminShowHostInfo,omitempty"` + // LoginWindowText Custom text to be displayed on the login window. + LoginWindowText *string `json:"loginWindowText,omitempty"` + // AuthorizedUsersListHidden Whether to show the name and password dialog or a list of users on the login window. + AuthorizedUsersListHidden *bool `json:"authorizedUsersListHidden,omitempty"` + // AuthorizedUsersListHideLocalUsers Whether to show only network and system users in the authorized users list on the login window. + AuthorizedUsersListHideLocalUsers *bool `json:"authorizedUsersListHideLocalUsers,omitempty"` + // AuthorizedUsersListHideMobileAccounts Whether to hide mobile users in the authorized users list on the login window. + AuthorizedUsersListHideMobileAccounts *bool `json:"authorizedUsersListHideMobileAccounts,omitempty"` + // AuthorizedUsersListIncludeNetworkUsers Whether to show network users in the authorized users list on the login window. + AuthorizedUsersListIncludeNetworkUsers *bool `json:"authorizedUsersListIncludeNetworkUsers,omitempty"` + // AuthorizedUsersListHideAdminUsers Whether to hide admin users in the authorized users list on the login window. + AuthorizedUsersListHideAdminUsers *bool `json:"authorizedUsersListHideAdminUsers,omitempty"` + // AuthorizedUsersListShowOtherManagedUsers Whether to show other users in the authorized users list on the login window. + AuthorizedUsersListShowOtherManagedUsers *bool `json:"authorizedUsersListShowOtherManagedUsers,omitempty"` + // ShutDownDisabled Whether to hide the Shut Down button item on the login window. + ShutDownDisabled *bool `json:"shutDownDisabled,omitempty"` + // RestartDisabled Whether to hide the Restart button item on the login window. + RestartDisabled *bool `json:"restartDisabled,omitempty"` + // SleepDisabled Whether to hide the Sleep menu item on the login window. + SleepDisabled *bool `json:"sleepDisabled,omitempty"` + // ConsoleAccessDisabled Whether the Other user will disregard use of the `>console> special user name. + ConsoleAccessDisabled *bool `json:"consoleAccessDisabled,omitempty"` + // ShutDownDisabledWhileLoggedIn Whether the Shut Down menu item on the login window will be disabled while the user is logged in. + ShutDownDisabledWhileLoggedIn *bool `json:"shutDownDisabledWhileLoggedIn,omitempty"` + // RestartDisabledWhileLoggedIn Whether the Restart menu item on the login window will be disabled while the user is logged in. + RestartDisabledWhileLoggedIn *bool `json:"restartDisabledWhileLoggedIn,omitempty"` + // PowerOffDisabledWhileLoggedIn Whether the Power Off menu item on the login window will be disabled while the user is logged in. + PowerOffDisabledWhileLoggedIn *bool `json:"powerOffDisabledWhileLoggedIn,omitempty"` + // LogOutDisabledWhileLoggedIn Whether the Log Out menu item on the login window will be disabled while the user is logged in. + LogOutDisabledWhileLoggedIn *bool `json:"logOutDisabledWhileLoggedIn,omitempty"` + // ScreenLockDisableImmediate Whether to disable the immediate screen lock functions. + ScreenLockDisableImmediate *bool `json:"screenLockDisableImmediate,omitempty"` + // AssociatedDomains Gets or sets a list that maps apps to their associated domains. The key should match the app's ID, and the value should be a string in the form of "service:domain" where domain is a fully qualified hostname (e.g. webcredentials:example.com). This collection can contain a maximum of 500 elements. + AssociatedDomains []KeyValuePair `json:"associatedDomains,omitempty"` + // SingleSignOnExtension Gets or sets a single sign-on extension profile. + SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"` + // SingleSignOnExtensionPkinitCertificate undocumented + SingleSignOnExtensionPkinitCertificate *MacOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"` +} + +// MacOSEndpointProtectionConfiguration MacOS endpoint protection configuration profile. +type MacOSEndpointProtectionConfiguration struct { + // DeviceConfiguration is the base model of MacOSEndpointProtectionConfiguration + DeviceConfiguration + // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device. + GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"` + // GatekeeperBlockOverride If set to true, the user override for Gatekeeper will be disabled. + GatekeeperBlockOverride *bool `json:"gatekeeperBlockOverride,omitempty"` + // FirewallEnabled Whether the firewall should be enabled or not. + FirewallEnabled *bool `json:"firewallEnabled,omitempty"` + // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option. + FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"` + // FirewallEnableStealthMode Corresponds to “Enable stealth mode.” + FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"` + // FirewallApplications List of applications with firewall settings. Firewall settings for applications not on this list are determined by the user. This collection can contain a maximum of 500 elements. + FirewallApplications []MacOSFirewallApplication `json:"firewallApplications,omitempty"` + // FileVaultEnabled Whether FileVault should be enabled or not. + FileVaultEnabled *bool `json:"fileVaultEnabled,omitempty"` + // FileVaultSelectedRecoveryKeyTypes Required if FileVault is enabled, determines the type(s) of recovery key to use. + FileVaultSelectedRecoveryKeyTypes *MacOSFileVaultRecoveryKeyTypes `json:"fileVaultSelectedRecoveryKeyTypes,omitempty"` + // FileVaultInstitutionalRecoveryKeyCertificate Required if selected recovery key type(s) include InstitutionalRecoveryKey. The DER Encoded certificate file used to set an institutional recovery key. + FileVaultInstitutionalRecoveryKeyCertificate *Binary `json:"fileVaultInstitutionalRecoveryKeyCertificate,omitempty"` + // FileVaultInstitutionalRecoveryKeyCertificateFileName File name of the institutional recovery key certificate to display in UI. (*.der). + FileVaultInstitutionalRecoveryKeyCertificateFileName *string `json:"fileVaultInstitutionalRecoveryKeyCertificateFileName,omitempty"` + // FileVaultPersonalRecoveryKeyHelpMessage Required if selected recovery key type(s) include PersonalRecoveryKey. A short message displayed to the user that explains how they can retrieve their personal recovery key. + FileVaultPersonalRecoveryKeyHelpMessage *string `json:"fileVaultPersonalRecoveryKeyHelpMessage,omitempty"` + // FileVaultAllowDeferralUntilSignOut Optional. If set to true, the user can defer the enabling of FileVault until they sign out. + FileVaultAllowDeferralUntilSignOut *bool `json:"fileVaultAllowDeferralUntilSignOut,omitempty"` + // FileVaultNumberOfTimesUserCanIgnore Optional. When using the Defer option, this is the maximum number of times the user can ignore prompts to enable FileVault before FileVault will be required for the user to sign in. If set to -1, it will always prompt to enable FileVault until FileVault is enabled, though it will allow the user to bypass enabling FileVault. Setting this to 0 will disable the feature. + FileVaultNumberOfTimesUserCanIgnore *int `json:"fileVaultNumberOfTimesUserCanIgnore,omitempty"` + // FileVaultDisablePromptAtSignOut Optional. When using the Defer option, if set to true, the user is not prompted to enable FileVault at sign-out. + FileVaultDisablePromptAtSignOut *bool `json:"fileVaultDisablePromptAtSignOut,omitempty"` + // FileVaultPersonalRecoveryKeyRotationInMonths Optional. If selected recovery key type(s) include PersonalRecoveryKey, the frequency to rotate that key, in months. + FileVaultPersonalRecoveryKeyRotationInMonths *int `json:"fileVaultPersonalRecoveryKeyRotationInMonths,omitempty"` +} + +// MacOSEnterpriseWiFiConfiguration MacOS Wi-Fi WPA-Enterprise/WPA2-Enterprise configuration profile. +type MacOSEnterpriseWiFiConfiguration struct { + // MacOSWiFiConfiguration is the base model of MacOSEnterpriseWiFiConfiguration + MacOSWiFiConfiguration + // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *EapType `json:"eapType,omitempty"` + // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. + EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"` + // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this Wi-Fi network. + TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"` + // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"` + // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// MacOSExtensionsConfiguration MacOS extensions configuration profile. +type MacOSExtensionsConfiguration struct { + // DeviceConfiguration is the base model of MacOSExtensionsConfiguration + DeviceConfiguration + // KernelExtensionOverridesAllowed If set to true, users can approve additional kernel extensions not explicitly allowed by configurations profiles. + KernelExtensionOverridesAllowed *bool `json:"kernelExtensionOverridesAllowed,omitempty"` + // KernelExtensionAllowedTeamIdentifiers All kernel extensions validly signed by the team identifiers in this list will be allowed to load. + KernelExtensionAllowedTeamIdentifiers []string `json:"kernelExtensionAllowedTeamIdentifiers,omitempty"` + // KernelExtensionsAllowed A list of kernel extensions that will be allowed to load. . This collection can contain a maximum of 500 elements. + KernelExtensionsAllowed []MacOSKernelExtension `json:"kernelExtensionsAllowed,omitempty"` +} + +// MacOSFirewallApplication undocumented +type MacOSFirewallApplication struct { + // Object is the base model of MacOSFirewallApplication + Object + // BundleID BundleId of the application. + BundleID *string `json:"bundleId,omitempty"` + // AllowsIncomingConnections Whether or not incoming connections are allowed. + AllowsIncomingConnections *bool `json:"allowsIncomingConnections,omitempty"` +} + +// MacOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource. +type MacOSGeneralDeviceConfiguration struct { + // DeviceConfiguration is the base model of MacOSGeneralDeviceConfiguration + DeviceConfiguration + // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements. + CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"` + // CompliantAppListType List that is in the CompliantAppsList. + CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"` + // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain. + EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"` + // PasswordBlockSimple Block simple passwords. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays Number of days before the password expires. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumCharacterSetCount Number of character sets a password must contain. Valid values 0 to 4 + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordMinimumLength Minimum length of passwords. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity required before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity required before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordRequiredType Type of password that is required. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordRequired Whether or not to require a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked (macOS 10.12 and later). + KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"` + // AirPrintBlocked Indicates whether or not AirPrint is blocked (macOS 10.12 and later). + AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"` + // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (macOS 10.13 and later). + AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"` + // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (macOS 10.3 and later). + AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"` + // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari. + SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"` + // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode. + ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"` + // SpotlightBlockInternetResults Indicates whether or not to block Spotlight from returning any results from an Internet search. + SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"` + // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input. + KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"` + // DefinitionLookupBlocked Indicates whether or not to block definition lookup. + DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"` + // AppleWatchBlockAutoUnlock Indicates whether or to block users from unlocking their Mac with Apple Watch. + AppleWatchBlockAutoUnlock *bool `json:"appleWatchBlockAutoUnlock,omitempty"` + // ITunesBlockFileSharing Indicates whether or not to block files from being transferred using iTunes. + ITunesBlockFileSharing *bool `json:"iTunesBlockFileSharing,omitempty"` + // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync. + ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"` + // ICloudBlockMail Indicates whether or not to block iCloud from syncing mail. + ICloudBlockMail *bool `json:"iCloudBlockMail,omitempty"` + // ICloudBlockAddressBook Indicates whether or not to block iCloud from syncing contacts. + ICloudBlockAddressBook *bool `json:"iCloudBlockAddressBook,omitempty"` + // ICloudBlockCalendar Indicates whether or not to block iCloud from syncing calendars. + ICloudBlockCalendar *bool `json:"iCloudBlockCalendar,omitempty"` + // ICloudBlockReminders Indicates whether or not to block iCloud from syncing reminders. + ICloudBlockReminders *bool `json:"iCloudBlockReminders,omitempty"` + // ICloudBlockBookmarks Indicates whether or not to block iCloud from syncing bookmarks. + ICloudBlockBookmarks *bool `json:"iCloudBlockBookmarks,omitempty"` + // ICloudBlockNotes Indicates whether or not to block iCloud from syncing notes. + ICloudBlockNotes *bool `json:"iCloudBlockNotes,omitempty"` + // AirDropBlocked Indicates whether or not to allow AirDrop. + AirDropBlocked *bool `json:"airDropBlocked,omitempty"` + // PasswordBlockModification Indicates whether or not to allow passcode modification. + PasswordBlockModification *bool `json:"passwordBlockModification,omitempty"` + // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock. + PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"` + // PasswordBlockAutoFill Indicates whether or not to block the AutoFill Passwords feature. + PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"` + // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices. + PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"` + // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature. + PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"` + // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90 + SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"` + // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode. + SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"` + // ContentCachingBlocked Indicates whether or not to allow content caching. + ContentCachingBlocked *bool `json:"contentCachingBlocked,omitempty"` + // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library. + ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app. Requires MDM enrollment via Apple School Manager or Apple Business Manager. + ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"` + // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting. Requires MDM enrollment via Apple School Manager or Apple Business Manager. + ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"` + // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager. + ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"` + // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will be required to request permission from the teacher when attempting to leave the course. Requires MDM enrollment via Apple School Manager or Apple Business Manager. + ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"` + // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager. + ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"` + // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work that they started on a MacOS device on another iOS or MacOS device (MacOS 10.15 or later). + ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"` +} + +// MacOSImportedPFXCertificateProfile MacOS PFX Import certificate profile +type MacOSImportedPFXCertificateProfile struct { + // MacOSCertificateProfileBase is the base model of MacOSImportedPFXCertificateProfile + MacOSCertificateProfileBase + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// MacOSKerberosSingleSignOnExtension undocumented +type MacOSKerberosSingleSignOnExtension struct { + // KerberosSingleSignOnExtension is the base model of MacOSKerberosSingleSignOnExtension + KerberosSingleSignOnExtension +} + +// MacOSKernelExtension undocumented +type MacOSKernelExtension struct { + // Object is the base model of MacOSKernelExtension + Object + // TeamIdentifier The team identifier that was used to sign the kernel extension. + TeamIdentifier *string `json:"teamIdentifier,omitempty"` + // BundleID Bundle ID of the kernel extension. + BundleID *string `json:"bundleId,omitempty"` +} + +// MacOSLaunchItem undocumented +type MacOSLaunchItem struct { + // Object is the base model of MacOSLaunchItem + Object + // Path Path to the launch item. + Path *string `json:"path,omitempty"` + // Hide Whether or not to hide the item from the Users and Groups List. + Hide *bool `json:"hide,omitempty"` +} + +// MacOSLobApp Contains properties and inherited properties for the MacOS LOB App. +type MacOSLobApp struct { + // MobileLobApp is the base model of MacOSLobApp + MobileLobApp + // BundleID The bundle id. + BundleID *string `json:"bundleId,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *MacOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // BuildNumber The build number of MacOS Line of Business (LoB) app. + BuildNumber *string `json:"buildNumber,omitempty"` + // VersionNumber The version number of MacOS Line of Business (LoB) app. + VersionNumber *string `json:"versionNumber,omitempty"` + // ChildApps The app list in this bundle package + ChildApps []MacOSLobChildApp `json:"childApps,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` + // Md5HashChunkSize The chunk size for MD5 hash + Md5HashChunkSize *int `json:"md5HashChunkSize,omitempty"` + // Md5Hash The MD5 hash codes + Md5Hash []string `json:"md5Hash,omitempty"` + // IgnoreVersionDetection A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for macOS Line of Business (LoB) apps that use a self update feature. + IgnoreVersionDetection *bool `json:"ignoreVersionDetection,omitempty"` +} + +// MacOSLobChildApp undocumented +type MacOSLobChildApp struct { + // Object is the base model of MacOSLobChildApp + Object + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // BuildNumber The build number of MacOS Line of Business (LoB) app. + BuildNumber *string `json:"buildNumber,omitempty"` + // VersionNumber The version number of MacOS Line of Business (LoB) app. + VersionNumber *string `json:"versionNumber,omitempty"` +} + +// MacOSMicrosoftEdgeApp Contains properties and inherited properties for the MacOS Microsoft Edge App. +type MacOSMicrosoftEdgeApp struct { + // MobileApp is the base model of MacOSMicrosoftEdgeApp + MobileApp +} + +// MacOSMinimumOperatingSystem undocumented +type MacOSMinimumOperatingSystem struct { + // Object is the base model of MacOSMinimumOperatingSystem + Object + // V10_7 Mac OS 10.7 or later. + V10_7 *bool `json:"v10_7,omitempty"` + // V10_8 Mac OS 10.8 or later. + V10_8 *bool `json:"v10_8,omitempty"` + // V10_9 Mac OS 10.9 or later. + V10_9 *bool `json:"v10_9,omitempty"` + // V10_10 Mac OS 10.10 or later. + V10_10 *bool `json:"v10_10,omitempty"` + // V10_11 Mac OS 10.11 or later. + V10_11 *bool `json:"v10_11,omitempty"` + // V10_12 Mac OS 10.12 or later. + V10_12 *bool `json:"v10_12,omitempty"` + // V10_13 Mac OS 10.13 or later. + V10_13 *bool `json:"v10_13,omitempty"` + // V10_14 Mac OS 10.14 or later. + V10_14 *bool `json:"v10_14,omitempty"` + // V10_15 Mac OS 10.15 or later. + V10_15 *bool `json:"v10_15,omitempty"` +} + +// MacOSOfficeSuiteApp Contains properties and inherited properties for the MacOS Office Suite App. +type MacOSOfficeSuiteApp struct { + // MobileApp is the base model of MacOSOfficeSuiteApp + MobileApp +} + +// MacOSPkcsCertificateProfile MacOS PKCS certificate profile. +type MacOSPkcsCertificateProfile struct { + // MacOSCertificateProfileBase is the base model of MacOSPkcsCertificateProfile + MacOSCertificateProfileBase + // CertificationAuthority PKCS certification authority FQDN. + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS certification authority Name. + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS certificate template name. + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Format string that defines the subject alternative name. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // SubjectNameFormatString Format string that defines the subject name. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // AllowAllAppsAccess AllowAllAppsAccess setting + AllowAllAppsAccess *bool `json:"allowAllAppsAccess,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// MacOSScepCertificateProfile Mac OS SCEP certificate profile. +type MacOSScepCertificateProfile struct { + // MacOSCertificateProfileBase is the base model of MacOSScepCertificateProfile + MacOSCertificateProfileBase + // ScepServerUrls SCEP Server Url(s). + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage. + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size. + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm. + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` + // RootCertificate undocumented + RootCertificate *MacOSTrustedRootCertificate `json:"rootCertificate,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// MacOSTrustedRootCertificate OS X Trusted Root Certificate configuration profile. +type MacOSTrustedRootCertificate struct { + // DeviceConfiguration is the base model of MacOSTrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate. + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// MacOSVpnConfiguration By providing the configurations in this profile you can instruct the Mac device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type MacOSVpnConfiguration struct { + // AppleVPNConfiguration is the base model of MacOSVpnConfiguration + AppleVPNConfiguration + // IdentityCertificate undocumented + IdentityCertificate *MacOSCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// MacOSWiFiConfiguration By providing the configurations in this profile you can instruct the macOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. +type MacOSWiFiConfiguration struct { + // DeviceConfiguration is the base model of MacOSWiFiConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // Ssid This is the name of the Wi-Fi network that is broadcast to all devices. + Ssid *string `json:"ssid,omitempty"` + // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. + WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"` + // ProxySettings Proxy Type for this Wi-Fi connection + ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"` + // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected. + ProxyManualAddress *string `json:"proxyManualAddress,omitempty"` + // ProxyManualPort Port of the proxy server when manual configuration is selected. + ProxyManualPort *int `json:"proxyManualPort,omitempty"` + // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file. + ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"` + // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network. + PreSharedKey *string `json:"preSharedKey,omitempty"` +} + +// MacOSWiredNetworkConfiguration MacOS wired network configuration profile. +type MacOSWiredNetworkConfiguration struct { + // DeviceConfiguration is the base model of MacOSWiredNetworkConfiguration + DeviceConfiguration + // NetworkName Network Name + NetworkName *string `json:"networkName,omitempty"` + // NetworkInterface Network interface. + NetworkInterface *WiredNetworkInterface `json:"networkInterface,omitempty"` + // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the wired network. + EapType *EapType `json:"eapType,omitempty"` + // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. + EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"` + // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this wired network. + TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"` + // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // NonEapAuthenticationMethodForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. + NonEapAuthenticationMethodForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"nonEapAuthenticationMethodForEapTtls,omitempty"` + // EnableOuterIdentityPrivacy Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this wired network using their real username is displayed as 'anonymous'. + EnableOuterIdentityPrivacy *string `json:"enableOuterIdentityPrivacy,omitempty"` + // RootCertificateForServerValidation undocumented + RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} + +// MacOsVPPApp Contains properties and inherited properties for MacOS Volume-Purchased Program (VPP) Apps. +type MacOsVPPApp struct { + // MobileApp is the base model of MacOsVPPApp + MobileApp + // UsedLicenseCount The number of VPP licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // TotalLicenseCount The total number of VPP licenses. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // ReleaseDateTime The VPP application release date and time. + ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"` + // AppStoreURL The store URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // LicensingType The supported License Type. + LicensingType *VPPLicensingType `json:"licensingType,omitempty"` + // VPPTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token + VPPTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"` + // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`. + VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"` + // VPPTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token. + VPPTokenAppleID *string `json:"vppTokenAppleId,omitempty"` + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // VPPTokenID Identifier of the VPP token associated with this app. + VPPTokenID *string `json:"vppTokenId,omitempty"` + // RevokeLicenseActionResults Results of revoke license actions on this app. + RevokeLicenseActionResults []MacOsVPPAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"` + // AssignedLicenses undocumented + AssignedLicenses []MacOsVPPAppAssignedLicense `json:"assignedLicenses,omitempty"` +} + +// MacOsVPPAppAssignedLicense MacOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update. +type MacOsVPPAppAssignedLicense struct { + // Entity is the base model of MacOsVPPAppAssignedLicense + Entity + // UserEmailAddress The user email address. + UserEmailAddress *string `json:"userEmailAddress,omitempty"` + // UserID The user ID. + UserID *string `json:"userId,omitempty"` + // UserName The user name. + UserName *string `json:"userName,omitempty"` + // UserPrincipalName The user principal name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// MacOsVPPAppAssignmentSettings undocumented +type MacOsVPPAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of MacOsVPPAppAssignmentSettings + MobileAppAssignmentSettings + // UseDeviceLicensing Whether or not to use device licensing. + UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"` +} + +// MacOsVPPAppRevokeLicensesActionResult undocumented +type MacOsVPPAppRevokeLicensesActionResult struct { + // Object is the base model of MacOsVPPAppRevokeLicensesActionResult + Object + // UserID UserId associated with the action. + UserID *string `json:"userId,omitempty"` + // ManagedDeviceID DeviceId associated with the action. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // TotalLicensesCount A count of the number of licenses for which revoke was attempted. + TotalLicensesCount *int `json:"totalLicensesCount,omitempty"` + // FailedLicensesCount A count of the number of licenses for which revoke failed. + FailedLicensesCount *int `json:"failedLicensesCount,omitempty"` + // ActionFailureReason The reason for the revoke licenses action failure. + ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"` + // ActionName Action name + ActionName *string `json:"actionName,omitempty"` + // ActionState State of the action + ActionState *ActionState `json:"actionState,omitempty"` + // StartDateTime Time the action was initiated + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // LastUpdatedDateTime Time the action state was last updated + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go new file mode 100644 index 00000000..bd602c59 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go @@ -0,0 +1,99 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MailAssessmentRequestObject undocumented +type MailAssessmentRequestObject struct { + // ThreatAssessmentRequestObject is the base model of MailAssessmentRequestObject + ThreatAssessmentRequestObject + // RecipientEmail undocumented + RecipientEmail *string `json:"recipientEmail,omitempty"` + // DestinationRoutingReason undocumented + DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"` + // MessageURI undocumented + MessageURI *string `json:"messageUri,omitempty"` +} + +// MailFolder undocumented +type MailFolder struct { + // Entity is the base model of MailFolder + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ParentFolderID undocumented + ParentFolderID *string `json:"parentFolderId,omitempty"` + // ChildFolderCount undocumented + ChildFolderCount *int `json:"childFolderCount,omitempty"` + // UnreadItemCount undocumented + UnreadItemCount *int `json:"unreadItemCount,omitempty"` + // TotalItemCount undocumented + TotalItemCount *int `json:"totalItemCount,omitempty"` + // WellKnownName undocumented + WellKnownName *string `json:"wellKnownName,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Messages undocumented + Messages []Message `json:"messages,omitempty"` + // MessageRules undocumented + MessageRules []MessageRule `json:"messageRules,omitempty"` + // ChildFolders undocumented + ChildFolders []MailFolder `json:"childFolders,omitempty"` + // UserConfigurations undocumented + UserConfigurations []UserConfiguration `json:"userConfigurations,omitempty"` +} + +// MailSearchFolder undocumented +type MailSearchFolder struct { + // MailFolder is the base model of MailSearchFolder + MailFolder + // IsSupported undocumented + IsSupported *bool `json:"isSupported,omitempty"` + // IncludeNestedFolders undocumented + IncludeNestedFolders *bool `json:"includeNestedFolders,omitempty"` + // SourceFolderIDs undocumented + SourceFolderIDs []string `json:"sourceFolderIds,omitempty"` + // FilterQuery undocumented + FilterQuery *string `json:"filterQuery,omitempty"` +} + +// MailTips undocumented +type MailTips struct { + // Object is the base model of MailTips + Object + // EmailAddress undocumented + EmailAddress *EmailAddress `json:"emailAddress,omitempty"` + // AutomaticReplies undocumented + AutomaticReplies *AutomaticRepliesMailTips `json:"automaticReplies,omitempty"` + // MailboxFull undocumented + MailboxFull *bool `json:"mailboxFull,omitempty"` + // CustomMailTip undocumented + CustomMailTip *string `json:"customMailTip,omitempty"` + // ExternalMemberCount undocumented + ExternalMemberCount *int `json:"externalMemberCount,omitempty"` + // TotalMemberCount undocumented + TotalMemberCount *int `json:"totalMemberCount,omitempty"` + // DeliveryRestricted undocumented + DeliveryRestricted *bool `json:"deliveryRestricted,omitempty"` + // IsModerated undocumented + IsModerated *bool `json:"isModerated,omitempty"` + // RecipientScope undocumented + RecipientScope *RecipientScopeType `json:"recipientScope,omitempty"` + // RecipientSuggestions undocumented + RecipientSuggestions []Recipient `json:"recipientSuggestions,omitempty"` + // MaxMessageSize undocumented + MaxMessageSize *int `json:"maxMessageSize,omitempty"` + // Error undocumented + Error *MailTipsError `json:"error,omitempty"` +} + +// MailTipsError undocumented +type MailTipsError struct { + // Object is the base model of MailTipsError + Object + // Message undocumented + Message *string `json:"message,omitempty"` + // Code undocumented + Code *string `json:"code,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go new file mode 100644 index 00000000..398e1c25 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MailboxSettings undocumented +type MailboxSettings struct { + // Object is the base model of MailboxSettings + Object + // AutomaticRepliesSetting undocumented + AutomaticRepliesSetting *AutomaticRepliesSetting `json:"automaticRepliesSetting,omitempty"` + // ArchiveFolder undocumented + ArchiveFolder *string `json:"archiveFolder,omitempty"` + // TimeZone undocumented + TimeZone *string `json:"timeZone,omitempty"` + // Language undocumented + Language *LocaleInfo `json:"language,omitempty"` + // DelegateMeetingMessageDeliveryOptions undocumented + DelegateMeetingMessageDeliveryOptions *DelegateMeetingMessageDeliveryOptions `json:"delegateMeetingMessageDeliveryOptions,omitempty"` + // WorkingHours undocumented + WorkingHours *WorkingHours `json:"workingHours,omitempty"` + // DateFormat undocumented + DateFormat *string `json:"dateFormat,omitempty"` + // TimeFormat undocumented + TimeFormat *string `json:"timeFormat,omitempty"` +} + +// MailboxUsageDetail undocumented +type MailboxUsageDetail struct { + // Entity is the base model of MailboxUsageDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // CreatedDate undocumented + CreatedDate *Date `json:"createdDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // ItemCount undocumented + ItemCount *int `json:"itemCount,omitempty"` + // StorageUsedInBytes undocumented + StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"` + // DeletedItemCount undocumented + DeletedItemCount *int `json:"deletedItemCount,omitempty"` + // DeletedItemSizeInBytes undocumented + DeletedItemSizeInBytes *int `json:"deletedItemSizeInBytes,omitempty"` + // IssueWarningQuotaInBytes undocumented + IssueWarningQuotaInBytes *int `json:"issueWarningQuotaInBytes,omitempty"` + // ProhibitSendQuotaInBytes undocumented + ProhibitSendQuotaInBytes *int `json:"prohibitSendQuotaInBytes,omitempty"` + // ProhibitSendReceiveQuotaInBytes undocumented + ProhibitSendReceiveQuotaInBytes *int `json:"prohibitSendReceiveQuotaInBytes,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// MailboxUsageMailboxCounts undocumented +type MailboxUsageMailboxCounts struct { + // Entity is the base model of MailboxUsageMailboxCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// MailboxUsageQuotaStatusMailboxCounts undocumented +type MailboxUsageQuotaStatusMailboxCounts struct { + // Entity is the base model of MailboxUsageQuotaStatusMailboxCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UnderLimit undocumented + UnderLimit *int `json:"underLimit,omitempty"` + // WarningIssued undocumented + WarningIssued *int `json:"warningIssued,omitempty"` + // SendProhibited undocumented + SendProhibited *int `json:"sendProhibited,omitempty"` + // SendReceiveProhibited undocumented + SendReceiveProhibited *int `json:"sendReceiveProhibited,omitempty"` + // Indeterminate undocumented + Indeterminate *int `json:"indeterminate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// MailboxUsageStorage undocumented +type MailboxUsageStorage struct { + // Entity is the base model of MailboxUsageStorage + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // StorageUsedInBytes undocumented + StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go new file mode 100644 index 00000000..596220f6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MalwareRiskEvent undocumented +type MalwareRiskEvent struct { + // LocatedRiskEvent is the base model of MalwareRiskEvent + LocatedRiskEvent + // DeviceInformation undocumented + DeviceInformation *string `json:"deviceInformation,omitempty"` + // MalwareName undocumented + MalwareName *string `json:"malwareName,omitempty"` +} + +// MalwareState undocumented +type MalwareState struct { + // Object is the base model of MalwareState + Object + // Category undocumented + Category *string `json:"category,omitempty"` + // Family undocumented + Family *string `json:"family,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Severity undocumented + Severity *string `json:"severity,omitempty"` + // WasRunning undocumented + WasRunning *bool `json:"wasRunning,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go new file mode 100644 index 00000000..0c8671dd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go @@ -0,0 +1,852 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "encoding/json" + "time" +) + +// ManagedAllDeviceCertificateState undocumented +type ManagedAllDeviceCertificateState struct { + // Entity is the base model of ManagedAllDeviceCertificateState + Entity + // CertificateRevokeStatus Revoke status + CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"` + // ManagedDeviceDisplayName Device display name + ManagedDeviceDisplayName *string `json:"managedDeviceDisplayName,omitempty"` + // UserPrincipalName User principal name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // CertificateExpirationDateTime Certificate expiry date + CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"` + // CertificateIssuerName Issuer + CertificateIssuerName *string `json:"certificateIssuerName,omitempty"` + // CertificateThumbprint Thumbprint + CertificateThumbprint *string `json:"certificateThumbprint,omitempty"` + // CertificateSerialNumber Serial number + CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"` + // CertificateSubjectName Certificate subject name + CertificateSubjectName *string `json:"certificateSubjectName,omitempty"` + // CertificateKeyUsages Key Usage + CertificateKeyUsages *int `json:"certificateKeyUsages,omitempty"` + // CertificateExtendedKeyUsages Enhanced Key Usage + CertificateExtendedKeyUsages *string `json:"certificateExtendedKeyUsages,omitempty"` + // CertificateIssuanceDateTime Issuance date + CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"` +} + +// ManagedAndroidLobApp Contains properties and inherited properties for Managed Android Line Of Business apps. +type ManagedAndroidLobApp struct { + // ManagedMobileLobApp is the base model of ManagedAndroidLobApp + ManagedMobileLobApp + // PackageID The package identifier. + PackageID *string `json:"packageId,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // VersionName The version name of managed Android Line of Business (LoB) app. + VersionName *string `json:"versionName,omitempty"` + // VersionCode The version code of managed Android Line of Business (LoB) app. + VersionCode *string `json:"versionCode,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// ManagedAndroidStoreApp Contains properties and inherited properties for Android store apps that you can manage with an Intune app protection policy. +type ManagedAndroidStoreApp struct { + // ManagedApp is the base model of ManagedAndroidStoreApp + ManagedApp + // PackageID The app's package ID. + PackageID *string `json:"packageId,omitempty"` + // AppStoreURL The Android AppStoreUrl. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum supported operating system. + MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` +} + +// ManagedApp Abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy. +type ManagedApp struct { + // MobileApp is the base model of ManagedApp + MobileApp + // AppAvailability The Application's availability. + AppAvailability *ManagedAppAvailability `json:"appAvailability,omitempty"` + // Version The Application's version. + Version *string `json:"version,omitempty"` +} + +// ManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to apps for users to whom the configuration is scoped +type ManagedAppConfiguration struct { + // ManagedAppPolicy is the base model of ManagedAppConfiguration + ManagedAppPolicy + // CustomSettings A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service + CustomSettings []KeyValuePair `json:"customSettings,omitempty"` +} + +// ManagedAppDiagnosticStatus undocumented +type ManagedAppDiagnosticStatus struct { + // Object is the base model of ManagedAppDiagnosticStatus + Object + // ValidationName The validation friendly name + ValidationName *string `json:"validationName,omitempty"` + // State The state of the operation + State *string `json:"state,omitempty"` + // MitigationInstruction Instruction on how to mitigate a failed validation + MitigationInstruction *string `json:"mitigationInstruction,omitempty"` +} + +// ManagedAppOperation Represents an operation applied against an app registration. +type ManagedAppOperation struct { + // Entity is the base model of ManagedAppOperation + Entity + // DisplayName The operation name. + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime The last time the app operation was modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // State The current state of the operation + State *string `json:"state,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// ManagedAppPolicy The ManagedAppPolicy resource represents a base type for platform specific policies. +type ManagedAppPolicy struct { + // Entity is the base model of ManagedAppPolicy + Entity + // DisplayName Policy display name. + DisplayName *string `json:"displayName,omitempty"` + // Description The policy's description. + Description *string `json:"description,omitempty"` + // CreatedDateTime The date and time the policy was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Last time the policy was modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// ManagedAppPolicyDeploymentSummary The ManagedAppEntity is the base entity type for all other entity types under app management workflow. +type ManagedAppPolicyDeploymentSummary struct { + // Entity is the base model of ManagedAppPolicyDeploymentSummary + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ConfigurationDeployedUserCount undocumented + ConfigurationDeployedUserCount *int `json:"configurationDeployedUserCount,omitempty"` + // LastRefreshTime undocumented + LastRefreshTime *time.Time `json:"lastRefreshTime,omitempty"` + // ConfigurationDeploymentSummaryPerApp undocumented + ConfigurationDeploymentSummaryPerApp []ManagedAppPolicyDeploymentSummaryPerApp `json:"configurationDeploymentSummaryPerApp,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// ManagedAppPolicyDeploymentSummaryPerApp undocumented +type ManagedAppPolicyDeploymentSummaryPerApp struct { + // Object is the base model of ManagedAppPolicyDeploymentSummaryPerApp + Object + // MobileAppIdentifier Deployment of an app. + MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"` + // ConfigurationAppliedUserCount Number of users the policy is applied. + ConfigurationAppliedUserCount *int `json:"configurationAppliedUserCount,omitempty"` +} + +// ManagedAppProtection Policy used to configure detailed management settings for a specified set of apps +type ManagedAppProtection struct { + // ManagedAppPolicy is the base model of ManagedAppProtection + ManagedAppPolicy + // PeriodOfflineBeforeAccessCheck The period after which access is checked when the device is not connected to the internet. + PeriodOfflineBeforeAccessCheck *Duration `json:"periodOfflineBeforeAccessCheck,omitempty"` + // PeriodOnlineBeforeAccessCheck The period after which access is checked when the device is connected to the internet. + PeriodOnlineBeforeAccessCheck *Duration `json:"periodOnlineBeforeAccessCheck,omitempty"` + // AllowedInboundDataTransferSources Sources from which data is allowed to be transferred. + AllowedInboundDataTransferSources *ManagedAppDataTransferLevel `json:"allowedInboundDataTransferSources,omitempty"` + // AllowedOutboundDataTransferDestinations Destinations to which data is allowed to be transferred. + AllowedOutboundDataTransferDestinations *ManagedAppDataTransferLevel `json:"allowedOutboundDataTransferDestinations,omitempty"` + // OrganizationalCredentialsRequired Indicates whether organizational credentials are required for app use. + OrganizationalCredentialsRequired *bool `json:"organizationalCredentialsRequired,omitempty"` + // AllowedOutboundClipboardSharingLevel The level to which the clipboard may be shared between apps on the managed device. + AllowedOutboundClipboardSharingLevel *ManagedAppClipboardSharingLevel `json:"allowedOutboundClipboardSharingLevel,omitempty"` + // DataBackupBlocked Indicates whether the backup of a managed app's data is blocked. + DataBackupBlocked *bool `json:"dataBackupBlocked,omitempty"` + // DeviceComplianceRequired Indicates whether device compliance is required. + DeviceComplianceRequired *bool `json:"deviceComplianceRequired,omitempty"` + // ManagedBrowserToOpenLinksRequired Indicates whether internet links should be opened in the managed browser app. + ManagedBrowserToOpenLinksRequired *bool `json:"managedBrowserToOpenLinksRequired,omitempty"` + // SaveAsBlocked Indicates whether users may use the "Save As" menu item to save a copy of protected files. + SaveAsBlocked *bool `json:"saveAsBlocked,omitempty"` + // PeriodOfflineBeforeWipeIsEnforced The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped. + PeriodOfflineBeforeWipeIsEnforced *Duration `json:"periodOfflineBeforeWipeIsEnforced,omitempty"` + // PinRequired Indicates whether an app-level pin is required. + PinRequired *bool `json:"pinRequired,omitempty"` + // MaximumPinRetries Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped. + MaximumPinRetries *int `json:"maximumPinRetries,omitempty"` + // SimplePinBlocked Indicates whether simplePin is blocked. + SimplePinBlocked *bool `json:"simplePinBlocked,omitempty"` + // MinimumPinLength Minimum pin length required for an app-level pin if PinRequired is set to True + MinimumPinLength *int `json:"minimumPinLength,omitempty"` + // PinCharacterSet Character set which may be used for an app-level pin if PinRequired is set to True. + PinCharacterSet *ManagedAppPinCharacterSet `json:"pinCharacterSet,omitempty"` + // PeriodBeforePinReset TimePeriod before the all-level pin must be reset if PinRequired is set to True. + PeriodBeforePinReset *Duration `json:"periodBeforePinReset,omitempty"` + // AllowedDataStorageLocations Data storage locations where a user may store managed data. + AllowedDataStorageLocations []ManagedAppDataStorageLocation `json:"allowedDataStorageLocations,omitempty"` + // ContactSyncBlocked Indicates whether contacts can be synced to the user's device. + ContactSyncBlocked *bool `json:"contactSyncBlocked,omitempty"` + // PrintBlocked Indicates whether printing is allowed from managed apps. + PrintBlocked *bool `json:"printBlocked,omitempty"` + // FingerprintBlocked Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True. + FingerprintBlocked *bool `json:"fingerprintBlocked,omitempty"` + // DisableAppPinIfDevicePinIsSet Indicates whether use of the app pin is required if the device pin is set. + DisableAppPinIfDevicePinIsSet *bool `json:"disableAppPinIfDevicePinIsSet,omitempty"` + // MinimumRequiredOsVersion Versions less than the specified version will block the managed app from accessing company data. + MinimumRequiredOsVersion *string `json:"minimumRequiredOsVersion,omitempty"` + // MinimumWarningOsVersion Versions less than the specified version will result in warning message on the managed app from accessing company data. + MinimumWarningOsVersion *string `json:"minimumWarningOsVersion,omitempty"` + // MinimumRequiredAppVersion Versions less than the specified version will block the managed app from accessing company data. + MinimumRequiredAppVersion *string `json:"minimumRequiredAppVersion,omitempty"` + // MinimumWarningAppVersion Versions less than the specified version will result in warning message on the managed app. + MinimumWarningAppVersion *string `json:"minimumWarningAppVersion,omitempty"` + // MinimumWipeOsVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data. + MinimumWipeOsVersion *string `json:"minimumWipeOsVersion,omitempty"` + // MinimumWipeAppVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data. + MinimumWipeAppVersion *string `json:"minimumWipeAppVersion,omitempty"` + // AppActionIfDeviceComplianceRequired Defines a managed app behavior, either block or wipe, when the device is either rooted or jailbroken, if DeviceComplianceRequired is set to true. + AppActionIfDeviceComplianceRequired *ManagedAppRemediationAction `json:"appActionIfDeviceComplianceRequired,omitempty"` + // AppActionIfMaximumPinRetriesExceeded Defines a managed app behavior, either block or wipe, based on maximum number of incorrect pin retry attempts. + AppActionIfMaximumPinRetriesExceeded *ManagedAppRemediationAction `json:"appActionIfMaximumPinRetriesExceeded,omitempty"` + // PinRequiredInsteadOfBiometricTimeout Timeout in minutes for an app pin instead of non biometrics passcode + PinRequiredInsteadOfBiometricTimeout *Duration `json:"pinRequiredInsteadOfBiometricTimeout,omitempty"` + // AllowedOutboundClipboardSharingExceptionLength Specify the number of characters that may be cut or copied from Org data and accounts to any application. This setting overrides the AllowedOutboundClipboardSharingLevel restriction. Default value of '0' means no exception is allowed. + AllowedOutboundClipboardSharingExceptionLength *int `json:"allowedOutboundClipboardSharingExceptionLength,omitempty"` + // NotificationRestriction Specify app notification restriction + NotificationRestriction *ManagedAppNotificationRestriction `json:"notificationRestriction,omitempty"` + // PreviousPinBlockCount Requires a pin to be unique from the number specified in this property. + PreviousPinBlockCount *int `json:"previousPinBlockCount,omitempty"` + // ManagedBrowser Indicates in which managed browser(s) that internet links should be opened. + ManagedBrowser *ManagedBrowserType `json:"managedBrowser,omitempty"` + // MaximumAllowedDeviceThreatLevel Maximum allowed device threat level, as reported by the MTD app + MaximumAllowedDeviceThreatLevel *ManagedAppDeviceThreatLevel `json:"maximumAllowedDeviceThreatLevel,omitempty"` + // MobileThreatDefenseRemediationAction Determines what action to take if the mobile threat defense threat threshold isn't met. Warn isn't a supported value for this property + MobileThreatDefenseRemediationAction *ManagedAppRemediationAction `json:"mobileThreatDefenseRemediationAction,omitempty"` +} + +// ManagedAppProtectionPolicySetItem A class containing the properties used for managed app protection PolicySetItem. +type ManagedAppProtectionPolicySetItem struct { + // PolicySetItem is the base model of ManagedAppProtectionPolicySetItem + PolicySetItem + // TargetedAppManagementLevels TargetedAppManagementLevels of the ManagedAppPolicySetItem. + TargetedAppManagementLevels *string `json:"targetedAppManagementLevels,omitempty"` +} + +// ManagedAppRegistration The ManagedAppEntity is the base entity type for all other entity types under app management workflow. +type ManagedAppRegistration struct { + // Entity is the base model of ManagedAppRegistration + Entity + // CreatedDateTime Date and time of creation + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastSyncDateTime Date and time of last the app synced with management service. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // ApplicationVersion App version + ApplicationVersion *string `json:"applicationVersion,omitempty"` + // ManagementSdkVersion App management SDK version + ManagementSdkVersion *string `json:"managementSdkVersion,omitempty"` + // PlatformVersion Operating System version + PlatformVersion *string `json:"platformVersion,omitempty"` + // DeviceType Host device type + DeviceType *string `json:"deviceType,omitempty"` + // DeviceTag App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions. + DeviceTag *string `json:"deviceTag,omitempty"` + // DeviceName Host device name + DeviceName *string `json:"deviceName,omitempty"` + // ManagedDeviceID The Managed Device identifier of the host device. Value could be empty even when the host device is managed. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // AzureADDeviceID The Azure Active Directory Device identifier of the host device. Value could be empty even when the host device is Azure Active Directory registered. + AzureADDeviceID *string `json:"azureADDeviceId,omitempty"` + // DeviceModel The device model for the current app registration + DeviceModel *string `json:"deviceModel,omitempty"` + // DeviceManufacturer The device manufacturer for the current app registration + DeviceManufacturer *string `json:"deviceManufacturer,omitempty"` + // FlaggedReasons Zero or more reasons an app registration is flagged. E.g. app running on rooted device + FlaggedReasons []ManagedAppFlaggedReason `json:"flaggedReasons,omitempty"` + // UserID The user Id to who this app registration belongs. + UserID *string `json:"userId,omitempty"` + // AppIdentifier The app package Identifier + AppIdentifier *MobileAppIdentifier `json:"appIdentifier,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` + // AppliedPolicies undocumented + AppliedPolicies []ManagedAppPolicy `json:"appliedPolicies,omitempty"` + // IntendedPolicies undocumented + IntendedPolicies []ManagedAppPolicy `json:"intendedPolicies,omitempty"` + // Operations undocumented + Operations []ManagedAppOperation `json:"operations,omitempty"` +} + +// ManagedAppStatus Represents app protection and configuration status for the organization. +type ManagedAppStatus struct { + // Entity is the base model of ManagedAppStatus + Entity + // DisplayName Friendly name of the status report. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// ManagedAppStatusRaw Represents an un-typed status report about organizations app protection and configuration. +type ManagedAppStatusRaw struct { + // ManagedAppStatus is the base model of ManagedAppStatusRaw + ManagedAppStatus + // Content Status report content. + Content json.RawMessage `json:"content,omitempty"` +} + +// ManagedDevice Devices that are managed or pre-enrolled through Intune +type ManagedDevice struct { + // Entity is the base model of ManagedDevice + Entity + // UserID Unique Identifier for the user associated with the device. This property is read-only. + UserID *string `json:"userId,omitempty"` + // DeviceName Name of the device. This property is read-only. + DeviceName *string `json:"deviceName,omitempty"` + // HardwareInformation The hardward details for the device. Includes information such as storage space, manufacturer, serial number, etc. This property is read-only. + HardwareInformation *HardwareInformation `json:"hardwareInformation,omitempty"` + // OwnerType Ownership of the device. Can be 'company' or 'personal' + OwnerType *OwnerType `json:"ownerType,omitempty"` + // ManagedDeviceOwnerType Ownership of the device. Can be 'company' or 'personal' + ManagedDeviceOwnerType *ManagedDeviceOwnerType `json:"managedDeviceOwnerType,omitempty"` + // DeviceActionResults List of ComplexType deviceActionResult objects. This property is read-only. + DeviceActionResults []DeviceActionResult `json:"deviceActionResults,omitempty"` + // ManagementState Management state of the device. This property is read-only. + ManagementState *ManagementState `json:"managementState,omitempty"` + // EnrolledDateTime Enrollment time of the device. This property is read-only. + EnrolledDateTime *time.Time `json:"enrolledDateTime,omitempty"` + // LastSyncDateTime The date and time that the device last completed a successful sync with Intune. This property is read-only. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // ChassisType Chassis type of the device. This property is read-only. + ChassisType *ChassisType `json:"chassisType,omitempty"` + // OperatingSystem Operating system of the device. Windows, iOS, etc. This property is read-only. + OperatingSystem *string `json:"operatingSystem,omitempty"` + // DeviceType Platform of the device. This property is read-only. + DeviceType *DeviceType `json:"deviceType,omitempty"` + // ComplianceState Compliance state of the device. This property is read-only. + ComplianceState *ComplianceState `json:"complianceState,omitempty"` + // JailBroken whether the device is jail broken or rooted. This property is read-only. + JailBroken *string `json:"jailBroken,omitempty"` + // ManagementAgent Management channel of the device. Intune, EAS, etc. This property is read-only. + ManagementAgent *ManagementAgentType `json:"managementAgent,omitempty"` + // OsVersion Operating system version of the device. This property is read-only. + OsVersion *string `json:"osVersion,omitempty"` + // EasActivated Whether the device is Exchange ActiveSync activated. This property is read-only. + EasActivated *bool `json:"easActivated,omitempty"` + // EasDeviceID Exchange ActiveSync Id of the device. This property is read-only. + EasDeviceID *string `json:"easDeviceId,omitempty"` + // EasActivationDateTime Exchange ActivationSync activation time of the device. This property is read-only. + EasActivationDateTime *time.Time `json:"easActivationDateTime,omitempty"` + // AadRegistered Whether the device is Azure Active Directory registered. This property is read-only. + AadRegistered *bool `json:"aadRegistered,omitempty"` + // AzureADRegistered Whether the device is Azure Active Directory registered. This property is read-only. + AzureADRegistered *bool `json:"azureADRegistered,omitempty"` + // DeviceEnrollmentType Enrollment type of the device. This property is read-only. + DeviceEnrollmentType *DeviceEnrollmentType `json:"deviceEnrollmentType,omitempty"` + // LostModeState Indicates if Lost mode is enabled or disabled. This property is read-only. + LostModeState *LostModeState `json:"lostModeState,omitempty"` + // ActivationLockBypassCode Code that allows the Activation Lock on a device to be bypassed. This property is read-only. + ActivationLockBypassCode *string `json:"activationLockBypassCode,omitempty"` + // EmailAddress Email(s) for the user associated with the device. This property is read-only. + EmailAddress *string `json:"emailAddress,omitempty"` + // AzureActiveDirectoryDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only. + AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"` + // AzureADDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only. + AzureADDeviceID *string `json:"azureADDeviceId,omitempty"` + // DeviceRegistrationState Device registration state. This property is read-only. + DeviceRegistrationState *DeviceRegistrationState `json:"deviceRegistrationState,omitempty"` + // DeviceCategoryDisplayName Device category display name. This property is read-only. + DeviceCategoryDisplayName *string `json:"deviceCategoryDisplayName,omitempty"` + // IsSupervised Device supervised status. This property is read-only. + IsSupervised *bool `json:"isSupervised,omitempty"` + // ExchangeLastSuccessfulSyncDateTime Last time the device contacted Exchange. This property is read-only. + ExchangeLastSuccessfulSyncDateTime *time.Time `json:"exchangeLastSuccessfulSyncDateTime,omitempty"` + // ExchangeAccessState The Access State of the device in Exchange. This property is read-only. + ExchangeAccessState *DeviceManagementExchangeAccessState `json:"exchangeAccessState,omitempty"` + // ExchangeAccessStateReason The reason for the device's access state in Exchange. This property is read-only. + ExchangeAccessStateReason *DeviceManagementExchangeAccessStateReason `json:"exchangeAccessStateReason,omitempty"` + // RemoteAssistanceSessionURL Url that allows a Remote Assistance session to be established with the device. This property is read-only. + RemoteAssistanceSessionURL *string `json:"remoteAssistanceSessionUrl,omitempty"` + // RemoteAssistanceSessionErrorDetails An error string that identifies issues when creating Remote Assistance session objects. This property is read-only. + RemoteAssistanceSessionErrorDetails *string `json:"remoteAssistanceSessionErrorDetails,omitempty"` + // IsEncrypted Device encryption status. This property is read-only. + IsEncrypted *bool `json:"isEncrypted,omitempty"` + // UserPrincipalName Device user principal name. This property is read-only. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // Model Model of the device. This property is read-only. + Model *string `json:"model,omitempty"` + // Manufacturer Manufacturer of the device. This property is read-only. + Manufacturer *string `json:"manufacturer,omitempty"` + // Imei IMEI. This property is read-only. + Imei *string `json:"imei,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires. This property is read-only. + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` + // SerialNumber SerialNumber. This property is read-only. + SerialNumber *string `json:"serialNumber,omitempty"` + // PhoneNumber Phone number of the device. This property is read-only. + PhoneNumber *string `json:"phoneNumber,omitempty"` + // AndroidSecurityPatchLevel Android security patch level. This property is read-only. + AndroidSecurityPatchLevel *string `json:"androidSecurityPatchLevel,omitempty"` + // UserDisplayName User display name. This property is read-only. + UserDisplayName *string `json:"userDisplayName,omitempty"` + // ConfigurationManagerClientEnabledFeatures ConfigrMgr client enabled features. This property is read-only. + ConfigurationManagerClientEnabledFeatures *ConfigurationManagerClientEnabledFeatures `json:"configurationManagerClientEnabledFeatures,omitempty"` + // WiFiMacAddress Wi-Fi MAC. This property is read-only. + WiFiMacAddress *string `json:"wiFiMacAddress,omitempty"` + // DeviceHealthAttestationState The device health attestation state. This property is read-only. + DeviceHealthAttestationState *DeviceHealthAttestationState `json:"deviceHealthAttestationState,omitempty"` + // SubscriberCarrier Subscriber Carrier. This property is read-only. + SubscriberCarrier *string `json:"subscriberCarrier,omitempty"` + // Meid MEID. This property is read-only. + Meid *string `json:"meid,omitempty"` + // TotalStorageSpaceInBytes Total Storage in Bytes. This property is read-only. + TotalStorageSpaceInBytes *int `json:"totalStorageSpaceInBytes,omitempty"` + // FreeStorageSpaceInBytes Free Storage in Bytes. This property is read-only. + FreeStorageSpaceInBytes *int `json:"freeStorageSpaceInBytes,omitempty"` + // ManagedDeviceName Automatically generated name to identify a device. Can be overwritten to a user friendly name. + ManagedDeviceName *string `json:"managedDeviceName,omitempty"` + // PartnerReportedThreatState Indicates the threat state of a device when a Mobile Threat Defense partner is in use by the account and device. Read Only. This property is read-only. + PartnerReportedThreatState *ManagedDevicePartnerReportedHealthState `json:"partnerReportedThreatState,omitempty"` + // RetireAfterDateTime Indicates the time after when a device will be auto retired because of scheduled action. This property is read-only. + RetireAfterDateTime *time.Time `json:"retireAfterDateTime,omitempty"` + // UsersLoggedOn Indicates the last logged on users of a device. This property is read-only. + UsersLoggedOn []LoggedOnUser `json:"usersLoggedOn,omitempty"` + // PreferMDMOverGroupPolicyAppliedDateTime Reports the DateTime the preferMdmOverGroupPolicy setting was set. When set, the Intune MDM settings will override Group Policy settings if there is a conflict. Read Only. This property is read-only. + PreferMDMOverGroupPolicyAppliedDateTime *time.Time `json:"preferMdmOverGroupPolicyAppliedDateTime,omitempty"` + // AutopilotEnrolled Reports if the managed device is enrolled via auto-pilot. This property is read-only. + AutopilotEnrolled *bool `json:"autopilotEnrolled,omitempty"` + // RequireUserEnrollmentApproval Reports if the managed iOS device is user approval enrollment. This property is read-only. + RequireUserEnrollmentApproval *bool `json:"requireUserEnrollmentApproval,omitempty"` + // ManagementCertificateExpirationDate Reports device management certificate expiration date. This property is read-only. + ManagementCertificateExpirationDate *time.Time `json:"managementCertificateExpirationDate,omitempty"` + // Iccid Integrated Circuit Card Identifier, it is A SIM card's unique identification number. This property is read-only. + Iccid *string `json:"iccid,omitempty"` + // Udid Unique Device Identifier for iOS and macOS devices. This property is read-only. + Udid *string `json:"udid,omitempty"` + // RoleScopeTagIDs List of Scope Tag IDs for this Device instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // WindowsActiveMalwareCount Count of active malware for this windows device. This property is read-only. + WindowsActiveMalwareCount *int `json:"windowsActiveMalwareCount,omitempty"` + // WindowsRemediatedMalwareCount Count of remediated malware for this windows device. This property is read-only. + WindowsRemediatedMalwareCount *int `json:"windowsRemediatedMalwareCount,omitempty"` + // Notes Notes on the device created by IT Admin + Notes *string `json:"notes,omitempty"` + // ConfigurationManagerClientHealthState Configuration manager client health state, valid only for devices managed by MDM/ConfigMgr Agent + ConfigurationManagerClientHealthState *ConfigurationManagerClientHealthState `json:"configurationManagerClientHealthState,omitempty"` + // ConfigurationManagerClientInformation Configuration manager client information, valid only for devices managed, duel-managed or tri-managed by ConfigMgr Agent + ConfigurationManagerClientInformation *ConfigurationManagerClientInformation `json:"configurationManagerClientInformation,omitempty"` + // EthernetMacAddress Ethernet MAC. This property is read-only. + EthernetMacAddress *string `json:"ethernetMacAddress,omitempty"` + // SecurityBaselineStates undocumented + SecurityBaselineStates []SecurityBaselineState `json:"securityBaselineStates,omitempty"` + // DeviceConfigurationStates undocumented + DeviceConfigurationStates []DeviceConfigurationState `json:"deviceConfigurationStates,omitempty"` + // DeviceCompliancePolicyStates undocumented + DeviceCompliancePolicyStates []DeviceCompliancePolicyState `json:"deviceCompliancePolicyStates,omitempty"` + // ManagedDeviceMobileAppConfigurationStates undocumented + ManagedDeviceMobileAppConfigurationStates []ManagedDeviceMobileAppConfigurationState `json:"managedDeviceMobileAppConfigurationStates,omitempty"` + // DetectedApps undocumented + DetectedApps []DetectedApp `json:"detectedApps,omitempty"` + // DeviceCategory undocumented + DeviceCategory *DeviceCategory `json:"deviceCategory,omitempty"` + // WindowsProtectionState undocumented + WindowsProtectionState *WindowsProtectionState `json:"windowsProtectionState,omitempty"` + // Users undocumented + Users []User `json:"users,omitempty"` +} + +// ManagedDeviceCertificateState undocumented +type ManagedDeviceCertificateState struct { + // Entity is the base model of ManagedDeviceCertificateState + Entity + // DevicePlatform Device platform + DevicePlatform *DevicePlatformType `json:"devicePlatform,omitempty"` + // CertificateKeyUsage Key usage + CertificateKeyUsage *KeyUsages `json:"certificateKeyUsage,omitempty"` + // CertificateValidityPeriodUnits Validity period units + CertificateValidityPeriodUnits *CertificateValidityPeriodScale `json:"certificateValidityPeriodUnits,omitempty"` + // CertificateIssuanceState Issuance State + CertificateIssuanceState *CertificateIssuanceStates `json:"certificateIssuanceState,omitempty"` + // CertificateKeyStorageProvider Key Storage Provider + CertificateKeyStorageProvider *KeyStorageProviderOption `json:"certificateKeyStorageProvider,omitempty"` + // CertificateSubjectNameFormat Subject name format + CertificateSubjectNameFormat *SubjectNameFormat `json:"certificateSubjectNameFormat,omitempty"` + // CertificateSubjectAlternativeNameFormat Subject alternative name format + CertificateSubjectAlternativeNameFormat *SubjectAlternativeNameType `json:"certificateSubjectAlternativeNameFormat,omitempty"` + // CertificateRevokeStatus Revoke status + CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"` + // CertificateProfileDisplayName Certificate profile display name + CertificateProfileDisplayName *string `json:"certificateProfileDisplayName,omitempty"` + // DeviceDisplayName Device display name + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserDisplayName User display name + UserDisplayName *string `json:"userDisplayName,omitempty"` + // CertificateExpirationDateTime Certificate expiry date + CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"` + // CertificateLastIssuanceStateChangedDateTime Last certificate issuance state change + CertificateLastIssuanceStateChangedDateTime *time.Time `json:"certificateLastIssuanceStateChangedDateTime,omitempty"` + // LastCertificateStateChangeDateTime Last certificate issuance state change + LastCertificateStateChangeDateTime *time.Time `json:"lastCertificateStateChangeDateTime,omitempty"` + // CertificateIssuer Issuer + CertificateIssuer *string `json:"certificateIssuer,omitempty"` + // CertificateThumbprint Thumbprint + CertificateThumbprint *string `json:"certificateThumbprint,omitempty"` + // CertificateSerialNumber Serial number + CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"` + // CertificateKeyLength Key length + CertificateKeyLength *int `json:"certificateKeyLength,omitempty"` + // CertificateEnhancedKeyUsage Extended key usage + CertificateEnhancedKeyUsage *string `json:"certificateEnhancedKeyUsage,omitempty"` + // CertificateValidityPeriod Validity period + CertificateValidityPeriod *int `json:"certificateValidityPeriod,omitempty"` + // CertificateSubjectNameFormatString Subject name format string for custom subject name formats + CertificateSubjectNameFormatString *string `json:"certificateSubjectNameFormatString,omitempty"` + // CertificateSubjectAlternativeNameFormatString Subject alternative name format string for custom formats + CertificateSubjectAlternativeNameFormatString *string `json:"certificateSubjectAlternativeNameFormatString,omitempty"` + // CertificateIssuanceDateTime Issuance date + CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"` + // CertificateErrorCode Error code + CertificateErrorCode *int `json:"certificateErrorCode,omitempty"` +} + +// ManagedDeviceCleanupSettings undocumented +type ManagedDeviceCleanupSettings struct { + // Object is the base model of ManagedDeviceCleanupSettings + Object + // DeviceInactivityBeforeRetirementInDays Number of days when the device has not contacted Intune. + DeviceInactivityBeforeRetirementInDays *string `json:"deviceInactivityBeforeRetirementInDays,omitempty"` +} + +// ManagedDeviceEncryptionState Encryption report per device +type ManagedDeviceEncryptionState struct { + // Entity is the base model of ManagedDeviceEncryptionState + Entity + // UserPrincipalName User name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DeviceType Platform of the device. + DeviceType *DeviceTypes `json:"deviceType,omitempty"` + // OsVersion Operating system version of the device + OsVersion *string `json:"osVersion,omitempty"` + // TpmSpecificationVersion Device TPM Version + TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"` + // DeviceName Device name + DeviceName *string `json:"deviceName,omitempty"` + // EncryptionReadinessState Encryption readiness state + EncryptionReadinessState *EncryptionReadinessState `json:"encryptionReadinessState,omitempty"` + // EncryptionState Device encryption state + EncryptionState *EncryptionState `json:"encryptionState,omitempty"` + // EncryptionPolicySettingState Encryption policy setting state + EncryptionPolicySettingState *ComplianceStatus `json:"encryptionPolicySettingState,omitempty"` + // AdvancedBitLockerStates Advanced BitLocker State + AdvancedBitLockerStates *AdvancedBitLockerState `json:"advancedBitLockerStates,omitempty"` + // FileVaultStates FileVault State + FileVaultStates *FileVaultState `json:"fileVaultStates,omitempty"` + // PolicyDetails Policy Details + PolicyDetails []EncryptionReportPolicyDetails `json:"policyDetails,omitempty"` +} + +// ManagedDeviceMobileAppConfiguration An abstract class for Mobile app configuration for enrolled devices. +type ManagedDeviceMobileAppConfiguration struct { + // Entity is the base model of ManagedDeviceMobileAppConfiguration + Entity + // TargetedMobileApps the associated app. + TargetedMobileApps []string `json:"targetedMobileApps,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this App configuration entity. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Description Admin provided description of the Device Configuration. + Description *string `json:"description,omitempty"` + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Admin provided name of the device configuration. + DisplayName *string `json:"displayName,omitempty"` + // Version Version of the device configuration. + Version *int `json:"version,omitempty"` + // Assignments undocumented + Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"` + // UserStatuses undocumented + UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"` + // DeviceStatusSummary undocumented + DeviceStatusSummary *ManagedDeviceMobileAppConfigurationDeviceSummary `json:"deviceStatusSummary,omitempty"` + // UserStatusSummary undocumented + UserStatusSummary *ManagedDeviceMobileAppConfigurationUserSummary `json:"userStatusSummary,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationAssignment Contains the properties used to assign an MDM app configuration to a group. +type ManagedDeviceMobileAppConfigurationAssignment struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationAssignment + Entity + // Target Assignment target that the T&C policy is assigned to. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationDeviceStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a device. +type ManagedDeviceMobileAppConfigurationDeviceStatus struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceStatus + Entity + // DeviceDisplayName Device name of the DevicePolicyStatus. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserName The User Name that is being reported + UserName *string `json:"userName,omitempty"` + // DeviceModel The device model that is being reported + DeviceModel *string `json:"deviceModel,omitempty"` + // Platform Platform of the device that is being reported + Platform *int `json:"platform,omitempty"` + // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires + ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationDeviceSummary Contains properties, inherited properties and actions for an MDM mobile app configuration device status summary. +type ManagedDeviceMobileAppConfigurationDeviceSummary struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceSummary + Entity + // PendingCount Number of pending devices + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy + NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"` + // SuccessCount Number of succeeded devices + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed devices + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of devices in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationPolicySetItem A class containing the properties used for managed device mobile app configuration PolicySetItem. +type ManagedDeviceMobileAppConfigurationPolicySetItem struct { + // PolicySetItem is the base model of ManagedDeviceMobileAppConfigurationPolicySetItem + PolicySetItem +} + +// ManagedDeviceMobileAppConfigurationState Managed Device Mobile App Configuration State for a given device. +type ManagedDeviceMobileAppConfigurationState struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationState + Entity + // DisplayName The name of the policy for this policyBase + DisplayName *string `json:"displayName,omitempty"` + // Version The version of the policy + Version *int `json:"version,omitempty"` + // PlatformType Platform type that the policy applies to + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // State The compliance state of the policy + State *ComplianceStatus `json:"state,omitempty"` + // SettingCount Count of how many setting a policy holds + SettingCount *int `json:"settingCount,omitempty"` + // UserID User unique identifier, must be Guid + UserID *string `json:"userId,omitempty"` + // UserPrincipalName User Principal Name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationUserStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a user. +type ManagedDeviceMobileAppConfigurationUserStatus struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationUserStatus + Entity + // UserDisplayName User name of the DevicePolicyStatus. + UserDisplayName *string `json:"userDisplayName,omitempty"` + // DevicesCount Devices count for that user. + DevicesCount *int `json:"devicesCount,omitempty"` + // Status Compliance status of the policy report. + Status *ComplianceStatus `json:"status,omitempty"` + // LastReportedDateTime Last modified date time of the policy report. + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // UserPrincipalName UserPrincipalName. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// ManagedDeviceMobileAppConfigurationUserSummary Contains properties, inherited properties and actions for an MDM mobile app configuration user status summary. +type ManagedDeviceMobileAppConfigurationUserSummary struct { + // Entity is the base model of ManagedDeviceMobileAppConfigurationUserSummary + Entity + // PendingCount Number of pending Users + PendingCount *int `json:"pendingCount,omitempty"` + // NotApplicableCount Number of not applicable users + NotApplicableCount *int `json:"notApplicableCount,omitempty"` + // SuccessCount Number of succeeded Users + SuccessCount *int `json:"successCount,omitempty"` + // ErrorCount Number of error Users + ErrorCount *int `json:"errorCount,omitempty"` + // FailedCount Number of failed Users + FailedCount *int `json:"failedCount,omitempty"` + // ConflictCount Number of users in conflict + ConflictCount *int `json:"conflictCount,omitempty"` + // LastUpdateDateTime Last update time + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` + // ConfigurationVersion Version of the policy for that overview + ConfigurationVersion *int `json:"configurationVersion,omitempty"` +} + +// ManagedDeviceModelsAndManufacturers undocumented +type ManagedDeviceModelsAndManufacturers struct { + // Object is the base model of ManagedDeviceModelsAndManufacturers + Object + // DeviceModels List of Models for managed devices in the account + DeviceModels []string `json:"deviceModels,omitempty"` + // DeviceManufacturers List of Manufactures for managed devices in the account + DeviceManufacturers []string `json:"deviceManufacturers,omitempty"` +} + +// ManagedDeviceOverview Summary data for managed devices +type ManagedDeviceOverview struct { + // Entity is the base model of ManagedDeviceOverview + Entity + // EnrolledDeviceCount Total enrolled device count. Does not include PC devices managed via Intune PC Agent + EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"` + // MDMEnrolledCount The number of devices enrolled in MDM + MDMEnrolledCount *int `json:"mdmEnrolledCount,omitempty"` + // DualEnrolledDeviceCount The number of devices enrolled in both MDM and EAS + DualEnrolledDeviceCount *int `json:"dualEnrolledDeviceCount,omitempty"` + // DeviceOperatingSystemSummary Device operating system summary. + DeviceOperatingSystemSummary *DeviceOperatingSystemSummary `json:"deviceOperatingSystemSummary,omitempty"` + // DeviceExchangeAccessStateSummary Distribution of Exchange Access State in Intune + DeviceExchangeAccessStateSummary *DeviceExchangeAccessStateSummary `json:"deviceExchangeAccessStateSummary,omitempty"` + // ManagedDeviceModelsAndManufacturers Models and Manufactures meatadata for managed devices in the account + ManagedDeviceModelsAndManufacturers *ManagedDeviceModelsAndManufacturers `json:"managedDeviceModelsAndManufacturers,omitempty"` + // LastModifiedDateTime Last modified date time of device overview + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// ManagedDeviceReportedApp undocumented +type ManagedDeviceReportedApp struct { + // Object is the base model of ManagedDeviceReportedApp + Object + // AppID The application or bundle identifier of the application + AppID *string `json:"appId,omitempty"` +} + +// ManagedEBook An abstract class containing the base properties for Managed eBook. +type ManagedEBook struct { + // Entity is the base model of ManagedEBook + Entity + // DisplayName Name of the eBook. + DisplayName *string `json:"displayName,omitempty"` + // Description Description. + Description *string `json:"description,omitempty"` + // Publisher Publisher. + Publisher *string `json:"publisher,omitempty"` + // PublishedDateTime The date and time when the eBook was published. + PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"` + // LargeCover Book cover. + LargeCover *MimeContent `json:"largeCover,omitempty"` + // CreatedDateTime The date and time when the eBook file was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The date and time when the eBook was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // InformationURL The more information Url. + InformationURL *string `json:"informationUrl,omitempty"` + // PrivacyInformationURL The privacy statement Url. + PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"` + // Categories undocumented + Categories []ManagedEBookCategory `json:"categories,omitempty"` + // Assignments undocumented + Assignments []ManagedEBookAssignment `json:"assignments,omitempty"` + // InstallSummary undocumented + InstallSummary *EBookInstallSummary `json:"installSummary,omitempty"` + // DeviceStates undocumented + DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"` + // UserStateSummary undocumented + UserStateSummary []UserInstallStateSummary `json:"userStateSummary,omitempty"` +} + +// ManagedEBookAssignment Contains properties used to assign a eBook to a group. +type ManagedEBookAssignment struct { + // Entity is the base model of ManagedEBookAssignment + Entity + // Target The assignment target for eBook. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // InstallIntent The install intent for eBook. + InstallIntent *InstallIntent `json:"installIntent,omitempty"` +} + +// ManagedEBookCategory Contains properties for a single Intune eBook category. +type ManagedEBookCategory struct { + // Entity is the base model of ManagedEBookCategory + Entity + // DisplayName The name of the eBook category. + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime The date and time the ManagedEBookCategory was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// ManagedIOSLobApp Contains properties and inherited properties for Managed iOS Line Of Business apps. +type ManagedIOSLobApp struct { + // ManagedMobileLobApp is the base model of ManagedIOSLobApp + ManagedMobileLobApp + // BundleID The Identity Name. + BundleID *string `json:"bundleId,omitempty"` + // ApplicableDeviceType The iOS architecture for which this app can run on. + ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // ExpirationDateTime The expiration time. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // VersionNumber The version number of managed iOS Line of Business (LoB) app. + VersionNumber *string `json:"versionNumber,omitempty"` + // BuildNumber The build number of managed iOS Line of Business (LoB) app. + BuildNumber *string `json:"buildNumber,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// ManagedIOSStoreApp Contains properties and inherited properties for an iOS store app that you can manage with an Intune app protection policy. +type ManagedIOSStoreApp struct { + // ManagedApp is the base model of ManagedIOSStoreApp + ManagedApp + // BundleID The app's Bundle ID. + BundleID *string `json:"bundleId,omitempty"` + // AppStoreURL The Apple AppStoreUrl. + AppStoreURL *string `json:"appStoreUrl,omitempty"` + // ApplicableDeviceType The iOS architecture for which this app can run on. + ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum supported operating system. + MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` +} + +// ManagedMobileApp The identifier for the deployment an app. +type ManagedMobileApp struct { + // Entity is the base model of ManagedMobileApp + Entity + // MobileAppIdentifier The identifier for an app with it's operating system type. + MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// ManagedMobileLobApp An abstract base class containing properties for all managed mobile line of business apps. +type ManagedMobileLobApp struct { + // ManagedApp is the base model of ManagedMobileLobApp + ManagedApp + // CommittedContentVersion The internal committed content version. + CommittedContentVersion *string `json:"committedContentVersion,omitempty"` + // FileName The name of the main Lob application file. + FileName *string `json:"fileName,omitempty"` + // Size The total size, including all uploaded files. + Size *int `json:"size,omitempty"` + // ContentVersions undocumented + ContentVersions []MobileAppContent `json:"contentVersions,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go new file mode 100644 index 00000000..03ec2eb5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ManagementCertificateWithThumbprint undocumented +type ManagementCertificateWithThumbprint struct { + // Object is the base model of ManagementCertificateWithThumbprint + Object + // Thumbprint The thumbprint of the management certificate + Thumbprint *string `json:"thumbprint,omitempty"` + // Certificate The Base 64 encoded management certificate + Certificate *string `json:"certificate,omitempty"` +} + +// ManagementCondition Management conditions are events that can be triggered dynamically such as geo-fences, time-fences, and network-fences. +type ManagementCondition struct { + // Entity is the base model of ManagementCondition + Entity + // UniqueName Unique name for the management condition. Used in management condition expressions. + UniqueName *string `json:"uniqueName,omitempty"` + // DisplayName The admin defined name of the management condition. + DisplayName *string `json:"displayName,omitempty"` + // Description The admin defined description of the management condition. + Description *string `json:"description,omitempty"` + // CreatedDateTime The time the management condition was created. Generated service side. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime The time the management condition was last modified. Updated service side. + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // ETag ETag of the management condition. Updated service side. + ETag *string `json:"eTag,omitempty"` + // ApplicablePlatforms The applicable platforms for this management condition. + ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"` + // ManagementConditionStatements undocumented + ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"` +} + +// ManagementConditionExpression undocumented +type ManagementConditionExpression struct { + // Object is the base model of ManagementConditionExpression + Object +} + +// ManagementConditionExpressionModel undocumented +type ManagementConditionExpressionModel struct { + // ManagementConditionExpression is the base model of ManagementConditionExpressionModel + ManagementConditionExpression +} + +// ManagementConditionExpressionString undocumented +type ManagementConditionExpressionString struct { + // ManagementConditionExpression is the base model of ManagementConditionExpressionString + ManagementConditionExpression + // Value The management condition statement expression string value. + Value *string `json:"value,omitempty"` +} + +// ManagementConditionStatement A management condition statement is a group of management conditions that enable/disable device/application configurations when all contained management conditions are met. +type ManagementConditionStatement struct { + // Entity is the base model of ManagementConditionStatement + Entity + // DisplayName The admin defined name of the management condition statement. + DisplayName *string `json:"displayName,omitempty"` + // Description The admin defined description of the management condition statement. + Description *string `json:"description,omitempty"` + // CreatedDateTime The time the management condition statement was created. Generated service side. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime The time the management condition statement was last modified. Updated service side. + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // Expression The management condition statement expression used to evaluate if a management condition statement was activated/deactivated. + Expression *ManagementConditionExpression `json:"expression,omitempty"` + // ETag ETag of the management condition statement. Updated service side. + ETag *string `json:"eTag,omitempty"` + // ApplicablePlatforms The applicable platforms for this management condition statement. + ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"` + // ManagementConditions undocumented + ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MarkContentModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MatchLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MatchLocationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go new file mode 100644 index 00000000..27bd79b9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MatchingDlpRule undocumented +type MatchingDlpRule struct { + // Object is the base model of MatchingDlpRule + Object + // RuleID undocumented + RuleID *string `json:"ruleId,omitempty"` + // RuleName undocumented + RuleName *string `json:"ruleName,omitempty"` + // PolicyID undocumented + PolicyID *string `json:"policyId,omitempty"` + // PolicyName undocumented + PolicyName *string `json:"policyName,omitempty"` + // IsMostRestrictive undocumented + IsMostRestrictive *bool `json:"isMostRestrictive,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // Actions undocumented + Actions []DlpActionInfo `json:"actions,omitempty"` + // RuleMode undocumented + RuleMode *RuleMode `json:"ruleMode,omitempty"` +} + +// MatchingLabel undocumented +type MatchingLabel struct { + // Object is the base model of MatchingLabel + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // ToolTip undocumented + ToolTip *string `json:"toolTip,omitempty"` + // PolicyTip undocumented + PolicyTip *string `json:"policyTip,omitempty"` + // IsEndpointProtectionEnabled undocumented + IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"` + // ApplicationMode undocumented + ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"` + // LabelActions undocumented + LabelActions []LabelActionBase `json:"labelActions,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go new file mode 100644 index 00000000..28a00e6d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MediaConfig undocumented +type MediaConfig struct { + // Object is the base model of MediaConfig + Object + // RemoveFromDefaultAudioGroup undocumented + RemoveFromDefaultAudioGroup *bool `json:"removeFromDefaultAudioGroup,omitempty"` +} + +// MediaContentRatingAustralia undocumented +type MediaContentRatingAustralia struct { + // Object is the base model of MediaContentRatingAustralia + Object + // MovieRating Movies rating selected for Australia + MovieRating *RatingAustraliaMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for Australia + TvRating *RatingAustraliaTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingCanada undocumented +type MediaContentRatingCanada struct { + // Object is the base model of MediaContentRatingCanada + Object + // MovieRating Movies rating selected for Canada + MovieRating *RatingCanadaMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for Canada + TvRating *RatingCanadaTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingFrance undocumented +type MediaContentRatingFrance struct { + // Object is the base model of MediaContentRatingFrance + Object + // MovieRating Movies rating selected for France + MovieRating *RatingFranceMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for France + TvRating *RatingFranceTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingGermany undocumented +type MediaContentRatingGermany struct { + // Object is the base model of MediaContentRatingGermany + Object + // MovieRating Movies rating selected for Germany + MovieRating *RatingGermanyMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for Germany + TvRating *RatingGermanyTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingIreland undocumented +type MediaContentRatingIreland struct { + // Object is the base model of MediaContentRatingIreland + Object + // MovieRating Movies rating selected for Ireland + MovieRating *RatingIrelandMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for Ireland + TvRating *RatingIrelandTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingJapan undocumented +type MediaContentRatingJapan struct { + // Object is the base model of MediaContentRatingJapan + Object + // MovieRating Movies rating selected for Japan + MovieRating *RatingJapanMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for Japan + TvRating *RatingJapanTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingNewZealand undocumented +type MediaContentRatingNewZealand struct { + // Object is the base model of MediaContentRatingNewZealand + Object + // MovieRating Movies rating selected for New Zealand + MovieRating *RatingNewZealandMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for New Zealand + TvRating *RatingNewZealandTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingUnitedKingdom undocumented +type MediaContentRatingUnitedKingdom struct { + // Object is the base model of MediaContentRatingUnitedKingdom + Object + // MovieRating Movies rating selected for United Kingdom + MovieRating *RatingUnitedKingdomMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for United Kingdom + TvRating *RatingUnitedKingdomTelevisionType `json:"tvRating,omitempty"` +} + +// MediaContentRatingUnitedStates undocumented +type MediaContentRatingUnitedStates struct { + // Object is the base model of MediaContentRatingUnitedStates + Object + // MovieRating Movies rating selected for United States + MovieRating *RatingUnitedStatesMoviesType `json:"movieRating,omitempty"` + // TvRating TV rating selected for United States + TvRating *RatingUnitedStatesTelevisionType `json:"tvRating,omitempty"` +} + +// MediaInfo undocumented +type MediaInfo struct { + // Object is the base model of MediaInfo + Object + // URI undocumented + URI *string `json:"uri,omitempty"` + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` +} + +// MediaPrompt undocumented +type MediaPrompt struct { + // Prompt is the base model of MediaPrompt + Prompt + // MediaInfo undocumented + MediaInfo *MediaInfo `json:"mediaInfo,omitempty"` + // Loop undocumented + Loop *int `json:"loop,omitempty"` +} + +// MediaStream undocumented +type MediaStream struct { + // Object is the base model of MediaStream + Object + // MediaType undocumented + MediaType *Modality `json:"mediaType,omitempty"` + // Label undocumented + Label *string `json:"label,omitempty"` + // SourceID undocumented + SourceID *string `json:"sourceId,omitempty"` + // Direction undocumented + Direction *MediaDirection `json:"direction,omitempty"` + // ServerMuted undocumented + ServerMuted *bool `json:"serverMuted,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go new file mode 100644 index 00000000..0360874b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go @@ -0,0 +1,95 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MeetingActivityStatistics undocumented +type MeetingActivityStatistics struct { + // ActivityStatistics is the base model of MeetingActivityStatistics + ActivityStatistics + // AfterHours undocumented + AfterHours *Duration `json:"afterHours,omitempty"` + // Organized undocumented + Organized *Duration `json:"organized,omitempty"` + // Recurring undocumented + Recurring *Duration `json:"recurring,omitempty"` + // Long undocumented + Long *Duration `json:"long,omitempty"` + // Conflicting undocumented + Conflicting *Duration `json:"conflicting,omitempty"` + // Multitasking undocumented + Multitasking *Duration `json:"multitasking,omitempty"` +} + +// MeetingCapability undocumented +type MeetingCapability struct { + // Object is the base model of MeetingCapability + Object + // AllowAnonymousUsersToDialOut undocumented + AllowAnonymousUsersToDialOut *bool `json:"allowAnonymousUsersToDialOut,omitempty"` + // AutoAdmittedUsers undocumented + AutoAdmittedUsers *AutoAdmittedUsersType `json:"autoAdmittedUsers,omitempty"` + // AllowAnonymousUsersToStartMeeting undocumented + AllowAnonymousUsersToStartMeeting *bool `json:"allowAnonymousUsersToStartMeeting,omitempty"` +} + +// MeetingInfo undocumented +type MeetingInfo struct { + // Object is the base model of MeetingInfo + Object + // AllowConversationWithoutHost undocumented + AllowConversationWithoutHost *bool `json:"allowConversationWithoutHost,omitempty"` +} + +// MeetingParticipantInfo undocumented +type MeetingParticipantInfo struct { + // Object is the base model of MeetingParticipantInfo + Object + // Identity undocumented + Identity *IdentitySet `json:"identity,omitempty"` + // Upn undocumented + Upn *string `json:"upn,omitempty"` +} + +// MeetingParticipants undocumented +type MeetingParticipants struct { + // Object is the base model of MeetingParticipants + Object + // Organizer undocumented + Organizer *MeetingParticipantInfo `json:"organizer,omitempty"` + // Attendees undocumented + Attendees []MeetingParticipantInfo `json:"attendees,omitempty"` + // Producers undocumented + Producers []MeetingParticipantInfo `json:"producers,omitempty"` + // Contributors undocumented + Contributors []MeetingParticipantInfo `json:"contributors,omitempty"` +} + +// MeetingTimeSuggestion undocumented +type MeetingTimeSuggestion struct { + // Object is the base model of MeetingTimeSuggestion + Object + // Confidence undocumented + Confidence *float64 `json:"confidence,omitempty"` + // Order undocumented + Order *int `json:"order,omitempty"` + // OrganizerAvailability undocumented + OrganizerAvailability *FreeBusyStatus `json:"organizerAvailability,omitempty"` + // AttendeeAvailability undocumented + AttendeeAvailability []AttendeeAvailability `json:"attendeeAvailability,omitempty"` + // Locations undocumented + Locations []Location `json:"locations,omitempty"` + // SuggestionReason undocumented + SuggestionReason *string `json:"suggestionReason,omitempty"` + // MeetingTimeSlot undocumented + MeetingTimeSlot *TimeSlot `json:"meetingTimeSlot,omitempty"` +} + +// MeetingTimeSuggestionsResult undocumented +type MeetingTimeSuggestionsResult struct { + // Object is the base model of MeetingTimeSuggestionsResult + Object + // MeetingTimeSuggestions undocumented + MeetingTimeSuggestions []MeetingTimeSuggestion `json:"meetingTimeSuggestions,omitempty"` + // EmptySuggestionsReason undocumented + EmptySuggestionsReason *string `json:"emptySuggestionsReason,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go new file mode 100644 index 00000000..4381a5a2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Mention undocumented +type Mention struct { + // Entity is the base model of Mention + Entity + // Mentioned undocumented + Mentioned *EmailAddress `json:"mentioned,omitempty"` + // MentionText undocumented + MentionText *string `json:"mentionText,omitempty"` + // ClientReference undocumented + ClientReference *string `json:"clientReference,omitempty"` + // CreatedBy undocumented + CreatedBy *EmailAddress `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ServerCreatedDateTime undocumented + ServerCreatedDateTime *time.Time `json:"serverCreatedDateTime,omitempty"` + // DeepLink undocumented + DeepLink *string `json:"deepLink,omitempty"` + // Application undocumented + Application *string `json:"application,omitempty"` +} + +// MentionAction undocumented +type MentionAction struct { + // Object is the base model of MentionAction + Object + // Mentionees undocumented + Mentionees []IdentitySet `json:"mentionees,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MentionsPreviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MentionsPreviewModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go new file mode 100644 index 00000000..415cc7b5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go @@ -0,0 +1,195 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Message undocumented +type Message struct { + // OutlookItem is the base model of Message + OutlookItem + // ReceivedDateTime undocumented + ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"` + // SentDateTime undocumented + SentDateTime *time.Time `json:"sentDateTime,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // InternetMessageID undocumented + InternetMessageID *string `json:"internetMessageId,omitempty"` + // InternetMessageHeaders undocumented + InternetMessageHeaders []InternetMessageHeader `json:"internetMessageHeaders,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // Body undocumented + Body *ItemBody `json:"body,omitempty"` + // BodyPreview undocumented + BodyPreview *string `json:"bodyPreview,omitempty"` + // Importance undocumented + Importance *Importance `json:"importance,omitempty"` + // ParentFolderID undocumented + ParentFolderID *string `json:"parentFolderId,omitempty"` + // Sender undocumented + Sender *Recipient `json:"sender,omitempty"` + // From undocumented + From *Recipient `json:"from,omitempty"` + // ToRecipients undocumented + ToRecipients []Recipient `json:"toRecipients,omitempty"` + // CcRecipients undocumented + CcRecipients []Recipient `json:"ccRecipients,omitempty"` + // BccRecipients undocumented + BccRecipients []Recipient `json:"bccRecipients,omitempty"` + // ReplyTo undocumented + ReplyTo []Recipient `json:"replyTo,omitempty"` + // ConversationID undocumented + ConversationID *string `json:"conversationId,omitempty"` + // ConversationIndex undocumented + ConversationIndex *Binary `json:"conversationIndex,omitempty"` + // UniqueBody undocumented + UniqueBody *ItemBody `json:"uniqueBody,omitempty"` + // IsDeliveryReceiptRequested undocumented + IsDeliveryReceiptRequested *bool `json:"isDeliveryReceiptRequested,omitempty"` + // IsReadReceiptRequested undocumented + IsReadReceiptRequested *bool `json:"isReadReceiptRequested,omitempty"` + // IsRead undocumented + IsRead *bool `json:"isRead,omitempty"` + // IsDraft undocumented + IsDraft *bool `json:"isDraft,omitempty"` + // WebLink undocumented + WebLink *string `json:"webLink,omitempty"` + // MentionsPreview undocumented + MentionsPreview *MentionsPreview `json:"mentionsPreview,omitempty"` + // InferenceClassification undocumented + InferenceClassification *InferenceClassificationType `json:"inferenceClassification,omitempty"` + // UnsubscribeData undocumented + UnsubscribeData []string `json:"unsubscribeData,omitempty"` + // UnsubscribeEnabled undocumented + UnsubscribeEnabled *bool `json:"unsubscribeEnabled,omitempty"` + // Flag undocumented + Flag *FollowupFlag `json:"flag,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Attachments undocumented + Attachments []Attachment `json:"attachments,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` + // Mentions undocumented + Mentions []Mention `json:"mentions,omitempty"` +} + +// MessageRule undocumented +type MessageRule struct { + // Entity is the base model of MessageRule + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // Conditions undocumented + Conditions *MessageRulePredicates `json:"conditions,omitempty"` + // Actions undocumented + Actions *MessageRuleActions `json:"actions,omitempty"` + // Exceptions undocumented + Exceptions *MessageRulePredicates `json:"exceptions,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // HasError undocumented + HasError *bool `json:"hasError,omitempty"` + // IsReadOnly undocumented + IsReadOnly *bool `json:"isReadOnly,omitempty"` +} + +// MessageRuleActions undocumented +type MessageRuleActions struct { + // Object is the base model of MessageRuleActions + Object + // MoveToFolder undocumented + MoveToFolder *string `json:"moveToFolder,omitempty"` + // CopyToFolder undocumented + CopyToFolder *string `json:"copyToFolder,omitempty"` + // Delete undocumented + Delete *bool `json:"delete,omitempty"` + // PermanentDelete undocumented + PermanentDelete *bool `json:"permanentDelete,omitempty"` + // MarkAsRead undocumented + MarkAsRead *bool `json:"markAsRead,omitempty"` + // MarkImportance undocumented + MarkImportance *Importance `json:"markImportance,omitempty"` + // ForwardTo undocumented + ForwardTo []Recipient `json:"forwardTo,omitempty"` + // ForwardAsAttachmentTo undocumented + ForwardAsAttachmentTo []Recipient `json:"forwardAsAttachmentTo,omitempty"` + // RedirectTo undocumented + RedirectTo []Recipient `json:"redirectTo,omitempty"` + // AssignCategories undocumented + AssignCategories []string `json:"assignCategories,omitempty"` + // StopProcessingRules undocumented + StopProcessingRules *bool `json:"stopProcessingRules,omitempty"` +} + +// MessageRulePredicates undocumented +type MessageRulePredicates struct { + // Object is the base model of MessageRulePredicates + Object + // Categories undocumented + Categories []string `json:"categories,omitempty"` + // SubjectContains undocumented + SubjectContains []string `json:"subjectContains,omitempty"` + // BodyContains undocumented + BodyContains []string `json:"bodyContains,omitempty"` + // BodyOrSubjectContains undocumented + BodyOrSubjectContains []string `json:"bodyOrSubjectContains,omitempty"` + // SenderContains undocumented + SenderContains []string `json:"senderContains,omitempty"` + // RecipientContains undocumented + RecipientContains []string `json:"recipientContains,omitempty"` + // HeaderContains undocumented + HeaderContains []string `json:"headerContains,omitempty"` + // MessageActionFlag undocumented + MessageActionFlag *MessageActionFlag `json:"messageActionFlag,omitempty"` + // Importance undocumented + Importance *Importance `json:"importance,omitempty"` + // Sensitivity undocumented + Sensitivity *Sensitivity `json:"sensitivity,omitempty"` + // FromAddresses undocumented + FromAddresses []Recipient `json:"fromAddresses,omitempty"` + // SentToAddresses undocumented + SentToAddresses []Recipient `json:"sentToAddresses,omitempty"` + // SentToMe undocumented + SentToMe *bool `json:"sentToMe,omitempty"` + // SentOnlyToMe undocumented + SentOnlyToMe *bool `json:"sentOnlyToMe,omitempty"` + // SentCcMe undocumented + SentCcMe *bool `json:"sentCcMe,omitempty"` + // SentToOrCcMe undocumented + SentToOrCcMe *bool `json:"sentToOrCcMe,omitempty"` + // NotSentToMe undocumented + NotSentToMe *bool `json:"notSentToMe,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // IsApprovalRequest undocumented + IsApprovalRequest *bool `json:"isApprovalRequest,omitempty"` + // IsAutomaticForward undocumented + IsAutomaticForward *bool `json:"isAutomaticForward,omitempty"` + // IsAutomaticReply undocumented + IsAutomaticReply *bool `json:"isAutomaticReply,omitempty"` + // IsEncrypted undocumented + IsEncrypted *bool `json:"isEncrypted,omitempty"` + // IsMeetingRequest undocumented + IsMeetingRequest *bool `json:"isMeetingRequest,omitempty"` + // IsMeetingResponse undocumented + IsMeetingResponse *bool `json:"isMeetingResponse,omitempty"` + // IsNonDeliveryReport undocumented + IsNonDeliveryReport *bool `json:"isNonDeliveryReport,omitempty"` + // IsPermissionControlled undocumented + IsPermissionControlled *bool `json:"isPermissionControlled,omitempty"` + // IsReadReceipt undocumented + IsReadReceipt *bool `json:"isReadReceipt,omitempty"` + // IsSigned undocumented + IsSigned *bool `json:"isSigned,omitempty"` + // IsVoicemail undocumented + IsVoicemail *bool `json:"isVoicemail,omitempty"` + // WithinSizeRange undocumented + WithinSizeRange *SizeRange `json:"withinSizeRange,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go new file mode 100644 index 00000000..1f974da6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go @@ -0,0 +1,23 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MetadataAction undocumented +type MetadataAction struct { + // InformationProtectionAction is the base model of MetadataAction + InformationProtectionAction + // MetadataToRemove undocumented + MetadataToRemove []string `json:"metadataToRemove,omitempty"` + // MetadataToAdd undocumented + MetadataToAdd []KeyValuePair `json:"metadataToAdd,omitempty"` +} + +// MetadataEntry undocumented +type MetadataEntry struct { + // Object is the base model of MetadataEntry + Object + // Key undocumented + Key *string `json:"key,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go new file mode 100644 index 00000000..9eaa6827 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go @@ -0,0 +1,39 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MicrosoftStoreForBusinessApp Microsoft Store for Business Apps. This class does not support Create, Delete, or Update. +type MicrosoftStoreForBusinessApp struct { + // MobileApp is the base model of MicrosoftStoreForBusinessApp + MobileApp + // UsedLicenseCount The number of Microsoft Store for Business licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` + // TotalLicenseCount The total number of Microsoft Store for Business licenses. + TotalLicenseCount *int `json:"totalLicenseCount,omitempty"` + // ProductKey The app product key + ProductKey *string `json:"productKey,omitempty"` + // LicenseType The app license type + LicenseType *MicrosoftStoreForBusinessLicenseType `json:"licenseType,omitempty"` + // PackageIdentityName The app package identifier + PackageIdentityName *string `json:"packageIdentityName,omitempty"` + // LicensingType The supported License Type. + LicensingType *VPPLicensingType `json:"licensingType,omitempty"` + // ContainedApps undocumented + ContainedApps []MobileContainedApp `json:"containedApps,omitempty"` +} + +// MicrosoftStoreForBusinessAppAssignmentSettings undocumented +type MicrosoftStoreForBusinessAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of MicrosoftStoreForBusinessAppAssignmentSettings + MobileAppAssignmentSettings + // UseDeviceContext Whether or not to use device execution context for Microsoft Store for Business mobile app. + UseDeviceContext *bool `json:"useDeviceContext,omitempty"` +} + +// MicrosoftStoreForBusinessContainedApp A class that represents a contained app of a MicrosoftStoreForBusinessApp. +type MicrosoftStoreForBusinessContainedApp struct { + // MobileContainedApp is the base model of MicrosoftStoreForBusinessContainedApp + MobileContainedApp + // AppUserModelID The app user model ID of the contained app of a MicrosoftStoreForBusinessApp. + AppUserModelID *string `json:"appUserModelId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MimeContentModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go new file mode 100644 index 00000000..49d05eb9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go @@ -0,0 +1,431 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// MobileApp An abstract class containing the base properties for Intune mobile apps. +type MobileApp struct { + // Entity is the base model of MobileApp + Entity + // DisplayName The admin provided or imported title of the app. + DisplayName *string `json:"displayName,omitempty"` + // Description The description of the app. + Description *string `json:"description,omitempty"` + // Publisher The publisher of the app. + Publisher *string `json:"publisher,omitempty"` + // LargeIcon The large icon, to be displayed in the app details and used for upload of the icon. + LargeIcon *MimeContent `json:"largeIcon,omitempty"` + // CreatedDateTime The date and time the app was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The date and time the app was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // IsFeatured The value indicating whether the app is marked as featured by the admin. + IsFeatured *bool `json:"isFeatured,omitempty"` + // PrivacyInformationURL The privacy statement Url. + PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"` + // InformationURL The more information Url. + InformationURL *string `json:"informationUrl,omitempty"` + // Owner The owner of the app. + Owner *string `json:"owner,omitempty"` + // Developer The developer of the app. + Developer *string `json:"developer,omitempty"` + // Notes Notes for the app. + Notes *string `json:"notes,omitempty"` + // UploadState The upload state. + UploadState *int `json:"uploadState,omitempty"` + // PublishingState The publishing state for the app. The app cannot be assigned unless the app is published. + PublishingState *MobileAppPublishingState `json:"publishingState,omitempty"` + // IsAssigned The value indicating whether the app is assigned to at least one group. + IsAssigned *bool `json:"isAssigned,omitempty"` + // RoleScopeTagIDs List of scope tag ids for this mobile app. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // DependentAppCount The total number of dependencies the child app has. + DependentAppCount *int `json:"dependentAppCount,omitempty"` + // Categories undocumented + Categories []MobileAppCategory `json:"categories,omitempty"` + // Assignments undocumented + Assignments []MobileAppAssignment `json:"assignments,omitempty"` + // InstallSummary undocumented + InstallSummary *MobileAppInstallSummary `json:"installSummary,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"` + // UserStatuses undocumented + UserStatuses []UserAppInstallStatus `json:"userStatuses,omitempty"` + // Relationships undocumented + Relationships []MobileAppRelationship `json:"relationships,omitempty"` +} + +// MobileAppAssignment A class containing the properties used for Group Assignment of a Mobile App. +type MobileAppAssignment struct { + // Entity is the base model of MobileAppAssignment + Entity + // Intent The install intent defined by the admin. + Intent *InstallIntent `json:"intent,omitempty"` + // Target The target group assignment defined by the admin. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Settings The settings for target assignment defined by the admin. + Settings *MobileAppAssignmentSettings `json:"settings,omitempty"` + // Source The resource type which is the source for the assignment. + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID The identifier of the source of the assignment. + SourceID *string `json:"sourceId,omitempty"` +} + +// MobileAppAssignmentSettings undocumented +type MobileAppAssignmentSettings struct { + // Object is the base model of MobileAppAssignmentSettings + Object +} + +// MobileAppCategory Contains properties for a single Intune app category. +type MobileAppCategory struct { + // Entity is the base model of MobileAppCategory + Entity + // DisplayName The name of the app category. + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime The date and time the mobileAppCategory was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// MobileAppContent Contains content properties for a specific app version. Each mobileAppContent can have multiple mobileAppContentFile. +type MobileAppContent struct { + // Entity is the base model of MobileAppContent + Entity + // Files undocumented + Files []MobileAppContentFile `json:"files,omitempty"` + // ContainedApps undocumented + ContainedApps []MobileContainedApp `json:"containedApps,omitempty"` +} + +// MobileAppContentFile Contains properties for a single installer file that is associated with a given mobileAppContent version. +type MobileAppContentFile struct { + // Entity is the base model of MobileAppContentFile + Entity + // AzureStorageURI The Azure Storage URI. + AzureStorageURI *string `json:"azureStorageUri,omitempty"` + // IsCommitted A value indicating whether the file is committed. + IsCommitted *bool `json:"isCommitted,omitempty"` + // CreatedDateTime The time the file was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Name the file name. + Name *string `json:"name,omitempty"` + // Size The size of the file prior to encryption. + Size *int `json:"size,omitempty"` + // SizeEncrypted The size of the file after encryption. + SizeEncrypted *int `json:"sizeEncrypted,omitempty"` + // AzureStorageURIExpirationDateTime The time the Azure storage Uri expires. + AzureStorageURIExpirationDateTime *time.Time `json:"azureStorageUriExpirationDateTime,omitempty"` + // Manifest The manifest information. + Manifest *Binary `json:"manifest,omitempty"` + // UploadState The state of the current upload request. + UploadState *MobileAppContentFileUploadState `json:"uploadState,omitempty"` + // IsFrameworkFile A value indicating whether the file is a framework file. + IsFrameworkFile *bool `json:"isFrameworkFile,omitempty"` + // IsDependency Whether the content file is a dependency for the main content file. + IsDependency *bool `json:"isDependency,omitempty"` +} + +// MobileAppDependency Describes a dependency type between two mobile apps. +type MobileAppDependency struct { + // MobileAppRelationship is the base model of MobileAppDependency + MobileAppRelationship + // DependencyType The type of dependency relationship between the parent and child apps. + DependencyType *MobileAppDependencyType `json:"dependencyType,omitempty"` + // DependentAppCount The total number of dependencies the child app has. + DependentAppCount *int `json:"dependentAppCount,omitempty"` +} + +// MobileAppIdentifier undocumented +type MobileAppIdentifier struct { + // Object is the base model of MobileAppIdentifier + Object +} + +// MobileAppInstallStatus Contains properties for the installation state of a mobile app for a device. +type MobileAppInstallStatus struct { + // Entity is the base model of MobileAppInstallStatus + Entity + // DeviceName Device name + DeviceName *string `json:"deviceName,omitempty"` + // DeviceID Device ID + DeviceID *string `json:"deviceId,omitempty"` + // LastSyncDateTime Last sync date time + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // MobileAppInstallStatusValue The install state of the app. + MobileAppInstallStatusValue *ResultantAppState `json:"mobileAppInstallStatusValue,omitempty"` + // InstallState The install state of the app. + InstallState *ResultantAppState `json:"installState,omitempty"` + // InstallStateDetail The install state detail of the app. + InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"` + // ErrorCode The error code for install or uninstall failures. + ErrorCode *int `json:"errorCode,omitempty"` + // OsVersion OS Version + OsVersion *string `json:"osVersion,omitempty"` + // OsDescription OS Description + OsDescription *string `json:"osDescription,omitempty"` + // UserName Device User Name + UserName *string `json:"userName,omitempty"` + // UserPrincipalName User Principal Name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayVersion Human readable version of the application + DisplayVersion *string `json:"displayVersion,omitempty"` + // App undocumented + App *MobileApp `json:"app,omitempty"` +} + +// MobileAppInstallSummary Contains properties for the installation summary of a mobile app. +type MobileAppInstallSummary struct { + // Entity is the base model of MobileAppInstallSummary + Entity + // InstalledDeviceCount Number of Devices that have successfully installed this app. + InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"` + // FailedDeviceCount Number of Devices that have failed to install this app. + FailedDeviceCount *int `json:"failedDeviceCount,omitempty"` + // NotApplicableDeviceCount Number of Devices that are not applicable for this app. + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // NotInstalledDeviceCount Number of Devices that does not have this app installed. + NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"` + // PendingInstallDeviceCount Number of Devices that have been notified to install this app. + PendingInstallDeviceCount *int `json:"pendingInstallDeviceCount,omitempty"` + // InstalledUserCount Number of Users whose devices have all succeeded to install this app. + InstalledUserCount *int `json:"installedUserCount,omitempty"` + // FailedUserCount Number of Users that have 1 or more device that failed to install this app. + FailedUserCount *int `json:"failedUserCount,omitempty"` + // NotApplicableUserCount Number of Users whose devices were all not applicable for this app. + NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"` + // NotInstalledUserCount Number of Users that have 1 or more devices that did not install this app. + NotInstalledUserCount *int `json:"notInstalledUserCount,omitempty"` + // PendingInstallUserCount Number of Users that have 1 or more device that have been notified to install this app and have 0 devices with failures. + PendingInstallUserCount *int `json:"pendingInstallUserCount,omitempty"` +} + +// MobileAppInstallTimeSettings undocumented +type MobileAppInstallTimeSettings struct { + // Object is the base model of MobileAppInstallTimeSettings + Object + // UseLocalTime Whether the local device time or UTC time should be used when determining the available and deadline times. + UseLocalTime *bool `json:"useLocalTime,omitempty"` + // StartDateTime The time at which the app should be available for installation. + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // DeadlineDateTime The time at which the app should be installed. + DeadlineDateTime *time.Time `json:"deadlineDateTime,omitempty"` +} + +// MobileAppIntentAndState MobileApp Intent and Install State for a given device. +type MobileAppIntentAndState struct { + // Entity is the base model of MobileAppIntentAndState + Entity + // ManagedDeviceIdentifier Device identifier created or collected by Intune. + ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"` + // UserID Identifier for the user that tried to enroll the device. + UserID *string `json:"userId,omitempty"` + // MobileAppList The list of payload intents and states for the tenant. + MobileAppList []MobileAppIntentAndStateDetail `json:"mobileAppList,omitempty"` +} + +// MobileAppIntentAndStateDetail undocumented +type MobileAppIntentAndStateDetail struct { + // Object is the base model of MobileAppIntentAndStateDetail + Object + // ApplicationID MobieApp identifier. + ApplicationID *string `json:"applicationId,omitempty"` + // DisplayName The admin provided or imported title of the app. + DisplayName *string `json:"displayName,omitempty"` + // MobileAppIntent Mobile App Intent. + MobileAppIntent *MobileAppIntent `json:"mobileAppIntent,omitempty"` + // DisplayVersion Human readable version of the application + DisplayVersion *string `json:"displayVersion,omitempty"` + // InstallState The install state of the app. + InstallState *ResultantAppState `json:"installState,omitempty"` + // SupportedDeviceTypes The supported platforms for the app. + SupportedDeviceTypes []MobileAppSupportedDeviceType `json:"supportedDeviceTypes,omitempty"` +} + +// MobileAppPolicySetItem A class containing the properties used for mobile app PolicySetItem. +type MobileAppPolicySetItem struct { + // PolicySetItem is the base model of MobileAppPolicySetItem + PolicySetItem + // Intent Install intent of the MobileAppPolicySetItem. + Intent *InstallIntent `json:"intent,omitempty"` + // Settings Settings of the MobileAppPolicySetItem. + Settings *MobileAppAssignmentSettings `json:"settings,omitempty"` +} + +// MobileAppProvisioningConfigGroupAssignment Contains the properties used to assign an App provisioning configuration to a group. +type MobileAppProvisioningConfigGroupAssignment struct { + // Entity is the base model of MobileAppProvisioningConfigGroupAssignment + Entity + // TargetGroupID The ID of the AAD group in which the app provisioning configuration is being targeted. + TargetGroupID *string `json:"targetGroupId,omitempty"` +} + +// MobileAppRelationship Describes the relationship for a child mobile app to its parent mobile app. +type MobileAppRelationship struct { + // Entity is the base model of MobileAppRelationship + Entity + // TargetID The target child mobile app's app id. + TargetID *string `json:"targetId,omitempty"` + // TargetDisplayName The target child mobile app's display name. + TargetDisplayName *string `json:"targetDisplayName,omitempty"` +} + +// MobileAppRelationshipState undocumented +type MobileAppRelationshipState struct { + // Object is the base model of MobileAppRelationshipState + Object + // SourceIDs The collection of source mobile app's ids. + SourceIDs []string `json:"sourceIds,omitempty"` + // TargetID The related target app's id. + TargetID *string `json:"targetId,omitempty"` + // TargetDisplayName The related target app's display name. + TargetDisplayName *string `json:"targetDisplayName,omitempty"` + // DeviceID The corresponding device id. + DeviceID *string `json:"deviceId,omitempty"` + // InstallState The install state of the app of target app. + InstallState *ResultantAppState `json:"installState,omitempty"` + // InstallStateDetail The install state detail of the app. + InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"` + // ErrorCode The error code for install or uninstall failures of target app. + ErrorCode *int `json:"errorCode,omitempty"` + // TargetLastSyncDateTime The last sync time of the target app. + TargetLastSyncDateTime *time.Time `json:"targetLastSyncDateTime,omitempty"` +} + +// MobileAppSupportedDeviceType undocumented +type MobileAppSupportedDeviceType struct { + // Object is the base model of MobileAppSupportedDeviceType + Object + // Type Device type + Type *DeviceType `json:"type,omitempty"` + // MinimumOperatingSystemVersion Minimum OS version + MinimumOperatingSystemVersion *string `json:"minimumOperatingSystemVersion,omitempty"` + // MaximumOperatingSystemVersion Maximum OS version + MaximumOperatingSystemVersion *string `json:"maximumOperatingSystemVersion,omitempty"` +} + +// MobileAppTroubleshootingAppPolicyCreationHistory undocumented +type MobileAppTroubleshootingAppPolicyCreationHistory struct { + // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppPolicyCreationHistory + MobileAppTroubleshootingHistoryItem + // RunState Status of the item. + RunState *RunState `json:"runState,omitempty"` + // ErrorCode Error code for the failure, empty if no failure. + ErrorCode *string `json:"errorCode,omitempty"` +} + +// MobileAppTroubleshootingAppStateHistory undocumented +type MobileAppTroubleshootingAppStateHistory struct { + // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppStateHistory + MobileAppTroubleshootingHistoryItem + // ActionType AAD security group id to which it was targeted. + ActionType *MobileAppActionType `json:"actionType,omitempty"` + // RunState Status of the item. + RunState *RunState `json:"runState,omitempty"` + // ErrorCode Error code for the failure, empty if no failure. + ErrorCode *string `json:"errorCode,omitempty"` +} + +// MobileAppTroubleshootingAppTargetHistory undocumented +type MobileAppTroubleshootingAppTargetHistory struct { + // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppTargetHistory + MobileAppTroubleshootingHistoryItem + // SecurityGroupID AAD security group id to which it was targeted. + SecurityGroupID *string `json:"securityGroupId,omitempty"` + // RunState Status of the item. + RunState *RunState `json:"runState,omitempty"` + // ErrorCode Error code for the failure, empty if no failure. + ErrorCode *string `json:"errorCode,omitempty"` +} + +// MobileAppTroubleshootingAppUpdateHistory undocumented +type MobileAppTroubleshootingAppUpdateHistory struct { + // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppUpdateHistory + MobileAppTroubleshootingHistoryItem +} + +// MobileAppTroubleshootingDeviceCheckinHistory undocumented +type MobileAppTroubleshootingDeviceCheckinHistory struct { + // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingDeviceCheckinHistory + MobileAppTroubleshootingHistoryItem +} + +// MobileAppTroubleshootingEvent Event representing a users device application install status. +type MobileAppTroubleshootingEvent struct { + // DeviceManagementTroubleshootingEvent is the base model of MobileAppTroubleshootingEvent + DeviceManagementTroubleshootingEvent + // ManagedDeviceIdentifier Device identifier created or collected by Intune. + ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"` + // UserID Identifier for the user that tried to enroll the device. + UserID *string `json:"userId,omitempty"` + // ApplicationID Intune application identifier. + ApplicationID *string `json:"applicationId,omitempty"` + // History Intune Mobile Application Troubleshooting History Item + History []MobileAppTroubleshootingHistoryItem `json:"history,omitempty"` + // AppLogCollectionRequests undocumented + AppLogCollectionRequests []AppLogCollectionRequestObject `json:"appLogCollectionRequests,omitempty"` +} + +// MobileAppTroubleshootingHistoryItem undocumented +type MobileAppTroubleshootingHistoryItem struct { + // Object is the base model of MobileAppTroubleshootingHistoryItem + Object + // OccurrenceDateTime Time when the history item occurred. + OccurrenceDateTime *time.Time `json:"occurrenceDateTime,omitempty"` +} + +// MobileContainedApp An abstract class that represents a contained app in a mobileApp acting as a package. +type MobileContainedApp struct { + // Entity is the base model of MobileContainedApp + Entity +} + +// MobileLobApp An abstract base class containing properties for all mobile line of business apps. +type MobileLobApp struct { + // MobileApp is the base model of MobileLobApp + MobileApp + // CommittedContentVersion The internal committed content version. + CommittedContentVersion *string `json:"committedContentVersion,omitempty"` + // FileName The name of the main Lob application file. + FileName *string `json:"fileName,omitempty"` + // Size The total size, including all uploaded files. + Size *int `json:"size,omitempty"` + // ContentVersions undocumented + ContentVersions []MobileAppContent `json:"contentVersions,omitempty"` +} + +// MobileThreatDefenseConnector Entity which represents a connection to Mobile threat defense partner. +type MobileThreatDefenseConnector struct { + // Entity is the base model of MobileThreatDefenseConnector + Entity + // LastHeartbeatDateTime DateTime of last Heartbeat recieved from the Data Sync Partner + LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"` + // PartnerState Data Sync Partner state for this account + PartnerState *MobileThreatPartnerTenantState `json:"partnerState,omitempty"` + // AndroidMobileApplicationManagementEnabled For Android, set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. + AndroidMobileApplicationManagementEnabled *bool `json:"androidMobileApplicationManagementEnabled,omitempty"` + // IOSMobileApplicationManagementEnabled For IOS, get or set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. + IOSMobileApplicationManagementEnabled *bool `json:"iosMobileApplicationManagementEnabled,omitempty"` + // AndroidEnabled For Android, set whether data from the data sync partner should be used during compliance evaluations + AndroidEnabled *bool `json:"androidEnabled,omitempty"` + // IOSEnabled For IOS, get or set whether data from the data sync partner should be used during compliance evaluations + IOSEnabled *bool `json:"iosEnabled,omitempty"` + // WindowsEnabled For Windows, get or set whether data from the data sync partner should be used during compliance evaluations + WindowsEnabled *bool `json:"windowsEnabled,omitempty"` + // MacEnabled For Mac, get or set whether data from the data sync partner should be used during compliance evaluations + MacEnabled *bool `json:"macEnabled,omitempty"` + // AndroidDeviceBlockedOnMissingPartnerData For Android, set whether Intune must receive data from the data sync partner prior to marking a device compliant + AndroidDeviceBlockedOnMissingPartnerData *bool `json:"androidDeviceBlockedOnMissingPartnerData,omitempty"` + // IOSDeviceBlockedOnMissingPartnerData For IOS, set whether Intune must receive data from the data sync partner prior to marking a device compliant + IOSDeviceBlockedOnMissingPartnerData *bool `json:"iosDeviceBlockedOnMissingPartnerData,omitempty"` + // WindowsDeviceBlockedOnMissingPartnerData For Windows, set whether Intune must receive data from the data sync partner prior to marking a device compliant + WindowsDeviceBlockedOnMissingPartnerData *bool `json:"windowsDeviceBlockedOnMissingPartnerData,omitempty"` + // MacDeviceBlockedOnMissingPartnerData For Mac, get or set whether Intune must receive data from the data sync partner prior to marking a device compliant + MacDeviceBlockedOnMissingPartnerData *bool `json:"macDeviceBlockedOnMissingPartnerData,omitempty"` + // PartnerUnsupportedOsVersionBlocked Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Data Sync Partner + PartnerUnsupportedOsVersionBlocked *bool `json:"partnerUnsupportedOsVersionBlocked,omitempty"` + // PartnerUnresponsivenessThresholdInDays Get or Set days the per tenant tolerance to unresponsiveness for this partner integration + PartnerUnresponsivenessThresholdInDays *int `json:"partnerUnresponsivenessThresholdInDays,omitempty"` + // AllowPartnerToCollectIOSApplicationMetadata For IOS devices, allows the admin to configure whether the data sync partner may also collect metadata about installed applications from Intune + AllowPartnerToCollectIOSApplicationMetadata *bool `json:"allowPartnerToCollectIOSApplicationMetadata,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ModifiedPropertyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MoveActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MoveActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go new file mode 100644 index 00000000..f680af3a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// MuteParticipantOperation undocumented +type MuteParticipantOperation struct { + // CommsOperation is the base model of MuteParticipantOperation + CommsOperation +} + +// MuteParticipantsOperation undocumented +type MuteParticipantsOperation struct { + // CommsOperation is the base model of MuteParticipantsOperation + CommsOperation + // Participants undocumented + Participants []string `json:"participants,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go new file mode 100644 index 00000000..59eea30e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// NDESConnector Entity which represents an OnPrem Ndes connector. +type NDESConnector struct { + // Entity is the base model of NDESConnector + Entity + // LastConnectionDateTime Last connection time for the Ndes Connector + LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"` + // State Ndes Connector Status + State *NDESConnectorState `json:"state,omitempty"` + // DisplayName The friendly name of the Ndes Connector. + DisplayName *string `json:"displayName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go new file mode 100644 index 00000000..8f4c5c59 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go @@ -0,0 +1,109 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// NetworkConnection undocumented +type NetworkConnection struct { + // Object is the base model of NetworkConnection + Object + // ApplicationName undocumented + ApplicationName *string `json:"applicationName,omitempty"` + // DestinationAddress undocumented + DestinationAddress *string `json:"destinationAddress,omitempty"` + // DestinationDomain undocumented + DestinationDomain *string `json:"destinationDomain,omitempty"` + // DestinationPort undocumented + DestinationPort *string `json:"destinationPort,omitempty"` + // DestinationURL undocumented + DestinationURL *string `json:"destinationUrl,omitempty"` + // Direction undocumented + Direction *ConnectionDirection `json:"direction,omitempty"` + // DomainRegisteredDateTime undocumented + DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"` + // LocalDNSName undocumented + LocalDNSName *string `json:"localDnsName,omitempty"` + // NatDestinationAddress undocumented + NatDestinationAddress *string `json:"natDestinationAddress,omitempty"` + // NatDestinationPort undocumented + NatDestinationPort *string `json:"natDestinationPort,omitempty"` + // NatSourceAddress undocumented + NatSourceAddress *string `json:"natSourceAddress,omitempty"` + // NatSourcePort undocumented + NatSourcePort *string `json:"natSourcePort,omitempty"` + // Protocol undocumented + Protocol *SecurityNetworkProtocol `json:"protocol,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // SourceAddress undocumented + SourceAddress *string `json:"sourceAddress,omitempty"` + // SourcePort undocumented + SourcePort *string `json:"sourcePort,omitempty"` + // Status undocumented + Status *ConnectionStatus `json:"status,omitempty"` + // URLParameters undocumented + URLParameters *string `json:"urlParameters,omitempty"` +} + +// NetworkIPv4ConfigurationManagementCondition IPv4 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management conditions will only be considered TRUE when the network connection is active. +type NetworkIPv4ConfigurationManagementCondition struct { + // NetworkManagementCondition is the base model of NetworkIPv4ConfigurationManagementCondition + NetworkManagementCondition + // IPV4Prefix The IPv4 subnet to be connected to. e.g. 10.0.0.0/8 + IPV4Prefix *string `json:"ipV4Prefix,omitempty"` + // IPV4Gateway The IPv4 gateway address. e.g. 10.0.0.0 + IPV4Gateway *string `json:"ipV4Gateway,omitempty"` + // IPV4DHCPServer The IPv4 address of the DHCP server for the adapter. + IPV4DHCPServer *string `json:"ipV4DHCPServer,omitempty"` + // IPV4DNSServerList The IPv4 DNS servers configured for the adapter. + IPV4DNSServerList []string `json:"ipV4DNSServerList,omitempty"` + // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com + DNSSuffixList []string `json:"dnsSuffixList,omitempty"` +} + +// NetworkIPv6ConfigurationManagementCondition IPv6 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management condition will only be considered TRUE when the network connection is active. +type NetworkIPv6ConfigurationManagementCondition struct { + // NetworkManagementCondition is the base model of NetworkIPv6ConfigurationManagementCondition + NetworkManagementCondition + // IPV6Prefix The IPv6 subnet to be connected to. e.g. 2001:db8::/32 + IPV6Prefix *string `json:"ipV6Prefix,omitempty"` + // IPV6Gateway The IPv6 gateway address to. e.g 2001:db8::1 + IPV6Gateway *string `json:"ipV6Gateway,omitempty"` + // IPV6DNSServerList An IPv6 DNS servers configured for the adapter. + IPV6DNSServerList []string `json:"ipV6DNSServerList,omitempty"` + // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com + DNSSuffixList []string `json:"dnsSuffixList,omitempty"` +} + +// NetworkInterface undocumented +type NetworkInterface struct { + // Object is the base model of NetworkInterface + Object + // Description undocumented + Description *string `json:"description,omitempty"` + // IPV4Address undocumented + IPV4Address *string `json:"ipV4Address,omitempty"` + // IPV6Address undocumented + IPV6Address *string `json:"ipV6Address,omitempty"` + // LocalIPV6Address undocumented + LocalIPV6Address *string `json:"localIpV6Address,omitempty"` + // MacAddress undocumented + MacAddress *string `json:"macAddress,omitempty"` +} + +// NetworkLocationDetail undocumented +type NetworkLocationDetail struct { + // Object is the base model of NetworkLocationDetail + Object + // NetworkType undocumented + NetworkType *NetworkType `json:"networkType,omitempty"` + // NetworkNames undocumented + NetworkNames []string `json:"networkNames,omitempty"` +} + +// NetworkManagementCondition Contains the information to define a network management condition. +type NetworkManagementCondition struct { + // ManagementCondition is the base model of NetworkManagementCondition + ManagementCondition +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go new file mode 100644 index 00000000..92f152d4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Notebook undocumented +type Notebook struct { + // OnenoteEntityHierarchyModel is the base model of Notebook + OnenoteEntityHierarchyModel + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // UserRole undocumented + UserRole *OnenoteUserRole `json:"userRole,omitempty"` + // IsShared undocumented + IsShared *bool `json:"isShared,omitempty"` + // SectionsURL undocumented + SectionsURL *string `json:"sectionsUrl,omitempty"` + // SectionGroupsURL undocumented + SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"` + // Links undocumented + Links *NotebookLinks `json:"links,omitempty"` + // Sections undocumented + Sections []OnenoteSection `json:"sections,omitempty"` + // SectionGroups undocumented + SectionGroups []SectionGroup `json:"sectionGroups,omitempty"` +} + +// NotebookLinks undocumented +type NotebookLinks struct { + // Object is the base model of NotebookLinks + Object + // OneNoteClientURL undocumented + OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"` + // OneNoteWebURL undocumented + OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go new file mode 100644 index 00000000..344a4f98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Notification undocumented +type Notification struct { + // Entity is the base model of Notification + Entity + // TargetHostName undocumented + TargetHostName *string `json:"targetHostName,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // Payload undocumented + Payload *PayloadTypes `json:"payload,omitempty"` + // DisplayTimeToLive undocumented + DisplayTimeToLive *int `json:"displayTimeToLive,omitempty"` + // Priority undocumented + Priority *Priority `json:"priority,omitempty"` + // GroupName undocumented + GroupName *string `json:"groupName,omitempty"` + // TargetPolicy undocumented + TargetPolicy *TargetPolicyEndpoints `json:"targetPolicy,omitempty"` +} + +// NotificationMessageTemplate Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance. +type NotificationMessageTemplate struct { + // Entity is the base model of NotificationMessageTemplate + Entity + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Display name for the Notification Message Template. + DisplayName *string `json:"displayName,omitempty"` + // DefaultLocale The default locale to fallback onto when the requested locale is not available. + DefaultLocale *string `json:"defaultLocale,omitempty"` + // BrandingOptions The Message Template Branding Options. Branding is defined in the Intune Admin Console. + BrandingOptions *NotificationTemplateBrandingOptions `json:"brandingOptions,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // LocalizedNotificationMessages undocumented + LocalizedNotificationMessages []LocalizedNotificationMessage `json:"localizedNotificationMessages,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/NotifyUserActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go new file mode 100644 index 00000000..27f1e828 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// NumberColumn undocumented +type NumberColumn struct { + // Object is the base model of NumberColumn + Object + // DecimalPlaces undocumented + DecimalPlaces *string `json:"decimalPlaces,omitempty"` + // DisplayAs undocumented + DisplayAs *string `json:"displayAs,omitempty"` + // Maximum undocumented + Maximum *float64 `json:"maximum,omitempty"` + // Minimum undocumented + Minimum *float64 `json:"minimum,omitempty"` +} + +// NumberRange undocumented +type NumberRange struct { + // Object is the base model of NumberRange + Object + // LowerNumber Lower number. + LowerNumber *int `json:"lowerNumber,omitempty"` + // UpperNumber Upper number. + UpperNumber *int `json:"upperNumber,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go new file mode 100644 index 00000000..1491d533 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go @@ -0,0 +1,79 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// OMASetting undocumented +type OMASetting struct { + // Object is the base model of OMASetting + Object + // DisplayName Display Name. + DisplayName *string `json:"displayName,omitempty"` + // Description Description. + Description *string `json:"description,omitempty"` + // OMAURI OMA. + OMAURI *string `json:"omaUri,omitempty"` +} + +// OMASettingBase64 undocumented +type OMASettingBase64 struct { + // OMASetting is the base model of OMASettingBase64 + OMASetting + // FileName File name associated with the Value property (*.cer | *.crt | *.p7b | *.bin). + FileName *string `json:"fileName,omitempty"` + // Value Value. (Base64 encoded string) + Value *string `json:"value,omitempty"` +} + +// OMASettingBoolean undocumented +type OMASettingBoolean struct { + // OMASetting is the base model of OMASettingBoolean + OMASetting + // Value Value. + Value *bool `json:"value,omitempty"` +} + +// OMASettingDateTime undocumented +type OMASettingDateTime struct { + // OMASetting is the base model of OMASettingDateTime + OMASetting + // Value Value. + Value *time.Time `json:"value,omitempty"` +} + +// OMASettingFloatingPoint undocumented +type OMASettingFloatingPoint struct { + // OMASetting is the base model of OMASettingFloatingPoint + OMASetting + // Value Value. + Value *float64 `json:"value,omitempty"` +} + +// OMASettingInteger undocumented +type OMASettingInteger struct { + // OMASetting is the base model of OMASettingInteger + OMASetting + // Value Value. + Value *int `json:"value,omitempty"` + // IsReadOnly By setting to true, the CSP (configuration service provider) specified in the OMA-URI will perform a get, instead of set + IsReadOnly *bool `json:"isReadOnly,omitempty"` +} + +// OMASettingString undocumented +type OMASettingString struct { + // OMASetting is the base model of OMASettingString + OMASetting + // Value Value. + Value *string `json:"value,omitempty"` +} + +// OMASettingStringXML undocumented +type OMASettingStringXML struct { + // OMASetting is the base model of OMASettingStringXML + OMASetting + // FileName File name associated with the Value property (*.xml). + FileName *string `json:"fileName,omitempty"` + // Value Value. (UTF8 encoded byte array) + Value *Binary `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go new file mode 100644 index 00000000..691569b2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ObjectDefinition undocumented +type ObjectDefinition struct { + // Object is the base model of ObjectDefinition + Object + // Attributes undocumented + Attributes []AttributeDefinition `json:"attributes,omitempty"` + // Metadata undocumented + Metadata []MetadataEntry `json:"metadata,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // SupportedApis undocumented + SupportedApis []string `json:"supportedApis,omitempty"` +} + +// ObjectIdentity undocumented +type ObjectIdentity struct { + // Object is the base model of ObjectIdentity + Object + // SignInType undocumented + SignInType *string `json:"signInType,omitempty"` + // Issuer undocumented + Issuer *string `json:"issuer,omitempty"` + // IssuerAssignedID undocumented + IssuerAssignedID *string `json:"issuerAssignedId,omitempty"` +} + +// ObjectMapping undocumented +type ObjectMapping struct { + // Object is the base model of ObjectMapping + Object + // AttributeMappings undocumented + AttributeMappings []AttributeMapping `json:"attributeMappings,omitempty"` + // Enabled undocumented + Enabled *bool `json:"enabled,omitempty"` + // FlowTypes undocumented + FlowTypes *ObjectFlowTypes `json:"flowTypes,omitempty"` + // Metadata undocumented + Metadata []MetadataEntry `json:"metadata,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Scope undocumented + Scope *Filter `json:"scope,omitempty"` + // SourceObjectName undocumented + SourceObjectName *string `json:"sourceObjectName,omitempty"` + // TargetObjectName undocumented + TargetObjectName *string `json:"targetObjectName,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go new file mode 100644 index 00000000..55202512 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// OfficeClientCheckinStatus undocumented +type OfficeClientCheckinStatus struct { + // Object is the base model of OfficeClientCheckinStatus + Object + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DeviceName undocumented + DeviceName *string `json:"deviceName,omitempty"` + // DevicePlatform undocumented + DevicePlatform *string `json:"devicePlatform,omitempty"` + // DevicePlatformVersion undocumented + DevicePlatformVersion *string `json:"devicePlatformVersion,omitempty"` + // WasSuccessful undocumented + WasSuccessful *bool `json:"wasSuccessful,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // CheckinDateTime undocumented + CheckinDateTime *time.Time `json:"checkinDateTime,omitempty"` + // ErrorMessage undocumented + ErrorMessage *string `json:"errorMessage,omitempty"` + // AppliedPolicies undocumented + AppliedPolicies []string `json:"appliedPolicies,omitempty"` +} + +// OfficeClientConfiguration undocumented +type OfficeClientConfiguration struct { + // Entity is the base model of OfficeClientConfiguration + Entity + // UserPreferencePayload undocumented + UserPreferencePayload *Stream `json:"userPreferencePayload,omitempty"` + // PolicyPayload undocumented + PolicyPayload *Stream `json:"policyPayload,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // UserCheckinSummary undocumented + UserCheckinSummary *OfficeUserCheckinSummary `json:"userCheckinSummary,omitempty"` + // CheckinStatuses undocumented + CheckinStatuses []OfficeClientCheckinStatus `json:"checkinStatuses,omitempty"` + // Assignments undocumented + Assignments []OfficeClientConfigurationAssignment `json:"assignments,omitempty"` +} + +// OfficeClientConfigurationAssignment undocumented +type OfficeClientConfigurationAssignment struct { + // Entity is the base model of OfficeClientConfigurationAssignment + Entity + // Target undocumented + Target *OfficeConfigurationAssignmentTarget `json:"target,omitempty"` +} + +// OfficeConfiguration undocumented +type OfficeConfiguration struct { + // Entity is the base model of OfficeConfiguration + Entity + // TenantCheckinStatuses undocumented + TenantCheckinStatuses []OfficeClientCheckinStatus `json:"tenantCheckinStatuses,omitempty"` + // TenantUserCheckinSummary undocumented + TenantUserCheckinSummary *OfficeUserCheckinSummary `json:"tenantUserCheckinSummary,omitempty"` + // ClientConfigurations undocumented + ClientConfigurations []OfficeClientConfiguration `json:"clientConfigurations,omitempty"` +} + +// OfficeConfigurationAssignmentTarget undocumented +type OfficeConfigurationAssignmentTarget struct { + // Object is the base model of OfficeConfigurationAssignmentTarget + Object +} + +// OfficeConfigurationGroupAssignmentTarget undocumented +type OfficeConfigurationGroupAssignmentTarget struct { + // OfficeConfigurationAssignmentTarget is the base model of OfficeConfigurationGroupAssignmentTarget + OfficeConfigurationAssignmentTarget + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` +} + +// OfficeGraphInsights undocumented +type OfficeGraphInsights struct { + // Entity is the base model of OfficeGraphInsights + Entity + // Trending undocumented + Trending []Trending `json:"trending,omitempty"` + // Shared undocumented + Shared []SharedInsight `json:"shared,omitempty"` + // Used undocumented + Used []UsedInsight `json:"used,omitempty"` +} + +// OfficeSuiteApp Contains properties and inherited properties for the Office365 Suite App. +type OfficeSuiteApp struct { + // MobileApp is the base model of OfficeSuiteApp + MobileApp + // AutoAcceptEula The value to accept the EULA automatically on the enduser's device. + AutoAcceptEula *bool `json:"autoAcceptEula,omitempty"` + // ProductIDs The Product Ids that represent the Office365 Suite SKU. + ProductIDs []OfficeProductID `json:"productIds,omitempty"` + // ExcludedApps The property to represent the apps which are excluded from the selected Office365 Product Id. + ExcludedApps *ExcludedApps `json:"excludedApps,omitempty"` + // UseSharedComputerActivation The property to represent that whether the shared computer activation is used not for Office365 app suite. + UseSharedComputerActivation *bool `json:"useSharedComputerActivation,omitempty"` + // UpdateChannel The property to represent the Office365 Update Channel. + UpdateChannel *OfficeUpdateChannel `json:"updateChannel,omitempty"` + // OfficePlatformArchitecture The property to represent the Office365 app suite version. + OfficePlatformArchitecture *WindowsArchitecture `json:"officePlatformArchitecture,omitempty"` + // LocalesToInstall The property to represent the locales which are installed when the apps from Office365 is installed. It uses standard RFC 6033. Ref: https://technet.microsoft.com/en-us/library/cc179219(v=office.16).aspx + LocalesToInstall []string `json:"localesToInstall,omitempty"` + // InstallProgressDisplayLevel To specify the level of display for the Installation Progress Setup UI on the Device. + InstallProgressDisplayLevel *OfficeSuiteInstallProgressDisplayLevel `json:"installProgressDisplayLevel,omitempty"` + // ShouldUninstallOlderVersionsOfOffice The property to determine whether to uninstall existing Office MSI if an Office365 app suite is deployed to the device or not. + ShouldUninstallOlderVersionsOfOffice *bool `json:"shouldUninstallOlderVersionsOfOffice,omitempty"` + // TargetVersion The property to represent the specific target version for the Office365 app suite that should be remained deployed on the devices. + TargetVersion *string `json:"targetVersion,omitempty"` + // UpdateVersion The property to represent the update version in which the specific target version is available for the Office365 app suite. + UpdateVersion *string `json:"updateVersion,omitempty"` + // OfficeConfigurationXML The property to represent the XML configuration file that can be specified for Office ProPlus Apps. Takes precedence over all other properties. When present, the XML configuration file will be used to create the app. + OfficeConfigurationXML *Binary `json:"officeConfigurationXml,omitempty"` +} + +// OfficeUserCheckinSummary undocumented +type OfficeUserCheckinSummary struct { + // Object is the base model of OfficeUserCheckinSummary + Object + // SucceededUserCount undocumented + SucceededUserCount *int `json:"succeededUserCount,omitempty"` + // FailedUserCount undocumented + FailedUserCount *int `json:"failedUserCount,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go new file mode 100644 index 00000000..3f81ff91 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go @@ -0,0 +1,283 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Office365ActivationCounts undocumented +type Office365ActivationCounts struct { + // Entity is the base model of Office365ActivationCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ProductType undocumented + ProductType *string `json:"productType,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // Mac undocumented + Mac *int `json:"mac,omitempty"` + // Android undocumented + Android *int `json:"android,omitempty"` + // IOS undocumented + IOS *int `json:"ios,omitempty"` + // Windows10Mobile undocumented + Windows10Mobile *int `json:"windows10Mobile,omitempty"` +} + +// Office365ActivationsUserCounts undocumented +type Office365ActivationsUserCounts struct { + // Entity is the base model of Office365ActivationsUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ProductType undocumented + ProductType *string `json:"productType,omitempty"` + // Assigned undocumented + Assigned *int `json:"assigned,omitempty"` + // Activated undocumented + Activated *int `json:"activated,omitempty"` + // SharedComputerActivation undocumented + SharedComputerActivation *int `json:"sharedComputerActivation,omitempty"` +} + +// Office365ActivationsUserDetail undocumented +type Office365ActivationsUserDetail struct { + // Entity is the base model of Office365ActivationsUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // UserActivationCounts undocumented + UserActivationCounts []UserActivationCounts `json:"userActivationCounts,omitempty"` +} + +// Office365ActiveUserCounts undocumented +type Office365ActiveUserCounts struct { + // Entity is the base model of Office365ActiveUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Office365 undocumented + Office365 *int `json:"office365,omitempty"` + // Exchange undocumented + Exchange *int `json:"exchange,omitempty"` + // OneDrive undocumented + OneDrive *int `json:"oneDrive,omitempty"` + // SharePoint undocumented + SharePoint *int `json:"sharePoint,omitempty"` + // SkypeForBusiness undocumented + SkypeForBusiness *int `json:"skypeForBusiness,omitempty"` + // Yammer undocumented + Yammer *int `json:"yammer,omitempty"` + // Teams undocumented + Teams *int `json:"teams,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365ActiveUserDetail undocumented +type Office365ActiveUserDetail struct { + // Entity is the base model of Office365ActiveUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // HasExchangeLicense undocumented + HasExchangeLicense *bool `json:"hasExchangeLicense,omitempty"` + // HasOneDriveLicense undocumented + HasOneDriveLicense *bool `json:"hasOneDriveLicense,omitempty"` + // HasSharePointLicense undocumented + HasSharePointLicense *bool `json:"hasSharePointLicense,omitempty"` + // HasSkypeForBusinessLicense undocumented + HasSkypeForBusinessLicense *bool `json:"hasSkypeForBusinessLicense,omitempty"` + // HasYammerLicense undocumented + HasYammerLicense *bool `json:"hasYammerLicense,omitempty"` + // HasTeamsLicense undocumented + HasTeamsLicense *bool `json:"hasTeamsLicense,omitempty"` + // ExchangeLastActivityDate undocumented + ExchangeLastActivityDate *Date `json:"exchangeLastActivityDate,omitempty"` + // OneDriveLastActivityDate undocumented + OneDriveLastActivityDate *Date `json:"oneDriveLastActivityDate,omitempty"` + // SharePointLastActivityDate undocumented + SharePointLastActivityDate *Date `json:"sharePointLastActivityDate,omitempty"` + // SkypeForBusinessLastActivityDate undocumented + SkypeForBusinessLastActivityDate *Date `json:"skypeForBusinessLastActivityDate,omitempty"` + // YammerLastActivityDate undocumented + YammerLastActivityDate *Date `json:"yammerLastActivityDate,omitempty"` + // TeamsLastActivityDate undocumented + TeamsLastActivityDate *Date `json:"teamsLastActivityDate,omitempty"` + // ExchangeLicenseAssignDate undocumented + ExchangeLicenseAssignDate *Date `json:"exchangeLicenseAssignDate,omitempty"` + // OneDriveLicenseAssignDate undocumented + OneDriveLicenseAssignDate *Date `json:"oneDriveLicenseAssignDate,omitempty"` + // SharePointLicenseAssignDate undocumented + SharePointLicenseAssignDate *Date `json:"sharePointLicenseAssignDate,omitempty"` + // SkypeForBusinessLicenseAssignDate undocumented + SkypeForBusinessLicenseAssignDate *Date `json:"skypeForBusinessLicenseAssignDate,omitempty"` + // YammerLicenseAssignDate undocumented + YammerLicenseAssignDate *Date `json:"yammerLicenseAssignDate,omitempty"` + // TeamsLicenseAssignDate undocumented + TeamsLicenseAssignDate *Date `json:"teamsLicenseAssignDate,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` +} + +// Office365GroupsActivityCounts undocumented +type Office365GroupsActivityCounts struct { + // Entity is the base model of Office365GroupsActivityCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ExchangeEmailsReceived undocumented + ExchangeEmailsReceived *int `json:"exchangeEmailsReceived,omitempty"` + // YammerMessagesPosted undocumented + YammerMessagesPosted *int `json:"yammerMessagesPosted,omitempty"` + // YammerMessagesRead undocumented + YammerMessagesRead *int `json:"yammerMessagesRead,omitempty"` + // YammerMessagesLiked undocumented + YammerMessagesLiked *int `json:"yammerMessagesLiked,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365GroupsActivityDetail undocumented +type Office365GroupsActivityDetail struct { + // Entity is the base model of Office365GroupsActivityDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // GroupID undocumented + GroupID *string `json:"groupId,omitempty"` + // GroupDisplayName undocumented + GroupDisplayName *string `json:"groupDisplayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // OwnerPrincipalName undocumented + OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // GroupType undocumented + GroupType *string `json:"groupType,omitempty"` + // MemberCount undocumented + MemberCount *int `json:"memberCount,omitempty"` + // ExternalMemberCount undocumented + ExternalMemberCount *int `json:"externalMemberCount,omitempty"` + // ExchangeReceivedEmailCount undocumented + ExchangeReceivedEmailCount *int `json:"exchangeReceivedEmailCount,omitempty"` + // SharePointActiveFileCount undocumented + SharePointActiveFileCount *int `json:"sharePointActiveFileCount,omitempty"` + // YammerPostedMessageCount undocumented + YammerPostedMessageCount *int `json:"yammerPostedMessageCount,omitempty"` + // YammerReadMessageCount undocumented + YammerReadMessageCount *int `json:"yammerReadMessageCount,omitempty"` + // YammerLikedMessageCount undocumented + YammerLikedMessageCount *int `json:"yammerLikedMessageCount,omitempty"` + // ExchangeMailboxTotalItemCount undocumented + ExchangeMailboxTotalItemCount *int `json:"exchangeMailboxTotalItemCount,omitempty"` + // ExchangeMailboxStorageUsedInBytes undocumented + ExchangeMailboxStorageUsedInBytes *int `json:"exchangeMailboxStorageUsedInBytes,omitempty"` + // SharePointTotalFileCount undocumented + SharePointTotalFileCount *int `json:"sharePointTotalFileCount,omitempty"` + // SharePointSiteStorageUsedInBytes undocumented + SharePointSiteStorageUsedInBytes *int `json:"sharePointSiteStorageUsedInBytes,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365GroupsActivityFileCounts undocumented +type Office365GroupsActivityFileCounts struct { + // Entity is the base model of Office365GroupsActivityFileCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365GroupsActivityGroupCounts undocumented +type Office365GroupsActivityGroupCounts struct { + // Entity is the base model of Office365GroupsActivityGroupCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365GroupsActivityStorage undocumented +type Office365GroupsActivityStorage struct { + // Entity is the base model of Office365GroupsActivityStorage + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // MailboxStorageUsedInBytes undocumented + MailboxStorageUsedInBytes *int `json:"mailboxStorageUsedInBytes,omitempty"` + // SiteStorageUsedInBytes undocumented + SiteStorageUsedInBytes *int `json:"siteStorageUsedInBytes,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// Office365ServicesUserCounts undocumented +type Office365ServicesUserCounts struct { + // Entity is the base model of Office365ServicesUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ExchangeActive undocumented + ExchangeActive *int `json:"exchangeActive,omitempty"` + // ExchangeInactive undocumented + ExchangeInactive *int `json:"exchangeInactive,omitempty"` + // OneDriveActive undocumented + OneDriveActive *int `json:"oneDriveActive,omitempty"` + // OneDriveInactive undocumented + OneDriveInactive *int `json:"oneDriveInactive,omitempty"` + // SharePointActive undocumented + SharePointActive *int `json:"sharePointActive,omitempty"` + // SharePointInactive undocumented + SharePointInactive *int `json:"sharePointInactive,omitempty"` + // SkypeForBusinessActive undocumented + SkypeForBusinessActive *int `json:"skypeForBusinessActive,omitempty"` + // SkypeForBusinessInactive undocumented + SkypeForBusinessInactive *int `json:"skypeForBusinessInactive,omitempty"` + // YammerActive undocumented + YammerActive *int `json:"yammerActive,omitempty"` + // YammerInactive undocumented + YammerInactive *int `json:"yammerInactive,omitempty"` + // TeamsActive undocumented + TeamsActive *int `json:"teamsActive,omitempty"` + // TeamsInactive undocumented + TeamsInactive *int `json:"teamsInactive,omitempty"` + // Office365Active undocumented + Office365Active *int `json:"office365Active,omitempty"` + // Office365Inactive undocumented + Office365Inactive *int `json:"office365Inactive,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go new file mode 100644 index 00000000..06971674 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go @@ -0,0 +1,115 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// OnPremisesAgent undocumented +type OnPremisesAgent struct { + // Entity is the base model of OnPremisesAgent + Entity + // MachineName undocumented + MachineName *string `json:"machineName,omitempty"` + // ExternalIP undocumented + ExternalIP *string `json:"externalIp,omitempty"` + // Status undocumented + Status *AgentStatus `json:"status,omitempty"` + // SupportedPublishingTypes undocumented + SupportedPublishingTypes []OnPremisesPublishingType `json:"supportedPublishingTypes,omitempty"` + // AgentGroups undocumented + AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"` +} + +// OnPremisesAgentGroup undocumented +type OnPremisesAgentGroup struct { + // Entity is the base model of OnPremisesAgentGroup + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // PublishingType undocumented + PublishingType *OnPremisesPublishingType `json:"publishingType,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // Agents undocumented + Agents []OnPremisesAgent `json:"agents,omitempty"` + // PublishedResources undocumented + PublishedResources []PublishedResource `json:"publishedResources,omitempty"` +} + +// OnPremisesConditionalAccessSettings Singleton entity which represents the Exchange OnPremises Conditional Access Settings for a tenant. +type OnPremisesConditionalAccessSettings struct { + // Entity is the base model of OnPremisesConditionalAccessSettings + Entity + // Enabled Indicates if on premises conditional access is enabled for this organization + Enabled *bool `json:"enabled,omitempty"` + // IncludedGroups User groups that will be targeted by on premises conditional access. All users in these groups will be required to have mobile device managed and compliant for mail access. + IncludedGroups []UUID `json:"includedGroups,omitempty"` + // ExcludedGroups User groups that will be exempt by on premises conditional access. All users in these groups will be exempt from the conditional access policy. + ExcludedGroups []UUID `json:"excludedGroups,omitempty"` + // OverrideDefaultRule Override the default access rule when allowing a device to ensure access is granted. + OverrideDefaultRule *bool `json:"overrideDefaultRule,omitempty"` +} + +// OnPremisesExtensionAttributes undocumented +type OnPremisesExtensionAttributes struct { + // Object is the base model of OnPremisesExtensionAttributes + Object + // ExtensionAttribute1 undocumented + ExtensionAttribute1 *string `json:"extensionAttribute1,omitempty"` + // ExtensionAttribute2 undocumented + ExtensionAttribute2 *string `json:"extensionAttribute2,omitempty"` + // ExtensionAttribute3 undocumented + ExtensionAttribute3 *string `json:"extensionAttribute3,omitempty"` + // ExtensionAttribute4 undocumented + ExtensionAttribute4 *string `json:"extensionAttribute4,omitempty"` + // ExtensionAttribute5 undocumented + ExtensionAttribute5 *string `json:"extensionAttribute5,omitempty"` + // ExtensionAttribute6 undocumented + ExtensionAttribute6 *string `json:"extensionAttribute6,omitempty"` + // ExtensionAttribute7 undocumented + ExtensionAttribute7 *string `json:"extensionAttribute7,omitempty"` + // ExtensionAttribute8 undocumented + ExtensionAttribute8 *string `json:"extensionAttribute8,omitempty"` + // ExtensionAttribute9 undocumented + ExtensionAttribute9 *string `json:"extensionAttribute9,omitempty"` + // ExtensionAttribute10 undocumented + ExtensionAttribute10 *string `json:"extensionAttribute10,omitempty"` + // ExtensionAttribute11 undocumented + ExtensionAttribute11 *string `json:"extensionAttribute11,omitempty"` + // ExtensionAttribute12 undocumented + ExtensionAttribute12 *string `json:"extensionAttribute12,omitempty"` + // ExtensionAttribute13 undocumented + ExtensionAttribute13 *string `json:"extensionAttribute13,omitempty"` + // ExtensionAttribute14 undocumented + ExtensionAttribute14 *string `json:"extensionAttribute14,omitempty"` + // ExtensionAttribute15 undocumented + ExtensionAttribute15 *string `json:"extensionAttribute15,omitempty"` +} + +// OnPremisesProvisioningError undocumented +type OnPremisesProvisioningError struct { + // Object is the base model of OnPremisesProvisioningError + Object + // Value undocumented + Value *string `json:"value,omitempty"` + // Category undocumented + Category *string `json:"category,omitempty"` + // PropertyCausingError undocumented + PropertyCausingError *string `json:"propertyCausingError,omitempty"` + // OccurredDateTime undocumented + OccurredDateTime *time.Time `json:"occurredDateTime,omitempty"` +} + +// OnPremisesPublishingProfile undocumented +type OnPremisesPublishingProfile struct { + // Entity is the base model of OnPremisesPublishingProfile + Entity + // HybridAgentUpdaterConfiguration undocumented + HybridAgentUpdaterConfiguration *HybridAgentUpdaterConfiguration `json:"hybridAgentUpdaterConfiguration,omitempty"` + // Agents undocumented + Agents []OnPremisesAgent `json:"agents,omitempty"` + // AgentGroups undocumented + AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"` + // PublishedResources undocumented + PublishedResources []PublishedResource `json:"publishedResources,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go new file mode 100644 index 00000000..e88e93b7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go @@ -0,0 +1,95 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OneDriveActivityUserDetail undocumented +type OneDriveActivityUserDetail struct { + // Entity is the base model of OneDriveActivityUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // ViewedOrEditedFileCount undocumented + ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"` + // SyncedFileCount undocumented + SyncedFileCount *int `json:"syncedFileCount,omitempty"` + // SharedInternallyFileCount undocumented + SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"` + // SharedExternallyFileCount undocumented + SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// OneDriveUsageAccountCounts undocumented +type OneDriveUsageAccountCounts struct { + // Entity is the base model of OneDriveUsageAccountCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// OneDriveUsageAccountDetail undocumented +type OneDriveUsageAccountDetail struct { + // Entity is the base model of OneDriveUsageAccountDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteURL undocumented + SiteURL *string `json:"siteUrl,omitempty"` + // OwnerDisplayName undocumented + OwnerDisplayName *string `json:"ownerDisplayName,omitempty"` + // OwnerPrincipalName undocumented + OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // FileCount undocumented + FileCount *int `json:"fileCount,omitempty"` + // ActiveFileCount undocumented + ActiveFileCount *int `json:"activeFileCount,omitempty"` + // StorageUsedInBytes undocumented + StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"` + // StorageAllocatedInBytes undocumented + StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// OneDriveUsageFileCounts undocumented +type OneDriveUsageFileCounts struct { + // Entity is the base model of OneDriveUsageFileCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go new file mode 100644 index 00000000..72b03b4f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go @@ -0,0 +1,165 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Onenote undocumented +type Onenote struct { + // Entity is the base model of Onenote + Entity + // Notebooks undocumented + Notebooks []Notebook `json:"notebooks,omitempty"` + // Sections undocumented + Sections []OnenoteSection `json:"sections,omitempty"` + // SectionGroups undocumented + SectionGroups []SectionGroup `json:"sectionGroups,omitempty"` + // Pages undocumented + Pages []OnenotePage `json:"pages,omitempty"` + // Resources undocumented + Resources []OnenoteResource `json:"resources,omitempty"` + // Operations undocumented + Operations []OnenoteOperation `json:"operations,omitempty"` +} + +// OnenoteEntityBaseModel undocumented +type OnenoteEntityBaseModel struct { + // Entity is the base model of OnenoteEntityBaseModel + Entity + // Self undocumented + Self *string `json:"self,omitempty"` +} + +// OnenoteEntityHierarchyModel undocumented +type OnenoteEntityHierarchyModel struct { + // OnenoteEntitySchemaObjectModel is the base model of OnenoteEntityHierarchyModel + OnenoteEntitySchemaObjectModel + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// OnenoteEntitySchemaObjectModel undocumented +type OnenoteEntitySchemaObjectModel struct { + // OnenoteEntityBaseModel is the base model of OnenoteEntitySchemaObjectModel + OnenoteEntityBaseModel + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` +} + +// OnenoteOperation undocumented +type OnenoteOperation struct { + // Operation is the base model of OnenoteOperation + Operation + // ResourceLocation undocumented + ResourceLocation *string `json:"resourceLocation,omitempty"` + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // Error undocumented + Error *OnenoteOperationError `json:"error,omitempty"` + // PercentComplete undocumented + PercentComplete *string `json:"percentComplete,omitempty"` +} + +// OnenoteOperationError undocumented +type OnenoteOperationError struct { + // Object is the base model of OnenoteOperationError + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` +} + +// OnenotePage undocumented +type OnenotePage struct { + // OnenoteEntitySchemaObjectModel is the base model of OnenotePage + OnenoteEntitySchemaObjectModel + // Title undocumented + Title *string `json:"title,omitempty"` + // CreatedByAppID undocumented + CreatedByAppID *string `json:"createdByAppId,omitempty"` + // Links undocumented + Links *PageLinks `json:"links,omitempty"` + // ContentURL undocumented + ContentURL *string `json:"contentUrl,omitempty"` + // Content undocumented + Content *Stream `json:"content,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Level undocumented + Level *int `json:"level,omitempty"` + // Order undocumented + Order *int `json:"order,omitempty"` + // UserTags undocumented + UserTags []string `json:"userTags,omitempty"` + // ParentSection undocumented + ParentSection *OnenoteSection `json:"parentSection,omitempty"` + // ParentNotebook undocumented + ParentNotebook *Notebook `json:"parentNotebook,omitempty"` +} + +// OnenotePagePreview undocumented +type OnenotePagePreview struct { + // Object is the base model of OnenotePagePreview + Object + // PreviewText undocumented + PreviewText *string `json:"previewText,omitempty"` + // Links undocumented + Links *OnenotePagePreviewLinks `json:"links,omitempty"` +} + +// OnenotePagePreviewLinks undocumented +type OnenotePagePreviewLinks struct { + // Object is the base model of OnenotePagePreviewLinks + Object + // PreviewImageURL undocumented + PreviewImageURL *ExternalLink `json:"previewImageUrl,omitempty"` +} + +// OnenotePatchContentCommand undocumented +type OnenotePatchContentCommand struct { + // Object is the base model of OnenotePatchContentCommand + Object + // Action undocumented + Action *OnenotePatchActionType `json:"action,omitempty"` + // Target undocumented + Target *string `json:"target,omitempty"` + // Content undocumented + Content *string `json:"content,omitempty"` + // Position undocumented + Position *OnenotePatchInsertPosition `json:"position,omitempty"` +} + +// OnenoteResource undocumented +type OnenoteResource struct { + // OnenoteEntityBaseModel is the base model of OnenoteResource + OnenoteEntityBaseModel + // Content undocumented + Content *Stream `json:"content,omitempty"` + // ContentURL undocumented + ContentURL *string `json:"contentUrl,omitempty"` +} + +// OnenoteSection undocumented +type OnenoteSection struct { + // OnenoteEntityHierarchyModel is the base model of OnenoteSection + OnenoteEntityHierarchyModel + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // Links undocumented + Links *SectionLinks `json:"links,omitempty"` + // PagesURL undocumented + PagesURL *string `json:"pagesUrl,omitempty"` + // ParentNotebook undocumented + ParentNotebook *Notebook `json:"parentNotebook,omitempty"` + // ParentSectionGroup undocumented + ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"` + // Pages undocumented + Pages []OnenotePage `json:"pages,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go new file mode 100644 index 00000000..ce82ae84 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go @@ -0,0 +1,61 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// OnlineMeeting undocumented +type OnlineMeeting struct { + // Entity is the base model of OnlineMeeting + Entity + // CreationDateTime undocumented + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // CanceledDateTime undocumented + CanceledDateTime *time.Time `json:"canceledDateTime,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // EntryExitAnnouncement undocumented + EntryExitAnnouncement *bool `json:"entryExitAnnouncement,omitempty"` + // JoinURL undocumented + JoinURL *string `json:"joinUrl,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // IsCancelled undocumented + IsCancelled *bool `json:"isCancelled,omitempty"` + // Participants undocumented + Participants *MeetingParticipants `json:"participants,omitempty"` + // IsBroadcast undocumented + IsBroadcast *bool `json:"isBroadcast,omitempty"` + // AccessLevel undocumented + AccessLevel *AccessLevel `json:"accessLevel,omitempty"` + // Capabilities undocumented + Capabilities []MeetingCapabilities `json:"capabilities,omitempty"` + // AudioConferencing undocumented + AudioConferencing *AudioConferencing `json:"audioConferencing,omitempty"` + // ChatInfo undocumented + ChatInfo *ChatInfo `json:"chatInfo,omitempty"` + // VideoTeleconferenceID undocumented + VideoTeleconferenceID *string `json:"videoTeleconferenceId,omitempty"` +} + +// OnlineMeetingInfo undocumented +type OnlineMeetingInfo struct { + // Object is the base model of OnlineMeetingInfo + Object + // JoinURL undocumented + JoinURL *string `json:"joinUrl,omitempty"` + // ConferenceID undocumented + ConferenceID *string `json:"conferenceId,omitempty"` + // TollNumber undocumented + TollNumber *string `json:"tollNumber,omitempty"` + // TollFreeNumbers undocumented + TollFreeNumbers []string `json:"tollFreeNumbers,omitempty"` + // QuickDial undocumented + QuickDial *string `json:"quickDial,omitempty"` + // Phones undocumented + Phones []Phone `json:"phones,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go new file mode 100644 index 00000000..f82e2e36 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go @@ -0,0 +1,39 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OpenShift undocumented +type OpenShift struct { + // ChangeTrackedEntity is the base model of OpenShift + ChangeTrackedEntity + // SharedOpenShift undocumented + SharedOpenShift *OpenShiftItem `json:"sharedOpenShift,omitempty"` + // DraftOpenShift undocumented + DraftOpenShift *OpenShiftItem `json:"draftOpenShift,omitempty"` + // SchedulingGroupID undocumented + SchedulingGroupID *string `json:"schedulingGroupId,omitempty"` +} + +// OpenShiftChangeRequestObject undocumented +type OpenShiftChangeRequestObject struct { + // ScheduleChangeRequestObject is the base model of OpenShiftChangeRequestObject + ScheduleChangeRequestObject + // OpenShiftID undocumented + OpenShiftID *string `json:"openShiftId,omitempty"` +} + +// OpenShiftItem undocumented +type OpenShiftItem struct { + // ShiftItem is the base model of OpenShiftItem + ShiftItem + // OpenSlotCount undocumented + OpenSlotCount *int `json:"openSlotCount,omitempty"` +} + +// OpenTypeExtension undocumented +type OpenTypeExtension struct { + // Extension is the base model of OpenTypeExtension + Extension + // ExtensionName undocumented + ExtensionName *string `json:"extensionName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OpeningHoursSpecificationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OperatingSystemVersionRangeModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go new file mode 100644 index 00000000..59e60029 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Operation undocumented +type Operation struct { + // Entity is the base model of Operation + Entity + // Status undocumented + Status *OperationStatus `json:"status,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastActionDateTime undocumented + LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"` +} + +// OperationError undocumented +type OperationError struct { + // Object is the base model of OperationError + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go new file mode 100644 index 00000000..aa3b8402 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// OptionalClaim undocumented +type OptionalClaim struct { + // Object is the base model of OptionalClaim + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Source undocumented + Source *string `json:"source,omitempty"` + // Essential undocumented + Essential *bool `json:"essential,omitempty"` + // AdditionalProperties undocumented + AdditionalProperties []string `json:"additionalProperties,omitempty"` +} + +// OptionalClaims undocumented +type OptionalClaims struct { + // Object is the base model of OptionalClaims + Object + // IDToken undocumented + IDToken []OptionalClaim `json:"idToken,omitempty"` + // AccessToken undocumented + AccessToken []OptionalClaim `json:"accessToken,omitempty"` + // Saml2Token undocumented + Saml2Token []OptionalClaim `json:"saml2Token,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OrgContactModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OrgContactModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go new file mode 100644 index 00000000..56e66e04 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go @@ -0,0 +1,63 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Organization The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level. +type Organization struct { + // DirectoryObject is the base model of Organization + DirectoryObject + // AssignedPlans undocumented + AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"` + // BusinessPhones undocumented + BusinessPhones []string `json:"businessPhones,omitempty"` + // City undocumented + City *string `json:"city,omitempty"` + // Country undocumented + Country *string `json:"country,omitempty"` + // CountryLetterCode undocumented + CountryLetterCode *string `json:"countryLetterCode,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsMultipleDataLocationsForServicesEnabled undocumented + IsMultipleDataLocationsForServicesEnabled *bool `json:"isMultipleDataLocationsForServicesEnabled,omitempty"` + // MarketingNotificationEmails undocumented + MarketingNotificationEmails []string `json:"marketingNotificationEmails,omitempty"` + // OnPremisesLastSyncDateTime undocumented + OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"` + // OnPremisesSyncEnabled undocumented + OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"` + // PostalCode undocumented + PostalCode *string `json:"postalCode,omitempty"` + // PreferredLanguage undocumented + PreferredLanguage *string `json:"preferredLanguage,omitempty"` + // PrivacyProfile undocumented + PrivacyProfile *PrivacyProfile `json:"privacyProfile,omitempty"` + // ProvisionedPlans undocumented + ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"` + // SecurityComplianceNotificationMails undocumented + SecurityComplianceNotificationMails []string `json:"securityComplianceNotificationMails,omitempty"` + // SecurityComplianceNotificationPhones undocumented + SecurityComplianceNotificationPhones []string `json:"securityComplianceNotificationPhones,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // Street undocumented + Street *string `json:"street,omitempty"` + // TechnicalNotificationMails undocumented + TechnicalNotificationMails []string `json:"technicalNotificationMails,omitempty"` + // VerifiedDomains undocumented + VerifiedDomains []VerifiedDomain `json:"verifiedDomains,omitempty"` + // MobileDeviceManagementAuthority Mobile device management authority. + MobileDeviceManagementAuthority *MDMAuthority `json:"mobileDeviceManagementAuthority,omitempty"` + // CertificateConnectorSetting Certificate connector setting. + CertificateConnectorSetting *CertificateConnectorSetting `json:"certificateConnectorSetting,omitempty"` + // Brandings undocumented + Brandings []OrganizationalBranding `json:"brandings,omitempty"` + // CertificateBasedAuthConfiguration undocumented + CertificateBasedAuthConfiguration []CertificateBasedAuthConfiguration `json:"certificateBasedAuthConfiguration,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OrganizerMeetingInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OsVersionCountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OsVersionCountModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OutgoingCallOptionsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go new file mode 100644 index 00000000..ae598476 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// OutlookCategory undocumented +type OutlookCategory struct { + // Entity is the base model of OutlookCategory + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Color undocumented + Color *CategoryColor `json:"color,omitempty"` +} + +// OutlookGeoCoordinates undocumented +type OutlookGeoCoordinates struct { + // Object is the base model of OutlookGeoCoordinates + Object + // Altitude undocumented + Altitude *float64 `json:"altitude,omitempty"` + // Latitude undocumented + Latitude *float64 `json:"latitude,omitempty"` + // Longitude undocumented + Longitude *float64 `json:"longitude,omitempty"` + // Accuracy undocumented + Accuracy *float64 `json:"accuracy,omitempty"` + // AltitudeAccuracy undocumented + AltitudeAccuracy *float64 `json:"altitudeAccuracy,omitempty"` +} + +// OutlookItem undocumented +type OutlookItem struct { + // Entity is the base model of OutlookItem + Entity + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // ChangeKey undocumented + ChangeKey *string `json:"changeKey,omitempty"` + // Categories undocumented + Categories []string `json:"categories,omitempty"` +} + +// OutlookTask undocumented +type OutlookTask struct { + // OutlookItem is the base model of OutlookTask + OutlookItem + // AssignedTo undocumented + AssignedTo *string `json:"assignedTo,omitempty"` + // Body undocumented + Body *ItemBody `json:"body,omitempty"` + // CompletedDateTime undocumented + CompletedDateTime *DateTimeTimeZone `json:"completedDateTime,omitempty"` + // DueDateTime undocumented + DueDateTime *DateTimeTimeZone `json:"dueDateTime,omitempty"` + // HasAttachments undocumented + HasAttachments *bool `json:"hasAttachments,omitempty"` + // Importance undocumented + Importance *Importance `json:"importance,omitempty"` + // IsReminderOn undocumented + IsReminderOn *bool `json:"isReminderOn,omitempty"` + // Owner undocumented + Owner *string `json:"owner,omitempty"` + // ParentFolderID undocumented + ParentFolderID *string `json:"parentFolderId,omitempty"` + // Recurrence undocumented + Recurrence *PatternedRecurrence `json:"recurrence,omitempty"` + // ReminderDateTime undocumented + ReminderDateTime *DateTimeTimeZone `json:"reminderDateTime,omitempty"` + // Sensitivity undocumented + Sensitivity *Sensitivity `json:"sensitivity,omitempty"` + // StartDateTime undocumented + StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"` + // Status undocumented + Status *TaskStatus `json:"status,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` + // Attachments undocumented + Attachments []Attachment `json:"attachments,omitempty"` +} + +// OutlookTaskFolder undocumented +type OutlookTaskFolder struct { + // Entity is the base model of OutlookTaskFolder + Entity + // ChangeKey undocumented + ChangeKey *string `json:"changeKey,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // IsDefaultFolder undocumented + IsDefaultFolder *bool `json:"isDefaultFolder,omitempty"` + // ParentGroupKey undocumented + ParentGroupKey *UUID `json:"parentGroupKey,omitempty"` + // Tasks undocumented + Tasks []OutlookTask `json:"tasks,omitempty"` + // SingleValueExtendedProperties undocumented + SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"` + // MultiValueExtendedProperties undocumented + MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"` +} + +// OutlookTaskGroup undocumented +type OutlookTaskGroup struct { + // Entity is the base model of OutlookTaskGroup + Entity + // ChangeKey undocumented + ChangeKey *string `json:"changeKey,omitempty"` + // IsDefaultGroup undocumented + IsDefaultGroup *bool `json:"isDefaultGroup,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // GroupKey undocumented + GroupKey *UUID `json:"groupKey,omitempty"` + // TaskFolders undocumented + TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"` +} + +// OutlookUser undocumented +type OutlookUser struct { + // Entity is the base model of OutlookUser + Entity + // MasterCategories undocumented + MasterCategories []OutlookCategory `json:"masterCategories,omitempty"` + // TaskGroups undocumented + TaskGroups []OutlookTaskGroup `json:"taskGroups,omitempty"` + // TaskFolders undocumented + TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"` + // Tasks undocumented + Tasks []OutlookTask `json:"tasks,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PackageModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PageLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PageLinksModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ParentalControlSettingsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ParseExpressionResponseModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go new file mode 100644 index 00000000..16bc3594 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go @@ -0,0 +1,37 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Participant undocumented +type Participant struct { + // Entity is the base model of Participant + Entity + // Info undocumented + Info *ParticipantInfo `json:"info,omitempty"` + // RecordingInfo undocumented + RecordingInfo *RecordingInfo `json:"recordingInfo,omitempty"` + // MediaStreams undocumented + MediaStreams []MediaStream `json:"mediaStreams,omitempty"` + // Metadata undocumented + Metadata *string `json:"metadata,omitempty"` + // IsMuted undocumented + IsMuted *bool `json:"isMuted,omitempty"` + // IsInLobby undocumented + IsInLobby *bool `json:"isInLobby,omitempty"` +} + +// ParticipantInfo undocumented +type ParticipantInfo struct { + // Object is the base model of ParticipantInfo + Object + // Identity undocumented + Identity *IdentitySet `json:"identity,omitempty"` + // EndpointType undocumented + EndpointType *EndpointType `json:"endpointType,omitempty"` + // Region undocumented + Region *string `json:"region,omitempty"` + // LanguageID undocumented + LanguageID *string `json:"languageId,omitempty"` + // CountryCode undocumented + CountryCode *string `json:"countryCode,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go new file mode 100644 index 00000000..62d286e1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// PasswordCredential undocumented +type PasswordCredential struct { + // Object is the base model of PasswordCredential + Object + // CustomKeyIdentifier undocumented + CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // KeyID undocumented + KeyID *UUID `json:"keyId,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // SecretText undocumented + SecretText *string `json:"secretText,omitempty"` + // Hint undocumented + Hint *string `json:"hint,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// PasswordProfile undocumented +type PasswordProfile struct { + // Object is the base model of PasswordProfile + Object + // Password undocumented + Password *string `json:"password,omitempty"` + // ForceChangePasswordNextSignIn undocumented + ForceChangePasswordNextSignIn *bool `json:"forceChangePasswordNextSignIn,omitempty"` + // ForceChangePasswordNextSignInWithMFA undocumented + ForceChangePasswordNextSignInWithMFA *bool `json:"forceChangePasswordNextSignInWithMfa,omitempty"` +} + +// PasswordSingleSignOnCredentialSet undocumented +type PasswordSingleSignOnCredentialSet struct { + // Object is the base model of PasswordSingleSignOnCredentialSet + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Credentials undocumented + Credentials []Credential `json:"credentials,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PatternedRecurrenceModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go new file mode 100644 index 00000000..240db8ac --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go @@ -0,0 +1,25 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PayloadRequestObject undocumented +type PayloadRequestObject struct { + // Object is the base model of PayloadRequestObject + Object +} + +// PayloadResponse undocumented +type PayloadResponse struct { + // Entity is the base model of PayloadResponse + Entity +} + +// PayloadTypes undocumented +type PayloadTypes struct { + // Object is the base model of PayloadTypes + Object + // RawContent undocumented + RawContent *string `json:"rawContent,omitempty"` + // VisualContent undocumented + VisualContent *VisualProperties `json:"visualContent,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go new file mode 100644 index 00000000..fc736373 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go @@ -0,0 +1,37 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// PaymentMethod undocumented +type PaymentMethod struct { + // Entity is the base model of PaymentMethod + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// PaymentTerm undocumented +type PaymentTerm struct { + // Entity is the base model of PaymentTerm + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // DueDateCalculation undocumented + DueDateCalculation *string `json:"dueDateCalculation,omitempty"` + // DiscountDateCalculation undocumented + DiscountDateCalculation *string `json:"discountDateCalculation,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // CalculateDiscountOnCreditMemos undocumented + CalculateDiscountOnCreditMemos *bool `json:"calculateDiscountOnCreditMemos,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go new file mode 100644 index 00000000..aadeb5b8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go @@ -0,0 +1,21 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// PendingContentUpdate undocumented +type PendingContentUpdate struct { + // Object is the base model of PendingContentUpdate + Object + // QueuedDateTime undocumented + QueuedDateTime *time.Time `json:"queuedDateTime,omitempty"` +} + +// PendingOperations undocumented +type PendingOperations struct { + // Object is the base model of PendingOperations + Object + // PendingContentUpdate undocumented + PendingContentUpdate *PendingContentUpdate `json:"pendingContentUpdate,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go new file mode 100644 index 00000000..1d0899af --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go @@ -0,0 +1,53 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Permission undocumented +type Permission struct { + // Entity is the base model of Permission + Entity + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // GrantedTo undocumented + GrantedTo *IdentitySet `json:"grantedTo,omitempty"` + // GrantedToIdentities undocumented + GrantedToIdentities []IdentitySet `json:"grantedToIdentities,omitempty"` + // HasPassword undocumented + HasPassword *bool `json:"hasPassword,omitempty"` + // InheritedFrom undocumented + InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"` + // Invitation undocumented + Invitation *SharingInvitation `json:"invitation,omitempty"` + // Link undocumented + Link *SharingLink `json:"link,omitempty"` + // Roles undocumented + Roles []string `json:"roles,omitempty"` + // ShareID undocumented + ShareID *string `json:"shareId,omitempty"` +} + +// PermissionScope undocumented +type PermissionScope struct { + // Object is the base model of PermissionScope + Object + // AdminConsentDescription undocumented + AdminConsentDescription *string `json:"adminConsentDescription,omitempty"` + // AdminConsentDisplayName undocumented + AdminConsentDisplayName *string `json:"adminConsentDisplayName,omitempty"` + // ID undocumented + ID *UUID `json:"id,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // Origin undocumented + Origin *string `json:"origin,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // UserConsentDescription undocumented + UserConsentDescription *string `json:"userConsentDescription,omitempty"` + // UserConsentDisplayName undocumented + UserConsentDisplayName *string `json:"userConsentDisplayName,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PersistentBrowserSessionControlModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go new file mode 100644 index 00000000..293e65db --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go @@ -0,0 +1,135 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Person undocumented +type Person struct { + // Entity is the base model of Person + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // GivenName undocumented + GivenName *string `json:"givenName,omitempty"` + // Surname undocumented + Surname *string `json:"surname,omitempty"` + // Birthday undocumented + Birthday *string `json:"birthday,omitempty"` + // PersonNotes undocumented + PersonNotes *string `json:"personNotes,omitempty"` + // IsFavorite undocumented + IsFavorite *bool `json:"isFavorite,omitempty"` + // EmailAddresses undocumented + EmailAddresses []RankedEmailAddress `json:"emailAddresses,omitempty"` + // Phones undocumented + Phones []Phone `json:"phones,omitempty"` + // PostalAddresses undocumented + PostalAddresses []Location `json:"postalAddresses,omitempty"` + // Websites undocumented + Websites []Website `json:"websites,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // CompanyName undocumented + CompanyName *string `json:"companyName,omitempty"` + // YomiCompany undocumented + YomiCompany *string `json:"yomiCompany,omitempty"` + // Department undocumented + Department *string `json:"department,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // Profession undocumented + Profession *string `json:"profession,omitempty"` + // Sources undocumented + Sources []PersonDataSource `json:"sources,omitempty"` + // MailboxType undocumented + MailboxType *string `json:"mailboxType,omitempty"` + // PersonType undocumented + PersonType *string `json:"personType,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// PersonAnniversary undocumented +type PersonAnniversary struct { + // ItemFacet is the base model of PersonAnniversary + ItemFacet + // Type undocumented + Type *AnniversaryType `json:"type,omitempty"` + // Date undocumented + Date *Date `json:"date,omitempty"` +} + +// PersonDataSource undocumented +type PersonDataSource struct { + // Object is the base model of PersonDataSource + Object + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// PersonInterest undocumented +type PersonInterest struct { + // ItemFacet is the base model of PersonInterest + ItemFacet + // Categories undocumented + Categories []string `json:"categories,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// PersonName undocumented +type PersonName struct { + // ItemFacet is the base model of PersonName + ItemFacet + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // First undocumented + First *string `json:"first,omitempty"` + // Initials undocumented + Initials *string `json:"initials,omitempty"` + // Last undocumented + Last *string `json:"last,omitempty"` + // LanguageTag undocumented + LanguageTag *string `json:"languageTag,omitempty"` + // Maiden undocumented + Maiden *string `json:"maiden,omitempty"` + // Middle undocumented + Middle *string `json:"middle,omitempty"` + // Nickname undocumented + Nickname *string `json:"nickname,omitempty"` + // Suffix undocumented + Suffix *string `json:"suffix,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // Pronunciation undocumented + Pronunciation *YomiPersonName `json:"pronunciation,omitempty"` +} + +// PersonOrGroupColumn undocumented +type PersonOrGroupColumn struct { + // Object is the base model of PersonOrGroupColumn + Object + // AllowMultipleSelection undocumented + AllowMultipleSelection *bool `json:"allowMultipleSelection,omitempty"` + // ChooseFromType undocumented + ChooseFromType *string `json:"chooseFromType,omitempty"` + // DisplayAs undocumented + DisplayAs *string `json:"displayAs,omitempty"` +} + +// PersonWebsite undocumented +type PersonWebsite struct { + // ItemFacet is the base model of PersonWebsite + ItemFacet + // Categories undocumented + Categories []string `json:"categories,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PhoneModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PhoneModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PhotoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go new file mode 100644 index 00000000..c16a2fbd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go @@ -0,0 +1,41 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PhysicalAddress undocumented +type PhysicalAddress struct { + // Object is the base model of PhysicalAddress + Object + // Type undocumented + Type *PhysicalAddressType `json:"type,omitempty"` + // PostOfficeBox undocumented + PostOfficeBox *string `json:"postOfficeBox,omitempty"` + // Street undocumented + Street *string `json:"street,omitempty"` + // City undocumented + City *string `json:"city,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // CountryOrRegion undocumented + CountryOrRegion *string `json:"countryOrRegion,omitempty"` + // PostalCode undocumented + PostalCode *string `json:"postalCode,omitempty"` +} + +// PhysicalOfficeAddress undocumented +type PhysicalOfficeAddress struct { + // Object is the base model of PhysicalOfficeAddress + Object + // City undocumented + City *string `json:"city,omitempty"` + // CountryOrRegion undocumented + CountryOrRegion *string `json:"countryOrRegion,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // PostalCode undocumented + PostalCode *string `json:"postalCode,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // Street undocumented + Street *string `json:"street,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PictureModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PictureModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlaceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PlaceModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go new file mode 100644 index 00000000..b7734555 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go @@ -0,0 +1,359 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Planner undocumented +type Planner struct { + // Entity is the base model of Planner + Entity + // Tasks undocumented + Tasks []PlannerTask `json:"tasks,omitempty"` + // Plans undocumented + Plans []PlannerPlan `json:"plans,omitempty"` + // Buckets undocumented + Buckets []PlannerBucket `json:"buckets,omitempty"` +} + +// PlannerAppliedCategories undocumented +type PlannerAppliedCategories struct { + // Object is the base model of PlannerAppliedCategories + Object +} + +// PlannerAssignedToTaskBoardTaskFormat undocumented +type PlannerAssignedToTaskBoardTaskFormat struct { + // PlannerDelta is the base model of PlannerAssignedToTaskBoardTaskFormat + PlannerDelta + // UnassignedOrderHint undocumented + UnassignedOrderHint *string `json:"unassignedOrderHint,omitempty"` + // OrderHintsByAssignee undocumented + OrderHintsByAssignee *PlannerOrderHintsByAssignee `json:"orderHintsByAssignee,omitempty"` +} + +// PlannerAssignment undocumented +type PlannerAssignment struct { + // Object is the base model of PlannerAssignment + Object + // AssignedBy undocumented + AssignedBy *IdentitySet `json:"assignedBy,omitempty"` + // AssignedDateTime undocumented + AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"` + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` +} + +// PlannerAssignments undocumented +type PlannerAssignments struct { + // Object is the base model of PlannerAssignments + Object +} + +// PlannerBucket undocumented +type PlannerBucket struct { + // PlannerDelta is the base model of PlannerBucket + PlannerDelta + // Name undocumented + Name *string `json:"name,omitempty"` + // PlanID undocumented + PlanID *string `json:"planId,omitempty"` + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` + // Tasks undocumented + Tasks []PlannerTask `json:"tasks,omitempty"` +} + +// PlannerBucketTaskBoardTaskFormat undocumented +type PlannerBucketTaskBoardTaskFormat struct { + // PlannerDelta is the base model of PlannerBucketTaskBoardTaskFormat + PlannerDelta + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` +} + +// PlannerCategoryDescriptions undocumented +type PlannerCategoryDescriptions struct { + // Object is the base model of PlannerCategoryDescriptions + Object + // Category1 undocumented + Category1 *string `json:"category1,omitempty"` + // Category2 undocumented + Category2 *string `json:"category2,omitempty"` + // Category3 undocumented + Category3 *string `json:"category3,omitempty"` + // Category4 undocumented + Category4 *string `json:"category4,omitempty"` + // Category5 undocumented + Category5 *string `json:"category5,omitempty"` + // Category6 undocumented + Category6 *string `json:"category6,omitempty"` +} + +// PlannerChecklistItem undocumented +type PlannerChecklistItem struct { + // Object is the base model of PlannerChecklistItem + Object + // IsChecked undocumented + IsChecked *bool `json:"isChecked,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// PlannerChecklistItems undocumented +type PlannerChecklistItems struct { + // Object is the base model of PlannerChecklistItems + Object +} + +// PlannerDelta undocumented +type PlannerDelta struct { + // Entity is the base model of PlannerDelta + Entity +} + +// PlannerExternalReference undocumented +type PlannerExternalReference struct { + // Object is the base model of PlannerExternalReference + Object + // Alias undocumented + Alias *string `json:"alias,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // PreviewPriority undocumented + PreviewPriority *string `json:"previewPriority,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// PlannerExternalReferences undocumented +type PlannerExternalReferences struct { + // Object is the base model of PlannerExternalReferences + Object +} + +// PlannerFavoritePlanReference undocumented +type PlannerFavoritePlanReference struct { + // Object is the base model of PlannerFavoritePlanReference + Object + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` + // PlanTitle undocumented + PlanTitle *string `json:"planTitle,omitempty"` +} + +// PlannerFavoritePlanReferenceCollection undocumented +type PlannerFavoritePlanReferenceCollection struct { + // Object is the base model of PlannerFavoritePlanReferenceCollection + Object +} + +// PlannerGroup undocumented +type PlannerGroup struct { + // Entity is the base model of PlannerGroup + Entity + // Plans undocumented + Plans []PlannerPlan `json:"plans,omitempty"` +} + +// PlannerOrderHintsByAssignee undocumented +type PlannerOrderHintsByAssignee struct { + // Object is the base model of PlannerOrderHintsByAssignee + Object +} + +// PlannerPlan undocumented +type PlannerPlan struct { + // PlannerDelta is the base model of PlannerPlan + PlannerDelta + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Owner undocumented + Owner *string `json:"owner,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // Contexts undocumented + Contexts *PlannerPlanContextCollection `json:"contexts,omitempty"` + // Tasks undocumented + Tasks []PlannerTask `json:"tasks,omitempty"` + // Buckets undocumented + Buckets []PlannerBucket `json:"buckets,omitempty"` + // Details undocumented + Details *PlannerPlanDetails `json:"details,omitempty"` +} + +// PlannerPlanContext undocumented +type PlannerPlanContext struct { + // Object is the base model of PlannerPlanContext + Object + // AssociationType undocumented + AssociationType *string `json:"associationType,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DisplayNameSegments undocumented + DisplayNameSegments []string `json:"displayNameSegments,omitempty"` + // OwnerAppID undocumented + OwnerAppID *string `json:"ownerAppId,omitempty"` +} + +// PlannerPlanContextCollection undocumented +type PlannerPlanContextCollection struct { + // Object is the base model of PlannerPlanContextCollection + Object +} + +// PlannerPlanContextDetails undocumented +type PlannerPlanContextDetails struct { + // Object is the base model of PlannerPlanContextDetails + Object + // URL undocumented + URL *string `json:"url,omitempty"` +} + +// PlannerPlanContextDetailsCollection undocumented +type PlannerPlanContextDetailsCollection struct { + // Object is the base model of PlannerPlanContextDetailsCollection + Object +} + +// PlannerPlanDetails undocumented +type PlannerPlanDetails struct { + // PlannerDelta is the base model of PlannerPlanDetails + PlannerDelta + // SharedWith undocumented + SharedWith *PlannerUserIDs `json:"sharedWith,omitempty"` + // CategoryDescriptions undocumented + CategoryDescriptions *PlannerCategoryDescriptions `json:"categoryDescriptions,omitempty"` + // ContextDetails undocumented + ContextDetails *PlannerPlanContextDetailsCollection `json:"contextDetails,omitempty"` +} + +// PlannerProgressTaskBoardTaskFormat undocumented +type PlannerProgressTaskBoardTaskFormat struct { + // PlannerDelta is the base model of PlannerProgressTaskBoardTaskFormat + PlannerDelta + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` +} + +// PlannerRecentPlanReference undocumented +type PlannerRecentPlanReference struct { + // Object is the base model of PlannerRecentPlanReference + Object + // LastAccessedDateTime undocumented + LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"` + // PlanTitle undocumented + PlanTitle *string `json:"planTitle,omitempty"` +} + +// PlannerRecentPlanReferenceCollection undocumented +type PlannerRecentPlanReferenceCollection struct { + // Object is the base model of PlannerRecentPlanReferenceCollection + Object +} + +// PlannerTask undocumented +type PlannerTask struct { + // PlannerDelta is the base model of PlannerTask + PlannerDelta + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // PlanID undocumented + PlanID *string `json:"planId,omitempty"` + // BucketID undocumented + BucketID *string `json:"bucketId,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // OrderHint undocumented + OrderHint *string `json:"orderHint,omitempty"` + // AssigneePriority undocumented + AssigneePriority *string `json:"assigneePriority,omitempty"` + // PercentComplete undocumented + PercentComplete *int `json:"percentComplete,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DueDateTime undocumented + DueDateTime *time.Time `json:"dueDateTime,omitempty"` + // HasDescription undocumented + HasDescription *bool `json:"hasDescription,omitempty"` + // PreviewType undocumented + PreviewType *PlannerPreviewType `json:"previewType,omitempty"` + // CompletedDateTime undocumented + CompletedDateTime *time.Time `json:"completedDateTime,omitempty"` + // CompletedBy undocumented + CompletedBy *IdentitySet `json:"completedBy,omitempty"` + // ReferenceCount undocumented + ReferenceCount *int `json:"referenceCount,omitempty"` + // ChecklistItemCount undocumented + ChecklistItemCount *int `json:"checklistItemCount,omitempty"` + // ActiveChecklistItemCount undocumented + ActiveChecklistItemCount *int `json:"activeChecklistItemCount,omitempty"` + // AppliedCategories undocumented + AppliedCategories *PlannerAppliedCategories `json:"appliedCategories,omitempty"` + // Assignments undocumented + Assignments *PlannerAssignments `json:"assignments,omitempty"` + // ConversationThreadID undocumented + ConversationThreadID *string `json:"conversationThreadId,omitempty"` + // Details undocumented + Details *PlannerTaskDetails `json:"details,omitempty"` + // AssignedToTaskBoardFormat undocumented + AssignedToTaskBoardFormat *PlannerAssignedToTaskBoardTaskFormat `json:"assignedToTaskBoardFormat,omitempty"` + // ProgressTaskBoardFormat undocumented + ProgressTaskBoardFormat *PlannerProgressTaskBoardTaskFormat `json:"progressTaskBoardFormat,omitempty"` + // BucketTaskBoardFormat undocumented + BucketTaskBoardFormat *PlannerBucketTaskBoardTaskFormat `json:"bucketTaskBoardFormat,omitempty"` +} + +// PlannerTaskDetails undocumented +type PlannerTaskDetails struct { + // PlannerDelta is the base model of PlannerTaskDetails + PlannerDelta + // Description undocumented + Description *string `json:"description,omitempty"` + // PreviewType undocumented + PreviewType *PlannerPreviewType `json:"previewType,omitempty"` + // References undocumented + References *PlannerExternalReferences `json:"references,omitempty"` + // Checklist undocumented + Checklist *PlannerChecklistItems `json:"checklist,omitempty"` +} + +// PlannerUser undocumented +type PlannerUser struct { + // PlannerDelta is the base model of PlannerUser + PlannerDelta + // FavoritePlanReferences undocumented + FavoritePlanReferences *PlannerFavoritePlanReferenceCollection `json:"favoritePlanReferences,omitempty"` + // RecentPlanReferences undocumented + RecentPlanReferences *PlannerRecentPlanReferenceCollection `json:"recentPlanReferences,omitempty"` + // Tasks undocumented + Tasks []PlannerTask `json:"tasks,omitempty"` + // Plans undocumented + Plans []PlannerPlan `json:"plans,omitempty"` + // FavoritePlans undocumented + FavoritePlans []PlannerPlan `json:"favoritePlans,omitempty"` + // RecentPlans undocumented + RecentPlans []PlannerPlan `json:"recentPlans,omitempty"` + // All undocumented + All []PlannerDelta `json:"all,omitempty"` +} + +// PlannerUserIDs undocumented +type PlannerUserIDs struct { + // Object is the base model of PlannerUserIDs + Object +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PlayPromptOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go new file mode 100644 index 00000000..3461275d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go @@ -0,0 +1,83 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Policy undocumented +type Policy struct { + // DirectoryObject is the base model of Policy + DirectoryObject + // AlternativeIdentifier undocumented + AlternativeIdentifier *string `json:"alternativeIdentifier,omitempty"` + // Definition undocumented + Definition []string `json:"definition,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsOrganizationDefault undocumented + IsOrganizationDefault *bool `json:"isOrganizationDefault,omitempty"` + // KeyCredentials undocumented + KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // AppliesTo undocumented + AppliesTo []DirectoryObject `json:"appliesTo,omitempty"` +} + +// PolicySet A class containing the properties used for PolicySet. +type PolicySet struct { + // Entity is the base model of PolicySet + Entity + // CreatedDateTime Creation time of the PolicySet. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Last modified time of the PolicySet. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName DisplayName of the PolicySet. + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the PolicySet. + Description *string `json:"description,omitempty"` + // Status Validation/assignment status of the PolicySet. + Status *PolicySetStatus `json:"status,omitempty"` + // ErrorCode Error code if any occured. + ErrorCode *ErrorCode `json:"errorCode,omitempty"` + // GuidedDeploymentTags Tags of the guided deployment + GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"` + // RoleScopeTags RoleScopeTags of the PolicySet + RoleScopeTags []string `json:"roleScopeTags,omitempty"` + // Assignments undocumented + Assignments []PolicySetAssignment `json:"assignments,omitempty"` + // Items undocumented + Items []PolicySetItem `json:"items,omitempty"` +} + +// PolicySetAssignment A class containing the properties used for PolicySet Assignment. +type PolicySetAssignment struct { + // Entity is the base model of PolicySetAssignment + Entity + // LastModifiedDateTime Last modified time of the PolicySetAssignment. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Target The target group of PolicySetAssignment + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// PolicySetItem A class containing the properties used for PolicySet Item. +type PolicySetItem struct { + // Entity is the base model of PolicySetItem + Entity + // CreatedDateTime Creation time of the PolicySetItem. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Last modified time of the PolicySetItem. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PayloadID PayloadId of the PolicySetItem. + PayloadID *string `json:"payloadId,omitempty"` + // ItemType policySetType of the PolicySetItem. + ItemType *string `json:"itemType,omitempty"` + // DisplayName DisplayName of the PolicySetItem. + DisplayName *string `json:"displayName,omitempty"` + // Status Status of the PolicySetItem. + Status *PolicySetStatus `json:"status,omitempty"` + // ErrorCode Error code if any occured. + ErrorCode *ErrorCode `json:"errorCode,omitempty"` + // GuidedDeploymentTags Tags of the guided deployment + GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go new file mode 100644 index 00000000..e9b8f675 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go @@ -0,0 +1,23 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PositionDetail undocumented +type PositionDetail struct { + // Object is the base model of PositionDetail + Object + // Company undocumented + Company *CompanyDetail `json:"company,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // EndMonthYear undocumented + EndMonthYear *Date `json:"endMonthYear,omitempty"` + // JobTitle undocumented + JobTitle *string `json:"jobTitle,omitempty"` + // Role undocumented + Role *string `json:"role,omitempty"` + // StartMonthYear undocumented + StartMonthYear *Date `json:"startMonthYear,omitempty"` + // Summary undocumented + Summary *string `json:"summary,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PostModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PostModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PostalAddressTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PostalAddressTypeModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PreAuthorizedApplicationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PresenceModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PrivacyProfileModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go new file mode 100644 index 00000000..5b2e08c1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go @@ -0,0 +1,199 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// PrivilegedAccess undocumented +type PrivilegedAccess struct { + // Entity is the base model of PrivilegedAccess + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Resources undocumented + Resources []GovernanceResource `json:"resources,omitempty"` + // RoleDefinitions undocumented + RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"` + // RoleAssignments undocumented + RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"` + // RoleAssignmentRequests undocumented + RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"` + // RoleSettings undocumented + RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"` +} + +// PrivilegedApproval undocumented +type PrivilegedApproval struct { + // Entity is the base model of PrivilegedApproval + Entity + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // ApprovalType undocumented + ApprovalType *string `json:"approvalType,omitempty"` + // ApprovalState undocumented + ApprovalState *ApprovalState `json:"approvalState,omitempty"` + // ApprovalDuration undocumented + ApprovalDuration *Duration `json:"approvalDuration,omitempty"` + // RequestorReason undocumented + RequestorReason *string `json:"requestorReason,omitempty"` + // ApproverReason undocumented + ApproverReason *string `json:"approverReason,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // RequestNavigation undocumented + RequestNavigation *PrivilegedRoleAssignmentRequestObject `json:"request,omitempty"` + // RoleInfo undocumented + RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"` +} + +// PrivilegedOperationEvent undocumented +type PrivilegedOperationEvent struct { + // Entity is the base model of PrivilegedOperationEvent + Entity + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // UserName undocumented + UserName *string `json:"userName,omitempty"` + // UserMail undocumented + UserMail *string `json:"userMail,omitempty"` + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // RoleName undocumented + RoleName *string `json:"roleName,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // CreationDateTime undocumented + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` + // RequestorID undocumented + RequestorID *string `json:"requestorId,omitempty"` + // RequestorName undocumented + RequestorName *string `json:"requestorName,omitempty"` + // TenantID undocumented + TenantID *string `json:"tenantId,omitempty"` + // RequestType undocumented + RequestType *string `json:"requestType,omitempty"` + // AdditionalInformation undocumented + AdditionalInformation *string `json:"additionalInformation,omitempty"` + // ReferenceKey undocumented + ReferenceKey *string `json:"referenceKey,omitempty"` + // ReferenceSystem undocumented + ReferenceSystem *string `json:"referenceSystem,omitempty"` +} + +// PrivilegedRole undocumented +type PrivilegedRole struct { + // Entity is the base model of PrivilegedRole + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Settings undocumented + Settings *PrivilegedRoleSettings `json:"settings,omitempty"` + // Assignments undocumented + Assignments []PrivilegedRoleAssignment `json:"assignments,omitempty"` + // Summary undocumented + Summary *PrivilegedRoleSummary `json:"summary,omitempty"` +} + +// PrivilegedRoleAssignment undocumented +type PrivilegedRoleAssignment struct { + // Entity is the base model of PrivilegedRoleAssignment + Entity + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // IsElevated undocumented + IsElevated *bool `json:"isElevated,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // ResultMessage undocumented + ResultMessage *string `json:"resultMessage,omitempty"` + // RoleInfo undocumented + RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"` +} + +// PrivilegedRoleAssignmentRequestObject undocumented +type PrivilegedRoleAssignmentRequestObject struct { + // Entity is the base model of PrivilegedRoleAssignmentRequestObject + Entity + // Schedule undocumented + Schedule *GovernanceSchedule `json:"schedule,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // AssignmentState undocumented + AssignmentState *string `json:"assignmentState,omitempty"` + // RequestedDateTime undocumented + RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // Duration undocumented + Duration *string `json:"duration,omitempty"` + // Reason undocumented + Reason *string `json:"reason,omitempty"` + // TicketNumber undocumented + TicketNumber *string `json:"ticketNumber,omitempty"` + // TicketSystem undocumented + TicketSystem *string `json:"ticketSystem,omitempty"` + // RoleInfo undocumented + RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"` +} + +// PrivilegedRoleSettings undocumented +type PrivilegedRoleSettings struct { + // Entity is the base model of PrivilegedRoleSettings + Entity + // ApproverIDs undocumented + ApproverIDs []string `json:"approverIds,omitempty"` + // MinElevationDuration undocumented + MinElevationDuration *Duration `json:"minElevationDuration,omitempty"` + // MaxElavationDuration undocumented + MaxElavationDuration *Duration `json:"maxElavationDuration,omitempty"` + // ElevationDuration undocumented + ElevationDuration *Duration `json:"elevationDuration,omitempty"` + // NotificationToUserOnElevation undocumented + NotificationToUserOnElevation *bool `json:"notificationToUserOnElevation,omitempty"` + // TicketingInfoOnElevation undocumented + TicketingInfoOnElevation *bool `json:"ticketingInfoOnElevation,omitempty"` + // MFAOnElevation undocumented + MFAOnElevation *bool `json:"mfaOnElevation,omitempty"` + // LastGlobalAdmin undocumented + LastGlobalAdmin *bool `json:"lastGlobalAdmin,omitempty"` + // IsMFAOnElevationConfigurable undocumented + IsMFAOnElevationConfigurable *bool `json:"isMfaOnElevationConfigurable,omitempty"` + // ApprovalOnElevation undocumented + ApprovalOnElevation *bool `json:"approvalOnElevation,omitempty"` +} + +// PrivilegedRoleSummary undocumented +type PrivilegedRoleSummary struct { + // Entity is the base model of PrivilegedRoleSummary + Entity + // Status undocumented + Status *RoleSummaryStatus `json:"status,omitempty"` + // UsersCount undocumented + UsersCount *int `json:"usersCount,omitempty"` + // ManagedCount undocumented + ManagedCount *int `json:"managedCount,omitempty"` + // ElevatedCount undocumented + ElevatedCount *int `json:"elevatedCount,omitempty"` + // MFAEnabled undocumented + MFAEnabled *bool `json:"mfaEnabled,omitempty"` +} + +// PrivilegedSignupStatus undocumented +type PrivilegedSignupStatus struct { + // Entity is the base model of PrivilegedSignupStatus + Entity + // IsRegistered undocumented + IsRegistered *bool `json:"isRegistered,omitempty"` + // Status undocumented + Status *SetupStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProcessModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go new file mode 100644 index 00000000..a961c8b1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Profile undocumented +type Profile struct { + // Entity is the base model of Profile + Entity + // Account undocumented + Account []UserAccountInformation `json:"account,omitempty"` + // Anniversaries undocumented + Anniversaries []PersonAnniversary `json:"anniversaries,omitempty"` + // EducationalActivities undocumented + EducationalActivities []EducationalActivity `json:"educationalActivities,omitempty"` + // Emails undocumented + Emails []ItemEmail `json:"emails,omitempty"` + // Interests undocumented + Interests []PersonInterest `json:"interests,omitempty"` + // Languages undocumented + Languages []LanguageProficiency `json:"languages,omitempty"` + // Names undocumented + Names []PersonName `json:"names,omitempty"` + // Phones undocumented + Phones []ItemPhone `json:"phones,omitempty"` + // Positions undocumented + Positions []WorkPosition `json:"positions,omitempty"` + // Projects undocumented + Projects []ProjectParticipation `json:"projects,omitempty"` + // Skills undocumented + Skills []SkillProficiency `json:"skills,omitempty"` + // WebAccounts undocumented + WebAccounts []WebAccount `json:"webAccounts,omitempty"` + // Websites undocumented + Websites []PersonWebsite `json:"websites,omitempty"` +} + +// ProfilePhoto undocumented +type ProfilePhoto struct { + // Entity is the base model of ProfilePhoto + Entity + // Height undocumented + Height *int `json:"height,omitempty"` + // Width undocumented + Width *int `json:"width,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go new file mode 100644 index 00000000..08035641 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Program undocumented +type Program struct { + // Entity is the base model of Program + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Controls undocumented + Controls []ProgramControl `json:"controls,omitempty"` +} + +// ProgramControl undocumented +type ProgramControl struct { + // Entity is the base model of ProgramControl + Entity + // ControlID undocumented + ControlID *string `json:"controlId,omitempty"` + // ProgramID undocumented + ProgramID *string `json:"programId,omitempty"` + // ControlTypeID undocumented + ControlTypeID *string `json:"controlTypeId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // Owner undocumented + Owner *UserIdentity `json:"owner,omitempty"` + // Resource undocumented + Resource *ProgramResource `json:"resource,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Program undocumented + Program *Program `json:"program,omitempty"` +} + +// ProgramControlType undocumented +type ProgramControlType struct { + // Entity is the base model of ProgramControlType + Entity + // ControlTypeGroupID undocumented + ControlTypeGroupID *string `json:"controlTypeGroupId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// ProgramResource undocumented +type ProgramResource struct { + // Identity is the base model of ProgramResource + Identity + // Type undocumented + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PromptModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PromptModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PropertiesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PropertiesModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go new file mode 100644 index 00000000..93e3b788 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Property undocumented +type Property struct { + // Object is the base model of Property + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Type undocumented + Type *PropertyType `json:"type,omitempty"` + // IsSearchable undocumented + IsSearchable *bool `json:"isSearchable,omitempty"` + // IsRetrievable undocumented + IsRetrievable *bool `json:"isRetrievable,omitempty"` + // IsQueryable undocumented + IsQueryable *bool `json:"isQueryable,omitempty"` +} + +// PropertyToEvaluate undocumented +type PropertyToEvaluate struct { + // Object is the base model of PropertyToEvaluate + Object + // PropertyName undocumented + PropertyName *string `json:"propertyName,omitempty"` + // PropertyValue undocumented + PropertyValue *string `json:"propertyValue,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go new file mode 100644 index 00000000..492276d1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ProtectAdhocAction undocumented +type ProtectAdhocAction struct { + // InformationProtectionAction is the base model of ProtectAdhocAction + InformationProtectionAction +} + +// ProtectByTemplateAction undocumented +type ProtectByTemplateAction struct { + // InformationProtectionAction is the base model of ProtectByTemplateAction + InformationProtectionAction + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` +} + +// ProtectDoNotForwardAction undocumented +type ProtectDoNotForwardAction struct { + // InformationProtectionAction is the base model of ProtectDoNotForwardAction + InformationProtectionAction +} + +// ProtectGroup undocumented +type ProtectGroup struct { + // LabelActionBase is the base model of ProtectGroup + LabelActionBase + // AllowEmailFromGuestUsers undocumented + AllowEmailFromGuestUsers *bool `json:"allowEmailFromGuestUsers,omitempty"` + // AllowGuestUsers undocumented + AllowGuestUsers *bool `json:"allowGuestUsers,omitempty"` + // Privacy undocumented + Privacy *GroupPrivacy `json:"privacy,omitempty"` +} + +// ProtectSite undocumented +type ProtectSite struct { + // LabelActionBase is the base model of ProtectSite + LabelActionBase + // AccessType undocumented + AccessType *SiteAccessType `json:"accessType,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go new file mode 100644 index 00000000..4872b0de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ProvisionedIdentity undocumented +type ProvisionedIdentity struct { + // Object is the base model of ProvisionedIdentity + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IdentityType undocumented + IdentityType *string `json:"identityType,omitempty"` + // Details undocumented + Details *DetailsInfo `json:"details,omitempty"` +} + +// ProvisionedPlan undocumented +type ProvisionedPlan struct { + // Object is the base model of ProvisionedPlan + Object + // CapabilityStatus undocumented + CapabilityStatus *string `json:"capabilityStatus,omitempty"` + // ProvisioningStatus undocumented + ProvisioningStatus *string `json:"provisioningStatus,omitempty"` + // Service undocumented + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go new file mode 100644 index 00000000..0eda9577 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go @@ -0,0 +1,69 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ProvisioningObjectSummary undocumented +type ProvisioningObjectSummary struct { + // Entity is the base model of ProvisioningObjectSummary + Entity + // ActivityDateTime undocumented + ActivityDateTime *time.Time `json:"activityDateTime,omitempty"` + // TenantID undocumented + TenantID *string `json:"tenantId,omitempty"` + // JobID undocumented + JobID *string `json:"jobId,omitempty"` + // CycleID undocumented + CycleID *string `json:"cycleId,omitempty"` + // ChangeID undocumented + ChangeID *string `json:"changeId,omitempty"` + // Action undocumented + Action *string `json:"action,omitempty"` + // DurationInMilliseconds undocumented + DurationInMilliseconds *int `json:"durationInMilliseconds,omitempty"` + // InitiatedBy undocumented + InitiatedBy *Initiator `json:"initiatedBy,omitempty"` + // SourceSystem undocumented + SourceSystem *ProvisioningSystemDetails `json:"sourceSystem,omitempty"` + // TargetSystem undocumented + TargetSystem *ProvisioningSystemDetails `json:"targetSystem,omitempty"` + // SourceIdentity undocumented + SourceIdentity *ProvisionedIdentity `json:"sourceIdentity,omitempty"` + // TargetIdentity undocumented + TargetIdentity *ProvisionedIdentity `json:"targetIdentity,omitempty"` + // StatusInfo undocumented + StatusInfo *StatusBase `json:"statusInfo,omitempty"` + // ProvisioningSteps undocumented + ProvisioningSteps []ProvisioningStep `json:"provisioningSteps,omitempty"` + // ModifiedProperties undocumented + ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"` +} + +// ProvisioningStep undocumented +type ProvisioningStep struct { + // Object is the base model of ProvisioningStep + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Status undocumented + Status *ProvisioningResult `json:"status,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Details undocumented + Details *DetailsInfo `json:"details,omitempty"` + // ProvisioningStepType undocumented + ProvisioningStepType *ProvisioningStepType `json:"provisioningStepType,omitempty"` +} + +// ProvisioningSystemDetails undocumented +type ProvisioningSystemDetails struct { + // Object is the base model of ProvisioningSystemDetails + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Details undocumented + Details *DetailsInfo `json:"details,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProxiedDomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProxiedDomainModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go new file mode 100644 index 00000000..feb05085 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go @@ -0,0 +1,61 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// PublicClientApplication undocumented +type PublicClientApplication struct { + // Object is the base model of PublicClientApplication + Object + // RedirectUris undocumented + RedirectUris []string `json:"redirectUris,omitempty"` +} + +// PublicError undocumented +type PublicError struct { + // Object is the base model of PublicError + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // Target undocumented + Target *string `json:"target,omitempty"` + // Details undocumented + Details []PublicErrorDetail `json:"details,omitempty"` + // InnerError undocumented + InnerError *PublicInnerError `json:"innerError,omitempty"` +} + +// PublicErrorDetail undocumented +type PublicErrorDetail struct { + // Object is the base model of PublicErrorDetail + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // Target undocumented + Target *string `json:"target,omitempty"` +} + +// PublicErrorResponse undocumented +type PublicErrorResponse struct { + // Object is the base model of PublicErrorResponse + Object + // Error undocumented + Error *PublicError `json:"error,omitempty"` +} + +// PublicInnerError undocumented +type PublicInnerError struct { + // Object is the base model of PublicInnerError + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Details undocumented + Details []PublicErrorDetail `json:"details,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // Target undocumented + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublicationFacetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PublicationFacetModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PublishedResourceModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go new file mode 100644 index 00000000..86722acb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go @@ -0,0 +1,121 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// PurchaseInvoice undocumented +type PurchaseInvoice struct { + // Entity is the base model of PurchaseInvoice + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // InvoiceDate undocumented + InvoiceDate *Date `json:"invoiceDate,omitempty"` + // DueDate undocumented + DueDate *Date `json:"dueDate,omitempty"` + // VendorInvoiceNumber undocumented + VendorInvoiceNumber *string `json:"vendorInvoiceNumber,omitempty"` + // VendorID undocumented + VendorID *UUID `json:"vendorId,omitempty"` + // VendorNumber undocumented + VendorNumber *string `json:"vendorNumber,omitempty"` + // VendorName undocumented + VendorName *string `json:"vendorName,omitempty"` + // PayToName undocumented + PayToName *string `json:"payToName,omitempty"` + // PayToContact undocumented + PayToContact *string `json:"payToContact,omitempty"` + // PayToVendorID undocumented + PayToVendorID *UUID `json:"payToVendorId,omitempty"` + // PayToVendorNumber undocumented + PayToVendorNumber *string `json:"payToVendorNumber,omitempty"` + // ShipToName undocumented + ShipToName *string `json:"shipToName,omitempty"` + // ShipToContact undocumented + ShipToContact *string `json:"shipToContact,omitempty"` + // BuyFromAddress undocumented + BuyFromAddress *PostalAddressType `json:"buyFromAddress,omitempty"` + // PayToAddress undocumented + PayToAddress *PostalAddressType `json:"payToAddress,omitempty"` + // ShipToAddress undocumented + ShipToAddress *PostalAddressType `json:"shipToAddress,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // PricesIncludeTax undocumented + PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // TotalAmountExcludingTax undocumented + TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // TotalAmountIncludingTax undocumented + TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PurchaseInvoiceLines undocumented + PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"` + // Vendor undocumented + Vendor *Vendor `json:"vendor,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` +} + +// PurchaseInvoiceLine undocumented +type PurchaseInvoiceLine struct { + // Entity is the base model of PurchaseInvoiceLine + Entity + // DocumentID undocumented + DocumentID *UUID `json:"documentId,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // ItemID undocumented + ItemID *UUID `json:"itemId,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // LineType undocumented + LineType *string `json:"lineType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // UnitCost undocumented + UnitCost *int `json:"unitCost,omitempty"` + // Quantity undocumented + Quantity *int `json:"quantity,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // AmountExcludingTax undocumented + AmountExcludingTax *int `json:"amountExcludingTax,omitempty"` + // TaxCode undocumented + TaxCode *string `json:"taxCode,omitempty"` + // TaxPercent undocumented + TaxPercent *int `json:"taxPercent,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // AmountIncludingTax undocumented + AmountIncludingTax *int `json:"amountIncludingTax,omitempty"` + // InvoiceDiscountAllocation undocumented + InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"` + // NetAmount undocumented + NetAmount *int `json:"netAmount,omitempty"` + // NetTaxAmount undocumented + NetTaxAmount *int `json:"netTaxAmount,omitempty"` + // NetAmountIncludingTax undocumented + NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"` + // ExpectedReceiptDate undocumented + ExpectedReceiptDate *Date `json:"expectedReceiptDate,omitempty"` + // Item undocumented + Item *Item `json:"item,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/QuotaModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RankedEmailAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RankedEmailAddressModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RbacApplicationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go new file mode 100644 index 00000000..aac540bf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// RecentNotebook undocumented +type RecentNotebook struct { + // Object is the base model of RecentNotebook + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastAccessedTime undocumented + LastAccessedTime *time.Time `json:"lastAccessedTime,omitempty"` + // Links undocumented + Links *RecentNotebookLinks `json:"links,omitempty"` + // SourceService undocumented + SourceService *OnenoteSourceService `json:"sourceService,omitempty"` +} + +// RecentNotebookLinks undocumented +type RecentNotebookLinks struct { + // Object is the base model of RecentNotebookLinks + Object + // OneNoteClientURL undocumented + OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"` + // OneNoteWebURL undocumented + OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RecipientModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RecommendLabelActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RecordOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RecordingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RecordingInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go new file mode 100644 index 00000000..3ecaa71a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go @@ -0,0 +1,39 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RecurrencePattern undocumented +type RecurrencePattern struct { + // Object is the base model of RecurrencePattern + Object + // Type undocumented + Type *RecurrencePatternType `json:"type,omitempty"` + // Interval undocumented + Interval *int `json:"interval,omitempty"` + // Month undocumented + Month *int `json:"month,omitempty"` + // DayOfMonth undocumented + DayOfMonth *int `json:"dayOfMonth,omitempty"` + // DaysOfWeek undocumented + DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"` + // FirstDayOfWeek undocumented + FirstDayOfWeek *DayOfWeek `json:"firstDayOfWeek,omitempty"` + // Index undocumented + Index *WeekIndex `json:"index,omitempty"` +} + +// RecurrenceRange undocumented +type RecurrenceRange struct { + // Object is the base model of RecurrenceRange + Object + // Type undocumented + Type *RecurrenceRangeType `json:"type,omitempty"` + // StartDate undocumented + StartDate *Date `json:"startDate,omitempty"` + // EndDate undocumented + EndDate *Date `json:"endDate,omitempty"` + // RecurrenceTimeZone undocumented + RecurrenceTimeZone *string `json:"recurrenceTimeZone,omitempty"` + // NumberOfOccurrences undocumented + NumberOfOccurrences *int `json:"numberOfOccurrences,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ReferenceAttachmentModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ReferencedObjectModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RegistryKeyStateModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go new file mode 100644 index 00000000..ca6ab7bc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RelatedContact undocumented +type RelatedContact struct { + // Object is the base model of RelatedContact + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // EmailAddress undocumented + EmailAddress *string `json:"emailAddress,omitempty"` + // MobilePhone undocumented + MobilePhone *string `json:"mobilePhone,omitempty"` + // Relationship undocumented + Relationship *ContactRelationship `json:"relationship,omitempty"` + // AccessConsent undocumented + AccessConsent *bool `json:"accessConsent,omitempty"` +} + +// RelatedPerson undocumented +type RelatedPerson struct { + // Object is the base model of RelatedPerson + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Relationship undocumented + Relationship *PersonRelationship `json:"relationship,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ReminderModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go new file mode 100644 index 00000000..e7b7511e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go @@ -0,0 +1,91 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// RemoteActionAudit Report of remote actions initiated on the devices belonging to a certain tenant. +type RemoteActionAudit struct { + // Entity is the base model of RemoteActionAudit + Entity + // DeviceDisplayName Intune device name. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserName [deprecated] Please use InitiatedByUserPrincipalName instead. + UserName *string `json:"userName,omitempty"` + // InitiatedByUserPrincipalName User who initiated the device action, format is UPN. + InitiatedByUserPrincipalName *string `json:"initiatedByUserPrincipalName,omitempty"` + // Action The action name. + Action *RemoteAction `json:"action,omitempty"` + // RequestDateTime Time when the action was issued, given in UTC. + RequestDateTime *time.Time `json:"requestDateTime,omitempty"` + // DeviceOwnerUserPrincipalName Upn of the device owner. + DeviceOwnerUserPrincipalName *string `json:"deviceOwnerUserPrincipalName,omitempty"` + // DeviceIMEI IMEI of the device. + DeviceIMEI *string `json:"deviceIMEI,omitempty"` + // ActionState Action state. + ActionState *ActionState `json:"actionState,omitempty"` + // ManagedDeviceID Action target. + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` +} + +// RemoteAssistancePartner RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service. +type RemoteAssistancePartner struct { + // Entity is the base model of RemoteAssistancePartner + Entity + // DisplayName Display name of the partner. + DisplayName *string `json:"displayName,omitempty"` + // OnboardingURL URL of the partner's onboarding portal, where an administrator can configure their Remote Assistance service. + OnboardingURL *string `json:"onboardingUrl,omitempty"` + // OnboardingStatus A friendly description of the current TeamViewer connector status + OnboardingStatus *RemoteAssistanceOnboardingStatus `json:"onboardingStatus,omitempty"` + // LastConnectionDateTime Timestamp of the last request sent to Intune by the TEM partner. + LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"` +} + +// RemoteItem undocumented +type RemoteItem struct { + // Object is the base model of RemoteItem + Object + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // File undocumented + File *File `json:"file,omitempty"` + // FileSystemInfo undocumented + FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"` + // Folder undocumented + Folder *Folder `json:"folder,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` + // LastModifiedBy undocumented + LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Package undocumented + Package *Package `json:"package,omitempty"` + // ParentReference undocumented + ParentReference *ItemReference `json:"parentReference,omitempty"` + // Shared undocumented + Shared *Shared `json:"shared,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // SpecialFolder undocumented + SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"` + // WebDavURL undocumented + WebDavURL *string `json:"webDavUrl,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// RemoteLockActionResult undocumented +type RemoteLockActionResult struct { + // DeviceActionResult is the base model of RemoteLockActionResult + DeviceActionResult + // UnlockPin Pin to unlock the client + UnlockPin *string `json:"unlockPin,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go new file mode 100644 index 00000000..e103ce2f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RemoveContentFooterAction undocumented +type RemoveContentFooterAction struct { + // InformationProtectionAction is the base model of RemoveContentFooterAction + InformationProtectionAction + // UIElementNames undocumented + UIElementNames []string `json:"uiElementNames,omitempty"` +} + +// RemoveContentHeaderAction undocumented +type RemoveContentHeaderAction struct { + // InformationProtectionAction is the base model of RemoveContentHeaderAction + InformationProtectionAction + // UIElementNames undocumented + UIElementNames []string `json:"uiElementNames,omitempty"` +} + +// RemoveProtectionAction undocumented +type RemoveProtectionAction struct { + // InformationProtectionAction is the base model of RemoveProtectionAction + InformationProtectionAction +} + +// RemoveWatermarkAction undocumented +type RemoveWatermarkAction struct { + // InformationProtectionAction is the base model of RemoveWatermarkAction + InformationProtectionAction + // UIElementNames undocumented + UIElementNames []string `json:"uiElementNames,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RenameActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RenameActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go new file mode 100644 index 00000000..11f75657 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go @@ -0,0 +1,23 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Report undocumented +type Report struct { + // Object is the base model of Report + Object + // Content undocumented + Content *Stream `json:"content,omitempty"` +} + +// ReportRoot The resource that represents an instance of Enrollment Failure Reports. +type ReportRoot struct { + // Entity is the base model of ReportRoot + Entity + // ApplicationSignInDetailedSummary undocumented + ApplicationSignInDetailedSummary []ApplicationSignInDetailedSummary `json:"applicationSignInDetailedSummary,omitempty"` + // CredentialUserRegistrationDetails undocumented + CredentialUserRegistrationDetails []CredentialUserRegistrationDetails `json:"credentialUserRegistrationDetails,omitempty"` + // UserCredentialUsageDetails undocumented + UserCredentialUsageDetails []UserCredentialUsageDetails `json:"userCredentialUsageDetails,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ReputationCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ReputationCategoryModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RequestObjectModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RequiredResourceAccessModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ResetPasscodeActionResultModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go new file mode 100644 index 00000000..f9ae8a19 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ResourceAccess undocumented +type ResourceAccess struct { + // Object is the base model of ResourceAccess + Object + // ID undocumented + ID *UUID `json:"id,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// ResourceAction undocumented +type ResourceAction struct { + // Object is the base model of ResourceAction + Object + // AllowedResourceActions Allowed Actions + AllowedResourceActions []string `json:"allowedResourceActions,omitempty"` + // NotAllowedResourceActions Not Allowed Actions. + NotAllowedResourceActions []string `json:"notAllowedResourceActions,omitempty"` +} + +// ResourceOperation Describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC). +type ResourceOperation struct { + // Entity is the base model of ResourceOperation + Entity + // Resource Resource category to which this Operation belongs. + Resource *string `json:"resource,omitempty"` + // ResourceName Name of the Resource this operation is performed on. + ResourceName *string `json:"resourceName,omitempty"` + // ActionName Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible. + ActionName *string `json:"actionName,omitempty"` + // Description Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal. + Description *string `json:"description,omitempty"` + // EnabledForScopeValidation Determines whether the Permission is validated for Scopes defined per Role Assignment. + EnabledForScopeValidation *bool `json:"enabledForScopeValidation,omitempty"` +} + +// ResourcePermission undocumented +type ResourcePermission struct { + // Object is the base model of ResourcePermission + Object + // Type undocumented + Type *string `json:"type,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// ResourcePropertiesModel undocumented +type ResourcePropertiesModel struct { + // Object is the base model of ResourcePropertiesModel + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Label undocumented + Label *string `json:"label,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Capacity undocumented + Capacity *int `json:"capacity,omitempty"` + // IsManaged undocumented + IsManaged *bool `json:"isManaged,omitempty"` + // BookingType undocumented + BookingType *BookingType `json:"bookingType,omitempty"` + // Building undocumented + Building *string `json:"building,omitempty"` + // Floor undocumented + Floor *string `json:"floor,omitempty"` +} + +// ResourceReference undocumented +type ResourceReference struct { + // Object is the base model of ResourceReference + Object + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` +} + +// ResourceSpecificPermission undocumented +type ResourceSpecificPermission struct { + // Object is the base model of ResourceSpecificPermission + Object + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // ID undocumented + ID *UUID `json:"id,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// ResourceSpecificPermissionGrant undocumented +type ResourceSpecificPermissionGrant struct { + // DirectoryObject is the base model of ResourceSpecificPermissionGrant + DirectoryObject + // ClientID undocumented + ClientID *string `json:"clientId,omitempty"` + // ClientAppID undocumented + ClientAppID *string `json:"clientAppId,omitempty"` + // ResourceAppID undocumented + ResourceAppID *string `json:"resourceAppId,omitempty"` + // PermissionType undocumented + PermissionType *string `json:"permissionType,omitempty"` + // Permission undocumented + Permission *string `json:"permission,omitempty"` +} + +// ResourceVisualization undocumented +type ResourceVisualization struct { + // Object is the base model of ResourceVisualization + Object + // Title undocumented + Title *string `json:"title,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // MediaType undocumented + MediaType *string `json:"mediaType,omitempty"` + // PreviewImageURL undocumented + PreviewImageURL *string `json:"previewImageUrl,omitempty"` + // PreviewText undocumented + PreviewText *string `json:"previewText,omitempty"` + // ContainerWebURL undocumented + ContainerWebURL *string `json:"containerWebUrl,omitempty"` + // ContainerDisplayName undocumented + ContainerDisplayName *string `json:"containerDisplayName,omitempty"` + // ContainerType undocumented + ContainerType *string `json:"containerType,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResponseStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ResponseStatusModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go new file mode 100644 index 00000000..3945510b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ResponsiblePolicy undocumented +type ResponsiblePolicy struct { + // Object is the base model of ResponsiblePolicy + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// ResponsibleSensitiveType undocumented +type ResponsibleSensitiveType struct { + // Object is the base model of ResponsibleSensitiveType + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // RulePackageID undocumented + RulePackageID *string `json:"rulePackageId,omitempty"` + // RulePackageType undocumented + RulePackageType *string `json:"rulePackageType,omitempty"` + // PublisherName undocumented + PublisherName *string `json:"publisherName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RestoreActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RestoreActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go new file mode 100644 index 00000000..e7e8cbd5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go @@ -0,0 +1,35 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RestrictedAppsViolation Violation of restricted apps configuration profile per device per user +type RestrictedAppsViolation struct { + // Entity is the base model of RestrictedAppsViolation + Entity + // UserID User unique identifier, must be Guid + UserID *string `json:"userId,omitempty"` + // UserName User name + UserName *string `json:"userName,omitempty"` + // ManagedDeviceID Managed device unique identifier, must be Guid + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // DeviceName Device name + DeviceName *string `json:"deviceName,omitempty"` + // DeviceConfigurationID Device configuration profile unique identifier, must be Guid + DeviceConfigurationID *string `json:"deviceConfigurationId,omitempty"` + // DeviceConfigurationName Device configuration profile name + DeviceConfigurationName *string `json:"deviceConfigurationName,omitempty"` + // PlatformType Platform type + PlatformType *PolicyPlatformType `json:"platformType,omitempty"` + // RestrictedAppsState Restricted apps state + RestrictedAppsState *RestrictedAppsState `json:"restrictedAppsState,omitempty"` + // RestrictedApps List of violated restricted apps + RestrictedApps []ManagedDeviceReportedApp `json:"restrictedApps,omitempty"` +} + +// RestrictedSignIn undocumented +type RestrictedSignIn struct { + // SignIn is the base model of RestrictedSignIn + SignIn + // TargetTenantID undocumented + TargetTenantID *UUID `json:"targetTenantId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ResultInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go new file mode 100644 index 00000000..3c786c06 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go @@ -0,0 +1,13 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RevokeAppleVPPLicensesActionResult undocumented +type RevokeAppleVPPLicensesActionResult struct { + // DeviceActionResult is the base model of RevokeAppleVPPLicensesActionResult + DeviceActionResult + // TotalLicensesCount Total number of Apple Vpp licenses associated + TotalLicensesCount *int `json:"totalLicensesCount,omitempty"` + // FailedLicensesCount Total number of Apple Vpp licenses that failed to revoke + FailedLicensesCount *int `json:"failedLicensesCount,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RgbColorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RgbColorModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go new file mode 100644 index 00000000..b7948167 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// RiskDetection undocumented +type RiskDetection struct { + // Entity is the base model of RiskDetection + Entity + // RequestID undocumented + RequestID *string `json:"requestId,omitempty"` + // CorrelationID undocumented + CorrelationID *string `json:"correlationId,omitempty"` + // RiskType undocumented + RiskType *RiskEventType `json:"riskType,omitempty"` + // RiskState undocumented + RiskState *RiskState `json:"riskState,omitempty"` + // RiskLevel undocumented + RiskLevel *RiskLevel `json:"riskLevel,omitempty"` + // RiskDetail undocumented + RiskDetail *RiskDetail `json:"riskDetail,omitempty"` + // Source undocumented + Source *string `json:"source,omitempty"` + // DetectionTimingType undocumented + DetectionTimingType *RiskDetectionTimingType `json:"detectionTimingType,omitempty"` + // Activity undocumented + Activity *ActivityType `json:"activity,omitempty"` + // TokenIssuerType undocumented + TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"` + // IPAddress undocumented + IPAddress *string `json:"ipAddress,omitempty"` + // Location undocumented + Location *SignInLocation `json:"location,omitempty"` + // ActivityDateTime undocumented + ActivityDateTime *time.Time `json:"activityDateTime,omitempty"` + // DetectedDateTime undocumented + DetectedDateTime *time.Time `json:"detectedDateTime,omitempty"` + // LastUpdatedDateTime undocumented + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // AdditionalInfo undocumented + AdditionalInfo *string `json:"additionalInfo,omitempty"` +} + +// RiskUserActivity undocumented +type RiskUserActivity struct { + // Object is the base model of RiskUserActivity + Object + // EventTypes undocumented + EventTypes []RiskEventType `json:"eventTypes,omitempty"` + // Detail undocumented + Detail *RiskDetail `json:"detail,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go new file mode 100644 index 00000000..451084dd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go @@ -0,0 +1,43 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// RiskyUser undocumented +type RiskyUser struct { + // Entity is the base model of RiskyUser + Entity + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // IsGuest undocumented + IsGuest *bool `json:"isGuest,omitempty"` + // IsProcessing undocumented + IsProcessing *bool `json:"isProcessing,omitempty"` + // RiskLastUpdatedDateTime undocumented + RiskLastUpdatedDateTime *time.Time `json:"riskLastUpdatedDateTime,omitempty"` + // RiskLevel undocumented + RiskLevel *RiskLevel `json:"riskLevel,omitempty"` + // RiskState undocumented + RiskState *RiskState `json:"riskState,omitempty"` + // RiskDetail undocumented + RiskDetail *RiskDetail `json:"riskDetail,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // History undocumented + History []RiskyUserHistoryItem `json:"history,omitempty"` +} + +// RiskyUserHistoryItem undocumented +type RiskyUserHistoryItem struct { + // RiskyUser is the base model of RiskyUserHistoryItem + RiskyUser + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // InitiatedBy undocumented + InitiatedBy *string `json:"initiatedBy,omitempty"` + // Activity undocumented + Activity *RiskUserActivity `json:"activity,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go new file mode 100644 index 00000000..b19c9b98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go @@ -0,0 +1,127 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. +type RoleAssignment struct { + // Entity is the base model of RoleAssignment + Entity + // DisplayName The display or friendly name of the role Assignment. + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the Role Assignment. + Description *string `json:"description,omitempty"` + // ScopeMembers List of ids of role scope member security groups. These are IDs from Azure Active Directory. + ScopeMembers []string `json:"scopeMembers,omitempty"` + // ScopeType Specifies the type of scope for a Role Assignment. Default type 'ResourceScope' allows assignment of ResourceScopes. For 'AllDevices', 'AllLicensedUsers', and 'AllDevicesAndLicensedUsers', the ResourceScopes property should be left empty. + ScopeType *RoleAssignmentScopeType `json:"scopeType,omitempty"` + // ResourceScopes List of ids of role scope member security groups. These are IDs from Azure Active Directory. + ResourceScopes []string `json:"resourceScopes,omitempty"` + // RoleDefinition undocumented + RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"` +} + +// RoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. +type RoleDefinition struct { + // Entity is the base model of RoleDefinition + Entity + // DisplayName Display Name of the Role definition. + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the Role definition. + Description *string `json:"description,omitempty"` + // Permissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission. + Permissions []RolePermission `json:"permissions,omitempty"` + // RolePermissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission. + RolePermissions []RolePermission `json:"rolePermissions,omitempty"` + // IsBuiltInRoleDefinition Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition. + IsBuiltInRoleDefinition *bool `json:"isBuiltInRoleDefinition,omitempty"` + // IsBuiltIn Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition. + IsBuiltIn *bool `json:"isBuiltIn,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // RoleAssignments undocumented + RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"` +} + +// RoleManagement undocumented +type RoleManagement struct { + // Entity is the base model of RoleManagement + Entity + // Directory undocumented + Directory *RbacApplication `json:"directory,omitempty"` +} + +// RoleMembershipGovernanceCriteria undocumented +type RoleMembershipGovernanceCriteria struct { + // GovernanceCriteria is the base model of RoleMembershipGovernanceCriteria + GovernanceCriteria + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // RoleTemplateID undocumented + RoleTemplateID *string `json:"roleTemplateId,omitempty"` +} + +// RolePermission undocumented +type RolePermission struct { + // Object is the base model of RolePermission + Object + // Actions Allowed Actions - Deprecated + Actions []string `json:"actions,omitempty"` + // ResourceActions Resource Actions each containing a set of allowed and not allowed permissions. + ResourceActions []ResourceAction `json:"resourceActions,omitempty"` +} + +// RoleScopeTag Role Scope Tag +type RoleScopeTag struct { + // Entity is the base model of RoleScopeTag + Entity + // DisplayName The display or friendly name of the Role Scope Tag. + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the Role Scope Tag. + Description *string `json:"description,omitempty"` + // IsBuiltIn Description of the Role Scope Tag. + IsBuiltIn *bool `json:"isBuiltIn,omitempty"` + // Assignments undocumented + Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"` +} + +// RoleScopeTagAutoAssignment Contains the properties for auto-assigning a Role Scope Tag to a group to be applied to Devices. +type RoleScopeTagAutoAssignment struct { + // Entity is the base model of RoleScopeTagAutoAssignment + Entity + // Target The auto-assignment target for the specific Role Scope Tag. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// RoleScopeTagInfo undocumented +type RoleScopeTagInfo struct { + // Object is the base model of RoleScopeTagInfo + Object + // DisplayName Scope Tag Display name. + DisplayName *string `json:"displayName,omitempty"` + // RoleScopeTagID Scope Tag Id. + RoleScopeTagID *string `json:"roleScopeTagId,omitempty"` +} + +// RoleSuccessStatistics undocumented +type RoleSuccessStatistics struct { + // Object is the base model of RoleSuccessStatistics + Object + // RoleID undocumented + RoleID *string `json:"roleId,omitempty"` + // RoleName undocumented + RoleName *string `json:"roleName,omitempty"` + // TemporarySuccess undocumented + TemporarySuccess *int `json:"temporarySuccess,omitempty"` + // TemporaryFail undocumented + TemporaryFail *int `json:"temporaryFail,omitempty"` + // PermanentSuccess undocumented + PermanentSuccess *int `json:"permanentSuccess,omitempty"` + // PermanentFail undocumented + PermanentFail *int `json:"permanentFail,omitempty"` + // RemoveSuccess undocumented + RemoveSuccess *int `json:"removeSuccess,omitempty"` + // RemoveFail undocumented + RemoveFail *int `json:"removeFail,omitempty"` + // UnknownFail undocumented + UnknownFail *int `json:"unknownFail,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go new file mode 100644 index 00000000..40cd7e49 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Room undocumented +type Room struct { + // Place is the base model of Room + Place + // EmailAddress undocumented + EmailAddress *string `json:"emailAddress,omitempty"` + // Nickname undocumented + Nickname *string `json:"nickname,omitempty"` + // Building undocumented + Building *string `json:"building,omitempty"` + // FloorNumber undocumented + FloorNumber *int `json:"floorNumber,omitempty"` + // Label undocumented + Label *string `json:"label,omitempty"` + // Capacity undocumented + Capacity *int `json:"capacity,omitempty"` + // BookingType undocumented + BookingType *BookingType `json:"bookingType,omitempty"` + // AudioDeviceName undocumented + AudioDeviceName *string `json:"audioDeviceName,omitempty"` + // VideoDeviceName undocumented + VideoDeviceName *string `json:"videoDeviceName,omitempty"` + // DisplayDeviceName undocumented + DisplayDeviceName *string `json:"displayDeviceName,omitempty"` + // IsWheelChairAccessible undocumented + IsWheelChairAccessible *bool `json:"isWheelChairAccessible,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // FloorLabel undocumented + FloorLabel *string `json:"floorLabel,omitempty"` +} + +// RoomList undocumented +type RoomList struct { + // Place is the base model of RoomList + Place + // EmailAddress undocumented + EmailAddress *string `json:"emailAddress,omitempty"` + // Rooms undocumented + Rooms []Room `json:"rooms,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RootModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go new file mode 100644 index 00000000..9d5643fd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go @@ -0,0 +1,61 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// RubricCriterion undocumented +type RubricCriterion struct { + // Object is the base model of RubricCriterion + Object + // Description undocumented + Description *EducationItemBody `json:"description,omitempty"` +} + +// RubricLevel undocumented +type RubricLevel struct { + // Object is the base model of RubricLevel + Object + // LevelID undocumented + LevelID *string `json:"levelId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *EducationItemBody `json:"description,omitempty"` + // Grading undocumented + Grading *EducationAssignmentGradeType `json:"grading,omitempty"` +} + +// RubricQuality undocumented +type RubricQuality struct { + // Object is the base model of RubricQuality + Object + // QualityID undocumented + QualityID *string `json:"qualityId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *EducationItemBody `json:"description,omitempty"` + // Weight undocumented + Weight *float64 `json:"weight,omitempty"` + // Criteria undocumented + Criteria []RubricCriterion `json:"criteria,omitempty"` +} + +// RubricQualityFeedbackModel undocumented +type RubricQualityFeedbackModel struct { + // Object is the base model of RubricQualityFeedbackModel + Object + // QualityID undocumented + QualityID *string `json:"qualityId,omitempty"` + // Feedback undocumented + Feedback *EducationItemBody `json:"feedback,omitempty"` +} + +// RubricQualitySelectedColumnModel undocumented +type RubricQualitySelectedColumnModel struct { + // Object is the base model of RubricQualitySelectedColumnModel + Object + // QualityID undocumented + QualityID *string `json:"qualityId,omitempty"` + // ColumnID undocumented + ColumnID *string `json:"columnId,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RunScheduleModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go new file mode 100644 index 00000000..9f617a09 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go @@ -0,0 +1,531 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// SalesCreditMemo undocumented +type SalesCreditMemo struct { + // Entity is the base model of SalesCreditMemo + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // CreditMemoDate undocumented + CreditMemoDate *Date `json:"creditMemoDate,omitempty"` + // DueDate undocumented + DueDate *Date `json:"dueDate,omitempty"` + // CustomerID undocumented + CustomerID *UUID `json:"customerId,omitempty"` + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // CustomerName undocumented + CustomerName *string `json:"customerName,omitempty"` + // BillToName undocumented + BillToName *string `json:"billToName,omitempty"` + // BillToCustomerID undocumented + BillToCustomerID *UUID `json:"billToCustomerId,omitempty"` + // BillToCustomerNumber undocumented + BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"` + // SellingPostalAddress undocumented + SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"` + // BillingPostalAddress undocumented + BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // PaymentTermsID undocumented + PaymentTermsID *UUID `json:"paymentTermsId,omitempty"` + // Salesperson undocumented + Salesperson *string `json:"salesperson,omitempty"` + // PricesIncludeTax undocumented + PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // TotalAmountExcludingTax undocumented + TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // TotalAmountIncludingTax undocumented + TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // InvoiceID undocumented + InvoiceID *UUID `json:"invoiceId,omitempty"` + // InvoiceNumber undocumented + InvoiceNumber *string `json:"invoiceNumber,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // SalesCreditMemoLines undocumented + SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"` + // Customer undocumented + Customer *Customer `json:"customer,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` + // PaymentTerm undocumented + PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"` +} + +// SalesCreditMemoLine undocumented +type SalesCreditMemoLine struct { + // Entity is the base model of SalesCreditMemoLine + Entity + // DocumentID undocumented + DocumentID *UUID `json:"documentId,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // ItemID undocumented + ItemID *UUID `json:"itemId,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // LineType undocumented + LineType *string `json:"lineType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // UnitOfMeasureID undocumented + UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"` + // UnitPrice undocumented + UnitPrice *int `json:"unitPrice,omitempty"` + // Quantity undocumented + Quantity *int `json:"quantity,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // AmountExcludingTax undocumented + AmountExcludingTax *int `json:"amountExcludingTax,omitempty"` + // TaxCode undocumented + TaxCode *string `json:"taxCode,omitempty"` + // TaxPercent undocumented + TaxPercent *int `json:"taxPercent,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // AmountIncludingTax undocumented + AmountIncludingTax *int `json:"amountIncludingTax,omitempty"` + // InvoiceDiscountAllocation undocumented + InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"` + // NetAmount undocumented + NetAmount *int `json:"netAmount,omitempty"` + // NetTaxAmount undocumented + NetTaxAmount *int `json:"netTaxAmount,omitempty"` + // NetAmountIncludingTax undocumented + NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"` + // ShipmentDate undocumented + ShipmentDate *Date `json:"shipmentDate,omitempty"` + // Item undocumented + Item *Item `json:"item,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} + +// SalesInvoice undocumented +type SalesInvoice struct { + // Entity is the base model of SalesInvoice + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // InvoiceDate undocumented + InvoiceDate *Date `json:"invoiceDate,omitempty"` + // DueDate undocumented + DueDate *Date `json:"dueDate,omitempty"` + // CustomerPurchaseOrderReference undocumented + CustomerPurchaseOrderReference *string `json:"customerPurchaseOrderReference,omitempty"` + // CustomerID undocumented + CustomerID *UUID `json:"customerId,omitempty"` + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // CustomerName undocumented + CustomerName *string `json:"customerName,omitempty"` + // BillToName undocumented + BillToName *string `json:"billToName,omitempty"` + // BillToCustomerID undocumented + BillToCustomerID *UUID `json:"billToCustomerId,omitempty"` + // BillToCustomerNumber undocumented + BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"` + // ShipToName undocumented + ShipToName *string `json:"shipToName,omitempty"` + // ShipToContact undocumented + ShipToContact *string `json:"shipToContact,omitempty"` + // SellingPostalAddress undocumented + SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"` + // BillingPostalAddress undocumented + BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"` + // ShippingPostalAddress undocumented + ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // OrderID undocumented + OrderID *UUID `json:"orderId,omitempty"` + // OrderNumber undocumented + OrderNumber *string `json:"orderNumber,omitempty"` + // PaymentTermsID undocumented + PaymentTermsID *UUID `json:"paymentTermsId,omitempty"` + // ShipmentMethodID undocumented + ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"` + // Salesperson undocumented + Salesperson *string `json:"salesperson,omitempty"` + // PricesIncludeTax undocumented + PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // TotalAmountExcludingTax undocumented + TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // TotalAmountIncludingTax undocumented + TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // SalesInvoiceLines undocumented + SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"` + // Customer undocumented + Customer *Customer `json:"customer,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` + // PaymentTerm undocumented + PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"` + // ShipmentMethod undocumented + ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"` +} + +// SalesInvoiceLine undocumented +type SalesInvoiceLine struct { + // Entity is the base model of SalesInvoiceLine + Entity + // DocumentID undocumented + DocumentID *UUID `json:"documentId,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // ItemID undocumented + ItemID *UUID `json:"itemId,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // LineType undocumented + LineType *string `json:"lineType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // UnitOfMeasureID undocumented + UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"` + // UnitPrice undocumented + UnitPrice *int `json:"unitPrice,omitempty"` + // Quantity undocumented + Quantity *int `json:"quantity,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // AmountExcludingTax undocumented + AmountExcludingTax *int `json:"amountExcludingTax,omitempty"` + // TaxCode undocumented + TaxCode *string `json:"taxCode,omitempty"` + // TaxPercent undocumented + TaxPercent *int `json:"taxPercent,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // AmountIncludingTax undocumented + AmountIncludingTax *int `json:"amountIncludingTax,omitempty"` + // InvoiceDiscountAllocation undocumented + InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"` + // NetAmount undocumented + NetAmount *int `json:"netAmount,omitempty"` + // NetTaxAmount undocumented + NetTaxAmount *int `json:"netTaxAmount,omitempty"` + // NetAmountIncludingTax undocumented + NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"` + // ShipmentDate undocumented + ShipmentDate *Date `json:"shipmentDate,omitempty"` + // Item undocumented + Item *Item `json:"item,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} + +// SalesOrder undocumented +type SalesOrder struct { + // Entity is the base model of SalesOrder + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // OrderDate undocumented + OrderDate *Date `json:"orderDate,omitempty"` + // CustomerID undocumented + CustomerID *UUID `json:"customerId,omitempty"` + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // CustomerName undocumented + CustomerName *string `json:"customerName,omitempty"` + // BillToName undocumented + BillToName *string `json:"billToName,omitempty"` + // BillToCustomerID undocumented + BillToCustomerID *UUID `json:"billToCustomerId,omitempty"` + // BillToCustomerNumber undocumented + BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"` + // ShipToName undocumented + ShipToName *string `json:"shipToName,omitempty"` + // ShipToContact undocumented + ShipToContact *string `json:"shipToContact,omitempty"` + // SellingPostalAddress undocumented + SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"` + // BillingPostalAddress undocumented + BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"` + // ShippingPostalAddress undocumented + ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // PricesIncludeTax undocumented + PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"` + // PaymentTermsID undocumented + PaymentTermsID *UUID `json:"paymentTermsId,omitempty"` + // Salesperson undocumented + Salesperson *string `json:"salesperson,omitempty"` + // PartialShipping undocumented + PartialShipping *bool `json:"partialShipping,omitempty"` + // RequestedDeliveryDate undocumented + RequestedDeliveryDate *Date `json:"requestedDeliveryDate,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // TotalAmountExcludingTax undocumented + TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // TotalAmountIncludingTax undocumented + TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"` + // FullyShipped undocumented + FullyShipped *bool `json:"fullyShipped,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // SalesOrderLines undocumented + SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"` + // Customer undocumented + Customer *Customer `json:"customer,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` + // PaymentTerm undocumented + PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"` +} + +// SalesOrderLine undocumented +type SalesOrderLine struct { + // Entity is the base model of SalesOrderLine + Entity + // DocumentID undocumented + DocumentID *UUID `json:"documentId,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // ItemID undocumented + ItemID *UUID `json:"itemId,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // LineType undocumented + LineType *string `json:"lineType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // UnitOfMeasureID undocumented + UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"` + // Quantity undocumented + Quantity *int `json:"quantity,omitempty"` + // UnitPrice undocumented + UnitPrice *int `json:"unitPrice,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // AmountExcludingTax undocumented + AmountExcludingTax *int `json:"amountExcludingTax,omitempty"` + // TaxCode undocumented + TaxCode *string `json:"taxCode,omitempty"` + // TaxPercent undocumented + TaxPercent *int `json:"taxPercent,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // AmountIncludingTax undocumented + AmountIncludingTax *int `json:"amountIncludingTax,omitempty"` + // InvoiceDiscountAllocation undocumented + InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"` + // NetAmount undocumented + NetAmount *int `json:"netAmount,omitempty"` + // NetTaxAmount undocumented + NetTaxAmount *int `json:"netTaxAmount,omitempty"` + // NetAmountIncludingTax undocumented + NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"` + // ShipmentDate undocumented + ShipmentDate *Date `json:"shipmentDate,omitempty"` + // ShippedQuantity undocumented + ShippedQuantity *int `json:"shippedQuantity,omitempty"` + // InvoicedQuantity undocumented + InvoicedQuantity *int `json:"invoicedQuantity,omitempty"` + // InvoiceQuantity undocumented + InvoiceQuantity *int `json:"invoiceQuantity,omitempty"` + // ShipQuantity undocumented + ShipQuantity *int `json:"shipQuantity,omitempty"` + // Item undocumented + Item *Item `json:"item,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} + +// SalesQuote undocumented +type SalesQuote struct { + // Entity is the base model of SalesQuote + Entity + // Number undocumented + Number *string `json:"number,omitempty"` + // ExternalDocumentNumber undocumented + ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"` + // DocumentDate undocumented + DocumentDate *Date `json:"documentDate,omitempty"` + // DueDate undocumented + DueDate *Date `json:"dueDate,omitempty"` + // CustomerID undocumented + CustomerID *UUID `json:"customerId,omitempty"` + // CustomerNumber undocumented + CustomerNumber *string `json:"customerNumber,omitempty"` + // CustomerName undocumented + CustomerName *string `json:"customerName,omitempty"` + // BillToName undocumented + BillToName *string `json:"billToName,omitempty"` + // BillToCustomerID undocumented + BillToCustomerID *UUID `json:"billToCustomerId,omitempty"` + // BillToCustomerNumber undocumented + BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"` + // ShipToName undocumented + ShipToName *string `json:"shipToName,omitempty"` + // ShipToContact undocumented + ShipToContact *string `json:"shipToContact,omitempty"` + // SellingPostalAddress undocumented + SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"` + // BillingPostalAddress undocumented + BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"` + // ShippingPostalAddress undocumented + ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"` + // CurrencyID undocumented + CurrencyID *UUID `json:"currencyId,omitempty"` + // CurrencyCode undocumented + CurrencyCode *string `json:"currencyCode,omitempty"` + // PaymentTermsID undocumented + PaymentTermsID *UUID `json:"paymentTermsId,omitempty"` + // ShipmentMethodID undocumented + ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"` + // Salesperson undocumented + Salesperson *string `json:"salesperson,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // TotalAmountExcludingTax undocumented + TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // TotalAmountIncludingTax undocumented + TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // SentDate undocumented + SentDate *time.Time `json:"sentDate,omitempty"` + // ValidUntilDate undocumented + ValidUntilDate *Date `json:"validUntilDate,omitempty"` + // AcceptedDate undocumented + AcceptedDate *Date `json:"acceptedDate,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // PhoneNumber undocumented + PhoneNumber *string `json:"phoneNumber,omitempty"` + // Email undocumented + Email *string `json:"email,omitempty"` + // SalesQuoteLines undocumented + SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"` + // Customer undocumented + Customer *Customer `json:"customer,omitempty"` + // Currency undocumented + Currency *Currency `json:"currency,omitempty"` + // PaymentTerm undocumented + PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"` + // ShipmentMethod undocumented + ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"` +} + +// SalesQuoteLine undocumented +type SalesQuoteLine struct { + // Entity is the base model of SalesQuoteLine + Entity + // DocumentID undocumented + DocumentID *UUID `json:"documentId,omitempty"` + // Sequence undocumented + Sequence *int `json:"sequence,omitempty"` + // ItemID undocumented + ItemID *UUID `json:"itemId,omitempty"` + // AccountID undocumented + AccountID *UUID `json:"accountId,omitempty"` + // LineType undocumented + LineType *string `json:"lineType,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // UnitOfMeasureID undocumented + UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"` + // UnitPrice undocumented + UnitPrice *int `json:"unitPrice,omitempty"` + // Quantity undocumented + Quantity *int `json:"quantity,omitempty"` + // DiscountAmount undocumented + DiscountAmount *int `json:"discountAmount,omitempty"` + // DiscountPercent undocumented + DiscountPercent *int `json:"discountPercent,omitempty"` + // DiscountAppliedBeforeTax undocumented + DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"` + // AmountExcludingTax undocumented + AmountExcludingTax *int `json:"amountExcludingTax,omitempty"` + // TaxCode undocumented + TaxCode *string `json:"taxCode,omitempty"` + // TaxPercent undocumented + TaxPercent *int `json:"taxPercent,omitempty"` + // TotalTaxAmount undocumented + TotalTaxAmount *int `json:"totalTaxAmount,omitempty"` + // AmountIncludingTax undocumented + AmountIncludingTax *int `json:"amountIncludingTax,omitempty"` + // NetAmount undocumented + NetAmount *int `json:"netAmount,omitempty"` + // NetTaxAmount undocumented + NetTaxAmount *int `json:"netTaxAmount,omitempty"` + // NetAmountIncludingTax undocumented + NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"` + // Item undocumented + Item *Item `json:"item,omitempty"` + // Account undocumented + Account *Account `json:"account,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go new file mode 100644 index 00000000..f846bafd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go @@ -0,0 +1,115 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Schedule undocumented +type Schedule struct { + // Entity is the base model of Schedule + Entity + // Enabled undocumented + Enabled *bool `json:"enabled,omitempty"` + // TimeZone undocumented + TimeZone *string `json:"timeZone,omitempty"` + // ProvisionStatus undocumented + ProvisionStatus *OperationStatus `json:"provisionStatus,omitempty"` + // ProvisionStatusCode undocumented + ProvisionStatusCode *string `json:"provisionStatusCode,omitempty"` + // WorkforceIntegrationIDs undocumented + WorkforceIntegrationIDs []string `json:"workforceIntegrationIds,omitempty"` + // TimeClockEnabled undocumented + TimeClockEnabled *bool `json:"timeClockEnabled,omitempty"` + // OpenShiftsEnabled undocumented + OpenShiftsEnabled *bool `json:"openShiftsEnabled,omitempty"` + // SwapShiftsRequestsEnabled undocumented + SwapShiftsRequestsEnabled *bool `json:"swapShiftsRequestsEnabled,omitempty"` + // OfferShiftRequestsEnabled undocumented + OfferShiftRequestsEnabled *bool `json:"offerShiftRequestsEnabled,omitempty"` + // TimeOffRequestsEnabled undocumented + TimeOffRequestsEnabled *bool `json:"timeOffRequestsEnabled,omitempty"` + // Shifts undocumented + Shifts []Shift `json:"shifts,omitempty"` + // OpenShifts undocumented + OpenShifts []OpenShift `json:"openShifts,omitempty"` + // TimesOff undocumented + TimesOff []TimeOff `json:"timesOff,omitempty"` + // TimeOffReasons undocumented + TimeOffReasons []TimeOffReason `json:"timeOffReasons,omitempty"` + // SchedulingGroups undocumented + SchedulingGroups []SchedulingGroup `json:"schedulingGroups,omitempty"` + // SwapShiftsChangeRequests undocumented + SwapShiftsChangeRequests []SwapShiftsChangeRequestObject `json:"swapShiftsChangeRequests,omitempty"` + // OpenShiftChangeRequests undocumented + OpenShiftChangeRequests []OpenShiftChangeRequestObject `json:"openShiftChangeRequests,omitempty"` + // TimeOffRequests undocumented + TimeOffRequests []TimeOffRequestObject `json:"timeOffRequests,omitempty"` +} + +// ScheduleChangeRequestObject undocumented +type ScheduleChangeRequestObject struct { + // ChangeTrackedEntity is the base model of ScheduleChangeRequestObject + ChangeTrackedEntity + // AssignedTo undocumented + AssignedTo *ScheduleChangeRequestActor `json:"assignedTo,omitempty"` + // State undocumented + State *ScheduleChangeState `json:"state,omitempty"` + // SenderMessage undocumented + SenderMessage *string `json:"senderMessage,omitempty"` + // SenderDateTime undocumented + SenderDateTime *time.Time `json:"senderDateTime,omitempty"` + // ManagerActionMessage undocumented + ManagerActionMessage *string `json:"managerActionMessage,omitempty"` + // ManagerActionDateTime undocumented + ManagerActionDateTime *time.Time `json:"managerActionDateTime,omitempty"` + // SenderUserID undocumented + SenderUserID *string `json:"senderUserId,omitempty"` + // ManagerUserID undocumented + ManagerUserID *string `json:"managerUserId,omitempty"` +} + +// ScheduleEntity undocumented +type ScheduleEntity struct { + // Object is the base model of ScheduleEntity + Object + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // Theme undocumented + Theme *ScheduleEntityTheme `json:"theme,omitempty"` +} + +// ScheduleInformation undocumented +type ScheduleInformation struct { + // Object is the base model of ScheduleInformation + Object + // ScheduleID undocumented + ScheduleID *string `json:"scheduleId,omitempty"` + // ScheduleItems undocumented + ScheduleItems []ScheduleItem `json:"scheduleItems,omitempty"` + // AvailabilityView undocumented + AvailabilityView *string `json:"availabilityView,omitempty"` + // Error undocumented + Error *FreeBusyError `json:"error,omitempty"` + // WorkingHours undocumented + WorkingHours *WorkingHours `json:"workingHours,omitempty"` +} + +// ScheduleItem undocumented +type ScheduleItem struct { + // Object is the base model of ScheduleItem + Object + // Start undocumented + Start *DateTimeTimeZone `json:"start,omitempty"` + // End undocumented + End *DateTimeTimeZone `json:"end,omitempty"` + // IsPrivate undocumented + IsPrivate *bool `json:"isPrivate,omitempty"` + // Status undocumented + Status *FreeBusyStatus `json:"status,omitempty"` + // Subject undocumented + Subject *string `json:"subject,omitempty"` + // Location undocumented + Location *string `json:"location,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go new file mode 100644 index 00000000..fbe68b8c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Schema undocumented +type Schema struct { + // Entity is the base model of Schema + Entity + // BaseType undocumented + BaseType *string `json:"baseType,omitempty"` + // Properties undocumented + Properties []Property `json:"properties,omitempty"` +} + +// SchemaExtension undocumented +type SchemaExtension struct { + // Entity is the base model of SchemaExtension + Entity + // Description undocumented + Description *string `json:"description,omitempty"` + // TargetTypes undocumented + TargetTypes []string `json:"targetTypes,omitempty"` + // Properties undocumented + Properties []ExtensionSchemaProperty `json:"properties,omitempty"` + // Status undocumented + Status *string `json:"status,omitempty"` + // Owner undocumented + Owner *string `json:"owner,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go new file mode 100644 index 00000000..4aa68d09 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go @@ -0,0 +1,91 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Search undocumented +type Search struct { + // Entity is the base model of Search + Entity +} + +// SearchHit undocumented +type SearchHit struct { + // Object is the base model of SearchHit + Object + // _id undocumented + _id *string `json:"_id,omitempty"` + // _score undocumented + _score *int `json:"_score,omitempty"` + // _sortField undocumented + _sortField *string `json:"_sortField,omitempty"` + // _summary undocumented + _summary *string `json:"_summary,omitempty"` + // _source undocumented + _source *Entity `json:"_source,omitempty"` +} + +// SearchHitsContainer undocumented +type SearchHitsContainer struct { + // Object is the base model of SearchHitsContainer + Object + // Hits undocumented + Hits []SearchHit `json:"hits,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // MoreResultsAvailable undocumented + MoreResultsAvailable *bool `json:"moreResultsAvailable,omitempty"` +} + +// SearchQuery undocumented +type SearchQuery struct { + // Object is the base model of SearchQuery + Object + // Query_string undocumented + Query_string *SearchQueryString `json:"query_string,omitempty"` +} + +// SearchQueryString undocumented +type SearchQueryString struct { + // Object is the base model of SearchQueryString + Object + // Query undocumented + Query *string `json:"query,omitempty"` +} + +// SearchRequestObject undocumented +type SearchRequestObject struct { + // Object is the base model of SearchRequestObject + Object + // EntityTypes undocumented + EntityTypes []EntityType `json:"entityTypes,omitempty"` + // ContentSources undocumented + ContentSources []string `json:"contentSources,omitempty"` + // Query undocumented + Query *SearchQuery `json:"query,omitempty"` + // From undocumented + From *int `json:"from,omitempty"` + // Size undocumented + Size *int `json:"size,omitempty"` + // Stored_fields undocumented + Stored_fields []string `json:"stored_fields,omitempty"` + // EnableTopResults undocumented + EnableTopResults *bool `json:"enableTopResults,omitempty"` +} + +// SearchResponse undocumented +type SearchResponse struct { + // Object is the base model of SearchResponse + Object + // SearchTerms undocumented + SearchTerms []string `json:"searchTerms,omitempty"` + // HitsContainers undocumented + HitsContainers []SearchHitsContainer `json:"hitsContainers,omitempty"` +} + +// SearchResult undocumented +type SearchResult struct { + // Object is the base model of SearchResult + Object + // OnClickTelemetryURL undocumented + OnClickTelemetryURL *string `json:"onClickTelemetryUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go new file mode 100644 index 00000000..3bebf9e6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SectionGroup undocumented +type SectionGroup struct { + // OnenoteEntityHierarchyModel is the base model of SectionGroup + OnenoteEntityHierarchyModel + // SectionsURL undocumented + SectionsURL *string `json:"sectionsUrl,omitempty"` + // SectionGroupsURL undocumented + SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"` + // ParentNotebook undocumented + ParentNotebook *Notebook `json:"parentNotebook,omitempty"` + // ParentSectionGroup undocumented + ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"` + // Sections undocumented + Sections []OnenoteSection `json:"sections,omitempty"` + // SectionGroups undocumented + SectionGroups []SectionGroup `json:"sectionGroups,omitempty"` +} + +// SectionLinks undocumented +type SectionLinks struct { + // Object is the base model of SectionLinks + Object + // OneNoteClientURL undocumented + OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"` + // OneNoteWebURL undocumented + OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go new file mode 100644 index 00000000..e55504e6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go @@ -0,0 +1,91 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// SecureScore undocumented +type SecureScore struct { + // Entity is the base model of SecureScore + Entity + // ActiveUserCount undocumented + ActiveUserCount *int `json:"activeUserCount,omitempty"` + // AverageComparativeScores undocumented + AverageComparativeScores []AverageComparativeScore `json:"averageComparativeScores,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // ControlScores undocumented + ControlScores []ControlScore `json:"controlScores,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CurrentScore undocumented + CurrentScore *float64 `json:"currentScore,omitempty"` + // EnabledServices undocumented + EnabledServices []string `json:"enabledServices,omitempty"` + // LicensedUserCount undocumented + LicensedUserCount *int `json:"licensedUserCount,omitempty"` + // MaxScore undocumented + MaxScore *float64 `json:"maxScore,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// SecureScoreControlProfile undocumented +type SecureScoreControlProfile struct { + // Entity is the base model of SecureScoreControlProfile + Entity + // ActionType undocumented + ActionType *string `json:"actionType,omitempty"` + // ActionURL undocumented + ActionURL *string `json:"actionUrl,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // ComplianceInformation undocumented + ComplianceInformation []ComplianceInformation `json:"complianceInformation,omitempty"` + // ControlCategory undocumented + ControlCategory *string `json:"controlCategory,omitempty"` + // ControlStateUpdates undocumented + ControlStateUpdates []SecureScoreControlStateUpdate `json:"controlStateUpdates,omitempty"` + // Deprecated undocumented + Deprecated *bool `json:"deprecated,omitempty"` + // ImplementationCost undocumented + ImplementationCost *string `json:"implementationCost,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // MaxScore undocumented + MaxScore *float64 `json:"maxScore,omitempty"` + // Rank undocumented + Rank *int `json:"rank,omitempty"` + // Remediation undocumented + Remediation *string `json:"remediation,omitempty"` + // RemediationImpact undocumented + RemediationImpact *string `json:"remediationImpact,omitempty"` + // Service undocumented + Service *string `json:"service,omitempty"` + // Threats undocumented + Threats []string `json:"threats,omitempty"` + // Tier undocumented + Tier *string `json:"tier,omitempty"` + // Title undocumented + Title *string `json:"title,omitempty"` + // UserImpact undocumented + UserImpact *string `json:"userImpact,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// SecureScoreControlStateUpdate undocumented +type SecureScoreControlStateUpdate struct { + // Object is the base model of SecureScoreControlStateUpdate + Object + // AssignedTo undocumented + AssignedTo *string `json:"assignedTo,omitempty"` + // Comment undocumented + Comment *string `json:"comment,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // UpdatedBy undocumented + UpdatedBy *string `json:"updatedBy,omitempty"` + // UpdatedDateTime undocumented + UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go new file mode 100644 index 00000000..6d636d02 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go @@ -0,0 +1,193 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Security undocumented +type Security struct { + // Entity is the base model of Security + Entity + // ProviderStatus undocumented + ProviderStatus []SecurityProviderStatus `json:"providerStatus,omitempty"` + // Alerts undocumented + Alerts []Alert `json:"alerts,omitempty"` + // CloudAppSecurityProfiles undocumented + CloudAppSecurityProfiles []CloudAppSecurityProfile `json:"cloudAppSecurityProfiles,omitempty"` + // DomainSecurityProfiles undocumented + DomainSecurityProfiles []DomainSecurityProfile `json:"domainSecurityProfiles,omitempty"` + // FileSecurityProfiles undocumented + FileSecurityProfiles []FileSecurityProfile `json:"fileSecurityProfiles,omitempty"` + // HostSecurityProfiles undocumented + HostSecurityProfiles []HostSecurityProfile `json:"hostSecurityProfiles,omitempty"` + // IPSecurityProfiles undocumented + IPSecurityProfiles []IPSecurityProfile `json:"ipSecurityProfiles,omitempty"` + // ProviderTenantSettings undocumented + ProviderTenantSettings []ProviderTenantSetting `json:"providerTenantSettings,omitempty"` + // SecureScoreControlProfiles undocumented + SecureScoreControlProfiles []SecureScoreControlProfile `json:"secureScoreControlProfiles,omitempty"` + // SecureScores undocumented + SecureScores []SecureScore `json:"secureScores,omitempty"` + // TiIndicators undocumented + TiIndicators []TiIndicator `json:"tiIndicators,omitempty"` + // UserSecurityProfiles undocumented + UserSecurityProfiles []UserSecurityProfile `json:"userSecurityProfiles,omitempty"` + // SecurityActions undocumented + SecurityActions []SecurityAction `json:"securityActions,omitempty"` +} + +// SecurityAction undocumented +type SecurityAction struct { + // Entity is the base model of SecurityAction + Entity + // ActionReason undocumented + ActionReason *string `json:"actionReason,omitempty"` + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // ClientContext undocumented + ClientContext *string `json:"clientContext,omitempty"` + // CompletedDateTime undocumented + CompletedDateTime *time.Time `json:"completedDateTime,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ErrorInfo undocumented + ErrorInfo *ResultInfo `json:"errorInfo,omitempty"` + // LastActionDateTime undocumented + LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Parameters undocumented + Parameters []KeyValuePair `json:"parameters,omitempty"` + // States undocumented + States []SecurityActionState `json:"states,omitempty"` + // Status undocumented + Status *OperationStatus `json:"status,omitempty"` + // User undocumented + User *string `json:"user,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// SecurityActionState undocumented +type SecurityActionState struct { + // Object is the base model of SecurityActionState + Object + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // Status undocumented + Status *OperationStatus `json:"status,omitempty"` + // UpdatedDateTime undocumented + UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"` + // User undocumented + User *string `json:"user,omitempty"` +} + +// SecurityBaselineCategoryStateSummary The security baseline per category compliance state summary for the security baseline of the account. +type SecurityBaselineCategoryStateSummary struct { + // SecurityBaselineStateSummary is the base model of SecurityBaselineCategoryStateSummary + SecurityBaselineStateSummary + // DisplayName The category name + DisplayName *string `json:"displayName,omitempty"` +} + +// SecurityBaselineDeviceState The security baseline compliance state summary of the security baseline for a device. +type SecurityBaselineDeviceState struct { + // Entity is the base model of SecurityBaselineDeviceState + Entity + // ManagedDeviceID Intune device id + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // DeviceDisplayName Display name of the device + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserPrincipalName User Principal Name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // State Security baseline compliance state + State *SecurityBaselineComplianceState `json:"state,omitempty"` + // LastReportedDateTime Last modified date time of the policy report + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` +} + +// SecurityBaselineSettingState The security baseline compliance state of a setting for a device +type SecurityBaselineSettingState struct { + // Entity is the base model of SecurityBaselineSettingState + Entity + // SettingName The setting name that is being reported + SettingName *string `json:"settingName,omitempty"` + // State The compliance state of the security baseline setting + State *SecurityBaselineComplianceState `json:"state,omitempty"` + // SettingCategoryID The setting category id which this setting belongs to + SettingCategoryID *string `json:"settingCategoryId,omitempty"` +} + +// SecurityBaselineState Security baseline state for a device. +type SecurityBaselineState struct { + // Entity is the base model of SecurityBaselineState + Entity + // SecurityBaselineTemplateID The security baseline template id + SecurityBaselineTemplateID *string `json:"securityBaselineTemplateId,omitempty"` + // DisplayName The display name of the security baseline + DisplayName *string `json:"displayName,omitempty"` + // SettingStates undocumented + SettingStates []SecurityBaselineSettingState `json:"settingStates,omitempty"` +} + +// SecurityBaselineStateSummary The security baseline compliance state summary for the security baseline of the account. +type SecurityBaselineStateSummary struct { + // Entity is the base model of SecurityBaselineStateSummary + Entity + // SecureCount Number of secure devices + SecureCount *int `json:"secureCount,omitempty"` + // NotSecureCount Number of not secure devices + NotSecureCount *int `json:"notSecureCount,omitempty"` + // UnknownCount Number of unknown devices + UnknownCount *int `json:"unknownCount,omitempty"` + // ErrorCount Number of error devices + ErrorCount *int `json:"errorCount,omitempty"` + // ConflictCount Number of conflict devices + ConflictCount *int `json:"conflictCount,omitempty"` + // NotApplicableCount Number of not applicable devices + NotApplicableCount *int `json:"notApplicableCount,omitempty"` +} + +// SecurityBaselineTemplate The security baseline template of the account +type SecurityBaselineTemplate struct { + // DeviceManagementTemplate is the base model of SecurityBaselineTemplate + DeviceManagementTemplate + // DeviceStateSummary undocumented + DeviceStateSummary *SecurityBaselineStateSummary `json:"deviceStateSummary,omitempty"` + // DeviceStates undocumented + DeviceStates []SecurityBaselineDeviceState `json:"deviceStates,omitempty"` + // CategoryDeviceStateSummaries undocumented + CategoryDeviceStateSummaries []SecurityBaselineCategoryStateSummary `json:"categoryDeviceStateSummaries,omitempty"` +} + +// SecurityProviderStatus undocumented +type SecurityProviderStatus struct { + // Object is the base model of SecurityProviderStatus + Object + // Enabled undocumented + Enabled *bool `json:"enabled,omitempty"` + // Endpoint undocumented + Endpoint *string `json:"endpoint,omitempty"` + // Provider undocumented + Provider *string `json:"provider,omitempty"` + // Region undocumented + Region *string `json:"region,omitempty"` + // Vendor undocumented + Vendor *string `json:"vendor,omitempty"` +} + +// SecurityVendorInformation undocumented +type SecurityVendorInformation struct { + // Object is the base model of SecurityVendorInformation + Object + // Provider undocumented + Provider *string `json:"provider,omitempty"` + // ProviderVersion undocumented + ProviderVersion *string `json:"providerVersion,omitempty"` + // SubProvider undocumented + SubProvider *string `json:"subProvider,omitempty"` + // Vendor undocumented + Vendor *string `json:"vendor,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go new file mode 100644 index 00000000..885a1fd8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go @@ -0,0 +1,47 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SensitiveContentEvidence undocumented +type SensitiveContentEvidence struct { + // Object is the base model of SensitiveContentEvidence + Object + // Match undocumented + Match *string `json:"match,omitempty"` + // Offset undocumented + Offset *int `json:"offset,omitempty"` + // Length undocumented + Length *int `json:"length,omitempty"` +} + +// SensitiveContentLocation undocumented +type SensitiveContentLocation struct { + // Object is the base model of SensitiveContentLocation + Object + // IDMatch undocumented + IDMatch *string `json:"idMatch,omitempty"` + // Offset undocumented + Offset *int `json:"offset,omitempty"` + // Length undocumented + Length *int `json:"length,omitempty"` + // Evidences undocumented + Evidences []SensitiveContentEvidence `json:"evidences,omitempty"` +} + +// SensitiveType undocumented +type SensitiveType struct { + // Entity is the base model of SensitiveType + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // RulePackageID undocumented + RulePackageID *string `json:"rulePackageId,omitempty"` + // RulePackageType undocumented + RulePackageType *string `json:"rulePackageType,omitempty"` + // PublisherName undocumented + PublisherName *string `json:"publisherName,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go new file mode 100644 index 00000000..0385085f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go @@ -0,0 +1,45 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SensitivityLabel undocumented +type SensitivityLabel struct { + // Entity is the base model of SensitivityLabel + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // ToolTip undocumented + ToolTip *string `json:"toolTip,omitempty"` + // IsEndpointProtectionEnabled undocumented + IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"` + // IsDefault undocumented + IsDefault *bool `json:"isDefault,omitempty"` + // ApplicationMode undocumented + ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"` + // LabelActions undocumented + LabelActions []LabelActionBase `json:"labelActions,omitempty"` + // AssignedPolicies undocumented + AssignedPolicies []LabelPolicy `json:"assignedPolicies,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // AutoLabeling undocumented + AutoLabeling *AutoLabeling `json:"autoLabeling,omitempty"` + // Sublabels undocumented + Sublabels []SensitivityLabel `json:"sublabels,omitempty"` +} + +// SensitivityPolicySettings undocumented +type SensitivityPolicySettings struct { + // Entity is the base model of SensitivityPolicySettings + Entity + // IsMandatory undocumented + IsMandatory *bool `json:"isMandatory,omitempty"` + // HelpWebURL undocumented + HelpWebURL *string `json:"helpWebUrl,omitempty"` + // DowngradeSensitivityRequiresJustification undocumented + DowngradeSensitivityRequiresJustification *bool `json:"downgradeSensitivityRequiresJustification,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go new file mode 100644 index 00000000..c92a62b1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go @@ -0,0 +1,107 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ServiceHostedMediaConfig undocumented +type ServiceHostedMediaConfig struct { + // MediaConfig is the base model of ServiceHostedMediaConfig + MediaConfig + // PreFetchMedia undocumented + PreFetchMedia []MediaInfo `json:"preFetchMedia,omitempty"` +} + +// ServiceInformation undocumented +type ServiceInformation struct { + // Object is the base model of ServiceInformation + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// ServicePlanInfo undocumented +type ServicePlanInfo struct { + // Object is the base model of ServicePlanInfo + Object + // ServicePlanID undocumented + ServicePlanID *UUID `json:"servicePlanId,omitempty"` + // ServicePlanName undocumented + ServicePlanName *string `json:"servicePlanName,omitempty"` + // ProvisioningStatus undocumented + ProvisioningStatus *string `json:"provisioningStatus,omitempty"` + // AppliesTo undocumented + AppliesTo *string `json:"appliesTo,omitempty"` +} + +// ServicePrincipal undocumented +type ServicePrincipal struct { + // DirectoryObject is the base model of ServicePrincipal + DirectoryObject + // AccountEnabled undocumented + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AddIns undocumented + AddIns []AddIn `json:"addIns,omitempty"` + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // ApplicationTemplateID undocumented + ApplicationTemplateID *string `json:"applicationTemplateId,omitempty"` + // AppOwnerOrganizationID undocumented + AppOwnerOrganizationID *UUID `json:"appOwnerOrganizationId,omitempty"` + // AppRoleAssignmentRequired undocumented + AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` + // AppRoles undocumented + AppRoles []AppRole `json:"appRoles,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Homepage undocumented + Homepage *string `json:"homepage,omitempty"` + // KeyCredentials undocumented + KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"` + // Info undocumented + Info *InformationalURL `json:"info,omitempty"` + // LogoutURL undocumented + LogoutURL *string `json:"logoutUrl,omitempty"` + // NotificationEmailAddresses undocumented + NotificationEmailAddresses []string `json:"notificationEmailAddresses,omitempty"` + // PublishedPermissionScopes undocumented + PublishedPermissionScopes []PermissionScope `json:"publishedPermissionScopes,omitempty"` + // PasswordCredentials undocumented + PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"` + // PreferredTokenSigningKeyThumbprint undocumented + PreferredTokenSigningKeyThumbprint *string `json:"preferredTokenSigningKeyThumbprint,omitempty"` + // PublisherName undocumented + PublisherName *string `json:"publisherName,omitempty"` + // ReplyUrls undocumented + ReplyUrls []string `json:"replyUrls,omitempty"` + // SamlMetadataURL undocumented + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` + // ServicePrincipalNames undocumented + ServicePrincipalNames []string `json:"servicePrincipalNames,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // AppRoleAssignedTo undocumented + AppRoleAssignedTo []AppRoleAssignment `json:"appRoleAssignedTo,omitempty"` + // AppRoleAssignments undocumented + AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"` + // Oauth2PermissionGrants undocumented + Oauth2PermissionGrants []OAuth2PermissionGrant `json:"oauth2PermissionGrants,omitempty"` + // MemberOf undocumented + MemberOf []DirectoryObject `json:"memberOf,omitempty"` + // TransitiveMemberOf undocumented + TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"` + // CreatedObjects undocumented + CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"` + // LicenseDetails undocumented + LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"` + // Owners undocumented + Owners []DirectoryObject `json:"owners,omitempty"` + // OwnedObjects undocumented + OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"` + // Policies undocumented + Policies []DirectoryObject `json:"policies,omitempty"` + // Synchronization undocumented + Synchronization *Synchronization `json:"synchronization,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go new file mode 100644 index 00000000..ad6e5dbb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go @@ -0,0 +1,61 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SettingSource undocumented +type SettingSource struct { + // Object is the base model of SettingSource + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} + +// SettingStateDeviceSummary Device Compilance Policy and Configuration for a Setting State summary +type SettingStateDeviceSummary struct { + // Entity is the base model of SettingStateDeviceSummary + Entity + // SettingName Name of the setting + SettingName *string `json:"settingName,omitempty"` + // InstancePath Name of the InstancePath for the setting + InstancePath *string `json:"instancePath,omitempty"` + // UnknownDeviceCount Device Unkown count for the setting + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` + // NotApplicableDeviceCount Device Not Applicable count for the setting + NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"` + // CompliantDeviceCount Device Compliant count for the setting + CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"` + // RemediatedDeviceCount Device Compliant count for the setting + RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"` + // NonCompliantDeviceCount Device NonCompliant count for the setting + NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"` + // ErrorDeviceCount Device error count for the setting + ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"` + // ConflictDeviceCount Device conflict error count for the setting + ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"` +} + +// SettingTemplateValue undocumented +type SettingTemplateValue struct { + // Object is the base model of SettingTemplateValue + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // DefaultValue undocumented + DefaultValue *string `json:"defaultValue,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` +} + +// SettingValue undocumented +type SettingValue struct { + // Object is the base model of SettingValue + Object + // Name undocumented + Name *string `json:"name,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SettingsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go new file mode 100644 index 00000000..b3f327b1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go @@ -0,0 +1,165 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// ShareAction undocumented +type ShareAction struct { + // Object is the base model of ShareAction + Object + // Recipients undocumented + Recipients []IdentitySet `json:"recipients,omitempty"` +} + +// SharePointActivityPages undocumented +type SharePointActivityPages struct { + // Entity is the base model of SharePointActivityPages + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // VisitedPageCount undocumented + VisitedPageCount *int `json:"visitedPageCount,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointActivityUserCounts undocumented +type SharePointActivityUserCounts struct { + // Entity is the base model of SharePointActivityUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // VisitedPage undocumented + VisitedPage *int `json:"visitedPage,omitempty"` + // ViewedOrEdited undocumented + ViewedOrEdited *int `json:"viewedOrEdited,omitempty"` + // Synced undocumented + Synced *int `json:"synced,omitempty"` + // SharedInternally undocumented + SharedInternally *int `json:"sharedInternally,omitempty"` + // SharedExternally undocumented + SharedExternally *int `json:"sharedExternally,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointActivityUserDetail undocumented +type SharePointActivityUserDetail struct { + // Entity is the base model of SharePointActivityUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // ViewedOrEditedFileCount undocumented + ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"` + // SyncedFileCount undocumented + SyncedFileCount *int `json:"syncedFileCount,omitempty"` + // SharedInternallyFileCount undocumented + SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"` + // SharedExternallyFileCount undocumented + SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"` + // VisitedPageCount undocumented + VisitedPageCount *int `json:"visitedPageCount,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointSiteUsageDetail undocumented +type SharePointSiteUsageDetail struct { + // Entity is the base model of SharePointSiteUsageDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteID undocumented + SiteID *UUID `json:"siteId,omitempty"` + // SiteURL undocumented + SiteURL *string `json:"siteUrl,omitempty"` + // OwnerDisplayName undocumented + OwnerDisplayName *string `json:"ownerDisplayName,omitempty"` + // OwnerPrincipalName undocumented + OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // FileCount undocumented + FileCount *int `json:"fileCount,omitempty"` + // ActiveFileCount undocumented + ActiveFileCount *int `json:"activeFileCount,omitempty"` + // PageViewCount undocumented + PageViewCount *int `json:"pageViewCount,omitempty"` + // VisitedPageCount undocumented + VisitedPageCount *int `json:"visitedPageCount,omitempty"` + // StorageUsedInBytes undocumented + StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"` + // StorageAllocatedInBytes undocumented + StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"` + // RootWebTemplate undocumented + RootWebTemplate *string `json:"rootWebTemplate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointSiteUsageFileCounts undocumented +type SharePointSiteUsageFileCounts struct { + // Entity is the base model of SharePointSiteUsageFileCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointSiteUsagePages undocumented +type SharePointSiteUsagePages struct { + // Entity is the base model of SharePointSiteUsagePages + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // PageViewCount undocumented + PageViewCount *int `json:"pageViewCount,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SharePointSiteUsageSiteCounts undocumented +type SharePointSiteUsageSiteCounts struct { + // Entity is the base model of SharePointSiteUsageSiteCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go new file mode 100644 index 00000000..4e093a82 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go @@ -0,0 +1,129 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Shared undocumented +type Shared struct { + // Object is the base model of Shared + Object + // Owner undocumented + Owner *IdentitySet `json:"owner,omitempty"` + // Scope undocumented + Scope *string `json:"scope,omitempty"` + // SharedBy undocumented + SharedBy *IdentitySet `json:"sharedBy,omitempty"` + // SharedDateTime undocumented + SharedDateTime *time.Time `json:"sharedDateTime,omitempty"` +} + +// SharedAppleDeviceUser undocumented +type SharedAppleDeviceUser struct { + // Object is the base model of SharedAppleDeviceUser + Object + // UserPrincipalName User name + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DataToSync Data to sync + DataToSync *bool `json:"dataToSync,omitempty"` + // DataQuota Data quota + DataQuota *int `json:"dataQuota,omitempty"` + // DataUsed Data quota + DataUsed *int `json:"dataUsed,omitempty"` +} + +// SharedDriveItem undocumented +type SharedDriveItem struct { + // BaseItem is the base model of SharedDriveItem + BaseItem + // Owner undocumented + Owner *IdentitySet `json:"owner,omitempty"` + // DriveItem undocumented + DriveItem *DriveItem `json:"driveItem,omitempty"` + // Items undocumented + Items []DriveItem `json:"items,omitempty"` + // List undocumented + List *List `json:"list,omitempty"` + // ListItem undocumented + ListItem *ListItem `json:"listItem,omitempty"` + // Permission undocumented + Permission *Permission `json:"permission,omitempty"` + // Root undocumented + Root *DriveItem `json:"root,omitempty"` + // Site undocumented + Site *Site `json:"site,omitempty"` +} + +// SharedInsight undocumented +type SharedInsight struct { + // Entity is the base model of SharedInsight + Entity + // LastShared undocumented + LastShared *SharingDetail `json:"lastShared,omitempty"` + // SharingHistory undocumented + SharingHistory []SharingDetail `json:"sharingHistory,omitempty"` + // ResourceVisualization undocumented + ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"` + // ResourceReference undocumented + ResourceReference *ResourceReference `json:"resourceReference,omitempty"` + // LastSharedMethod undocumented + LastSharedMethod *Entity `json:"lastSharedMethod,omitempty"` + // Resource undocumented + Resource *Entity `json:"resource,omitempty"` +} + +// SharedPCAccountManagerPolicy undocumented +type SharedPCAccountManagerPolicy struct { + // Object is the base model of SharedPCAccountManagerPolicy + Object + // AccountDeletionPolicy Configures when accounts are deleted. + AccountDeletionPolicy *SharedPCAccountDeletionPolicyType `json:"accountDeletionPolicy,omitempty"` + // CacheAccountsAboveDiskFreePercentage Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100 + CacheAccountsAboveDiskFreePercentage *int `json:"cacheAccountsAboveDiskFreePercentage,omitempty"` + // InactiveThresholdDays Specifies when the accounts will start being deleted when they have not been logged on during the specified period, given as number of days. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. + InactiveThresholdDays *int `json:"inactiveThresholdDays,omitempty"` + // RemoveAccountsBelowDiskFreePercentage Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space. Accounts that have been inactive the longest will be deleted first. Only applies when AccountDeletionPolicy is DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100 + RemoveAccountsBelowDiskFreePercentage *int `json:"removeAccountsBelowDiskFreePercentage,omitempty"` +} + +// SharedPCConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource. +type SharedPCConfiguration struct { + // DeviceConfiguration is the base model of SharedPCConfiguration + DeviceConfiguration + // AccountManagerPolicy Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false. + AccountManagerPolicy *SharedPCAccountManagerPolicy `json:"accountManagerPolicy,omitempty"` + // AllowedAccounts Indicates which type of accounts are allowed to use on a shared PC. + AllowedAccounts *SharedPCAllowedAccountType `json:"allowedAccounts,omitempty"` + // LocalStorage Specifies whether local storage is allowed on a shared PC. + LocalStorage *Enablement `json:"localStorage,omitempty"` + // AllowLocalStorage Specifies whether local storage is allowed on a shared PC. + AllowLocalStorage *bool `json:"allowLocalStorage,omitempty"` + // SetAccountManager Disables the account manager for shared PC mode. + SetAccountManager *Enablement `json:"setAccountManager,omitempty"` + // DisableAccountManager Disables the account manager for shared PC mode. + DisableAccountManager *bool `json:"disableAccountManager,omitempty"` + // SetEduPolicies Specifies whether the default shared PC education environment policies should be enabled/disabled/not configured. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true. + SetEduPolicies *Enablement `json:"setEduPolicies,omitempty"` + // DisableEduPolicies Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true. + DisableEduPolicies *bool `json:"disableEduPolicies,omitempty"` + // SetPowerPolicies Specifies whether the default shared PC power policies should be enabled/disabled. + SetPowerPolicies *Enablement `json:"setPowerPolicies,omitempty"` + // DisablePowerPolicies Specifies whether the default shared PC power policies should be disabled. + DisablePowerPolicies *bool `json:"disablePowerPolicies,omitempty"` + // SignInOnResume Specifies the requirement to sign in whenever the device wakes up from sleep mode. + SignInOnResume *Enablement `json:"signInOnResume,omitempty"` + // DisableSignInOnResume Disables the requirement to sign in whenever the device wakes up from sleep mode. + DisableSignInOnResume *bool `json:"disableSignInOnResume,omitempty"` + // Enabled Enables shared PC mode and applies the shared pc policies. + Enabled *bool `json:"enabled,omitempty"` + // IdleTimeBeforeSleepInSeconds Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring. + IdleTimeBeforeSleepInSeconds *int `json:"idleTimeBeforeSleepInSeconds,omitempty"` + // KioskAppDisplayName Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set. + KioskAppDisplayName *string `json:"kioskAppDisplayName,omitempty"` + // KioskAppUserModelID Specifies the application user model ID of the app to use with assigned access. + KioskAppUserModelID *string `json:"kioskAppUserModelId,omitempty"` + // MaintenanceStartTime Specifies the daily start time of maintenance hour. + MaintenanceStartTime *TimeOfDay `json:"maintenanceStartTime,omitempty"` + // FastFirstSignIn Specifies whether to auto connect new non-admin Azure AD accounts to pre-configured candidate local accounts + FastFirstSignIn *Enablement `json:"fastFirstSignIn,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SharepointIDsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SharepointIDsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go new file mode 100644 index 00000000..4067665d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// SharingDetail undocumented +type SharingDetail struct { + // Object is the base model of SharingDetail + Object + // SharedBy undocumented + SharedBy *InsightIdentity `json:"sharedBy,omitempty"` + // SharedDateTime undocumented + SharedDateTime *time.Time `json:"sharedDateTime,omitempty"` + // SharingSubject undocumented + SharingSubject *string `json:"sharingSubject,omitempty"` + // SharingType undocumented + SharingType *string `json:"sharingType,omitempty"` + // SharingReference undocumented + SharingReference *ResourceReference `json:"sharingReference,omitempty"` +} + +// SharingInvitation undocumented +type SharingInvitation struct { + // Object is the base model of SharingInvitation + Object + // Email undocumented + Email *string `json:"email,omitempty"` + // InvitedBy undocumented + InvitedBy *IdentitySet `json:"invitedBy,omitempty"` + // RedeemedBy undocumented + RedeemedBy *string `json:"redeemedBy,omitempty"` + // SignInRequired undocumented + SignInRequired *bool `json:"signInRequired,omitempty"` +} + +// SharingLink undocumented +type SharingLink struct { + // Object is the base model of SharingLink + Object + // Application undocumented + Application *Identity `json:"application,omitempty"` + // PreventsDownload undocumented + PreventsDownload *bool `json:"preventsDownload,omitempty"` + // ConfiguratorURL undocumented + ConfiguratorURL *string `json:"configuratorUrl,omitempty"` + // Scope undocumented + Scope *string `json:"scope,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // WebHTML undocumented + WebHTML *string `json:"webHtml,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go new file mode 100644 index 00000000..2fd0de15 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go @@ -0,0 +1,63 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Shift undocumented +type Shift struct { + // ChangeTrackedEntity is the base model of Shift + ChangeTrackedEntity + // SharedShift undocumented + SharedShift *ShiftItem `json:"sharedShift,omitempty"` + // DraftShift undocumented + DraftShift *ShiftItem `json:"draftShift,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // SchedulingGroupID undocumented + SchedulingGroupID *string `json:"schedulingGroupId,omitempty"` +} + +// ShiftActivity undocumented +type ShiftActivity struct { + // Object is the base model of ShiftActivity + Object + // IsPaid undocumented + IsPaid *bool `json:"isPaid,omitempty"` + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Theme undocumented + Theme *ScheduleEntityTheme `json:"theme,omitempty"` +} + +// ShiftChangeRequestObject undocumented +type ShiftChangeRequestObject struct { + // ScheduleChangeRequestObject is the base model of ShiftChangeRequestObject + ScheduleChangeRequestObject + // RecipientActionMessage undocumented + RecipientActionMessage *string `json:"recipientActionMessage,omitempty"` + // RecipientActionDateTime undocumented + RecipientActionDateTime *time.Time `json:"recipientActionDateTime,omitempty"` + // SenderShiftID undocumented + SenderShiftID *string `json:"senderShiftId,omitempty"` + // RecipientUserID undocumented + RecipientUserID *string `json:"recipientUserId,omitempty"` +} + +// ShiftItem undocumented +type ShiftItem struct { + // ScheduleEntity is the base model of ShiftItem + ScheduleEntity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Notes undocumented + Notes *string `json:"notes,omitempty"` + // Activities undocumented + Activities []ShiftActivity `json:"activities,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go new file mode 100644 index 00000000..60a20ac3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go @@ -0,0 +1,129 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// SignIn undocumented +type SignIn struct { + // Entity is the base model of SignIn + Entity + // AlternateSignInName undocumented + AlternateSignInName *string `json:"alternateSignInName,omitempty"` + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // AppID undocumented + AppID *string `json:"appId,omitempty"` + // AppliedConditionalAccessPolicies undocumented + AppliedConditionalAccessPolicies []AppliedConditionalAccessPolicy `json:"appliedConditionalAccessPolicies,omitempty"` + // AuthenticationDetails undocumented + AuthenticationDetails []AuthenticationDetail `json:"authenticationDetails,omitempty"` + // AuthenticationMethodsUsed undocumented + AuthenticationMethodsUsed []string `json:"authenticationMethodsUsed,omitempty"` + // AuthenticationProcessingDetails undocumented + AuthenticationProcessingDetails []KeyValue `json:"authenticationProcessingDetails,omitempty"` + // AuthenticationRequirementPolicies undocumented + AuthenticationRequirementPolicies []AuthenticationRequirementPolicy `json:"authenticationRequirementPolicies,omitempty"` + // ClientAppUsed undocumented + ClientAppUsed *string `json:"clientAppUsed,omitempty"` + // ConditionalAccessStatus undocumented + ConditionalAccessStatus *ConditionalAccessStatus `json:"conditionalAccessStatus,omitempty"` + // CorrelationID undocumented + CorrelationID *string `json:"correlationId,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DeviceDetail undocumented + DeviceDetail *DeviceDetail `json:"deviceDetail,omitempty"` + // IsInteractive undocumented + IsInteractive *bool `json:"isInteractive,omitempty"` + // IPAddress undocumented + IPAddress *string `json:"ipAddress,omitempty"` + // Location undocumented + Location *SignInLocation `json:"location,omitempty"` + // MFADetail undocumented + MFADetail *MFADetail `json:"mfaDetail,omitempty"` + // NetworkLocationDetails undocumented + NetworkLocationDetails []NetworkLocationDetail `json:"networkLocationDetails,omitempty"` + // OriginalRequestID undocumented + OriginalRequestID *string `json:"originalRequestId,omitempty"` + // ProcessingTimeInMilliseconds undocumented + ProcessingTimeInMilliseconds *int `json:"processingTimeInMilliseconds,omitempty"` + // RiskDetail undocumented + RiskDetail *RiskDetail `json:"riskDetail,omitempty"` + // RiskEventTypes undocumented + RiskEventTypes []RiskEventType `json:"riskEventTypes,omitempty"` + // RiskLevelAggregated undocumented + RiskLevelAggregated *RiskLevel `json:"riskLevelAggregated,omitempty"` + // RiskLevelDuringSignIn undocumented + RiskLevelDuringSignIn *RiskLevel `json:"riskLevelDuringSignIn,omitempty"` + // RiskState undocumented + RiskState *RiskState `json:"riskState,omitempty"` + // ResourceDisplayName undocumented + ResourceDisplayName *string `json:"resourceDisplayName,omitempty"` + // ResourceID undocumented + ResourceID *string `json:"resourceId,omitempty"` + // ServicePrincipalID undocumented + ServicePrincipalID *string `json:"servicePrincipalId,omitempty"` + // ServicePrincipalName undocumented + ServicePrincipalName *string `json:"servicePrincipalName,omitempty"` + // Status undocumented + Status *SignInStatus `json:"status,omitempty"` + // TokenIssuerName undocumented + TokenIssuerName *string `json:"tokenIssuerName,omitempty"` + // TokenIssuerType undocumented + TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"` + // UserAgent undocumented + UserAgent *string `json:"userAgent,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// SignInActivity undocumented +type SignInActivity struct { + // Object is the base model of SignInActivity + Object + // LastSignInDateTime undocumented + LastSignInDateTime *time.Time `json:"lastSignInDateTime,omitempty"` + // LastSignInRequestID undocumented + LastSignInRequestID *string `json:"lastSignInRequestId,omitempty"` +} + +// SignInFrequencySessionControl undocumented +type SignInFrequencySessionControl struct { + // ConditionalAccessSessionControl is the base model of SignInFrequencySessionControl + ConditionalAccessSessionControl + // Value undocumented + Value *int `json:"value,omitempty"` + // Type undocumented + Type *SigninFrequencyType `json:"type,omitempty"` +} + +// SignInLocation undocumented +type SignInLocation struct { + // Object is the base model of SignInLocation + Object + // City undocumented + City *string `json:"city,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // CountryOrRegion undocumented + CountryOrRegion *string `json:"countryOrRegion,omitempty"` + // GeoCoordinates undocumented + GeoCoordinates *GeoCoordinates `json:"geoCoordinates,omitempty"` +} + +// SignInStatus undocumented +type SignInStatus struct { + // Object is the base model of SignInStatus + Object + // ErrorCode undocumented + ErrorCode *int `json:"errorCode,omitempty"` + // FailureReason undocumented + FailureReason *string `json:"failureReason,omitempty"` + // AdditionalDetails undocumented + AdditionalDetails *string `json:"additionalDetails,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go new file mode 100644 index 00000000..1f93e5b8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SingleSignOnExtension undocumented +type SingleSignOnExtension struct { + // Object is the base model of SingleSignOnExtension + Object +} + +// SingleValueLegacyExtendedProperty undocumented +type SingleValueLegacyExtendedProperty struct { + // Entity is the base model of SingleValueLegacyExtendedProperty + Entity + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go new file mode 100644 index 00000000..b9e50fc3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go @@ -0,0 +1,107 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Site undocumented +type Site struct { + // BaseItem is the base model of Site + BaseItem + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Root undocumented + Root *Root `json:"root,omitempty"` + // SharepointIDs undocumented + SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"` + // SiteCollection undocumented + SiteCollection *SiteCollection `json:"siteCollection,omitempty"` + // Analytics undocumented + Analytics *ItemAnalytics `json:"analytics,omitempty"` + // Columns undocumented + Columns []ColumnDefinition `json:"columns,omitempty"` + // ContentTypes undocumented + ContentTypes []ContentType `json:"contentTypes,omitempty"` + // Drive undocumented + Drive *Drive `json:"drive,omitempty"` + // Drives undocumented + Drives []Drive `json:"drives,omitempty"` + // Items undocumented + Items []BaseItem `json:"items,omitempty"` + // Lists undocumented + Lists []List `json:"lists,omitempty"` + // Pages undocumented + Pages []SitePage `json:"pages,omitempty"` + // Sites undocumented + Sites []Site `json:"sites,omitempty"` + // Onenote undocumented + Onenote *Onenote `json:"onenote,omitempty"` +} + +// SiteActivitySummary undocumented +type SiteActivitySummary struct { + // Entity is the base model of SiteActivitySummary + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ViewedOrEdited undocumented + ViewedOrEdited *int `json:"viewedOrEdited,omitempty"` + // Synced undocumented + Synced *int `json:"synced,omitempty"` + // SharedInternally undocumented + SharedInternally *int `json:"sharedInternally,omitempty"` + // SharedExternally undocumented + SharedExternally *int `json:"sharedExternally,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SiteCollection undocumented +type SiteCollection struct { + // Object is the base model of SiteCollection + Object + // DataLocationCode undocumented + DataLocationCode *string `json:"dataLocationCode,omitempty"` + // Hostname undocumented + Hostname *string `json:"hostname,omitempty"` + // Root undocumented + Root *Root `json:"root,omitempty"` +} + +// SitePage undocumented +type SitePage struct { + // BaseItem is the base model of SitePage + BaseItem + // Title undocumented + Title *string `json:"title,omitempty"` + // ContentType undocumented + ContentType *ContentTypeInfo `json:"contentType,omitempty"` + // PageLayoutType undocumented + PageLayoutType *string `json:"pageLayoutType,omitempty"` + // WebParts undocumented + WebParts []WebPart `json:"webParts,omitempty"` + // PublishingState undocumented + PublishingState *PublicationFacet `json:"publishingState,omitempty"` +} + +// SitePageData undocumented +type SitePageData struct { + // Object is the base model of SitePageData + Object +} + +// SiteUsageStorage undocumented +type SiteUsageStorage struct { + // Entity is the base model of SiteUsageStorage + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // SiteType undocumented + SiteType *string `json:"siteType,omitempty"` + // StorageUsedInBytes undocumented + StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SizeRangeModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go new file mode 100644 index 00000000..d037c301 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go @@ -0,0 +1,365 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// SkypeForBusinessActivityCounts undocumented +type SkypeForBusinessActivityCounts struct { + // Entity is the base model of SkypeForBusinessActivityCounts + Entity + // PeerToPeer undocumented + PeerToPeer *int `json:"peerToPeer,omitempty"` + // Organized undocumented + Organized *int `json:"organized,omitempty"` + // Participated undocumented + Participated *int `json:"participated,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessActivityUserCounts undocumented +type SkypeForBusinessActivityUserCounts struct { + // Entity is the base model of SkypeForBusinessActivityUserCounts + Entity + // PeerToPeer undocumented + PeerToPeer *int `json:"peerToPeer,omitempty"` + // Organized undocumented + Organized *int `json:"organized,omitempty"` + // Participated undocumented + Participated *int `json:"participated,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessActivityUserDetail undocumented +type SkypeForBusinessActivityUserDetail struct { + // Entity is the base model of SkypeForBusinessActivityUserDetail + Entity + // TotalPeerToPeerSessionCount undocumented + TotalPeerToPeerSessionCount *int `json:"totalPeerToPeerSessionCount,omitempty"` + // TotalOrganizedConferenceCount undocumented + TotalOrganizedConferenceCount *int `json:"totalOrganizedConferenceCount,omitempty"` + // TotalParticipatedConferenceCount undocumented + TotalParticipatedConferenceCount *int `json:"totalParticipatedConferenceCount,omitempty"` + // PeerToPeerLastActivityDate undocumented + PeerToPeerLastActivityDate *Date `json:"peerToPeerLastActivityDate,omitempty"` + // OrganizedConferenceLastActivityDate undocumented + OrganizedConferenceLastActivityDate *Date `json:"organizedConferenceLastActivityDate,omitempty"` + // ParticipatedConferenceLastActivityDate undocumented + ParticipatedConferenceLastActivityDate *Date `json:"participatedConferenceLastActivityDate,omitempty"` + // PeerToPeerIMCount undocumented + PeerToPeerIMCount *int `json:"peerToPeerIMCount,omitempty"` + // PeerToPeerAudioCount undocumented + PeerToPeerAudioCount *int `json:"peerToPeerAudioCount,omitempty"` + // PeerToPeerAudioMinutes undocumented + PeerToPeerAudioMinutes *int `json:"peerToPeerAudioMinutes,omitempty"` + // PeerToPeerVideoCount undocumented + PeerToPeerVideoCount *int `json:"peerToPeerVideoCount,omitempty"` + // PeerToPeerVideoMinutes undocumented + PeerToPeerVideoMinutes *int `json:"peerToPeerVideoMinutes,omitempty"` + // PeerToPeerAppSharingCount undocumented + PeerToPeerAppSharingCount *int `json:"peerToPeerAppSharingCount,omitempty"` + // PeerToPeerFileTransferCount undocumented + PeerToPeerFileTransferCount *int `json:"peerToPeerFileTransferCount,omitempty"` + // OrganizedConferenceIMCount undocumented + OrganizedConferenceIMCount *int `json:"organizedConferenceIMCount,omitempty"` + // OrganizedConferenceAudioVideoCount undocumented + OrganizedConferenceAudioVideoCount *int `json:"organizedConferenceAudioVideoCount,omitempty"` + // OrganizedConferenceAudioVideoMinutes undocumented + OrganizedConferenceAudioVideoMinutes *int `json:"organizedConferenceAudioVideoMinutes,omitempty"` + // OrganizedConferenceAppSharingCount undocumented + OrganizedConferenceAppSharingCount *int `json:"organizedConferenceAppSharingCount,omitempty"` + // OrganizedConferenceWebCount undocumented + OrganizedConferenceWebCount *int `json:"organizedConferenceWebCount,omitempty"` + // OrganizedConferenceDialInOut3rdPartyCount undocumented + OrganizedConferenceDialInOut3rdPartyCount *int `json:"organizedConferenceDialInOut3rdPartyCount,omitempty"` + // OrganizedConferenceCloudDialInOutMicrosoftCount undocumented + OrganizedConferenceCloudDialInOutMicrosoftCount *int `json:"organizedConferenceCloudDialInOutMicrosoftCount,omitempty"` + // OrganizedConferenceCloudDialInMicrosoftMinutes undocumented + OrganizedConferenceCloudDialInMicrosoftMinutes *int `json:"organizedConferenceCloudDialInMicrosoftMinutes,omitempty"` + // OrganizedConferenceCloudDialOutMicrosoftMinutes undocumented + OrganizedConferenceCloudDialOutMicrosoftMinutes *int `json:"organizedConferenceCloudDialOutMicrosoftMinutes,omitempty"` + // ParticipatedConferenceIMCount undocumented + ParticipatedConferenceIMCount *int `json:"participatedConferenceIMCount,omitempty"` + // ParticipatedConferenceAudioVideoCount undocumented + ParticipatedConferenceAudioVideoCount *int `json:"participatedConferenceAudioVideoCount,omitempty"` + // ParticipatedConferenceAudioVideoMinutes undocumented + ParticipatedConferenceAudioVideoMinutes *int `json:"participatedConferenceAudioVideoMinutes,omitempty"` + // ParticipatedConferenceAppSharingCount undocumented + ParticipatedConferenceAppSharingCount *int `json:"participatedConferenceAppSharingCount,omitempty"` + // ParticipatedConferenceWebCount undocumented + ParticipatedConferenceWebCount *int `json:"participatedConferenceWebCount,omitempty"` + // ParticipatedConferenceDialInOut3rdPartyCount undocumented + ParticipatedConferenceDialInOut3rdPartyCount *int `json:"participatedConferenceDialInOut3rdPartyCount,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessDeviceUsageDistributionUserCounts undocumented +type SkypeForBusinessDeviceUsageDistributionUserCounts struct { + // Entity is the base model of SkypeForBusinessDeviceUsageDistributionUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IPhone undocumented + IPhone *int `json:"iPhone,omitempty"` + // IPad undocumented + IPad *int `json:"iPad,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessDeviceUsageUserCounts undocumented +type SkypeForBusinessDeviceUsageUserCounts struct { + // Entity is the base model of SkypeForBusinessDeviceUsageUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IPhone undocumented + IPhone *int `json:"iPhone,omitempty"` + // IPad undocumented + IPad *int `json:"iPad,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessDeviceUsageUserDetail undocumented +type SkypeForBusinessDeviceUsageUserDetail struct { + // Entity is the base model of SkypeForBusinessDeviceUsageUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // UsedWindows undocumented + UsedWindows *bool `json:"usedWindows,omitempty"` + // UsedWindowsPhone undocumented + UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"` + // UsedAndroidPhone undocumented + UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"` + // UsediPhone undocumented + UsediPhone *bool `json:"usediPhone,omitempty"` + // UsediPad undocumented + UsediPad *bool `json:"usediPad,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessOrganizerActivityCounts undocumented +type SkypeForBusinessOrganizerActivityCounts struct { + // Entity is the base model of SkypeForBusinessOrganizerActivityCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // AudioVideo undocumented + AudioVideo *int `json:"audioVideo,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // DialInOut3rdParty undocumented + DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"` + // DialInOutMicrosoft undocumented + DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessOrganizerActivityMinuteCounts undocumented +type SkypeForBusinessOrganizerActivityMinuteCounts struct { + // Entity is the base model of SkypeForBusinessOrganizerActivityMinuteCounts + Entity + // AudioVideo undocumented + AudioVideo *int `json:"audioVideo,omitempty"` + // DialInMicrosoft undocumented + DialInMicrosoft *int `json:"dialInMicrosoft,omitempty"` + // DialOutMicrosoft undocumented + DialOutMicrosoft *int `json:"dialOutMicrosoft,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessOrganizerActivityUserCounts undocumented +type SkypeForBusinessOrganizerActivityUserCounts struct { + // Entity is the base model of SkypeForBusinessOrganizerActivityUserCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // AudioVideo undocumented + AudioVideo *int `json:"audioVideo,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // DialInOut3rdParty undocumented + DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"` + // DialInOutMicrosoft undocumented + DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessParticipantActivityCounts undocumented +type SkypeForBusinessParticipantActivityCounts struct { + // Entity is the base model of SkypeForBusinessParticipantActivityCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // AudioVideo undocumented + AudioVideo *int `json:"audioVideo,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // DialInOut3rdParty undocumented + DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessParticipantActivityMinuteCounts undocumented +type SkypeForBusinessParticipantActivityMinuteCounts struct { + // Entity is the base model of SkypeForBusinessParticipantActivityMinuteCounts + Entity + // Audiovideo undocumented + Audiovideo *int `json:"audiovideo,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessParticipantActivityUserCounts undocumented +type SkypeForBusinessParticipantActivityUserCounts struct { + // Entity is the base model of SkypeForBusinessParticipantActivityUserCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // AudioVideo undocumented + AudioVideo *int `json:"audioVideo,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // DialInOut3rdParty undocumented + DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessPeerToPeerActivityCounts undocumented +type SkypeForBusinessPeerToPeerActivityCounts struct { + // Entity is the base model of SkypeForBusinessPeerToPeerActivityCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // Audio undocumented + Audio *int `json:"audio,omitempty"` + // Video undocumented + Video *int `json:"video,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // FileTransfer undocumented + FileTransfer *int `json:"fileTransfer,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessPeerToPeerActivityMinuteCounts undocumented +type SkypeForBusinessPeerToPeerActivityMinuteCounts struct { + // Entity is the base model of SkypeForBusinessPeerToPeerActivityMinuteCounts + Entity + // Audio undocumented + Audio *int `json:"audio,omitempty"` + // Video undocumented + Video *int `json:"video,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// SkypeForBusinessPeerToPeerActivityUserCounts undocumented +type SkypeForBusinessPeerToPeerActivityUserCounts struct { + // Entity is the base model of SkypeForBusinessPeerToPeerActivityUserCounts + Entity + // Im undocumented + Im *int `json:"im,omitempty"` + // Audio undocumented + Audio *int `json:"audio,omitempty"` + // Video undocumented + Video *int `json:"video,omitempty"` + // AppSharing undocumented + AppSharing *int `json:"appSharing,omitempty"` + // FileTransfer undocumented + FileTransfer *int `json:"fileTransfer,omitempty"` + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SpecialFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SpecialFolderModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go new file mode 100644 index 00000000..4e6bb327 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go @@ -0,0 +1,19 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// StandardTimeZoneOffset undocumented +type StandardTimeZoneOffset struct { + // Object is the base model of StandardTimeZoneOffset + Object + // Time undocumented + Time *TimeOfDay `json:"time,omitempty"` + // DayOccurrence undocumented + DayOccurrence *int `json:"dayOccurrence,omitempty"` + // DayOfWeek undocumented + DayOfWeek *DayOfWeek `json:"dayOfWeek,omitempty"` + // Month undocumented + Month *int `json:"month,omitempty"` + // Year undocumented + Year *int `json:"year,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go new file mode 100644 index 00000000..42e06390 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go @@ -0,0 +1,27 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// StatusBase undocumented +type StatusBase struct { + // Object is the base model of StatusBase + Object + // Status undocumented + Status *ProvisioningResult `json:"status,omitempty"` +} + +// StatusDetails undocumented +type StatusDetails struct { + // StatusBase is the base model of StatusDetails + StatusBase + // ErrorCode undocumented + ErrorCode *string `json:"errorCode,omitempty"` + // Reason undocumented + Reason *string `json:"reason,omitempty"` + // AdditionalDetails undocumented + AdditionalDetails *string `json:"additionalDetails,omitempty"` + // ErrorCategory undocumented + ErrorCategory *string `json:"errorCategory,omitempty"` + // RecommendedAction undocumented + RecommendedAction *string `json:"recommendedAction,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/StoragePlanInformationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go new file mode 100644 index 00000000..3c50c6a7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go @@ -0,0 +1,41 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// StringKeyAttributeMappingSourceValuePair undocumented +type StringKeyAttributeMappingSourceValuePair struct { + // Object is the base model of StringKeyAttributeMappingSourceValuePair + Object + // Key undocumented + Key *string `json:"key,omitempty"` + // Value undocumented + Value *AttributeMappingSource `json:"value,omitempty"` +} + +// StringKeyLongValuePair undocumented +type StringKeyLongValuePair struct { + // Object is the base model of StringKeyLongValuePair + Object + // Key undocumented + Key *string `json:"key,omitempty"` + // Value undocumented + Value *int `json:"value,omitempty"` +} + +// StringKeyObjectValuePair undocumented +type StringKeyObjectValuePair struct { + // Object is the base model of StringKeyObjectValuePair + Object + // Key undocumented + Key *string `json:"key,omitempty"` +} + +// StringKeyStringValuePair undocumented +type StringKeyStringValuePair struct { + // Object is the base model of StringKeyStringValuePair + Object + // Key undocumented + Key *string `json:"key,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SubscribeToToneOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKUModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKUModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go new file mode 100644 index 00000000..c0e24833 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go @@ -0,0 +1,225 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Synchronization undocumented +type Synchronization struct { + // Entity is the base model of Synchronization + Entity + // Secrets undocumented + Secrets []SynchronizationSecretKeyStringValuePair `json:"secrets,omitempty"` + // Jobs undocumented + Jobs []SynchronizationJob `json:"jobs,omitempty"` + // Templates undocumented + Templates []SynchronizationTemplate `json:"templates,omitempty"` +} + +// SynchronizationError undocumented +type SynchronizationError struct { + // Object is the base model of SynchronizationError + Object + // Code undocumented + Code *string `json:"code,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` + // TenantActionable undocumented + TenantActionable *bool `json:"tenantActionable,omitempty"` +} + +// SynchronizationJob undocumented +type SynchronizationJob struct { + // Entity is the base model of SynchronizationJob + Entity + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // Schedule undocumented + Schedule *SynchronizationSchedule `json:"schedule,omitempty"` + // Status undocumented + Status *SynchronizationStatus `json:"status,omitempty"` + // SynchronizationJobSettings undocumented + SynchronizationJobSettings []KeyValuePair `json:"synchronizationJobSettings,omitempty"` + // Schema undocumented + Schema *SynchronizationSchema `json:"schema,omitempty"` +} + +// SynchronizationJobRestartCriteria undocumented +type SynchronizationJobRestartCriteria struct { + // Object is the base model of SynchronizationJobRestartCriteria + Object + // ResetScope undocumented + ResetScope *SynchronizationJobRestartScope `json:"resetScope,omitempty"` +} + +// SynchronizationProgress undocumented +type SynchronizationProgress struct { + // Object is the base model of SynchronizationProgress + Object + // CompletedUnits undocumented + CompletedUnits *int `json:"completedUnits,omitempty"` + // ProgressObservationDateTime undocumented + ProgressObservationDateTime *time.Time `json:"progressObservationDateTime,omitempty"` + // TotalUnits undocumented + TotalUnits *int `json:"totalUnits,omitempty"` + // Units undocumented + Units *string `json:"units,omitempty"` +} + +// SynchronizationQuarantine undocumented +type SynchronizationQuarantine struct { + // Object is the base model of SynchronizationQuarantine + Object + // CurrentBegan undocumented + CurrentBegan *time.Time `json:"currentBegan,omitempty"` + // NextAttempt undocumented + NextAttempt *time.Time `json:"nextAttempt,omitempty"` + // Reason undocumented + Reason *QuarantineReason `json:"reason,omitempty"` + // SeriesBegan undocumented + SeriesBegan *time.Time `json:"seriesBegan,omitempty"` + // SeriesCount undocumented + SeriesCount *int `json:"seriesCount,omitempty"` +} + +// SynchronizationRule undocumented +type SynchronizationRule struct { + // Object is the base model of SynchronizationRule + Object + // Editable undocumented + Editable *bool `json:"editable,omitempty"` + // ID undocumented + ID *string `json:"id,omitempty"` + // Metadata undocumented + Metadata []StringKeyStringValuePair `json:"metadata,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ObjectMappings undocumented + ObjectMappings []ObjectMapping `json:"objectMappings,omitempty"` + // Priority undocumented + Priority *int `json:"priority,omitempty"` + // SourceDirectoryName undocumented + SourceDirectoryName *string `json:"sourceDirectoryName,omitempty"` + // TargetDirectoryName undocumented + TargetDirectoryName *string `json:"targetDirectoryName,omitempty"` +} + +// SynchronizationSchedule undocumented +type SynchronizationSchedule struct { + // Object is the base model of SynchronizationSchedule + Object + // Expiration undocumented + Expiration *time.Time `json:"expiration,omitempty"` + // Interval undocumented + Interval *Duration `json:"interval,omitempty"` + // State undocumented + State *SynchronizationScheduleState `json:"state,omitempty"` +} + +// SynchronizationSchema undocumented +type SynchronizationSchema struct { + // Entity is the base model of SynchronizationSchema + Entity + // ProvisioningTaskIdentifier undocumented + ProvisioningTaskIdentifier *string `json:"provisioningTaskIdentifier,omitempty"` + // SynchronizationRules undocumented + SynchronizationRules []SynchronizationRule `json:"synchronizationRules,omitempty"` + // Version undocumented + Version *string `json:"version,omitempty"` + // Directories undocumented + Directories []DirectoryDefinition `json:"directories,omitempty"` +} + +// SynchronizationSecretKeyStringValuePair undocumented +type SynchronizationSecretKeyStringValuePair struct { + // Object is the base model of SynchronizationSecretKeyStringValuePair + Object + // Key undocumented + Key *SynchronizationSecret `json:"key,omitempty"` + // Value undocumented + Value *string `json:"value,omitempty"` +} + +// SynchronizationStatus undocumented +type SynchronizationStatus struct { + // Object is the base model of SynchronizationStatus + Object + // CountSuccessiveCompleteFailures undocumented + CountSuccessiveCompleteFailures *int `json:"countSuccessiveCompleteFailures,omitempty"` + // EscrowsPruned undocumented + EscrowsPruned *bool `json:"escrowsPruned,omitempty"` + // Code undocumented + Code *SynchronizationStatusCode `json:"code,omitempty"` + // LastExecution undocumented + LastExecution *SynchronizationTaskExecution `json:"lastExecution,omitempty"` + // LastSuccessfulExecution undocumented + LastSuccessfulExecution *SynchronizationTaskExecution `json:"lastSuccessfulExecution,omitempty"` + // LastSuccessfulExecutionWithExports undocumented + LastSuccessfulExecutionWithExports *SynchronizationTaskExecution `json:"lastSuccessfulExecutionWithExports,omitempty"` + // Progress undocumented + Progress []SynchronizationProgress `json:"progress,omitempty"` + // Quarantine undocumented + Quarantine *SynchronizationQuarantine `json:"quarantine,omitempty"` + // SteadyStateFirstAchievedTime undocumented + SteadyStateFirstAchievedTime *time.Time `json:"steadyStateFirstAchievedTime,omitempty"` + // SteadyStateLastAchievedTime undocumented + SteadyStateLastAchievedTime *time.Time `json:"steadyStateLastAchievedTime,omitempty"` + // SynchronizedEntryCountByType undocumented + SynchronizedEntryCountByType []StringKeyLongValuePair `json:"synchronizedEntryCountByType,omitempty"` + // TroubleshootingURL undocumented + TroubleshootingURL *string `json:"troubleshootingUrl,omitempty"` +} + +// SynchronizationTaskExecution undocumented +type SynchronizationTaskExecution struct { + // Object is the base model of SynchronizationTaskExecution + Object + // ActivityIdentifier undocumented + ActivityIdentifier *string `json:"activityIdentifier,omitempty"` + // CountEntitled undocumented + CountEntitled *int `json:"countEntitled,omitempty"` + // CountEntitledForProvisioning undocumented + CountEntitledForProvisioning *int `json:"countEntitledForProvisioning,omitempty"` + // CountEscrowed undocumented + CountEscrowed *int `json:"countEscrowed,omitempty"` + // CountEscrowedRaw undocumented + CountEscrowedRaw *int `json:"countEscrowedRaw,omitempty"` + // CountExported undocumented + CountExported *int `json:"countExported,omitempty"` + // CountExports undocumented + CountExports *int `json:"countExports,omitempty"` + // CountImported undocumented + CountImported *int `json:"countImported,omitempty"` + // CountImportedDeltas undocumented + CountImportedDeltas *int `json:"countImportedDeltas,omitempty"` + // CountImportedReferenceDeltas undocumented + CountImportedReferenceDeltas *int `json:"countImportedReferenceDeltas,omitempty"` + // State undocumented + State *SynchronizationTaskExecutionResult `json:"state,omitempty"` + // Error undocumented + Error *SynchronizationError `json:"error,omitempty"` + // TimeBegan undocumented + TimeBegan *time.Time `json:"timeBegan,omitempty"` + // TimeEnded undocumented + TimeEnded *time.Time `json:"timeEnded,omitempty"` +} + +// SynchronizationTemplate undocumented +type SynchronizationTemplate struct { + // Entity is the base model of SynchronizationTemplate + Entity + // ApplicationID undocumented + ApplicationID *UUID `json:"applicationId,omitempty"` + // Default undocumented + Default *bool `json:"default,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // Discoverable undocumented + Discoverable *bool `json:"discoverable,omitempty"` + // FactoryTag undocumented + FactoryTag *string `json:"factoryTag,omitempty"` + // Metadata undocumented + Metadata []MetadataEntry `json:"metadata,omitempty"` + // Schema undocumented + Schema *SynchronizationSchema `json:"schema,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SystemFacetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SystemFacetModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go new file mode 100644 index 00000000..8233fa2b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TargetPolicyEndpoints undocumented +type TargetPolicyEndpoints struct { + // Object is the base model of TargetPolicyEndpoints + Object + // PlatformTypes undocumented + PlatformTypes []string `json:"platformTypes,omitempty"` +} + +// TargetResource undocumented +type TargetResource struct { + // Object is the base model of TargetResource + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // GroupType undocumented + GroupType *GroupType `json:"groupType,omitempty"` + // ModifiedProperties undocumented + ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go new file mode 100644 index 00000000..33ec1c88 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go @@ -0,0 +1,49 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TargetedManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to all users in the targeted security group +type TargetedManagedAppConfiguration struct { + // ManagedAppConfiguration is the base model of TargetedManagedAppConfiguration + ManagedAppConfiguration + // DeployedAppCount Count of apps to which the current policy is deployed. + DeployedAppCount *int `json:"deployedAppCount,omitempty"` + // IsAssigned Indicates if the policy is deployed to any inclusion groups or not. + IsAssigned *bool `json:"isAssigned,omitempty"` + // Apps undocumented + Apps []ManagedMobileApp `json:"apps,omitempty"` + // DeploymentSummary undocumented + DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"` + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} + +// TargetedManagedAppConfigurationPolicySetItem A class containing the properties used for Targeted managed app configuration PolicySetItem. +type TargetedManagedAppConfigurationPolicySetItem struct { + // PolicySetItem is the base model of TargetedManagedAppConfigurationPolicySetItem + PolicySetItem +} + +// TargetedManagedAppPolicyAssignment The type for deployment of groups or apps. +type TargetedManagedAppPolicyAssignment struct { + // Entity is the base model of TargetedManagedAppPolicyAssignment + Entity + // Target Identifier for deployment to a group or app + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Source Type of resource used for deployment to a group, direct or parcel/policySet + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID Identifier for resource used for deployment to a group + SourceID *string `json:"sourceId,omitempty"` +} + +// TargetedManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups +type TargetedManagedAppProtection struct { + // ManagedAppProtection is the base model of TargetedManagedAppProtection + ManagedAppProtection + // IsAssigned Indicates if the policy is deployed to any inclusion groups or not. + IsAssigned *bool `json:"isAssigned,omitempty"` + // TargetedAppManagementLevels The intended app management levels for this policy + TargetedAppManagementLevels *AppManagementLevel `json:"targetedAppManagementLevels,omitempty"` + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go new file mode 100644 index 00000000..34141e37 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// TaxArea undocumented +type TaxArea struct { + // Entity is the base model of TaxArea + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // TaxType undocumented + TaxType *string `json:"taxType,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// TaxGroup undocumented +type TaxGroup struct { + // Entity is the base model of TaxGroup + Entity + // Code undocumented + Code *string `json:"code,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // TaxType undocumented + TaxType *string `json:"taxType,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go new file mode 100644 index 00000000..820c61d8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go @@ -0,0 +1,129 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Team undocumented +type Team struct { + // Entity is the base model of Team + Entity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // InternalID undocumented + InternalID *string `json:"internalId,omitempty"` + // Classification undocumented + Classification *string `json:"classification,omitempty"` + // Specialization undocumented + Specialization *TeamSpecialization `json:"specialization,omitempty"` + // Visibility undocumented + Visibility *TeamVisibilityType `json:"visibility,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` + // MemberSettings undocumented + MemberSettings *TeamMemberSettings `json:"memberSettings,omitempty"` + // GuestSettings undocumented + GuestSettings *TeamGuestSettings `json:"guestSettings,omitempty"` + // MessagingSettings undocumented + MessagingSettings *TeamMessagingSettings `json:"messagingSettings,omitempty"` + // FunSettings undocumented + FunSettings *TeamFunSettings `json:"funSettings,omitempty"` + // DiscoverySettings undocumented + DiscoverySettings *TeamDiscoverySettings `json:"discoverySettings,omitempty"` + // IsArchived undocumented + IsArchived *bool `json:"isArchived,omitempty"` + // Schedule undocumented + Schedule *Schedule `json:"schedule,omitempty"` + // Group undocumented + Group *Group `json:"group,omitempty"` + // Template undocumented + Template *TeamsTemplate `json:"template,omitempty"` + // Photo undocumented + Photo *ProfilePhoto `json:"photo,omitempty"` + // Owners undocumented + Owners []User `json:"owners,omitempty"` + // Channels undocumented + Channels []Channel `json:"channels,omitempty"` + // PrimaryChannel undocumented + PrimaryChannel *Channel `json:"primaryChannel,omitempty"` + // Apps undocumented + Apps []TeamsCatalogApp `json:"apps,omitempty"` + // InstalledApps undocumented + InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"` + // Operations undocumented + Operations []TeamsAsyncOperation `json:"operations,omitempty"` +} + +// TeamClassSettings undocumented +type TeamClassSettings struct { + // Object is the base model of TeamClassSettings + Object + // NotifyGuardiansAboutAssignments undocumented + NotifyGuardiansAboutAssignments *bool `json:"notifyGuardiansAboutAssignments,omitempty"` +} + +// TeamDiscoverySettings undocumented +type TeamDiscoverySettings struct { + // Object is the base model of TeamDiscoverySettings + Object + // ShowInTeamsSearchAndSuggestions undocumented + ShowInTeamsSearchAndSuggestions *bool `json:"showInTeamsSearchAndSuggestions,omitempty"` +} + +// TeamFunSettings undocumented +type TeamFunSettings struct { + // Object is the base model of TeamFunSettings + Object + // AllowGiphy undocumented + AllowGiphy *bool `json:"allowGiphy,omitempty"` + // GiphyContentRating undocumented + GiphyContentRating *GiphyRatingType `json:"giphyContentRating,omitempty"` + // AllowStickersAndMemes undocumented + AllowStickersAndMemes *bool `json:"allowStickersAndMemes,omitempty"` + // AllowCustomMemes undocumented + AllowCustomMemes *bool `json:"allowCustomMemes,omitempty"` +} + +// TeamGuestSettings undocumented +type TeamGuestSettings struct { + // Object is the base model of TeamGuestSettings + Object + // AllowCreateUpdateChannels undocumented + AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"` + // AllowDeleteChannels undocumented + AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"` +} + +// TeamMemberSettings undocumented +type TeamMemberSettings struct { + // Object is the base model of TeamMemberSettings + Object + // AllowCreateUpdateChannels undocumented + AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"` + // AllowCreatePrivateChannels undocumented + AllowCreatePrivateChannels *bool `json:"allowCreatePrivateChannels,omitempty"` + // AllowDeleteChannels undocumented + AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"` + // AllowAddRemoveApps undocumented + AllowAddRemoveApps *bool `json:"allowAddRemoveApps,omitempty"` + // AllowCreateUpdateRemoveTabs undocumented + AllowCreateUpdateRemoveTabs *bool `json:"allowCreateUpdateRemoveTabs,omitempty"` + // AllowCreateUpdateRemoveConnectors undocumented + AllowCreateUpdateRemoveConnectors *bool `json:"allowCreateUpdateRemoveConnectors,omitempty"` +} + +// TeamMessagingSettings undocumented +type TeamMessagingSettings struct { + // Object is the base model of TeamMessagingSettings + Object + // AllowUserEditMessages undocumented + AllowUserEditMessages *bool `json:"allowUserEditMessages,omitempty"` + // AllowUserDeleteMessages undocumented + AllowUserDeleteMessages *bool `json:"allowUserDeleteMessages,omitempty"` + // AllowOwnerDeleteMessages undocumented + AllowOwnerDeleteMessages *bool `json:"allowOwnerDeleteMessages,omitempty"` + // AllowTeamMentions undocumented + AllowTeamMentions *bool `json:"allowTeamMentions,omitempty"` + // AllowChannelMentions undocumented + AllowChannelMentions *bool `json:"allowChannelMentions,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go new file mode 100644 index 00000000..352f1d01 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go @@ -0,0 +1,267 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// TeamsApp undocumented +type TeamsApp struct { + // Entity is the base model of TeamsApp + Entity + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // DistributionMethod undocumented + DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"` + // AppDefinitions undocumented + AppDefinitions []TeamsAppDefinition `json:"appDefinitions,omitempty"` +} + +// TeamsAppDefinition undocumented +type TeamsAppDefinition struct { + // Entity is the base model of TeamsAppDefinition + Entity + // TeamsAppID undocumented + TeamsAppID *string `json:"teamsAppId,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // Version undocumented + Version *string `json:"version,omitempty"` +} + +// TeamsAppInstallation undocumented +type TeamsAppInstallation struct { + // Entity is the base model of TeamsAppInstallation + Entity + // TeamsApp undocumented + TeamsApp *TeamsApp `json:"teamsApp,omitempty"` + // TeamsAppDefinition undocumented + TeamsAppDefinition *TeamsAppDefinition `json:"teamsAppDefinition,omitempty"` +} + +// TeamsAsyncOperation undocumented +type TeamsAsyncOperation struct { + // Entity is the base model of TeamsAsyncOperation + Entity + // OperationType undocumented + OperationType *TeamsAsyncOperationType `json:"operationType,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // Status undocumented + Status *TeamsAsyncOperationStatus `json:"status,omitempty"` + // LastActionDateTime undocumented + LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"` + // AttemptsCount undocumented + AttemptsCount *int `json:"attemptsCount,omitempty"` + // TargetResourceID undocumented + TargetResourceID *string `json:"targetResourceId,omitempty"` + // TargetResourceLocation undocumented + TargetResourceLocation *string `json:"targetResourceLocation,omitempty"` + // Error undocumented + Error *OperationError `json:"error,omitempty"` +} + +// TeamsCatalogApp undocumented +type TeamsCatalogApp struct { + // Entity is the base model of TeamsCatalogApp + Entity + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // DistributionMethod undocumented + DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"` +} + +// TeamsDeviceUsageDistributionUserCounts undocumented +type TeamsDeviceUsageDistributionUserCounts struct { + // Entity is the base model of TeamsDeviceUsageDistributionUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IOS undocumented + IOS *int `json:"ios,omitempty"` + // Mac undocumented + Mac *int `json:"mac,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// TeamsDeviceUsageUserCounts undocumented +type TeamsDeviceUsageUserCounts struct { + // Entity is the base model of TeamsDeviceUsageUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IOS undocumented + IOS *int `json:"ios,omitempty"` + // Mac undocumented + Mac *int `json:"mac,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// TeamsDeviceUsageUserDetail undocumented +type TeamsDeviceUsageUserDetail struct { + // Entity is the base model of TeamsDeviceUsageUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // UsedWeb undocumented + UsedWeb *bool `json:"usedWeb,omitempty"` + // UsedWindowsPhone undocumented + UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"` + // UsediOS undocumented + UsediOS *bool `json:"usediOS,omitempty"` + // UsedMac undocumented + UsedMac *bool `json:"usedMac,omitempty"` + // UsedAndroidPhone undocumented + UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"` + // UsedWindows undocumented + UsedWindows *bool `json:"usedWindows,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// TeamsTab undocumented +type TeamsTab struct { + // Entity is the base model of TeamsTab + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // TeamsAppID undocumented + TeamsAppID *string `json:"teamsAppId,omitempty"` + // SortOrderIndex undocumented + SortOrderIndex *string `json:"sortOrderIndex,omitempty"` + // MessageID undocumented + MessageID *string `json:"messageId,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` + // Configuration undocumented + Configuration *TeamsTabConfiguration `json:"configuration,omitempty"` + // TeamsApp undocumented + TeamsApp *TeamsApp `json:"teamsApp,omitempty"` +} + +// TeamsTabConfiguration undocumented +type TeamsTabConfiguration struct { + // Object is the base model of TeamsTabConfiguration + Object + // EntityID undocumented + EntityID *string `json:"entityId,omitempty"` + // ContentURL undocumented + ContentURL *string `json:"contentUrl,omitempty"` + // RemoveURL undocumented + RemoveURL *string `json:"removeUrl,omitempty"` + // WebsiteURL undocumented + WebsiteURL *string `json:"websiteUrl,omitempty"` +} + +// TeamsTemplate undocumented +type TeamsTemplate struct { + // Entity is the base model of TeamsTemplate + Entity +} + +// TeamsUserActivityCounts undocumented +type TeamsUserActivityCounts struct { + // Entity is the base model of TeamsUserActivityCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // TeamChatMessages undocumented + TeamChatMessages *int `json:"teamChatMessages,omitempty"` + // PrivateChatMessages undocumented + PrivateChatMessages *int `json:"privateChatMessages,omitempty"` + // Calls undocumented + Calls *int `json:"calls,omitempty"` + // Meetings undocumented + Meetings *int `json:"meetings,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// TeamsUserActivityUserCounts undocumented +type TeamsUserActivityUserCounts struct { + // Entity is the base model of TeamsUserActivityUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // TeamChatMessages undocumented + TeamChatMessages *int `json:"teamChatMessages,omitempty"` + // PrivateChatMessages undocumented + PrivateChatMessages *int `json:"privateChatMessages,omitempty"` + // Calls undocumented + Calls *int `json:"calls,omitempty"` + // Meetings undocumented + Meetings *int `json:"meetings,omitempty"` + // OtherActions undocumented + OtherActions *int `json:"otherActions,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// TeamsUserActivityUserDetail undocumented +type TeamsUserActivityUserDetail struct { + // Entity is the base model of TeamsUserActivityUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // DeletedDate undocumented + DeletedDate *Date `json:"deletedDate,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // TeamChatMessageCount undocumented + TeamChatMessageCount *int `json:"teamChatMessageCount,omitempty"` + // PrivateChatMessageCount undocumented + PrivateChatMessageCount *int `json:"privateChatMessageCount,omitempty"` + // CallCount undocumented + CallCount *int `json:"callCount,omitempty"` + // MeetingCount undocumented + MeetingCount *int `json:"meetingCount,omitempty"` + // HasOtherAction undocumented + HasOtherAction *bool `json:"hasOtherAction,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TeamworkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TeamworkModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TenantSetupInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go new file mode 100644 index 00000000..a3f2dc07 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go @@ -0,0 +1,69 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// TermsAndConditions A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune. +type TermsAndConditions struct { + // Entity is the base model of TermsAndConditions + Entity + // CreatedDateTime DateTime the object was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ModifiedDateTime DateTime the object was last modified. + ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` + // LastModifiedDateTime DateTime the object was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // DisplayName Administrator-supplied name for the T&C policy. + DisplayName *string `json:"displayName,omitempty"` + // Description Administrator-supplied description of the T&C policy. + Description *string `json:"description,omitempty"` + // Title Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy. + Title *string `json:"title,omitempty"` + // BodyText Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy. + BodyText *string `json:"bodyText,omitempty"` + // AcceptanceStatement Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy. + AcceptanceStatement *string `json:"acceptanceStatement,omitempty"` + // Version Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy. + Version *int `json:"version,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this Entity instance. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // GroupAssignments undocumented + GroupAssignments []TermsAndConditionsGroupAssignment `json:"groupAssignments,omitempty"` + // Assignments undocumented + Assignments []TermsAndConditionsAssignment `json:"assignments,omitempty"` + // AcceptanceStatuses undocumented + AcceptanceStatuses []TermsAndConditionsAcceptanceStatus `json:"acceptanceStatuses,omitempty"` +} + +// TermsAndConditionsAcceptanceStatus A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal. +type TermsAndConditionsAcceptanceStatus struct { + // Entity is the base model of TermsAndConditionsAcceptanceStatus + Entity + // UserDisplayName Display name of the user whose acceptance the entity represents. + UserDisplayName *string `json:"userDisplayName,omitempty"` + // AcceptedVersion Most recent version number of the T&C accepted by the user. + AcceptedVersion *int `json:"acceptedVersion,omitempty"` + // AcceptedDateTime DateTime when the terms were last accepted by the user. + AcceptedDateTime *time.Time `json:"acceptedDateTime,omitempty"` + // TermsAndConditions undocumented + TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"` +} + +// TermsAndConditionsAssignment A termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. +type TermsAndConditionsAssignment struct { + // Entity is the base model of TermsAndConditionsAssignment + Entity + // Target Assignment target that the T&C policy is assigned to. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// TermsAndConditionsGroupAssignment A termsAndConditionsGroupAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. +type TermsAndConditionsGroupAssignment struct { + // Entity is the base model of TermsAndConditionsGroupAssignment + Entity + // TargetGroupID Unique identifier of a group that the T&C policy is assigned to. + TargetGroupID *string `json:"targetGroupId,omitempty"` + // TermsAndConditions undocumented + TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go new file mode 100644 index 00000000..20fafac2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go @@ -0,0 +1,29 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TextClassificationRequestObject undocumented +type TextClassificationRequestObject struct { + // Entity is the base model of TextClassificationRequestObject + Entity + // Text undocumented + Text *string `json:"text,omitempty"` + // SensitiveTypeIDs undocumented + SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"` +} + +// TextColumn undocumented +type TextColumn struct { + // Object is the base model of TextColumn + Object + // AllowMultipleLines undocumented + AllowMultipleLines *bool `json:"allowMultipleLines,omitempty"` + // AppendChangesToExistingText undocumented + AppendChangesToExistingText *bool `json:"appendChangesToExistingText,omitempty"` + // LinesForEditing undocumented + LinesForEditing *int `json:"linesForEditing,omitempty"` + // MaxLength undocumented + MaxLength *int `json:"maxLength,omitempty"` + // TextType undocumented + TextType *string `json:"textType,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go new file mode 100644 index 00000000..cdcd4d02 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// ThreatAssessmentRequestObject undocumented +type ThreatAssessmentRequestObject struct { + // Entity is the base model of ThreatAssessmentRequestObject + Entity + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ContentType undocumented + ContentType *ThreatAssessmentContentType `json:"contentType,omitempty"` + // ExpectedAssessment undocumented + ExpectedAssessment *ThreatExpectedAssessment `json:"expectedAssessment,omitempty"` + // Category undocumented + Category *ThreatCategory `json:"category,omitempty"` + // Status undocumented + Status *ThreatAssessmentStatus `json:"status,omitempty"` + // RequestSource undocumented + RequestSource *ThreatAssessmentRequestSource `json:"requestSource,omitempty"` + // CreatedBy undocumented + CreatedBy *IdentitySet `json:"createdBy,omitempty"` + // Results undocumented + Results []ThreatAssessmentResult `json:"results,omitempty"` +} + +// ThreatAssessmentRequestsCount undocumented +type ThreatAssessmentRequestsCount struct { + // Object is the base model of ThreatAssessmentRequestsCount + Object + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // PivotValue undocumented + PivotValue *string `json:"pivotValue,omitempty"` + // Count undocumented + Count *int `json:"count,omitempty"` +} + +// ThreatAssessmentResult undocumented +type ThreatAssessmentResult struct { + // Entity is the base model of ThreatAssessmentResult + Entity + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ResultType undocumented + ResultType *ThreatAssessmentResultType `json:"resultType,omitempty"` + // Message undocumented + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go new file mode 100644 index 00000000..362a62ac --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go @@ -0,0 +1,33 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Thumbnail undocumented +type Thumbnail struct { + // Object is the base model of Thumbnail + Object + // Content undocumented + Content *Stream `json:"content,omitempty"` + // Height undocumented + Height *int `json:"height,omitempty"` + // SourceItemID undocumented + SourceItemID *string `json:"sourceItemId,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // Width undocumented + Width *int `json:"width,omitempty"` +} + +// ThumbnailSet undocumented +type ThumbnailSet struct { + // Entity is the base model of ThumbnailSet + Entity + // Large undocumented + Large *Thumbnail `json:"large,omitempty"` + // Medium undocumented + Medium *Thumbnail `json:"medium,omitempty"` + // Small undocumented + Small *Thumbnail `json:"small,omitempty"` + // Source undocumented + Source *Thumbnail `json:"source,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go new file mode 100644 index 00000000..51f58588 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go @@ -0,0 +1,127 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// TiIndicator undocumented +type TiIndicator struct { + // Entity is the base model of TiIndicator + Entity + // Action undocumented + Action *TiAction `json:"action,omitempty"` + // ActivityGroupNames undocumented + ActivityGroupNames []string `json:"activityGroupNames,omitempty"` + // AdditionalInformation undocumented + AdditionalInformation *string `json:"additionalInformation,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // Confidence undocumented + Confidence *int `json:"confidence,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DiamondModel undocumented + DiamondModel *DiamondModel `json:"diamondModel,omitempty"` + // DomainName undocumented + DomainName *string `json:"domainName,omitempty"` + // EmailEncoding undocumented + EmailEncoding *string `json:"emailEncoding,omitempty"` + // EmailLanguage undocumented + EmailLanguage *string `json:"emailLanguage,omitempty"` + // EmailRecipient undocumented + EmailRecipient *string `json:"emailRecipient,omitempty"` + // EmailSenderAddress undocumented + EmailSenderAddress *string `json:"emailSenderAddress,omitempty"` + // EmailSenderName undocumented + EmailSenderName *string `json:"emailSenderName,omitempty"` + // EmailSourceDomain undocumented + EmailSourceDomain *string `json:"emailSourceDomain,omitempty"` + // EmailSourceIPAddress undocumented + EmailSourceIPAddress *string `json:"emailSourceIpAddress,omitempty"` + // EmailSubject undocumented + EmailSubject *string `json:"emailSubject,omitempty"` + // EmailXMailer undocumented + EmailXMailer *string `json:"emailXMailer,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // ExternalID undocumented + ExternalID *string `json:"externalId,omitempty"` + // FileCompileDateTime undocumented + FileCompileDateTime *time.Time `json:"fileCompileDateTime,omitempty"` + // FileCreatedDateTime undocumented + FileCreatedDateTime *time.Time `json:"fileCreatedDateTime,omitempty"` + // FileHashType undocumented + FileHashType *FileHashType `json:"fileHashType,omitempty"` + // FileHashValue undocumented + FileHashValue *string `json:"fileHashValue,omitempty"` + // FileMutexName undocumented + FileMutexName *string `json:"fileMutexName,omitempty"` + // FileName undocumented + FileName *string `json:"fileName,omitempty"` + // FilePacker undocumented + FilePacker *string `json:"filePacker,omitempty"` + // FilePath undocumented + FilePath *string `json:"filePath,omitempty"` + // FileSize undocumented + FileSize *int `json:"fileSize,omitempty"` + // FileType undocumented + FileType *string `json:"fileType,omitempty"` + // IngestedDateTime undocumented + IngestedDateTime *time.Time `json:"ingestedDateTime,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` + // KillChain undocumented + KillChain []string `json:"killChain,omitempty"` + // KnownFalsePositives undocumented + KnownFalsePositives *string `json:"knownFalsePositives,omitempty"` + // LastReportedDateTime undocumented + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // MalwareFamilyNames undocumented + MalwareFamilyNames []string `json:"malwareFamilyNames,omitempty"` + // NetworkCIDRBlock undocumented + NetworkCIDRBlock *string `json:"networkCidrBlock,omitempty"` + // NetworkDestinationAsn undocumented + NetworkDestinationAsn *int `json:"networkDestinationAsn,omitempty"` + // NetworkDestinationCIDRBlock undocumented + NetworkDestinationCIDRBlock *string `json:"networkDestinationCidrBlock,omitempty"` + // NetworkDestinationIPv4 undocumented + NetworkDestinationIPv4 *string `json:"networkDestinationIPv4,omitempty"` + // NetworkDestinationIPv6 undocumented + NetworkDestinationIPv6 *string `json:"networkDestinationIPv6,omitempty"` + // NetworkDestinationPort undocumented + NetworkDestinationPort *int `json:"networkDestinationPort,omitempty"` + // NetworkIPv4 undocumented + NetworkIPv4 *string `json:"networkIPv4,omitempty"` + // NetworkIPv6 undocumented + NetworkIPv6 *string `json:"networkIPv6,omitempty"` + // NetworkPort undocumented + NetworkPort *int `json:"networkPort,omitempty"` + // NetworkProtocol undocumented + NetworkProtocol *int `json:"networkProtocol,omitempty"` + // NetworkSourceAsn undocumented + NetworkSourceAsn *int `json:"networkSourceAsn,omitempty"` + // NetworkSourceCIDRBlock undocumented + NetworkSourceCIDRBlock *string `json:"networkSourceCidrBlock,omitempty"` + // NetworkSourceIPv4 undocumented + NetworkSourceIPv4 *string `json:"networkSourceIPv4,omitempty"` + // NetworkSourceIPv6 undocumented + NetworkSourceIPv6 *string `json:"networkSourceIPv6,omitempty"` + // NetworkSourcePort undocumented + NetworkSourcePort *int `json:"networkSourcePort,omitempty"` + // PassiveOnly undocumented + PassiveOnly *bool `json:"passiveOnly,omitempty"` + // Severity undocumented + Severity *int `json:"severity,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // TargetProduct undocumented + TargetProduct *string `json:"targetProduct,omitempty"` + // ThreatType undocumented + ThreatType *string `json:"threatType,omitempty"` + // TlpLevel undocumented + TlpLevel *TlpLevel `json:"tlpLevel,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // UserAgent undocumented + UserAgent *string `json:"userAgent,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go new file mode 100644 index 00000000..c7c7baa5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go @@ -0,0 +1,87 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// TimeConstraint undocumented +type TimeConstraint struct { + // Object is the base model of TimeConstraint + Object + // ActivityDomain undocumented + ActivityDomain *ActivityDomain `json:"activityDomain,omitempty"` + // TimeSlots undocumented + TimeSlots []TimeSlot `json:"timeSlots,omitempty"` +} + +// TimeOff undocumented +type TimeOff struct { + // ChangeTrackedEntity is the base model of TimeOff + ChangeTrackedEntity + // SharedTimeOff undocumented + SharedTimeOff *TimeOffItem `json:"sharedTimeOff,omitempty"` + // DraftTimeOff undocumented + DraftTimeOff *TimeOffItem `json:"draftTimeOff,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` +} + +// TimeOffItem undocumented +type TimeOffItem struct { + // ScheduleEntity is the base model of TimeOffItem + ScheduleEntity + // TimeOffReasonID undocumented + TimeOffReasonID *string `json:"timeOffReasonId,omitempty"` +} + +// TimeOffReason undocumented +type TimeOffReason struct { + // ChangeTrackedEntity is the base model of TimeOffReason + ChangeTrackedEntity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IconType undocumented + IconType *TimeOffReasonIconType `json:"iconType,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` +} + +// TimeOffRequestObject undocumented +type TimeOffRequestObject struct { + // ScheduleChangeRequestObject is the base model of TimeOffRequestObject + ScheduleChangeRequestObject + // StartDateTime undocumented + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // EndDateTime undocumented + EndDateTime *time.Time `json:"endDateTime,omitempty"` + // TimeOffReasonID undocumented + TimeOffReasonID *string `json:"timeOffReasonId,omitempty"` +} + +// TimeSlot undocumented +type TimeSlot struct { + // Object is the base model of TimeSlot + Object + // Start undocumented + Start *DateTimeTimeZone `json:"start,omitempty"` + // End undocumented + End *DateTimeTimeZone `json:"end,omitempty"` +} + +// TimeZoneBase undocumented +type TimeZoneBase struct { + // Object is the base model of TimeZoneBase + Object + // Name undocumented + Name *string `json:"name,omitempty"` +} + +// TimeZoneInformation undocumented +type TimeZoneInformation struct { + // Object is the base model of TimeZoneInformation + Object + // Alias undocumented + Alias *string `json:"alias,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TokenMeetingInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ToneInfoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TrendingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TrendingModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go new file mode 100644 index 00000000..82534669 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// TrustFramework undocumented +type TrustFramework struct { + // Entity is the base model of TrustFramework + Entity + // Policies undocumented + Policies []TrustFrameworkPolicy `json:"policies,omitempty"` + // KeySets undocumented + KeySets []TrustFrameworkKeySet `json:"keySets,omitempty"` +} + +// TrustFrameworkKey undocumented +type TrustFrameworkKey struct { + // Object is the base model of TrustFrameworkKey + Object + // K undocumented + K *string `json:"k,omitempty"` + // X5c undocumented + X5c []string `json:"x5c,omitempty"` + // X5t undocumented + X5t *string `json:"x5t,omitempty"` + // Kty undocumented + Kty *string `json:"kty,omitempty"` + // Use undocumented + Use *string `json:"use,omitempty"` + // Exp undocumented + Exp *int `json:"exp,omitempty"` + // Nbf undocumented + Nbf *int `json:"nbf,omitempty"` + // Kid undocumented + Kid *string `json:"kid,omitempty"` + // E undocumented + E *string `json:"e,omitempty"` + // N undocumented + N *string `json:"n,omitempty"` + // D undocumented + D *string `json:"d,omitempty"` + // P undocumented + P *string `json:"p,omitempty"` + // Q undocumented + Q *string `json:"q,omitempty"` + // Dp undocumented + Dp *string `json:"dp,omitempty"` + // Dq undocumented + Dq *string `json:"dq,omitempty"` + // Qi undocumented + Qi *string `json:"qi,omitempty"` +} + +// TrustFrameworkKeySet undocumented +type TrustFrameworkKeySet struct { + // Entity is the base model of TrustFrameworkKeySet + Entity + // Keys undocumented + Keys []TrustFrameworkKey `json:"keys,omitempty"` +} + +// TrustFrameworkPolicy undocumented +type TrustFrameworkPolicy struct { + // Entity is the base model of TrustFrameworkPolicy + Entity +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TypedEmailAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TypedEmailAddressModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/URLAssessmentRequestObjectModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnaryManagementConditionExpressionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go new file mode 100644 index 00000000..99c70171 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go @@ -0,0 +1,51 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UnifiedRoleAssignment undocumented +type UnifiedRoleAssignment struct { + // Entity is the base model of UnifiedRoleAssignment + Entity + // PrincipalID undocumented + PrincipalID *string `json:"principalId,omitempty"` + // ResourceScope undocumented + ResourceScope *string `json:"resourceScope,omitempty"` + // RoleDefinitionID undocumented + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + // Principal undocumented + Principal *DirectoryObject `json:"principal,omitempty"` + // RoleDefinition undocumented + RoleDefinition *UnifiedRoleDefinition `json:"roleDefinition,omitempty"` +} + +// UnifiedRoleDefinition undocumented +type UnifiedRoleDefinition struct { + // Entity is the base model of UnifiedRoleDefinition + Entity + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IsBuiltIn undocumented + IsBuiltIn *bool `json:"isBuiltIn,omitempty"` + // IsEnabled undocumented + IsEnabled *bool `json:"isEnabled,omitempty"` + // ResourceScopes undocumented + ResourceScopes []string `json:"resourceScopes,omitempty"` + // RolePermissions undocumented + RolePermissions []UnifiedRolePermission `json:"rolePermissions,omitempty"` + // TemplateID undocumented + TemplateID *string `json:"templateId,omitempty"` + // Version undocumented + Version *string `json:"version,omitempty"` +} + +// UnifiedRolePermission undocumented +type UnifiedRolePermission struct { + // Object is the base model of UnifiedRolePermission + Object + // AllowedResourceActions undocumented + AllowedResourceActions []string `json:"allowedResourceActions,omitempty"` + // Condition undocumented + Condition *string `json:"condition,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnmuteParticipantOperationModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go new file mode 100644 index 00000000..57ac1817 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go @@ -0,0 +1,23 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UnsupportedDeviceConfiguration UnsupportedDeviceConfiguration is used when an entity cannot be mapped to another model-compliant subtype of deviceConfiguration. +type UnsupportedDeviceConfiguration struct { + // DeviceConfiguration is the base model of UnsupportedDeviceConfiguration + DeviceConfiguration + // OriginalEntityTypeName The type of entity that would be returned otherwise. + OriginalEntityTypeName *string `json:"originalEntityTypeName,omitempty"` + // Details Details describing why the entity is unsupported. This collection can contain a maximum of 1000 elements. + Details []UnsupportedDeviceConfigurationDetail `json:"details,omitempty"` +} + +// UnsupportedDeviceConfigurationDetail undocumented +type UnsupportedDeviceConfigurationDetail struct { + // Object is the base model of UnsupportedDeviceConfigurationDetail + Object + // Message A message explaining why an entity is unsupported. + Message *string `json:"message,omitempty"` + // PropertyName If message is related to a specific property in the original entity, then the name of that property. + PropertyName *string `json:"propertyName,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go new file mode 100644 index 00000000..0be000c6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go @@ -0,0 +1,37 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// UpdateRecordingStatusOperation undocumented +type UpdateRecordingStatusOperation struct { + // CommsOperation is the base model of UpdateRecordingStatusOperation + CommsOperation +} + +// UpdateWindow undocumented +type UpdateWindow struct { + // Object is the base model of UpdateWindow + Object + // UpdateWindowStartTime undocumented + UpdateWindowStartTime *TimeOfDay `json:"updateWindowStartTime,omitempty"` + // UpdateWindowEndTime undocumented + UpdateWindowEndTime *TimeOfDay `json:"updateWindowEndTime,omitempty"` +} + +// UpdateWindowsDeviceAccountActionParameter undocumented +type UpdateWindowsDeviceAccountActionParameter struct { + // Object is the base model of UpdateWindowsDeviceAccountActionParameter + Object + // DeviceAccount undocumented + DeviceAccount *WindowsDeviceAccount `json:"deviceAccount,omitempty"` + // PasswordRotationEnabled undocumented + PasswordRotationEnabled *bool `json:"passwordRotationEnabled,omitempty"` + // CalendarSyncEnabled undocumented + CalendarSyncEnabled *bool `json:"calendarSyncEnabled,omitempty"` + // DeviceAccountEmail undocumented + DeviceAccountEmail *string `json:"deviceAccountEmail,omitempty"` + // ExchangeServer undocumented + ExchangeServer *string `json:"exchangeServer,omitempty"` + // SessionInitiationProtocalAddress undocumented + SessionInitiationProtocalAddress *string `json:"sessionInitiationProtocalAddress,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UploadSessionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UploadSessionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UsageDetailsModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UsedInsightModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go new file mode 100644 index 00000000..fd74221d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go @@ -0,0 +1,698 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "encoding/json" + "time" +) + +// User Represents an Azure Active Directory user object. +type User struct { + // DirectoryObject is the base model of User + DirectoryObject + // SignInActivity undocumented + SignInActivity *SignInActivity `json:"signInActivity,omitempty"` + // AccountEnabled undocumented + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AgeGroup undocumented + AgeGroup *string `json:"ageGroup,omitempty"` + // AssignedLicenses undocumented + AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"` + // AssignedPlans undocumented + AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"` + // BusinessPhones undocumented + BusinessPhones []string `json:"businessPhones,omitempty"` + // City undocumented + City *string `json:"city,omitempty"` + // CompanyName undocumented + CompanyName *string `json:"companyName,omitempty"` + // ConsentProvidedForMinor undocumented + ConsentProvidedForMinor *string `json:"consentProvidedForMinor,omitempty"` + // Country undocumented + Country *string `json:"country,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // CreationType undocumented + CreationType *string `json:"creationType,omitempty"` + // Department undocumented + Department *string `json:"department,omitempty"` + // DeviceKeys undocumented + DeviceKeys []DeviceKey `json:"deviceKeys,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // EmployeeID undocumented + EmployeeID *string `json:"employeeId,omitempty"` + // FaxNumber undocumented + FaxNumber *string `json:"faxNumber,omitempty"` + // GivenName undocumented + GivenName *string `json:"givenName,omitempty"` + // Identities undocumented + Identities []ObjectIdentity `json:"identities,omitempty"` + // ImAddresses undocumented + ImAddresses []string `json:"imAddresses,omitempty"` + // IsResourceAccount undocumented + IsResourceAccount *bool `json:"isResourceAccount,omitempty"` + // JobTitle undocumented + JobTitle *string `json:"jobTitle,omitempty"` + // LastPasswordChangeDateTime undocumented + LastPasswordChangeDateTime *time.Time `json:"lastPasswordChangeDateTime,omitempty"` + // LegalAgeGroupClassification undocumented + LegalAgeGroupClassification *string `json:"legalAgeGroupClassification,omitempty"` + // LicenseAssignmentStates undocumented + LicenseAssignmentStates []LicenseAssignmentState `json:"licenseAssignmentStates,omitempty"` + // Mail undocumented + Mail *string `json:"mail,omitempty"` + // MailNickname undocumented + MailNickname *string `json:"mailNickname,omitempty"` + // MobilePhone undocumented + MobilePhone *string `json:"mobilePhone,omitempty"` + // OnPremisesDistinguishedName undocumented + OnPremisesDistinguishedName *string `json:"onPremisesDistinguishedName,omitempty"` + // OnPremisesExtensionAttributes undocumented + OnPremisesExtensionAttributes *OnPremisesExtensionAttributes `json:"onPremisesExtensionAttributes,omitempty"` + // OnPremisesImmutableID undocumented + OnPremisesImmutableID *string `json:"onPremisesImmutableId,omitempty"` + // OnPremisesLastSyncDateTime undocumented + OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"` + // OnPremisesProvisioningErrors undocumented + OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"` + // OnPremisesSecurityIdentifier undocumented + OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"` + // OnPremisesSyncEnabled undocumented + OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"` + // OnPremisesDomainName undocumented + OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"` + // OnPremisesSamAccountName undocumented + OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"` + // OnPremisesUserPrincipalName undocumented + OnPremisesUserPrincipalName *string `json:"onPremisesUserPrincipalName,omitempty"` + // OtherMails undocumented + OtherMails []string `json:"otherMails,omitempty"` + // PasswordPolicies undocumented + PasswordPolicies *string `json:"passwordPolicies,omitempty"` + // PasswordProfile undocumented + PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"` + // OfficeLocation undocumented + OfficeLocation *string `json:"officeLocation,omitempty"` + // PostalCode undocumented + PostalCode *string `json:"postalCode,omitempty"` + // PreferredDataLocation undocumented + PreferredDataLocation *string `json:"preferredDataLocation,omitempty"` + // PreferredLanguage undocumented + PreferredLanguage *string `json:"preferredLanguage,omitempty"` + // ProvisionedPlans undocumented + ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"` + // ProxyAddresses undocumented + ProxyAddresses []string `json:"proxyAddresses,omitempty"` + // RefreshTokensValidFromDateTime undocumented + RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"` + // ShowInAddressList undocumented + ShowInAddressList *bool `json:"showInAddressList,omitempty"` + // SignInSessionsValidFromDateTime undocumented + SignInSessionsValidFromDateTime *time.Time `json:"signInSessionsValidFromDateTime,omitempty"` + // State undocumented + State *string `json:"state,omitempty"` + // StreetAddress undocumented + StreetAddress *string `json:"streetAddress,omitempty"` + // Surname undocumented + Surname *string `json:"surname,omitempty"` + // UsageLocation undocumented + UsageLocation *string `json:"usageLocation,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // ExternalUserState undocumented + ExternalUserState *string `json:"externalUserState,omitempty"` + // ExternalUserStateChangeDateTime undocumented + ExternalUserStateChangeDateTime *string `json:"externalUserStateChangeDateTime,omitempty"` + // UserType undocumented + UserType *string `json:"userType,omitempty"` + // MailboxSettings undocumented + MailboxSettings *MailboxSettings `json:"mailboxSettings,omitempty"` + // IdentityUserRisk undocumented + IdentityUserRisk *IdentityUserRisk `json:"identityUserRisk,omitempty"` + // DeviceEnrollmentLimit The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000. + DeviceEnrollmentLimit *int `json:"deviceEnrollmentLimit,omitempty"` + // AboutMe undocumented + AboutMe *string `json:"aboutMe,omitempty"` + // Birthday undocumented + Birthday *time.Time `json:"birthday,omitempty"` + // HireDate undocumented + HireDate *time.Time `json:"hireDate,omitempty"` + // Interests undocumented + Interests []string `json:"interests,omitempty"` + // MySite undocumented + MySite *string `json:"mySite,omitempty"` + // PastProjects undocumented + PastProjects []string `json:"pastProjects,omitempty"` + // PreferredName undocumented + PreferredName *string `json:"preferredName,omitempty"` + // Responsibilities undocumented + Responsibilities []string `json:"responsibilities,omitempty"` + // Schools undocumented + Schools []string `json:"schools,omitempty"` + // Skills undocumented + Skills []string `json:"skills,omitempty"` + // Analytics undocumented + Analytics *UserAnalytics `json:"analytics,omitempty"` + // InformationProtection undocumented + InformationProtection *InformationProtection `json:"informationProtection,omitempty"` + // AppRoleAssignments undocumented + AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"` + // CreatedObjects undocumented + CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"` + // DirectReports undocumented + DirectReports []DirectoryObject `json:"directReports,omitempty"` + // LicenseDetails undocumented + LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"` + // Manager undocumented + Manager *DirectoryObject `json:"manager,omitempty"` + // MemberOf undocumented + MemberOf []DirectoryObject `json:"memberOf,omitempty"` + // OwnedDevices undocumented + OwnedDevices []DirectoryObject `json:"ownedDevices,omitempty"` + // OwnedObjects undocumented + OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"` + // RegisteredDevices undocumented + RegisteredDevices []DirectoryObject `json:"registeredDevices,omitempty"` + // ScopedRoleMemberOf undocumented + ScopedRoleMemberOf []ScopedRoleMembership `json:"scopedRoleMemberOf,omitempty"` + // TransitiveMemberOf undocumented + TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"` + // Outlook undocumented + Outlook *OutlookUser `json:"outlook,omitempty"` + // Messages undocumented + Messages []Message `json:"messages,omitempty"` + // JoinedGroups undocumented + JoinedGroups []Group `json:"joinedGroups,omitempty"` + // MailFolders undocumented + MailFolders []MailFolder `json:"mailFolders,omitempty"` + // Calendar undocumented + Calendar *Calendar `json:"calendar,omitempty"` + // Calendars undocumented + Calendars []Calendar `json:"calendars,omitempty"` + // CalendarGroups undocumented + CalendarGroups []CalendarGroup `json:"calendarGroups,omitempty"` + // CalendarView undocumented + CalendarView []Event `json:"calendarView,omitempty"` + // Events undocumented + Events []Event `json:"events,omitempty"` + // People undocumented + People []Person `json:"people,omitempty"` + // Contacts undocumented + Contacts []Contact `json:"contacts,omitempty"` + // ContactFolders undocumented + ContactFolders []ContactFolder `json:"contactFolders,omitempty"` + // InferenceClassification undocumented + InferenceClassification *InferenceClassification `json:"inferenceClassification,omitempty"` + // Photo undocumented + Photo *ProfilePhoto `json:"photo,omitempty"` + // Photos undocumented + Photos []ProfilePhoto `json:"photos,omitempty"` + // Drive undocumented + Drive *Drive `json:"drive,omitempty"` + // Drives undocumented + Drives []Drive `json:"drives,omitempty"` + // FollowedSites undocumented + FollowedSites []Site `json:"followedSites,omitempty"` + // Extensions undocumented + Extensions []Extension `json:"extensions,omitempty"` + // AgreementAcceptances undocumented + AgreementAcceptances []AgreementAcceptance `json:"agreementAcceptances,omitempty"` + // DeviceEnrollmentConfigurations undocumented + DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"` + // ManagedDevices undocumented + ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"` + // ManagedAppRegistrations undocumented + ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"` + // WindowsInformationProtectionDeviceRegistrations undocumented + WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"` + // DeviceManagementTroubleshootingEvents undocumented + DeviceManagementTroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"deviceManagementTroubleshootingEvents,omitempty"` + // MobileAppIntentAndStates undocumented + MobileAppIntentAndStates []MobileAppIntentAndState `json:"mobileAppIntentAndStates,omitempty"` + // MobileAppTroubleshootingEvents undocumented + MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"` + // Notifications undocumented + Notifications []Notification `json:"notifications,omitempty"` + // Planner undocumented + Planner *PlannerUser `json:"planner,omitempty"` + // Insights undocumented + Insights *OfficeGraphInsights `json:"insights,omitempty"` + // Settings undocumented + Settings *UserSettings `json:"settings,omitempty"` + // Onenote undocumented + Onenote *Onenote `json:"onenote,omitempty"` + // Profile undocumented + Profile *Profile `json:"profile,omitempty"` + // Activities undocumented + Activities []UserActivity `json:"activities,omitempty"` + // Devices undocumented + Devices []Device `json:"devices,omitempty"` + // OnlineMeetings undocumented + OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"` + // Presence undocumented + Presence *Presence `json:"presence,omitempty"` + // Chats undocumented + Chats []Chat `json:"chats,omitempty"` + // JoinedTeams undocumented + JoinedTeams []Team `json:"joinedTeams,omitempty"` + // Teamwork undocumented + Teamwork *UserTeamwork `json:"teamwork,omitempty"` +} + +// UserAccount undocumented +type UserAccount struct { + // Object is the base model of UserAccount + Object + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastSeenDateTime undocumented + LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Service undocumented + Service *string `json:"service,omitempty"` + // SigninName undocumented + SigninName *string `json:"signinName,omitempty"` + // Status undocumented + Status *AccountStatus `json:"status,omitempty"` +} + +// UserAccountInformation undocumented +type UserAccountInformation struct { + // ItemFacet is the base model of UserAccountInformation + ItemFacet + // AgeGroup undocumented + AgeGroup *string `json:"ageGroup,omitempty"` + // CountryCode undocumented + CountryCode *string `json:"countryCode,omitempty"` + // PreferredLanguageTag undocumented + PreferredLanguageTag *LocaleInfo `json:"preferredLanguageTag,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// UserActivationCounts undocumented +type UserActivationCounts struct { + // Object is the base model of UserActivationCounts + Object + // ProductType undocumented + ProductType *string `json:"productType,omitempty"` + // LastActivatedDate undocumented + LastActivatedDate *Date `json:"lastActivatedDate,omitempty"` + // Windows undocumented + Windows *int `json:"windows,omitempty"` + // Mac undocumented + Mac *int `json:"mac,omitempty"` + // Windows10Mobile undocumented + Windows10Mobile *int `json:"windows10Mobile,omitempty"` + // IOS undocumented + IOS *int `json:"ios,omitempty"` + // Android undocumented + Android *int `json:"android,omitempty"` + // ActivatedOnSharedComputer undocumented + ActivatedOnSharedComputer *bool `json:"activatedOnSharedComputer,omitempty"` +} + +// UserActivity undocumented +type UserActivity struct { + // Entity is the base model of UserActivity + Entity + // VisualElements undocumented + VisualElements *VisualInfo `json:"visualElements,omitempty"` + // ActivitySourceHost undocumented + ActivitySourceHost *string `json:"activitySourceHost,omitempty"` + // ActivationURL undocumented + ActivationURL *string `json:"activationUrl,omitempty"` + // AppActivityID undocumented + AppActivityID *string `json:"appActivityId,omitempty"` + // AppDisplayName undocumented + AppDisplayName *string `json:"appDisplayName,omitempty"` + // ContentURL undocumented + ContentURL *string `json:"contentUrl,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // ExpirationDateTime undocumented + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // FallbackURL undocumented + FallbackURL *string `json:"fallbackUrl,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // UserTimezone undocumented + UserTimezone *string `json:"userTimezone,omitempty"` + // ContentInfo undocumented + ContentInfo json.RawMessage `json:"contentInfo,omitempty"` + // Status undocumented + Status *Status `json:"status,omitempty"` + // HistoryItems undocumented + HistoryItems []ActivityHistoryItem `json:"historyItems,omitempty"` +} + +// UserAnalytics undocumented +type UserAnalytics struct { + // Entity is the base model of UserAnalytics + Entity + // Settings undocumented + Settings *Settings `json:"settings,omitempty"` + // ActivityStatistics undocumented + ActivityStatistics []ActivityStatistics `json:"activityStatistics,omitempty"` +} + +// UserAppInstallStatus Contains properties for the installation status for a user. +type UserAppInstallStatus struct { + // Entity is the base model of UserAppInstallStatus + Entity + // UserName User name. + UserName *string `json:"userName,omitempty"` + // UserPrincipalName User Principal Name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // InstalledDeviceCount Installed Device Count. + InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"` + // FailedDeviceCount Failed Device Count. + FailedDeviceCount *int `json:"failedDeviceCount,omitempty"` + // NotInstalledDeviceCount Not installed device count. + NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"` + // App undocumented + App *MobileApp `json:"app,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"` +} + +// UserConfiguration undocumented +type UserConfiguration struct { + // Entity is the base model of UserConfiguration + Entity + // BinaryData undocumented + BinaryData *Binary `json:"binaryData,omitempty"` +} + +// UserCredentialUsageDetails undocumented +type UserCredentialUsageDetails struct { + // Entity is the base model of UserCredentialUsageDetails + Entity + // Feature undocumented + Feature *FeatureType `json:"feature,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // UserDisplayName undocumented + UserDisplayName *string `json:"userDisplayName,omitempty"` + // IsSuccess undocumented + IsSuccess *bool `json:"isSuccess,omitempty"` + // AuthMethod undocumented + AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"` + // FailureReason undocumented + FailureReason *string `json:"failureReason,omitempty"` + // EventDateTime undocumented + EventDateTime *time.Time `json:"eventDateTime,omitempty"` +} + +// UserExperienceAnalyticsBaseline The user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores. +type UserExperienceAnalyticsBaseline struct { + // Entity is the base model of UserExperienceAnalyticsBaseline + Entity + // DisplayName The name of the user experience analytics baseline. + DisplayName *string `json:"displayName,omitempty"` + // IsBuiltIn Signifies if the current baseline is the commercial median baseline or a custom baseline. + IsBuiltIn *bool `json:"isBuiltIn,omitempty"` + // CreatedDateTime The date the custom baseline was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DeviceBootPerformanceMetrics undocumented + DeviceBootPerformanceMetrics *UserExperienceAnalyticsCategory `json:"deviceBootPerformanceMetrics,omitempty"` + // BestPracticesMetrics undocumented + BestPracticesMetrics *UserExperienceAnalyticsCategory `json:"bestPracticesMetrics,omitempty"` +} + +// UserExperienceAnalyticsCategory The user experience analytics category entity contains the scores and insights for the various metrics of a category. +type UserExperienceAnalyticsCategory struct { + // Entity is the base model of UserExperienceAnalyticsCategory + Entity + // Insights The insights for the user experience analytics category. + Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"` + // MetricValues undocumented + MetricValues []UserExperienceAnalyticsMetric `json:"metricValues,omitempty"` +} + +// UserExperienceAnalyticsDevicePerformance The user experience analytics device performance entity contains device boot performance details. +type UserExperienceAnalyticsDevicePerformance struct { + // Entity is the base model of UserExperienceAnalyticsDevicePerformance + Entity + // DeviceName The user experience analytics device name. + DeviceName *string `json:"deviceName,omitempty"` + // Model The user experience analytics device model. + Model *string `json:"model,omitempty"` + // Manufacturer The user experience analytics device manufacturer. + Manufacturer *string `json:"manufacturer,omitempty"` + // DiskType The user experience analytics device disk type. + DiskType *DiskType `json:"diskType,omitempty"` + // OperatingSystemVersion The user experience analytics device Operating System version. + OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"` + // BootScore The user experience analytics device boot score. + BootScore *int `json:"bootScore,omitempty"` + // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds. + CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"` + // GroupPolicyBootTimeInMs The user experience analytics device group policy boot time in milliseconds. + GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"` + // HealthStatus The health state of the user experience analytics device. + HealthStatus *UserExperienceAnalyticsHealthState `json:"healthStatus,omitempty"` + // LoginScore The user experience analytics device login score. + LoginScore *int `json:"loginScore,omitempty"` + // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds. + CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"` + // GroupPolicyLoginTimeInMs The user experience analytics device group policy login time in milliseconds. + GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"` + // DeviceCount User experience analytics summarized device count. + DeviceCount *int `json:"deviceCount,omitempty"` +} + +// UserExperienceAnalyticsDeviceStartupHistory The user experience analytics device startup history entity contains device boot performance history details. +type UserExperienceAnalyticsDeviceStartupHistory struct { + // Entity is the base model of UserExperienceAnalyticsDeviceStartupHistory + Entity + // DeviceID The user experience analytics device id. + DeviceID *string `json:"deviceId,omitempty"` + // StartTime The user experience analytics device boot start time. + StartTime *time.Time `json:"startTime,omitempty"` + // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds. + CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"` + // GroupPolicyBootTimeInMs The User experience analytics Device group policy boot time in milliseconds. + GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"` + // FeatureUpdateBootTimeInMs The user experience analytics device feature update time in milliseconds. + FeatureUpdateBootTimeInMs *int `json:"featureUpdateBootTimeInMs,omitempty"` + // TotalBootTimeInMs The user experience analytics device total boot time in milliseconds. + TotalBootTimeInMs *int `json:"totalBootTimeInMs,omitempty"` + // GroupPolicyLoginTimeInMs The User experience analytics Device group policy login time in milliseconds. + GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"` + // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds. + CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"` + // TotalLoginTimeInMs The user experience analytics device total login time in milliseconds. + TotalLoginTimeInMs *int `json:"totalLoginTimeInMs,omitempty"` + // IsFirstLogin The user experience analytics device first login. + IsFirstLogin *bool `json:"isFirstLogin,omitempty"` +} + +// UserExperienceAnalyticsInsight undocumented +type UserExperienceAnalyticsInsight struct { + // Object is the base model of UserExperienceAnalyticsInsight + Object + // UserExperienceAnalyticsMetricID The unique identifier of the user experience analytics insight. + UserExperienceAnalyticsMetricID *string `json:"userExperienceAnalyticsMetricId,omitempty"` + // InsightID The unique identifier of the user experience analytics insight. + InsightID *string `json:"insightId,omitempty"` + // Values The value of the user experience analytics insight. + Values []UserExperienceAnalyticsInsightValue `json:"values,omitempty"` + // Severity The value of the user experience analytics insight. + Severity *UserExperienceAnalyticsInsightSeverity `json:"severity,omitempty"` +} + +// UserExperienceAnalyticsInsightValue undocumented +type UserExperienceAnalyticsInsightValue struct { + // Object is the base model of UserExperienceAnalyticsInsightValue + Object +} + +// UserExperienceAnalyticsMetric The user experience analytics metric contains the score and units of a metric of a user experience anlaytics category. +type UserExperienceAnalyticsMetric struct { + // Entity is the base model of UserExperienceAnalyticsMetric + Entity + // Value The value of the user experience analytics metric. + Value *float64 `json:"value,omitempty"` + // Unit The unit of the user experience analytics metric. + Unit *string `json:"unit,omitempty"` +} + +// UserExperienceAnalyticsOverview The user experience analytics overview entity contains the overall score and the scores and insights of every metric of all categories. +type UserExperienceAnalyticsOverview struct { + // Entity is the base model of UserExperienceAnalyticsOverview + Entity + // Insights The user experience analytics insights. + Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"` +} + +// UserExperienceAnalyticsRegressionSummary The user experience analytics Regression Summary. +type UserExperienceAnalyticsRegressionSummary struct { + // Entity is the base model of UserExperienceAnalyticsRegressionSummary + Entity + // ModelRegression undocumented + ModelRegression []UserExperienceAnalyticsMetric `json:"modelRegression,omitempty"` + // ManufacturerRegression undocumented + ManufacturerRegression []UserExperienceAnalyticsMetric `json:"manufacturerRegression,omitempty"` + // OperatingSystemRegression undocumented + OperatingSystemRegression []UserExperienceAnalyticsMetric `json:"operatingSystemRegression,omitempty"` +} + +// UserGovernanceCriteria undocumented +type UserGovernanceCriteria struct { + // GovernanceCriteria is the base model of UserGovernanceCriteria + GovernanceCriteria + // UserID undocumented + UserID *string `json:"userId,omitempty"` +} + +// UserIdentity undocumented +type UserIdentity struct { + // Object is the base model of UserIdentity + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // IPAddress undocumented + IPAddress *string `json:"ipAddress,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// UserInstallStateSummary Contains properties for the installation state summary for a user. +type UserInstallStateSummary struct { + // Entity is the base model of UserInstallStateSummary + Entity + // UserName User name. + UserName *string `json:"userName,omitempty"` + // InstalledDeviceCount Installed Device Count. + InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"` + // FailedDeviceCount Failed Device Count. + FailedDeviceCount *int `json:"failedDeviceCount,omitempty"` + // NotInstalledDeviceCount Not installed device count. + NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"` + // DeviceStates undocumented + DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"` +} + +// UserPFXCertificate Entity that encapsulates all information required for a user's PFX certificates. +type UserPFXCertificate struct { + // Entity is the base model of UserPFXCertificate + Entity + // Thumbprint SHA-1 thumbprint of the PFX certificate. + Thumbprint *string `json:"thumbprint,omitempty"` + // IntendedPurpose Certificate's intended purpose from the point-of-view of deployment. + IntendedPurpose *UserPfxIntendedPurpose `json:"intendedPurpose,omitempty"` + // UserPrincipalName User Principal Name of the PFX certificate. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // StartDateTime Certificate's validity start date/time. + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // ExpirationDateTime Certificate's validity expiration date/time. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // ProviderName Crypto provider used to encrypt this blob. + ProviderName *string `json:"providerName,omitempty"` + // KeyName Name of the key (within the provider) used to encrypt the blob. + KeyName *string `json:"keyName,omitempty"` + // PaddingScheme Padding scheme used by the provider during encryption/decryption. + PaddingScheme *UserPfxPaddingScheme `json:"paddingScheme,omitempty"` + // EncryptedPfxBlob Encrypted PFX blob. + EncryptedPfxBlob *Binary `json:"encryptedPfxBlob,omitempty"` + // EncryptedPfxPassword Encrypted PFX password. + EncryptedPfxPassword *string `json:"encryptedPfxPassword,omitempty"` + // CreatedDateTime Date/time when this PFX certificate was imported. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Date/time when this PFX certificate was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` +} + +// UserRegistrationCount undocumented +type UserRegistrationCount struct { + // Object is the base model of UserRegistrationCount + Object + // RegistrationStatus undocumented + RegistrationStatus *RegistrationStatusType `json:"registrationStatus,omitempty"` + // RegistrationCount undocumented + RegistrationCount *int `json:"registrationCount,omitempty"` +} + +// UserSecurityProfile undocumented +type UserSecurityProfile struct { + // Entity is the base model of UserSecurityProfile + Entity + // Accounts undocumented + Accounts []UserAccount `json:"accounts,omitempty"` + // AzureSubscriptionID undocumented + AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"` + // AzureTenantID undocumented + AzureTenantID *string `json:"azureTenantId,omitempty"` + // CreatedDateTime undocumented + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // LastModifiedDateTime undocumented + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // Tags undocumented + Tags []string `json:"tags,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // VendorInformation undocumented + VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"` +} + +// UserSecurityState undocumented +type UserSecurityState struct { + // Object is the base model of UserSecurityState + Object + // AadUserID undocumented + AadUserID *string `json:"aadUserId,omitempty"` + // AccountName undocumented + AccountName *string `json:"accountName,omitempty"` + // DomainName undocumented + DomainName *string `json:"domainName,omitempty"` + // EmailRole undocumented + EmailRole *EmailRole `json:"emailRole,omitempty"` + // IsVPN undocumented + IsVPN *bool `json:"isVpn,omitempty"` + // LogonDateTime undocumented + LogonDateTime *time.Time `json:"logonDateTime,omitempty"` + // LogonID undocumented + LogonID *string `json:"logonId,omitempty"` + // LogonIP undocumented + LogonIP *string `json:"logonIp,omitempty"` + // LogonLocation undocumented + LogonLocation *string `json:"logonLocation,omitempty"` + // LogonType undocumented + LogonType *LogonType `json:"logonType,omitempty"` + // OnPremisesSecurityIdentifier undocumented + OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"` + // RiskScore undocumented + RiskScore *string `json:"riskScore,omitempty"` + // UserAccountType undocumented + UserAccountType *UserAccountSecurityType `json:"userAccountType,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// UserSettings undocumented +type UserSettings struct { + // Entity is the base model of UserSettings + Entity + // ContributionToContentDiscoveryDisabled undocumented + ContributionToContentDiscoveryDisabled *bool `json:"contributionToContentDiscoveryDisabled,omitempty"` + // ContributionToContentDiscoveryAsOrganizationDisabled undocumented + ContributionToContentDiscoveryAsOrganizationDisabled *bool `json:"contributionToContentDiscoveryAsOrganizationDisabled,omitempty"` +} + +// UserTeamwork undocumented +type UserTeamwork struct { + // Entity is the base model of UserTeamwork + Entity + // InstalledApps undocumented + InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go new file mode 100644 index 00000000..668f139f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go @@ -0,0 +1,115 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// VPNConfiguration Base VPN Configuration profile. +type VPNConfiguration struct { + // DeviceConfiguration is the base model of VPNConfiguration + DeviceConfiguration + // AuthenticationMethod Authentication method. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // Role Role when connection type is set to Pulse Secure. + Role *string `json:"role,omitempty"` + // Realm Realm when connection type is set to Pulse Secure. + Realm *string `json:"realm,omitempty"` + // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. + Servers []VPNServer `json:"servers,omitempty"` +} + +// VPNDNSRule undocumented +type VPNDNSRule struct { + // Object is the base model of VPNDNSRule + Object + // Name Name. + Name *string `json:"name,omitempty"` + // Servers Servers. + Servers []string `json:"servers,omitempty"` + // ProxyServerURI Proxy Server Uri. + ProxyServerURI *string `json:"proxyServerUri,omitempty"` + // AutoTrigger Automatically connect to the VPN when the device connects to this domain: Default False. + AutoTrigger *bool `json:"autoTrigger,omitempty"` + // Persistent Keep this rule active even when the VPN is not connected: Default False + Persistent *bool `json:"persistent,omitempty"` +} + +// VPNOnDemandRule undocumented +type VPNOnDemandRule struct { + // Object is the base model of VPNOnDemandRule + Object + // Ssids Network Service Set Identifiers (SSIDs). + Ssids []string `json:"ssids,omitempty"` + // DNSSearchDomains DNS Search Domains. + DNSSearchDomains []string `json:"dnsSearchDomains,omitempty"` + // ProbeURL A URL to probe. If this URL is successfully fetched (returning a 200 HTTP status code) without redirection, this rule matches. + ProbeURL *string `json:"probeUrl,omitempty"` + // Action Action. + Action *VPNOnDemandRuleConnectionAction `json:"action,omitempty"` + // DomainAction Domain Action (Only applicable when Action is evaluate connection). + DomainAction *VPNOnDemandRuleConnectionDomainAction `json:"domainAction,omitempty"` + // Domains Domains (Only applicable when Action is evaluate connection). + Domains []string `json:"domains,omitempty"` + // ProbeRequiredURL Probe Required Url (Only applicable when Action is evaluate connection and DomainAction is connect if needed). + ProbeRequiredURL *string `json:"probeRequiredUrl,omitempty"` +} + +// VPNProxyServer undocumented +type VPNProxyServer struct { + // Object is the base model of VPNProxyServer + Object + // AutomaticConfigurationScriptURL Proxy's automatic configuration script url. + AutomaticConfigurationScriptURL *string `json:"automaticConfigurationScriptUrl,omitempty"` + // Address Address. + Address *string `json:"address,omitempty"` + // Port Port. Valid values 0 to 65535 + Port *int `json:"port,omitempty"` +} + +// VPNRoute undocumented +type VPNRoute struct { + // Object is the base model of VPNRoute + Object + // DestinationPrefix Destination prefix (IPv4/v6 address). + DestinationPrefix *string `json:"destinationPrefix,omitempty"` + // PrefixSize Prefix size. (1-32). Valid values 1 to 32 + PrefixSize *int `json:"prefixSize,omitempty"` +} + +// VPNServer undocumented +type VPNServer struct { + // Object is the base model of VPNServer + Object + // Description Description. + Description *string `json:"description,omitempty"` + // Address Address (IP address, FQDN or URL) + Address *string `json:"address,omitempty"` + // IsDefaultServer Default server. + IsDefaultServer *bool `json:"isDefaultServer,omitempty"` +} + +// VPNTrafficRule undocumented +type VPNTrafficRule struct { + // Object is the base model of VPNTrafficRule + Object + // Name Name. + Name *string `json:"name,omitempty"` + // Protocols Protocols (0-255). Valid values 0 to 255 + Protocols *int `json:"protocols,omitempty"` + // LocalPortRanges Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements. + LocalPortRanges []NumberRange `json:"localPortRanges,omitempty"` + // RemotePortRanges Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements. + RemotePortRanges []NumberRange `json:"remotePortRanges,omitempty"` + // LocalAddressRanges Local address range. This collection can contain a maximum of 500 elements. + LocalAddressRanges []IPv4Range `json:"localAddressRanges,omitempty"` + // RemoteAddressRanges Remote address range. This collection can contain a maximum of 500 elements. + RemoteAddressRanges []IPv4Range `json:"remoteAddressRanges,omitempty"` + // AppID App identifier, if this traffic rule is triggered by an app. + AppID *string `json:"appId,omitempty"` + // AppType App type, if this traffic rule is triggered by an app. + AppType *VPNTrafficRuleAppType `json:"appType,omitempty"` + // RoutingPolicyType When app triggered, indicates whether to enable split tunneling along this route. + RoutingPolicyType *VPNTrafficRuleRoutingPolicyType `json:"routingPolicyType,omitempty"` + // Claims Claims associated with this traffic rule. + Claims *string `json:"claims,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go new file mode 100644 index 00000000..148bac28 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go @@ -0,0 +1,101 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// VPPLicensingType undocumented +type VPPLicensingType struct { + // Object is the base model of VPPLicensingType + Object + // SupportUserLicensing Whether the program supports the user licensing type. + SupportUserLicensing *bool `json:"supportUserLicensing,omitempty"` + // SupportDeviceLicensing Whether the program supports the device licensing type. + SupportDeviceLicensing *bool `json:"supportDeviceLicensing,omitempty"` + // SupportsUserLicensing Whether the program supports the user licensing type. + SupportsUserLicensing *bool `json:"supportsUserLicensing,omitempty"` + // SupportsDeviceLicensing Whether the program supports the device licensing type. + SupportsDeviceLicensing *bool `json:"supportsDeviceLicensing,omitempty"` +} + +// VPPToken You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens. +type VPPToken struct { + // Entity is the base model of VPPToken + Entity + // OrganizationName The organization associated with the Apple Volume Purchase Program Token + OrganizationName *string `json:"organizationName,omitempty"` + // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`. + VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"` + // AppleID The apple Id associated with the given Apple Volume Purchase Program Token. + AppleID *string `json:"appleId,omitempty"` + // ExpirationDateTime The expiration date time of the Apple Volume Purchase Program Token. + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // LastSyncDateTime The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // Token The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program. + Token *string `json:"token,omitempty"` + // LastModifiedDateTime Last modification date time associated with the Apple Volume Purchase Program Token. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // State Current state of the Apple Volume Purchase Program Token. Possible values are: `unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`. + State *VPPTokenState `json:"state,omitempty"` + // TokenActionResults The collection of statuses of the actions performed on the Apple Volume Purchase Program Token. + TokenActionResults []VPPTokenActionResult `json:"tokenActionResults,omitempty"` + // LastSyncStatus Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token. Possible values are: `none`, `inProgress`, `completed`, `failed`. + LastSyncStatus *VPPTokenSyncStatus `json:"lastSyncStatus,omitempty"` + // AutomaticallyUpdateApps Whether or not apps for the VPP token will be automatically updated. + AutomaticallyUpdateApps *bool `json:"automaticallyUpdateApps,omitempty"` + // CountryOrRegion Whether or not apps for the VPP token will be automatically updated. + CountryOrRegion *string `json:"countryOrRegion,omitempty"` + // DataSharingConsentGranted Consent granted for data sharing with the Apple Volume Purchase Program. + DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"` + // DisplayName An admin specified token friendly name. + DisplayName *string `json:"displayName,omitempty"` + // LocationName Token location returned from Apple VPP. + LocationName *string `json:"locationName,omitempty"` + // ClaimTokenManagementFromExternalMDM Admin consent to allow claiming token management from external MDM. + ClaimTokenManagementFromExternalMDM *bool `json:"claimTokenManagementFromExternalMdm,omitempty"` + // RoleScopeTagIDs Role Scope Tags IDs assigned to this entity. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` +} + +// VPPTokenActionResult undocumented +type VPPTokenActionResult struct { + // Object is the base model of VPPTokenActionResult + Object + // ActionName Action name + ActionName *string `json:"actionName,omitempty"` + // ActionState State of the action + ActionState *ActionState `json:"actionState,omitempty"` + // StartDateTime Time the action was initiated + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // LastUpdatedDateTime Time the action state was last updated + LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"` +} + +// VPPTokenLicenseSummary undocumented +type VPPTokenLicenseSummary struct { + // Object is the base model of VPPTokenLicenseSummary + Object + // VPPTokenID Identifier of the VPP token. + VPPTokenID *string `json:"vppTokenId,omitempty"` + // AppleID The Apple Id associated with the given Apple Volume Purchase Program Token. + AppleID *string `json:"appleId,omitempty"` + // OrganizationName The organization associated with the Apple Volume Purchase Program Token. + OrganizationName *string `json:"organizationName,omitempty"` + // AvailableLicenseCount The number of VPP licenses available. + AvailableLicenseCount *int `json:"availableLicenseCount,omitempty"` + // UsedLicenseCount The number of VPP licenses in use. + UsedLicenseCount *int `json:"usedLicenseCount,omitempty"` +} + +// VPPTokenRevokeLicensesActionResult undocumented +type VPPTokenRevokeLicensesActionResult struct { + // VPPTokenActionResult is the base model of VPPTokenRevokeLicensesActionResult + VPPTokenActionResult + // TotalLicensesCount A count of the number of licenses that were attempted to revoke. + TotalLicensesCount *int `json:"totalLicensesCount,omitempty"` + // FailedLicensesCount A count of the number of licenses that failed to revoke. + FailedLicensesCount *int `json:"failedLicensesCount,omitempty"` + // ActionFailureReason The reason for the revoke licenses action failure. + ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VariableManagementConditionExpressionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VendorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VendorModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VerifiedDomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VerifiedDomainModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VersionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VersionActionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VideoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VideoModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go new file mode 100644 index 00000000..26a1f326 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "encoding/json" + +// VisualInfo undocumented +type VisualInfo struct { + // Object is the base model of VisualInfo + Object + // Attribution undocumented + Attribution *ImageInfo `json:"attribution,omitempty"` + // BackgroundColor undocumented + BackgroundColor *string `json:"backgroundColor,omitempty"` + // Description undocumented + Description *string `json:"description,omitempty"` + // DisplayText undocumented + DisplayText *string `json:"displayText,omitempty"` + // Content undocumented + Content json.RawMessage `json:"content,omitempty"` +} + +// VisualProperties undocumented +type VisualProperties struct { + // Object is the base model of VisualProperties + Object + // Title undocumented + Title *string `json:"title,omitempty"` + // Body undocumented + Body *string `json:"body,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/VulnerabilityStateModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go new file mode 100644 index 00000000..3556f029 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go @@ -0,0 +1,55 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WebAccount undocumented +type WebAccount struct { + // ItemFacet is the base model of WebAccount + ItemFacet + // Description undocumented + Description *string `json:"description,omitempty"` + // UserID undocumented + UserID *string `json:"userId,omitempty"` + // Service undocumented + Service *ServiceInformation `json:"service,omitempty"` + // StatusMessage undocumented + StatusMessage *string `json:"statusMessage,omitempty"` + // WebURL undocumented + WebURL *string `json:"webUrl,omitempty"` +} + +// WebApp Contains properties and inherited properties for web apps. +type WebApp struct { + // MobileApp is the base model of WebApp + MobileApp + // AppURL The web app URL. + AppURL *string `json:"appUrl,omitempty"` + // UseManagedBrowser Whether or not to use managed browser. This property is only applicable for Android and IOS. + UseManagedBrowser *bool `json:"useManagedBrowser,omitempty"` +} + +// WebApplication undocumented +type WebApplication struct { + // Object is the base model of WebApplication + Object + // HomePageURL undocumented + HomePageURL *string `json:"homePageUrl,omitempty"` + // RedirectUris undocumented + RedirectUris []string `json:"redirectUris,omitempty"` + // Oauth2AllowImplicitFlow undocumented + Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` + // LogoutURL undocumented + LogoutURL *string `json:"logoutUrl,omitempty"` + // ImplicitGrantSettings undocumented + ImplicitGrantSettings *ImplicitGrantSettings `json:"implicitGrantSettings,omitempty"` +} + +// WebPart undocumented +type WebPart struct { + // Object is the base model of WebPart + Object + // Type undocumented + Type *string `json:"type,omitempty"` + // Data undocumented + Data *SitePageData `json:"data,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebsiteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WebsiteModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go new file mode 100644 index 00000000..38682cfc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go @@ -0,0 +1,223 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Win32LobApp Contains properties and inherited properties for Win32 apps. +type Win32LobApp struct { + // MobileLobApp is the base model of Win32LobApp + MobileLobApp + // InstallCommandLine The command line to install this app + InstallCommandLine *string `json:"installCommandLine,omitempty"` + // UninstallCommandLine The command line to uninstall this app + UninstallCommandLine *string `json:"uninstallCommandLine,omitempty"` + // ApplicableArchitectures The Windows architecture(s) for which this app can run on. + ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // MinimumFreeDiskSpaceInMB The value for the minimum free disk space which is required to install this app. + MinimumFreeDiskSpaceInMB *int `json:"minimumFreeDiskSpaceInMB,omitempty"` + // MinimumMemoryInMB The value for the minimum physical memory which is required to install this app. + MinimumMemoryInMB *int `json:"minimumMemoryInMB,omitempty"` + // MinimumNumberOfProcessors The value for the minimum number of processors which is required to install this app. + MinimumNumberOfProcessors *int `json:"minimumNumberOfProcessors,omitempty"` + // MinimumCPUSpeedInMHz The value for the minimum CPU speed which is required to install this app. + MinimumCPUSpeedInMHz *int `json:"minimumCpuSpeedInMHz,omitempty"` + // DetectionRules The detection rules to detect Win32 Line of Business (LoB) app. + DetectionRules []Win32LobAppDetection `json:"detectionRules,omitempty"` + // RequirementRules The requirement rules to detect Win32 Line of Business (LoB) app. + RequirementRules []Win32LobAppRequirement `json:"requirementRules,omitempty"` + // InstallExperience The install experience for this app. + InstallExperience *Win32LobAppInstallExperience `json:"installExperience,omitempty"` + // ReturnCodes The return codes for post installation behavior. + ReturnCodes []Win32LobAppReturnCode `json:"returnCodes,omitempty"` + // MsiInformation The MSI details if this Win32 app is an MSI app. + MsiInformation *Win32LobAppMsiInformation `json:"msiInformation,omitempty"` + // SetupFilePath The relative path of the setup file in the encrypted Win32LobApp package. + SetupFilePath *string `json:"setupFilePath,omitempty"` +} + +// Win32LobAppAssignmentSettings undocumented +type Win32LobAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of Win32LobAppAssignmentSettings + MobileAppAssignmentSettings + // Notifications The notification status for this app assignment. + Notifications *Win32LobAppNotification `json:"notifications,omitempty"` + // RestartSettings The reboot settings to apply for this app assignment. + RestartSettings *Win32LobAppRestartSettings `json:"restartSettings,omitempty"` + // InstallTimeSettings The install time settings to apply for this app assignment. + InstallTimeSettings *MobileAppInstallTimeSettings `json:"installTimeSettings,omitempty"` +} + +// Win32LobAppDetection undocumented +type Win32LobAppDetection struct { + // Object is the base model of Win32LobAppDetection + Object +} + +// Win32LobAppFileSystemDetection undocumented +type Win32LobAppFileSystemDetection struct { + // Win32LobAppDetection is the base model of Win32LobAppFileSystemDetection + Win32LobAppDetection + // Path The file or folder path to detect Win32 Line of Business (LoB) app + Path *string `json:"path,omitempty"` + // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app + FileOrFolderName *string `json:"fileOrFolderName,omitempty"` + // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system + Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"` + // DetectionType The file system detection type + DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"` + // Operator The operator for file or folder detection + Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"` + // DetectionValue The file or folder detection value + DetectionValue *string `json:"detectionValue,omitempty"` +} + +// Win32LobAppFileSystemRequirement undocumented +type Win32LobAppFileSystemRequirement struct { + // Win32LobAppRequirement is the base model of Win32LobAppFileSystemRequirement + Win32LobAppRequirement + // Path The file or folder path to detect Win32 Line of Business (LoB) app + Path *string `json:"path,omitempty"` + // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app + FileOrFolderName *string `json:"fileOrFolderName,omitempty"` + // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system + Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"` + // DetectionType The file system detection type + DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"` +} + +// Win32LobAppInstallExperience undocumented +type Win32LobAppInstallExperience struct { + // Object is the base model of Win32LobAppInstallExperience + Object + // RunAsAccount Indicates the type of execution context the app runs in. + RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"` + // DeviceRestartBehavior Device restart behavior. + DeviceRestartBehavior *Win32LobAppRestartBehavior `json:"deviceRestartBehavior,omitempty"` +} + +// Win32LobAppMsiInformation undocumented +type Win32LobAppMsiInformation struct { + // Object is the base model of Win32LobAppMsiInformation + Object + // ProductCode The MSI product code. + ProductCode *string `json:"productCode,omitempty"` + // ProductVersion The MSI product version. + ProductVersion *string `json:"productVersion,omitempty"` + // UpgradeCode The MSI upgrade code. + UpgradeCode *string `json:"upgradeCode,omitempty"` + // RequiresReboot Whether the MSI app requires the machine to reboot to complete installation. + RequiresReboot *bool `json:"requiresReboot,omitempty"` + // PackageType The MSI package type. + PackageType *Win32LobAppMsiPackageType `json:"packageType,omitempty"` + // ProductName The MSI product name. + ProductName *string `json:"productName,omitempty"` + // Publisher The MSI publisher. + Publisher *string `json:"publisher,omitempty"` +} + +// Win32LobAppPowerShellScriptDetection undocumented +type Win32LobAppPowerShellScriptDetection struct { + // Win32LobAppDetection is the base model of Win32LobAppPowerShellScriptDetection + Win32LobAppDetection + // EnforceSignatureCheck A value indicating whether signature check is enforced + EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"` + // RunAs32Bit A value indicating whether this script should run as 32-bit + RunAs32Bit *bool `json:"runAs32Bit,omitempty"` + // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app + ScriptContent *string `json:"scriptContent,omitempty"` +} + +// Win32LobAppPowerShellScriptRequirement undocumented +type Win32LobAppPowerShellScriptRequirement struct { + // Win32LobAppRequirement is the base model of Win32LobAppPowerShellScriptRequirement + Win32LobAppRequirement + // DisplayName The unique display name for this rule + DisplayName *string `json:"displayName,omitempty"` + // EnforceSignatureCheck A value indicating whether signature check is enforced + EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"` + // RunAs32Bit A value indicating whether this script should run as 32-bit + RunAs32Bit *bool `json:"runAs32Bit,omitempty"` + // RunAsAccount Indicates the type of execution context the script runs in. + RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"` + // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app + ScriptContent *string `json:"scriptContent,omitempty"` + // DetectionType The detection type for script output + DetectionType *Win32LobAppPowerShellScriptDetectionType `json:"detectionType,omitempty"` +} + +// Win32LobAppProductCodeDetection undocumented +type Win32LobAppProductCodeDetection struct { + // Win32LobAppDetection is the base model of Win32LobAppProductCodeDetection + Win32LobAppDetection + // ProductCode The product code of Win32 Line of Business (LoB) app. + ProductCode *string `json:"productCode,omitempty"` + // ProductVersionOperator The operator to detect product version. + ProductVersionOperator *Win32LobAppDetectionOperator `json:"productVersionOperator,omitempty"` + // ProductVersion The product version of Win32 Line of Business (LoB) app. + ProductVersion *string `json:"productVersion,omitempty"` +} + +// Win32LobAppRegistryDetection undocumented +type Win32LobAppRegistryDetection struct { + // Win32LobAppDetection is the base model of Win32LobAppRegistryDetection + Win32LobAppDetection + // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system + Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"` + // KeyPath The registry key path to detect Win32 Line of Business (LoB) app + KeyPath *string `json:"keyPath,omitempty"` + // ValueName The registry value name + ValueName *string `json:"valueName,omitempty"` + // DetectionType The registry data detection type + DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"` + // Operator The operator for registry data detection + Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"` + // DetectionValue The registry detection value + DetectionValue *string `json:"detectionValue,omitempty"` +} + +// Win32LobAppRegistryRequirement undocumented +type Win32LobAppRegistryRequirement struct { + // Win32LobAppRequirement is the base model of Win32LobAppRegistryRequirement + Win32LobAppRequirement + // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system + Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"` + // KeyPath The registry key path to detect Win32 Line of Business (LoB) app + KeyPath *string `json:"keyPath,omitempty"` + // ValueName The registry value name + ValueName *string `json:"valueName,omitempty"` + // DetectionType The registry data detection type + DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"` +} + +// Win32LobAppRequirement undocumented +type Win32LobAppRequirement struct { + // Object is the base model of Win32LobAppRequirement + Object + // Operator The operator for detection + Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"` + // DetectionValue The detection value + DetectionValue *string `json:"detectionValue,omitempty"` +} + +// Win32LobAppRestartSettings undocumented +type Win32LobAppRestartSettings struct { + // Object is the base model of Win32LobAppRestartSettings + Object + // GracePeriodInMinutes The number of minutes to wait before restarting the device after an app installation. + GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"` + // CountdownDisplayBeforeRestartInMinutes The number of minutes before the restart time to display the countdown dialog for pending restarts. + CountdownDisplayBeforeRestartInMinutes *int `json:"countdownDisplayBeforeRestartInMinutes,omitempty"` + // RestartNotificationSnoozeDurationInMinutes The number of minutes to snooze the restart notification dialog when the snooze button is selected. + RestartNotificationSnoozeDurationInMinutes *int `json:"restartNotificationSnoozeDurationInMinutes,omitempty"` +} + +// Win32LobAppReturnCode undocumented +type Win32LobAppReturnCode struct { + // Object is the base model of Win32LobAppReturnCode + Object + // ReturnCode Return code. + ReturnCode *int `json:"returnCode,omitempty"` + // Type The type of return code. + Type *Win32LobAppReturnCodeType `json:"type,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go new file mode 100644 index 00000000..9c8bcfc6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go @@ -0,0 +1,1801 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// WindowsAppX Contains properties and inherited properties for Windows AppX Line Of Business apps. +type WindowsAppX struct { + // MobileLobApp is the base model of WindowsAppX + MobileLobApp + // ApplicableArchitectures The Windows architecture(s) for which this app can run on. + ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // IdentityPublisherHash The Identity Publisher Hash. + IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"` + // IdentityResourceIdentifier The Identity Resource Identifier. + IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"` + // IsBundle Whether or not the app is a bundle. + IsBundle *bool `json:"isBundle,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// WindowsAppXAppAssignmentSettings undocumented +type WindowsAppXAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of WindowsAppXAppAssignmentSettings + MobileAppAssignmentSettings + // UseDeviceContext Whether or not to use device execution context for Windows AppX mobile app. + UseDeviceContext *bool `json:"useDeviceContext,omitempty"` +} + +// WindowsAssignedAccessProfile Assigned Access profile for Windows. +type WindowsAssignedAccessProfile struct { + // Entity is the base model of WindowsAssignedAccessProfile + Entity + // ProfileName This is a friendly name used to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned. + ProfileName *string `json:"profileName,omitempty"` + // ShowTaskBar This setting allows the admin to specify whether the Task Bar is shown or not. + ShowTaskBar *bool `json:"showTaskBar,omitempty"` + // AppUserModelIDs These are the only Windows Store Apps that will be available to launch from the Start menu. + AppUserModelIDs []string `json:"appUserModelIds,omitempty"` + // DesktopAppPaths These are the paths of the Desktop Apps that will be available on the Start menu and the only apps the user will be able to launch. + DesktopAppPaths []string `json:"desktopAppPaths,omitempty"` + // UserAccounts The user accounts that will be locked to this kiosk configuration. + UserAccounts []string `json:"userAccounts,omitempty"` + // StartMenuLayoutXML Allows admins to override the default Start layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format. + StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"` +} + +// WindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile +type WindowsAutopilotDeploymentProfile struct { + // Entity is the base model of WindowsAutopilotDeploymentProfile + Entity + // DisplayName Name of the profile + DisplayName *string `json:"displayName,omitempty"` + // Description Description of the profile + Description *string `json:"description,omitempty"` + // Language Language configured on the device + Language *string `json:"language,omitempty"` + // CreatedDateTime Profile creation time + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime Profile last modified time + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // OutOfBoxExperienceSettings Out of box experience setting + OutOfBoxExperienceSettings *OutOfBoxExperienceSettings `json:"outOfBoxExperienceSettings,omitempty"` + // EnrollmentStatusScreenSettings Enrollment status screen setting + EnrollmentStatusScreenSettings *WindowsEnrollmentStatusScreenSettings `json:"enrollmentStatusScreenSettings,omitempty"` + // ExtractHardwareHash HardwareHash Extraction for the profile + ExtractHardwareHash *bool `json:"extractHardwareHash,omitempty"` + // DeviceNameTemplate The template used to name the AutoPilot Device. This can be a custom text and can also contain either the serial number of the device, or a randomly generated number. The total length of the text generated by the template can be no more than 15 characters. + DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"` + // DeviceType The AutoPilot device type that this profile is applicable to. + DeviceType *WindowsAutopilotDeviceType `json:"deviceType,omitempty"` + // EnableWhiteGlove Enable Autopilot White Glove for the profile. + EnableWhiteGlove *bool `json:"enableWhiteGlove,omitempty"` + // RoleScopeTagIDs Scope tags for the profile. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // AssignedDevices undocumented + AssignedDevices []WindowsAutopilotDeviceIdentity `json:"assignedDevices,omitempty"` + // Assignments undocumented + Assignments []WindowsAutopilotDeploymentProfileAssignment `json:"assignments,omitempty"` +} + +// WindowsAutopilotDeploymentProfileAssignment An assignment of a Windows Autopilot deployment profile to an AAD group. +type WindowsAutopilotDeploymentProfileAssignment struct { + // Entity is the base model of WindowsAutopilotDeploymentProfileAssignment + Entity + // Target The assignment target for the Windows Autopilot deployment profile. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` + // Source Type of resource used for deployment to a group, direct or parcel/policySet + Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"` + // SourceID Identifier for resource used for deployment to a group + SourceID *string `json:"sourceId,omitempty"` +} + +// WindowsAutopilotDeploymentProfilePolicySetItem A class containing the properties used for windows autopilot deployment profile PolicySetItem. +type WindowsAutopilotDeploymentProfilePolicySetItem struct { + // PolicySetItem is the base model of WindowsAutopilotDeploymentProfilePolicySetItem + PolicySetItem +} + +// WindowsAutopilotDeviceIdentity The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device. +type WindowsAutopilotDeviceIdentity struct { + // Entity is the base model of WindowsAutopilotDeviceIdentity + Entity + // DeploymentProfileAssignmentStatus Profile assignment status of the Windows autopilot device. + DeploymentProfileAssignmentStatus *WindowsAutopilotProfileAssignmentStatus `json:"deploymentProfileAssignmentStatus,omitempty"` + // DeploymentProfileAssignmentDetailedStatus Profile assignment detailed status of the Windows autopilot device. + DeploymentProfileAssignmentDetailedStatus *WindowsAutopilotProfileAssignmentDetailedStatus `json:"deploymentProfileAssignmentDetailedStatus,omitempty"` + // DeploymentProfileAssignedDateTime Profile set time of the Windows autopilot device. + DeploymentProfileAssignedDateTime *time.Time `json:"deploymentProfileAssignedDateTime,omitempty"` + // OrderIdentifier Order Identifier of the Windows autopilot device - Deprecated + OrderIdentifier *string `json:"orderIdentifier,omitempty"` + // GroupTag Group Tag of the Windows autopilot device. + GroupTag *string `json:"groupTag,omitempty"` + // PurchaseOrderIdentifier Purchase Order Identifier of the Windows autopilot device. + PurchaseOrderIdentifier *string `json:"purchaseOrderIdentifier,omitempty"` + // SerialNumber Serial number of the Windows autopilot device. + SerialNumber *string `json:"serialNumber,omitempty"` + // ProductKey Product Key of the Windows autopilot device. + ProductKey *string `json:"productKey,omitempty"` + // Manufacturer Oem manufacturer of the Windows autopilot device. + Manufacturer *string `json:"manufacturer,omitempty"` + // Model Model name of the Windows autopilot device. + Model *string `json:"model,omitempty"` + // EnrollmentState Intune enrollment state of the Windows autopilot device. + EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"` + // LastContactedDateTime Intune Last Contacted Date Time of the Windows autopilot device. + LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"` + // AddressableUserName Addressable user name. + AddressableUserName *string `json:"addressableUserName,omitempty"` + // UserPrincipalName User Principal Name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // ResourceName Resource Name. + ResourceName *string `json:"resourceName,omitempty"` + // SKUNumber SKU Number + SKUNumber *string `json:"skuNumber,omitempty"` + // SystemFamily System Family + SystemFamily *string `json:"systemFamily,omitempty"` + // AzureActiveDirectoryDeviceID AAD Device ID + AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"` + // ManagedDeviceID Managed Device ID + ManagedDeviceID *string `json:"managedDeviceId,omitempty"` + // DisplayName Display Name + DisplayName *string `json:"displayName,omitempty"` + // DeploymentProfile undocumented + DeploymentProfile *WindowsAutopilotDeploymentProfile `json:"deploymentProfile,omitempty"` + // IntendedDeploymentProfile undocumented + IntendedDeploymentProfile *WindowsAutopilotDeploymentProfile `json:"intendedDeploymentProfile,omitempty"` +} + +// WindowsAutopilotSettings The windowsAutopilotSettings resource represents a Windows Autopilot Account to sync data with Windows device data sync service. +type WindowsAutopilotSettings struct { + // Entity is the base model of WindowsAutopilotSettings + Entity + // LastSyncDateTime Last data sync date time with DDS service. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // LastManualSyncTriggerDateTime Last data sync date time with DDS service. + LastManualSyncTriggerDateTime *time.Time `json:"lastManualSyncTriggerDateTime,omitempty"` + // SyncStatus Indicates the status of sync with Device data sync (DDS) service. + SyncStatus *WindowsAutopilotSyncStatus `json:"syncStatus,omitempty"` +} + +// WindowsCertificateProfileBase Device Configuration. +type WindowsCertificateProfileBase struct { + // DeviceConfiguration is the base model of WindowsCertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99 + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // KeyStorageProvider Key Storage Provider (KSP) + KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"` + // SubjectNameFormat Certificate Subject Name Format + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validity Period + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` +} + +// WindowsDefenderAdvancedThreatProtectionConfiguration Windows Defender AdvancedThreatProtection Configuration. +type WindowsDefenderAdvancedThreatProtectionConfiguration struct { + // DeviceConfiguration is the base model of WindowsDefenderAdvancedThreatProtectionConfiguration + DeviceConfiguration + // AdvancedThreatProtectionOnboardingBlob Windows Defender AdvancedThreatProtection Onboarding Blob. + AdvancedThreatProtectionOnboardingBlob *string `json:"advancedThreatProtectionOnboardingBlob,omitempty"` + // AdvancedThreatProtectionOnboardingFilename Name of the file from which AdvancedThreatProtectionOnboardingBlob was obtained. + AdvancedThreatProtectionOnboardingFilename *string `json:"advancedThreatProtectionOnboardingFilename,omitempty"` + // AdvancedThreatProtectionAutoPopulateOnboardingBlob Auto populate onboarding blob programmatically from Advanced Threat protection service + AdvancedThreatProtectionAutoPopulateOnboardingBlob *bool `json:"advancedThreatProtectionAutoPopulateOnboardingBlob,omitempty"` + // AllowSampleSharing Windows Defender AdvancedThreatProtection "Allow Sample Sharing" Rule + AllowSampleSharing *bool `json:"allowSampleSharing,omitempty"` + // EnableExpeditedTelemetryReporting Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency. + EnableExpeditedTelemetryReporting *bool `json:"enableExpeditedTelemetryReporting,omitempty"` + // AdvancedThreatProtectionOffboardingBlob Windows Defender AdvancedThreatProtection Offboarding Blob. + AdvancedThreatProtectionOffboardingBlob *string `json:"advancedThreatProtectionOffboardingBlob,omitempty"` + // AdvancedThreatProtectionOffboardingFilename Name of the file from which AdvancedThreatProtectionOffboardingBlob was obtained. + AdvancedThreatProtectionOffboardingFilename *string `json:"advancedThreatProtectionOffboardingFilename,omitempty"` +} + +// WindowsDefenderApplicationControlSupplementalPolicy undocumented +type WindowsDefenderApplicationControlSupplementalPolicy struct { + // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicy + Entity + // DisplayName The display name of WindowsDefenderApplicationControl supplemental policy. + DisplayName *string `json:"displayName,omitempty"` + // Description The description of WindowsDefenderApplicationControl supplemental policy. + Description *string `json:"description,omitempty"` + // Content The WindowsDefenderApplicationControl supplemental policy content in byte array format. + Content *Binary `json:"content,omitempty"` + // ContentFileName The WindowsDefenderApplicationControl supplemental policy content's file name. + ContentFileName *string `json:"contentFileName,omitempty"` + // Version The WindowsDefenderApplicationControl supplemental policy's version. + Version *string `json:"version,omitempty"` + // CreationDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was uploaded. + CreationDateTime *time.Time `json:"creationDateTime,omitempty"` + // LastModifiedDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // RoleScopeTagIDs List of Scope Tags for this WindowsDefenderApplicationControl supplemental policy entity. + RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` + // Assignments undocumented + Assignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"assignments,omitempty"` + // DeploySummary undocumented + DeploySummary *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary `json:"deploySummary,omitempty"` + // DeviceStatuses undocumented + DeviceStatuses []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus `json:"deviceStatuses,omitempty"` +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignment A class containing the properties used for assignment of a WindowsDefenderApplicationControl supplemental policy to a group. +type WindowsDefenderApplicationControlSupplementalPolicyAssignment struct { + // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyAssignment + Entity + // Target The target group assignment defined by the admin. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus Contains properties for the deployment state of a WindowsDefenderApplicationControl supplemental policy for a device. +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus struct { + // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus + Entity + // DeviceName Device name. + DeviceName *string `json:"deviceName,omitempty"` + // DeviceID Device ID. + DeviceID *string `json:"deviceId,omitempty"` + // LastSyncDateTime Last sync date time. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` + // OsVersion Windows OS Version. + OsVersion *string `json:"osVersion,omitempty"` + // OsDescription Windows OS Version Description. + OsDescription *string `json:"osDescription,omitempty"` + // DeploymentStatus The deployment state of the policy. + DeploymentStatus *WindowsDefenderApplicationControlSupplementalPolicyStatuses `json:"deploymentStatus,omitempty"` + // UserName The name of the user of this device. + UserName *string `json:"userName,omitempty"` + // UserPrincipalName User Principal Name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // PolicyVersion Human readable version of the WindowsDefenderApplicationControl supplemental policy. + PolicyVersion *string `json:"policyVersion,omitempty"` + // Policy undocumented + Policy *WindowsDefenderApplicationControlSupplementalPolicy `json:"policy,omitempty"` +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary Contains properties for the deployment summary of a WindowsDefenderApplicationControl supplemental policy. +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary struct { + // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary + Entity + // DeployedDeviceCount Number of Devices that have successfully deployed this WindowsDefenderApplicationControl supplemental policy. + DeployedDeviceCount *int `json:"deployedDeviceCount,omitempty"` + // FailedDeviceCount Number of Devices that have failed to deploy this WindowsDefenderApplicationControl supplemental policy. + FailedDeviceCount *int `json:"failedDeviceCount,omitempty"` +} + +// WindowsDefenderScanActionResult undocumented +type WindowsDefenderScanActionResult struct { + // DeviceActionResult is the base model of WindowsDefenderScanActionResult + DeviceActionResult + // ScanType Scan type either full scan or quick scan + ScanType *string `json:"scanType,omitempty"` +} + +// WindowsDeliveryOptimizationConfiguration Windows Delivery Optimization configuration +type WindowsDeliveryOptimizationConfiguration struct { + // DeviceConfiguration is the base model of WindowsDeliveryOptimizationConfiguration + DeviceConfiguration + // DeliveryOptimizationMode Specifies the download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios. + DeliveryOptimizationMode *WindowsDeliveryOptimizationMode `json:"deliveryOptimizationMode,omitempty"` + // RestrictPeerSelectionBy Specifies to restrict peer selection via selected option. + RestrictPeerSelectionBy *DeliveryOptimizationRestrictPeerSelectionByOptions `json:"restrictPeerSelectionBy,omitempty"` + // GroupIDSource Specifies to restrict peer selection to a specfic source. + GroupIDSource *DeliveryOptimizationGroupIDSource `json:"groupIdSource,omitempty"` + // BandwidthMode Specifies foreground and background bandwidth usage using percentages, absolutes, or hours. + BandwidthMode *DeliveryOptimizationBandwidth `json:"bandwidthMode,omitempty"` + // BackgroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer. Valid values 0 to 4294967295 + BackgroundDownloadFromHTTPDelayInSeconds *int `json:"backgroundDownloadFromHttpDelayInSeconds,omitempty"` + // ForegroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a foreground download that is allowed to use peer-to-peer (0-86400). Valid values 0 to 86400 + ForegroundDownloadFromHTTPDelayInSeconds *int `json:"foregroundDownloadFromHttpDelayInSeconds,omitempty"` + // MinimumRAMAllowedToPeerInGigabytes Specifies the minimum RAM size in GB to use Peer Caching (1-100000). Valid values 1 to 100000 + MinimumRAMAllowedToPeerInGigabytes *int `json:"minimumRamAllowedToPeerInGigabytes,omitempty"` + // MinimumDiskSizeAllowedToPeerInGigabytes Specifies the minimum disk size in GB to use Peer Caching (1-100000). Valid values 1 to 100000 + MinimumDiskSizeAllowedToPeerInGigabytes *int `json:"minimumDiskSizeAllowedToPeerInGigabytes,omitempty"` + // MinimumFileSizeToCacheInMegabytes Specifies the minimum content file size in MB enabled to use Peer Caching (1-100000). Valid values 1 to 100000 + MinimumFileSizeToCacheInMegabytes *int `json:"minimumFileSizeToCacheInMegabytes,omitempty"` + // MinimumBatteryPercentageAllowedToUpload Specifies the minimum battery percentage to allow the device to upload data (0-100). Valid values 0 to 100 + MinimumBatteryPercentageAllowedToUpload *int `json:"minimumBatteryPercentageAllowedToUpload,omitempty"` + // ModifyCacheLocation Specifies the drive that Delivery Optimization should use for its cache. + ModifyCacheLocation *string `json:"modifyCacheLocation,omitempty"` + // MaximumCacheAgeInDays Specifies the maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650). Valid values 0 to 3650 + MaximumCacheAgeInDays *int `json:"maximumCacheAgeInDays,omitempty"` + // MaximumCacheSize Specifies the maximum cache size that Delivery Optimization either as a percentage or in GB. + MaximumCacheSize *DeliveryOptimizationMaxCacheSize `json:"maximumCacheSize,omitempty"` + // VPNPeerCaching Specifies whether the device is allowed to participate in Peer Caching while connected via VPN to the domain network. + VPNPeerCaching *Enablement `json:"vpnPeerCaching,omitempty"` + // CacheServerHostNames Specifies cache servers host names. + CacheServerHostNames []string `json:"cacheServerHostNames,omitempty"` + // CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download. Valid values 0 to 2592000.​ + CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerForegroundDownloadFallbackToHttpDelayInSeconds,omitempty"` + // CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a background download. Valid values 0 to 2592000. + CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds,omitempty"` +} + +// WindowsDeviceADAccount undocumented +type WindowsDeviceADAccount struct { + // WindowsDeviceAccount is the base model of WindowsDeviceADAccount + WindowsDeviceAccount + // DomainName undocumented + DomainName *string `json:"domainName,omitempty"` + // UserName undocumented + UserName *string `json:"userName,omitempty"` +} + +// WindowsDeviceAccount undocumented +type WindowsDeviceAccount struct { + // Object is the base model of WindowsDeviceAccount + Object + // Password undocumented + Password *string `json:"password,omitempty"` +} + +// WindowsDeviceAzureADAccount undocumented +type WindowsDeviceAzureADAccount struct { + // WindowsDeviceAccount is the base model of WindowsDeviceAzureADAccount + WindowsDeviceAccount + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// WindowsDeviceMalwareState Malware detection entity. +type WindowsDeviceMalwareState struct { + // Entity is the base model of WindowsDeviceMalwareState + Entity + // DisplayName Malware name + DisplayName *string `json:"displayName,omitempty"` + // AdditionalInformationURL Information URL to learn more about the malware + AdditionalInformationURL *string `json:"additionalInformationUrl,omitempty"` + // Severity Severity of the malware + Severity *WindowsMalwareSeverity `json:"severity,omitempty"` + // Catetgory Category of the malware + Catetgory *WindowsMalwareCategory `json:"catetgory,omitempty"` + // ExecutionState Execution status of the malware like blocked/executing etc + ExecutionState *WindowsMalwareExecutionState `json:"executionState,omitempty"` + // State Current status of the malware like cleaned/quarantined/allowed etc + State *WindowsMalwareState `json:"state,omitempty"` + // ThreatState Current status of the malware like cleaned/quarantined/allowed etc + ThreatState *WindowsMalwareThreatState `json:"threatState,omitempty"` + // InitialDetectionDateTime Initial detection datetime of the malware + InitialDetectionDateTime *time.Time `json:"initialDetectionDateTime,omitempty"` + // LastStateChangeDateTime The last time this particular threat was changed + LastStateChangeDateTime *time.Time `json:"lastStateChangeDateTime,omitempty"` + // DetectionCount Number of times the malware is detected + DetectionCount *int `json:"detectionCount,omitempty"` + // Category Category of the malware + Category *WindowsMalwareCategory `json:"category,omitempty"` +} + +// WindowsDomainJoinConfiguration Windows Domain Join device configuration. +type WindowsDomainJoinConfiguration struct { + // DeviceConfiguration is the base model of WindowsDomainJoinConfiguration + DeviceConfiguration + // ComputerNameStaticPrefix Fixed prefix to be used for computer name. + ComputerNameStaticPrefix *string `json:"computerNameStaticPrefix,omitempty"` + // ComputerNameSuffixRandomCharCount Dynamically generated characters used as suffix for computer name. Valid values 3 to 14 + ComputerNameSuffixRandomCharCount *int `json:"computerNameSuffixRandomCharCount,omitempty"` + // ActiveDirectoryDomainName Active Directory domain name to join. + ActiveDirectoryDomainName *string `json:"activeDirectoryDomainName,omitempty"` + // OrganizationalUnit Organizational unit (OU) where the computer account will be created. If this parameter is NULL, the well known computer object container will be used as published in the domain. + OrganizationalUnit *string `json:"organizationalUnit,omitempty"` + // NetworkAccessConfigurations undocumented + NetworkAccessConfigurations []DeviceConfiguration `json:"networkAccessConfigurations,omitempty"` +} + +// WindowsEnrollmentStatusScreenSettings undocumented +type WindowsEnrollmentStatusScreenSettings struct { + // Object is the base model of WindowsEnrollmentStatusScreenSettings + Object + // HideInstallationProgress Show or hide installation progress to user + HideInstallationProgress *bool `json:"hideInstallationProgress,omitempty"` + // AllowDeviceUseBeforeProfileAndAppInstallComplete Allow or block user to use device before profile and app installation complete + AllowDeviceUseBeforeProfileAndAppInstallComplete *bool `json:"allowDeviceUseBeforeProfileAndAppInstallComplete,omitempty"` + // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure + BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"` + // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure + AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"` + // CustomErrorMessage Set custom error message to show upon installation failure + CustomErrorMessage *string `json:"customErrorMessage,omitempty"` + // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes + InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"` + // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure + AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"` +} + +// WindowsFeatureUpdateProfile Windows Feature Update Profile +type WindowsFeatureUpdateProfile struct { + // Entity is the base model of WindowsFeatureUpdateProfile + Entity + // DisplayName The display name of the profile. + DisplayName *string `json:"displayName,omitempty"` + // Description The description of the profile which is specified by the user. + Description *string `json:"description,omitempty"` + // FeatureUpdateVersion The feature update version that will be deployed to the devices targeted by this profile. The version could be any supported version for example 1709, 1803 or 1809 and so on. + FeatureUpdateVersion *string `json:"featureUpdateVersion,omitempty"` + // CreatedDateTime The date time that the profile was created. + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + // LastModifiedDateTime The date time that the profile was last modified. + LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` + // Assignments undocumented + Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"` + // DeviceUpdateStates undocumented + DeviceUpdateStates []WindowsUpdateState `json:"deviceUpdateStates,omitempty"` +} + +// WindowsFeatureUpdateProfileAssignment This entity contains the properties used to assign a windows feature update profile to a group. +type WindowsFeatureUpdateProfileAssignment struct { + // Entity is the base model of WindowsFeatureUpdateProfileAssignment + Entity + // Target The assignment target that the feature update profile is assigned to. + Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` +} + +// WindowsFirewallNetworkProfile undocumented +type WindowsFirewallNetworkProfile struct { + // Object is the base model of WindowsFirewallNetworkProfile + Object + // FirewallEnabled Configures the host device to allow or block the firewall and advanced security enforcement for the network profile. + FirewallEnabled *StateManagementSetting `json:"firewallEnabled,omitempty"` + // StealthModeRequired Allow the server to operate in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority. + StealthModeRequired *bool `json:"stealthModeRequired,omitempty"` + // StealthModeBlocked Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority. + StealthModeBlocked *bool `json:"stealthModeBlocked,omitempty"` + // IncomingTrafficRequired Configures the firewall to allow incoming traffic pursuant to other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority. + IncomingTrafficRequired *bool `json:"incomingTrafficRequired,omitempty"` + // IncomingTrafficBlocked Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority. + IncomingTrafficBlocked *bool `json:"incomingTrafficBlocked,omitempty"` + // UnicastResponsesToMulticastBroadcastsRequired Configures the firewall to allow unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority. + UnicastResponsesToMulticastBroadcastsRequired *bool `json:"unicastResponsesToMulticastBroadcastsRequired,omitempty"` + // UnicastResponsesToMulticastBroadcastsBlocked Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority. + UnicastResponsesToMulticastBroadcastsBlocked *bool `json:"unicastResponsesToMulticastBroadcastsBlocked,omitempty"` + // InboundNotificationsRequired Allows the firewall to display notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority. + InboundNotificationsRequired *bool `json:"inboundNotificationsRequired,omitempty"` + // InboundNotificationsBlocked Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority. + InboundNotificationsBlocked *bool `json:"inboundNotificationsBlocked,omitempty"` + // AuthorizedApplicationRulesFromGroupPolicyMerged Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority. + AuthorizedApplicationRulesFromGroupPolicyMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyMerged,omitempty"` + // AuthorizedApplicationRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority. + AuthorizedApplicationRulesFromGroupPolicyNotMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyNotMerged,omitempty"` + // GlobalPortRulesFromGroupPolicyMerged Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority. + GlobalPortRulesFromGroupPolicyMerged *bool `json:"globalPortRulesFromGroupPolicyMerged,omitempty"` + // GlobalPortRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority. + GlobalPortRulesFromGroupPolicyNotMerged *bool `json:"globalPortRulesFromGroupPolicyNotMerged,omitempty"` + // ConnectionSecurityRulesFromGroupPolicyMerged Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority. + ConnectionSecurityRulesFromGroupPolicyMerged *bool `json:"connectionSecurityRulesFromGroupPolicyMerged,omitempty"` + // ConnectionSecurityRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority. + ConnectionSecurityRulesFromGroupPolicyNotMerged *bool `json:"connectionSecurityRulesFromGroupPolicyNotMerged,omitempty"` + // OutboundConnectionsRequired Configures the firewall to allow all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above. + OutboundConnectionsRequired *bool `json:"outboundConnectionsRequired,omitempty"` + // OutboundConnectionsBlocked Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above. + OutboundConnectionsBlocked *bool `json:"outboundConnectionsBlocked,omitempty"` + // InboundConnectionsRequired Configures the firewall to allow all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority. + InboundConnectionsRequired *bool `json:"inboundConnectionsRequired,omitempty"` + // InboundConnectionsBlocked Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority. + InboundConnectionsBlocked *bool `json:"inboundConnectionsBlocked,omitempty"` + // SecuredPacketExemptionAllowed Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority. + SecuredPacketExemptionAllowed *bool `json:"securedPacketExemptionAllowed,omitempty"` + // SecuredPacketExemptionBlocked Configures the firewall to block the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority. + SecuredPacketExemptionBlocked *bool `json:"securedPacketExemptionBlocked,omitempty"` + // PolicyRulesFromGroupPolicyMerged Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority. + PolicyRulesFromGroupPolicyMerged *bool `json:"policyRulesFromGroupPolicyMerged,omitempty"` + // PolicyRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority. + PolicyRulesFromGroupPolicyNotMerged *bool `json:"policyRulesFromGroupPolicyNotMerged,omitempty"` +} + +// WindowsFirewallRule undocumented +type WindowsFirewallRule struct { + // Object is the base model of WindowsFirewallRule + Object + // DisplayName The display name of the rule. Does not need to be unique. + DisplayName *string `json:"displayName,omitempty"` + // Description The description of the rule. + Description *string `json:"description,omitempty"` + // PackageFamilyName The package family name of a Microsoft Store application that's affected by the firewall rule. + PackageFamilyName *string `json:"packageFamilyName,omitempty"` + // FilePath The full file path of an app that's affected by the firewall rule. + FilePath *string `json:"filePath,omitempty"` + // ServiceName The name used in cases when a service, not an application, is sending or receiving traffic. + ServiceName *string `json:"serviceName,omitempty"` + // Protocol 0-255 number representing the IP protocol (TCP = 6, UDP = 17). If not specified, the default is All. Valid values 0 to 255 + Protocol *int `json:"protocol,omitempty"` + // LocalPortRanges List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All. + LocalPortRanges []string `json:"localPortRanges,omitempty"` + // RemotePortRanges List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All. + RemotePortRanges []string `json:"remotePortRanges,omitempty"` + // LocalAddressRanges List of local addresses covered by the rule. Default is any address. Valid tokens include:
  • "*" indicates any local address. If present, this must be the only token included.
  • 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.
  • A valid IPv6 address.
  • An IPv4 address range in the format of "start address - end address" with no spaces included.
  • An IPv6 address range in the format of "start address - end address" with no spaces included.
+ 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:
  • "*" indicates any remote address. If present, this must be the only token included.
  • "Defaultgateway"
  • "DHCP"
  • "DNS"
  • "WINS"
  • "Intranet" (supported on Windows versions 1809+)
  • "RmtIntranet" (supported on Windows versions 1809+)
  • "Internet" (supported on Windows versions 1809+)
  • "Ply2Renders" (supported on Windows versions 1809+)
  • "LocalSubnet" indicates any local address on the local subnet.
  • 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.
  • A valid IPv6 address.
  • An IPv4 address range in the format of "start address - end address" with no spaces included.
  • An IPv6 address range in the format of "start address - end address" with no spaces included.
+ RemoteAddressRanges []string `json:"remoteAddressRanges,omitempty"` + // ProfileTypes Specifies the profiles to which the rule belongs. If not specified, the default is All. + ProfileTypes *WindowsFirewallRuleNetworkProfileTypes `json:"profileTypes,omitempty"` + // Action The action the rule enforces. If not specified, the default is Allowed. + Action *StateManagementSetting `json:"action,omitempty"` + // TrafficDirection The traffic direction that the rule is enabled for. If not specified, the default is Out. + TrafficDirection *WindowsFirewallRuleTrafficDirectionType `json:"trafficDirection,omitempty"` + // InterfaceTypes The interface types of the rule. + InterfaceTypes *WindowsFirewallRuleInterfaceTypes `json:"interfaceTypes,omitempty"` + // EdgeTraversal Indicates whether edge traversal is enabled or disabled for this rule. The EdgeTraversal setting indicates that specific inbound traffic is allowed to tunnel through NATs and other edge devices using the Teredo tunneling technology. In order for this setting to work correctly, the application or service with the inbound firewall rule needs to support IPv6. The primary application of this setting allows listeners on the host to be globally addressable through a Teredo IPv6 address. New rules have the EdgeTraversal property disabled by default. + EdgeTraversal *StateManagementSetting `json:"edgeTraversal,omitempty"` + // LocalUserAuthorizations Specifies the list of authorized local users for the app container. This is a string in Security Descriptor Definition Language (SDDL) format. + LocalUserAuthorizations *string `json:"localUserAuthorizations,omitempty"` +} + +// WindowsHealthMonitoringConfiguration Windows device health monitoring configuration +type WindowsHealthMonitoringConfiguration struct { + // DeviceConfiguration is the base model of WindowsHealthMonitoringConfiguration + DeviceConfiguration + // AllowDeviceHealthMonitoring Enables device health monitoring on the device + AllowDeviceHealthMonitoring *Enablement `json:"allowDeviceHealthMonitoring,omitempty"` + // ConfigDeviceHealthMonitoringScope Specifies set of events collected from the device where health monitoring is enabled + ConfigDeviceHealthMonitoringScope *WindowsHealthMonitoringScope `json:"configDeviceHealthMonitoringScope,omitempty"` + // ConfigDeviceHealthMonitoringCustomScope Specifies custom set of events collected from the device where health monitoring is enabled + ConfigDeviceHealthMonitoringCustomScope *string `json:"configDeviceHealthMonitoringCustomScope,omitempty"` +} + +// WindowsIdentityProtectionConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by Windows Hello for Business. +type WindowsIdentityProtectionConfiguration struct { + // DeviceConfiguration is the base model of WindowsIdentityProtectionConfiguration + DeviceConfiguration + // UseSecurityKeyForSignin Boolean value used to enable the Windows Hello security key as a logon credential. + UseSecurityKeyForSignin *bool `json:"useSecurityKeyForSignin,omitempty"` + // EnhancedAntiSpoofingForFacialFeaturesEnabled Boolean value used to enable enhanced anti-spoofing for facial feature recognition on Windows Hello face authentication. + EnhancedAntiSpoofingForFacialFeaturesEnabled *bool `json:"enhancedAntiSpoofingForFacialFeaturesEnabled,omitempty"` + // PinMinimumLength Integer value that sets the minimum number of characters required for the Windows Hello for Business PIN. Valid values are 4 to 127 inclusive and less than or equal to the value set for the maximum PIN. Valid values 4 to 127 + PinMinimumLength *int `json:"pinMinimumLength,omitempty"` + // PinMaximumLength Integer value that sets the maximum number of characters allowed for the work PIN. Valid values are 4 to 127 inclusive and greater than or equal to the value set for the minimum PIN. Valid values 4 to 127 + PinMaximumLength *int `json:"pinMaximumLength,omitempty"` + // PinUppercaseCharactersUsage This value configures the use of uppercase characters in the Windows Hello for Business PIN. + PinUppercaseCharactersUsage *ConfigurationUsage `json:"pinUppercaseCharactersUsage,omitempty"` + // PinLowercaseCharactersUsage This value configures the use of lowercase characters in the Windows Hello for Business PIN. + PinLowercaseCharactersUsage *ConfigurationUsage `json:"pinLowercaseCharactersUsage,omitempty"` + // PinSpecialCharactersUsage Controls the ability to use special characters in the Windows Hello for Business PIN. + PinSpecialCharactersUsage *ConfigurationUsage `json:"pinSpecialCharactersUsage,omitempty"` + // PinExpirationInDays Integer value specifies the period (in days) that a PIN can be used before the system requires the user to change it. Valid values are 0 to 730 inclusive. Valid values 0 to 730 + PinExpirationInDays *int `json:"pinExpirationInDays,omitempty"` + // PinPreviousBlockCount Controls the ability to prevent users from using past PINs. This must be set between 0 and 50, inclusive, and the current PIN of the user is included in that count. If set to 0, previous PINs are not stored. PIN history is not preserved through a PIN reset. Valid values 0 to 50 + PinPreviousBlockCount *int `json:"pinPreviousBlockCount,omitempty"` + // PinRecoveryEnabled Boolean value that enables a user to change their PIN by using the Windows Hello for Business PIN recovery service. + PinRecoveryEnabled *bool `json:"pinRecoveryEnabled,omitempty"` + // SecurityDeviceRequired Controls whether to require a Trusted Platform Module (TPM) for provisioning Windows Hello for Business. A TPM provides an additional security benefit in that data stored on it cannot be used on other devices. If set to False, all devices can provision Windows Hello for Business even if there is not a usable TPM. + SecurityDeviceRequired *bool `json:"securityDeviceRequired,omitempty"` + // UnlockWithBiometricsEnabled Controls the use of biometric gestures, such as face and fingerprint, as an alternative to the Windows Hello for Business PIN. If set to False, biometric gestures are not allowed. Users must still configure a PIN as a backup in case of failures. + UnlockWithBiometricsEnabled *bool `json:"unlockWithBiometricsEnabled,omitempty"` + // UseCertificatesForOnPremisesAuthEnabled Boolean value that enables Windows Hello for Business to use certificates to authenticate on-premise resources. + UseCertificatesForOnPremisesAuthEnabled *bool `json:"useCertificatesForOnPremisesAuthEnabled,omitempty"` + // WindowsHelloForBusinessBlocked Boolean value that blocks Windows Hello for Business as a method for signing into Windows. + WindowsHelloForBusinessBlocked *bool `json:"windowsHelloForBusinessBlocked,omitempty"` +} + +// WindowsInformationProtection Policy for Windows information protection to configure detailed management settings +type WindowsInformationProtection struct { + // ManagedAppPolicy is the base model of WindowsInformationProtection + ManagedAppPolicy + // EnforcementLevel WIP enforcement level.See the Enum definition for supported values + EnforcementLevel *WindowsInformationProtectionEnforcementLevel `json:"enforcementLevel,omitempty"` + // EnterpriseDomain Primary enterprise domain + EnterpriseDomain *string `json:"enterpriseDomain,omitempty"` + // EnterpriseProtectedDomainNames List of enterprise domains to be protected + EnterpriseProtectedDomainNames []WindowsInformationProtectionResourceCollection `json:"enterpriseProtectedDomainNames,omitempty"` + // ProtectionUnderLockConfigRequired Specifies whether the protection under lock feature (also known as encrypt under pin) should be configured + ProtectionUnderLockConfigRequired *bool `json:"protectionUnderLockConfigRequired,omitempty"` + // DataRecoveryCertificate Specifies a recovery certificate that can be used for data recovery of encrypted files. This is the same as the data recovery agent(DRA) certificate for encrypting file system(EFS) + DataRecoveryCertificate *WindowsInformationProtectionDataRecoveryCertificate `json:"dataRecoveryCertificate,omitempty"` + // RevokeOnUnenrollDisabled This policy controls whether to revoke the WIP keys when a device unenrolls from the management service. If set to 1 (Don't revoke keys), the keys will not be revoked and the user will continue to have access to protected files after unenrollment. If the keys are not revoked, there will be no revoked file cleanup subsequently. + RevokeOnUnenrollDisabled *bool `json:"revokeOnUnenrollDisabled,omitempty"` + // RightsManagementServicesTemplateID TemplateID GUID to use for RMS encryption. The RMS template allows the IT admin to configure the details about who has access to RMS-protected file and how long they have access + RightsManagementServicesTemplateID *UUID `json:"rightsManagementServicesTemplateId,omitempty"` + // AzureRightsManagementServicesAllowed Specifies whether to allow Azure RMS encryption for WIP + AzureRightsManagementServicesAllowed *bool `json:"azureRightsManagementServicesAllowed,omitempty"` + // IconsVisible Determines whether overlays are added to icons for WIP protected files in Explorer and enterprise only app tiles in the Start menu. Starting in Windows 10, version 1703 this setting also configures the visibility of the WIP icon in the title bar of a WIP-protected app + IconsVisible *bool `json:"iconsVisible,omitempty"` + // ProtectedApps Protected applications can access enterprise data and the data handled by those applications are protected with encryption + ProtectedApps []WindowsInformationProtectionApp `json:"protectedApps,omitempty"` + // ExemptApps Exempt applications can also access enterprise data, but the data handled by those applications are not protected. This is because some critical enterprise applications may have compatibility problems with encrypted data. + ExemptApps []WindowsInformationProtectionApp `json:"exemptApps,omitempty"` + // EnterpriseNetworkDomainNames This is the list of domains that comprise the boundaries of the enterprise. Data from one of these domains that is sent to a device will be considered enterprise data and protected These locations will be considered a safe destination for enterprise data to be shared to + EnterpriseNetworkDomainNames []WindowsInformationProtectionResourceCollection `json:"enterpriseNetworkDomainNames,omitempty"` + // EnterpriseProxiedDomains Contains a list of Enterprise resource domains hosted in the cloud that need to be protected. Connections to these resources are considered enterprise data. If a proxy is paired with a cloud resource, traffic to the cloud resource will be routed through the enterprise network via the denoted proxy server (on Port 80). A proxy server used for this purpose must also be configured using the EnterpriseInternalProxyServers policy + EnterpriseProxiedDomains []WindowsInformationProtectionProxiedDomainCollection `json:"enterpriseProxiedDomains,omitempty"` + // EnterpriseIPRanges Sets the enterprise IP ranges that define the computers in the enterprise network. Data that comes from those computers will be considered part of the enterprise and protected. These locations will be considered a safe destination for enterprise data to be shared to + EnterpriseIPRanges []WindowsInformationProtectionIPRangeCollection `json:"enterpriseIPRanges,omitempty"` + // EnterpriseIPRangesAreAuthoritative Boolean value that tells the client to accept the configured list and not to use heuristics to attempt to find other subnets. Default is false + EnterpriseIPRangesAreAuthoritative *bool `json:"enterpriseIPRangesAreAuthoritative,omitempty"` + // EnterpriseProxyServers This is a list of proxy servers. Any server not on this list is considered non-enterprise + EnterpriseProxyServers []WindowsInformationProtectionResourceCollection `json:"enterpriseProxyServers,omitempty"` + // EnterpriseInternalProxyServers This is the comma-separated list of internal proxy servers. For example, "157.54.14.28, 157.54.11.118, 10.202.14.167, 157.53.14.163, 157.69.210.59". These proxies have been configured by the admin to connect to specific resources on the Internet. They are considered to be enterprise network locations. The proxies are only leveraged in configuring the EnterpriseProxiedDomains policy to force traffic to the matched domains through these proxies + EnterpriseInternalProxyServers []WindowsInformationProtectionResourceCollection `json:"enterpriseInternalProxyServers,omitempty"` + // EnterpriseProxyServersAreAuthoritative Boolean value that tells the client to accept the configured list of proxies and not try to detect other work proxies. Default is false + EnterpriseProxyServersAreAuthoritative *bool `json:"enterpriseProxyServersAreAuthoritative,omitempty"` + // NeutralDomainResources List of domain names that can used for work or personal resource + NeutralDomainResources []WindowsInformationProtectionResourceCollection `json:"neutralDomainResources,omitempty"` + // IndexingEncryptedStoresOrItemsBlocked This switch is for the Windows Search Indexer, to allow or disallow indexing of items + IndexingEncryptedStoresOrItemsBlocked *bool `json:"indexingEncryptedStoresOrItemsBlocked,omitempty"` + // SmbAutoEncryptedFileExtensions Specifies a list of file extensions, so that files with these extensions are encrypted when copying from an SMB share within the corporate boundary + SmbAutoEncryptedFileExtensions []WindowsInformationProtectionResourceCollection `json:"smbAutoEncryptedFileExtensions,omitempty"` + // IsAssigned Indicates if the policy is deployed to any inclusion groups or not. + IsAssigned *bool `json:"isAssigned,omitempty"` + // ProtectedAppLockerFiles undocumented + ProtectedAppLockerFiles []WindowsInformationProtectionAppLockerFile `json:"protectedAppLockerFiles,omitempty"` + // ExemptAppLockerFiles undocumented + ExemptAppLockerFiles []WindowsInformationProtectionAppLockerFile `json:"exemptAppLockerFiles,omitempty"` + // Assignments undocumented + Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"` +} + +// WindowsInformationProtectionApp undocumented +type WindowsInformationProtectionApp struct { + // Object is the base model of WindowsInformationProtectionApp + Object + // DisplayName App display name. + DisplayName *string `json:"displayName,omitempty"` + // Description The app's description. + Description *string `json:"description,omitempty"` + // PublisherName The publisher name + PublisherName *string `json:"publisherName,omitempty"` + // ProductName The product name. + ProductName *string `json:"productName,omitempty"` + // Denied If true, app is denied protection or exemption. + Denied *bool `json:"denied,omitempty"` +} + +// WindowsInformationProtectionAppLearningSummary Windows Information Protection AppLearning Summary entity. +type WindowsInformationProtectionAppLearningSummary struct { + // Entity is the base model of WindowsInformationProtectionAppLearningSummary + Entity + // ApplicationName Application Name + ApplicationName *string `json:"applicationName,omitempty"` + // ApplicationType Application Type + ApplicationType *ApplicationType `json:"applicationType,omitempty"` + // DeviceCount Device Count + DeviceCount *int `json:"deviceCount,omitempty"` +} + +// WindowsInformationProtectionAppLockerFile Windows Information Protection AppLocker File +type WindowsInformationProtectionAppLockerFile struct { + // Entity is the base model of WindowsInformationProtectionAppLockerFile + Entity + // DisplayName The friendly name + DisplayName *string `json:"displayName,omitempty"` + // FileHash SHA256 hash of the file + FileHash *string `json:"fileHash,omitempty"` + // File File as a byte array + File *Binary `json:"file,omitempty"` + // Version Version of the entity. + Version *string `json:"version,omitempty"` +} + +// WindowsInformationProtectionDataRecoveryCertificate undocumented +type WindowsInformationProtectionDataRecoveryCertificate struct { + // Object is the base model of WindowsInformationProtectionDataRecoveryCertificate + Object + // SubjectName Data recovery Certificate subject name + SubjectName *string `json:"subjectName,omitempty"` + // Description Data recovery Certificate description + Description *string `json:"description,omitempty"` + // ExpirationDateTime Data recovery Certificate expiration datetime + ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"` + // Certificate Data recovery Certificate + Certificate *Binary `json:"certificate,omitempty"` +} + +// WindowsInformationProtectionDesktopApp undocumented +type WindowsInformationProtectionDesktopApp struct { + // WindowsInformationProtectionApp is the base model of WindowsInformationProtectionDesktopApp + WindowsInformationProtectionApp + // BinaryName The binary name. + BinaryName *string `json:"binaryName,omitempty"` + // BinaryVersionLow The lower binary version. + BinaryVersionLow *string `json:"binaryVersionLow,omitempty"` + // BinaryVersionHigh The high binary version. + BinaryVersionHigh *string `json:"binaryVersionHigh,omitempty"` +} + +// WindowsInformationProtectionDeviceRegistration Represents device registration records for Bring-Your-Own-Device(BYOD) Windows devices. +type WindowsInformationProtectionDeviceRegistration struct { + // Entity is the base model of WindowsInformationProtectionDeviceRegistration + Entity + // UserID UserId associated with this device registration record. + UserID *string `json:"userId,omitempty"` + // DeviceRegistrationID Device identifier for this device registration record. + DeviceRegistrationID *string `json:"deviceRegistrationId,omitempty"` + // DeviceName Device name. + DeviceName *string `json:"deviceName,omitempty"` + // DeviceType Device type, for example, Windows laptop VS Windows phone. + DeviceType *string `json:"deviceType,omitempty"` + // DeviceMacAddress Device Mac address. + DeviceMacAddress *string `json:"deviceMacAddress,omitempty"` + // LastCheckInDateTime Last checkin time of the device. + LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"` +} + +// WindowsInformationProtectionIPRangeCollection undocumented +type WindowsInformationProtectionIPRangeCollection struct { + // Object is the base model of WindowsInformationProtectionIPRangeCollection + Object + // DisplayName Display name + DisplayName *string `json:"displayName,omitempty"` + // Ranges Collection of ip ranges + Ranges []IPRange `json:"ranges,omitempty"` +} + +// WindowsInformationProtectionNetworkLearningSummary Windows Information Protection Network learning Summary entity. +type WindowsInformationProtectionNetworkLearningSummary struct { + // Entity is the base model of WindowsInformationProtectionNetworkLearningSummary + Entity + // URL Website url + URL *string `json:"url,omitempty"` + // DeviceCount Device Count + DeviceCount *int `json:"deviceCount,omitempty"` +} + +// WindowsInformationProtectionPolicy Policy for Windows information protection without MDM +type WindowsInformationProtectionPolicy struct { + // WindowsInformationProtection is the base model of WindowsInformationProtectionPolicy + WindowsInformationProtection + // RevokeOnMDMHandoffDisabled New property in RS2, pending documentation + RevokeOnMDMHandoffDisabled *bool `json:"revokeOnMdmHandoffDisabled,omitempty"` + // MDMEnrollmentURL Enrollment url for the MDM + MDMEnrollmentURL *string `json:"mdmEnrollmentUrl,omitempty"` + // WindowsHelloForBusinessBlocked Boolean value that sets Windows Hello for Business as a method for signing into Windows. + WindowsHelloForBusinessBlocked *bool `json:"windowsHelloForBusinessBlocked,omitempty"` + // PinMinimumLength Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest. + PinMinimumLength *int `json:"pinMinimumLength,omitempty"` + // PinUppercaseLetters Integer value that configures the use of uppercase letters in the Windows Hello for Business PIN. Default is NotAllow. + PinUppercaseLetters *WindowsInformationProtectionPinCharacterRequirements `json:"pinUppercaseLetters,omitempty"` + // PinLowercaseLetters Integer value that configures the use of lowercase letters in the Windows Hello for Business PIN. Default is NotAllow. + PinLowercaseLetters *WindowsInformationProtectionPinCharacterRequirements `json:"pinLowercaseLetters,omitempty"` + // PinSpecialCharacters Integer value that configures the use of special characters in the Windows Hello for Business PIN. Valid special characters for Windows Hello for Business PIN gestures include: ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~. Default is NotAllow. + PinSpecialCharacters *WindowsInformationProtectionPinCharacterRequirements `json:"pinSpecialCharacters,omitempty"` + // PinExpirationDays Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0. + PinExpirationDays *int `json:"pinExpirationDays,omitempty"` + // NumberOfPastPinsRemembered Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0. + NumberOfPastPinsRemembered *int `json:"numberOfPastPinsRemembered,omitempty"` + // PasswordMaximumAttemptCount The number of authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 <= X <= 16 for desktop and 0 <= X <= 999 for mobile devices. + PasswordMaximumAttemptCount *int `json:"passwordMaximumAttemptCount,omitempty"` + // MinutesOfInactivityBeforeDeviceLock Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 <= X <= 999. + MinutesOfInactivityBeforeDeviceLock *int `json:"minutesOfInactivityBeforeDeviceLock,omitempty"` + // DaysWithoutContactBeforeUnenroll Offline interval before app data is wiped (days) + DaysWithoutContactBeforeUnenroll *int `json:"daysWithoutContactBeforeUnenroll,omitempty"` +} + +// WindowsInformationProtectionProxiedDomainCollection undocumented +type WindowsInformationProtectionProxiedDomainCollection struct { + // Object is the base model of WindowsInformationProtectionProxiedDomainCollection + Object + // DisplayName Display name + DisplayName *string `json:"displayName,omitempty"` + // ProxiedDomains Collection of proxied domains + ProxiedDomains []ProxiedDomain `json:"proxiedDomains,omitempty"` +} + +// WindowsInformationProtectionResourceCollection undocumented +type WindowsInformationProtectionResourceCollection struct { + // Object is the base model of WindowsInformationProtectionResourceCollection + Object + // DisplayName Display name + DisplayName *string `json:"displayName,omitempty"` + // Resources Collection of resources + Resources []string `json:"resources,omitempty"` +} + +// WindowsInformationProtectionStoreApp undocumented +type WindowsInformationProtectionStoreApp struct { + // WindowsInformationProtectionApp is the base model of WindowsInformationProtectionStoreApp + WindowsInformationProtectionApp +} + +// WindowsInformationProtectionWipeAction Represents wipe requests issued by tenant admin for Bring-Your-Own-Device(BYOD) Windows devices. +type WindowsInformationProtectionWipeAction struct { + // Entity is the base model of WindowsInformationProtectionWipeAction + Entity + // Status Wipe action status. + Status *ActionState `json:"status,omitempty"` + // TargetedUserID The UserId being targeted by this wipe action. + TargetedUserID *string `json:"targetedUserId,omitempty"` + // TargetedDeviceRegistrationID The DeviceRegistrationId being targeted by this wipe action. + TargetedDeviceRegistrationID *string `json:"targetedDeviceRegistrationId,omitempty"` + // TargetedDeviceName Targeted device name. + TargetedDeviceName *string `json:"targetedDeviceName,omitempty"` + // TargetedDeviceMacAddress Targeted device Mac address. + TargetedDeviceMacAddress *string `json:"targetedDeviceMacAddress,omitempty"` + // LastCheckInDateTime Last checkin time of the device that was targeted by this wipe action. + LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"` +} + +// WindowsKioskActiveDirectoryGroup undocumented +type WindowsKioskActiveDirectoryGroup struct { + // WindowsKioskUser is the base model of WindowsKioskActiveDirectoryGroup + WindowsKioskUser + // GroupName The name of the AD group that will be locked to this kiosk configuration + GroupName *string `json:"groupName,omitempty"` +} + +// WindowsKioskAppBase undocumented +type WindowsKioskAppBase struct { + // Object is the base model of WindowsKioskAppBase + Object + // StartLayoutTileSize The app tile size for the start layout + StartLayoutTileSize *WindowsAppStartLayoutTileSize `json:"startLayoutTileSize,omitempty"` + // Name Represents the friendly name of an app + Name *string `json:"name,omitempty"` + // AppType The app type + AppType *WindowsKioskAppType `json:"appType,omitempty"` + // AutoLaunch Allow the app to be auto-launched in multi-app kiosk mode + AutoLaunch *bool `json:"autoLaunch,omitempty"` +} + +// WindowsKioskAppConfiguration undocumented +type WindowsKioskAppConfiguration struct { + // Object is the base model of WindowsKioskAppConfiguration + Object +} + +// WindowsKioskAutologon undocumented +type WindowsKioskAutologon struct { + // WindowsKioskUser is the base model of WindowsKioskAutologon + WindowsKioskUser +} + +// WindowsKioskAzureADGroup undocumented +type WindowsKioskAzureADGroup struct { + // WindowsKioskUser is the base model of WindowsKioskAzureADGroup + WindowsKioskUser + // DisplayName The display name of the AzureAD group that will be locked to this kiosk configuration + DisplayName *string `json:"displayName,omitempty"` + // GroupID The ID of the AzureAD group that will be locked to this kiosk configuration + GroupID *string `json:"groupId,omitempty"` +} + +// WindowsKioskAzureADUser undocumented +type WindowsKioskAzureADUser struct { + // WindowsKioskUser is the base model of WindowsKioskAzureADUser + WindowsKioskUser + // UserID The ID of the AzureAD user that will be locked to this kiosk configuration + UserID *string `json:"userId,omitempty"` + // UserPrincipalName The user accounts that will be locked to this kiosk configuration + UserPrincipalName *string `json:"userPrincipalName,omitempty"` +} + +// WindowsKioskConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by the kiosk resource. +type WindowsKioskConfiguration struct { + // DeviceConfiguration is the base model of WindowsKioskConfiguration + DeviceConfiguration + // KioskProfiles This policy setting allows to define a list of Kiosk profiles for a Kiosk configuration. This collection can contain a maximum of 3 elements. + KioskProfiles []WindowsKioskProfile `json:"kioskProfiles,omitempty"` + // KioskBrowserDefaultURL Specify the default URL the browser should navigate to on launch. + KioskBrowserDefaultURL *string `json:"kioskBrowserDefaultUrl,omitempty"` + // KioskBrowserEnableHomeButton Enable the kiosk browser's home button. By default, the home button is disabled. + KioskBrowserEnableHomeButton *bool `json:"kioskBrowserEnableHomeButton,omitempty"` + // KioskBrowserEnableNavigationButtons Enable the kiosk browser's navigation buttons(forward/back). By default, the navigation buttons are disabled. + KioskBrowserEnableNavigationButtons *bool `json:"kioskBrowserEnableNavigationButtons,omitempty"` + // KioskBrowserEnableEndSessionButton Enable the kiosk browser's end session button. By default, the end session button is disabled. + KioskBrowserEnableEndSessionButton *bool `json:"kioskBrowserEnableEndSessionButton,omitempty"` + // KioskBrowserRestartOnIdleTimeInMinutes Specify the number of minutes the session is idle until the kiosk browser restarts in a fresh state. Valid values are 1-1440. Valid values 1 to 1440 + KioskBrowserRestartOnIdleTimeInMinutes *int `json:"kioskBrowserRestartOnIdleTimeInMinutes,omitempty"` + // KioskBrowserBlockedURLs Specify URLs that the kiosk browsers should not navigate to + KioskBrowserBlockedURLs []string `json:"kioskBrowserBlockedURLs,omitempty"` + // KioskBrowserBlockedURLExceptions Specify URLs that the kiosk browser is allowed to navigate to + KioskBrowserBlockedURLExceptions []string `json:"kioskBrowserBlockedUrlExceptions,omitempty"` + // EdgeKioskEnablePublicBrowsing Enable public browsing kiosk mode for the Microsoft Edge browser. The Default is false. + EdgeKioskEnablePublicBrowsing *bool `json:"edgeKioskEnablePublicBrowsing,omitempty"` + // WindowsKioskForceUpdateSchedule force update schedule for Kiosk devices. + WindowsKioskForceUpdateSchedule *WindowsKioskForceUpdateSchedule `json:"windowsKioskForceUpdateSchedule,omitempty"` +} + +// WindowsKioskDesktopApp undocumented +type WindowsKioskDesktopApp struct { + // WindowsKioskAppBase is the base model of WindowsKioskDesktopApp + WindowsKioskAppBase + // Path Define the path of a desktop app + Path *string `json:"path,omitempty"` + // DesktopApplicationID Define the DesktopApplicationID of the app + DesktopApplicationID *string `json:"desktopApplicationId,omitempty"` + // DesktopApplicationLinkPath Define the DesktopApplicationLinkPath of the app + DesktopApplicationLinkPath *string `json:"desktopApplicationLinkPath,omitempty"` +} + +// WindowsKioskForceUpdateSchedule undocumented +type WindowsKioskForceUpdateSchedule struct { + // Object is the base model of WindowsKioskForceUpdateSchedule + Object + // StartDateTime The start time for the force restart. + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // Recurrence Recurrence schedule. + Recurrence *Windows10AppsUpdateRecurrence `json:"recurrence,omitempty"` + // DayofWeek Day of week. + DayofWeek *DayOfWeek `json:"dayofWeek,omitempty"` + // DayofMonth Day of month. Valid values 1 to 31 + DayofMonth *int `json:"dayofMonth,omitempty"` + // RunImmediatelyIfAfterStartDateTime If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence. + RunImmediatelyIfAfterStartDateTime *bool `json:"runImmediatelyIfAfterStartDateTime,omitempty"` +} + +// WindowsKioskLocalGroup undocumented +type WindowsKioskLocalGroup struct { + // WindowsKioskUser is the base model of WindowsKioskLocalGroup + WindowsKioskUser + // GroupName The name of the local group that will be locked to this kiosk configuration + GroupName *string `json:"groupName,omitempty"` +} + +// WindowsKioskLocalUser undocumented +type WindowsKioskLocalUser struct { + // WindowsKioskUser is the base model of WindowsKioskLocalUser + WindowsKioskUser + // UserName The local user that will be locked to this kiosk configuration + UserName *string `json:"userName,omitempty"` +} + +// WindowsKioskMultipleApps undocumented +type WindowsKioskMultipleApps struct { + // WindowsKioskAppConfiguration is the base model of WindowsKioskMultipleApps + WindowsKioskAppConfiguration + // Apps These are the only Windows Store Apps that will be available to launch from the Start menu. This collection can contain a maximum of 128 elements. + Apps []WindowsKioskAppBase `json:"apps,omitempty"` + // ShowTaskBar This setting allows the admin to specify whether the Task Bar is shown or not. + ShowTaskBar *bool `json:"showTaskBar,omitempty"` + // AllowAccessToDownloadsFolder This setting allows access to Downloads folder in file explorer. + AllowAccessToDownloadsFolder *bool `json:"allowAccessToDownloadsFolder,omitempty"` + // DisallowDesktopApps This setting indicates that desktop apps are allowed. Default to true. + DisallowDesktopApps *bool `json:"disallowDesktopApps,omitempty"` + // StartMenuLayoutXML Allows admins to override the default Start layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format. + StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"` +} + +// WindowsKioskProfile undocumented +type WindowsKioskProfile struct { + // Object is the base model of WindowsKioskProfile + Object + // ProfileID Key of the entity. + ProfileID *string `json:"profileId,omitempty"` + // ProfileName This is a friendly name used to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned. + ProfileName *string `json:"profileName,omitempty"` + // AppConfiguration The App configuration that will be used for this kiosk configuration. + AppConfiguration *WindowsKioskAppConfiguration `json:"appConfiguration,omitempty"` + // UserAccountsConfiguration The user accounts that will be locked to this kiosk configuration. This collection can contain a maximum of 100 elements. + UserAccountsConfiguration []WindowsKioskUser `json:"userAccountsConfiguration,omitempty"` +} + +// WindowsKioskSingleUWPApp undocumented +type WindowsKioskSingleUWPApp struct { + // WindowsKioskAppConfiguration is the base model of WindowsKioskSingleUWPApp + WindowsKioskAppConfiguration + // UwpApp This is the only Application User Model ID (AUMID) that will be available to launch use while in Kiosk Mode + UwpApp *WindowsKioskUWPApp `json:"uwpApp,omitempty"` +} + +// WindowsKioskUWPApp undocumented +type WindowsKioskUWPApp struct { + // WindowsKioskAppBase is the base model of WindowsKioskUWPApp + WindowsKioskAppBase + // AppUserModelID This is the only Application User Model ID (AUMID) that will be available to launch use while in Kiosk Mode + AppUserModelID *string `json:"appUserModelId,omitempty"` + // AppID This references an Intune App that will be target to the same assignments as Kiosk configuration + AppID *string `json:"appId,omitempty"` + // ContainedAppID This references an contained App from an Intune App + ContainedAppID *string `json:"containedAppId,omitempty"` +} + +// WindowsKioskUser undocumented +type WindowsKioskUser struct { + // Object is the base model of WindowsKioskUser + Object +} + +// WindowsKioskVisitor undocumented +type WindowsKioskVisitor struct { + // WindowsKioskUser is the base model of WindowsKioskVisitor + WindowsKioskUser +} + +// WindowsMalwareCategoryCount undocumented +type WindowsMalwareCategoryCount struct { + // Object is the base model of WindowsMalwareCategoryCount + Object + // Category Malware category + Category *WindowsMalwareCategory `json:"category,omitempty"` + // DeviceCount Count of devices with malware detections for this malware category + DeviceCount *int `json:"deviceCount,omitempty"` + // LastUpdateDateTime The Timestamp of the last update for the device count in UTC + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` +} + +// WindowsMalwareExecutionStateCount undocumented +type WindowsMalwareExecutionStateCount struct { + // Object is the base model of WindowsMalwareExecutionStateCount + Object + // ExecutionState Malware execution state + ExecutionState *WindowsMalwareExecutionState `json:"executionState,omitempty"` + // DeviceCount Count of devices with malware detections for this malware execution state + DeviceCount *int `json:"deviceCount,omitempty"` + // LastUpdateDateTime The Timestamp of the last update for the device count in UTC + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` +} + +// WindowsMalwareInformation Malware information entity. +type WindowsMalwareInformation struct { + // Entity is the base model of WindowsMalwareInformation + Entity + // DisplayName Malware name + DisplayName *string `json:"displayName,omitempty"` + // AdditionalInformationURL Information URL to learn more about the malware + AdditionalInformationURL *string `json:"additionalInformationUrl,omitempty"` + // Severity Severity of the malware + Severity *WindowsMalwareSeverity `json:"severity,omitempty"` + // Category Category of the malware + Category *WindowsMalwareCategory `json:"category,omitempty"` + // LastDetectionDateTime The last time the malware is detected + LastDetectionDateTime *time.Time `json:"lastDetectionDateTime,omitempty"` + // WindowsDevicesProtectionState undocumented + WindowsDevicesProtectionState []WindowsProtectionState `json:"windowsDevicesProtectionState,omitempty"` +} + +// WindowsMalwareNameCount undocumented +type WindowsMalwareNameCount struct { + // Object is the base model of WindowsMalwareNameCount + Object + // MalwareIdentifier The unique identifier. This is malware identifier + MalwareIdentifier *string `json:"malwareIdentifier,omitempty"` + // Name Malware name + Name *string `json:"name,omitempty"` + // DeviceCount Count of devices with malware dectected for this malware + DeviceCount *int `json:"deviceCount,omitempty"` + // LastUpdateDateTime The Timestamp of the last update for the device count in UTC + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` +} + +// WindowsMalwareOverview undocumented +type WindowsMalwareOverview struct { + // Object is the base model of WindowsMalwareOverview + Object + // MalwareDetectedDeviceCount Count of devices with malware detected in the last 30 days + MalwareDetectedDeviceCount *int `json:"malwareDetectedDeviceCount,omitempty"` + // MalwareStateSummary Count of devices per malware state + MalwareStateSummary []WindowsMalwareStateCount `json:"malwareStateSummary,omitempty"` + // MalwareExecutionStateSummary Count of devices per malware execution state + MalwareExecutionStateSummary []WindowsMalwareExecutionStateCount `json:"malwareExecutionStateSummary,omitempty"` + // MalwareCategorySummary Count of devices per malware category + MalwareCategorySummary []WindowsMalwareCategoryCount `json:"malwareCategorySummary,omitempty"` + // MalwareNameSummary Count of devices per malware + MalwareNameSummary []WindowsMalwareNameCount `json:"malwareNameSummary,omitempty"` + // OsVersionsSummary Count of devices with malware per windows OS version + OsVersionsSummary []OsVersionCount `json:"osVersionsSummary,omitempty"` +} + +// WindowsMalwareStateCount undocumented +type WindowsMalwareStateCount struct { + // Object is the base model of WindowsMalwareStateCount + Object + // State Malware Threat State + State *WindowsMalwareThreatState `json:"state,omitempty"` + // DeviceCount Count of devices with malware detections for this malware State + DeviceCount *int `json:"deviceCount,omitempty"` + // LastUpdateDateTime The Timestamp of the last update for the device count in UTC + LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"` +} + +// WindowsManagedDevice Windows devices that are managed or pre-enrolled through Intune +type WindowsManagedDevice struct { + // ManagedDevice is the base model of WindowsManagedDevice + ManagedDevice +} + +// WindowsManagementApp Windows management app entity. +type WindowsManagementApp struct { + // Entity is the base model of WindowsManagementApp + Entity + // AvailableVersion Windows management app available version. + AvailableVersion *string `json:"availableVersion,omitempty"` + // HealthStates undocumented + HealthStates []WindowsManagementAppHealthState `json:"healthStates,omitempty"` +} + +// WindowsManagementAppHealthState Windows management app health state entity. +type WindowsManagementAppHealthState struct { + // Entity is the base model of WindowsManagementAppHealthState + Entity + // HealthState Windows management app health state. + HealthState *HealthState `json:"healthState,omitempty"` + // InstalledVersion Windows management app installed version. + InstalledVersion *string `json:"installedVersion,omitempty"` + // LastCheckInDateTime Windows management app last check-in time. + LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"` + // DeviceName Name of the device on which Windows management app is installed. + DeviceName *string `json:"deviceName,omitempty"` + // DeviceOSVersion Windows 10 OS version of the device on which Windows management app is installed. + DeviceOSVersion *string `json:"deviceOSVersion,omitempty"` +} + +// WindowsManagementAppHealthSummary Contains properties for the health summary of the Windows management app. +type WindowsManagementAppHealthSummary struct { + // Entity is the base model of WindowsManagementAppHealthSummary + Entity + // HealthyDeviceCount Healthy device count. + HealthyDeviceCount *int `json:"healthyDeviceCount,omitempty"` + // UnhealthyDeviceCount Unhealthy device count. + UnhealthyDeviceCount *int `json:"unhealthyDeviceCount,omitempty"` + // UnknownDeviceCount Unknown device count. + UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"` +} + +// WindowsMicrosoftEdgeApp Contains properties and inherited properties for the Microsoft Edge app on Windows. +type WindowsMicrosoftEdgeApp struct { + // MobileApp is the base model of WindowsMicrosoftEdgeApp + MobileApp + // Channel The channel to install on target devices. + Channel *MicrosoftEdgeChannel `json:"channel,omitempty"` +} + +// WindowsMinimumOperatingSystem undocumented +type WindowsMinimumOperatingSystem struct { + // Object is the base model of WindowsMinimumOperatingSystem + Object + // V8_0 Windows version 8.0 or later. + V8_0 *bool `json:"v8_0,omitempty"` + // V8_1 Windows version 8.1 or later. + V8_1 *bool `json:"v8_1,omitempty"` + // V10_0 Windows version 10.0 or later. + V10_0 *bool `json:"v10_0,omitempty"` + // V10_1607 Windows 10 1607 or later. + V10_1607 *bool `json:"v10_1607,omitempty"` + // V10_1703 Windows 10 1703 or later. + V10_1703 *bool `json:"v10_1703,omitempty"` + // V10_1709 Windows 10 1709 or later. + V10_1709 *bool `json:"v10_1709,omitempty"` + // V10_1803 Windows 10 1803 or later. + V10_1803 *bool `json:"v10_1803,omitempty"` + // V10_1809 Windows 10 1809 or later. + V10_1809 *bool `json:"v10_1809,omitempty"` + // V10_1903 Windows 10 1903 or later. + V10_1903 *bool `json:"v10_1903,omitempty"` +} + +// WindowsMobileMSI Contains properties and inherited properties for Windows Mobile MSI Line Of Business apps. +type WindowsMobileMSI struct { + // MobileLobApp is the base model of WindowsMobileMSI + MobileLobApp + // CommandLine The command line. + CommandLine *string `json:"commandLine,omitempty"` + // ProductCode The product code. + ProductCode *string `json:"productCode,omitempty"` + // ProductVersion The product version of Windows Mobile MSI Line of Business (LoB) app. + ProductVersion *string `json:"productVersion,omitempty"` + // IgnoreVersionDetection A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for Windows Mobile MSI Line of Business (LoB) apps that use a self update feature. + IgnoreVersionDetection *bool `json:"ignoreVersionDetection,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` + // UseDeviceContext Indicates whether to install a dual-mode MSI in the device context. If true, app will be installed for all users. If false, app will be installed per-user. If null, service will use the MSI package's default install context. In case of dual-mode MSI, this default will be per-user. Cannot be set for non-dual-mode apps. Cannot be changed after initial creation of the application. + UseDeviceContext *bool `json:"useDeviceContext,omitempty"` +} + +// WindowsNetworkIsolationPolicy undocumented +type WindowsNetworkIsolationPolicy struct { + // Object is the base model of WindowsNetworkIsolationPolicy + Object + // EnterpriseNetworkDomainNames This is the list of domains that comprise the boundaries of the enterprise. Data from one of these domains that is sent to a device will be considered enterprise data and protected. These locations will be considered a safe destination for enterprise data to be shared to. + EnterpriseNetworkDomainNames []string `json:"enterpriseNetworkDomainNames,omitempty"` + // EnterpriseCloudResources Contains a list of enterprise resource domains hosted in the cloud that need to be protected. Connections to these resources are considered enterprise data. If a proxy is paired with a cloud resource, traffic to the cloud resource will be routed through the enterprise network via the denoted proxy server (on Port 80). A proxy server used for this purpose must also be configured using the EnterpriseInternalProxyServers policy. This collection can contain a maximum of 500 elements. + EnterpriseCloudResources []ProxiedDomain `json:"enterpriseCloudResources,omitempty"` + // EnterpriseIPRanges Sets the enterprise IP ranges that define the computers in the enterprise network. Data that comes from those computers will be considered part of the enterprise and protected. These locations will be considered a safe destination for enterprise data to be shared to. This collection can contain a maximum of 500 elements. + EnterpriseIPRanges []IPRange `json:"enterpriseIPRanges,omitempty"` + // EnterpriseInternalProxyServers This is the comma-separated list of internal proxy servers. For example, "157.54.14.28, 157.54.11.118, 10.202.14.167, 157.53.14.163, 157.69.210.59". These proxies have been configured by the admin to connect to specific resources on the Internet. They are considered to be enterprise network locations. The proxies are only leveraged in configuring the EnterpriseCloudResources policy to force traffic to the matched cloud resources through these proxies. + EnterpriseInternalProxyServers []string `json:"enterpriseInternalProxyServers,omitempty"` + // EnterpriseIPRangesAreAuthoritative Boolean value that tells the client to accept the configured list and not to use heuristics to attempt to find other subnets. Default is false. + EnterpriseIPRangesAreAuthoritative *bool `json:"enterpriseIPRangesAreAuthoritative,omitempty"` + // EnterpriseProxyServers This is a list of proxy servers. Any server not on this list is considered non-enterprise. + EnterpriseProxyServers []string `json:"enterpriseProxyServers,omitempty"` + // EnterpriseProxyServersAreAuthoritative Boolean value that tells the client to accept the configured list of proxies and not try to detect other work proxies. Default is false + EnterpriseProxyServersAreAuthoritative *bool `json:"enterpriseProxyServersAreAuthoritative,omitempty"` + // NeutralDomainResources List of domain names that can used for work or personal resource. + NeutralDomainResources []string `json:"neutralDomainResources,omitempty"` +} + +// WindowsOfficeClientConfiguration undocumented +type WindowsOfficeClientConfiguration struct { + // OfficeClientConfiguration is the base model of WindowsOfficeClientConfiguration + OfficeClientConfiguration +} + +// WindowsOfficeClientSecurityConfiguration undocumented +type WindowsOfficeClientSecurityConfiguration struct { + // OfficeClientConfiguration is the base model of WindowsOfficeClientSecurityConfiguration + OfficeClientConfiguration +} + +// WindowsPackageInformation undocumented +type WindowsPackageInformation struct { + // Object is the base model of WindowsPackageInformation + Object + // ApplicableArchitecture The Windows architecture for which this app can run on. + ApplicableArchitecture *WindowsArchitecture `json:"applicableArchitecture,omitempty"` + // DisplayName The Display Name. + DisplayName *string `json:"displayName,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // IdentityPublisher The Identity Publisher. + IdentityPublisher *string `json:"identityPublisher,omitempty"` + // IdentityResourceIdentifier The Identity Resource Identifier. + IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"` + // IdentityVersion The Identity Version. + IdentityVersion *string `json:"identityVersion,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` +} + +// WindowsPhone81AppX Contains properties and inherited properties for Windows Phone 8.1 AppX Line Of Business apps. +type WindowsPhone81AppX struct { + // MobileLobApp is the base model of WindowsPhone81AppX + MobileLobApp + // ApplicableArchitectures The Windows architecture(s) for which this app can run on. + ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // IdentityPublisherHash The Identity Publisher Hash. + IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"` + // IdentityResourceIdentifier The Identity Resource Identifier. + IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // PhoneProductIdentifier The Phone Product Identifier. + PhoneProductIdentifier *string `json:"phoneProductIdentifier,omitempty"` + // PhonePublisherID The Phone Publisher Id. + PhonePublisherID *string `json:"phonePublisherId,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// WindowsPhone81AppXBundle Contains properties and inherited properties for Windows Phone 8.1 AppX Bundle Line Of Business apps. +type WindowsPhone81AppXBundle struct { + // WindowsPhone81AppX is the base model of WindowsPhone81AppXBundle + WindowsPhone81AppX + // AppXPackageInformationList The list of AppX Package Information. + AppXPackageInformationList []WindowsPackageInformation `json:"appXPackageInformationList,omitempty"` +} + +// WindowsPhone81CertificateProfileBase Base Windows Phone 8.1+ certificate profile. +type WindowsPhone81CertificateProfileBase struct { + // DeviceConfiguration is the base model of WindowsPhone81CertificateProfileBase + DeviceConfiguration + // RenewalThresholdPercentage Certificate renewal threshold percentage. + RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"` + // KeyStorageProvider Key Storage Provider (KSP). + KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"` + // SubjectNameFormat Certificate Subject Name Format. + SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"` + // SubjectAlternativeNameType Certificate Subject Alternative Name Type. + SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"` + // CertificateValidityPeriodValue Value for the Certificate Validtiy Period. + CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"` + // CertificateValidityPeriodScale Scale for the Certificate Validity Period. + CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` +} + +// WindowsPhone81CompliancePolicy This class contains compliance settings for Windows 8.1 Mobile. +type WindowsPhone81CompliancePolicy struct { + // DeviceCompliancePolicy is the base model of WindowsPhone81CompliancePolicy + DeviceCompliancePolicy + // PasswordBlockSimple Whether or not to block syncing the calendar. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays Number of days before the password expires. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of passwords. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordRequired Whether or not to require a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // OsMinimumVersion Minimum Windows Phone version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Windows Phone version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // StorageRequireEncryption Require encryption on windows phone devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` +} + +// WindowsPhone81CustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81CustomConfiguration resource. +type WindowsPhone81CustomConfiguration struct { + // DeviceConfiguration is the base model of WindowsPhone81CustomConfiguration + DeviceConfiguration + // OMASettings OMA settings. This collection can contain a maximum of 1000 elements. + OMASettings []OMASetting `json:"omaSettings,omitempty"` +} + +// WindowsPhone81GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81GeneralConfiguration resource. +type WindowsPhone81GeneralConfiguration struct { + // DeviceConfiguration is the base model of WindowsPhone81GeneralConfiguration + DeviceConfiguration + // ApplyOnlyToWindowsPhone81 Value indicating whether this policy only applies to Windows Phone 8.1. This property is read-only. + ApplyOnlyToWindowsPhone81 *bool `json:"applyOnlyToWindowsPhone81,omitempty"` + // AppsBlockCopyPaste Indicates whether or not to block copy paste. + AppsBlockCopyPaste *bool `json:"appsBlockCopyPaste,omitempty"` + // BluetoothBlocked Indicates whether or not to block bluetooth. + BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"` + // CameraBlocked Indicates whether or not to block camera. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // CellularBlockWiFiTethering Indicates whether or not to block Wi-Fi tethering. Has no impact if Wi-Fi is blocked. + CellularBlockWiFiTethering *bool `json:"cellularBlockWifiTethering,omitempty"` + // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements. + CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"` + // CompliantAppListType List that is in the AppComplianceList. + CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"` + // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission. + DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"` + // EmailBlockAddingAccounts Indicates whether or not to block custom email accounts. + EmailBlockAddingAccounts *bool `json:"emailBlockAddingAccounts,omitempty"` + // LocationServicesBlocked Indicates whether or not to block location services. + LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"` + // MicrosoftAccountBlocked Indicates whether or not to block using a Microsoft Account. + MicrosoftAccountBlocked *bool `json:"microsoftAccountBlocked,omitempty"` + // NfcBlocked Indicates whether or not to block Near-Field Communication. + NfcBlocked *bool `json:"nfcBlocked,omitempty"` + // PasswordBlockSimple Indicates whether or not to block syncing the calendar. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays Number of days before the password expires. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength Minimum length of passwords. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before screen timeout. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordMinimumCharacterSetCount Number of character sets a password must contain. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PasswordRequiredType Password type that is required. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordRequired Indicates whether or not to require a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to block screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // StorageBlockRemovableStorage Indicates whether or not to block removable storage. + StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"` + // StorageRequireEncryption Indicates whether or not to require encryption. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // WebBrowserBlocked Indicates whether or not to block the web browser. + WebBrowserBlocked *bool `json:"webBrowserBlocked,omitempty"` + // WiFiBlocked Indicates whether or not to block Wi-Fi. + WiFiBlocked *bool `json:"wifiBlocked,omitempty"` + // WiFiBlockAutomaticConnectHotspots Indicates whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked. + WiFiBlockAutomaticConnectHotspots *bool `json:"wifiBlockAutomaticConnectHotspots,omitempty"` + // WiFiBlockHotspotReporting Indicates whether or not to block Wi-Fi hotspot reporting. Has no impact if Wi-Fi is blocked. + WiFiBlockHotspotReporting *bool `json:"wifiBlockHotspotReporting,omitempty"` + // WindowsStoreBlocked Indicates whether or not to block the Windows Store. + WindowsStoreBlocked *bool `json:"windowsStoreBlocked,omitempty"` +} + +// WindowsPhone81ImportedPFXCertificateProfile Windows 8.1 Phone and Mobile PFX Import certificate profile +type WindowsPhone81ImportedPFXCertificateProfile struct { + // WindowsCertificateProfileBase is the base model of WindowsPhone81ImportedPFXCertificateProfile + WindowsCertificateProfileBase + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// WindowsPhone81SCEPCertificateProfile Windows Phone 8.1+ SCEP certificate profile +type WindowsPhone81SCEPCertificateProfile struct { + // WindowsPhone81CertificateProfileBase is the base model of WindowsPhone81SCEPCertificateProfile + WindowsPhone81CertificateProfileBase + // ScepServerUrls SCEP Server Url(s). + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage. + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size. + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm. + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // RootCertificate undocumented + RootCertificate *WindowsPhone81TrustedRootCertificate `json:"rootCertificate,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// WindowsPhone81StoreApp Contains properties and inherited properties for Windows Phone 8.1 Store apps. +type WindowsPhone81StoreApp struct { + // MobileApp is the base model of WindowsPhone81StoreApp + MobileApp + // AppStoreURL The Windows Phone 8.1 app store URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` +} + +// WindowsPhone81TrustedRootCertificate Windows Phone 8.1+ Trusted Root Certificate configuration profile +type WindowsPhone81TrustedRootCertificate struct { + // DeviceConfiguration is the base model of WindowsPhone81TrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` +} + +// WindowsPhone81VpnConfiguration By providing the configurations in this profile you can instruct the Windows Phone 8.1 to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type WindowsPhone81VpnConfiguration struct { + // Windows81VpnConfiguration is the base model of WindowsPhone81VpnConfiguration + Windows81VpnConfiguration + // BypassVPNOnCompanyWiFi Bypass VPN on company Wi-Fi. + BypassVPNOnCompanyWiFi *bool `json:"bypassVpnOnCompanyWifi,omitempty"` + // BypassVPNOnHomeWiFi Bypass VPN on home Wi-Fi. + BypassVPNOnHomeWiFi *bool `json:"bypassVpnOnHomeWifi,omitempty"` + // AuthenticationMethod Authentication method. + AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"` + // RememberUserCredentials Remember user credentials. + RememberUserCredentials *bool `json:"rememberUserCredentials,omitempty"` + // DNSSuffixSearchList DNS suffix search list. + DNSSuffixSearchList []string `json:"dnsSuffixSearchList,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *WindowsPhone81CertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// WindowsPhoneEASEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on Windows Phone to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync. +type WindowsPhoneEASEmailProfileConfiguration struct { + // EasEmailProfileConfigurationBase is the base model of WindowsPhoneEASEmailProfileConfiguration + EasEmailProfileConfigurationBase + // AccountName Account name. + AccountName *string `json:"accountName,omitempty"` + // ApplyOnlyToWindowsPhone81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only. + ApplyOnlyToWindowsPhone81 *bool `json:"applyOnlyToWindowsPhone81,omitempty"` + // SyncCalendar Whether or not to sync the calendar. + SyncCalendar *bool `json:"syncCalendar,omitempty"` + // SyncContacts Whether or not to sync contacts. + SyncContacts *bool `json:"syncContacts,omitempty"` + // SyncTasks Whether or not to sync tasks. + SyncTasks *bool `json:"syncTasks,omitempty"` + // DurationOfEmailToSync Duration of email to sync. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // EmailSyncSchedule Email sync schedule. + EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"` + // HostName Exchange location that (URL) that the native mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` +} + +// WindowsPhoneXAP Contains properties and inherited properties for Windows Phone XAP Line Of Business apps. +type WindowsPhoneXAP struct { + // MobileLobApp is the base model of WindowsPhoneXAP + MobileLobApp + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // ProductIdentifier The Product Identifier. + ProductIdentifier *string `json:"productIdentifier,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` +} + +// WindowsPrivacyDataAccessControlItem Specify access control level per privacy data category +type WindowsPrivacyDataAccessControlItem struct { + // Entity is the base model of WindowsPrivacyDataAccessControlItem + Entity + // AccessLevel This indicates an access level for the privacy data category to which the specified application will be given to. + AccessLevel *WindowsPrivacyDataAccessLevel `json:"accessLevel,omitempty"` + // DataCategory This indicates a privacy data category to which the specific access control will apply. + DataCategory *WindowsPrivacyDataCategory `json:"dataCategory,omitempty"` + // AppPackageFamilyName The Package Family Name of a Windows app. When set, the access level applies to the specified application. + AppPackageFamilyName *string `json:"appPackageFamilyName,omitempty"` + // AppDisplayName The Package Family Name of a Windows app. When set, the access level applies to the specified application. + AppDisplayName *string `json:"appDisplayName,omitempty"` +} + +// WindowsProtectionState Device protection status entity. +type WindowsProtectionState struct { + // Entity is the base model of WindowsProtectionState + Entity + // MalwareProtectionEnabled Anti malware is enabled or not + MalwareProtectionEnabled *bool `json:"malwareProtectionEnabled,omitempty"` + // DeviceState Computer's state (like clean or pending full scan or pending reboot etc) + DeviceState *WindowsDeviceHealthState `json:"deviceState,omitempty"` + // RealTimeProtectionEnabled Real time protection is enabled or not? + RealTimeProtectionEnabled *bool `json:"realTimeProtectionEnabled,omitempty"` + // NetworkInspectionSystemEnabled Network inspection system enabled or not? + NetworkInspectionSystemEnabled *bool `json:"networkInspectionSystemEnabled,omitempty"` + // QuickScanOverdue Quick scan overdue or not? + QuickScanOverdue *bool `json:"quickScanOverdue,omitempty"` + // FullScanOverdue Full scan overdue or not? + FullScanOverdue *bool `json:"fullScanOverdue,omitempty"` + // SignatureUpdateOverdue Signature out of date or not? + SignatureUpdateOverdue *bool `json:"signatureUpdateOverdue,omitempty"` + // RebootRequired Reboot required or not? + RebootRequired *bool `json:"rebootRequired,omitempty"` + // FullScanRequired Full scan required or not? + FullScanRequired *bool `json:"fullScanRequired,omitempty"` + // EngineVersion Current endpoint protection engine's version + EngineVersion *string `json:"engineVersion,omitempty"` + // SignatureVersion Current malware definitions version + SignatureVersion *string `json:"signatureVersion,omitempty"` + // AntiMalwareVersion Current anti malware version + AntiMalwareVersion *string `json:"antiMalwareVersion,omitempty"` + // LastQuickScanDateTime Last quick scan datetime + LastQuickScanDateTime *time.Time `json:"lastQuickScanDateTime,omitempty"` + // LastFullScanDateTime Last quick scan datetime + LastFullScanDateTime *time.Time `json:"lastFullScanDateTime,omitempty"` + // LastQuickScanSignatureVersion Last quick scan signature version + LastQuickScanSignatureVersion *string `json:"lastQuickScanSignatureVersion,omitempty"` + // LastFullScanSignatureVersion Last full scan signature version + LastFullScanSignatureVersion *string `json:"lastFullScanSignatureVersion,omitempty"` + // LastReportedDateTime Last device health status reported time + LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"` + // DetectedMalwareState undocumented + DetectedMalwareState []WindowsDeviceMalwareState `json:"detectedMalwareState,omitempty"` +} + +// WindowsStoreApp Contains properties and inherited properties for Windows Store apps. +type WindowsStoreApp struct { + // MobileApp is the base model of WindowsStoreApp + MobileApp + // AppStoreURL The Windows app store URL. + AppStoreURL *string `json:"appStoreUrl,omitempty"` +} + +// WindowsUniversalAppX Contains properties and inherited properties for Windows Universal AppX Line Of Business apps. +type WindowsUniversalAppX struct { + // MobileLobApp is the base model of WindowsUniversalAppX + MobileLobApp + // ApplicableArchitectures The Windows architecture(s) for which this app can run on. + ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"` + // ApplicableDeviceTypes The Windows device type(s) for which this app can run on. + ApplicableDeviceTypes *WindowsDeviceType `json:"applicableDeviceTypes,omitempty"` + // IdentityName The Identity Name. + IdentityName *string `json:"identityName,omitempty"` + // IdentityPublisherHash The Identity Publisher Hash. + IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"` + // IdentityResourceIdentifier The Identity Resource Identifier. + IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"` + // IsBundle Whether or not the app is a bundle. + IsBundle *bool `json:"isBundle,omitempty"` + // MinimumSupportedOperatingSystem The value for the minimum applicable operating system. + MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"` + // IdentityVersion The identity version. + IdentityVersion *string `json:"identityVersion,omitempty"` + // CommittedContainedApps undocumented + CommittedContainedApps []MobileContainedApp `json:"committedContainedApps,omitempty"` +} + +// WindowsUniversalAppXAppAssignmentSettings undocumented +type WindowsUniversalAppXAppAssignmentSettings struct { + // MobileAppAssignmentSettings is the base model of WindowsUniversalAppXAppAssignmentSettings + MobileAppAssignmentSettings + // UseDeviceContext Whether or not to use device execution context for Windows Universal AppX mobile app. + UseDeviceContext *bool `json:"useDeviceContext,omitempty"` +} + +// WindowsUniversalAppXContainedApp A class that represents a contained app of a WindowsUniversalAppX app. +type WindowsUniversalAppXContainedApp struct { + // MobileContainedApp is the base model of WindowsUniversalAppXContainedApp + MobileContainedApp + // AppUserModelID The app user model ID of the contained app of a WindowsUniversalAppX app. + AppUserModelID *string `json:"appUserModelId,omitempty"` +} + +// WindowsUpdateActiveHoursInstall undocumented +type WindowsUpdateActiveHoursInstall struct { + // WindowsUpdateInstallScheduleType is the base model of WindowsUpdateActiveHoursInstall + WindowsUpdateInstallScheduleType + // ActiveHoursStart Active Hours Start + ActiveHoursStart *TimeOfDay `json:"activeHoursStart,omitempty"` + // ActiveHoursEnd Active Hours End + ActiveHoursEnd *TimeOfDay `json:"activeHoursEnd,omitempty"` +} + +// WindowsUpdateForBusinessConfiguration Windows Update for business configuration. +type WindowsUpdateForBusinessConfiguration struct { + // DeviceConfiguration is the base model of WindowsUpdateForBusinessConfiguration + DeviceConfiguration + // DeliveryOptimizationMode Delivery Optimization Mode + DeliveryOptimizationMode *WindowsDeliveryOptimizationMode `json:"deliveryOptimizationMode,omitempty"` + // PrereleaseFeatures The pre-release features. + PrereleaseFeatures *PrereleaseFeatures `json:"prereleaseFeatures,omitempty"` + // AutomaticUpdateMode Automatic update mode. + AutomaticUpdateMode *AutomaticUpdateMode `json:"automaticUpdateMode,omitempty"` + // MicrosoftUpdateServiceAllowed Allow Microsoft Update Service + MicrosoftUpdateServiceAllowed *bool `json:"microsoftUpdateServiceAllowed,omitempty"` + // DriversExcluded Exclude Windows update Drivers + DriversExcluded *bool `json:"driversExcluded,omitempty"` + // InstallationSchedule Installation schedule + InstallationSchedule *WindowsUpdateInstallScheduleType `json:"installationSchedule,omitempty"` + // QualityUpdatesDeferralPeriodInDays Defer Quality Updates by these many days + QualityUpdatesDeferralPeriodInDays *int `json:"qualityUpdatesDeferralPeriodInDays,omitempty"` + // FeatureUpdatesDeferralPeriodInDays Defer Feature Updates by these many days + FeatureUpdatesDeferralPeriodInDays *int `json:"featureUpdatesDeferralPeriodInDays,omitempty"` + // QualityUpdatesPaused Pause Quality Updates + QualityUpdatesPaused *bool `json:"qualityUpdatesPaused,omitempty"` + // FeatureUpdatesPaused Pause Feature Updates + FeatureUpdatesPaused *bool `json:"featureUpdatesPaused,omitempty"` + // QualityUpdatesPauseExpiryDateTime Quality Updates Pause Expiry datetime + QualityUpdatesPauseExpiryDateTime *time.Time `json:"qualityUpdatesPauseExpiryDateTime,omitempty"` + // FeatureUpdatesPauseExpiryDateTime Feature Updates Pause Expiry datetime + FeatureUpdatesPauseExpiryDateTime *time.Time `json:"featureUpdatesPauseExpiryDateTime,omitempty"` + // BusinessReadyUpdatesOnly Determines which branch devices will receive their updates from + BusinessReadyUpdatesOnly *WindowsUpdateType `json:"businessReadyUpdatesOnly,omitempty"` + // SkipChecksBeforeRestart Set to skip all check before restart: Battery level = 40%, User presence, Display Needed, Presentation mode, Full screen mode, phone call state, game mode etc. + SkipChecksBeforeRestart *bool `json:"skipChecksBeforeRestart,omitempty"` + // UpdateWeeks Scheduled the update installation on the weeks of the month + UpdateWeeks *WindowsUpdateForBusinessUpdateWeeks `json:"updateWeeks,omitempty"` + // QualityUpdatesPauseStartDate Quality Updates Pause start date. This property is read-only. + QualityUpdatesPauseStartDate *Date `json:"qualityUpdatesPauseStartDate,omitempty"` + // FeatureUpdatesPauseStartDate Feature Updates Pause start date. This property is read-only. + FeatureUpdatesPauseStartDate *Date `json:"featureUpdatesPauseStartDate,omitempty"` + // FeatureUpdatesRollbackWindowInDays The number of days after a Feature Update for which a rollback is valid + FeatureUpdatesRollbackWindowInDays *int `json:"featureUpdatesRollbackWindowInDays,omitempty"` + // QualityUpdatesWillBeRolledBack Specifies whether to rollback Quality Updates on the next device check in + QualityUpdatesWillBeRolledBack *bool `json:"qualityUpdatesWillBeRolledBack,omitempty"` + // FeatureUpdatesWillBeRolledBack Specifies whether to rollback Feature Updates on the next device check in + FeatureUpdatesWillBeRolledBack *bool `json:"featureUpdatesWillBeRolledBack,omitempty"` + // QualityUpdatesRollbackStartDateTime Quality Updates Rollback Start datetime + QualityUpdatesRollbackStartDateTime *time.Time `json:"qualityUpdatesRollbackStartDateTime,omitempty"` + // FeatureUpdatesRollbackStartDateTime Feature Updates Rollback Start datetime + FeatureUpdatesRollbackStartDateTime *time.Time `json:"featureUpdatesRollbackStartDateTime,omitempty"` + // EngagedRestartDeadlineInDays Deadline in days before automatically scheduling and executing a pending restart outside of active hours, with valid range from 2 to 30 days + EngagedRestartDeadlineInDays *int `json:"engagedRestartDeadlineInDays,omitempty"` + // EngagedRestartSnoozeScheduleInDays Number of days a user can snooze Engaged Restart reminder notifications with valid range from 1 to 3 days + EngagedRestartSnoozeScheduleInDays *int `json:"engagedRestartSnoozeScheduleInDays,omitempty"` + // EngagedRestartTransitionScheduleInDays Number of days before transitioning from Auto Restarts scheduled outside of active hours to Engaged Restart, which requires the user to schedule, with valid range from 0 to 30 days + EngagedRestartTransitionScheduleInDays *int `json:"engagedRestartTransitionScheduleInDays,omitempty"` + // DeadlineForFeatureUpdatesInDays Number of days before feature updates are installed automatically with valid range from 2 to 30 days + DeadlineForFeatureUpdatesInDays *int `json:"deadlineForFeatureUpdatesInDays,omitempty"` + // DeadlineForQualityUpdatesInDays Number of days before quality updates are installed automatically with valid range from 2 to 30 days + DeadlineForQualityUpdatesInDays *int `json:"deadlineForQualityUpdatesInDays,omitempty"` + // DeadlineGracePeriodInDays Number of days after deadline until restarts occur automatically with valid range from 0 to 7 days + DeadlineGracePeriodInDays *int `json:"deadlineGracePeriodInDays,omitempty"` + // PostponeRebootUntilAfterDeadline Specifies if the device should wait until deadline for rebooting outside of active hours + PostponeRebootUntilAfterDeadline *bool `json:"postponeRebootUntilAfterDeadline,omitempty"` + // AutoRestartNotificationDismissal Specify the method by which the auto-restart required notification is dismissed + AutoRestartNotificationDismissal *AutoRestartNotificationDismissalMethod `json:"autoRestartNotificationDismissal,omitempty"` + // ScheduleRestartWarningInHours Specify the period for auto-restart warning reminder notifications. Supported values: 2, 4, 8, 12 or 24 (hours). + ScheduleRestartWarningInHours *int `json:"scheduleRestartWarningInHours,omitempty"` + // ScheduleImminentRestartWarningInMinutes Specify the period for auto-restart imminent warning notifications. Supported values: 15, 30 or 60 (minutes). + ScheduleImminentRestartWarningInMinutes *int `json:"scheduleImminentRestartWarningInMinutes,omitempty"` + // UserPauseAccess Specifies whether to enable end user’s access to pause software updates. + UserPauseAccess *Enablement `json:"userPauseAccess,omitempty"` + // UserWindowsUpdateScanAccess Specifies whether to disable user’s access to scan Windows Update. + UserWindowsUpdateScanAccess *Enablement `json:"userWindowsUpdateScanAccess,omitempty"` + // UpdateNotificationLevel Specifies what Windows Update notifications users see. + UpdateNotificationLevel *WindowsUpdateNotificationDisplayOption `json:"updateNotificationLevel,omitempty"` + // DeviceUpdateStates undocumented + DeviceUpdateStates []WindowsUpdateState `json:"deviceUpdateStates,omitempty"` +} + +// WindowsUpdateInstallScheduleType undocumented +type WindowsUpdateInstallScheduleType struct { + // Object is the base model of WindowsUpdateInstallScheduleType + Object +} + +// WindowsUpdateScheduledInstall undocumented +type WindowsUpdateScheduledInstall struct { + // WindowsUpdateInstallScheduleType is the base model of WindowsUpdateScheduledInstall + WindowsUpdateInstallScheduleType + // ScheduledInstallDay Scheduled Install Day in week + ScheduledInstallDay *WeeklySchedule `json:"scheduledInstallDay,omitempty"` + // ScheduledInstallTime Scheduled Install Time during day + ScheduledInstallTime *TimeOfDay `json:"scheduledInstallTime,omitempty"` +} + +// WindowsUpdateState undocumented +type WindowsUpdateState struct { + // Entity is the base model of WindowsUpdateState + Entity + // DeviceID The id of the device. + DeviceID *string `json:"deviceId,omitempty"` + // UserID The id of the user. + UserID *string `json:"userId,omitempty"` + // DeviceDisplayName Device display name. + DeviceDisplayName *string `json:"deviceDisplayName,omitempty"` + // UserPrincipalName User principal name. + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // Status Windows udpate status. + Status *WindowsUpdateStatus `json:"status,omitempty"` + // QualityUpdateVersion The Quality Update Version of the device. + QualityUpdateVersion *string `json:"qualityUpdateVersion,omitempty"` + // FeatureUpdateVersion The current feature update version of the device. + FeatureUpdateVersion *string `json:"featureUpdateVersion,omitempty"` + // LastScanDateTime The date time that the Windows Update Agent did a successful scan. + LastScanDateTime *time.Time `json:"lastScanDateTime,omitempty"` + // LastSyncDateTime Last date time that the device sync with with Microsoft Intune. + LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"` +} + +// WindowsVPNConfiguration Windows VPN configuration profile. +type WindowsVPNConfiguration struct { + // DeviceConfiguration is the base model of WindowsVPNConfiguration + DeviceConfiguration + // ConnectionName Connection name displayed to the user. + ConnectionName *string `json:"connectionName,omitempty"` + // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. + Servers []VPNServer `json:"servers,omitempty"` + // CustomXML Custom XML commands that configures the VPN connection. (UTF8 encoded byte array) + CustomXML *Binary `json:"customXml,omitempty"` +} + +// WindowsWiFiConfiguration Device Configuration. +type WindowsWiFiConfiguration struct { + // DeviceConfiguration is the base model of WindowsWiFiConfiguration + DeviceConfiguration + // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network. + PreSharedKey *string `json:"preSharedKey,omitempty"` + // WiFiSecurityType Specify the Wifi Security Type. + WiFiSecurityType *WiFiSecurityType `json:"wifiSecurityType,omitempty"` + // MeteredConnectionLimit Specify the metered connection limit type for the wifi connection. + MeteredConnectionLimit *MeteredConnectionLimitType `json:"meteredConnectionLimit,omitempty"` + // Ssid Specify the SSID of the wifi connection. + Ssid *string `json:"ssid,omitempty"` + // NetworkName Specify the network configuration name. + NetworkName *string `json:"networkName,omitempty"` + // ConnectAutomatically Specify whether the wifi connection should connect automatically when in range. + ConnectAutomatically *bool `json:"connectAutomatically,omitempty"` + // ConnectToPreferredNetwork Specify whether the wifi connection should connect to more preferred networks when already connected to this one. Requires ConnectAutomatically to be true. + ConnectToPreferredNetwork *bool `json:"connectToPreferredNetwork,omitempty"` + // ConnectWhenNetworkNameIsHidden Specify whether the wifi connection should connect automatically even when the SSID is not broadcasting. + ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"` + // ProxySetting Specify the proxy setting for Wi-Fi configuration + ProxySetting *WiFiProxySetting `json:"proxySetting,omitempty"` + // ProxyManualAddress Specify the IP address for the proxy server. + ProxyManualAddress *string `json:"proxyManualAddress,omitempty"` + // ProxyManualPort Specify the port for the proxy server. + ProxyManualPort *int `json:"proxyManualPort,omitempty"` + // ProxyAutomaticConfigurationURL Specify the URL for the proxy server configuration script. + ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"` + // ForceFIPSCompliance Specify whether to force FIPS compliance. + ForceFIPSCompliance *bool `json:"forceFIPSCompliance,omitempty"` +} + +// WindowsWiFiEnterpriseEAPConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by the Wifi CSP. +type WindowsWiFiEnterpriseEAPConfiguration struct { + // WindowsWiFiConfiguration is the base model of WindowsWiFiEnterpriseEAPConfiguration + WindowsWiFiConfiguration + // NetworkSingleSignOn Specify the network single sign on type. + NetworkSingleSignOn *NetworkSingleSignOnType `json:"networkSingleSignOn,omitempty"` + // MaximumAuthenticationTimeoutInSeconds Specify maximum authentication timeout (in seconds). Valid range: 1-120 + MaximumAuthenticationTimeoutInSeconds *int `json:"maximumAuthenticationTimeoutInSeconds,omitempty"` + // PromptForAdditionalAuthenticationCredentials Specify whether the wifi connection should prompt for additional authentication credentials. + PromptForAdditionalAuthenticationCredentials *bool `json:"promptForAdditionalAuthenticationCredentials,omitempty"` + // EnablePairwiseMasterKeyCaching Specify whether the wifi connection should enable pairwise master key caching. + EnablePairwiseMasterKeyCaching *bool `json:"enablePairwiseMasterKeyCaching,omitempty"` + // MaximumPairwiseMasterKeyCacheTimeInMinutes Specify maximum pairwise master key cache time (in minutes). Valid range: 5-1440 + MaximumPairwiseMasterKeyCacheTimeInMinutes *int `json:"maximumPairwiseMasterKeyCacheTimeInMinutes,omitempty"` + // MaximumNumberOfPairwiseMasterKeysInCache Specify maximum number of pairwise master keys in cache. Valid range: 1-255 + MaximumNumberOfPairwiseMasterKeysInCache *int `json:"maximumNumberOfPairwiseMasterKeysInCache,omitempty"` + // EnablePreAuthentication Specify whether pre-authentication should be enabled. + EnablePreAuthentication *bool `json:"enablePreAuthentication,omitempty"` + // MaximumPreAuthenticationAttempts Specify maximum pre-authentication attempts. Valid range: 1-16 + MaximumPreAuthenticationAttempts *int `json:"maximumPreAuthenticationAttempts,omitempty"` + // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router). + EapType *EapType `json:"eapType,omitempty"` + // TrustedServerCertificateNames Specify trusted server certificate names. + TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"` + // AuthenticationMethod Specify the authentication method. + AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"` + // InnerAuthenticationProtocolForEAPTTLS Specify inner authentication protocol for EAP TTLS. + InnerAuthenticationProtocolForEAPTTLS *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEAPTTLS,omitempty"` + // OuterIdentityPrivacyTemporaryValue Specify the string to replace usernames for privacy when using EAP TTLS or PEAP. + OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"` + // RootCertificatesForServerValidation undocumented + RootCertificatesForServerValidation []Windows81TrustedRootCertificate `json:"rootCertificatesForServerValidation,omitempty"` + // IdentityCertificateForClientAuthentication undocumented + IdentityCertificateForClientAuthentication *WindowsCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go new file mode 100644 index 00000000..3eabd951 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go @@ -0,0 +1,1347 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "time" + +// Windows10AppsForceUpdateSchedule undocumented +type Windows10AppsForceUpdateSchedule struct { + // Object is the base model of Windows10AppsForceUpdateSchedule + Object + // StartDateTime The start time for the force restart. + StartDateTime *time.Time `json:"startDateTime,omitempty"` + // Recurrence Recurrence schedule. + Recurrence *Windows10AppsUpdateRecurrence `json:"recurrence,omitempty"` + // RunImmediatelyIfAfterStartDateTime If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence. + RunImmediatelyIfAfterStartDateTime *bool `json:"runImmediatelyIfAfterStartDateTime,omitempty"` +} + +// Windows10AssociatedApps undocumented +type Windows10AssociatedApps struct { + // Object is the base model of Windows10AssociatedApps + Object + // AppType Application type. + AppType *Windows10AppType `json:"appType,omitempty"` + // Identifier Identifier. + Identifier *string `json:"identifier,omitempty"` +} + +// Windows10CertificateProfileBase Base class for Windows 10 certificate profile. +type Windows10CertificateProfileBase struct { + // WindowsCertificateProfileBase is the base model of Windows10CertificateProfileBase + WindowsCertificateProfileBase +} + +// Windows10CompliancePolicy This class contains compliance settings for Windows 10. +type Windows10CompliancePolicy struct { + // DeviceCompliancePolicy is the base model of Windows10CompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock Windows device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordBlockSimple Indicates whether or not to block simple password. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordRequiredToUnlockFromIdle Require a password to unlock an idle device. + PasswordRequiredToUnlockFromIdle *bool `json:"passwordRequiredToUnlockFromIdle,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordExpirationDays The password expiration in days. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength The minimum password length. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // RequireHealthyDeviceReport Require devices to be reported as healthy by Windows Device Health Attestation. + RequireHealthyDeviceReport *bool `json:"requireHealthyDeviceReport,omitempty"` + // OsMinimumVersion Minimum Windows 10 version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Windows 10 version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // MobileOsMinimumVersion Minimum Windows Phone version. + MobileOsMinimumVersion *string `json:"mobileOsMinimumVersion,omitempty"` + // MobileOsMaximumVersion Maximum Windows Phone version. + MobileOsMaximumVersion *string `json:"mobileOsMaximumVersion,omitempty"` + // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled. + EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"` + // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled + BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"` + // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled. + SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"` + // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation. + CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"` + // StorageRequireEncryption Require encryption on windows devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // ActiveFirewallRequired Require active firewall on Windows devices. + ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"` + // DefenderEnabled Require Windows Defender Antimalware on Windows devices. + DefenderEnabled *bool `json:"defenderEnabled,omitempty"` + // DefenderVersion Require Windows Defender Antimalware minimum version on Windows devices. + DefenderVersion *string `json:"defenderVersion,omitempty"` + // SignatureOutOfDate Require Windows Defender Antimalware Signature to be up to date on Windows devices. + SignatureOutOfDate *bool `json:"signatureOutOfDate,omitempty"` + // RtpEnabled Require Windows Defender Antimalware Real-Time Protection on Windows devices. + RtpEnabled *bool `json:"rtpEnabled,omitempty"` + // AntivirusRequired Require any Antivirus solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender). + AntivirusRequired *bool `json:"antivirusRequired,omitempty"` + // AntiSpywareRequired Require any AntiSpyware solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender). + AntiSpywareRequired *bool `json:"antiSpywareRequired,omitempty"` + // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements. + ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"` + // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection. + DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"` + // DeviceThreatProtectionRequiredSecurityLevel Require Device Threat Protection minimum risk level to report noncompliance. + DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"` + // ConfigurationManagerComplianceRequired Require to consider SCCM Compliance state into consideration for Intune Compliance State. + ConfigurationManagerComplianceRequired *bool `json:"configurationManagerComplianceRequired,omitempty"` + // TpmRequired Require Trusted Platform Module(TPM) to be present. + TpmRequired *bool `json:"tpmRequired,omitempty"` +} + +// Windows10CustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10CustomConfiguration resource. +type Windows10CustomConfiguration struct { + // DeviceConfiguration is the base model of Windows10CustomConfiguration + DeviceConfiguration + // OMASettings OMA settings. This collection can contain a maximum of 1000 elements. + OMASettings []OMASetting `json:"omaSettings,omitempty"` +} + +// Windows10DeviceFirmwareConfigurationInterface Graph properties for Device Firmware Configuration Interface +type Windows10DeviceFirmwareConfigurationInterface struct { + // DeviceConfiguration is the base model of Windows10DeviceFirmwareConfigurationInterface + DeviceConfiguration + // ChangeUefiSettingsPermission Defines the permission level granted to users to change UEFI settings. + ChangeUefiSettingsPermission *ChangeUefiSettingsPermission `json:"changeUefiSettingsPermission,omitempty"` + // VirtualizationOfCPUAndIO Defines whether CPU and IO virtualization is enabled. + VirtualizationOfCPUAndIO *Enablement `json:"virtualizationOfCpuAndIO,omitempty"` + // Cameras Defines whether built-in cameras are enabled. + Cameras *Enablement `json:"cameras,omitempty"` + // MicrophonesAndSpeakers Defines whether built-in microphones or speakers are enabled. + MicrophonesAndSpeakers *Enablement `json:"microphonesAndSpeakers,omitempty"` + // Radios Defines whether built-in radios e.g. WIFI, NFC, Bluetooth, are enabled. + Radios *Enablement `json:"radios,omitempty"` + // BootFromExternalMedia Defines whether a user is allowed to boot from external media. + BootFromExternalMedia *Enablement `json:"bootFromExternalMedia,omitempty"` + // BootFromBuiltInNetworkAdapters Defines whether a user is allowed to boot from built-in network adapters. + BootFromBuiltInNetworkAdapters *Enablement `json:"bootFromBuiltInNetworkAdapters,omitempty"` +} + +// Windows10EasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync. +type Windows10EasEmailProfileConfiguration struct { + // EasEmailProfileConfigurationBase is the base model of Windows10EasEmailProfileConfiguration + EasEmailProfileConfigurationBase + // AccountName Account name. + AccountName *string `json:"accountName,omitempty"` + // SyncCalendar Whether or not to sync the calendar. + SyncCalendar *bool `json:"syncCalendar,omitempty"` + // SyncContacts Whether or not to sync contacts. + SyncContacts *bool `json:"syncContacts,omitempty"` + // SyncTasks Whether or not to sync tasks. + SyncTasks *bool `json:"syncTasks,omitempty"` + // DurationOfEmailToSync Duration of email to sync. + DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"` + // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device. + EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"` + // EmailSyncSchedule Email sync schedule. + EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"` + // HostName Exchange location that (URL) that the native mail app connects to. + HostName *string `json:"hostName,omitempty"` + // RequireSsl Indicates whether or not to use SSL. + RequireSsl *bool `json:"requireSsl,omitempty"` +} + +// Windows10EndpointProtectionConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the Windows10EndpointProtectionConfiguration resource. +type Windows10EndpointProtectionConfiguration struct { + // DeviceConfiguration is the base model of Windows10EndpointProtectionConfiguration + DeviceConfiguration + // DMAGuardDeviceEnumerationPolicy undocumented + DMAGuardDeviceEnumerationPolicy *DMAGuardDeviceEnumerationPolicyType `json:"dmaGuardDeviceEnumerationPolicy,omitempty"` + // FirewallRules Configures the firewall rule settings. This collection can contain a maximum of 150 elements. + FirewallRules []WindowsFirewallRule `json:"firewallRules,omitempty"` + // UserRightsAccessCredentialManagerAsTrustedCaller This user right is used by Credential Manager during Backup/Restore. Users' saved credentials might be compromised if this privilege is given to other entities. Only states NotConfigured and Allowed are supported + UserRightsAccessCredentialManagerAsTrustedCaller *DeviceManagementUserRightsSetting `json:"userRightsAccessCredentialManagerAsTrustedCaller,omitempty"` + // UserRightsAllowAccessFromNetwork This user right determines which users and groups are allowed to connect to the computer over the network. State Allowed is supported. + UserRightsAllowAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsAllowAccessFromNetwork,omitempty"` + // UserRightsBlockAccessFromNetwork This user right determines which users and groups are block from connecting to the computer over the network. State Block is supported. + UserRightsBlockAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsBlockAccessFromNetwork,omitempty"` + // UserRightsActAsPartOfTheOperatingSystem This user right allows a process to impersonate any user without authentication. The process can therefore gain access to the same local resources as that user. Only states NotConfigured and Allowed are supported + UserRightsActAsPartOfTheOperatingSystem *DeviceManagementUserRightsSetting `json:"userRightsActAsPartOfTheOperatingSystem,omitempty"` + // UserRightsLocalLogOn This user right determines which users can log on to the computer. States NotConfigured, Allowed are supported + UserRightsLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsLocalLogOn,omitempty"` + // UserRightsDenyLocalLogOn This user right determines which users cannot log on to the computer. States NotConfigured, Blocked are supported + UserRightsDenyLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsDenyLocalLogOn,omitempty"` + // UserRightsBackupData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when backing up files and directories. Only states NotConfigured and Allowed are supported + UserRightsBackupData *DeviceManagementUserRightsSetting `json:"userRightsBackupData,omitempty"` + // UserRightsChangeSystemTime This user right determines which users and groups can change the time and date on the internal clock of the computer. Only states NotConfigured and Allowed are supported + UserRightsChangeSystemTime *DeviceManagementUserRightsSetting `json:"userRightsChangeSystemTime,omitempty"` + // UserRightsCreateGlobalObjects This security setting determines whether users can create global objects that are available to all sessions. Users who can create global objects could affect processes that run under other users' sessions, which could lead to application failure or data corruption. Only states NotConfigured and Allowed are supported + UserRightsCreateGlobalObjects *DeviceManagementUserRightsSetting `json:"userRightsCreateGlobalObjects,omitempty"` + // UserRightsCreatePageFile This user right determines which users and groups can call an internal API to create and change the size of a page file. Only states NotConfigured and Allowed are supported + UserRightsCreatePageFile *DeviceManagementUserRightsSetting `json:"userRightsCreatePageFile,omitempty"` + // UserRightsCreatePermanentSharedObjects This user right determines which accounts can be used by processes to create a directory object using the object manager. Only states NotConfigured and Allowed are supported + UserRightsCreatePermanentSharedObjects *DeviceManagementUserRightsSetting `json:"userRightsCreatePermanentSharedObjects,omitempty"` + // UserRightsCreateSymbolicLinks This user right determines if the user can create a symbolic link from the computer to which they are logged on. Only states NotConfigured and Allowed are supported + UserRightsCreateSymbolicLinks *DeviceManagementUserRightsSetting `json:"userRightsCreateSymbolicLinks,omitempty"` + // UserRightsCreateToken This user right determines which users/groups can be used by processes to create a token that can then be used to get access to any local resources when the process uses an internal API to create an access token. Only states NotConfigured and Allowed are supported + UserRightsCreateToken *DeviceManagementUserRightsSetting `json:"userRightsCreateToken,omitempty"` + // UserRightsDebugPrograms This user right determines which users can attach a debugger to any process or to the kernel. Only states NotConfigured and Allowed are supported + UserRightsDebugPrograms *DeviceManagementUserRightsSetting `json:"userRightsDebugPrograms,omitempty"` + // UserRightsRemoteDesktopServicesLogOn This user right determines which users and groups are prohibited from logging on as a Remote Desktop Services client. Only states NotConfigured and Blocked are supported + UserRightsRemoteDesktopServicesLogOn *DeviceManagementUserRightsSetting `json:"userRightsRemoteDesktopServicesLogOn,omitempty"` + // UserRightsDelegation This user right determines which users can set the Trusted for Delegation setting on a user or computer object. Only states NotConfigured and Allowed are supported. + UserRightsDelegation *DeviceManagementUserRightsSetting `json:"userRightsDelegation,omitempty"` + // UserRightsGenerateSecurityAudits This user right determines which accounts can be used by a process to add entries to the security log. The security log is used to trace unauthorized system access. Only states NotConfigured and Allowed are supported. + UserRightsGenerateSecurityAudits *DeviceManagementUserRightsSetting `json:"userRightsGenerateSecurityAudits,omitempty"` + // UserRightsImpersonateClient Assigning this user right to a user allows programs running on behalf of that user to impersonate a client. Requiring this user right for this kind of impersonation prevents an unauthorized user from convincing a client to connect to a service that they have created and then impersonating that client, which can elevate the unauthorized user's permissions to administrative or system levels. Only states NotConfigured and Allowed are supported. + UserRightsImpersonateClient *DeviceManagementUserRightsSetting `json:"userRightsImpersonateClient,omitempty"` + // UserRightsIncreaseSchedulingPriority This user right determines which accounts can use a process with Write Property access to another process to increase the execution priority assigned to the other process. Only states NotConfigured and Allowed are supported. + UserRightsIncreaseSchedulingPriority *DeviceManagementUserRightsSetting `json:"userRightsIncreaseSchedulingPriority,omitempty"` + // UserRightsLoadUnloadDrivers This user right determines which users can dynamically load and unload device drivers or other code in to kernel mode. Only states NotConfigured and Allowed are supported. + UserRightsLoadUnloadDrivers *DeviceManagementUserRightsSetting `json:"userRightsLoadUnloadDrivers,omitempty"` + // UserRightsLockMemory This user right determines which accounts can use a process to keep data in physical memory, which prevents the system from paging the data to virtual memory on disk. Only states NotConfigured and Allowed are supported. + UserRightsLockMemory *DeviceManagementUserRightsSetting `json:"userRightsLockMemory,omitempty"` + // UserRightsManageAuditingAndSecurityLogs This user right determines which users can specify object access auditing options for individual resources, such as files, Active Directory objects, and registry keys. Only states NotConfigured and Allowed are supported. + UserRightsManageAuditingAndSecurityLogs *DeviceManagementUserRightsSetting `json:"userRightsManageAuditingAndSecurityLogs,omitempty"` + // UserRightsManageVolumes This user right determines which users and groups can run maintenance tasks on a volume, such as remote defragmentation. Only states NotConfigured and Allowed are supported. + UserRightsManageVolumes *DeviceManagementUserRightsSetting `json:"userRightsManageVolumes,omitempty"` + // UserRightsModifyFirmwareEnvironment This user right determines who can modify firmware environment values. Only states NotConfigured and Allowed are supported. + UserRightsModifyFirmwareEnvironment *DeviceManagementUserRightsSetting `json:"userRightsModifyFirmwareEnvironment,omitempty"` + // UserRightsModifyObjectLabels This user right determines which user accounts can modify the integrity label of objects, such as files, registry keys, or processes owned by other users. Only states NotConfigured and Allowed are supported. + UserRightsModifyObjectLabels *DeviceManagementUserRightsSetting `json:"userRightsModifyObjectLabels,omitempty"` + // UserRightsProfileSingleProcess This user right determines which users can use performance monitoring tools to monitor the performance of system processes. Only states NotConfigured and Allowed are supported. + UserRightsProfileSingleProcess *DeviceManagementUserRightsSetting `json:"userRightsProfileSingleProcess,omitempty"` + // UserRightsRemoteShutdown This user right determines which users are allowed to shut down a computer from a remote location on the network. Misuse of this user right can result in a denial of service. Only states NotConfigured and Allowed are supported. + UserRightsRemoteShutdown *DeviceManagementUserRightsSetting `json:"userRightsRemoteShutdown,omitempty"` + // UserRightsRestoreData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when restoring backed up files and directories, and determines which users can set any valid security principal as the owner of an object. Only states NotConfigured and Allowed are supported. + UserRightsRestoreData *DeviceManagementUserRightsSetting `json:"userRightsRestoreData,omitempty"` + // UserRightsTakeOwnership This user right determines which users can take ownership of any securable object in the system, including Active Directory objects, files and folders, printers, registry keys, processes, and threads. Only states NotConfigured and Allowed are supported. + UserRightsTakeOwnership *DeviceManagementUserRightsSetting `json:"userRightsTakeOwnership,omitempty"` + // XboxServicesEnableXboxGameSaveTask This setting determines whether xbox game save is enabled (1) or disabled (0). + XboxServicesEnableXboxGameSaveTask *bool `json:"xboxServicesEnableXboxGameSaveTask,omitempty"` + // XboxServicesAccessoryManagementServiceStartupMode This setting determines whether the Accessory management service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual. + XboxServicesAccessoryManagementServiceStartupMode *ServiceStartType `json:"xboxServicesAccessoryManagementServiceStartupMode,omitempty"` + // XboxServicesLiveAuthManagerServiceStartupMode This setting determines whether Live Auth Manager service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual. + XboxServicesLiveAuthManagerServiceStartupMode *ServiceStartType `json:"xboxServicesLiveAuthManagerServiceStartupMode,omitempty"` + // XboxServicesLiveGameSaveServiceStartupMode This setting determines whether Live Game save service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual. + XboxServicesLiveGameSaveServiceStartupMode *ServiceStartType `json:"xboxServicesLiveGameSaveServiceStartupMode,omitempty"` + // XboxServicesLiveNetworkingServiceStartupMode This setting determines whether Networking service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual. + XboxServicesLiveNetworkingServiceStartupMode *ServiceStartType `json:"xboxServicesLiveNetworkingServiceStartupMode,omitempty"` + // LocalSecurityOptionsBlockMicrosoftAccounts Prevent users from adding new Microsoft accounts to this computer. + LocalSecurityOptionsBlockMicrosoftAccounts *bool `json:"localSecurityOptionsBlockMicrosoftAccounts,omitempty"` + // LocalSecurityOptionsBlockRemoteLogonWithBlankPassword Enable Local accounts that are not password protected to log on from locations other than the physical device.Default is enabled + LocalSecurityOptionsBlockRemoteLogonWithBlankPassword *bool `json:"localSecurityOptionsBlockRemoteLogonWithBlankPassword,omitempty"` + // LocalSecurityOptionsDisableAdministratorAccount Determines whether the Local Administrator account is enabled or disabled. + LocalSecurityOptionsDisableAdministratorAccount *bool `json:"localSecurityOptionsDisableAdministratorAccount,omitempty"` + // LocalSecurityOptionsAdministratorAccountName Define a different account name to be associated with the security identifier (SID) for the account “Administrator”. + LocalSecurityOptionsAdministratorAccountName *string `json:"localSecurityOptionsAdministratorAccountName,omitempty"` + // LocalSecurityOptionsDisableGuestAccount Determines if the Guest account is enabled or disabled. + LocalSecurityOptionsDisableGuestAccount *bool `json:"localSecurityOptionsDisableGuestAccount,omitempty"` + // LocalSecurityOptionsGuestAccountName Define a different account name to be associated with the security identifier (SID) for the account “Guest”. + LocalSecurityOptionsGuestAccountName *string `json:"localSecurityOptionsGuestAccountName,omitempty"` + // LocalSecurityOptionsAllowUndockWithoutHavingToLogon Prevent a portable computer from being undocked without having to log in. + LocalSecurityOptionsAllowUndockWithoutHavingToLogon *bool `json:"localSecurityOptionsAllowUndockWithoutHavingToLogon,omitempty"` + // LocalSecurityOptionsBlockUsersInstallingPrinterDrivers Restrict installing printer drivers as part of connecting to a shared printer to admins only. + LocalSecurityOptionsBlockUsersInstallingPrinterDrivers *bool `json:"localSecurityOptionsBlockUsersInstallingPrinterDrivers,omitempty"` + // LocalSecurityOptionsBlockRemoteOpticalDriveAccess Enabling this settings allows only interactively logged on user to access CD-ROM media. + LocalSecurityOptionsBlockRemoteOpticalDriveAccess *bool `json:"localSecurityOptionsBlockRemoteOpticalDriveAccess,omitempty"` + // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser Define who is allowed to format and eject removable NTFS media. + LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType `json:"localSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser,omitempty"` + // LocalSecurityOptionsMachineInactivityLimit Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999 + LocalSecurityOptionsMachineInactivityLimit *int `json:"localSecurityOptionsMachineInactivityLimit,omitempty"` + // LocalSecurityOptionsMachineInactivityLimitInMinutes Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999 + LocalSecurityOptionsMachineInactivityLimitInMinutes *int `json:"localSecurityOptionsMachineInactivityLimitInMinutes,omitempty"` + // LocalSecurityOptionsDoNotRequireCtrlAltDel Require CTRL+ALT+DEL to be pressed before a user can log on. + LocalSecurityOptionsDoNotRequireCtrlAltDel *bool `json:"localSecurityOptionsDoNotRequireCtrlAltDel,omitempty"` + // LocalSecurityOptionsHideLastSignedInUser Do not display the username of the last person who signed in on this device. + LocalSecurityOptionsHideLastSignedInUser *bool `json:"localSecurityOptionsHideLastSignedInUser,omitempty"` + // LocalSecurityOptionsHideUsernameAtSignIn Do not display the username of the person signing in to this device after credentials are entered and before the device’s desktop is shown. + LocalSecurityOptionsHideUsernameAtSignIn *bool `json:"localSecurityOptionsHideUsernameAtSignIn,omitempty"` + // LocalSecurityOptionsLogOnMessageTitle Set message title for users attempting to log in. + LocalSecurityOptionsLogOnMessageTitle *string `json:"localSecurityOptionsLogOnMessageTitle,omitempty"` + // LocalSecurityOptionsLogOnMessageText Set message text for users attempting to log in. + LocalSecurityOptionsLogOnMessageText *string `json:"localSecurityOptionsLogOnMessageText,omitempty"` + // LocalSecurityOptionsAllowPKU2UAuthenticationRequests Block PKU2U authentication requests to this device to use online identities. + LocalSecurityOptionsAllowPKU2UAuthenticationRequests *bool `json:"localSecurityOptionsAllowPKU2UAuthenticationRequests,omitempty"` + // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool UI helper boolean for LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager entity + LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool *bool `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool,omitempty"` + // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager Edit the default Security Descriptor Definition Language string to allow or deny users and groups to make remote calls to the SAM. + LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager *string `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManager,omitempty"` + // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients This security setting allows a client to require the negotiation of 128-bit encryption and/or NTLMv2 session security. + LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients,omitempty"` + // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers This security setting allows a server to require the negotiation of 128-bit encryption and/or NTLMv2 session security. + LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers,omitempty"` + // LanManagerAuthenticationLevel This security setting determines which challenge/response authentication protocol is used for network logons. + LanManagerAuthenticationLevel *LanManagerAuthenticationLevel `json:"lanManagerAuthenticationLevel,omitempty"` + // LanManagerWorkstationDisableInsecureGuestLogons If enabled,the SMB client will allow insecure guest logons. If not configured, the SMB client will reject insecure guest logons. + LanManagerWorkstationDisableInsecureGuestLogons *bool `json:"lanManagerWorkstationDisableInsecureGuestLogons,omitempty"` + // LocalSecurityOptionsClearVirtualMemoryPageFile This security setting determines whether the virtual memory pagefile is cleared when the system is shut down. + LocalSecurityOptionsClearVirtualMemoryPageFile *bool `json:"localSecurityOptionsClearVirtualMemoryPageFile,omitempty"` + // LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn This security setting determines whether a computer can be shut down without having to log on to Windows. + LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn *bool `json:"localSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn,omitempty"` + // LocalSecurityOptionsAllowUIAccessApplicationElevation Allow UIAccess apps to prompt for elevation without using the secure desktop. + LocalSecurityOptionsAllowUIAccessApplicationElevation *bool `json:"localSecurityOptionsAllowUIAccessApplicationElevation,omitempty"` + // LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations Virtualize file and registry write failures to per user locations + LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations *bool `json:"localSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations,omitempty"` + // LocalSecurityOptionsOnlyElevateSignedExecutables Enforce PKI certification path validation for a given executable file before it is permitted to run. + LocalSecurityOptionsOnlyElevateSignedExecutables *bool `json:"localSecurityOptionsOnlyElevateSignedExecutables,omitempty"` + // LocalSecurityOptionsAdministratorElevationPromptBehavior Define the behavior of the elevation prompt for admins in Admin Approval Mode. + LocalSecurityOptionsAdministratorElevationPromptBehavior *LocalSecurityOptionsAdministratorElevationPromptBehaviorType `json:"localSecurityOptionsAdministratorElevationPromptBehavior,omitempty"` + // LocalSecurityOptionsStandardUserElevationPromptBehavior Define the behavior of the elevation prompt for standard users. + LocalSecurityOptionsStandardUserElevationPromptBehavior *LocalSecurityOptionsStandardUserElevationPromptBehaviorType `json:"localSecurityOptionsStandardUserElevationPromptBehavior,omitempty"` + // LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation Enable all elevation requests to go to the interactive user's desktop rather than the secure desktop. Prompt behavior policy settings for admins and standard users are used. + LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation *bool `json:"localSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation,omitempty"` + // LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation App installations requiring elevated privileges will prompt for admin credentials.Default is enabled + LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation *bool `json:"localSecurityOptionsDetectApplicationInstallationsAndPromptForElevation,omitempty"` + // LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations Allow UIAccess apps to prompt for elevation without using the secure desktop.Default is enabled + LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations *bool `json:"localSecurityOptionsAllowUIAccessApplicationsForSecureLocations,omitempty"` + // LocalSecurityOptionsUseAdminApprovalMode Defines whether the built-in admin account uses Admin Approval Mode or runs all apps with full admin privileges.Default is enabled + LocalSecurityOptionsUseAdminApprovalMode *bool `json:"localSecurityOptionsUseAdminApprovalMode,omitempty"` + // LocalSecurityOptionsUseAdminApprovalModeForAdministrators Define whether Admin Approval Mode and all UAC policy settings are enabled, default is enabled + LocalSecurityOptionsUseAdminApprovalModeForAdministrators *bool `json:"localSecurityOptionsUseAdminApprovalModeForAdministrators,omitempty"` + // LocalSecurityOptionsInformationShownOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown + LocalSecurityOptionsInformationShownOnLockScreen *LocalSecurityOptionsInformationShownOnLockScreenType `json:"localSecurityOptionsInformationShownOnLockScreen,omitempty"` + // LocalSecurityOptionsInformationDisplayedOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown + LocalSecurityOptionsInformationDisplayedOnLockScreen *LocalSecurityOptionsInformationDisplayedOnLockScreenType `json:"localSecurityOptionsInformationDisplayedOnLockScreen,omitempty"` + // LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees This security setting determines whether the SMB client attempts to negotiate SMB packet signing. + LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees *bool `json:"localSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees,omitempty"` + // LocalSecurityOptionsClientDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB client component. + LocalSecurityOptionsClientDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsClientDigitallySignCommunicationsAlways,omitempty"` + // LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers If this security setting is enabled, the Server Message Block (SMB) redirector is allowed to send plaintext passwords to non-Microsoft SMB servers that do not support password encryption during authentication. + LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers *bool `json:"localSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers,omitempty"` + // LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB server component. + LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsAlways,omitempty"` + // LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees This security setting determines whether the SMB server will negotiate SMB packet signing with clients that request it. + LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees,omitempty"` + // LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares By default, this security setting restricts anonymous access to shares and pipes to the settings for named pipes that can be accessed anonymously and Shares that can be accessed anonymously + LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares *bool `json:"localSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares,omitempty"` + // LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts This security setting determines what additional permissions will be granted for anonymous connections to the computer. + LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts *bool `json:"localSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts,omitempty"` + // LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares This security setting determines whether to allows anonymous users to perform certain activities, such as enumerating the names of domain accounts and network shares. + LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares *bool `json:"localSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares,omitempty"` + // LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange This security setting determines if, at the next password change, the LAN Manager (LM) hash value for the new password is stored. It’s not stored by default. + LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange *bool `json:"localSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange,omitempty"` + // LocalSecurityOptionsSmartCardRemovalBehavior This security setting determines what happens when the smart card for a logged-on user is removed from the smart card reader. + LocalSecurityOptionsSmartCardRemovalBehavior *LocalSecurityOptionsSmartCardRemovalBehaviorType `json:"localSecurityOptionsSmartCardRemovalBehavior,omitempty"` + // DefenderSecurityCenterDisableAppBrowserUI Used to disable the display of the app and browser protection area. + DefenderSecurityCenterDisableAppBrowserUI *bool `json:"defenderSecurityCenterDisableAppBrowserUI,omitempty"` + // DefenderSecurityCenterDisableFamilyUI Used to disable the display of the family options area. + DefenderSecurityCenterDisableFamilyUI *bool `json:"defenderSecurityCenterDisableFamilyUI,omitempty"` + // DefenderSecurityCenterDisableHealthUI Used to disable the display of the device performance and health area. + DefenderSecurityCenterDisableHealthUI *bool `json:"defenderSecurityCenterDisableHealthUI,omitempty"` + // DefenderSecurityCenterDisableNetworkUI Used to disable the display of the firewall and network protection area. + DefenderSecurityCenterDisableNetworkUI *bool `json:"defenderSecurityCenterDisableNetworkUI,omitempty"` + // DefenderSecurityCenterDisableVirusUI Used to disable the display of the virus and threat protection area. + DefenderSecurityCenterDisableVirusUI *bool `json:"defenderSecurityCenterDisableVirusUI,omitempty"` + // DefenderSecurityCenterDisableAccountUI Used to disable the display of the account protection area. + DefenderSecurityCenterDisableAccountUI *bool `json:"defenderSecurityCenterDisableAccountUI,omitempty"` + // DefenderSecurityCenterDisableClearTpmUI Used to disable the display of the Clear TPM button. + DefenderSecurityCenterDisableClearTpmUI *bool `json:"defenderSecurityCenterDisableClearTpmUI,omitempty"` + // DefenderSecurityCenterDisableHardwareUI Used to disable the display of the hardware protection area. + DefenderSecurityCenterDisableHardwareUI *bool `json:"defenderSecurityCenterDisableHardwareUI,omitempty"` + // DefenderSecurityCenterDisableNotificationAreaUI Used to disable the display of the notification area control. The user needs to either sign out and sign in or reboot the computer for this setting to take effect. + DefenderSecurityCenterDisableNotificationAreaUI *bool `json:"defenderSecurityCenterDisableNotificationAreaUI,omitempty"` + // DefenderSecurityCenterDisableRansomwareUI Used to disable the display of the ransomware protection area. + DefenderSecurityCenterDisableRansomwareUI *bool `json:"defenderSecurityCenterDisableRansomwareUI,omitempty"` + // DefenderSecurityCenterDisableSecureBootUI Used to disable the display of the secure boot area under Device security. + DefenderSecurityCenterDisableSecureBootUI *bool `json:"defenderSecurityCenterDisableSecureBootUI,omitempty"` + // DefenderSecurityCenterDisableTroubleshootingUI Used to disable the display of the security process troubleshooting under Device security. + DefenderSecurityCenterDisableTroubleshootingUI *bool `json:"defenderSecurityCenterDisableTroubleshootingUI,omitempty"` + // DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI Used to disable the display of update TPM Firmware when a vulnerable firmware is detected. + DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI *bool `json:"defenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI,omitempty"` + // DefenderSecurityCenterOrganizationDisplayName The company name that is displayed to the users. + DefenderSecurityCenterOrganizationDisplayName *string `json:"defenderSecurityCenterOrganizationDisplayName,omitempty"` + // DefenderSecurityCenterHelpEmail The email address that is displayed to users. + DefenderSecurityCenterHelpEmail *string `json:"defenderSecurityCenterHelpEmail,omitempty"` + // DefenderSecurityCenterHelpPhone The phone number or Skype ID that is displayed to users. + DefenderSecurityCenterHelpPhone *string `json:"defenderSecurityCenterHelpPhone,omitempty"` + // DefenderSecurityCenterHelpURL The help portal URL this is displayed to users. + DefenderSecurityCenterHelpURL *string `json:"defenderSecurityCenterHelpURL,omitempty"` + // DefenderSecurityCenterNotificationsFromApp Notifications to show from the displayed areas of app + DefenderSecurityCenterNotificationsFromApp *DefenderSecurityCenterNotificationsFromAppType `json:"defenderSecurityCenterNotificationsFromApp,omitempty"` + // DefenderSecurityCenterITContactDisplay Configure where to display IT contact information to end users. + DefenderSecurityCenterITContactDisplay *DefenderSecurityCenterITContactDisplayType `json:"defenderSecurityCenterITContactDisplay,omitempty"` + // WindowsDefenderTamperProtection Configure windows defender TamperProtection settings + WindowsDefenderTamperProtection *WindowsDefenderTamperProtectionOptions `json:"windowsDefenderTamperProtection,omitempty"` + // FirewallBlockStatefulFTP Blocks stateful FTP connections to the device + FirewallBlockStatefulFTP *bool `json:"firewallBlockStatefulFTP,omitempty"` + // FirewallIdleTimeoutForSecurityAssociationInSeconds Configures the idle timeout for security associations, in seconds, from 300 to 3600 inclusive. This is the period after which security associations will expire and be deleted. Valid values 300 to 3600 + FirewallIdleTimeoutForSecurityAssociationInSeconds *int `json:"firewallIdleTimeoutForSecurityAssociationInSeconds,omitempty"` + // FirewallPreSharedKeyEncodingMethod Select the preshared key encoding to be used + FirewallPreSharedKeyEncodingMethod *FirewallPreSharedKeyEncodingMethodType `json:"firewallPreSharedKeyEncodingMethod,omitempty"` + // FirewallIPSecExemptionsAllowNeighborDiscovery Configures IPSec exemptions to allow neighbor discovery IPv6 ICMP type-codes + FirewallIPSecExemptionsAllowNeighborDiscovery *bool `json:"firewallIPSecExemptionsAllowNeighborDiscovery,omitempty"` + // FirewallIPSecExemptionsAllowICMP Configures IPSec exemptions to allow ICMP + FirewallIPSecExemptionsAllowICMP *bool `json:"firewallIPSecExemptionsAllowICMP,omitempty"` + // FirewallIPSecExemptionsAllowRouterDiscovery Configures IPSec exemptions to allow router discovery IPv6 ICMP type-codes + FirewallIPSecExemptionsAllowRouterDiscovery *bool `json:"firewallIPSecExemptionsAllowRouterDiscovery,omitempty"` + // FirewallIPSecExemptionsAllowDHCP Configures IPSec exemptions to allow both IPv4 and IPv6 DHCP traffic + FirewallIPSecExemptionsAllowDHCP *bool `json:"firewallIPSecExemptionsAllowDHCP,omitempty"` + // FirewallCertificateRevocationListCheckMethod Specify how the certificate revocation list is to be enforced + FirewallCertificateRevocationListCheckMethod *FirewallCertificateRevocationListCheckMethodType `json:"firewallCertificateRevocationListCheckMethod,omitempty"` + // FirewallMergeKeyingModuleSettings If an authentication set is not fully supported by a keying module, direct the module to ignore only unsupported authentication suites rather than the entire set + FirewallMergeKeyingModuleSettings *bool `json:"firewallMergeKeyingModuleSettings,omitempty"` + // FirewallPacketQueueingMethod Configures how packet queueing should be applied in the tunnel gateway scenario + FirewallPacketQueueingMethod *FirewallPacketQueueingMethodType `json:"firewallPacketQueueingMethod,omitempty"` + // FirewallProfileDomain Configures the firewall profile settings for domain networks + FirewallProfileDomain *WindowsFirewallNetworkProfile `json:"firewallProfileDomain,omitempty"` + // FirewallProfilePublic Configures the firewall profile settings for public networks + FirewallProfilePublic *WindowsFirewallNetworkProfile `json:"firewallProfilePublic,omitempty"` + // FirewallProfilePrivate Configures the firewall profile settings for private networks + FirewallProfilePrivate *WindowsFirewallNetworkProfile `json:"firewallProfilePrivate,omitempty"` + // DefenderAdobeReaderLaunchChildProcess Value indicating the behavior of Adobe Reader from creating child processes + DefenderAdobeReaderLaunchChildProcess *DefenderProtectionType `json:"defenderAdobeReaderLaunchChildProcess,omitempty"` + // DefenderAttackSurfaceReductionExcludedPaths List of exe files and folders to be excluded from attack surface reduction rules + DefenderAttackSurfaceReductionExcludedPaths []string `json:"defenderAttackSurfaceReductionExcludedPaths,omitempty"` + // DefenderOfficeAppsOtherProcessInjectionType Value indicating the behavior of Office applications injecting into other processes + DefenderOfficeAppsOtherProcessInjectionType *DefenderAttackSurfaceType `json:"defenderOfficeAppsOtherProcessInjectionType,omitempty"` + // DefenderOfficeAppsOtherProcessInjection Value indicating the behavior of  Office applications injecting into other processes + DefenderOfficeAppsOtherProcessInjection *DefenderProtectionType `json:"defenderOfficeAppsOtherProcessInjection,omitempty"` + // DefenderOfficeCommunicationAppsLaunchChildProcess Value indicating the behavior of Office communication applications, including Microsoft Outlook, from creating child processes + DefenderOfficeCommunicationAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeCommunicationAppsLaunchChildProcess,omitempty"` + // DefenderOfficeAppsExecutableContentCreationOrLaunchType Value indicating the behavior of Office applications/macros creating or launching executable content + DefenderOfficeAppsExecutableContentCreationOrLaunchType *DefenderAttackSurfaceType `json:"defenderOfficeAppsExecutableContentCreationOrLaunchType,omitempty"` + // DefenderOfficeAppsExecutableContentCreationOrLaunch Value indicating the behavior of Office applications/macros creating or launching executable content + DefenderOfficeAppsExecutableContentCreationOrLaunch *DefenderProtectionType `json:"defenderOfficeAppsExecutableContentCreationOrLaunch,omitempty"` + // DefenderOfficeAppsLaunchChildProcessType Value indicating the behavior of Office application launching child processes + DefenderOfficeAppsLaunchChildProcessType *DefenderAttackSurfaceType `json:"defenderOfficeAppsLaunchChildProcessType,omitempty"` + // DefenderOfficeAppsLaunchChildProcess Value indicating the behavior of Office application launching child processes + DefenderOfficeAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeAppsLaunchChildProcess,omitempty"` + // DefenderOfficeMacroCodeAllowWin32ImportsType Value indicating the behavior of Win32 imports from Macro code in Office + DefenderOfficeMacroCodeAllowWin32ImportsType *DefenderAttackSurfaceType `json:"defenderOfficeMacroCodeAllowWin32ImportsType,omitempty"` + // DefenderOfficeMacroCodeAllowWin32Imports Value indicating the behavior of Win32 imports from Macro code in Office + DefenderOfficeMacroCodeAllowWin32Imports *DefenderProtectionType `json:"defenderOfficeMacroCodeAllowWin32Imports,omitempty"` + // DefenderScriptObfuscatedMacroCodeType Value indicating the behavior of obfuscated js/vbs/ps/macro code + DefenderScriptObfuscatedMacroCodeType *DefenderAttackSurfaceType `json:"defenderScriptObfuscatedMacroCodeType,omitempty"` + // DefenderScriptObfuscatedMacroCode Value indicating the behavior of obfuscated js/vbs/ps/macro code + DefenderScriptObfuscatedMacroCode *DefenderProtectionType `json:"defenderScriptObfuscatedMacroCode,omitempty"` + // DefenderScriptDownloadedPayloadExecutionType Value indicating the behavior of js/vbs executing payload downloaded from Internet + DefenderScriptDownloadedPayloadExecutionType *DefenderAttackSurfaceType `json:"defenderScriptDownloadedPayloadExecutionType,omitempty"` + // DefenderScriptDownloadedPayloadExecution Value indicating the behavior of js/vbs executing payload downloaded from Internet + DefenderScriptDownloadedPayloadExecution *DefenderProtectionType `json:"defenderScriptDownloadedPayloadExecution,omitempty"` + // DefenderPreventCredentialStealingType Value indicating if credential stealing from the Windows local security authority subsystem is permitted + DefenderPreventCredentialStealingType *DefenderProtectionType `json:"defenderPreventCredentialStealingType,omitempty"` + // DefenderProcessCreationType Value indicating response to process creations originating from PSExec and WMI commands + DefenderProcessCreationType *DefenderAttackSurfaceType `json:"defenderProcessCreationType,omitempty"` + // DefenderProcessCreation Value indicating response to process creations originating from PSExec and WMI commands + DefenderProcessCreation *DefenderProtectionType `json:"defenderProcessCreation,omitempty"` + // DefenderUntrustedUSBProcessType Value indicating response to untrusted and unsigned processes that run from USB + DefenderUntrustedUSBProcessType *DefenderAttackSurfaceType `json:"defenderUntrustedUSBProcessType,omitempty"` + // DefenderUntrustedUSBProcess Value indicating response to untrusted and unsigned processes that run from USB + DefenderUntrustedUSBProcess *DefenderProtectionType `json:"defenderUntrustedUSBProcess,omitempty"` + // DefenderUntrustedExecutableType Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria + DefenderUntrustedExecutableType *DefenderAttackSurfaceType `json:"defenderUntrustedExecutableType,omitempty"` + // DefenderUntrustedExecutable Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria + DefenderUntrustedExecutable *DefenderProtectionType `json:"defenderUntrustedExecutable,omitempty"` + // DefenderEmailContentExecutionType Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client) + DefenderEmailContentExecutionType *DefenderAttackSurfaceType `json:"defenderEmailContentExecutionType,omitempty"` + // DefenderEmailContentExecution Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client) + DefenderEmailContentExecution *DefenderProtectionType `json:"defenderEmailContentExecution,omitempty"` + // DefenderAdvancedRansomewareProtectionType Value indicating use of advanced protection against ransomeware + DefenderAdvancedRansomewareProtectionType *DefenderProtectionType `json:"defenderAdvancedRansomewareProtectionType,omitempty"` + // DefenderGuardMyFoldersType Value indicating the behavior of protected folders + DefenderGuardMyFoldersType *FolderProtectionType `json:"defenderGuardMyFoldersType,omitempty"` + // DefenderGuardedFoldersAllowedAppPaths List of paths to exe that are allowed to access protected folders + DefenderGuardedFoldersAllowedAppPaths []string `json:"defenderGuardedFoldersAllowedAppPaths,omitempty"` + // DefenderAdditionalGuardedFolders List of folder paths to be added to the list of protected folders + DefenderAdditionalGuardedFolders []string `json:"defenderAdditionalGuardedFolders,omitempty"` + // DefenderNetworkProtectionType Value indicating the behavior of NetworkProtection + DefenderNetworkProtectionType *DefenderProtectionType `json:"defenderNetworkProtectionType,omitempty"` + // DefenderExploitProtectionXML Xml content containing information regarding exploit protection details. + DefenderExploitProtectionXML *Binary `json:"defenderExploitProtectionXml,omitempty"` + // DefenderExploitProtectionXMLFileName Name of the file from which DefenderExploitProtectionXml was obtained. + DefenderExploitProtectionXMLFileName *string `json:"defenderExploitProtectionXmlFileName,omitempty"` + // DefenderSecurityCenterBlockExploitProtectionOverride Indicates whether or not to block user from overriding Exploit Protection settings. + DefenderSecurityCenterBlockExploitProtectionOverride *bool `json:"defenderSecurityCenterBlockExploitProtectionOverride,omitempty"` + // AppLockerApplicationControl Enables the Admin to choose what types of app to allow on devices. + AppLockerApplicationControl *AppLockerApplicationControlType `json:"appLockerApplicationControl,omitempty"` + // DeviceGuardLocalSystemAuthorityCredentialGuardSettings Turn on Credential Guard when Platform Security Level with Secure Boot and Virtualization Based Security are both enabled. + DeviceGuardLocalSystemAuthorityCredentialGuardSettings *DeviceGuardLocalSystemAuthorityCredentialGuardType `json:"deviceGuardLocalSystemAuthorityCredentialGuardSettings,omitempty"` + // DeviceGuardEnableVirtualizationBasedSecurity Turns On Virtualization Based Security(VBS). + DeviceGuardEnableVirtualizationBasedSecurity *bool `json:"deviceGuardEnableVirtualizationBasedSecurity,omitempty"` + // DeviceGuardEnableSecureBootWithDMA This property will be deprecated in May 2019 and will be replaced with property DeviceGuardSecureBootWithDMA. Specifies whether Platform Security Level is enabled at next reboot. + DeviceGuardEnableSecureBootWithDMA *bool `json:"deviceGuardEnableSecureBootWithDMA,omitempty"` + // DeviceGuardSecureBootWithDMA Specifies whether Platform Security Level is enabled at next reboot. + DeviceGuardSecureBootWithDMA *SecureBootWithDMAType `json:"deviceGuardSecureBootWithDMA,omitempty"` + // DeviceGuardLaunchSystemGuard Allows the IT admin to configure the launch of System Guard. + DeviceGuardLaunchSystemGuard *Enablement `json:"deviceGuardLaunchSystemGuard,omitempty"` + // SmartScreenEnableInShell Allows IT Admins to configure SmartScreen for Windows. + SmartScreenEnableInShell *bool `json:"smartScreenEnableInShell,omitempty"` + // SmartScreenBlockOverrideForFiles Allows IT Admins to control whether users can can ignore SmartScreen warnings and run malicious files. + SmartScreenBlockOverrideForFiles *bool `json:"smartScreenBlockOverrideForFiles,omitempty"` + // ApplicationGuardEnabled Enable Windows Defender Application Guard + ApplicationGuardEnabled *bool `json:"applicationGuardEnabled,omitempty"` + // ApplicationGuardEnabledOptions Enable Windows Defender Application Guard for newer Windows builds + ApplicationGuardEnabledOptions *ApplicationGuardEnabledOptions `json:"applicationGuardEnabledOptions,omitempty"` + // ApplicationGuardBlockFileTransfer Block clipboard to transfer image file, text file or neither of them + ApplicationGuardBlockFileTransfer *ApplicationGuardBlockFileTransferType `json:"applicationGuardBlockFileTransfer,omitempty"` + // ApplicationGuardBlockNonEnterpriseContent Block enterprise sites to load non-enterprise content, such as third party plug-ins + ApplicationGuardBlockNonEnterpriseContent *bool `json:"applicationGuardBlockNonEnterpriseContent,omitempty"` + // ApplicationGuardAllowPersistence Allow persisting user generated data inside the App Guard Containter (favorites, cookies, web passwords, etc.) + ApplicationGuardAllowPersistence *bool `json:"applicationGuardAllowPersistence,omitempty"` + // ApplicationGuardForceAuditing Force auditing will persist Windows logs and events to meet security/compliance criteria (sample events are user login-logoff, use of privilege rights, software installation, system changes, etc.) + ApplicationGuardForceAuditing *bool `json:"applicationGuardForceAuditing,omitempty"` + // ApplicationGuardBlockClipboardSharing Block clipboard to share data from Host to Container, or from Container to Host, or both ways, or neither ways. + ApplicationGuardBlockClipboardSharing *ApplicationGuardBlockClipboardSharingType `json:"applicationGuardBlockClipboardSharing,omitempty"` + // ApplicationGuardAllowPrintToPDF Allow printing to PDF from Container + ApplicationGuardAllowPrintToPDF *bool `json:"applicationGuardAllowPrintToPDF,omitempty"` + // ApplicationGuardAllowPrintToXPS Allow printing to XPS from Container + ApplicationGuardAllowPrintToXPS *bool `json:"applicationGuardAllowPrintToXPS,omitempty"` + // ApplicationGuardAllowPrintToLocalPrinters Allow printing to Local Printers from Container + ApplicationGuardAllowPrintToLocalPrinters *bool `json:"applicationGuardAllowPrintToLocalPrinters,omitempty"` + // ApplicationGuardAllowPrintToNetworkPrinters Allow printing to Network Printers from Container + ApplicationGuardAllowPrintToNetworkPrinters *bool `json:"applicationGuardAllowPrintToNetworkPrinters,omitempty"` + // ApplicationGuardAllowVirtualGPU Allow application guard to use virtual GPU + ApplicationGuardAllowVirtualGPU *bool `json:"applicationGuardAllowVirtualGPU,omitempty"` + // ApplicationGuardAllowFileSaveOnHost Allow users to download files from Edge in the application guard container and save them on the host file system + ApplicationGuardAllowFileSaveOnHost *bool `json:"applicationGuardAllowFileSaveOnHost,omitempty"` + // BitLockerAllowStandardUserEncryption Allows the admin to allow standard users to enable encrpytion during Azure AD Join. + BitLockerAllowStandardUserEncryption *bool `json:"bitLockerAllowStandardUserEncryption,omitempty"` + // BitLockerDisableWarningForOtherDiskEncryption Allows the Admin to disable the warning prompt for other disk encryption on the user machines. + BitLockerDisableWarningForOtherDiskEncryption *bool `json:"bitLockerDisableWarningForOtherDiskEncryption,omitempty"` + // BitLockerEnableStorageCardEncryptionOnMobile Allows the admin to require encryption to be turned on using BitLocker. This policy is valid only for a mobile SKU. + BitLockerEnableStorageCardEncryptionOnMobile *bool `json:"bitLockerEnableStorageCardEncryptionOnMobile,omitempty"` + // BitLockerEncryptDevice Allows the admin to require encryption to be turned on using BitLocker. + BitLockerEncryptDevice *bool `json:"bitLockerEncryptDevice,omitempty"` + // BitLockerSystemDrivePolicy BitLocker System Drive Policy. + BitLockerSystemDrivePolicy *BitLockerSystemDrivePolicy `json:"bitLockerSystemDrivePolicy,omitempty"` + // BitLockerFixedDrivePolicy BitLocker Fixed Drive Policy. + BitLockerFixedDrivePolicy *BitLockerFixedDrivePolicy `json:"bitLockerFixedDrivePolicy,omitempty"` + // BitLockerRemovableDrivePolicy BitLocker Removable Drive Policy. + BitLockerRemovableDrivePolicy *BitLockerRemovableDrivePolicy `json:"bitLockerRemovableDrivePolicy,omitempty"` + // BitLockerRecoveryPasswordRotation This setting initiates a client-driven recovery password rotation after an OS drive recovery (either by using bootmgr or WinRE). + BitLockerRecoveryPasswordRotation *BitLockerRecoveryPasswordRotationType `json:"bitLockerRecoveryPasswordRotation,omitempty"` +} + +// Windows10EnrollmentCompletionPageConfiguration Windows 10 Enrollment Status Page Configuration +type Windows10EnrollmentCompletionPageConfiguration struct { + // DeviceEnrollmentConfiguration is the base model of Windows10EnrollmentCompletionPageConfiguration + DeviceEnrollmentConfiguration + // ShowInstallationProgress Show or hide installation progress to user + ShowInstallationProgress *bool `json:"showInstallationProgress,omitempty"` + // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure + BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"` + // AllowDeviceResetOnInstallFailure Allow or block device reset on installation failure + AllowDeviceResetOnInstallFailure *bool `json:"allowDeviceResetOnInstallFailure,omitempty"` + // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure + AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"` + // CustomErrorMessage Set custom error message to show upon installation failure + CustomErrorMessage *string `json:"customErrorMessage,omitempty"` + // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes + InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"` + // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure + AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"` + // SelectedMobileAppIDs Selected applications to track the installation status + SelectedMobileAppIDs []string `json:"selectedMobileAppIds,omitempty"` + // TrackInstallProgressForAutopilotOnly Only show installation progress for Autopilot enrollment scenarios + TrackInstallProgressForAutopilotOnly *bool `json:"trackInstallProgressForAutopilotOnly,omitempty"` + // DisableUserStatusTrackingAfterFirstUser Only show installation progress for first user post enrollment + DisableUserStatusTrackingAfterFirstUser *bool `json:"disableUserStatusTrackingAfterFirstUser,omitempty"` +} + +// Windows10EnrollmentCompletionPageConfigurationPolicySetItem A class containing the properties used for Windows10EnrollmentCompletionPageConfiguration PolicySetItem. +type Windows10EnrollmentCompletionPageConfigurationPolicySetItem struct { + // PolicySetItem is the base model of Windows10EnrollmentCompletionPageConfigurationPolicySetItem + PolicySetItem + // Priority Priority of the Windows10EnrollmentCompletionPageConfigurationPolicySetItem. + Priority *int `json:"priority,omitempty"` +} + +// Windows10EnterpriseModernAppManagementConfiguration Windows10 Enterprise Modern App Management Configuration. +type Windows10EnterpriseModernAppManagementConfiguration struct { + // DeviceConfiguration is the base model of Windows10EnterpriseModernAppManagementConfiguration + DeviceConfiguration + // UninstallBuiltInApps Indicates whether or not to uninstall a fixed list of built-in Windows apps. + UninstallBuiltInApps *bool `json:"uninstallBuiltInApps,omitempty"` +} + +// Windows10GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10GeneralConfiguration resource. +type Windows10GeneralConfiguration struct { + // DeviceConfiguration is the base model of Windows10GeneralConfiguration + DeviceConfiguration + // TaskManagerBlockEndTask Specify whether non-administrators can use Task Manager to end tasks. + TaskManagerBlockEndTask *bool `json:"taskManagerBlockEndTask,omitempty"` + // EnergySaverOnBatteryThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While on battery, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100 + EnergySaverOnBatteryThresholdPercentage *int `json:"energySaverOnBatteryThresholdPercentage,omitempty"` + // EnergySaverPluggedInThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While plugged in, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100 + EnergySaverPluggedInThresholdPercentage *int `json:"energySaverPluggedInThresholdPercentage,omitempty"` + // PowerLidCloseActionOnBattery This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while on battery. + PowerLidCloseActionOnBattery *PowerActionType `json:"powerLidCloseActionOnBattery,omitempty"` + // PowerLidCloseActionPluggedIn This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while plugged in. + PowerLidCloseActionPluggedIn *PowerActionType `json:"powerLidCloseActionPluggedIn,omitempty"` + // PowerButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Power button while on battery. + PowerButtonActionOnBattery *PowerActionType `json:"powerButtonActionOnBattery,omitempty"` + // PowerButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Power button while plugged in. + PowerButtonActionPluggedIn *PowerActionType `json:"powerButtonActionPluggedIn,omitempty"` + // PowerSleepButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Sleep button while on battery. + PowerSleepButtonActionOnBattery *PowerActionType `json:"powerSleepButtonActionOnBattery,omitempty"` + // PowerSleepButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Sleep button while plugged in. + PowerSleepButtonActionPluggedIn *PowerActionType `json:"powerSleepButtonActionPluggedIn,omitempty"` + // PowerHybridSleepOnBattery This setting allows you to turn off hybrid sleep while on battery. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting. + PowerHybridSleepOnBattery *Enablement `json:"powerHybridSleepOnBattery,omitempty"` + // PowerHybridSleepPluggedIn This setting allows you to turn off hybrid sleep while plugged in. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting. + PowerHybridSleepPluggedIn *Enablement `json:"powerHybridSleepPluggedIn,omitempty"` + // Windows10AppsForceUpdateSchedule Windows 10 force update schedule for Apps. + Windows10AppsForceUpdateSchedule *Windows10AppsForceUpdateSchedule `json:"windows10AppsForceUpdateSchedule,omitempty"` + // EnableAutomaticRedeployment Allow users with administrative rights to delete all user data and settings using CTRL + Win + R at the device lock screen so that the device can be automatically re-configured and re-enrolled into management. + EnableAutomaticRedeployment *bool `json:"enableAutomaticRedeployment,omitempty"` + // MicrosoftAccountSignInAssistantSettings Controls the Microsoft Account Sign-In Assistant (wlidsvc) NT service. + MicrosoftAccountSignInAssistantSettings *SignInAssistantOptions `json:"microsoftAccountSignInAssistantSettings,omitempty"` + // AuthenticationAllowSecondaryDevice Allows secondary authentication devices to work with Windows. + AuthenticationAllowSecondaryDevice *bool `json:"authenticationAllowSecondaryDevice,omitempty"` + // AuthenticationWebSignIn Indicates whether or not Web Credential Provider will be enabled. + AuthenticationWebSignIn *Enablement `json:"authenticationWebSignIn,omitempty"` + // AuthenticationPreferredAzureADTenantDomainName Specifies the preferred domain among available domains in the Azure AD tenant. + AuthenticationPreferredAzureADTenantDomainName *string `json:"authenticationPreferredAzureADTenantDomainName,omitempty"` + // CryptographyAllowFipsAlgorithmPolicy Specify whether to allow or disallow the Federal Information Processing Standard (FIPS) policy. + CryptographyAllowFipsAlgorithmPolicy *bool `json:"cryptographyAllowFipsAlgorithmPolicy,omitempty"` + // DisplayAppListWithGdiDPIScalingTurnedOn List of legacy applications that have GDI DPI Scaling turned on. + DisplayAppListWithGdiDPIScalingTurnedOn []string `json:"displayAppListWithGdiDPIScalingTurnedOn,omitempty"` + // DisplayAppListWithGdiDPIScalingTurnedOff List of legacy applications that have GDI DPI Scaling turned off. + DisplayAppListWithGdiDPIScalingTurnedOff []string `json:"displayAppListWithGdiDPIScalingTurnedOff,omitempty"` + // EnterpriseCloudPrintDiscoveryEndPoint Endpoint for discovering cloud printers. + EnterpriseCloudPrintDiscoveryEndPoint *string `json:"enterpriseCloudPrintDiscoveryEndPoint,omitempty"` + // EnterpriseCloudPrintOAuthAuthority Authentication endpoint for acquiring OAuth tokens. + EnterpriseCloudPrintOAuthAuthority *string `json:"enterpriseCloudPrintOAuthAuthority,omitempty"` + // EnterpriseCloudPrintOAuthClientIdentifier GUID of a client application authorized to retrieve OAuth tokens from the OAuth Authority. + EnterpriseCloudPrintOAuthClientIdentifier *string `json:"enterpriseCloudPrintOAuthClientIdentifier,omitempty"` + // EnterpriseCloudPrintResourceIdentifier OAuth resource URI for print service as configured in the Azure portal. + EnterpriseCloudPrintResourceIdentifier *string `json:"enterpriseCloudPrintResourceIdentifier,omitempty"` + // EnterpriseCloudPrintDiscoveryMaxLimit Maximum number of printers that should be queried from a discovery endpoint. This is a mobile only setting. Valid values 1 to 65535 + EnterpriseCloudPrintDiscoveryMaxLimit *int `json:"enterpriseCloudPrintDiscoveryMaxLimit,omitempty"` + // EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier OAuth resource URI for printer discovery service as configured in Azure portal. + EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier *string `json:"enterpriseCloudPrintMopriaDiscoveryResourceIdentifier,omitempty"` + // ExperienceDoNotSyncBrowserSettings Allow or prevent the syncing of Microsoft Edge Browser settings. Option for IT admins to prevent syncing across devices, but allow user override. + ExperienceDoNotSyncBrowserSettings *BrowserSyncSetting `json:"experienceDoNotSyncBrowserSettings,omitempty"` + // MessagingBlockSync Indicates whether or not to block text message back up and restore and Messaging Everywhere. + MessagingBlockSync *bool `json:"messagingBlockSync,omitempty"` + // MessagingBlockMMS Indicates whether or not to block the MMS send/receive functionality on the device. + MessagingBlockMMS *bool `json:"messagingBlockMMS,omitempty"` + // MessagingBlockRichCommunicationServices Indicates whether or not to block the RCS send/receive functionality on the device. + MessagingBlockRichCommunicationServices *bool `json:"messagingBlockRichCommunicationServices,omitempty"` + // PrinterNames Automatically provision printers based on their names (network host names). + PrinterNames []string `json:"printerNames,omitempty"` + // PrinterDefaultName Name (network host name) of an installed printer. + PrinterDefaultName *string `json:"printerDefaultName,omitempty"` + // PrinterBlockAddition Prevent user installation of additional printers from printers settings. + PrinterBlockAddition *bool `json:"printerBlockAddition,omitempty"` + // SearchBlockDiacritics Specifies if search can use diacritics. + SearchBlockDiacritics *bool `json:"searchBlockDiacritics,omitempty"` + // SearchDisableAutoLanguageDetection Specifies whether to use automatic language detection when indexing content and properties. + SearchDisableAutoLanguageDetection *bool `json:"searchDisableAutoLanguageDetection,omitempty"` + // SearchDisableIndexingEncryptedItems Indicates whether or not to block indexing of WIP-protected items to prevent them from appearing in search results for Cortana or Explorer. + SearchDisableIndexingEncryptedItems *bool `json:"searchDisableIndexingEncryptedItems,omitempty"` + // SearchEnableRemoteQueries Indicates whether or not to block remote queries of this computer’s index. + SearchEnableRemoteQueries *bool `json:"searchEnableRemoteQueries,omitempty"` + // SearchDisableUseLocation Specifies if search can use location information. + SearchDisableUseLocation *bool `json:"searchDisableUseLocation,omitempty"` + // SearchDisableLocation Specifies if search can use location information. + SearchDisableLocation *bool `json:"searchDisableLocation,omitempty"` + // SearchDisableIndexerBackoff Indicates whether or not to disable the search indexer backoff feature. + SearchDisableIndexerBackoff *bool `json:"searchDisableIndexerBackoff,omitempty"` + // SearchDisableIndexingRemovableDrive Indicates whether or not to allow users to add locations on removable drives to libraries and to be indexed. + SearchDisableIndexingRemovableDrive *bool `json:"searchDisableIndexingRemovableDrive,omitempty"` + // SearchEnableAutomaticIndexSizeManangement Specifies minimum amount of hard drive space on the same drive as the index location before indexing stops. + SearchEnableAutomaticIndexSizeManangement *bool `json:"searchEnableAutomaticIndexSizeManangement,omitempty"` + // SearchBlockWebResults Indicates whether or not to block the web search. + SearchBlockWebResults *bool `json:"searchBlockWebResults,omitempty"` + // SecurityBlockAzureADJoinedDevicesAutoEncryption Specify whether to allow automatic device encryption during OOBE when the device is Azure AD joined (desktop only). + SecurityBlockAzureADJoinedDevicesAutoEncryption *bool `json:"securityBlockAzureADJoinedDevicesAutoEncryption,omitempty"` + // DiagnosticsDataSubmissionMode Gets or sets a value allowing the device to send diagnostic and usage telemetry data, such as Watson. + DiagnosticsDataSubmissionMode *DiagnosticDataSubmissionMode `json:"diagnosticsDataSubmissionMode,omitempty"` + // OneDriveDisableFileSync Gets or sets a value allowing IT admins to prevent apps and features from working with files on OneDrive. + OneDriveDisableFileSync *bool `json:"oneDriveDisableFileSync,omitempty"` + // SystemTelemetryProxyServer Gets or sets the fully qualified domain name (FQDN) or IP address of a proxy server to forward Connected User Experiences and Telemetry requests. + SystemTelemetryProxyServer *string `json:"systemTelemetryProxyServer,omitempty"` + // EdgeTelemetryForMicrosoft365Analytics Specifies what type of telemetry data (none, intranet, internet, both) is sent to Microsoft 365 Analytics + EdgeTelemetryForMicrosoft365Analytics *EdgeTelemetryMode `json:"edgeTelemetryForMicrosoft365Analytics,omitempty"` + // InkWorkspaceAccess Controls the user access to the ink workspace, from the desktop and from above the lock screen. + InkWorkspaceAccess *InkAccessSetting `json:"inkWorkspaceAccess,omitempty"` + // InkWorkspaceAccessState Controls the user access to the ink workspace, from the desktop and from above the lock screen. + InkWorkspaceAccessState *StateManagementSetting `json:"inkWorkspaceAccessState,omitempty"` + // InkWorkspaceBlockSuggestedApps Specify whether to show recommended app suggestions in the ink workspace. + InkWorkspaceBlockSuggestedApps *bool `json:"inkWorkspaceBlockSuggestedApps,omitempty"` + // SmartScreenEnableAppInstallControl This property will be deprecated in July 2019 and will be replaced by property SmartScreenAppInstallControl. Allows IT Admins to control whether users are allowed to install apps from places other than the Store. + SmartScreenEnableAppInstallControl *bool `json:"smartScreenEnableAppInstallControl,omitempty"` + // SmartScreenAppInstallControl Added in Windows 10, version 1703. Allows IT Admins to control whether users are allowed to install apps from places other than the Store. + SmartScreenAppInstallControl *AppInstallControlType `json:"smartScreenAppInstallControl,omitempty"` + // PersonalizationDesktopImageURL A http or https Url to a jpg, jpeg or png image that needs to be downloaded and used as the Desktop Image or a file Url to a local image on the file system that needs to used as the Desktop Image. + PersonalizationDesktopImageURL *string `json:"personalizationDesktopImageUrl,omitempty"` + // PersonalizationLockScreenImageURL A http or https Url to a jpg, jpeg or png image that neeeds to be downloaded and used as the Lock Screen Image or a file Url to a local image on the file system that needs to be used as the Lock Screen Image. + PersonalizationLockScreenImageURL *string `json:"personalizationLockScreenImageUrl,omitempty"` + // BluetoothAllowedServices Specify a list of allowed Bluetooth services and profiles in hex formatted strings. + BluetoothAllowedServices []string `json:"bluetoothAllowedServices,omitempty"` + // BluetoothBlockAdvertising Whether or not to Block the user from using bluetooth advertising. + BluetoothBlockAdvertising *bool `json:"bluetoothBlockAdvertising,omitempty"` + // BluetoothBlockPromptedProximalConnections Whether or not to block the users from using Swift Pair and other proximity based scenarios. + BluetoothBlockPromptedProximalConnections *bool `json:"bluetoothBlockPromptedProximalConnections,omitempty"` + // BluetoothBlockDiscoverableMode Whether or not to Block the user from using bluetooth discoverable mode. + BluetoothBlockDiscoverableMode *bool `json:"bluetoothBlockDiscoverableMode,omitempty"` + // BluetoothBlockPrePairing Whether or not to block specific bundled Bluetooth peripherals to automatically pair with the host device. + BluetoothBlockPrePairing *bool `json:"bluetoothBlockPrePairing,omitempty"` + // EdgeBlockAutofill Indicates whether or not to block auto fill. + EdgeBlockAutofill *bool `json:"edgeBlockAutofill,omitempty"` + // EdgeBlocked Indicates whether or not to Block the user from using the Edge browser. + EdgeBlocked *bool `json:"edgeBlocked,omitempty"` + // EdgeCookiePolicy Indicates which cookies to block in the Edge browser. + EdgeCookiePolicy *EdgeCookiePolicy `json:"edgeCookiePolicy,omitempty"` + // EdgeBlockDeveloperTools Indicates whether or not to block developer tools in the Edge browser. + EdgeBlockDeveloperTools *bool `json:"edgeBlockDeveloperTools,omitempty"` + // EdgeBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header. + EdgeBlockSendingDoNotTrackHeader *bool `json:"edgeBlockSendingDoNotTrackHeader,omitempty"` + // EdgeBlockExtensions Indicates whether or not to block extensions in the Edge browser. + EdgeBlockExtensions *bool `json:"edgeBlockExtensions,omitempty"` + // EdgeBlockInPrivateBrowsing Indicates whether or not to block InPrivate browsing on corporate networks, in the Edge browser. + EdgeBlockInPrivateBrowsing *bool `json:"edgeBlockInPrivateBrowsing,omitempty"` + // EdgeBlockJavaScript Indicates whether or not to Block the user from using JavaScript. + EdgeBlockJavaScript *bool `json:"edgeBlockJavaScript,omitempty"` + // EdgeBlockPasswordManager Indicates whether or not to Block password manager. + EdgeBlockPasswordManager *bool `json:"edgeBlockPasswordManager,omitempty"` + // EdgeBlockAddressBarDropdown Block the address bar dropdown functionality in Microsoft Edge. Disable this settings to minimize network connections from Microsoft Edge to Microsoft services. + EdgeBlockAddressBarDropdown *bool `json:"edgeBlockAddressBarDropdown,omitempty"` + // EdgeBlockCompatibilityList Block Microsoft compatibility list in Microsoft Edge. This list from Microsoft helps Edge properly display sites with known compatibility issues. + EdgeBlockCompatibilityList *bool `json:"edgeBlockCompatibilityList,omitempty"` + // EdgeClearBrowsingDataOnExit Clear browsing data on exiting Microsoft Edge. + EdgeClearBrowsingDataOnExit *bool `json:"edgeClearBrowsingDataOnExit,omitempty"` + // EdgeAllowStartPagesModification Allow users to change Start pages on Edge. Use the EdgeHomepageUrls to specify the Start pages that the user would see by default when they open Edge. + EdgeAllowStartPagesModification *bool `json:"edgeAllowStartPagesModification,omitempty"` + // EdgeDisableFirstRunPage Block the Microsoft web page that opens on the first use of Microsoft Edge. This policy allows enterprises, like those enrolled in zero emissions configurations, to block this page. + EdgeDisableFirstRunPage *bool `json:"edgeDisableFirstRunPage,omitempty"` + // EdgeBlockLiveTileDataCollection Block the collection of information by Microsoft for live tile creation when users pin a site to Start from Microsoft Edge. + EdgeBlockLiveTileDataCollection *bool `json:"edgeBlockLiveTileDataCollection,omitempty"` + // EdgeSyncFavoritesWithInternetExplorer Enable favorites sync between Internet Explorer and Microsoft Edge. Additions, deletions, modifications and order changes to favorites are shared between browsers. + EdgeSyncFavoritesWithInternetExplorer *bool `json:"edgeSyncFavoritesWithInternetExplorer,omitempty"` + // EdgeFavoritesListLocation The location of the favorites list to provision. Could be a local file, local network or http location. + EdgeFavoritesListLocation *string `json:"edgeFavoritesListLocation,omitempty"` + // EdgeBlockEditFavorites Indicates whether or not to Block the user from making changes to Favorites. + EdgeBlockEditFavorites *bool `json:"edgeBlockEditFavorites,omitempty"` + // EdgeNewTabPageURL Specify the page opened when new tabs are created. + EdgeNewTabPageURL *string `json:"edgeNewTabPageURL,omitempty"` + // EdgeHomeButtonConfiguration Causes the Home button to either hide, load the default Start page, load a New tab page, or a custom URL + EdgeHomeButtonConfiguration *EdgeHomeButtonConfiguration `json:"edgeHomeButtonConfiguration,omitempty"` + // EdgeHomeButtonConfigurationEnabled Enable the Home button configuration. + EdgeHomeButtonConfigurationEnabled *bool `json:"edgeHomeButtonConfigurationEnabled,omitempty"` + // EdgeOpensWith Specify what kind of pages are open at start. + EdgeOpensWith *EdgeOpenOptions `json:"edgeOpensWith,omitempty"` + // EdgeBlockSideloadingExtensions Indicates whether the user can sideload extensions. + EdgeBlockSideloadingExtensions *bool `json:"edgeBlockSideloadingExtensions,omitempty"` + // EdgeRequiredExtensionPackageFamilyNames Specify the list of package family names of browser extensions that are required and cannot be turned off by the user. + EdgeRequiredExtensionPackageFamilyNames []string `json:"edgeRequiredExtensionPackageFamilyNames,omitempty"` + // EdgeBlockPrinting Configure Edge to allow or block printing. + EdgeBlockPrinting *bool `json:"edgeBlockPrinting,omitempty"` + // EdgeFavoritesBarVisibility Get or set a value that specifies whether to set the favorites bar to always be visible or hidden on any page. + EdgeFavoritesBarVisibility *VisibilitySetting `json:"edgeFavoritesBarVisibility,omitempty"` + // EdgeBlockSavingHistory Configure Edge to allow browsing history to be saved or to never save browsing history. + EdgeBlockSavingHistory *bool `json:"edgeBlockSavingHistory,omitempty"` + // EdgeBlockFullScreenMode Allow or prevent Edge from entering the full screen mode. + EdgeBlockFullScreenMode *bool `json:"edgeBlockFullScreenMode,omitempty"` + // EdgeBlockWebContentOnNewTabPage Configure to load a blank page in Edge instead of the default New tab page and prevent users from changing it. + EdgeBlockWebContentOnNewTabPage *bool `json:"edgeBlockWebContentOnNewTabPage,omitempty"` + // EdgeBlockTabPreloading Configure whether Edge preloads the new tab page at Windows startup. + EdgeBlockTabPreloading *bool `json:"edgeBlockTabPreloading,omitempty"` + // EdgeBlockPrelaunch Decide whether Microsoft Edge is prelaunched at Windows startup. + EdgeBlockPrelaunch *bool `json:"edgeBlockPrelaunch,omitempty"` + // EdgeShowMessageWhenOpeningInternetExplorerSites Controls the message displayed by Edge before switching to Internet Explorer. + EdgeShowMessageWhenOpeningInternetExplorerSites *InternetExplorerMessageSetting `json:"edgeShowMessageWhenOpeningInternetExplorerSites,omitempty"` + // EdgePreventCertificateErrorOverride Allow or prevent users from overriding certificate errors. + EdgePreventCertificateErrorOverride *bool `json:"edgePreventCertificateErrorOverride,omitempty"` + // EdgeKioskModeRestriction Controls how the Microsoft Edge settings are restricted based on the configure kiosk mode. + EdgeKioskModeRestriction *EdgeKioskModeRestrictionType `json:"edgeKioskModeRestriction,omitempty"` + // EdgeKioskResetAfterIdleTimeInMinutes Specifies the time in minutes from the last user activity before Microsoft Edge kiosk resets. Valid values are 0-1440. The default is 5. 0 indicates no reset. Valid values 0 to 1440 + EdgeKioskResetAfterIdleTimeInMinutes *int `json:"edgeKioskResetAfterIdleTimeInMinutes,omitempty"` + // CellularBlockDataWhenRoaming Whether or not to Block the user from using data over cellular while roaming. + CellularBlockDataWhenRoaming *bool `json:"cellularBlockDataWhenRoaming,omitempty"` + // CellularBlockVPN Whether or not to Block the user from using VPN over cellular. + CellularBlockVPN *bool `json:"cellularBlockVpn,omitempty"` + // CellularBlockVPNWhenRoaming Whether or not to Block the user from using VPN when roaming over cellular. + CellularBlockVPNWhenRoaming *bool `json:"cellularBlockVpnWhenRoaming,omitempty"` + // CellularData Whether or not to allow the cellular data channel on the device. If not configured, the cellular data channel is allowed and the user can turn it off. + CellularData *ConfigurationUsage `json:"cellularData,omitempty"` + // DefenderBlockEndUserAccess Whether or not to block end user access to Defender. + DefenderBlockEndUserAccess *bool `json:"defenderBlockEndUserAccess,omitempty"` + // DefenderDaysBeforeDeletingQuarantinedMalware Number of days before deleting quarantined malware. Valid values 0 to 90 + DefenderDaysBeforeDeletingQuarantinedMalware *int `json:"defenderDaysBeforeDeletingQuarantinedMalware,omitempty"` + // DefenderDetectedMalwareActions Gets or sets Defender’s actions to take on detected Malware per threat level. + DefenderDetectedMalwareActions *DefenderDetectedMalwareActions `json:"defenderDetectedMalwareActions,omitempty"` + // DefenderSystemScanSchedule Defender day of the week for the system scan. + DefenderSystemScanSchedule *WeeklySchedule `json:"defenderSystemScanSchedule,omitempty"` + // DefenderFilesAndFoldersToExclude Files and folder to exclude from scans and real time protection. + DefenderFilesAndFoldersToExclude []string `json:"defenderFilesAndFoldersToExclude,omitempty"` + // DefenderFileExtensionsToExclude File extensions to exclude from scans and real time protection. + DefenderFileExtensionsToExclude []string `json:"defenderFileExtensionsToExclude,omitempty"` + // DefenderScanMaxCPU Max CPU usage percentage during scan. Valid values 0 to 100 + DefenderScanMaxCPU *int `json:"defenderScanMaxCpu,omitempty"` + // DefenderMonitorFileActivity Value for monitoring file activity. + DefenderMonitorFileActivity *DefenderMonitorFileActivity `json:"defenderMonitorFileActivity,omitempty"` + // DefenderPotentiallyUnwantedAppAction Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop. + DefenderPotentiallyUnwantedAppAction *DefenderPotentiallyUnwantedAppAction `json:"defenderPotentiallyUnwantedAppAction,omitempty"` + // DefenderPotentiallyUnwantedAppActionSetting Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop. + DefenderPotentiallyUnwantedAppActionSetting *DefenderProtectionType `json:"defenderPotentiallyUnwantedAppActionSetting,omitempty"` + // DefenderProcessesToExclude Processes to exclude from scans and real time protection. + DefenderProcessesToExclude []string `json:"defenderProcessesToExclude,omitempty"` + // DefenderPromptForSampleSubmission The configuration for how to prompt user for sample submission. + DefenderPromptForSampleSubmission *DefenderPromptForSampleSubmission `json:"defenderPromptForSampleSubmission,omitempty"` + // DefenderRequireBehaviorMonitoring Indicates whether or not to require behavior monitoring. + DefenderRequireBehaviorMonitoring *bool `json:"defenderRequireBehaviorMonitoring,omitempty"` + // DefenderRequireCloudProtection Indicates whether or not to require cloud protection. + DefenderRequireCloudProtection *bool `json:"defenderRequireCloudProtection,omitempty"` + // DefenderRequireNetworkInspectionSystem Indicates whether or not to require network inspection system. + DefenderRequireNetworkInspectionSystem *bool `json:"defenderRequireNetworkInspectionSystem,omitempty"` + // DefenderRequireRealTimeMonitoring Indicates whether or not to require real time monitoring. + DefenderRequireRealTimeMonitoring *bool `json:"defenderRequireRealTimeMonitoring,omitempty"` + // DefenderScanArchiveFiles Indicates whether or not to scan archive files. + DefenderScanArchiveFiles *bool `json:"defenderScanArchiveFiles,omitempty"` + // DefenderScanDownloads Indicates whether or not to scan downloads. + DefenderScanDownloads *bool `json:"defenderScanDownloads,omitempty"` + // DefenderScheduleScanEnableLowCPUPriority When enabled, low CPU priority will be used during scheduled scans. + DefenderScheduleScanEnableLowCPUPriority *bool `json:"defenderScheduleScanEnableLowCpuPriority,omitempty"` + // DefenderDisableCatchupQuickScan When blocked, catch-up scans for scheduled quick scans will be turned off. + DefenderDisableCatchupQuickScan *bool `json:"defenderDisableCatchupQuickScan,omitempty"` + // DefenderDisableCatchupFullScan When blocked, catch-up scans for scheduled full scans will be turned off. + DefenderDisableCatchupFullScan *bool `json:"defenderDisableCatchupFullScan,omitempty"` + // DefenderScanNetworkFiles Indicates whether or not to scan files opened from a network folder. + DefenderScanNetworkFiles *bool `json:"defenderScanNetworkFiles,omitempty"` + // DefenderScanIncomingMail Indicates whether or not to scan incoming mail messages. + DefenderScanIncomingMail *bool `json:"defenderScanIncomingMail,omitempty"` + // DefenderScanMappedNetworkDrivesDuringFullScan Indicates whether or not to scan mapped network drives during full scan. + DefenderScanMappedNetworkDrivesDuringFullScan *bool `json:"defenderScanMappedNetworkDrivesDuringFullScan,omitempty"` + // DefenderScanRemovableDrivesDuringFullScan Indicates whether or not to scan removable drives during full scan. + DefenderScanRemovableDrivesDuringFullScan *bool `json:"defenderScanRemovableDrivesDuringFullScan,omitempty"` + // DefenderScanScriptsLoadedInInternetExplorer Indicates whether or not to scan scripts loaded in Internet Explorer browser. + DefenderScanScriptsLoadedInInternetExplorer *bool `json:"defenderScanScriptsLoadedInInternetExplorer,omitempty"` + // DefenderSignatureUpdateIntervalInHours The signature update interval in hours. Specify 0 not to check. Valid values 0 to 24 + DefenderSignatureUpdateIntervalInHours *int `json:"defenderSignatureUpdateIntervalInHours,omitempty"` + // DefenderScanType The defender system scan type. + DefenderScanType *DefenderScanType `json:"defenderScanType,omitempty"` + // DefenderScheduledScanTime The defender time for the system scan. + DefenderScheduledScanTime *TimeOfDay `json:"defenderScheduledScanTime,omitempty"` + // DefenderScheduledQuickScanTime The time to perform a daily quick scan. + DefenderScheduledQuickScanTime *TimeOfDay `json:"defenderScheduledQuickScanTime,omitempty"` + // DefenderCloudBlockLevel Specifies the level of cloud-delivered protection. + DefenderCloudBlockLevel *DefenderCloudBlockLevelType `json:"defenderCloudBlockLevel,omitempty"` + // DefenderCloudExtendedTimeout Timeout extension for file scanning by the cloud. Valid values 0 to 50 + DefenderCloudExtendedTimeout *int `json:"defenderCloudExtendedTimeout,omitempty"` + // DefenderCloudExtendedTimeoutInSeconds Timeout extension for file scanning by the cloud. Valid values 0 to 50 + DefenderCloudExtendedTimeoutInSeconds *int `json:"defenderCloudExtendedTimeoutInSeconds,omitempty"` + // DefenderBlockOnAccessProtection Allows or disallows Windows Defender On Access Protection functionality. + DefenderBlockOnAccessProtection *bool `json:"defenderBlockOnAccessProtection,omitempty"` + // DefenderSubmitSamplesConsentType Checks for the user consent level in Windows Defender to send data. + DefenderSubmitSamplesConsentType *DefenderSubmitSamplesConsentType `json:"defenderSubmitSamplesConsentType,omitempty"` + // LockScreenAllowTimeoutConfiguration Specify whether to show a user-configurable setting to control the screen timeout while on the lock screen of Windows 10 Mobile devices. If this policy is set to Allow, the value set by lockScreenTimeoutInSeconds is ignored. + LockScreenAllowTimeoutConfiguration *bool `json:"lockScreenAllowTimeoutConfiguration,omitempty"` + // LockScreenBlockActionCenterNotifications Indicates whether or not to block action center notifications over lock screen. + LockScreenBlockActionCenterNotifications *bool `json:"lockScreenBlockActionCenterNotifications,omitempty"` + // LockScreenBlockCortana Indicates whether or not the user can interact with Cortana using speech while the system is locked. + LockScreenBlockCortana *bool `json:"lockScreenBlockCortana,omitempty"` + // LockScreenBlockToastNotifications Indicates whether to allow toast notifications above the device lock screen. + LockScreenBlockToastNotifications *bool `json:"lockScreenBlockToastNotifications,omitempty"` + // LockScreenTimeoutInSeconds Set the duration (in seconds) from the screen locking to the screen turning off for Windows 10 Mobile devices. Supported values are 11-1800. Valid values 11 to 1800 + LockScreenTimeoutInSeconds *int `json:"lockScreenTimeoutInSeconds,omitempty"` + // LockScreenActivateAppsWithVoice This policy setting specifies whether Windows apps can be activated by voice while the system is locked. + LockScreenActivateAppsWithVoice *Enablement `json:"lockScreenActivateAppsWithVoice,omitempty"` + // PasswordBlockSimple Specify whether PINs or passwords such as "1111" or "1234" are allowed. For Windows 10 desktops, it also controls the use of picture passwords. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays The password expiration in days. Valid values 0 to 730 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength The minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent reuse of. Valid values 0 to 50 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordRequired Indicates whether or not to require the user to have a password. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordRequireWhenResumeFromIdleState Indicates whether or not to require a password upon resuming from an idle state. + PasswordRequireWhenResumeFromIdleState *bool `json:"passwordRequireWhenResumeFromIdleState,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset. Valid values 0 to 999 + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // PasswordMinimumAgeInDays This security setting determines the period of time (in days) that a password must be used before the user can change it. Valid values 0 to 998 + PasswordMinimumAgeInDays *int `json:"passwordMinimumAgeInDays,omitempty"` + // PrivacyAdvertisingID Enables or disables the use of advertising ID. Added in Windows 10, version 1607. + PrivacyAdvertisingID *StateManagementSetting `json:"privacyAdvertisingId,omitempty"` + // PrivacyAutoAcceptPairingAndConsentPrompts Indicates whether or not to allow the automatic acceptance of the pairing and privacy user consent dialog when launching apps. + PrivacyAutoAcceptPairingAndConsentPrompts *bool `json:"privacyAutoAcceptPairingAndConsentPrompts,omitempty"` + // PrivacyDisableLaunchExperience This policy prevents the privacy experience from launching during user logon for new and upgraded users.​ + PrivacyDisableLaunchExperience *bool `json:"privacyDisableLaunchExperience,omitempty"` + // PrivacyBlockInputPersonalization Indicates whether or not to block the usage of cloud based speech services for Cortana, Dictation, or Store applications. + PrivacyBlockInputPersonalization *bool `json:"privacyBlockInputPersonalization,omitempty"` + // PrivacyBlockPublishUserActivities Blocks the shared experiences/discovery of recently used resources in task switcher etc. + PrivacyBlockPublishUserActivities *bool `json:"privacyBlockPublishUserActivities,omitempty"` + // PrivacyBlockActivityFeed Blocks the usage of cloud based speech services for Cortana, Dictation, or Store applications. + PrivacyBlockActivityFeed *bool `json:"privacyBlockActivityFeed,omitempty"` + // StartBlockUnpinningAppsFromTaskbar Indicates whether or not to block the user from unpinning apps from taskbar. + StartBlockUnpinningAppsFromTaskbar *bool `json:"startBlockUnpinningAppsFromTaskbar,omitempty"` + // StartMenuAppListVisibility Setting the value of this collapses the app list, removes the app list entirely, or disables the corresponding toggle in the Settings app. + StartMenuAppListVisibility *WindowsStartMenuAppListVisibilityType `json:"startMenuAppListVisibility,omitempty"` + // StartMenuHideChangeAccountSettings Enabling this policy hides the change account setting from appearing in the user tile in the start menu. + StartMenuHideChangeAccountSettings *bool `json:"startMenuHideChangeAccountSettings,omitempty"` + // StartMenuHideFrequentlyUsedApps Enabling this policy hides the most used apps from appearing on the start menu and disables the corresponding toggle in the Settings app. + StartMenuHideFrequentlyUsedApps *bool `json:"startMenuHideFrequentlyUsedApps,omitempty"` + // StartMenuHideHibernate Enabling this policy hides hibernate from appearing in the power button in the start menu. + StartMenuHideHibernate *bool `json:"startMenuHideHibernate,omitempty"` + // StartMenuHideLock Enabling this policy hides lock from appearing in the user tile in the start menu. + StartMenuHideLock *bool `json:"startMenuHideLock,omitempty"` + // StartMenuHidePowerButton Enabling this policy hides the power button from appearing in the start menu. + StartMenuHidePowerButton *bool `json:"startMenuHidePowerButton,omitempty"` + // StartMenuHideRecentJumpLists Enabling this policy hides recent jump lists from appearing on the start menu/taskbar and disables the corresponding toggle in the Settings app. + StartMenuHideRecentJumpLists *bool `json:"startMenuHideRecentJumpLists,omitempty"` + // StartMenuHideRecentlyAddedApps Enabling this policy hides recently added apps from appearing on the start menu and disables the corresponding toggle in the Settings app. + StartMenuHideRecentlyAddedApps *bool `json:"startMenuHideRecentlyAddedApps,omitempty"` + // StartMenuHideRestartOptions Enabling this policy hides “Restart/Update and Restart” from appearing in the power button in the start menu. + StartMenuHideRestartOptions *bool `json:"startMenuHideRestartOptions,omitempty"` + // StartMenuHideShutDown Enabling this policy hides shut down/update and shut down from appearing in the power button in the start menu. + StartMenuHideShutDown *bool `json:"startMenuHideShutDown,omitempty"` + // StartMenuHideSignOut Enabling this policy hides sign out from appearing in the user tile in the start menu. + StartMenuHideSignOut *bool `json:"startMenuHideSignOut,omitempty"` + // StartMenuHideSleep Enabling this policy hides sleep from appearing in the power button in the start menu. + StartMenuHideSleep *bool `json:"startMenuHideSleep,omitempty"` + // StartMenuHideSwitchAccount Enabling this policy hides switch account from appearing in the user tile in the start menu. + StartMenuHideSwitchAccount *bool `json:"startMenuHideSwitchAccount,omitempty"` + // StartMenuHideUserTile Enabling this policy hides the user tile from appearing in the start menu. + StartMenuHideUserTile *bool `json:"startMenuHideUserTile,omitempty"` + // StartMenuLayoutEdgeAssetsXML This policy setting allows you to import Edge assets to be used with startMenuLayoutXml policy. Start layout can contain secondary tile from Edge app which looks for Edge local asset file. Edge local asset would not exist and cause Edge secondary tile to appear empty in this case. This policy only gets applied when startMenuLayoutXml policy is modified. The value should be a UTF-8 Base64 encoded byte array. + StartMenuLayoutEdgeAssetsXML *Binary `json:"startMenuLayoutEdgeAssetsXml,omitempty"` + // StartMenuLayoutXML Allows admins to override the default Start menu layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in a UTF8 encoded byte array format. + StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"` + // StartMenuMode Allows admins to decide how the Start menu is displayed. + StartMenuMode *WindowsStartMenuModeType `json:"startMenuMode,omitempty"` + // StartMenuPinnedFolderDocuments Enforces the visibility (Show/Hide) of the Documents folder shortcut on the Start menu. + StartMenuPinnedFolderDocuments *VisibilitySetting `json:"startMenuPinnedFolderDocuments,omitempty"` + // StartMenuPinnedFolderDownloads Enforces the visibility (Show/Hide) of the Downloads folder shortcut on the Start menu. + StartMenuPinnedFolderDownloads *VisibilitySetting `json:"startMenuPinnedFolderDownloads,omitempty"` + // StartMenuPinnedFolderFileExplorer Enforces the visibility (Show/Hide) of the FileExplorer shortcut on the Start menu. + StartMenuPinnedFolderFileExplorer *VisibilitySetting `json:"startMenuPinnedFolderFileExplorer,omitempty"` + // StartMenuPinnedFolderHomeGroup Enforces the visibility (Show/Hide) of the HomeGroup folder shortcut on the Start menu. + StartMenuPinnedFolderHomeGroup *VisibilitySetting `json:"startMenuPinnedFolderHomeGroup,omitempty"` + // StartMenuPinnedFolderMusic Enforces the visibility (Show/Hide) of the Music folder shortcut on the Start menu. + StartMenuPinnedFolderMusic *VisibilitySetting `json:"startMenuPinnedFolderMusic,omitempty"` + // StartMenuPinnedFolderNetwork Enforces the visibility (Show/Hide) of the Network folder shortcut on the Start menu. + StartMenuPinnedFolderNetwork *VisibilitySetting `json:"startMenuPinnedFolderNetwork,omitempty"` + // StartMenuPinnedFolderPersonalFolder Enforces the visibility (Show/Hide) of the PersonalFolder shortcut on the Start menu. + StartMenuPinnedFolderPersonalFolder *VisibilitySetting `json:"startMenuPinnedFolderPersonalFolder,omitempty"` + // StartMenuPinnedFolderPictures Enforces the visibility (Show/Hide) of the Pictures folder shortcut on the Start menu. + StartMenuPinnedFolderPictures *VisibilitySetting `json:"startMenuPinnedFolderPictures,omitempty"` + // StartMenuPinnedFolderSettings Enforces the visibility (Show/Hide) of the Settings folder shortcut on the Start menu. + StartMenuPinnedFolderSettings *VisibilitySetting `json:"startMenuPinnedFolderSettings,omitempty"` + // StartMenuPinnedFolderVideos Enforces the visibility (Show/Hide) of the Videos folder shortcut on the Start menu. + StartMenuPinnedFolderVideos *VisibilitySetting `json:"startMenuPinnedFolderVideos,omitempty"` + // SettingsBlockSettingsApp Indicates whether or not to block access to Settings app. + SettingsBlockSettingsApp *bool `json:"settingsBlockSettingsApp,omitempty"` + // SettingsBlockSystemPage Indicates whether or not to block access to System in Settings app. + SettingsBlockSystemPage *bool `json:"settingsBlockSystemPage,omitempty"` + // SettingsBlockDevicesPage Indicates whether or not to block access to Devices in Settings app. + SettingsBlockDevicesPage *bool `json:"settingsBlockDevicesPage,omitempty"` + // SettingsBlockNetworkInternetPage Indicates whether or not to block access to Network & Internet in Settings app. + SettingsBlockNetworkInternetPage *bool `json:"settingsBlockNetworkInternetPage,omitempty"` + // SettingsBlockPersonalizationPage Indicates whether or not to block access to Personalization in Settings app. + SettingsBlockPersonalizationPage *bool `json:"settingsBlockPersonalizationPage,omitempty"` + // SettingsBlockAccountsPage Indicates whether or not to block access to Accounts in Settings app. + SettingsBlockAccountsPage *bool `json:"settingsBlockAccountsPage,omitempty"` + // SettingsBlockTimeLanguagePage Indicates whether or not to block access to Time & Language in Settings app. + SettingsBlockTimeLanguagePage *bool `json:"settingsBlockTimeLanguagePage,omitempty"` + // SettingsBlockEaseOfAccessPage Indicates whether or not to block access to Ease of Access in Settings app. + SettingsBlockEaseOfAccessPage *bool `json:"settingsBlockEaseOfAccessPage,omitempty"` + // SettingsBlockPrivacyPage Indicates whether or not to block access to Privacy in Settings app. + SettingsBlockPrivacyPage *bool `json:"settingsBlockPrivacyPage,omitempty"` + // SettingsBlockUpdateSecurityPage Indicates whether or not to block access to Update & Security in Settings app. + SettingsBlockUpdateSecurityPage *bool `json:"settingsBlockUpdateSecurityPage,omitempty"` + // SettingsBlockAppsPage Indicates whether or not to block access to Apps in Settings app. + SettingsBlockAppsPage *bool `json:"settingsBlockAppsPage,omitempty"` + // SettingsBlockGamingPage Indicates whether or not to block access to Gaming in Settings app. + SettingsBlockGamingPage *bool `json:"settingsBlockGamingPage,omitempty"` + // WindowsSpotlightBlockConsumerSpecificFeatures Allows IT admins to block experiences that are typically for consumers only, such as Start suggestions, Membership notifications, Post-OOBE app install and redirect tiles. + WindowsSpotlightBlockConsumerSpecificFeatures *bool `json:"windowsSpotlightBlockConsumerSpecificFeatures,omitempty"` + // WindowsSpotlightBlocked Allows IT admins to turn off all Windows Spotlight features + WindowsSpotlightBlocked *bool `json:"windowsSpotlightBlocked,omitempty"` + // WindowsSpotlightBlockOnActionCenter Block suggestions from Microsoft that show after each OS clean install, upgrade or in an on-going basis to introduce users to what is new or changed + WindowsSpotlightBlockOnActionCenter *bool `json:"windowsSpotlightBlockOnActionCenter,omitempty"` + // WindowsSpotlightBlockTailoredExperiences Block personalized content in Windows spotlight based on user’s device usage. + WindowsSpotlightBlockTailoredExperiences *bool `json:"windowsSpotlightBlockTailoredExperiences,omitempty"` + // WindowsSpotlightBlockThirdPartyNotifications Block third party content delivered via Windows Spotlight + WindowsSpotlightBlockThirdPartyNotifications *bool `json:"windowsSpotlightBlockThirdPartyNotifications,omitempty"` + // WindowsSpotlightBlockWelcomeExperience Block Windows Spotlight Windows welcome experience + WindowsSpotlightBlockWelcomeExperience *bool `json:"windowsSpotlightBlockWelcomeExperience,omitempty"` + // WindowsSpotlightBlockWindowsTips Allows IT admins to turn off the popup of Windows Tips. + WindowsSpotlightBlockWindowsTips *bool `json:"windowsSpotlightBlockWindowsTips,omitempty"` + // WindowsSpotlightConfigureOnLockScreen Specifies the type of Spotlight + WindowsSpotlightConfigureOnLockScreen *WindowsSpotlightEnablementSettings `json:"windowsSpotlightConfigureOnLockScreen,omitempty"` + // NetworkProxyApplySettingsDeviceWide If set, proxy settings will be applied to all processes and accounts in the device. Otherwise, it will be applied to the user account that’s enrolled into MDM. + NetworkProxyApplySettingsDeviceWide *bool `json:"networkProxyApplySettingsDeviceWide,omitempty"` + // NetworkProxyDisableAutoDetect Disable automatic detection of settings. If enabled, the system will try to find the path to a proxy auto-config (PAC) script. + NetworkProxyDisableAutoDetect *bool `json:"networkProxyDisableAutoDetect,omitempty"` + // NetworkProxyAutomaticConfigurationURL Address to the proxy auto-config (PAC) script you want to use. + NetworkProxyAutomaticConfigurationURL *string `json:"networkProxyAutomaticConfigurationUrl,omitempty"` + // NetworkProxyServer Specifies manual proxy server settings. + NetworkProxyServer *Windows10NetworkProxyServer `json:"networkProxyServer,omitempty"` + // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account. + AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"` + // AntiTheftModeBlocked Indicates whether or not to block the user from selecting an AntiTheft mode preference (Windows 10 Mobile only). + AntiTheftModeBlocked *bool `json:"antiTheftModeBlocked,omitempty"` + // BluetoothBlocked Whether or not to Block the user from using bluetooth. + BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"` + // CameraBlocked Whether or not to Block the user from accessing the camera of the device. + CameraBlocked *bool `json:"cameraBlocked,omitempty"` + // ConnectedDevicesServiceBlocked Whether or not to block Connected Devices Service which enables discovery and connection to other devices, remote messaging, remote app sessions and other cross-device experiences. + ConnectedDevicesServiceBlocked *bool `json:"connectedDevicesServiceBlocked,omitempty"` + // CertificatesBlockManualRootCertificateInstallation Whether or not to Block the user from doing manual root certificate installation. + CertificatesBlockManualRootCertificateInstallation *bool `json:"certificatesBlockManualRootCertificateInstallation,omitempty"` + // CopyPasteBlocked Whether or not to Block the user from using copy paste. + CopyPasteBlocked *bool `json:"copyPasteBlocked,omitempty"` + // CortanaBlocked Whether or not to Block the user from using Cortana. + CortanaBlocked *bool `json:"cortanaBlocked,omitempty"` + // DeviceManagementBlockFactoryResetOnMobile Indicates whether or not to Block the user from resetting their phone. + DeviceManagementBlockFactoryResetOnMobile *bool `json:"deviceManagementBlockFactoryResetOnMobile,omitempty"` + // DeviceManagementBlockManualUnenroll Indicates whether or not to Block the user from doing manual un-enrollment from device management. + DeviceManagementBlockManualUnenroll *bool `json:"deviceManagementBlockManualUnenroll,omitempty"` + // SafeSearchFilter Specifies what filter level of safe search is required. + SafeSearchFilter *SafeSearchFilterType `json:"safeSearchFilter,omitempty"` + // EdgeBlockPopups Indicates whether or not to block popups. + EdgeBlockPopups *bool `json:"edgeBlockPopups,omitempty"` + // EdgeBlockSearchSuggestions Indicates whether or not to block the user from using the search suggestions in the address bar. + EdgeBlockSearchSuggestions *bool `json:"edgeBlockSearchSuggestions,omitempty"` + // EdgeBlockSearchEngineCustomization Indicates whether or not to block the user from adding new search engine or changing the default search engine. + EdgeBlockSearchEngineCustomization *bool `json:"edgeBlockSearchEngineCustomization,omitempty"` + // EdgeBlockSendingIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer. Note: the name of this property is misleading; the property is obsolete, use EdgeSendIntranetTrafficToInternetExplorer instead. + EdgeBlockSendingIntranetTrafficToInternetExplorer *bool `json:"edgeBlockSendingIntranetTrafficToInternetExplorer,omitempty"` + // EdgeSendIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer. + EdgeSendIntranetTrafficToInternetExplorer *bool `json:"edgeSendIntranetTrafficToInternetExplorer,omitempty"` + // EdgeRequireSmartScreen Indicates whether or not to Require the user to use the smart screen filter. + EdgeRequireSmartScreen *bool `json:"edgeRequireSmartScreen,omitempty"` + // EdgeEnterpriseModeSiteListLocation Indicates the enterprise mode site list location. Could be a local file, local network or http location. + EdgeEnterpriseModeSiteListLocation *string `json:"edgeEnterpriseModeSiteListLocation,omitempty"` + // EdgeFirstRunURL The first run URL for when Edge browser is opened for the first time. + EdgeFirstRunURL *string `json:"edgeFirstRunUrl,omitempty"` + // EdgeSearchEngine Allows IT admins to set a default search engine for MDM-Controlled devices. Users can override this and change their default search engine provided the AllowSearchEngineCustomization policy is not set. + EdgeSearchEngine *EdgeSearchEngineBase `json:"edgeSearchEngine,omitempty"` + // EdgeHomepageUrls The list of URLs for homepages shodwn on MDM-enrolled devices on Edge browser. + EdgeHomepageUrls []string `json:"edgeHomepageUrls,omitempty"` + // EdgeBlockAccessToAboutFlags Indicates whether or not to prevent access to about flags on Edge browser. + EdgeBlockAccessToAboutFlags *bool `json:"edgeBlockAccessToAboutFlags,omitempty"` + // SmartScreenBlockPromptOverride Indicates whether or not users can override SmartScreen Filter warnings about potentially malicious websites. + SmartScreenBlockPromptOverride *bool `json:"smartScreenBlockPromptOverride,omitempty"` + // SmartScreenBlockPromptOverrideForFiles Indicates whether or not users can override the SmartScreen Filter warnings about downloading unverified files + SmartScreenBlockPromptOverrideForFiles *bool `json:"smartScreenBlockPromptOverrideForFiles,omitempty"` + // WebRtcBlockLocalhostIPAddress Indicates whether or not user's localhost IP address is displayed while making phone calls using the WebRTC + WebRtcBlockLocalhostIPAddress *bool `json:"webRtcBlockLocalhostIpAddress,omitempty"` + // InternetSharingBlocked Indicates whether or not to Block the user from using internet sharing. + InternetSharingBlocked *bool `json:"internetSharingBlocked,omitempty"` + // SettingsBlockAddProvisioningPackage Indicates whether or not to block the user from installing provisioning packages. + SettingsBlockAddProvisioningPackage *bool `json:"settingsBlockAddProvisioningPackage,omitempty"` + // SettingsBlockRemoveProvisioningPackage Indicates whether or not to block the runtime configuration agent from removing provisioning packages. + SettingsBlockRemoveProvisioningPackage *bool `json:"settingsBlockRemoveProvisioningPackage,omitempty"` + // SettingsBlockChangeSystemTime Indicates whether or not to block the user from changing date and time settings. + SettingsBlockChangeSystemTime *bool `json:"settingsBlockChangeSystemTime,omitempty"` + // SettingsBlockEditDeviceName Indicates whether or not to block the user from editing the device name. + SettingsBlockEditDeviceName *bool `json:"settingsBlockEditDeviceName,omitempty"` + // SettingsBlockChangeRegion Indicates whether or not to block the user from changing the region settings. + SettingsBlockChangeRegion *bool `json:"settingsBlockChangeRegion,omitempty"` + // SettingsBlockChangeLanguage Indicates whether or not to block the user from changing the language settings. + SettingsBlockChangeLanguage *bool `json:"settingsBlockChangeLanguage,omitempty"` + // SettingsBlockChangePowerSleep Indicates whether or not to block the user from changing power and sleep settings. + SettingsBlockChangePowerSleep *bool `json:"settingsBlockChangePowerSleep,omitempty"` + // LocationServicesBlocked Indicates whether or not to Block the user from location services. + LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"` + // MicrosoftAccountBlocked Indicates whether or not to Block a Microsoft account. + MicrosoftAccountBlocked *bool `json:"microsoftAccountBlocked,omitempty"` + // MicrosoftAccountBlockSettingsSync Indicates whether or not to Block Microsoft account settings sync. + MicrosoftAccountBlockSettingsSync *bool `json:"microsoftAccountBlockSettingsSync,omitempty"` + // NfcBlocked Indicates whether or not to Block the user from using near field communication. + NfcBlocked *bool `json:"nfcBlocked,omitempty"` + // ResetProtectionModeBlocked Indicates whether or not to Block the user from reset protection mode. + ResetProtectionModeBlocked *bool `json:"resetProtectionModeBlocked,omitempty"` + // ScreenCaptureBlocked Indicates whether or not to Block the user from taking Screenshots. + ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"` + // StorageBlockRemovableStorage Indicates whether or not to Block the user from using removable storage. + StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"` + // StorageRequireMobileDeviceEncryption Indicating whether or not to require encryption on a mobile device. + StorageRequireMobileDeviceEncryption *bool `json:"storageRequireMobileDeviceEncryption,omitempty"` + // UsbBlocked Indicates whether or not to Block the user from USB connection. + UsbBlocked *bool `json:"usbBlocked,omitempty"` + // VoiceRecordingBlocked Indicates whether or not to Block the user from voice recording. + VoiceRecordingBlocked *bool `json:"voiceRecordingBlocked,omitempty"` + // WiFiBlockAutomaticConnectHotspots Indicating whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked. + WiFiBlockAutomaticConnectHotspots *bool `json:"wiFiBlockAutomaticConnectHotspots,omitempty"` + // WiFiBlocked Indicates whether or not to Block the user from using Wi-Fi. + WiFiBlocked *bool `json:"wiFiBlocked,omitempty"` + // WiFiBlockManualConfiguration Indicates whether or not to Block the user from using Wi-Fi manual configuration. + WiFiBlockManualConfiguration *bool `json:"wiFiBlockManualConfiguration,omitempty"` + // WiFiScanInterval Specify how often devices scan for Wi-Fi networks. Supported values are 1-500, where 100 = default, and 500 = low frequency. Valid values 1 to 500 + WiFiScanInterval *int `json:"wiFiScanInterval,omitempty"` + // WirelessDisplayBlockProjectionToThisDevice Indicates whether or not to allow other devices from discovering this PC for projection. + WirelessDisplayBlockProjectionToThisDevice *bool `json:"wirelessDisplayBlockProjectionToThisDevice,omitempty"` + // WirelessDisplayBlockUserInputFromReceiver Indicates whether or not to allow user input from wireless display receiver. + WirelessDisplayBlockUserInputFromReceiver *bool `json:"wirelessDisplayBlockUserInputFromReceiver,omitempty"` + // WirelessDisplayRequirePinForPairing Indicates whether or not to require a PIN for new devices to initiate pairing. + WirelessDisplayRequirePinForPairing *bool `json:"wirelessDisplayRequirePinForPairing,omitempty"` + // WindowsStoreBlocked Indicates whether or not to Block the user from using the Windows store. + WindowsStoreBlocked *bool `json:"windowsStoreBlocked,omitempty"` + // AppsAllowTrustedAppsSideloading Indicates whether apps from AppX packages signed with a trusted certificate can be side loaded. + AppsAllowTrustedAppsSideloading *StateManagementSetting `json:"appsAllowTrustedAppsSideloading,omitempty"` + // WindowsStoreBlockAutoUpdate Indicates whether or not to block automatic update of apps from Windows Store. + WindowsStoreBlockAutoUpdate *bool `json:"windowsStoreBlockAutoUpdate,omitempty"` + // DeveloperUnlockSetting Indicates whether or not to allow developer unlock. + DeveloperUnlockSetting *StateManagementSetting `json:"developerUnlockSetting,omitempty"` + // SharedUserAppDataAllowed Indicates whether or not to block multiple users of the same app to share data. + SharedUserAppDataAllowed *bool `json:"sharedUserAppDataAllowed,omitempty"` + // AppsBlockWindowsStoreOriginatedApps Indicates whether or not to disable the launch of all apps from Windows Store that came pre-installed or were downloaded. + AppsBlockWindowsStoreOriginatedApps *bool `json:"appsBlockWindowsStoreOriginatedApps,omitempty"` + // WindowsStoreEnablePrivateStoreOnly Indicates whether or not to enable Private Store Only. + WindowsStoreEnablePrivateStoreOnly *bool `json:"windowsStoreEnablePrivateStoreOnly,omitempty"` + // StorageRestrictAppDataToSystemVolume Indicates whether application data is restricted to the system drive. + StorageRestrictAppDataToSystemVolume *bool `json:"storageRestrictAppDataToSystemVolume,omitempty"` + // StorageRestrictAppInstallToSystemVolume Indicates whether the installation of applications is restricted to the system drive. + StorageRestrictAppInstallToSystemVolume *bool `json:"storageRestrictAppInstallToSystemVolume,omitempty"` + // GameDvrBlocked Indicates whether or not to block DVR and broadcasting. + GameDvrBlocked *bool `json:"gameDvrBlocked,omitempty"` + // ExperienceBlockDeviceDiscovery Indicates whether or not to enable device discovery UX. + ExperienceBlockDeviceDiscovery *bool `json:"experienceBlockDeviceDiscovery,omitempty"` + // ExperienceBlockErrorDialogWhenNoSIM Indicates whether or not to allow the error dialog from displaying if no SIM card is detected. + ExperienceBlockErrorDialogWhenNoSIM *bool `json:"experienceBlockErrorDialogWhenNoSIM,omitempty"` + // ExperienceBlockTaskSwitcher Indicates whether or not to enable task switching on the device. + ExperienceBlockTaskSwitcher *bool `json:"experienceBlockTaskSwitcher,omitempty"` + // LogonBlockFastUserSwitching Disables the ability to quickly switch between users that are logged on simultaneously without logging off. + LogonBlockFastUserSwitching *bool `json:"logonBlockFastUserSwitching,omitempty"` + // TenantLockdownRequireNetworkDuringOutOfBoxExperience Whether the device is required to connect to the network. + TenantLockdownRequireNetworkDuringOutOfBoxExperience *bool `json:"tenantLockdownRequireNetworkDuringOutOfBoxExperience,omitempty"` + // AppManagementMSIAllowUserControlOverInstall This policy setting permits users to change installation options that typically are available only to system administrators. + AppManagementMSIAllowUserControlOverInstall *bool `json:"appManagementMSIAllowUserControlOverInstall,omitempty"` + // AppManagementMSIAlwaysInstallWithElevatedPrivileges This policy setting directs Windows Installer to use elevated permissions when it installs any program on the system. + AppManagementMSIAlwaysInstallWithElevatedPrivileges *bool `json:"appManagementMSIAlwaysInstallWithElevatedPrivileges,omitempty"` + // DataProtectionBlockDirectMemoryAccess This policy setting allows you to block direct memory access (DMA) for all hot pluggable PCI downstream ports until a user logs into Windows. + DataProtectionBlockDirectMemoryAccess *bool `json:"dataProtectionBlockDirectMemoryAccess,omitempty"` + // AppManagementPackageFamilyNamesToLaunchAfterLogOn List of semi-colon delimited Package Family Names of Windows apps. Listed Windows apps are to be launched after logon.​ + AppManagementPackageFamilyNamesToLaunchAfterLogOn []string `json:"appManagementPackageFamilyNamesToLaunchAfterLogOn,omitempty"` + // PrivacyAccessControls undocumented + PrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"privacyAccessControls,omitempty"` +} + +// Windows10ImportedPFXCertificateProfile Windows 10 Desktop and Mobile PFX Import certificate profile +type Windows10ImportedPFXCertificateProfile struct { + // WindowsCertificateProfileBase is the base model of Windows10ImportedPFXCertificateProfile + WindowsCertificateProfileBase + // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. + IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// Windows10MobileCompliancePolicy This class contains compliance settings for Windows 10 Mobile. +type Windows10MobileCompliancePolicy struct { + // DeviceCompliancePolicy is the base model of Windows10MobileCompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock Windows Phone device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordBlockSimple Whether or not to block syncing the calendar. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordMinimumLength Minimum password length. Valid values 4 to 16 + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordExpirationDays Number of days before password expiration. Valid values 1 to 255 + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordRequireToUnlockFromIdle Require a password to unlock an idle device. + PasswordRequireToUnlockFromIdle *bool `json:"passwordRequireToUnlockFromIdle,omitempty"` + // OsMinimumVersion Minimum Windows Phone version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Windows Phone version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled. + EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"` + // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled + BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"` + // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled. + SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"` + // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation. + CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"` + // StorageRequireEncryption Require encryption on windows devices. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` + // ActiveFirewallRequired Require active firewall on Windows devices. + ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"` + // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements. + ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"` +} + +// Windows10NetworkBoundaryConfiguration Windows10 Network Boundary Configuration +type Windows10NetworkBoundaryConfiguration struct { + // DeviceConfiguration is the base model of Windows10NetworkBoundaryConfiguration + DeviceConfiguration + // WindowsNetworkIsolationPolicy Windows Network Isolation Policy + WindowsNetworkIsolationPolicy *WindowsNetworkIsolationPolicy `json:"windowsNetworkIsolationPolicy,omitempty"` +} + +// Windows10NetworkProxyServer undocumented +type Windows10NetworkProxyServer struct { + // Object is the base model of Windows10NetworkProxyServer + Object + // Address Address to the proxy server. Specify an address in the format [“:”] + Address *string `json:"address,omitempty"` + // Exceptions Addresses that should not use the proxy server. The system will not use the proxy server for addresses beginning with what is specified in this node. + Exceptions []string `json:"exceptions,omitempty"` + // UseForLocalAddresses Specifies whether the proxy server should be used for local (intranet) addresses. + UseForLocalAddresses *bool `json:"useForLocalAddresses,omitempty"` +} + +// Windows10PFXImportCertificateProfile Deprecated +type Windows10PFXImportCertificateProfile struct { + // DeviceConfiguration is the base model of Windows10PFXImportCertificateProfile + DeviceConfiguration + // KeyStorageProvider undocumented + KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"` +} + +// Windows10PkcsCertificateProfile Windows 10 Desktop and Mobile PKCS certificate profile +type Windows10PkcsCertificateProfile struct { + // Windows10CertificateProfileBase is the base model of Windows10PkcsCertificateProfile + Windows10CertificateProfileBase + // CertificationAuthority PKCS Certification Authority + CertificationAuthority *string `json:"certificationAuthority,omitempty"` + // CertificationAuthorityName PKCS Certification Authority Name + CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"` + // CertificateTemplateName PKCS Certificate Template Name + CertificateTemplateName *string `json:"certificateTemplateName,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// Windows10SecureAssessmentConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the secureAssessment resource. +type Windows10SecureAssessmentConfiguration struct { + // DeviceConfiguration is the base model of Windows10SecureAssessmentConfiguration + DeviceConfiguration + // LaunchURI Url link to an assessment that's automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http[s]://msdn.microsoft.com/). + LaunchURI *string `json:"launchUri,omitempty"` + // ConfigurationAccount The account used to configure the Windows device for taking the test. The user can be a domain account (domain\user), an AAD account (username@tenant.com) or a local account (username). + ConfigurationAccount *string `json:"configurationAccount,omitempty"` + // ConfigurationAccountType The account type used to by ConfigurationAccount. + ConfigurationAccountType *SecureAssessmentAccountType `json:"configurationAccountType,omitempty"` + // AllowPrinting Indicates whether or not to allow the app from printing during the test. + AllowPrinting *bool `json:"allowPrinting,omitempty"` + // AllowScreenCapture Indicates whether or not to allow screen capture capability during a test. + AllowScreenCapture *bool `json:"allowScreenCapture,omitempty"` + // AllowTextSuggestion Indicates whether or not to allow text suggestions during the test. + AllowTextSuggestion *bool `json:"allowTextSuggestion,omitempty"` + // LocalGuestAccountName Specifies the display text for the local guest account shown on the sign-in screen. Typically is the name of an assessment. When the user clicks the local guest account on the sign-in screen, an assessment app is launched with a specified assessment URL. Secure assessments can only be configured with local guest account sign-in on devices running Windows 10, version 1903 or later. Important notice: this property must be set with assessmentAppUserModelID in order to make the local guest account sign-in experience work properly for secure assessments. + LocalGuestAccountName *string `json:"localGuestAccountName,omitempty"` + // AssessmentAppUserModelID Specifies the application user model ID of the assessment app launched when a user signs in to a secure assessment with a local guest account. Important notice: this property must be set with localGuestAccountName in order to make the local guest account sign-in experience work properly for secure assessments. + AssessmentAppUserModelID *string `json:"assessmentAppUserModelId,omitempty"` +} + +// Windows10TeamGeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10TeamGeneralConfiguration resource. +type Windows10TeamGeneralConfiguration struct { + // DeviceConfiguration is the base model of Windows10TeamGeneralConfiguration + DeviceConfiguration + // AzureOperationalInsightsBlockTelemetry Indicates whether or not to Block Azure Operational Insights. + AzureOperationalInsightsBlockTelemetry *bool `json:"azureOperationalInsightsBlockTelemetry,omitempty"` + // AzureOperationalInsightsWorkspaceID The Azure Operational Insights workspace id. + AzureOperationalInsightsWorkspaceID *string `json:"azureOperationalInsightsWorkspaceId,omitempty"` + // AzureOperationalInsightsWorkspaceKey The Azure Operational Insights Workspace key. + AzureOperationalInsightsWorkspaceKey *string `json:"azureOperationalInsightsWorkspaceKey,omitempty"` + // ConnectAppBlockAutoLaunch Specifies whether to automatically launch the Connect app whenever a projection is initiated. + ConnectAppBlockAutoLaunch *bool `json:"connectAppBlockAutoLaunch,omitempty"` + // MaintenanceWindowBlocked Indicates whether or not to Block setting a maintenance window for device updates. + MaintenanceWindowBlocked *bool `json:"maintenanceWindowBlocked,omitempty"` + // MaintenanceWindowDurationInHours Maintenance window duration for device updates. Valid values 0 to 5 + MaintenanceWindowDurationInHours *int `json:"maintenanceWindowDurationInHours,omitempty"` + // MaintenanceWindowStartTime Maintenance window start time for device updates. + MaintenanceWindowStartTime *TimeOfDay `json:"maintenanceWindowStartTime,omitempty"` + // MiracastChannel The channel. + MiracastChannel *MiracastChannel `json:"miracastChannel,omitempty"` + // MiracastBlocked Indicates whether or not to Block wireless projection. + MiracastBlocked *bool `json:"miracastBlocked,omitempty"` + // MiracastRequirePin Indicates whether or not to require a pin for wireless projection. + MiracastRequirePin *bool `json:"miracastRequirePin,omitempty"` + // SettingsBlockMyMeetingsAndFiles Specifies whether to disable the "My meetings and files" feature in the Start menu, which shows the signed-in user's meetings and files from Office 365. + SettingsBlockMyMeetingsAndFiles *bool `json:"settingsBlockMyMeetingsAndFiles,omitempty"` + // SettingsBlockSessionResume Specifies whether to allow the ability to resume a session when the session times out. + SettingsBlockSessionResume *bool `json:"settingsBlockSessionResume,omitempty"` + // SettingsBlockSigninSuggestions Specifies whether to disable auto-populating of the sign-in dialog with invitees from scheduled meetings. + SettingsBlockSigninSuggestions *bool `json:"settingsBlockSigninSuggestions,omitempty"` + // SettingsDefaultVolume Specifies the default volume value for a new session. Permitted values are 0-100. The default is 45. Valid values 0 to 100 + SettingsDefaultVolume *int `json:"settingsDefaultVolume,omitempty"` + // SettingsScreenTimeoutInMinutes Specifies the number of minutes until the Hub screen turns off. + SettingsScreenTimeoutInMinutes *int `json:"settingsScreenTimeoutInMinutes,omitempty"` + // SettingsSessionTimeoutInMinutes Specifies the number of minutes until the session times out. + SettingsSessionTimeoutInMinutes *int `json:"settingsSessionTimeoutInMinutes,omitempty"` + // SettingsSleepTimeoutInMinutes Specifies the number of minutes until the Hub enters sleep mode. + SettingsSleepTimeoutInMinutes *int `json:"settingsSleepTimeoutInMinutes,omitempty"` + // WelcomeScreenBlockAutomaticWakeUp Indicates whether or not to Block the welcome screen from waking up automatically when someone enters the room. + WelcomeScreenBlockAutomaticWakeUp *bool `json:"welcomeScreenBlockAutomaticWakeUp,omitempty"` + // WelcomeScreenBackgroundImageURL The welcome screen background image URL. The URL must use the HTTPS protocol and return a PNG image. + WelcomeScreenBackgroundImageURL *string `json:"welcomeScreenBackgroundImageUrl,omitempty"` + // WelcomeScreenMeetingInformation The welcome screen meeting information shown. + WelcomeScreenMeetingInformation *WelcomeScreenMeetingInformation `json:"welcomeScreenMeetingInformation,omitempty"` +} + +// Windows10VpnConfiguration By providing the configurations in this profile you can instruct the Windows 10 device (desktop or mobile) to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type Windows10VpnConfiguration struct { + // WindowsVPNConfiguration is the base model of Windows10VpnConfiguration + WindowsVPNConfiguration + // ProfileTarget Profile target type. + ProfileTarget *Windows10VpnProfileTarget `json:"profileTarget,omitempty"` + // ConnectionType Connection type. + ConnectionType *Windows10VpnConnectionType `json:"connectionType,omitempty"` + // EnableSplitTunneling Enable split tunneling. + EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"` + // EnableAlwaysOn Enable Always On mode. + EnableAlwaysOn *bool `json:"enableAlwaysOn,omitempty"` + // EnableDeviceTunnel Enable device tunnel. + EnableDeviceTunnel *bool `json:"enableDeviceTunnel,omitempty"` + // EnableDNSRegistration Enable IP address registration with internal DNS. + EnableDNSRegistration *bool `json:"enableDnsRegistration,omitempty"` + // DNSSuffixes Specify DNS suffixes to add to the DNS search list to properly route short names. + DNSSuffixes []string `json:"dnsSuffixes,omitempty"` + // AuthenticationMethod Authentication method. + AuthenticationMethod *Windows10VpnAuthenticationMethod `json:"authenticationMethod,omitempty"` + // RememberUserCredentials Remember user credentials. + RememberUserCredentials *bool `json:"rememberUserCredentials,omitempty"` + // EnableConditionalAccess Enable conditional access. + EnableConditionalAccess *bool `json:"enableConditionalAccess,omitempty"` + // EnableSingleSignOnWithAlternateCertificate Enable single sign-on (SSO) with alternate certificate. + EnableSingleSignOnWithAlternateCertificate *bool `json:"enableSingleSignOnWithAlternateCertificate,omitempty"` + // SingleSignOnEku Single sign-on Extended Key Usage (EKU). + SingleSignOnEku *ExtendedKeyUsage `json:"singleSignOnEku,omitempty"` + // SingleSignOnIssuerHash Single sign-on issuer hash. + SingleSignOnIssuerHash *string `json:"singleSignOnIssuerHash,omitempty"` + // EapXML Extensible Authentication Protocol (EAP) XML. (UTF8 encoded byte array) + EapXML *Binary `json:"eapXml,omitempty"` + // ProxyServer Proxy Server. + ProxyServer *Windows10VpnProxyServer `json:"proxyServer,omitempty"` + // AssociatedApps Associated Apps. This collection can contain a maximum of 10000 elements. + AssociatedApps []Windows10AssociatedApps `json:"associatedApps,omitempty"` + // OnlyAssociatedAppsCanUseConnection Only associated Apps can use connection (per-app VPN). + OnlyAssociatedAppsCanUseConnection *bool `json:"onlyAssociatedAppsCanUseConnection,omitempty"` + // WindowsInformationProtectionDomain Windows Information Protection (WIP) domain to associate with this connection. + WindowsInformationProtectionDomain *string `json:"windowsInformationProtectionDomain,omitempty"` + // TrafficRules Traffic rules. This collection can contain a maximum of 1000 elements. + TrafficRules []VPNTrafficRule `json:"trafficRules,omitempty"` + // Routes Routes (optional for third-party providers). This collection can contain a maximum of 1000 elements. + Routes []VPNRoute `json:"routes,omitempty"` + // DNSRules DNS rules. This collection can contain a maximum of 1000 elements. + DNSRules []VPNDNSRule `json:"dnsRules,omitempty"` + // TrustedNetworkDomains Trusted Network Domains + TrustedNetworkDomains []string `json:"trustedNetworkDomains,omitempty"` + // IdentityCertificate undocumented + IdentityCertificate *WindowsCertificateProfileBase `json:"identityCertificate,omitempty"` +} + +// Windows10VpnProxyServer undocumented +type Windows10VpnProxyServer struct { + // VPNProxyServer is the base model of Windows10VpnProxyServer + VPNProxyServer + // BypassProxyServerForLocalAddress Bypass proxy server for local address. + BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go new file mode 100644 index 00000000..c499e4fa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go @@ -0,0 +1,191 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// Windows81CertificateProfileBase Device Configuration. +type Windows81CertificateProfileBase struct { + // WindowsCertificateProfileBase is the base model of Windows81CertificateProfileBase + WindowsCertificateProfileBase + // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. + ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"` + // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements. + CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"` +} + +// Windows81CompliancePolicy This class contains compliance settings for Windows 8.1. +type Windows81CompliancePolicy struct { + // DeviceCompliancePolicy is the base model of Windows81CompliancePolicy + DeviceCompliancePolicy + // PasswordRequired Require a password to unlock Windows device. + PasswordRequired *bool `json:"passwordRequired,omitempty"` + // PasswordBlockSimple Indicates whether or not to block simple password. + PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"` + // PasswordExpirationDays Password expiration in days. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength The minimum password length. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required. + PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // OsMinimumVersion Minimum Windows 8.1 version. + OsMinimumVersion *string `json:"osMinimumVersion,omitempty"` + // OsMaximumVersion Maximum Windows 8.1 version. + OsMaximumVersion *string `json:"osMaximumVersion,omitempty"` + // StorageRequireEncryption Indicates whether or not to require encryption on a windows 8.1 device. + StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"` +} + +// Windows81GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows81GeneralConfiguration resource. +type Windows81GeneralConfiguration struct { + // DeviceConfiguration is the base model of Windows81GeneralConfiguration + DeviceConfiguration + // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account. + AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"` + // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only. + ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"` + // BrowserBlockAutofill Indicates whether or not to block auto fill. + BrowserBlockAutofill *bool `json:"browserBlockAutofill,omitempty"` + // BrowserBlockAutomaticDetectionOfIntranetSites Indicates whether or not to block automatic detection of Intranet sites. + BrowserBlockAutomaticDetectionOfIntranetSites *bool `json:"browserBlockAutomaticDetectionOfIntranetSites,omitempty"` + // BrowserBlockEnterpriseModeAccess Indicates whether or not to block enterprise mode access. + BrowserBlockEnterpriseModeAccess *bool `json:"browserBlockEnterpriseModeAccess,omitempty"` + // BrowserBlockJavaScript Indicates whether or not to Block the user from using JavaScript. + BrowserBlockJavaScript *bool `json:"browserBlockJavaScript,omitempty"` + // BrowserBlockPlugins Indicates whether or not to block plug-ins. + BrowserBlockPlugins *bool `json:"browserBlockPlugins,omitempty"` + // BrowserBlockPopups Indicates whether or not to block popups. + BrowserBlockPopups *bool `json:"browserBlockPopups,omitempty"` + // BrowserBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header. + BrowserBlockSendingDoNotTrackHeader *bool `json:"browserBlockSendingDoNotTrackHeader,omitempty"` + // BrowserBlockSingleWordEntryOnIntranetSites Indicates whether or not to block a single word entry on Intranet sites. + BrowserBlockSingleWordEntryOnIntranetSites *bool `json:"browserBlockSingleWordEntryOnIntranetSites,omitempty"` + // BrowserRequireSmartScreen Indicates whether or not to require the user to use the smart screen filter. + BrowserRequireSmartScreen *bool `json:"browserRequireSmartScreen,omitempty"` + // BrowserEnterpriseModeSiteListLocation The enterprise mode site list location. Could be a local file, local network or http location. + BrowserEnterpriseModeSiteListLocation *string `json:"browserEnterpriseModeSiteListLocation,omitempty"` + // BrowserInternetSecurityLevel The internet security level. + BrowserInternetSecurityLevel *InternetSiteSecurityLevel `json:"browserInternetSecurityLevel,omitempty"` + // BrowserIntranetSecurityLevel The Intranet security level. + BrowserIntranetSecurityLevel *SiteSecurityLevel `json:"browserIntranetSecurityLevel,omitempty"` + // BrowserLoggingReportLocation The logging report location. + BrowserLoggingReportLocation *string `json:"browserLoggingReportLocation,omitempty"` + // BrowserRequireHighSecurityForRestrictedSites Indicates whether or not to require high security for restricted sites. + BrowserRequireHighSecurityForRestrictedSites *bool `json:"browserRequireHighSecurityForRestrictedSites,omitempty"` + // BrowserRequireFirewall Indicates whether or not to require a firewall. + BrowserRequireFirewall *bool `json:"browserRequireFirewall,omitempty"` + // BrowserRequireFraudWarning Indicates whether or not to require fraud warning. + BrowserRequireFraudWarning *bool `json:"browserRequireFraudWarning,omitempty"` + // BrowserTrustedSitesSecurityLevel The trusted sites security level. + BrowserTrustedSitesSecurityLevel *SiteSecurityLevel `json:"browserTrustedSitesSecurityLevel,omitempty"` + // CellularBlockDataRoaming Indicates whether or not to block data roaming. + CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"` + // DiagnosticsBlockDataSubmission Indicates whether or not to block diagnostic data submission. + DiagnosticsBlockDataSubmission *bool `json:"diagnosticsBlockDataSubmission,omitempty"` + // PasswordBlockPicturePasswordAndPin Indicates whether or not to Block the user from using a pictures password and pin. + PasswordBlockPicturePasswordAndPin *bool `json:"passwordBlockPicturePasswordAndPin,omitempty"` + // PasswordExpirationDays Password expiration in days. + PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"` + // PasswordMinimumLength The minimum password length. + PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"` + // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out. + PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"` + // PasswordMinimumCharacterSetCount The number of character sets required in the password. + PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"` + // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24 + PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"` + // PasswordRequiredType The required password type. + PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"` + // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset. + PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"` + // StorageRequireDeviceEncryption Indicates whether or not to require encryption on a mobile device. + StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"` + // MinimumAutoInstallClassification The minimum update classification to install automatically. + MinimumAutoInstallClassification *UpdateClassification `json:"minimumAutoInstallClassification,omitempty"` + // UpdatesMinimumAutoInstallClassification The minimum update classification to install automatically. + UpdatesMinimumAutoInstallClassification *UpdateClassification `json:"updatesMinimumAutoInstallClassification,omitempty"` + // UpdatesRequireAutomaticUpdates Indicates whether or not to require automatic updates. + UpdatesRequireAutomaticUpdates *bool `json:"updatesRequireAutomaticUpdates,omitempty"` + // UserAccountControlSettings The user account control settings. + UserAccountControlSettings *WindowsUserAccountControlSettings `json:"userAccountControlSettings,omitempty"` + // WorkFoldersURL The work folders url. + WorkFoldersURL *string `json:"workFoldersUrl,omitempty"` +} + +// Windows81SCEPCertificateProfile Windows 8.1+ SCEP certificate profile +type Windows81SCEPCertificateProfile struct { + // Windows81CertificateProfileBase is the base model of Windows81SCEPCertificateProfile + Windows81CertificateProfileBase + // ScepServerUrls SCEP Server Url(s). + ScepServerUrls []string `json:"scepServerUrls,omitempty"` + // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US + SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"` + // KeyUsage SCEP Key Usage. + KeyUsage *KeyUsages `json:"keyUsage,omitempty"` + // KeySize SCEP Key Size. + KeySize *KeySize `json:"keySize,omitempty"` + // HashAlgorithm SCEP Hash Algorithm. + HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"` + // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute. + SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"` + // CertificateStore Target store certificate + CertificateStore *CertificateStore `json:"certificateStore,omitempty"` + // RootCertificate undocumented + RootCertificate *Windows81TrustedRootCertificate `json:"rootCertificate,omitempty"` + // ManagedDeviceCertificateStates undocumented + ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"` +} + +// Windows81TrustedRootCertificate Windows 8.1 Trusted Certificate configuration profile +type Windows81TrustedRootCertificate struct { + // DeviceConfiguration is the base model of Windows81TrustedRootCertificate + DeviceConfiguration + // TrustedRootCertificate Trusted Root Certificate + TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"` + // CertFileName File name to display in UI. + CertFileName *string `json:"certFileName,omitempty"` + // DestinationStore Destination store location for the Trusted Root Certificate. + DestinationStore *CertificateDestinationStore `json:"destinationStore,omitempty"` +} + +// Windows81VpnConfiguration By providing the configurations in this profile you can instruct the Windows 8.1 (and later) devices to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. +type Windows81VpnConfiguration struct { + // WindowsVPNConfiguration is the base model of Windows81VpnConfiguration + WindowsVPNConfiguration + // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only. + ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"` + // ConnectionType Connection type. + ConnectionType *WindowsVPNConnectionType `json:"connectionType,omitempty"` + // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection. + LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"` + // EnableSplitTunneling Enable split tunneling for the VPN. + EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"` + // ProxyServer Proxy Server. + ProxyServer *Windows81VpnProxyServer `json:"proxyServer,omitempty"` +} + +// Windows81VpnProxyServer undocumented +type Windows81VpnProxyServer struct { + // VPNProxyServer is the base model of Windows81VpnProxyServer + VPNProxyServer + // AutomaticallyDetectProxySettings Automatically detect proxy settings. + AutomaticallyDetectProxySettings *bool `json:"automaticallyDetectProxySettings,omitempty"` + // BypassProxyServerForLocalAddress Bypass proxy server for local address. + BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"` +} + +// Windows81WifiImportConfiguration Windows 8.1+ Wi-Fi import configuration. By configuring this profile you can instruct Windows 8.1 (and later) devices to connect to desired Wi-Fi endpoint. Connect a Windows 8.1 device to the desired Wi-Fi network and extract the XML from that device to later embed into this Wi-Fi profile. +type Windows81WifiImportConfiguration struct { + // DeviceConfiguration is the base model of Windows81WifiImportConfiguration + DeviceConfiguration + // PayloadFileName Payload file name (*.xml). + PayloadFileName *string `json:"payloadFileName,omitempty"` + // ProfileName Profile name displayed in the UI. + ProfileName *string `json:"profileName,omitempty"` + // Payload Payload. (UTF8 encoded byte array). This is the XML file saved on the device you used to connect to the Wi-Fi endpoint. + Payload *Binary `json:"payload,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go new file mode 100644 index 00000000..86361184 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go @@ -0,0 +1,747 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "encoding/json" + +// Workbook undocumented +type Workbook struct { + // Entity is the base model of Workbook + Entity + // Application undocumented + Application *WorkbookApplication `json:"application,omitempty"` + // Names undocumented + Names []WorkbookNamedItem `json:"names,omitempty"` + // Tables undocumented + Tables []WorkbookTable `json:"tables,omitempty"` + // Worksheets undocumented + Worksheets []WorkbookWorksheet `json:"worksheets,omitempty"` + // Comments undocumented + Comments []WorkbookComment `json:"comments,omitempty"` + // Functions undocumented + Functions *WorkbookFunctions `json:"functions,omitempty"` +} + +// WorkbookApplication undocumented +type WorkbookApplication struct { + // Entity is the base model of WorkbookApplication + Entity + // CalculationMode undocumented + CalculationMode *string `json:"calculationMode,omitempty"` +} + +// WorkbookChart undocumented +type WorkbookChart struct { + // Entity is the base model of WorkbookChart + Entity + // Height undocumented + Height *float64 `json:"height,omitempty"` + // Left undocumented + Left *float64 `json:"left,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Top undocumented + Top *float64 `json:"top,omitempty"` + // Width undocumented + Width *float64 `json:"width,omitempty"` + // Axes undocumented + Axes *WorkbookChartAxes `json:"axes,omitempty"` + // DataLabels undocumented + DataLabels *WorkbookChartDataLabels `json:"dataLabels,omitempty"` + // Format undocumented + Format *WorkbookChartAreaFormat `json:"format,omitempty"` + // Legend undocumented + Legend *WorkbookChartLegend `json:"legend,omitempty"` + // Series undocumented + Series []WorkbookChartSeries `json:"series,omitempty"` + // Title undocumented + Title *WorkbookChartTitle `json:"title,omitempty"` + // Worksheet undocumented + Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"` +} + +// WorkbookChartAreaFormat undocumented +type WorkbookChartAreaFormat struct { + // Entity is the base model of WorkbookChartAreaFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` +} + +// WorkbookChartAxes undocumented +type WorkbookChartAxes struct { + // Entity is the base model of WorkbookChartAxes + Entity + // CategoryAxis undocumented + CategoryAxis *WorkbookChartAxis `json:"categoryAxis,omitempty"` + // SeriesAxis undocumented + SeriesAxis *WorkbookChartAxis `json:"seriesAxis,omitempty"` + // ValueAxis undocumented + ValueAxis *WorkbookChartAxis `json:"valueAxis,omitempty"` +} + +// WorkbookChartAxis undocumented +type WorkbookChartAxis struct { + // Entity is the base model of WorkbookChartAxis + Entity + // MajorUnit undocumented + MajorUnit json.RawMessage `json:"majorUnit,omitempty"` + // Maximum undocumented + Maximum json.RawMessage `json:"maximum,omitempty"` + // Minimum undocumented + Minimum json.RawMessage `json:"minimum,omitempty"` + // MinorUnit undocumented + MinorUnit json.RawMessage `json:"minorUnit,omitempty"` + // Format undocumented + Format *WorkbookChartAxisFormat `json:"format,omitempty"` + // MajorGridlines undocumented + MajorGridlines *WorkbookChartGridlines `json:"majorGridlines,omitempty"` + // MinorGridlines undocumented + MinorGridlines *WorkbookChartGridlines `json:"minorGridlines,omitempty"` + // Title undocumented + Title *WorkbookChartAxisTitle `json:"title,omitempty"` +} + +// WorkbookChartAxisFormat undocumented +type WorkbookChartAxisFormat struct { + // Entity is the base model of WorkbookChartAxisFormat + Entity + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` + // Line undocumented + Line *WorkbookChartLineFormat `json:"line,omitempty"` +} + +// WorkbookChartAxisTitle undocumented +type WorkbookChartAxisTitle struct { + // Entity is the base model of WorkbookChartAxisTitle + Entity + // Text undocumented + Text *string `json:"text,omitempty"` + // Visible undocumented + Visible *bool `json:"visible,omitempty"` + // Format undocumented + Format *WorkbookChartAxisTitleFormat `json:"format,omitempty"` +} + +// WorkbookChartAxisTitleFormat undocumented +type WorkbookChartAxisTitleFormat struct { + // Entity is the base model of WorkbookChartAxisTitleFormat + Entity + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` +} + +// WorkbookChartDataLabelFormat undocumented +type WorkbookChartDataLabelFormat struct { + // Entity is the base model of WorkbookChartDataLabelFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` +} + +// WorkbookChartDataLabels undocumented +type WorkbookChartDataLabels struct { + // Entity is the base model of WorkbookChartDataLabels + Entity + // Position undocumented + Position *string `json:"position,omitempty"` + // Separator undocumented + Separator *string `json:"separator,omitempty"` + // ShowBubbleSize undocumented + ShowBubbleSize *bool `json:"showBubbleSize,omitempty"` + // ShowCategoryName undocumented + ShowCategoryName *bool `json:"showCategoryName,omitempty"` + // ShowLegendKey undocumented + ShowLegendKey *bool `json:"showLegendKey,omitempty"` + // ShowPercentage undocumented + ShowPercentage *bool `json:"showPercentage,omitempty"` + // ShowSeriesName undocumented + ShowSeriesName *bool `json:"showSeriesName,omitempty"` + // ShowValue undocumented + ShowValue *bool `json:"showValue,omitempty"` + // Format undocumented + Format *WorkbookChartDataLabelFormat `json:"format,omitempty"` +} + +// WorkbookChartFill undocumented +type WorkbookChartFill struct { + // Entity is the base model of WorkbookChartFill + Entity +} + +// WorkbookChartFont undocumented +type WorkbookChartFont struct { + // Entity is the base model of WorkbookChartFont + Entity + // Bold undocumented + Bold *bool `json:"bold,omitempty"` + // Color undocumented + Color *string `json:"color,omitempty"` + // Italic undocumented + Italic *bool `json:"italic,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Size undocumented + Size *float64 `json:"size,omitempty"` + // Underline undocumented + Underline *string `json:"underline,omitempty"` +} + +// WorkbookChartGridlines undocumented +type WorkbookChartGridlines struct { + // Entity is the base model of WorkbookChartGridlines + Entity + // Visible undocumented + Visible *bool `json:"visible,omitempty"` + // Format undocumented + Format *WorkbookChartGridlinesFormat `json:"format,omitempty"` +} + +// WorkbookChartGridlinesFormat undocumented +type WorkbookChartGridlinesFormat struct { + // Entity is the base model of WorkbookChartGridlinesFormat + Entity + // Line undocumented + Line *WorkbookChartLineFormat `json:"line,omitempty"` +} + +// WorkbookChartLegend undocumented +type WorkbookChartLegend struct { + // Entity is the base model of WorkbookChartLegend + Entity + // Overlay undocumented + Overlay *bool `json:"overlay,omitempty"` + // Position undocumented + Position *string `json:"position,omitempty"` + // Visible undocumented + Visible *bool `json:"visible,omitempty"` + // Format undocumented + Format *WorkbookChartLegendFormat `json:"format,omitempty"` +} + +// WorkbookChartLegendFormat undocumented +type WorkbookChartLegendFormat struct { + // Entity is the base model of WorkbookChartLegendFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` +} + +// WorkbookChartLineFormat undocumented +type WorkbookChartLineFormat struct { + // Entity is the base model of WorkbookChartLineFormat + Entity + // Color undocumented + Color *string `json:"color,omitempty"` +} + +// WorkbookChartPoint undocumented +type WorkbookChartPoint struct { + // Entity is the base model of WorkbookChartPoint + Entity + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` + // Format undocumented + Format *WorkbookChartPointFormat `json:"format,omitempty"` +} + +// WorkbookChartPointFormat undocumented +type WorkbookChartPointFormat struct { + // Entity is the base model of WorkbookChartPointFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` +} + +// WorkbookChartSeries undocumented +type WorkbookChartSeries struct { + // Entity is the base model of WorkbookChartSeries + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Format undocumented + Format *WorkbookChartSeriesFormat `json:"format,omitempty"` + // Points undocumented + Points []WorkbookChartPoint `json:"points,omitempty"` +} + +// WorkbookChartSeriesFormat undocumented +type WorkbookChartSeriesFormat struct { + // Entity is the base model of WorkbookChartSeriesFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` + // Line undocumented + Line *WorkbookChartLineFormat `json:"line,omitempty"` +} + +// WorkbookChartTitle undocumented +type WorkbookChartTitle struct { + // Entity is the base model of WorkbookChartTitle + Entity + // Overlay undocumented + Overlay *bool `json:"overlay,omitempty"` + // Text undocumented + Text *string `json:"text,omitempty"` + // Visible undocumented + Visible *bool `json:"visible,omitempty"` + // Format undocumented + Format *WorkbookChartTitleFormat `json:"format,omitempty"` +} + +// WorkbookChartTitleFormat undocumented +type WorkbookChartTitleFormat struct { + // Entity is the base model of WorkbookChartTitleFormat + Entity + // Fill undocumented + Fill *WorkbookChartFill `json:"fill,omitempty"` + // Font undocumented + Font *WorkbookChartFont `json:"font,omitempty"` +} + +// WorkbookComment undocumented +type WorkbookComment struct { + // Entity is the base model of WorkbookComment + Entity + // Content undocumented + Content *string `json:"content,omitempty"` + // ContentType undocumented + ContentType *string `json:"contentType,omitempty"` + // Replies undocumented + Replies []WorkbookCommentReply `json:"replies,omitempty"` +} + +// WorkbookCommentReply undocumented +type WorkbookCommentReply struct { + // Entity is the base model of WorkbookCommentReply + Entity + // Content undocumented + Content *string `json:"content,omitempty"` + // ContentType undocumented + ContentType *string `json:"contentType,omitempty"` +} + +// WorkbookFilter undocumented +type WorkbookFilter struct { + // Entity is the base model of WorkbookFilter + Entity + // Criteria undocumented + Criteria *WorkbookFilterCriteria `json:"criteria,omitempty"` +} + +// WorkbookFilterCriteria undocumented +type WorkbookFilterCriteria struct { + // Object is the base model of WorkbookFilterCriteria + Object + // Color undocumented + Color *string `json:"color,omitempty"` + // Criterion1 undocumented + Criterion1 *string `json:"criterion1,omitempty"` + // Criterion2 undocumented + Criterion2 *string `json:"criterion2,omitempty"` + // DynamicCriteria undocumented + DynamicCriteria *string `json:"dynamicCriteria,omitempty"` + // FilterOn undocumented + FilterOn *string `json:"filterOn,omitempty"` + // Icon undocumented + Icon *WorkbookIcon `json:"icon,omitempty"` + // Operator undocumented + Operator *string `json:"operator,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookFilterDatetime undocumented +type WorkbookFilterDatetime struct { + // Object is the base model of WorkbookFilterDatetime + Object + // Date undocumented + Date *string `json:"date,omitempty"` + // Specificity undocumented + Specificity *string `json:"specificity,omitempty"` +} + +// WorkbookFormatProtection undocumented +type WorkbookFormatProtection struct { + // Entity is the base model of WorkbookFormatProtection + Entity + // FormulaHidden undocumented + FormulaHidden *bool `json:"formulaHidden,omitempty"` + // Locked undocumented + Locked *bool `json:"locked,omitempty"` +} + +// WorkbookFunctionResult undocumented +type WorkbookFunctionResult struct { + // Entity is the base model of WorkbookFunctionResult + Entity + // Error undocumented + Error *string `json:"error,omitempty"` + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` +} + +// WorkbookFunctions undocumented +type WorkbookFunctions struct { + // Entity is the base model of WorkbookFunctions + Entity +} + +// WorkbookIcon undocumented +type WorkbookIcon struct { + // Object is the base model of WorkbookIcon + Object + // Index undocumented + Index *int `json:"index,omitempty"` + // Set undocumented + Set *string `json:"set,omitempty"` +} + +// WorkbookNamedItem undocumented +type WorkbookNamedItem struct { + // Entity is the base model of WorkbookNamedItem + Entity + // Comment undocumented + Comment *string `json:"comment,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Scope undocumented + Scope *string `json:"scope,omitempty"` + // Type undocumented + Type *string `json:"type,omitempty"` + // Value undocumented + Value json.RawMessage `json:"value,omitempty"` + // Visible undocumented + Visible *bool `json:"visible,omitempty"` + // Worksheet undocumented + Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"` +} + +// WorkbookPivotTable undocumented +type WorkbookPivotTable struct { + // Entity is the base model of WorkbookPivotTable + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Worksheet undocumented + Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"` +} + +// WorkbookRange undocumented +type WorkbookRange struct { + // Entity is the base model of WorkbookRange + Entity + // Address undocumented + Address *string `json:"address,omitempty"` + // AddressLocal undocumented + AddressLocal *string `json:"addressLocal,omitempty"` + // CellCount undocumented + CellCount *int `json:"cellCount,omitempty"` + // ColumnCount undocumented + ColumnCount *int `json:"columnCount,omitempty"` + // ColumnHidden undocumented + ColumnHidden *bool `json:"columnHidden,omitempty"` + // ColumnIndex undocumented + ColumnIndex *int `json:"columnIndex,omitempty"` + // Formulas undocumented + Formulas json.RawMessage `json:"formulas,omitempty"` + // FormulasLocal undocumented + FormulasLocal json.RawMessage `json:"formulasLocal,omitempty"` + // FormulasR1C1 undocumented + FormulasR1C1 json.RawMessage `json:"formulasR1C1,omitempty"` + // Hidden undocumented + Hidden *bool `json:"hidden,omitempty"` + // NumberFormat undocumented + NumberFormat json.RawMessage `json:"numberFormat,omitempty"` + // RowCount undocumented + RowCount *int `json:"rowCount,omitempty"` + // RowHidden undocumented + RowHidden *bool `json:"rowHidden,omitempty"` + // RowIndex undocumented + RowIndex *int `json:"rowIndex,omitempty"` + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // ValueTypes undocumented + ValueTypes json.RawMessage `json:"valueTypes,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Format undocumented + Format *WorkbookRangeFormat `json:"format,omitempty"` + // Sort undocumented + Sort *WorkbookRangeSort `json:"sort,omitempty"` + // Worksheet undocumented + Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"` +} + +// WorkbookRangeBorder undocumented +type WorkbookRangeBorder struct { + // Entity is the base model of WorkbookRangeBorder + Entity + // Color undocumented + Color *string `json:"color,omitempty"` + // SideIndex undocumented + SideIndex *string `json:"sideIndex,omitempty"` + // Style undocumented + Style *string `json:"style,omitempty"` + // Weight undocumented + Weight *string `json:"weight,omitempty"` +} + +// WorkbookRangeFill undocumented +type WorkbookRangeFill struct { + // Entity is the base model of WorkbookRangeFill + Entity + // Color undocumented + Color *string `json:"color,omitempty"` +} + +// WorkbookRangeFont undocumented +type WorkbookRangeFont struct { + // Entity is the base model of WorkbookRangeFont + Entity + // Bold undocumented + Bold *bool `json:"bold,omitempty"` + // Color undocumented + Color *string `json:"color,omitempty"` + // Italic undocumented + Italic *bool `json:"italic,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Size undocumented + Size *float64 `json:"size,omitempty"` + // Underline undocumented + Underline *string `json:"underline,omitempty"` +} + +// WorkbookRangeFormat undocumented +type WorkbookRangeFormat struct { + // Entity is the base model of WorkbookRangeFormat + Entity + // ColumnWidth undocumented + ColumnWidth *float64 `json:"columnWidth,omitempty"` + // HorizontalAlignment undocumented + HorizontalAlignment *string `json:"horizontalAlignment,omitempty"` + // RowHeight undocumented + RowHeight *float64 `json:"rowHeight,omitempty"` + // VerticalAlignment undocumented + VerticalAlignment *string `json:"verticalAlignment,omitempty"` + // WrapText undocumented + WrapText *bool `json:"wrapText,omitempty"` + // Borders undocumented + Borders []WorkbookRangeBorder `json:"borders,omitempty"` + // Fill undocumented + Fill *WorkbookRangeFill `json:"fill,omitempty"` + // Font undocumented + Font *WorkbookRangeFont `json:"font,omitempty"` + // Protection undocumented + Protection *WorkbookFormatProtection `json:"protection,omitempty"` +} + +// WorkbookRangeReference undocumented +type WorkbookRangeReference struct { + // Object is the base model of WorkbookRangeReference + Object + // Address undocumented + Address *string `json:"address,omitempty"` +} + +// WorkbookRangeSort undocumented +type WorkbookRangeSort struct { + // Entity is the base model of WorkbookRangeSort + Entity +} + +// WorkbookRangeView undocumented +type WorkbookRangeView struct { + // Entity is the base model of WorkbookRangeView + Entity + // CellAddresses undocumented + CellAddresses json.RawMessage `json:"cellAddresses,omitempty"` + // ColumnCount undocumented + ColumnCount *int `json:"columnCount,omitempty"` + // Formulas undocumented + Formulas json.RawMessage `json:"formulas,omitempty"` + // FormulasLocal undocumented + FormulasLocal json.RawMessage `json:"formulasLocal,omitempty"` + // FormulasR1C1 undocumented + FormulasR1C1 json.RawMessage `json:"formulasR1C1,omitempty"` + // Index undocumented + Index *int `json:"index,omitempty"` + // NumberFormat undocumented + NumberFormat json.RawMessage `json:"numberFormat,omitempty"` + // RowCount undocumented + RowCount *int `json:"rowCount,omitempty"` + // Text undocumented + Text json.RawMessage `json:"text,omitempty"` + // ValueTypes undocumented + ValueTypes json.RawMessage `json:"valueTypes,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Rows undocumented + Rows []WorkbookRangeView `json:"rows,omitempty"` +} + +// WorkbookSessionInfo undocumented +type WorkbookSessionInfo struct { + // Object is the base model of WorkbookSessionInfo + Object + // ID undocumented + ID *string `json:"id,omitempty"` + // PersistChanges undocumented + PersistChanges *bool `json:"persistChanges,omitempty"` +} + +// WorkbookSortField undocumented +type WorkbookSortField struct { + // Object is the base model of WorkbookSortField + Object + // Ascending undocumented + Ascending *bool `json:"ascending,omitempty"` + // Color undocumented + Color *string `json:"color,omitempty"` + // DataOption undocumented + DataOption *string `json:"dataOption,omitempty"` + // Icon undocumented + Icon *WorkbookIcon `json:"icon,omitempty"` + // Key undocumented + Key *int `json:"key,omitempty"` + // SortOn undocumented + SortOn *string `json:"sortOn,omitempty"` +} + +// WorkbookTable undocumented +type WorkbookTable struct { + // Entity is the base model of WorkbookTable + Entity + // HighlightFirstColumn undocumented + HighlightFirstColumn *bool `json:"highlightFirstColumn,omitempty"` + // HighlightLastColumn undocumented + HighlightLastColumn *bool `json:"highlightLastColumn,omitempty"` + // LegacyID undocumented + LegacyID *string `json:"legacyId,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // ShowBandedColumns undocumented + ShowBandedColumns *bool `json:"showBandedColumns,omitempty"` + // ShowBandedRows undocumented + ShowBandedRows *bool `json:"showBandedRows,omitempty"` + // ShowFilterButton undocumented + ShowFilterButton *bool `json:"showFilterButton,omitempty"` + // ShowHeaders undocumented + ShowHeaders *bool `json:"showHeaders,omitempty"` + // ShowTotals undocumented + ShowTotals *bool `json:"showTotals,omitempty"` + // Style undocumented + Style *string `json:"style,omitempty"` + // Columns undocumented + Columns []WorkbookTableColumn `json:"columns,omitempty"` + // Rows undocumented + Rows []WorkbookTableRow `json:"rows,omitempty"` + // Sort undocumented + Sort *WorkbookTableSort `json:"sort,omitempty"` + // Worksheet undocumented + Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"` +} + +// WorkbookTableColumn undocumented +type WorkbookTableColumn struct { + // Entity is the base model of WorkbookTableColumn + Entity + // Index undocumented + Index *int `json:"index,omitempty"` + // Name undocumented + Name *string `json:"name,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` + // Filter undocumented + Filter *WorkbookFilter `json:"filter,omitempty"` +} + +// WorkbookTableRow undocumented +type WorkbookTableRow struct { + // Entity is the base model of WorkbookTableRow + Entity + // Index undocumented + Index *int `json:"index,omitempty"` + // Values undocumented + Values json.RawMessage `json:"values,omitempty"` +} + +// WorkbookTableSort undocumented +type WorkbookTableSort struct { + // Entity is the base model of WorkbookTableSort + Entity + // Fields undocumented + Fields []WorkbookSortField `json:"fields,omitempty"` + // MatchCase undocumented + MatchCase *bool `json:"matchCase,omitempty"` + // Method undocumented + Method *string `json:"method,omitempty"` +} + +// WorkbookWorksheet undocumented +type WorkbookWorksheet struct { + // Entity is the base model of WorkbookWorksheet + Entity + // Name undocumented + Name *string `json:"name,omitempty"` + // Position undocumented + Position *int `json:"position,omitempty"` + // Visibility undocumented + Visibility *string `json:"visibility,omitempty"` + // Charts undocumented + Charts []WorkbookChart `json:"charts,omitempty"` + // Names undocumented + Names []WorkbookNamedItem `json:"names,omitempty"` + // PivotTables undocumented + PivotTables []WorkbookPivotTable `json:"pivotTables,omitempty"` + // Protection undocumented + Protection *WorkbookWorksheetProtection `json:"protection,omitempty"` + // Tables undocumented + Tables []WorkbookTable `json:"tables,omitempty"` +} + +// WorkbookWorksheetProtection undocumented +type WorkbookWorksheetProtection struct { + // Entity is the base model of WorkbookWorksheetProtection + Entity + // Options undocumented + Options *WorkbookWorksheetProtectionOptions `json:"options,omitempty"` + // Protected undocumented + Protected *bool `json:"protected,omitempty"` +} + +// WorkbookWorksheetProtectionOptions undocumented +type WorkbookWorksheetProtectionOptions struct { + // Object is the base model of WorkbookWorksheetProtectionOptions + Object + // AllowAutoFilter undocumented + AllowAutoFilter *bool `json:"allowAutoFilter,omitempty"` + // AllowDeleteColumns undocumented + AllowDeleteColumns *bool `json:"allowDeleteColumns,omitempty"` + // AllowDeleteRows undocumented + AllowDeleteRows *bool `json:"allowDeleteRows,omitempty"` + // AllowFormatCells undocumented + AllowFormatCells *bool `json:"allowFormatCells,omitempty"` + // AllowFormatColumns undocumented + AllowFormatColumns *bool `json:"allowFormatColumns,omitempty"` + // AllowFormatRows undocumented + AllowFormatRows *bool `json:"allowFormatRows,omitempty"` + // AllowInsertColumns undocumented + AllowInsertColumns *bool `json:"allowInsertColumns,omitempty"` + // AllowInsertHyperlinks undocumented + AllowInsertHyperlinks *bool `json:"allowInsertHyperlinks,omitempty"` + // AllowInsertRows undocumented + AllowInsertRows *bool `json:"allowInsertRows,omitempty"` + // AllowPivotTables undocumented + AllowPivotTables *bool `json:"allowPivotTables,omitempty"` + // AllowSort undocumented + AllowSort *bool `json:"allowSort,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go new file mode 100644 index 00000000..c07f9368 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go @@ -0,0 +1,31 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WorkforceIntegration undocumented +type WorkforceIntegration struct { + // ChangeTrackedEntity is the base model of WorkforceIntegration + ChangeTrackedEntity + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // APIVersion undocumented + APIVersion *int `json:"apiVersion,omitempty"` + // Encryption undocumented + Encryption *WorkforceIntegrationEncryption `json:"encryption,omitempty"` + // IsActive undocumented + IsActive *bool `json:"isActive,omitempty"` + // URL undocumented + URL *string `json:"url,omitempty"` + // Supports undocumented + Supports *WorkforceIntegrationSupportedEntities `json:"supports,omitempty"` +} + +// WorkforceIntegrationEncryption undocumented +type WorkforceIntegrationEncryption struct { + // Object is the base model of WorkforceIntegrationEncryption + Object + // Protocol undocumented + Protocol *WorkforceIntegrationEncryptionProtocol `json:"protocol,omitempty"` + // Secret undocumented + Secret *string `json:"secret,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go new file mode 100644 index 00000000..3dc0c940 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go @@ -0,0 +1,17 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// WorkingHours undocumented +type WorkingHours struct { + // Object is the base model of WorkingHours + Object + // DaysOfWeek undocumented + DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"` + // StartTime undocumented + StartTime *TimeOfDay `json:"startTime,omitempty"` + // EndTime undocumented + EndTime *TimeOfDay `json:"endTime,omitempty"` + // TimeZone undocumented + TimeZone *TimeZoneBase `json:"timeZone,omitempty"` +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go new file mode 100644 index 00000000..b32ef25a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go @@ -0,0 +1,191 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +// YammerActivitySummary undocumented +type YammerActivitySummary struct { + // Entity is the base model of YammerActivitySummary + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Liked undocumented + Liked *int `json:"liked,omitempty"` + // Posted undocumented + Posted *int `json:"posted,omitempty"` + // Read undocumented + Read *int `json:"read,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerActivityUserDetail undocumented +type YammerActivityUserDetail struct { + // Entity is the base model of YammerActivityUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // UserState undocumented + UserState *string `json:"userState,omitempty"` + // StateChangeDate undocumented + StateChangeDate *Date `json:"stateChangeDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // PostedCount undocumented + PostedCount *int `json:"postedCount,omitempty"` + // ReadCount undocumented + ReadCount *int `json:"readCount,omitempty"` + // LikedCount undocumented + LikedCount *int `json:"likedCount,omitempty"` + // AssignedProducts undocumented + AssignedProducts []string `json:"assignedProducts,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerDeviceUsageDistributionUserCounts undocumented +type YammerDeviceUsageDistributionUserCounts struct { + // Entity is the base model of YammerDeviceUsageDistributionUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IPhone undocumented + IPhone *int `json:"iPhone,omitempty"` + // IPad undocumented + IPad *int `json:"iPad,omitempty"` + // Other undocumented + Other *int `json:"other,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerDeviceUsageUserCounts undocumented +type YammerDeviceUsageUserCounts struct { + // Entity is the base model of YammerDeviceUsageUserCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Web undocumented + Web *int `json:"web,omitempty"` + // WindowsPhone undocumented + WindowsPhone *int `json:"windowsPhone,omitempty"` + // AndroidPhone undocumented + AndroidPhone *int `json:"androidPhone,omitempty"` + // IPhone undocumented + IPhone *int `json:"iPhone,omitempty"` + // IPad undocumented + IPad *int `json:"iPad,omitempty"` + // Other undocumented + Other *int `json:"other,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerDeviceUsageUserDetail undocumented +type YammerDeviceUsageUserDetail struct { + // Entity is the base model of YammerDeviceUsageUserDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // UserPrincipalName undocumented + UserPrincipalName *string `json:"userPrincipalName,omitempty"` + // DisplayName undocumented + DisplayName *string `json:"displayName,omitempty"` + // UserState undocumented + UserState *string `json:"userState,omitempty"` + // StateChangeDate undocumented + StateChangeDate *Date `json:"stateChangeDate,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // UsedWeb undocumented + UsedWeb *bool `json:"usedWeb,omitempty"` + // UsedWindowsPhone undocumented + UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"` + // UsedAndroidPhone undocumented + UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"` + // UsediPhone undocumented + UsediPhone *bool `json:"usediPhone,omitempty"` + // UsediPad undocumented + UsediPad *bool `json:"usediPad,omitempty"` + // UsedOthers undocumented + UsedOthers *bool `json:"usedOthers,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerGroupsActivityCounts undocumented +type YammerGroupsActivityCounts struct { + // Entity is the base model of YammerGroupsActivityCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Liked undocumented + Liked *int `json:"liked,omitempty"` + // Posted undocumented + Posted *int `json:"posted,omitempty"` + // Read undocumented + Read *int `json:"read,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerGroupsActivityDetail undocumented +type YammerGroupsActivityDetail struct { + // Entity is the base model of YammerGroupsActivityDetail + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // GroupDisplayName undocumented + GroupDisplayName *string `json:"groupDisplayName,omitempty"` + // IsDeleted undocumented + IsDeleted *bool `json:"isDeleted,omitempty"` + // OwnerPrincipalName undocumented + OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"` + // LastActivityDate undocumented + LastActivityDate *Date `json:"lastActivityDate,omitempty"` + // GroupType undocumented + GroupType *string `json:"groupType,omitempty"` + // Office365Connected undocumented + Office365Connected *bool `json:"office365Connected,omitempty"` + // MemberCount undocumented + MemberCount *int `json:"memberCount,omitempty"` + // PostedCount undocumented + PostedCount *int `json:"postedCount,omitempty"` + // ReadCount undocumented + ReadCount *int `json:"readCount,omitempty"` + // LikedCount undocumented + LikedCount *int `json:"likedCount,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} + +// YammerGroupsActivityGroupCounts undocumented +type YammerGroupsActivityGroupCounts struct { + // Entity is the base model of YammerGroupsActivityGroupCounts + Entity + // ReportRefreshDate undocumented + ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"` + // Total undocumented + Total *int `json:"total,omitempty"` + // Active undocumented + Active *int `json:"active,omitempty"` + // ReportDate undocumented + ReportDate *Date `json:"reportDate,omitempty"` + // ReportPeriod undocumented + ReportPeriod *string `json:"reportPeriod,omitempty"` +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/YomiPersonNameModel.go rename to vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go new file mode 100644 index 00000000..37230e31 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AadUserConversationMemberRequestBuilder is request builder for AadUserConversationMember +type AadUserConversationMemberRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AadUserConversationMemberRequest +func (b *AadUserConversationMemberRequestBuilder) Request() *AadUserConversationMemberRequest { + return &AadUserConversationMemberRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AadUserConversationMemberRequest is request for AadUserConversationMember +type AadUserConversationMemberRequest struct{ BaseRequest } + +// Get performs GET request for AadUserConversationMember +func (r *AadUserConversationMemberRequest) Get(ctx context.Context) (resObj *AadUserConversationMember, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AadUserConversationMember +func (r *AadUserConversationMemberRequest) Update(ctx context.Context, reqObj *AadUserConversationMember) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AadUserConversationMember +func (r *AadUserConversationMemberRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go new file mode 100644 index 00000000..06ae52c0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go @@ -0,0 +1,630 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AccessPackageRequestBuilder is request builder for AccessPackage +type AccessPackageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageRequest +func (b *AccessPackageRequestBuilder) Request() *AccessPackageRequest { + return &AccessPackageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageRequest is request for AccessPackage +type AccessPackageRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackage +func (r *AccessPackageRequest) Get(ctx context.Context) (resObj *AccessPackage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackage +func (r *AccessPackageRequest) Update(ctx context.Context, reqObj *AccessPackage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackage +func (r *AccessPackageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageAssignmentRequestBuilder is request builder for AccessPackageAssignment +type AccessPackageAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageAssignmentRequest +func (b *AccessPackageAssignmentRequestBuilder) Request() *AccessPackageAssignmentRequest { + return &AccessPackageAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageAssignmentRequest is request for AccessPackageAssignment +type AccessPackageAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageAssignment +func (r *AccessPackageAssignmentRequest) Get(ctx context.Context) (resObj *AccessPackageAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageAssignment +func (r *AccessPackageAssignmentRequest) Update(ctx context.Context, reqObj *AccessPackageAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageAssignment +func (r *AccessPackageAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageAssignmentPolicyRequestBuilder is request builder for AccessPackageAssignmentPolicy +type AccessPackageAssignmentPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageAssignmentPolicyRequest +func (b *AccessPackageAssignmentPolicyRequestBuilder) Request() *AccessPackageAssignmentPolicyRequest { + return &AccessPackageAssignmentPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageAssignmentPolicyRequest is request for AccessPackageAssignmentPolicy +type AccessPackageAssignmentPolicyRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageAssignmentPolicy +func (r *AccessPackageAssignmentPolicyRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageAssignmentPolicy +func (r *AccessPackageAssignmentPolicyRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageAssignmentPolicy +func (r *AccessPackageAssignmentPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageAssignmentRequestObjectRequestBuilder is request builder for AccessPackageAssignmentRequestObject +type AccessPackageAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageAssignmentRequestObjectRequest +func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Request() *AccessPackageAssignmentRequestObjectRequest { + return &AccessPackageAssignmentRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageAssignmentRequestObjectRequest is request for AccessPackageAssignmentRequestObject +type AccessPackageAssignmentRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageAssignmentRequestObject +func (r *AccessPackageAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageAssignmentRequestObject +func (r *AccessPackageAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageAssignmentRequestObject +func (r *AccessPackageAssignmentRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageAssignmentResourceRoleRequestBuilder is request builder for AccessPackageAssignmentResourceRole +type AccessPackageAssignmentResourceRoleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageAssignmentResourceRoleRequest +func (b *AccessPackageAssignmentResourceRoleRequestBuilder) Request() *AccessPackageAssignmentResourceRoleRequest { + return &AccessPackageAssignmentResourceRoleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageAssignmentResourceRoleRequest is request for AccessPackageAssignmentResourceRole +type AccessPackageAssignmentResourceRoleRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageAssignmentResourceRole +func (r *AccessPackageAssignmentResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentResourceRole, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageAssignmentResourceRole +func (r *AccessPackageAssignmentResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageAssignmentResourceRole +func (r *AccessPackageAssignmentResourceRoleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageCatalogRequestBuilder is request builder for AccessPackageCatalog +type AccessPackageCatalogRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageCatalogRequest +func (b *AccessPackageCatalogRequestBuilder) Request() *AccessPackageCatalogRequest { + return &AccessPackageCatalogRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageCatalogRequest is request for AccessPackageCatalog +type AccessPackageCatalogRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageCatalog +func (r *AccessPackageCatalogRequest) Get(ctx context.Context) (resObj *AccessPackageCatalog, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageCatalog +func (r *AccessPackageCatalogRequest) Update(ctx context.Context, reqObj *AccessPackageCatalog) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageCatalog +func (r *AccessPackageCatalogRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageResourceRequestBuilder is request builder for AccessPackageResource +type AccessPackageResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageResourceRequest +func (b *AccessPackageResourceRequestBuilder) Request() *AccessPackageResourceRequest { + return &AccessPackageResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageResourceRequest is request for AccessPackageResource +type AccessPackageResourceRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageResource +func (r *AccessPackageResourceRequest) Get(ctx context.Context) (resObj *AccessPackageResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageResource +func (r *AccessPackageResourceRequest) Update(ctx context.Context, reqObj *AccessPackageResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageResource +func (r *AccessPackageResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageResourceRequestObjectRequestBuilder is request builder for AccessPackageResourceRequestObject +type AccessPackageResourceRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageResourceRequestObjectRequest +func (b *AccessPackageResourceRequestObjectRequestBuilder) Request() *AccessPackageResourceRequestObjectRequest { + return &AccessPackageResourceRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageResourceRequestObjectRequest is request for AccessPackageResourceRequestObject +type AccessPackageResourceRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageResourceRequestObject +func (r *AccessPackageResourceRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageResourceRequestObject +func (r *AccessPackageResourceRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageResourceRequestObject +func (r *AccessPackageResourceRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageResourceRoleRequestBuilder is request builder for AccessPackageResourceRole +type AccessPackageResourceRoleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageResourceRoleRequest +func (b *AccessPackageResourceRoleRequestBuilder) Request() *AccessPackageResourceRoleRequest { + return &AccessPackageResourceRoleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageResourceRoleRequest is request for AccessPackageResourceRole +type AccessPackageResourceRoleRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageResourceRole +func (r *AccessPackageResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRole, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageResourceRole +func (r *AccessPackageResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRole) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageResourceRole +func (r *AccessPackageResourceRoleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageResourceRoleScopeRequestBuilder is request builder for AccessPackageResourceRoleScope +type AccessPackageResourceRoleScopeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageResourceRoleScopeRequest +func (b *AccessPackageResourceRoleScopeRequestBuilder) Request() *AccessPackageResourceRoleScopeRequest { + return &AccessPackageResourceRoleScopeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageResourceRoleScopeRequest is request for AccessPackageResourceRoleScope +type AccessPackageResourceRoleScopeRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageResourceRoleScope +func (r *AccessPackageResourceRoleScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRoleScope, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageResourceRoleScope +func (r *AccessPackageResourceRoleScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRoleScope) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageResourceRoleScope +func (r *AccessPackageResourceRoleScopeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageResourceScopeRequestBuilder is request builder for AccessPackageResourceScope +type AccessPackageResourceScopeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageResourceScopeRequest +func (b *AccessPackageResourceScopeRequestBuilder) Request() *AccessPackageResourceScopeRequest { + return &AccessPackageResourceScopeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageResourceScopeRequest is request for AccessPackageResourceScope +type AccessPackageResourceScopeRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageResourceScope +func (r *AccessPackageResourceScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceScope, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageResourceScope +func (r *AccessPackageResourceScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceScope) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageResourceScope +func (r *AccessPackageResourceScopeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessPackageSubjectRequestBuilder is request builder for AccessPackageSubject +type AccessPackageSubjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessPackageSubjectRequest +func (b *AccessPackageSubjectRequestBuilder) Request() *AccessPackageSubjectRequest { + return &AccessPackageSubjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessPackageSubjectRequest is request for AccessPackageSubject +type AccessPackageSubjectRequest struct{ BaseRequest } + +// Get performs GET request for AccessPackageSubject +func (r *AccessPackageSubjectRequest) Get(ctx context.Context) (resObj *AccessPackageSubject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessPackageSubject +func (r *AccessPackageSubjectRequest) Update(ctx context.Context, reqObj *AccessPackageSubject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessPackageSubject +func (r *AccessPackageSubjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessReviewRequestBuilder is request builder for AccessReview +type AccessReviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessReviewRequest +func (b *AccessReviewRequestBuilder) Request() *AccessReviewRequest { + return &AccessReviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessReviewRequest is request for AccessReview +type AccessReviewRequest struct{ BaseRequest } + +// Get performs GET request for AccessReview +func (r *AccessReviewRequest) Get(ctx context.Context) (resObj *AccessReview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessReview +func (r *AccessReviewRequest) Update(ctx context.Context, reqObj *AccessReview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessReview +func (r *AccessReviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessReviewDecisionRequestBuilder is request builder for AccessReviewDecision +type AccessReviewDecisionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessReviewDecisionRequest +func (b *AccessReviewDecisionRequestBuilder) Request() *AccessReviewDecisionRequest { + return &AccessReviewDecisionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessReviewDecisionRequest is request for AccessReviewDecision +type AccessReviewDecisionRequest struct{ BaseRequest } + +// Get performs GET request for AccessReviewDecision +func (r *AccessReviewDecisionRequest) Get(ctx context.Context) (resObj *AccessReviewDecision, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessReviewDecision +func (r *AccessReviewDecisionRequest) Update(ctx context.Context, reqObj *AccessReviewDecision) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessReviewDecision +func (r *AccessReviewDecisionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AccessReviewReviewerRequestBuilder is request builder for AccessReviewReviewer +type AccessReviewReviewerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AccessReviewReviewerRequest +func (b *AccessReviewReviewerRequestBuilder) Request() *AccessReviewReviewerRequest { + return &AccessReviewReviewerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AccessReviewReviewerRequest is request for AccessReviewReviewer +type AccessReviewReviewerRequest struct{ BaseRequest } + +// Get performs GET request for AccessReviewReviewer +func (r *AccessReviewReviewerRequest) Get(ctx context.Context) (resObj *AccessReviewReviewer, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AccessReviewReviewer +func (r *AccessReviewReviewerRequest) Update(ctx context.Context, reqObj *AccessReviewReviewer) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AccessReviewReviewer +func (r *AccessReviewReviewerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AccessPackageAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Cancel(reqObj *AccessPackageAssignmentRequestObjectCancelRequestParameter) *AccessPackageAssignmentRequestObjectCancelRequestBuilder { + bb := &AccessPackageAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/Cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AccessPackageAssignmentRequestObjectCancelRequest struct{ BaseRequest } + +// +func (b *AccessPackageAssignmentRequestObjectCancelRequestBuilder) Request() *AccessPackageAssignmentRequestObjectCancelRequest { + return &AccessPackageAssignmentRequestObjectCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AccessPackageAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AccessReviewStopRequestBuilder struct{ BaseRequestBuilder } + +// Stop action undocumented +func (b *AccessReviewRequestBuilder) Stop(reqObj *AccessReviewStopRequestParameter) *AccessReviewStopRequestBuilder { + bb := &AccessReviewStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stop" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AccessReviewStopRequest struct{ BaseRequest } + +// +func (b *AccessReviewStopRequestBuilder) Request() *AccessReviewStopRequest { + return &AccessReviewStopRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AccessReviewStopRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AccessReviewSendReminderRequestBuilder struct{ BaseRequestBuilder } + +// SendReminder action undocumented +func (b *AccessReviewRequestBuilder) SendReminder(reqObj *AccessReviewSendReminderRequestParameter) *AccessReviewSendReminderRequestBuilder { + bb := &AccessReviewSendReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sendReminder" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AccessReviewSendReminderRequest struct{ BaseRequest } + +// +func (b *AccessReviewSendReminderRequestBuilder) Request() *AccessReviewSendReminderRequest { + return &AccessReviewSendReminderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AccessReviewSendReminderRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AccessReviewResetDecisionsRequestBuilder struct{ BaseRequestBuilder } + +// ResetDecisions action undocumented +func (b *AccessReviewRequestBuilder) ResetDecisions(reqObj *AccessReviewResetDecisionsRequestParameter) *AccessReviewResetDecisionsRequestBuilder { + bb := &AccessReviewResetDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/resetDecisions" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AccessReviewResetDecisionsRequest struct{ BaseRequest } + +// +func (b *AccessReviewResetDecisionsRequestBuilder) Request() *AccessReviewResetDecisionsRequest { + return &AccessReviewResetDecisionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AccessReviewResetDecisionsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AccessReviewApplyDecisionsRequestBuilder struct{ BaseRequestBuilder } + +// ApplyDecisions action undocumented +func (b *AccessReviewRequestBuilder) ApplyDecisions(reqObj *AccessReviewApplyDecisionsRequestParameter) *AccessReviewApplyDecisionsRequestBuilder { + bb := &AccessReviewApplyDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyDecisions" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AccessReviewApplyDecisionsRequest struct{ BaseRequest } + +// +func (b *AccessReviewApplyDecisionsRequestBuilder) Request() *AccessReviewApplyDecisionsRequest { + return &AccessReviewApplyDecisionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AccessReviewApplyDecisionsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AccountRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go new file mode 100644 index 00000000..a4379831 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder is request builder for ActiveDirectoryWindowsAutopilotDeploymentProfile +type ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ActiveDirectoryWindowsAutopilotDeploymentProfileRequest +func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) Request() *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest { + return &ActiveDirectoryWindowsAutopilotDeploymentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ActiveDirectoryWindowsAutopilotDeploymentProfileRequest is request for ActiveDirectoryWindowsAutopilotDeploymentProfile +type ActiveDirectoryWindowsAutopilotDeploymentProfileRequest struct{ BaseRequest } + +// Get performs GET request for ActiveDirectoryWindowsAutopilotDeploymentProfile +func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *ActiveDirectoryWindowsAutopilotDeploymentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ActiveDirectoryWindowsAutopilotDeploymentProfile +func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *ActiveDirectoryWindowsAutopilotDeploymentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ActiveDirectoryWindowsAutopilotDeploymentProfile +func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go new file mode 100644 index 00000000..82a7a4b2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ActivityHistoryItemRequestBuilder is request builder for ActivityHistoryItem +type ActivityHistoryItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ActivityHistoryItemRequest +func (b *ActivityHistoryItemRequestBuilder) Request() *ActivityHistoryItemRequest { + return &ActivityHistoryItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ActivityHistoryItemRequest is request for ActivityHistoryItem +type ActivityHistoryItemRequest struct{ BaseRequest } + +// Get performs GET request for ActivityHistoryItem +func (r *ActivityHistoryItemRequest) Get(ctx context.Context) (resObj *ActivityHistoryItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ActivityHistoryItem +func (r *ActivityHistoryItemRequest) Update(ctx context.Context, reqObj *ActivityHistoryItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ActivityHistoryItem +func (r *ActivityHistoryItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ActivityStatisticsRequestBuilder is request builder for ActivityStatistics +type ActivityStatisticsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ActivityStatisticsRequest +func (b *ActivityStatisticsRequestBuilder) Request() *ActivityStatisticsRequest { + return &ActivityStatisticsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ActivityStatisticsRequest is request for ActivityStatistics +type ActivityStatisticsRequest struct{ BaseRequest } + +// Get performs GET request for ActivityStatistics +func (r *ActivityStatisticsRequest) Get(ctx context.Context) (resObj *ActivityStatistics, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ActivityStatistics +func (r *ActivityStatisticsRequest) Update(ctx context.Context, reqObj *ActivityStatistics) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ActivityStatistics +func (r *ActivityStatisticsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go new file mode 100644 index 00000000..1cacdc94 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AdministrativeUnitRequestBuilder is request builder for AdministrativeUnit +type AdministrativeUnitRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AdministrativeUnitRequest +func (b *AdministrativeUnitRequestBuilder) Request() *AdministrativeUnitRequest { + return &AdministrativeUnitRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AdministrativeUnitRequest is request for AdministrativeUnit +type AdministrativeUnitRequest struct{ BaseRequest } + +// Get performs GET request for AdministrativeUnit +func (r *AdministrativeUnitRequest) Get(ctx context.Context) (resObj *AdministrativeUnit, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AdministrativeUnit +func (r *AdministrativeUnitRequest) Update(ctx context.Context, reqObj *AdministrativeUnit) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AdministrativeUnit +func (r *AdministrativeUnitRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go new file mode 100644 index 00000000..ffa9fd12 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState +type AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AdvancedThreatProtectionOnboardingDeviceSettingStateRequest +func (b *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder) Request() *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest { + return &AdvancedThreatProtectionOnboardingDeviceSettingStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AdvancedThreatProtectionOnboardingDeviceSettingStateRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState +type AdvancedThreatProtectionOnboardingDeviceSettingStateRequest struct{ BaseRequest } + +// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState +func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AdvancedThreatProtectionOnboardingDeviceSettingState +func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AdvancedThreatProtectionOnboardingDeviceSettingState +func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder is request builder for AdvancedThreatProtectionOnboardingStateSummary +type AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AdvancedThreatProtectionOnboardingStateSummaryRequest +func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryRequest { + return &AdvancedThreatProtectionOnboardingStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AdvancedThreatProtectionOnboardingStateSummaryRequest is request for AdvancedThreatProtectionOnboardingStateSummary +type AdvancedThreatProtectionOnboardingStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for AdvancedThreatProtectionOnboardingStateSummary +func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AdvancedThreatProtectionOnboardingStateSummary +func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AdvancedThreatProtectionOnboardingStateSummary +func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go new file mode 100644 index 00000000..46f9fc8c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AgedAccountsPayableRequestBuilder is request builder for AgedAccountsPayable +type AgedAccountsPayableRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AgedAccountsPayableRequest +func (b *AgedAccountsPayableRequestBuilder) Request() *AgedAccountsPayableRequest { + return &AgedAccountsPayableRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AgedAccountsPayableRequest is request for AgedAccountsPayable +type AgedAccountsPayableRequest struct{ BaseRequest } + +// Get performs GET request for AgedAccountsPayable +func (r *AgedAccountsPayableRequest) Get(ctx context.Context) (resObj *AgedAccountsPayable, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AgedAccountsPayable +func (r *AgedAccountsPayableRequest) Update(ctx context.Context, reqObj *AgedAccountsPayable) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AgedAccountsPayable +func (r *AgedAccountsPayableRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AgedAccountsReceivableRequestBuilder is request builder for AgedAccountsReceivable +type AgedAccountsReceivableRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AgedAccountsReceivableRequest +func (b *AgedAccountsReceivableRequestBuilder) Request() *AgedAccountsReceivableRequest { + return &AgedAccountsReceivableRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AgedAccountsReceivableRequest is request for AgedAccountsReceivable +type AgedAccountsReceivableRequest struct{ BaseRequest } + +// Get performs GET request for AgedAccountsReceivable +func (r *AgedAccountsReceivableRequest) Get(ctx context.Context) (resObj *AgedAccountsReceivable, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AgedAccountsReceivable +func (r *AgedAccountsReceivableRequest) Update(ctx context.Context, reqObj *AgedAccountsReceivable) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AgedAccountsReceivable +func (r *AgedAccountsReceivableRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go new file mode 100644 index 00000000..647a2de5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AgreementRequestBuilder is request builder for Agreement +type AgreementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AgreementRequest +func (b *AgreementRequestBuilder) Request() *AgreementRequest { + return &AgreementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AgreementRequest is request for Agreement +type AgreementRequest struct{ BaseRequest } + +// Get performs GET request for Agreement +func (r *AgreementRequest) Get(ctx context.Context) (resObj *Agreement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Agreement +func (r *AgreementRequest) Update(ctx context.Context, reqObj *Agreement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Agreement +func (r *AgreementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AgreementAcceptanceRequestBuilder is request builder for AgreementAcceptance +type AgreementAcceptanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AgreementAcceptanceRequest +func (b *AgreementAcceptanceRequestBuilder) Request() *AgreementAcceptanceRequest { + return &AgreementAcceptanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AgreementAcceptanceRequest is request for AgreementAcceptance +type AgreementAcceptanceRequest struct{ BaseRequest } + +// Get performs GET request for AgreementAcceptance +func (r *AgreementAcceptanceRequest) Get(ctx context.Context) (resObj *AgreementAcceptance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AgreementAcceptance +func (r *AgreementAcceptanceRequest) Update(ctx context.Context, reqObj *AgreementAcceptance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AgreementAcceptance +func (r *AgreementAcceptanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AgreementFileRequestBuilder is request builder for AgreementFile +type AgreementFileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AgreementFileRequest +func (b *AgreementFileRequestBuilder) Request() *AgreementFileRequest { + return &AgreementFileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AgreementFileRequest is request for AgreementFile +type AgreementFileRequest struct{ BaseRequest } + +// Get performs GET request for AgreementFile +func (r *AgreementFileRequest) Get(ctx context.Context) (resObj *AgreementFile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AgreementFile +func (r *AgreementFileRequest) Update(ctx context.Context, reqObj *AgreementFile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AgreementFile +func (r *AgreementFileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go new file mode 100644 index 00000000..f43985de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go @@ -0,0 +1,131 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AlertRequestBuilder is request builder for Alert +type AlertRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AlertRequest +func (b *AlertRequestBuilder) Request() *AlertRequest { + return &AlertRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AlertRequest is request for Alert +type AlertRequest struct{ BaseRequest } + +// Get performs GET request for Alert +func (r *AlertRequest) Get(ctx context.Context) (resObj *Alert, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Alert +func (r *AlertRequest) Update(ctx context.Context, reqObj *Alert) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Alert +func (r *AlertRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AlertCollectionUpdateAlertsRequestBuilder struct{ BaseRequestBuilder } + +// UpdateAlerts action undocumented +func (b *SecurityAlertsCollectionRequestBuilder) UpdateAlerts(reqObj *AlertCollectionUpdateAlertsRequestParameter) *AlertCollectionUpdateAlertsRequestBuilder { + bb := &AlertCollectionUpdateAlertsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateAlerts" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AlertCollectionUpdateAlertsRequest struct{ BaseRequest } + +// +func (b *AlertCollectionUpdateAlertsRequestBuilder) Request() *AlertCollectionUpdateAlertsRequest { + return &AlertCollectionUpdateAlertsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AlertCollectionUpdateAlertsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Alert, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Alert + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Alert + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *AlertCollectionUpdateAlertsRequest) PostN(ctx context.Context, n int) ([]Alert, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *AlertCollectionUpdateAlertsRequest) Post(ctx context.Context) ([]Alert, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go new file mode 100644 index 00000000..1323cbd0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go @@ -0,0 +1,1646 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// AndroidCertificateProfileBaseRequestBuilder is request builder for AndroidCertificateProfileBase +type AndroidCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidCertificateProfileBaseRequest +func (b *AndroidCertificateProfileBaseRequestBuilder) Request() *AndroidCertificateProfileBaseRequest { + return &AndroidCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidCertificateProfileBaseRequest is request for AndroidCertificateProfileBase +type AndroidCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidCertificateProfileBase +func (r *AndroidCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidCertificateProfileBase +func (r *AndroidCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidCertificateProfileBase +func (r *AndroidCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerCertificateProfileBaseRequestBuilder is request builder for AndroidDeviceOwnerCertificateProfileBase +type AndroidDeviceOwnerCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerCertificateProfileBaseRequest +func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) Request() *AndroidDeviceOwnerCertificateProfileBaseRequest { + return &AndroidDeviceOwnerCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerCertificateProfileBaseRequest is request for AndroidDeviceOwnerCertificateProfileBase +type AndroidDeviceOwnerCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerCertificateProfileBase +func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerCertificateProfileBase +func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerCertificateProfileBase +func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerEnrollmentProfileRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile +type AndroidDeviceOwnerEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerEnrollmentProfileRequest +func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRequest { + return &AndroidDeviceOwnerEnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerEnrollmentProfileRequest is request for AndroidDeviceOwnerEnrollmentProfile +type AndroidDeviceOwnerEnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile +func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerEnrollmentProfile +func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerEnrollmentProfile +func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidDeviceOwnerEnterpriseWiFiConfiguration +type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest +func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest { + return &AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest is request for AndroidDeviceOwnerEnterpriseWiFiConfiguration +type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerEnterpriseWiFiConfiguration +func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerEnterpriseWiFiConfiguration +func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerEnterpriseWiFiConfiguration +func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerScepCertificateProfileRequestBuilder is request builder for AndroidDeviceOwnerScepCertificateProfile +type AndroidDeviceOwnerScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerScepCertificateProfileRequest +func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileRequest { + return &AndroidDeviceOwnerScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerScepCertificateProfileRequest is request for AndroidDeviceOwnerScepCertificateProfile +type AndroidDeviceOwnerScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerScepCertificateProfile +func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerScepCertificateProfile +func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerScepCertificateProfile +func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerTrustedRootCertificateRequestBuilder is request builder for AndroidDeviceOwnerTrustedRootCertificate +type AndroidDeviceOwnerTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerTrustedRootCertificateRequest +func (b *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder) Request() *AndroidDeviceOwnerTrustedRootCertificateRequest { + return &AndroidDeviceOwnerTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerTrustedRootCertificateRequest is request for AndroidDeviceOwnerTrustedRootCertificate +type AndroidDeviceOwnerTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerTrustedRootCertificate +func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerTrustedRootCertificate +func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerTrustedRootCertificate +func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidDeviceOwnerVPNConfigurationRequestBuilder is request builder for AndroidDeviceOwnerVPNConfiguration +type AndroidDeviceOwnerVPNConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidDeviceOwnerVPNConfigurationRequest +func (b *AndroidDeviceOwnerVPNConfigurationRequestBuilder) Request() *AndroidDeviceOwnerVPNConfigurationRequest { + return &AndroidDeviceOwnerVPNConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidDeviceOwnerVPNConfigurationRequest is request for AndroidDeviceOwnerVPNConfiguration +type AndroidDeviceOwnerVPNConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidDeviceOwnerVPNConfiguration +func (r *AndroidDeviceOwnerVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerVPNConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidDeviceOwnerVPNConfiguration +func (r *AndroidDeviceOwnerVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerVPNConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidDeviceOwnerVPNConfiguration +func (r *AndroidDeviceOwnerVPNConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidEasEmailProfileConfigurationRequestBuilder is request builder for AndroidEasEmailProfileConfiguration +type AndroidEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidEasEmailProfileConfigurationRequest +func (b *AndroidEasEmailProfileConfigurationRequestBuilder) Request() *AndroidEasEmailProfileConfigurationRequest { + return &AndroidEasEmailProfileConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidEasEmailProfileConfigurationRequest is request for AndroidEasEmailProfileConfiguration +type AndroidEasEmailProfileConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidEasEmailProfileConfiguration +func (r *AndroidEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEasEmailProfileConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidEasEmailProfileConfiguration +func (r *AndroidEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEasEmailProfileConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidEasEmailProfileConfiguration +func (r *AndroidEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidEnterpriseWiFiConfiguration +type AndroidEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidEnterpriseWiFiConfigurationRequest +func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidEnterpriseWiFiConfigurationRequest { + return &AndroidEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidEnterpriseWiFiConfigurationRequest is request for AndroidEnterpriseWiFiConfiguration +type AndroidEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidEnterpriseWiFiConfiguration +func (r *AndroidEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidEnterpriseWiFiConfiguration +func (r *AndroidEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidEnterpriseWiFiConfiguration +func (r *AndroidEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkAppConfigurationSchemaRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema +type AndroidForWorkAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkAppConfigurationSchemaRequest +func (b *AndroidForWorkAppConfigurationSchemaRequestBuilder) Request() *AndroidForWorkAppConfigurationSchemaRequest { + return &AndroidForWorkAppConfigurationSchemaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkAppConfigurationSchemaRequest is request for AndroidForWorkAppConfigurationSchema +type AndroidForWorkAppConfigurationSchemaRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkAppConfigurationSchema +func (r *AndroidForWorkAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidForWorkAppConfigurationSchema, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkAppConfigurationSchema +func (r *AndroidForWorkAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkAppConfigurationSchema +func (r *AndroidForWorkAppConfigurationSchemaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkCertificateProfileBaseRequestBuilder is request builder for AndroidForWorkCertificateProfileBase +type AndroidForWorkCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkCertificateProfileBaseRequest +func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) Request() *AndroidForWorkCertificateProfileBaseRequest { + return &AndroidForWorkCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkCertificateProfileBaseRequest is request for AndroidForWorkCertificateProfileBase +type AndroidForWorkCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkCertificateProfileBase +func (r *AndroidForWorkCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkCertificateProfileBase +func (r *AndroidForWorkCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkCertificateProfileBase +func (r *AndroidForWorkCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkEasEmailProfileBaseRequestBuilder is request builder for AndroidForWorkEasEmailProfileBase +type AndroidForWorkEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkEasEmailProfileBaseRequest +func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) Request() *AndroidForWorkEasEmailProfileBaseRequest { + return &AndroidForWorkEasEmailProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkEasEmailProfileBaseRequest is request for AndroidForWorkEasEmailProfileBase +type AndroidForWorkEasEmailProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkEasEmailProfileBase +func (r *AndroidForWorkEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkEasEmailProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkEasEmailProfileBase +func (r *AndroidForWorkEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkEasEmailProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkEasEmailProfileBase +func (r *AndroidForWorkEasEmailProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkEnrollmentProfileRequestBuilder is request builder for AndroidForWorkEnrollmentProfile +type AndroidForWorkEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkEnrollmentProfileRequest +func (b *AndroidForWorkEnrollmentProfileRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRequest { + return &AndroidForWorkEnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkEnrollmentProfileRequest is request for AndroidForWorkEnrollmentProfile +type AndroidForWorkEnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkEnrollmentProfile +func (r *AndroidForWorkEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkEnrollmentProfile +func (r *AndroidForWorkEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkEnrollmentProfile +func (r *AndroidForWorkEnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidForWorkEnterpriseWiFiConfiguration +type AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkEnterpriseWiFiConfigurationRequest +func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidForWorkEnterpriseWiFiConfigurationRequest { + return &AndroidForWorkEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkEnterpriseWiFiConfigurationRequest is request for AndroidForWorkEnterpriseWiFiConfiguration +type AndroidForWorkEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkEnterpriseWiFiConfiguration +func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkEnterpriseWiFiConfiguration +func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkEnterpriseWiFiConfiguration +func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkImportedPFXCertificateProfileRequestBuilder is request builder for AndroidForWorkImportedPFXCertificateProfile +type AndroidForWorkImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkImportedPFXCertificateProfileRequest +func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileRequest { + return &AndroidForWorkImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkImportedPFXCertificateProfileRequest is request for AndroidForWorkImportedPFXCertificateProfile +type AndroidForWorkImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkImportedPFXCertificateProfile +func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkImportedPFXCertificateProfile +func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkImportedPFXCertificateProfile +func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkPkcsCertificateProfileRequestBuilder is request builder for AndroidForWorkPkcsCertificateProfile +type AndroidForWorkPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkPkcsCertificateProfileRequest +func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileRequest { + return &AndroidForWorkPkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkPkcsCertificateProfileRequest is request for AndroidForWorkPkcsCertificateProfile +type AndroidForWorkPkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkPkcsCertificateProfile +func (r *AndroidForWorkPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkPkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkPkcsCertificateProfile +func (r *AndroidForWorkPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkPkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkPkcsCertificateProfile +func (r *AndroidForWorkPkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkScepCertificateProfileRequestBuilder is request builder for AndroidForWorkScepCertificateProfile +type AndroidForWorkScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkScepCertificateProfileRequest +func (b *AndroidForWorkScepCertificateProfileRequestBuilder) Request() *AndroidForWorkScepCertificateProfileRequest { + return &AndroidForWorkScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkScepCertificateProfileRequest is request for AndroidForWorkScepCertificateProfile +type AndroidForWorkScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkScepCertificateProfile +func (r *AndroidForWorkScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkScepCertificateProfile +func (r *AndroidForWorkScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkScepCertificateProfile +func (r *AndroidForWorkScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkSettingsRequestBuilder is request builder for AndroidForWorkSettings +type AndroidForWorkSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkSettingsRequest +func (b *AndroidForWorkSettingsRequestBuilder) Request() *AndroidForWorkSettingsRequest { + return &AndroidForWorkSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkSettingsRequest is request for AndroidForWorkSettings +type AndroidForWorkSettingsRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkSettings +func (r *AndroidForWorkSettingsRequest) Get(ctx context.Context) (resObj *AndroidForWorkSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkSettings +func (r *AndroidForWorkSettingsRequest) Update(ctx context.Context, reqObj *AndroidForWorkSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkSettings +func (r *AndroidForWorkSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkTrustedRootCertificateRequestBuilder is request builder for AndroidForWorkTrustedRootCertificate +type AndroidForWorkTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkTrustedRootCertificateRequest +func (b *AndroidForWorkTrustedRootCertificateRequestBuilder) Request() *AndroidForWorkTrustedRootCertificateRequest { + return &AndroidForWorkTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkTrustedRootCertificateRequest is request for AndroidForWorkTrustedRootCertificate +type AndroidForWorkTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkTrustedRootCertificate +func (r *AndroidForWorkTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidForWorkTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkTrustedRootCertificate +func (r *AndroidForWorkTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidForWorkTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkTrustedRootCertificate +func (r *AndroidForWorkTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidForWorkVPNConfigurationRequestBuilder is request builder for AndroidForWorkVPNConfiguration +type AndroidForWorkVPNConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidForWorkVPNConfigurationRequest +func (b *AndroidForWorkVPNConfigurationRequestBuilder) Request() *AndroidForWorkVPNConfigurationRequest { + return &AndroidForWorkVPNConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidForWorkVPNConfigurationRequest is request for AndroidForWorkVPNConfiguration +type AndroidForWorkVPNConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidForWorkVPNConfiguration +func (r *AndroidForWorkVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkVPNConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidForWorkVPNConfiguration +func (r *AndroidForWorkVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkVPNConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidForWorkVPNConfiguration +func (r *AndroidForWorkVPNConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidImportedPFXCertificateProfileRequestBuilder is request builder for AndroidImportedPFXCertificateProfile +type AndroidImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidImportedPFXCertificateProfileRequest +func (b *AndroidImportedPFXCertificateProfileRequestBuilder) Request() *AndroidImportedPFXCertificateProfileRequest { + return &AndroidImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidImportedPFXCertificateProfileRequest is request for AndroidImportedPFXCertificateProfile +type AndroidImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidImportedPFXCertificateProfile +func (r *AndroidImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidImportedPFXCertificateProfile +func (r *AndroidImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidImportedPFXCertificateProfile +func (r *AndroidImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidManagedAppProtectionRequestBuilder is request builder for AndroidManagedAppProtection +type AndroidManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidManagedAppProtectionRequest +func (b *AndroidManagedAppProtectionRequestBuilder) Request() *AndroidManagedAppProtectionRequest { + return &AndroidManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidManagedAppProtectionRequest is request for AndroidManagedAppProtection +type AndroidManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for AndroidManagedAppProtection +func (r *AndroidManagedAppProtectionRequest) Get(ctx context.Context) (resObj *AndroidManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidManagedAppProtection +func (r *AndroidManagedAppProtectionRequest) Update(ctx context.Context, reqObj *AndroidManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidManagedAppProtection +func (r *AndroidManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder is request builder for AndroidManagedStoreAccountEnterpriseSettings +type AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidManagedStoreAccountEnterpriseSettingsRequest +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidManagedStoreAccountEnterpriseSettingsRequest is request for AndroidManagedStoreAccountEnterpriseSettings +type AndroidManagedStoreAccountEnterpriseSettingsRequest struct{ BaseRequest } + +// Get performs GET request for AndroidManagedStoreAccountEnterpriseSettings +func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAccountEnterpriseSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidManagedStoreAccountEnterpriseSettings +func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAccountEnterpriseSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidManagedStoreAccountEnterpriseSettings +func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidManagedStoreAppConfigurationSchemaRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema +type AndroidManagedStoreAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidManagedStoreAppConfigurationSchemaRequest +func (b *AndroidManagedStoreAppConfigurationSchemaRequestBuilder) Request() *AndroidManagedStoreAppConfigurationSchemaRequest { + return &AndroidManagedStoreAppConfigurationSchemaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidManagedStoreAppConfigurationSchemaRequest is request for AndroidManagedStoreAppConfigurationSchema +type AndroidManagedStoreAppConfigurationSchemaRequest struct{ BaseRequest } + +// Get performs GET request for AndroidManagedStoreAppConfigurationSchema +func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidManagedStoreAppConfigurationSchema +func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidManagedStoreAppConfigurationSchema +func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidPkcsCertificateProfileRequestBuilder is request builder for AndroidPkcsCertificateProfile +type AndroidPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidPkcsCertificateProfileRequest +func (b *AndroidPkcsCertificateProfileRequestBuilder) Request() *AndroidPkcsCertificateProfileRequest { + return &AndroidPkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidPkcsCertificateProfileRequest is request for AndroidPkcsCertificateProfile +type AndroidPkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidPkcsCertificateProfile +func (r *AndroidPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidPkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidPkcsCertificateProfile +func (r *AndroidPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidPkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidPkcsCertificateProfile +func (r *AndroidPkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidScepCertificateProfileRequestBuilder is request builder for AndroidScepCertificateProfile +type AndroidScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidScepCertificateProfileRequest +func (b *AndroidScepCertificateProfileRequestBuilder) Request() *AndroidScepCertificateProfileRequest { + return &AndroidScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidScepCertificateProfileRequest is request for AndroidScepCertificateProfile +type AndroidScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidScepCertificateProfile +func (r *AndroidScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidScepCertificateProfile +func (r *AndroidScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidScepCertificateProfile +func (r *AndroidScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidTrustedRootCertificateRequestBuilder is request builder for AndroidTrustedRootCertificate +type AndroidTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidTrustedRootCertificateRequest +func (b *AndroidTrustedRootCertificateRequestBuilder) Request() *AndroidTrustedRootCertificateRequest { + return &AndroidTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidTrustedRootCertificateRequest is request for AndroidTrustedRootCertificate +type AndroidTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for AndroidTrustedRootCertificate +func (r *AndroidTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidTrustedRootCertificate +func (r *AndroidTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidTrustedRootCertificate +func (r *AndroidTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidVPNConfigurationRequestBuilder is request builder for AndroidVPNConfiguration +type AndroidVPNConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidVPNConfigurationRequest +func (b *AndroidVPNConfigurationRequestBuilder) Request() *AndroidVPNConfigurationRequest { + return &AndroidVPNConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidVPNConfigurationRequest is request for AndroidVPNConfiguration +type AndroidVPNConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidVPNConfiguration +func (r *AndroidVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidVPNConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidVPNConfiguration +func (r *AndroidVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidVPNConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidVPNConfiguration +func (r *AndroidVPNConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileCertificateProfileBaseRequestBuilder is request builder for AndroidWorkProfileCertificateProfileBase +type AndroidWorkProfileCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileCertificateProfileBaseRequest +func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) Request() *AndroidWorkProfileCertificateProfileBaseRequest { + return &AndroidWorkProfileCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileCertificateProfileBaseRequest is request for AndroidWorkProfileCertificateProfileBase +type AndroidWorkProfileCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileCertificateProfileBase +func (r *AndroidWorkProfileCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileCertificateProfileBase +func (r *AndroidWorkProfileCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileCertificateProfileBase +func (r *AndroidWorkProfileCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileEasEmailProfileBaseRequestBuilder is request builder for AndroidWorkProfileEasEmailProfileBase +type AndroidWorkProfileEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileEasEmailProfileBaseRequest +func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) Request() *AndroidWorkProfileEasEmailProfileBaseRequest { + return &AndroidWorkProfileEasEmailProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileEasEmailProfileBaseRequest is request for AndroidWorkProfileEasEmailProfileBase +type AndroidWorkProfileEasEmailProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileEasEmailProfileBase +func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEasEmailProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileEasEmailProfileBase +func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEasEmailProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileEasEmailProfileBase +func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidWorkProfileEnterpriseWiFiConfiguration +type AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileEnterpriseWiFiConfigurationRequest +func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidWorkProfileEnterpriseWiFiConfigurationRequest { + return &AndroidWorkProfileEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileEnterpriseWiFiConfigurationRequest is request for AndroidWorkProfileEnterpriseWiFiConfiguration +type AndroidWorkProfileEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileEnterpriseWiFiConfiguration +func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileEnterpriseWiFiConfiguration +func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileEnterpriseWiFiConfiguration +func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfilePkcsCertificateProfileRequestBuilder is request builder for AndroidWorkProfilePkcsCertificateProfile +type AndroidWorkProfilePkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfilePkcsCertificateProfileRequest +func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileRequest { + return &AndroidWorkProfilePkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfilePkcsCertificateProfileRequest is request for AndroidWorkProfilePkcsCertificateProfile +type AndroidWorkProfilePkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfilePkcsCertificateProfile +func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfilePkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfilePkcsCertificateProfile +func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfilePkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfilePkcsCertificateProfile +func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileScepCertificateProfileRequestBuilder is request builder for AndroidWorkProfileScepCertificateProfile +type AndroidWorkProfileScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileScepCertificateProfileRequest +func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileRequest { + return &AndroidWorkProfileScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileScepCertificateProfileRequest is request for AndroidWorkProfileScepCertificateProfile +type AndroidWorkProfileScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileScepCertificateProfile +func (r *AndroidWorkProfileScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileScepCertificateProfile +func (r *AndroidWorkProfileScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileScepCertificateProfile +func (r *AndroidWorkProfileScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileTrustedRootCertificateRequestBuilder is request builder for AndroidWorkProfileTrustedRootCertificate +type AndroidWorkProfileTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileTrustedRootCertificateRequest +func (b *AndroidWorkProfileTrustedRootCertificateRequestBuilder) Request() *AndroidWorkProfileTrustedRootCertificateRequest { + return &AndroidWorkProfileTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileTrustedRootCertificateRequest is request for AndroidWorkProfileTrustedRootCertificate +type AndroidWorkProfileTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileTrustedRootCertificate +func (r *AndroidWorkProfileTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileTrustedRootCertificate +func (r *AndroidWorkProfileTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileTrustedRootCertificate +func (r *AndroidWorkProfileTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AndroidWorkProfileVPNConfigurationRequestBuilder is request builder for AndroidWorkProfileVPNConfiguration +type AndroidWorkProfileVPNConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AndroidWorkProfileVPNConfigurationRequest +func (b *AndroidWorkProfileVPNConfigurationRequestBuilder) Request() *AndroidWorkProfileVPNConfigurationRequest { + return &AndroidWorkProfileVPNConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AndroidWorkProfileVPNConfigurationRequest is request for AndroidWorkProfileVPNConfiguration +type AndroidWorkProfileVPNConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for AndroidWorkProfileVPNConfiguration +func (r *AndroidWorkProfileVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileVPNConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AndroidWorkProfileVPNConfiguration +func (r *AndroidWorkProfileVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileVPNConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AndroidWorkProfileVPNConfiguration +func (r *AndroidWorkProfileVPNConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder { + bb := &AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest { + return &AndroidManagedAppProtectionCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder } + +// RevokeToken action undocumented +func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder { + bb := &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest struct{ BaseRequest } + +// +func (b *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest { + return &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder } + +// CreateToken action undocumented +func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder { + bb := &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest struct{ BaseRequest } + +// +func (b *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest { + return &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder } + +// RevokeToken action undocumented +func (b *AndroidForWorkEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter) *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder { + bb := &AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkEnrollmentProfileRevokeTokenRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRevokeTokenRequest { + return &AndroidForWorkEnrollmentProfileRevokeTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder } + +// CreateToken action undocumented +func (b *AndroidForWorkEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidForWorkEnrollmentProfileCreateTokenRequestParameter) *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder { + bb := &AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkEnrollmentProfileCreateTokenRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileCreateTokenRequest { + return &AndroidForWorkEnrollmentProfileCreateTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidForWorkSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder } + +// RequestSignupURL action undocumented +func (b *AndroidForWorkSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidForWorkSettingsRequestSignupURLRequestParameter) *AndroidForWorkSettingsRequestSignupURLRequestBuilder { + bb := &AndroidForWorkSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/requestSignupUrl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkSettingsRequestSignupURLRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkSettingsRequestSignupURLRequestBuilder) Request() *AndroidForWorkSettingsRequestSignupURLRequest { + return &AndroidForWorkSettingsRequestSignupURLRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type AndroidForWorkSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder } + +// CompleteSignup action undocumented +func (b *AndroidForWorkSettingsRequestBuilder) CompleteSignup(reqObj *AndroidForWorkSettingsCompleteSignupRequestParameter) *AndroidForWorkSettingsCompleteSignupRequestBuilder { + bb := &AndroidForWorkSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/completeSignup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkSettingsCompleteSignupRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkSettingsCompleteSignupRequestBuilder) Request() *AndroidForWorkSettingsCompleteSignupRequest { + return &AndroidForWorkSettingsCompleteSignupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkSettingsCompleteSignupRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidForWorkSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder } + +// SyncApps action undocumented +func (b *AndroidForWorkSettingsRequestBuilder) SyncApps(reqObj *AndroidForWorkSettingsSyncAppsRequestParameter) *AndroidForWorkSettingsSyncAppsRequestBuilder { + bb := &AndroidForWorkSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkSettingsSyncAppsRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkSettingsSyncAppsRequestBuilder) Request() *AndroidForWorkSettingsSyncAppsRequest { + return &AndroidForWorkSettingsSyncAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkSettingsSyncAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidForWorkSettingsUnbindRequestBuilder struct{ BaseRequestBuilder } + +// Unbind action undocumented +func (b *AndroidForWorkSettingsRequestBuilder) Unbind(reqObj *AndroidForWorkSettingsUnbindRequestParameter) *AndroidForWorkSettingsUnbindRequestBuilder { + bb := &AndroidForWorkSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unbind" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidForWorkSettingsUnbindRequest struct{ BaseRequest } + +// +func (b *AndroidForWorkSettingsUnbindRequestBuilder) Request() *AndroidForWorkSettingsUnbindRequest { + return &AndroidForWorkSettingsUnbindRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidForWorkSettingsUnbindRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder struct{ BaseRequestBuilder } + +// ApproveApps action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) ApproveApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/approveApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder } + +// RequestSignupURL action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/requestSignupUrl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder } + +// CompleteSignup action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CompleteSignup(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/completeSignup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder } + +// SyncApps action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SyncApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder struct{ BaseRequestBuilder } + +// Unbind action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Unbind(reqObj *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unbind" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder struct{ BaseRequestBuilder } + +// CreateGooglePlayWebToken action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CreateGooglePlayWebToken(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createGooglePlayWebToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest) Post(ctx context.Context) (resObj *string, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder struct{ BaseRequestBuilder } + +// SetAndroidDeviceOwnerFullyManagedEnrollmentState action undocumented +func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SetAndroidDeviceOwnerFullyManagedEnrollmentState(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder { + bb := &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setAndroidDeviceOwnerFullyManagedEnrollmentState" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest struct{ BaseRequest } + +// +func (b *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest { + return &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AnonymousIPRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go new file mode 100644 index 00000000..c63b0637 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go @@ -0,0 +1,230 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AppCatalogsRequestBuilder is request builder for AppCatalogs +type AppCatalogsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppCatalogsRequest +func (b *AppCatalogsRequestBuilder) Request() *AppCatalogsRequest { + return &AppCatalogsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppCatalogsRequest is request for AppCatalogs +type AppCatalogsRequest struct{ BaseRequest } + +// Get performs GET request for AppCatalogs +func (r *AppCatalogsRequest) Get(ctx context.Context) (resObj *AppCatalogs, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppCatalogs +func (r *AppCatalogsRequest) Update(ctx context.Context, reqObj *AppCatalogs) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppCatalogs +func (r *AppCatalogsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppLogCollectionRequestObjectRequestBuilder is request builder for AppLogCollectionRequestObject +type AppLogCollectionRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppLogCollectionRequestObjectRequest +func (b *AppLogCollectionRequestObjectRequestBuilder) Request() *AppLogCollectionRequestObjectRequest { + return &AppLogCollectionRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppLogCollectionRequestObjectRequest is request for AppLogCollectionRequestObject +type AppLogCollectionRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for AppLogCollectionRequestObject +func (r *AppLogCollectionRequestObjectRequest) Get(ctx context.Context) (resObj *AppLogCollectionRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppLogCollectionRequestObject +func (r *AppLogCollectionRequestObjectRequest) Update(ctx context.Context, reqObj *AppLogCollectionRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppLogCollectionRequestObject +func (r *AppLogCollectionRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppRoleAssignmentRequestBuilder is request builder for AppRoleAssignment +type AppRoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppRoleAssignmentRequest +func (b *AppRoleAssignmentRequestBuilder) Request() *AppRoleAssignmentRequest { + return &AppRoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppRoleAssignmentRequest is request for AppRoleAssignment +type AppRoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for AppRoleAssignment +func (r *AppRoleAssignmentRequest) Get(ctx context.Context) (resObj *AppRoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppRoleAssignment +func (r *AppRoleAssignmentRequest) Update(ctx context.Context, reqObj *AppRoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppRoleAssignment +func (r *AppRoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppVulnerabilityManagedDeviceRequestBuilder is request builder for AppVulnerabilityManagedDevice +type AppVulnerabilityManagedDeviceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppVulnerabilityManagedDeviceRequest +func (b *AppVulnerabilityManagedDeviceRequestBuilder) Request() *AppVulnerabilityManagedDeviceRequest { + return &AppVulnerabilityManagedDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppVulnerabilityManagedDeviceRequest is request for AppVulnerabilityManagedDevice +type AppVulnerabilityManagedDeviceRequest struct{ BaseRequest } + +// Get performs GET request for AppVulnerabilityManagedDevice +func (r *AppVulnerabilityManagedDeviceRequest) Get(ctx context.Context) (resObj *AppVulnerabilityManagedDevice, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppVulnerabilityManagedDevice +func (r *AppVulnerabilityManagedDeviceRequest) Update(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppVulnerabilityManagedDevice +func (r *AppVulnerabilityManagedDeviceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppVulnerabilityMobileAppRequestBuilder is request builder for AppVulnerabilityMobileApp +type AppVulnerabilityMobileAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppVulnerabilityMobileAppRequest +func (b *AppVulnerabilityMobileAppRequestBuilder) Request() *AppVulnerabilityMobileAppRequest { + return &AppVulnerabilityMobileAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppVulnerabilityMobileAppRequest is request for AppVulnerabilityMobileApp +type AppVulnerabilityMobileAppRequest struct{ BaseRequest } + +// Get performs GET request for AppVulnerabilityMobileApp +func (r *AppVulnerabilityMobileAppRequest) Get(ctx context.Context) (resObj *AppVulnerabilityMobileApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppVulnerabilityMobileApp +func (r *AppVulnerabilityMobileAppRequest) Update(ctx context.Context, reqObj *AppVulnerabilityMobileApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppVulnerabilityMobileApp +func (r *AppVulnerabilityMobileAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppVulnerabilityTaskRequestBuilder is request builder for AppVulnerabilityTask +type AppVulnerabilityTaskRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppVulnerabilityTaskRequest +func (b *AppVulnerabilityTaskRequestBuilder) Request() *AppVulnerabilityTaskRequest { + return &AppVulnerabilityTaskRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppVulnerabilityTaskRequest is request for AppVulnerabilityTask +type AppVulnerabilityTaskRequest struct{ BaseRequest } + +// Get performs GET request for AppVulnerabilityTask +func (r *AppVulnerabilityTaskRequest) Get(ctx context.Context) (resObj *AppVulnerabilityTask, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppVulnerabilityTask +func (r *AppVulnerabilityTaskRequest) Update(ctx context.Context, reqObj *AppVulnerabilityTask) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppVulnerabilityTask +func (r *AppVulnerabilityTaskRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder struct{ BaseRequestBuilder } + +// CreateDownloadURL action undocumented +func (b *AppLogCollectionRequestObjectRequestBuilder) CreateDownloadURL(reqObj *AppLogCollectionRequestObjectCreateDownloadURLRequestParameter) *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder { + bb := &AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createDownloadUrl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AppLogCollectionRequestObjectCreateDownloadURLRequest struct{ BaseRequest } + +// +func (b *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder) Request() *AppLogCollectionRequestObjectCreateDownloadURLRequest { + return &AppLogCollectionRequestObjectCreateDownloadURLRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AppLogCollectionRequestObjectCreateDownloadURLRequest) Post(ctx context.Context) (resObj *AppLogCollectionDownloadDetails, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go new file mode 100644 index 00000000..0fe8789d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go @@ -0,0 +1,130 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AppleEnrollmentProfileAssignmentRequestBuilder is request builder for AppleEnrollmentProfileAssignment +type AppleEnrollmentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppleEnrollmentProfileAssignmentRequest +func (b *AppleEnrollmentProfileAssignmentRequestBuilder) Request() *AppleEnrollmentProfileAssignmentRequest { + return &AppleEnrollmentProfileAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppleEnrollmentProfileAssignmentRequest is request for AppleEnrollmentProfileAssignment +type AppleEnrollmentProfileAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for AppleEnrollmentProfileAssignment +func (r *AppleEnrollmentProfileAssignmentRequest) Get(ctx context.Context) (resObj *AppleEnrollmentProfileAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppleEnrollmentProfileAssignment +func (r *AppleEnrollmentProfileAssignmentRequest) Update(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppleEnrollmentProfileAssignment +func (r *AppleEnrollmentProfileAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ApplePushNotificationCertificateRequestBuilder is request builder for ApplePushNotificationCertificate +type ApplePushNotificationCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ApplePushNotificationCertificateRequest +func (b *ApplePushNotificationCertificateRequestBuilder) Request() *ApplePushNotificationCertificateRequest { + return &ApplePushNotificationCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ApplePushNotificationCertificateRequest is request for ApplePushNotificationCertificate +type ApplePushNotificationCertificateRequest struct{ BaseRequest } + +// Get performs GET request for ApplePushNotificationCertificate +func (r *ApplePushNotificationCertificateRequest) Get(ctx context.Context) (resObj *ApplePushNotificationCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ApplePushNotificationCertificate +func (r *ApplePushNotificationCertificateRequest) Update(ctx context.Context, reqObj *ApplePushNotificationCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ApplePushNotificationCertificate +func (r *ApplePushNotificationCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AppleUserInitiatedEnrollmentProfileRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile +type AppleUserInitiatedEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AppleUserInitiatedEnrollmentProfileRequest +func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileRequest { + return &AppleUserInitiatedEnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AppleUserInitiatedEnrollmentProfileRequest is request for AppleUserInitiatedEnrollmentProfile +type AppleUserInitiatedEnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for AppleUserInitiatedEnrollmentProfile +func (r *AppleUserInitiatedEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AppleUserInitiatedEnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AppleUserInitiatedEnrollmentProfile +func (r *AppleUserInitiatedEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AppleUserInitiatedEnrollmentProfile +func (r *AppleUserInitiatedEnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder struct{ BaseRequestBuilder } + +// SetPriority action undocumented +func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) SetPriority(reqObj *AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter) *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder { + bb := &AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setPriority" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AppleUserInitiatedEnrollmentProfileSetPriorityRequest struct{ BaseRequest } + +// +func (b *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileSetPriorityRequest { + return &AppleUserInitiatedEnrollmentProfileSetPriorityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AppleUserInitiatedEnrollmentProfileSetPriorityRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go new file mode 100644 index 00000000..a726375f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go @@ -0,0 +1,237 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ApplicationRequestBuilder is request builder for Application +type ApplicationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ApplicationRequest +func (b *ApplicationRequestBuilder) Request() *ApplicationRequest { + return &ApplicationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ApplicationRequest is request for Application +type ApplicationRequest struct{ BaseRequest } + +// Get performs GET request for Application +func (r *ApplicationRequest) Get(ctx context.Context) (resObj *Application, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Application +func (r *ApplicationRequest) Update(ctx context.Context, reqObj *Application) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Application +func (r *ApplicationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ApplicationSignInDetailedSummaryRequestBuilder is request builder for ApplicationSignInDetailedSummary +type ApplicationSignInDetailedSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ApplicationSignInDetailedSummaryRequest +func (b *ApplicationSignInDetailedSummaryRequestBuilder) Request() *ApplicationSignInDetailedSummaryRequest { + return &ApplicationSignInDetailedSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ApplicationSignInDetailedSummaryRequest is request for ApplicationSignInDetailedSummary +type ApplicationSignInDetailedSummaryRequest struct{ BaseRequest } + +// Get performs GET request for ApplicationSignInDetailedSummary +func (r *ApplicationSignInDetailedSummaryRequest) Get(ctx context.Context) (resObj *ApplicationSignInDetailedSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ApplicationSignInDetailedSummary +func (r *ApplicationSignInDetailedSummaryRequest) Update(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ApplicationSignInDetailedSummary +func (r *ApplicationSignInDetailedSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ApplicationTemplateRequestBuilder is request builder for ApplicationTemplate +type ApplicationTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ApplicationTemplateRequest +func (b *ApplicationTemplateRequestBuilder) Request() *ApplicationTemplateRequest { + return &ApplicationTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ApplicationTemplateRequest is request for ApplicationTemplate +type ApplicationTemplateRequest struct{ BaseRequest } + +// Get performs GET request for ApplicationTemplate +func (r *ApplicationTemplateRequest) Get(ctx context.Context) (resObj *ApplicationTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ApplicationTemplate +func (r *ApplicationTemplateRequest) Update(ctx context.Context, reqObj *ApplicationTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ApplicationTemplate +func (r *ApplicationTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ApplicationAddKeyRequestBuilder struct{ BaseRequestBuilder } + +// AddKey action undocumented +func (b *ApplicationRequestBuilder) AddKey(reqObj *ApplicationAddKeyRequestParameter) *ApplicationAddKeyRequestBuilder { + bb := &ApplicationAddKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addKey" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ApplicationAddKeyRequest struct{ BaseRequest } + +// +func (b *ApplicationAddKeyRequestBuilder) Request() *ApplicationAddKeyRequest { + return &ApplicationAddKeyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ApplicationAddKeyRequest) Post(ctx context.Context) (resObj *KeyCredential, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ApplicationAddPasswordRequestBuilder struct{ BaseRequestBuilder } + +// AddPassword action undocumented +func (b *ApplicationRequestBuilder) AddPassword(reqObj *ApplicationAddPasswordRequestParameter) *ApplicationAddPasswordRequestBuilder { + bb := &ApplicationAddPasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addPassword" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ApplicationAddPasswordRequest struct{ BaseRequest } + +// +func (b *ApplicationAddPasswordRequestBuilder) Request() *ApplicationAddPasswordRequest { + return &ApplicationAddPasswordRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ApplicationAddPasswordRequest) Post(ctx context.Context) (resObj *PasswordCredential, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ApplicationRemoveKeyRequestBuilder struct{ BaseRequestBuilder } + +// RemoveKey action undocumented +func (b *ApplicationRequestBuilder) RemoveKey(reqObj *ApplicationRemoveKeyRequestParameter) *ApplicationRemoveKeyRequestBuilder { + bb := &ApplicationRemoveKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/removeKey" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ApplicationRemoveKeyRequest struct{ BaseRequest } + +// +func (b *ApplicationRemoveKeyRequestBuilder) Request() *ApplicationRemoveKeyRequest { + return &ApplicationRemoveKeyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ApplicationRemoveKeyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ApplicationRemovePasswordRequestBuilder struct{ BaseRequestBuilder } + +// RemovePassword action undocumented +func (b *ApplicationRequestBuilder) RemovePassword(reqObj *ApplicationRemovePasswordRequestParameter) *ApplicationRemovePasswordRequestBuilder { + bb := &ApplicationRemovePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/removePassword" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ApplicationRemovePasswordRequest struct{ BaseRequest } + +// +func (b *ApplicationRemovePasswordRequestBuilder) Request() *ApplicationRemovePasswordRequest { + return &ApplicationRemovePasswordRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ApplicationRemovePasswordRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ApplicationTemplateInstantiateRequestBuilder struct{ BaseRequestBuilder } + +// Instantiate action undocumented +func (b *ApplicationTemplateRequestBuilder) Instantiate(reqObj *ApplicationTemplateInstantiateRequestParameter) *ApplicationTemplateInstantiateRequestBuilder { + bb := &ApplicationTemplateInstantiateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/instantiate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ApplicationTemplateInstantiateRequest struct{ BaseRequest } + +// +func (b *ApplicationTemplateInstantiateRequestBuilder) Request() *ApplicationTemplateInstantiateRequest { + return &ApplicationTemplateInstantiateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ApplicationTemplateInstantiateRequest) Post(ctx context.Context) (resObj *ApplicationServicePrincipal, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go new file mode 100644 index 00000000..ad5232c0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ApprovalWorkflowProviderRequestBuilder is request builder for ApprovalWorkflowProvider +type ApprovalWorkflowProviderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ApprovalWorkflowProviderRequest +func (b *ApprovalWorkflowProviderRequestBuilder) Request() *ApprovalWorkflowProviderRequest { + return &ApprovalWorkflowProviderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ApprovalWorkflowProviderRequest is request for ApprovalWorkflowProvider +type ApprovalWorkflowProviderRequest struct{ BaseRequest } + +// Get performs GET request for ApprovalWorkflowProvider +func (r *ApprovalWorkflowProviderRequest) Get(ctx context.Context) (resObj *ApprovalWorkflowProvider, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ApprovalWorkflowProvider +func (r *ApprovalWorkflowProviderRequest) Update(ctx context.Context, reqObj *ApprovalWorkflowProvider) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ApprovalWorkflowProvider +func (r *ApprovalWorkflowProviderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go new file mode 100644 index 00000000..1a42beb0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go @@ -0,0 +1,89 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AttachmentRequestBuilder is request builder for Attachment +type AttachmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AttachmentRequest +func (b *AttachmentRequestBuilder) Request() *AttachmentRequest { + return &AttachmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AttachmentRequest is request for Attachment +type AttachmentRequest struct{ BaseRequest } + +// Get performs GET request for Attachment +func (r *AttachmentRequest) Get(ctx context.Context) (resObj *Attachment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Attachment +func (r *AttachmentRequest) Update(ctx context.Context, reqObj *Attachment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Attachment +func (r *AttachmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type AttachmentCollectionCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder } + +// CreateUploadSession action undocumented +func (b *EventAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder { + bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createUploadSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// CreateUploadSession action undocumented +func (b *MessageAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder { + bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createUploadSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// CreateUploadSession action undocumented +func (b *OutlookTaskAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder { + bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createUploadSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// CreateUploadSession action undocumented +func (b *PostAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder { + bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createUploadSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type AttachmentCollectionCreateUploadSessionRequest struct{ BaseRequest } + +// +func (b *AttachmentCollectionCreateUploadSessionRequestBuilder) Request() *AttachmentCollectionCreateUploadSessionRequest { + return &AttachmentCollectionCreateUploadSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *AttachmentCollectionCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/AudioRoutingGroupRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go new file mode 100644 index 00000000..461f4ff3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// AuditEventRequestBuilder is request builder for AuditEvent +type AuditEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AuditEventRequest +func (b *AuditEventRequestBuilder) Request() *AuditEventRequest { + return &AuditEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AuditEventRequest is request for AuditEvent +type AuditEventRequest struct{ BaseRequest } + +// Get performs GET request for AuditEvent +func (r *AuditEventRequest) Get(ctx context.Context) (resObj *AuditEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AuditEvent +func (r *AuditEventRequest) Update(ctx context.Context, reqObj *AuditEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AuditEvent +func (r *AuditEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// AuditLogRootRequestBuilder is request builder for AuditLogRoot +type AuditLogRootRequestBuilder struct{ BaseRequestBuilder } + +// Request returns AuditLogRootRequest +func (b *AuditLogRootRequestBuilder) Request() *AuditLogRootRequest { + return &AuditLogRootRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// AuditLogRootRequest is request for AuditLogRoot +type AuditLogRootRequest struct{ BaseRequest } + +// Get performs GET request for AuditLogRoot +func (r *AuditLogRootRequest) Get(ctx context.Context) (resObj *AuditLogRoot, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for AuditLogRoot +func (r *AuditLogRootRequest) Update(ctx context.Context, reqObj *AuditLogRoot) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for AuditLogRoot +func (r *AuditLogRootRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go new file mode 100644 index 00000000..a699ed93 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// BaseItemRequestBuilder is request builder for BaseItem +type BaseItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BaseItemRequest +func (b *BaseItemRequestBuilder) Request() *BaseItemRequest { + return &BaseItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BaseItemRequest is request for BaseItem +type BaseItemRequest struct{ BaseRequest } + +// Get performs GET request for BaseItem +func (r *BaseItemRequest) Get(ctx context.Context) (resObj *BaseItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BaseItem +func (r *BaseItemRequest) Update(ctx context.Context, reqObj *BaseItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BaseItem +func (r *BaseItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go new file mode 100644 index 00000000..766f8f34 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go @@ -0,0 +1,281 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// BookingAppointmentRequestBuilder is request builder for BookingAppointment +type BookingAppointmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingAppointmentRequest +func (b *BookingAppointmentRequestBuilder) Request() *BookingAppointmentRequest { + return &BookingAppointmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingAppointmentRequest is request for BookingAppointment +type BookingAppointmentRequest struct{ BaseRequest } + +// Get performs GET request for BookingAppointment +func (r *BookingAppointmentRequest) Get(ctx context.Context) (resObj *BookingAppointment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingAppointment +func (r *BookingAppointmentRequest) Update(ctx context.Context, reqObj *BookingAppointment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingAppointment +func (r *BookingAppointmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingBusinessRequestBuilder is request builder for BookingBusiness +type BookingBusinessRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingBusinessRequest +func (b *BookingBusinessRequestBuilder) Request() *BookingBusinessRequest { + return &BookingBusinessRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingBusinessRequest is request for BookingBusiness +type BookingBusinessRequest struct{ BaseRequest } + +// Get performs GET request for BookingBusiness +func (r *BookingBusinessRequest) Get(ctx context.Context) (resObj *BookingBusiness, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingBusiness +func (r *BookingBusinessRequest) Update(ctx context.Context, reqObj *BookingBusiness) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingBusiness +func (r *BookingBusinessRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingCurrencyRequestBuilder is request builder for BookingCurrency +type BookingCurrencyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingCurrencyRequest +func (b *BookingCurrencyRequestBuilder) Request() *BookingCurrencyRequest { + return &BookingCurrencyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingCurrencyRequest is request for BookingCurrency +type BookingCurrencyRequest struct{ BaseRequest } + +// Get performs GET request for BookingCurrency +func (r *BookingCurrencyRequest) Get(ctx context.Context) (resObj *BookingCurrency, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingCurrency +func (r *BookingCurrencyRequest) Update(ctx context.Context, reqObj *BookingCurrency) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingCurrency +func (r *BookingCurrencyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingCustomerRequestBuilder is request builder for BookingCustomer +type BookingCustomerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingCustomerRequest +func (b *BookingCustomerRequestBuilder) Request() *BookingCustomerRequest { + return &BookingCustomerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingCustomerRequest is request for BookingCustomer +type BookingCustomerRequest struct{ BaseRequest } + +// Get performs GET request for BookingCustomer +func (r *BookingCustomerRequest) Get(ctx context.Context) (resObj *BookingCustomer, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingCustomer +func (r *BookingCustomerRequest) Update(ctx context.Context, reqObj *BookingCustomer) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingCustomer +func (r *BookingCustomerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingServiceRequestBuilder is request builder for BookingService +type BookingServiceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingServiceRequest +func (b *BookingServiceRequestBuilder) Request() *BookingServiceRequest { + return &BookingServiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingServiceRequest is request for BookingService +type BookingServiceRequest struct{ BaseRequest } + +// Get performs GET request for BookingService +func (r *BookingServiceRequest) Get(ctx context.Context) (resObj *BookingService, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingService +func (r *BookingServiceRequest) Update(ctx context.Context, reqObj *BookingService) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingService +func (r *BookingServiceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingStaffMemberRequestBuilder is request builder for BookingStaffMember +type BookingStaffMemberRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingStaffMemberRequest +func (b *BookingStaffMemberRequestBuilder) Request() *BookingStaffMemberRequest { + return &BookingStaffMemberRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingStaffMemberRequest is request for BookingStaffMember +type BookingStaffMemberRequest struct{ BaseRequest } + +// Get performs GET request for BookingStaffMember +func (r *BookingStaffMemberRequest) Get(ctx context.Context) (resObj *BookingStaffMember, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingStaffMember +func (r *BookingStaffMemberRequest) Update(ctx context.Context, reqObj *BookingStaffMember) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingStaffMember +func (r *BookingStaffMemberRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type BookingAppointmentCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *BookingAppointmentRequestBuilder) Cancel(reqObj *BookingAppointmentCancelRequestParameter) *BookingAppointmentCancelRequestBuilder { + bb := &BookingAppointmentCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingAppointmentCancelRequest struct{ BaseRequest } + +// +func (b *BookingAppointmentCancelRequestBuilder) Request() *BookingAppointmentCancelRequest { + return &BookingAppointmentCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingAppointmentCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type BookingBusinessPublishRequestBuilder struct{ BaseRequestBuilder } + +// Publish action undocumented +func (b *BookingBusinessRequestBuilder) Publish(reqObj *BookingBusinessPublishRequestParameter) *BookingBusinessPublishRequestBuilder { + bb := &BookingBusinessPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/publish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingBusinessPublishRequest struct{ BaseRequest } + +// +func (b *BookingBusinessPublishRequestBuilder) Request() *BookingBusinessPublishRequest { + return &BookingBusinessPublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingBusinessPublishRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type BookingBusinessUnpublishRequestBuilder struct{ BaseRequestBuilder } + +// Unpublish action undocumented +func (b *BookingBusinessRequestBuilder) Unpublish(reqObj *BookingBusinessUnpublishRequestParameter) *BookingBusinessUnpublishRequestBuilder { + bb := &BookingBusinessUnpublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unpublish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingBusinessUnpublishRequest struct{ BaseRequest } + +// +func (b *BookingBusinessUnpublishRequestBuilder) Request() *BookingBusinessUnpublishRequest { + return &BookingBusinessUnpublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingBusinessUnpublishRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go new file mode 100644 index 00000000..ccf1209c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// BusinessFlowRequestBuilder is request builder for BusinessFlow +type BusinessFlowRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BusinessFlowRequest +func (b *BusinessFlowRequestBuilder) Request() *BusinessFlowRequest { + return &BusinessFlowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BusinessFlowRequest is request for BusinessFlow +type BusinessFlowRequest struct{ BaseRequest } + +// Get performs GET request for BusinessFlow +func (r *BusinessFlowRequest) Get(ctx context.Context) (resObj *BusinessFlow, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BusinessFlow +func (r *BusinessFlowRequest) Update(ctx context.Context, reqObj *BusinessFlow) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BusinessFlow +func (r *BusinessFlowRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BusinessFlowTemplateRequestBuilder is request builder for BusinessFlowTemplate +type BusinessFlowTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BusinessFlowTemplateRequest +func (b *BusinessFlowTemplateRequestBuilder) Request() *BusinessFlowTemplateRequest { + return &BusinessFlowTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BusinessFlowTemplateRequest is request for BusinessFlowTemplate +type BusinessFlowTemplateRequest struct{ BaseRequest } + +// Get performs GET request for BusinessFlowTemplate +func (r *BusinessFlowTemplateRequest) Get(ctx context.Context) (resObj *BusinessFlowTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BusinessFlowTemplate +func (r *BusinessFlowTemplateRequest) Update(ctx context.Context, reqObj *BusinessFlowTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BusinessFlowTemplate +func (r *BusinessFlowTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type BusinessFlowRecordDecisionsRequestBuilder struct{ BaseRequestBuilder } + +// RecordDecisions action undocumented +func (b *BusinessFlowRequestBuilder) RecordDecisions(reqObj *BusinessFlowRecordDecisionsRequestParameter) *BusinessFlowRecordDecisionsRequestBuilder { + bb := &BusinessFlowRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/recordDecisions" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BusinessFlowRecordDecisionsRequest struct{ BaseRequest } + +// +func (b *BusinessFlowRecordDecisionsRequestBuilder) Request() *BusinessFlowRecordDecisionsRequest { + return &BusinessFlowRecordDecisionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BusinessFlowRecordDecisionsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go new file mode 100644 index 00000000..bef252ae --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go @@ -0,0 +1,257 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// CalendarRequestBuilder is request builder for Calendar +type CalendarRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CalendarRequest +func (b *CalendarRequestBuilder) Request() *CalendarRequest { + return &CalendarRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CalendarRequest is request for Calendar +type CalendarRequest struct{ BaseRequest } + +// Get performs GET request for Calendar +func (r *CalendarRequest) Get(ctx context.Context) (resObj *Calendar, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Calendar +func (r *CalendarRequest) Update(ctx context.Context, reqObj *Calendar) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Calendar +func (r *CalendarRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CalendarGroupRequestBuilder is request builder for CalendarGroup +type CalendarGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CalendarGroupRequest +func (b *CalendarGroupRequestBuilder) Request() *CalendarGroupRequest { + return &CalendarGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CalendarGroupRequest is request for CalendarGroup +type CalendarGroupRequest struct{ BaseRequest } + +// Get performs GET request for CalendarGroup +func (r *CalendarGroupRequest) Get(ctx context.Context) (resObj *CalendarGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CalendarGroup +func (r *CalendarGroupRequest) Update(ctx context.Context, reqObj *CalendarGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CalendarGroup +func (r *CalendarGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CalendarPermissionRequestBuilder is request builder for CalendarPermission +type CalendarPermissionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CalendarPermissionRequest +func (b *CalendarPermissionRequestBuilder) Request() *CalendarPermissionRequest { + return &CalendarPermissionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CalendarPermissionRequest is request for CalendarPermission +type CalendarPermissionRequest struct{ BaseRequest } + +// Get performs GET request for CalendarPermission +func (r *CalendarPermissionRequest) Get(ctx context.Context) (resObj *CalendarPermission, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CalendarPermission +func (r *CalendarPermissionRequest) Update(ctx context.Context, reqObj *CalendarPermission) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CalendarPermission +func (r *CalendarPermissionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CalendarSharingMessageRequestBuilder is request builder for CalendarSharingMessage +type CalendarSharingMessageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CalendarSharingMessageRequest +func (b *CalendarSharingMessageRequestBuilder) Request() *CalendarSharingMessageRequest { + return &CalendarSharingMessageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CalendarSharingMessageRequest is request for CalendarSharingMessage +type CalendarSharingMessageRequest struct{ BaseRequest } + +// Get performs GET request for CalendarSharingMessage +func (r *CalendarSharingMessageRequest) Get(ctx context.Context) (resObj *CalendarSharingMessage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CalendarSharingMessage +func (r *CalendarSharingMessageRequest) Update(ctx context.Context, reqObj *CalendarSharingMessage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CalendarSharingMessage +func (r *CalendarSharingMessageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type CalendarGetScheduleRequestBuilder struct{ BaseRequestBuilder } + +// GetSchedule action undocumented +func (b *CalendarRequestBuilder) GetSchedule(reqObj *CalendarGetScheduleRequestParameter) *CalendarGetScheduleRequestBuilder { + bb := &CalendarGetScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getSchedule" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CalendarGetScheduleRequest struct{ BaseRequest } + +// +func (b *CalendarGetScheduleRequestBuilder) Request() *CalendarGetScheduleRequest { + return &CalendarGetScheduleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CalendarGetScheduleRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScheduleInformation, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ScheduleInformation + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ScheduleInformation + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *CalendarGetScheduleRequest) PostN(ctx context.Context, n int) ([]ScheduleInformation, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *CalendarGetScheduleRequest) Post(ctx context.Context) ([]ScheduleInformation, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type CalendarSharingMessageAcceptRequestBuilder struct{ BaseRequestBuilder } + +// Accept action undocumented +func (b *CalendarSharingMessageRequestBuilder) Accept(reqObj *CalendarSharingMessageAcceptRequestParameter) *CalendarSharingMessageAcceptRequestBuilder { + bb := &CalendarSharingMessageAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/accept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CalendarSharingMessageAcceptRequest struct{ BaseRequest } + +// +func (b *CalendarSharingMessageAcceptRequestBuilder) Request() *CalendarSharingMessageAcceptRequest { + return &CalendarSharingMessageAcceptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CalendarSharingMessageAcceptRequest) Post(ctx context.Context) (resObj *Calendar, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go new file mode 100644 index 00000000..41ebd8d9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go @@ -0,0 +1,410 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// CallRequestBuilder is request builder for Call +type CallRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CallRequest +func (b *CallRequestBuilder) Request() *CallRequest { + return &CallRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CallRequest is request for Call +type CallRequest struct{ BaseRequest } + +// Get performs GET request for Call +func (r *CallRequest) Get(ctx context.Context) (resObj *Call, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Call +func (r *CallRequest) Update(ctx context.Context, reqObj *Call) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Call +func (r *CallRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type CallAnswerRequestBuilder struct{ BaseRequestBuilder } + +// Answer action undocumented +func (b *CallRequestBuilder) Answer(reqObj *CallAnswerRequestParameter) *CallAnswerRequestBuilder { + bb := &CallAnswerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/answer" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallAnswerRequest struct{ BaseRequest } + +// +func (b *CallAnswerRequestBuilder) Request() *CallAnswerRequest { + return &CallAnswerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallAnswerRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallCancelMediaProcessingRequestBuilder struct{ BaseRequestBuilder } + +// CancelMediaProcessing action undocumented +func (b *CallRequestBuilder) CancelMediaProcessing(reqObj *CallCancelMediaProcessingRequestParameter) *CallCancelMediaProcessingRequestBuilder { + bb := &CallCancelMediaProcessingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancelMediaProcessing" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallCancelMediaProcessingRequest struct{ BaseRequest } + +// +func (b *CallCancelMediaProcessingRequestBuilder) Request() *CallCancelMediaProcessingRequest { + return &CallCancelMediaProcessingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallCancelMediaProcessingRequest) Post(ctx context.Context) (resObj *CancelMediaProcessingOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallChangeScreenSharingRoleRequestBuilder struct{ BaseRequestBuilder } + +// ChangeScreenSharingRole action undocumented +func (b *CallRequestBuilder) ChangeScreenSharingRole(reqObj *CallChangeScreenSharingRoleRequestParameter) *CallChangeScreenSharingRoleRequestBuilder { + bb := &CallChangeScreenSharingRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/changeScreenSharingRole" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallChangeScreenSharingRoleRequest struct{ BaseRequest } + +// +func (b *CallChangeScreenSharingRoleRequestBuilder) Request() *CallChangeScreenSharingRoleRequest { + return &CallChangeScreenSharingRoleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallChangeScreenSharingRoleRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallKeepAliveRequestBuilder struct{ BaseRequestBuilder } + +// KeepAlive action undocumented +func (b *CallRequestBuilder) KeepAlive(reqObj *CallKeepAliveRequestParameter) *CallKeepAliveRequestBuilder { + bb := &CallKeepAliveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/keepAlive" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallKeepAliveRequest struct{ BaseRequest } + +// +func (b *CallKeepAliveRequestBuilder) Request() *CallKeepAliveRequest { + return &CallKeepAliveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallKeepAliveRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallMuteRequestBuilder struct{ BaseRequestBuilder } + +// Mute action undocumented +func (b *CallRequestBuilder) Mute(reqObj *CallMuteRequestParameter) *CallMuteRequestBuilder { + bb := &CallMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mute" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallMuteRequest struct{ BaseRequest } + +// +func (b *CallMuteRequestBuilder) Request() *CallMuteRequest { + return &CallMuteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallPlayPromptRequestBuilder struct{ BaseRequestBuilder } + +// PlayPrompt action undocumented +func (b *CallRequestBuilder) PlayPrompt(reqObj *CallPlayPromptRequestParameter) *CallPlayPromptRequestBuilder { + bb := &CallPlayPromptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/playPrompt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallPlayPromptRequest struct{ BaseRequest } + +// +func (b *CallPlayPromptRequestBuilder) Request() *CallPlayPromptRequest { + return &CallPlayPromptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallPlayPromptRequest) Post(ctx context.Context) (resObj *PlayPromptOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallRecordRequestBuilder struct{ BaseRequestBuilder } + +// Record action undocumented +func (b *CallRequestBuilder) Record(reqObj *CallRecordRequestParameter) *CallRecordRequestBuilder { + bb := &CallRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/record" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallRecordRequest struct{ BaseRequest } + +// +func (b *CallRecordRequestBuilder) Request() *CallRecordRequest { + return &CallRecordRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallRecordRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallRecordResponseRequestBuilder struct{ BaseRequestBuilder } + +// RecordResponse action undocumented +func (b *CallRequestBuilder) RecordResponse(reqObj *CallRecordResponseRequestParameter) *CallRecordResponseRequestBuilder { + bb := &CallRecordResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/recordResponse" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallRecordResponseRequest struct{ BaseRequest } + +// +func (b *CallRecordResponseRequestBuilder) Request() *CallRecordResponseRequest { + return &CallRecordResponseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallRecordResponseRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallRedirectRequestBuilder struct{ BaseRequestBuilder } + +// Redirect action undocumented +func (b *CallRequestBuilder) Redirect(reqObj *CallRedirectRequestParameter) *CallRedirectRequestBuilder { + bb := &CallRedirectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/redirect" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallRedirectRequest struct{ BaseRequest } + +// +func (b *CallRedirectRequestBuilder) Request() *CallRedirectRequest { + return &CallRedirectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallRedirectRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallRejectRequestBuilder struct{ BaseRequestBuilder } + +// Reject action undocumented +func (b *CallRequestBuilder) Reject(reqObj *CallRejectRequestParameter) *CallRejectRequestBuilder { + bb := &CallRejectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reject" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallRejectRequest struct{ BaseRequest } + +// +func (b *CallRejectRequestBuilder) Request() *CallRejectRequest { + return &CallRejectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallRejectRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallSubscribeToToneRequestBuilder struct{ BaseRequestBuilder } + +// SubscribeToTone action undocumented +func (b *CallRequestBuilder) SubscribeToTone(reqObj *CallSubscribeToToneRequestParameter) *CallSubscribeToToneRequestBuilder { + bb := &CallSubscribeToToneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/subscribeToTone" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallSubscribeToToneRequest struct{ BaseRequest } + +// +func (b *CallSubscribeToToneRequestBuilder) Request() *CallSubscribeToToneRequest { + return &CallSubscribeToToneRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallSubscribeToToneRequest) Post(ctx context.Context) (resObj *SubscribeToToneOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallTransferRequestBuilder struct{ BaseRequestBuilder } + +// Transfer action undocumented +func (b *CallRequestBuilder) Transfer(reqObj *CallTransferRequestParameter) *CallTransferRequestBuilder { + bb := &CallTransferRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/transfer" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallTransferRequest struct{ BaseRequest } + +// +func (b *CallTransferRequestBuilder) Request() *CallTransferRequest { + return &CallTransferRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallTransferRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type CallUnmuteRequestBuilder struct{ BaseRequestBuilder } + +// Unmute action undocumented +func (b *CallRequestBuilder) Unmute(reqObj *CallUnmuteRequestParameter) *CallUnmuteRequestBuilder { + bb := &CallUnmuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unmute" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallUnmuteRequest struct{ BaseRequest } + +// +func (b *CallUnmuteRequestBuilder) Request() *CallUnmuteRequest { + return &CallUnmuteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallUnmuteRequest) Post(ctx context.Context) (resObj *UnmuteParticipantOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type CallUpdateRecordingStatusRequestBuilder struct{ BaseRequestBuilder } + +// UpdateRecordingStatus action undocumented +func (b *CallRequestBuilder) UpdateRecordingStatus(reqObj *CallUpdateRecordingStatusRequestParameter) *CallUpdateRecordingStatusRequestBuilder { + bb := &CallUpdateRecordingStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateRecordingStatus" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CallUpdateRecordingStatusRequest struct{ BaseRequest } + +// +func (b *CallUpdateRecordingStatusRequestBuilder) Request() *CallUpdateRecordingStatusRequest { + return &CallUpdateRecordingStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CallUpdateRecordingStatusRequest) Post(ctx context.Context) (resObj *UpdateRecordingStatusOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CartToClassAssociationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go new file mode 100644 index 00000000..36dfb0d4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ChannelRequestBuilder is request builder for Channel +type ChannelRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ChannelRequest +func (b *ChannelRequestBuilder) Request() *ChannelRequest { + return &ChannelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ChannelRequest is request for Channel +type ChannelRequest struct{ BaseRequest } + +// Get performs GET request for Channel +func (r *ChannelRequest) Get(ctx context.Context) (resObj *Channel, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Channel +func (r *ChannelRequest) Update(ctx context.Context, reqObj *Channel) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Channel +func (r *ChannelRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go new file mode 100644 index 00000000..d872f014 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ChatRequestBuilder is request builder for Chat +type ChatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ChatRequest +func (b *ChatRequestBuilder) Request() *ChatRequest { + return &ChatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ChatRequest is request for Chat +type ChatRequest struct{ BaseRequest } + +// Get performs GET request for Chat +func (r *ChatRequest) Get(ctx context.Context) (resObj *Chat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Chat +func (r *ChatRequest) Update(ctx context.Context, reqObj *Chat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Chat +func (r *ChatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ChatMessageRequestBuilder is request builder for ChatMessage +type ChatMessageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ChatMessageRequest +func (b *ChatMessageRequestBuilder) Request() *ChatMessageRequest { + return &ChatMessageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ChatMessageRequest is request for ChatMessage +type ChatMessageRequest struct{ BaseRequest } + +// Get performs GET request for ChatMessage +func (r *ChatMessageRequest) Get(ctx context.Context) (resObj *ChatMessage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ChatMessage +func (r *ChatMessageRequest) Update(ctx context.Context, reqObj *ChatMessage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ChatMessage +func (r *ChatMessageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ChatMessageHostedContentRequestBuilder is request builder for ChatMessageHostedContent +type ChatMessageHostedContentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ChatMessageHostedContentRequest +func (b *ChatMessageHostedContentRequestBuilder) Request() *ChatMessageHostedContentRequest { + return &ChatMessageHostedContentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ChatMessageHostedContentRequest is request for ChatMessageHostedContent +type ChatMessageHostedContentRequest struct{ BaseRequest } + +// Get performs GET request for ChatMessageHostedContent +func (r *ChatMessageHostedContentRequest) Get(ctx context.Context) (resObj *ChatMessageHostedContent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ChatMessageHostedContent +func (r *ChatMessageHostedContentRequest) Update(ctx context.Context, reqObj *ChatMessageHostedContent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ChatMessageHostedContent +func (r *ChatMessageHostedContentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go new file mode 100644 index 00000000..a91f5876 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go @@ -0,0 +1,164 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// CloudAppSecurityProfileRequestBuilder is request builder for CloudAppSecurityProfile +type CloudAppSecurityProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CloudAppSecurityProfileRequest +func (b *CloudAppSecurityProfileRequestBuilder) Request() *CloudAppSecurityProfileRequest { + return &CloudAppSecurityProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CloudAppSecurityProfileRequest is request for CloudAppSecurityProfile +type CloudAppSecurityProfileRequest struct{ BaseRequest } + +// Get performs GET request for CloudAppSecurityProfile +func (r *CloudAppSecurityProfileRequest) Get(ctx context.Context) (resObj *CloudAppSecurityProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CloudAppSecurityProfile +func (r *CloudAppSecurityProfileRequest) Update(ctx context.Context, reqObj *CloudAppSecurityProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CloudAppSecurityProfile +func (r *CloudAppSecurityProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CloudCommunicationsRequestBuilder is request builder for CloudCommunications +type CloudCommunicationsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CloudCommunicationsRequest +func (b *CloudCommunicationsRequestBuilder) Request() *CloudCommunicationsRequest { + return &CloudCommunicationsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CloudCommunicationsRequest is request for CloudCommunications +type CloudCommunicationsRequest struct{ BaseRequest } + +// Get performs GET request for CloudCommunications +func (r *CloudCommunicationsRequest) Get(ctx context.Context) (resObj *CloudCommunications, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CloudCommunications +func (r *CloudCommunicationsRequest) Update(ctx context.Context, reqObj *CloudCommunications) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CloudCommunications +func (r *CloudCommunicationsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type CloudCommunicationsGetPresencesByUserIDRequestBuilder struct{ BaseRequestBuilder } + +// GetPresencesByUserID action undocumented +func (b *CloudCommunicationsRequestBuilder) GetPresencesByUserID(reqObj *CloudCommunicationsGetPresencesByUserIDRequestParameter) *CloudCommunicationsGetPresencesByUserIDRequestBuilder { + bb := &CloudCommunicationsGetPresencesByUserIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getPresencesByUserId" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type CloudCommunicationsGetPresencesByUserIDRequest struct{ BaseRequest } + +// +func (b *CloudCommunicationsGetPresencesByUserIDRequestBuilder) Request() *CloudCommunicationsGetPresencesByUserIDRequest { + return &CloudCommunicationsGetPresencesByUserIDRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *CloudCommunicationsGetPresencesByUserIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Presence, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Presence + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Presence + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *CloudCommunicationsGetPresencesByUserIDRequest) PostN(ctx context.Context, n int) ([]Presence, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *CloudCommunicationsGetPresencesByUserIDRequest) Post(ctx context.Context) ([]Presence, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go new file mode 100644 index 00000000..954062ed --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ColumnDefinitionRequestBuilder is request builder for ColumnDefinition +type ColumnDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ColumnDefinitionRequest +func (b *ColumnDefinitionRequestBuilder) Request() *ColumnDefinitionRequest { + return &ColumnDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ColumnDefinitionRequest is request for ColumnDefinition +type ColumnDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for ColumnDefinition +func (r *ColumnDefinitionRequest) Get(ctx context.Context) (resObj *ColumnDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ColumnDefinition +func (r *ColumnDefinitionRequest) Update(ctx context.Context, reqObj *ColumnDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ColumnDefinition +func (r *ColumnDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ColumnLinkRequestBuilder is request builder for ColumnLink +type ColumnLinkRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ColumnLinkRequest +func (b *ColumnLinkRequestBuilder) Request() *ColumnLinkRequest { + return &ColumnLinkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ColumnLinkRequest is request for ColumnLink +type ColumnLinkRequest struct{ BaseRequest } + +// Get performs GET request for ColumnLink +func (r *ColumnLinkRequest) Get(ctx context.Context) (resObj *ColumnLink, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ColumnLink +func (r *ColumnLinkRequest) Update(ctx context.Context, reqObj *ColumnLink) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ColumnLink +func (r *ColumnLinkRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go new file mode 100644 index 00000000..9339a987 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// CommandRequestBuilder is request builder for Command +type CommandRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CommandRequest +func (b *CommandRequestBuilder) Request() *CommandRequest { + return &CommandRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CommandRequest is request for Command +type CommandRequest struct{ BaseRequest } + +// Get performs GET request for Command +func (r *CommandRequest) Get(ctx context.Context) (resObj *Command, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Command +func (r *CommandRequest) Update(ctx context.Context, reqObj *Command) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Command +func (r *CommandRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go new file mode 100644 index 00000000..48a826a3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// CommsApplicationRequestBuilder is request builder for CommsApplication +type CommsApplicationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CommsApplicationRequest +func (b *CommsApplicationRequestBuilder) Request() *CommsApplicationRequest { + return &CommsApplicationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CommsApplicationRequest is request for CommsApplication +type CommsApplicationRequest struct{ BaseRequest } + +// Get performs GET request for CommsApplication +func (r *CommsApplicationRequest) Get(ctx context.Context) (resObj *CommsApplication, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CommsApplication +func (r *CommsApplicationRequest) Update(ctx context.Context, reqObj *CommsApplication) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CommsApplication +func (r *CommsApplicationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CommsOperationRequestBuilder is request builder for CommsOperation +type CommsOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CommsOperationRequest +func (b *CommsOperationRequestBuilder) Request() *CommsOperationRequest { + return &CommsOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CommsOperationRequest is request for CommsOperation +type CommsOperationRequest struct{ BaseRequest } + +// Get performs GET request for CommsOperation +func (r *CommsOperationRequest) Get(ctx context.Context) (resObj *CommsOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CommsOperation +func (r *CommsOperationRequest) Update(ctx context.Context, reqObj *CommsOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CommsOperation +func (r *CommsOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go new file mode 100644 index 00000000..30aec000 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// CompanyRequestBuilder is request builder for Company +type CompanyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CompanyRequest +func (b *CompanyRequestBuilder) Request() *CompanyRequest { + return &CompanyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CompanyRequest is request for Company +type CompanyRequest struct{ BaseRequest } + +// Get performs GET request for Company +func (r *CompanyRequest) Get(ctx context.Context) (resObj *Company, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Company +func (r *CompanyRequest) Update(ctx context.Context, reqObj *Company) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Company +func (r *CompanyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CompanyInformationRequestBuilder is request builder for CompanyInformation +type CompanyInformationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CompanyInformationRequest +func (b *CompanyInformationRequestBuilder) Request() *CompanyInformationRequest { + return &CompanyInformationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CompanyInformationRequest is request for CompanyInformation +type CompanyInformationRequest struct{ BaseRequest } + +// Get performs GET request for CompanyInformation +func (r *CompanyInformationRequest) Get(ctx context.Context) (resObj *CompanyInformation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CompanyInformation +func (r *CompanyInformationRequest) Update(ctx context.Context, reqObj *CompanyInformation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CompanyInformation +func (r *CompanyInformationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ComplianceManagementPartnerRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go new file mode 100644 index 00000000..c9a83b10 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ConditionalAccessPolicyRequestBuilder is request builder for ConditionalAccessPolicy +type ConditionalAccessPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ConditionalAccessPolicyRequest +func (b *ConditionalAccessPolicyRequestBuilder) Request() *ConditionalAccessPolicyRequest { + return &ConditionalAccessPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ConditionalAccessPolicyRequest is request for ConditionalAccessPolicy +type ConditionalAccessPolicyRequest struct{ BaseRequest } + +// Get performs GET request for ConditionalAccessPolicy +func (r *ConditionalAccessPolicyRequest) Get(ctx context.Context) (resObj *ConditionalAccessPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ConditionalAccessPolicy +func (r *ConditionalAccessPolicyRequest) Update(ctx context.Context, reqObj *ConditionalAccessPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ConditionalAccessPolicy +func (r *ConditionalAccessPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ConditionalAccessRootRequestBuilder is request builder for ConditionalAccessRoot +type ConditionalAccessRootRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ConditionalAccessRootRequest +func (b *ConditionalAccessRootRequestBuilder) Request() *ConditionalAccessRootRequest { + return &ConditionalAccessRootRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ConditionalAccessRootRequest is request for ConditionalAccessRoot +type ConditionalAccessRootRequest struct{ BaseRequest } + +// Get performs GET request for ConditionalAccessRoot +func (r *ConditionalAccessRootRequest) Get(ctx context.Context) (resObj *ConditionalAccessRoot, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ConditionalAccessRoot +func (r *ConditionalAccessRootRequest) Update(ctx context.Context, reqObj *ConditionalAccessRoot) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ConditionalAccessRoot +func (r *ConditionalAccessRootRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ConnectionOperationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go new file mode 100644 index 00000000..540be8e3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ContactRequestBuilder is request builder for Contact +type ContactRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ContactRequest +func (b *ContactRequestBuilder) Request() *ContactRequest { + return &ContactRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ContactRequest is request for Contact +type ContactRequest struct{ BaseRequest } + +// Get performs GET request for Contact +func (r *ContactRequest) Get(ctx context.Context) (resObj *Contact, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Contact +func (r *ContactRequest) Update(ctx context.Context, reqObj *Contact) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Contact +func (r *ContactRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ContactFolderRequestBuilder is request builder for ContactFolder +type ContactFolderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ContactFolderRequest +func (b *ContactFolderRequestBuilder) Request() *ContactFolderRequest { + return &ContactFolderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ContactFolderRequest is request for ContactFolder +type ContactFolderRequest struct{ BaseRequest } + +// Get performs GET request for ContactFolder +func (r *ContactFolderRequest) Get(ctx context.Context) (resObj *ContactFolder, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ContactFolder +func (r *ContactFolderRequest) Update(ctx context.Context, reqObj *ContactFolder) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ContactFolder +func (r *ContactFolderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go new file mode 100644 index 00000000..b30ebd65 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ContentTypeRequestBuilder is request builder for ContentType +type ContentTypeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ContentTypeRequest +func (b *ContentTypeRequestBuilder) Request() *ContentTypeRequest { + return &ContentTypeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ContentTypeRequest is request for ContentType +type ContentTypeRequest struct{ BaseRequest } + +// Get performs GET request for ContentType +func (r *ContentTypeRequest) Get(ctx context.Context) (resObj *ContentType, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ContentType +func (r *ContentTypeRequest) Update(ctx context.Context, reqObj *ContentType) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ContentType +func (r *ContentTypeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ContractRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ContractRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go new file mode 100644 index 00000000..d3405b7b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go @@ -0,0 +1,130 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ConversationRequestBuilder is request builder for Conversation +type ConversationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ConversationRequest +func (b *ConversationRequestBuilder) Request() *ConversationRequest { + return &ConversationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ConversationRequest is request for Conversation +type ConversationRequest struct{ BaseRequest } + +// Get performs GET request for Conversation +func (r *ConversationRequest) Get(ctx context.Context) (resObj *Conversation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Conversation +func (r *ConversationRequest) Update(ctx context.Context, reqObj *Conversation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Conversation +func (r *ConversationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ConversationMemberRequestBuilder is request builder for ConversationMember +type ConversationMemberRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ConversationMemberRequest +func (b *ConversationMemberRequestBuilder) Request() *ConversationMemberRequest { + return &ConversationMemberRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ConversationMemberRequest is request for ConversationMember +type ConversationMemberRequest struct{ BaseRequest } + +// Get performs GET request for ConversationMember +func (r *ConversationMemberRequest) Get(ctx context.Context) (resObj *ConversationMember, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ConversationMember +func (r *ConversationMemberRequest) Update(ctx context.Context, reqObj *ConversationMember) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ConversationMember +func (r *ConversationMemberRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ConversationThreadRequestBuilder is request builder for ConversationThread +type ConversationThreadRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ConversationThreadRequest +func (b *ConversationThreadRequestBuilder) Request() *ConversationThreadRequest { + return &ConversationThreadRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ConversationThreadRequest is request for ConversationThread +type ConversationThreadRequest struct{ BaseRequest } + +// Get performs GET request for ConversationThread +func (r *ConversationThreadRequest) Get(ctx context.Context) (resObj *ConversationThread, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ConversationThread +func (r *ConversationThreadRequest) Update(ctx context.Context, reqObj *ConversationThread) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ConversationThread +func (r *ConversationThreadRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ConversationThreadReplyRequestBuilder struct{ BaseRequestBuilder } + +// Reply action undocumented +func (b *ConversationThreadRequestBuilder) Reply(reqObj *ConversationThreadReplyRequestParameter) *ConversationThreadReplyRequestBuilder { + bb := &ConversationThreadReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ConversationThreadReplyRequest struct{ BaseRequest } + +// +func (b *ConversationThreadReplyRequestBuilder) Request() *ConversationThreadReplyRequest { + return &ConversationThreadReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ConversationThreadReplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CountryRegionRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/CurrencyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go new file mode 100644 index 00000000..d0787d29 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// CustomerRequestBuilder is request builder for Customer +type CustomerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CustomerRequest +func (b *CustomerRequestBuilder) Request() *CustomerRequest { + return &CustomerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CustomerRequest is request for Customer +type CustomerRequest struct{ BaseRequest } + +// Get performs GET request for Customer +func (r *CustomerRequest) Get(ctx context.Context) (resObj *Customer, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Customer +func (r *CustomerRequest) Update(ctx context.Context, reqObj *Customer) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Customer +func (r *CustomerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CustomerPaymentRequestBuilder is request builder for CustomerPayment +type CustomerPaymentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CustomerPaymentRequest +func (b *CustomerPaymentRequestBuilder) Request() *CustomerPaymentRequest { + return &CustomerPaymentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CustomerPaymentRequest is request for CustomerPayment +type CustomerPaymentRequest struct{ BaseRequest } + +// Get performs GET request for CustomerPayment +func (r *CustomerPaymentRequest) Get(ctx context.Context) (resObj *CustomerPayment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CustomerPayment +func (r *CustomerPaymentRequest) Update(ctx context.Context, reqObj *CustomerPayment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CustomerPayment +func (r *CustomerPaymentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// CustomerPaymentJournalRequestBuilder is request builder for CustomerPaymentJournal +type CustomerPaymentJournalRequestBuilder struct{ BaseRequestBuilder } + +// Request returns CustomerPaymentJournalRequest +func (b *CustomerPaymentJournalRequestBuilder) Request() *CustomerPaymentJournalRequest { + return &CustomerPaymentJournalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// CustomerPaymentJournalRequest is request for CustomerPaymentJournal +type CustomerPaymentJournalRequest struct{ BaseRequest } + +// Get performs GET request for CustomerPaymentJournal +func (r *CustomerPaymentJournalRequest) Get(ctx context.Context) (resObj *CustomerPaymentJournal, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for CustomerPaymentJournal +func (r *CustomerPaymentJournalRequest) Update(ctx context.Context, reqObj *CustomerPaymentJournal) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for CustomerPaymentJournal +func (r *CustomerPaymentJournalRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go new file mode 100644 index 00000000..8a5f8500 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go @@ -0,0 +1,191 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DataClassificationServiceRequestBuilder is request builder for DataClassificationService +type DataClassificationServiceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DataClassificationServiceRequest +func (b *DataClassificationServiceRequestBuilder) Request() *DataClassificationServiceRequest { + return &DataClassificationServiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DataClassificationServiceRequest is request for DataClassificationService +type DataClassificationServiceRequest struct{ BaseRequest } + +// Get performs GET request for DataClassificationService +func (r *DataClassificationServiceRequest) Get(ctx context.Context) (resObj *DataClassificationService, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DataClassificationService +func (r *DataClassificationServiceRequest) Update(ctx context.Context, reqObj *DataClassificationService) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DataClassificationService +func (r *DataClassificationServiceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DataLossPreventionPolicyRequestBuilder is request builder for DataLossPreventionPolicy +type DataLossPreventionPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DataLossPreventionPolicyRequest +func (b *DataLossPreventionPolicyRequestBuilder) Request() *DataLossPreventionPolicyRequest { + return &DataLossPreventionPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DataLossPreventionPolicyRequest is request for DataLossPreventionPolicy +type DataLossPreventionPolicyRequest struct{ BaseRequest } + +// Get performs GET request for DataLossPreventionPolicy +func (r *DataLossPreventionPolicyRequest) Get(ctx context.Context) (resObj *DataLossPreventionPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DataLossPreventionPolicy +func (r *DataLossPreventionPolicyRequest) Update(ctx context.Context, reqObj *DataLossPreventionPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DataLossPreventionPolicy +func (r *DataLossPreventionPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DataPolicyOperationRequestBuilder is request builder for DataPolicyOperation +type DataPolicyOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DataPolicyOperationRequest +func (b *DataPolicyOperationRequestBuilder) Request() *DataPolicyOperationRequest { + return &DataPolicyOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DataPolicyOperationRequest is request for DataPolicyOperation +type DataPolicyOperationRequest struct{ BaseRequest } + +// Get performs GET request for DataPolicyOperation +func (r *DataPolicyOperationRequest) Get(ctx context.Context) (resObj *DataPolicyOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DataPolicyOperation +func (r *DataPolicyOperationRequest) Update(ctx context.Context, reqObj *DataPolicyOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DataPolicyOperation +func (r *DataPolicyOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DataSharingConsentRequestBuilder is request builder for DataSharingConsent +type DataSharingConsentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DataSharingConsentRequest +func (b *DataSharingConsentRequestBuilder) Request() *DataSharingConsentRequest { + return &DataSharingConsentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DataSharingConsentRequest is request for DataSharingConsent +type DataSharingConsentRequest struct{ BaseRequest } + +// Get performs GET request for DataSharingConsent +func (r *DataSharingConsentRequest) Get(ctx context.Context) (resObj *DataSharingConsent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DataSharingConsent +func (r *DataSharingConsentRequest) Update(ctx context.Context, reqObj *DataSharingConsent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DataSharingConsent +func (r *DataSharingConsentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DataLossPreventionPolicyCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder } + +// Evaluate action undocumented +func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Evaluate(reqObj *DataLossPreventionPolicyCollectionEvaluateRequestParameter) *DataLossPreventionPolicyCollectionEvaluateRequestBuilder { + bb := &DataLossPreventionPolicyCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DataLossPreventionPolicyCollectionEvaluateRequest struct{ BaseRequest } + +// +func (b *DataLossPreventionPolicyCollectionEvaluateRequestBuilder) Request() *DataLossPreventionPolicyCollectionEvaluateRequest { + return &DataLossPreventionPolicyCollectionEvaluateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DataLossPreventionPolicyCollectionEvaluateRequest) Post(ctx context.Context) (resObj *DlpEvaluatePoliciesJobResponse, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DataSharingConsentConsentToDataSharingRequestBuilder struct{ BaseRequestBuilder } + +// ConsentToDataSharing action undocumented +func (b *DataSharingConsentRequestBuilder) ConsentToDataSharing(reqObj *DataSharingConsentConsentToDataSharingRequestParameter) *DataSharingConsentConsentToDataSharingRequestBuilder { + bb := &DataSharingConsentConsentToDataSharingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/consentToDataSharing" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DataSharingConsentConsentToDataSharingRequest struct{ BaseRequest } + +// +func (b *DataSharingConsentConsentToDataSharingRequestBuilder) Request() *DataSharingConsentConsentToDataSharingRequest { + return &DataSharingConsentConsentToDataSharingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DataSharingConsentConsentToDataSharingRequest) Post(ctx context.Context) (resObj *DataSharingConsent, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go new file mode 100644 index 00000000..800f2c39 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DefaultManagedAppProtectionRequestBuilder is request builder for DefaultManagedAppProtection +type DefaultManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DefaultManagedAppProtectionRequest +func (b *DefaultManagedAppProtectionRequestBuilder) Request() *DefaultManagedAppProtectionRequest { + return &DefaultManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DefaultManagedAppProtectionRequest is request for DefaultManagedAppProtection +type DefaultManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for DefaultManagedAppProtection +func (r *DefaultManagedAppProtectionRequest) Get(ctx context.Context) (resObj *DefaultManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DefaultManagedAppProtection +func (r *DefaultManagedAppProtectionRequest) Update(ctx context.Context, reqObj *DefaultManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DefaultManagedAppProtection +func (r *DefaultManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go new file mode 100644 index 00000000..72da7e40 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go @@ -0,0 +1,208 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DepIOSEnrollmentProfileRequestBuilder is request builder for DepIOSEnrollmentProfile +type DepIOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DepIOSEnrollmentProfileRequest +func (b *DepIOSEnrollmentProfileRequestBuilder) Request() *DepIOSEnrollmentProfileRequest { + return &DepIOSEnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DepIOSEnrollmentProfileRequest is request for DepIOSEnrollmentProfile +type DepIOSEnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for DepIOSEnrollmentProfile +func (r *DepIOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepIOSEnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DepIOSEnrollmentProfile +func (r *DepIOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepIOSEnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DepIOSEnrollmentProfile +func (r *DepIOSEnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DepMacOSEnrollmentProfileRequestBuilder is request builder for DepMacOSEnrollmentProfile +type DepMacOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DepMacOSEnrollmentProfileRequest +func (b *DepMacOSEnrollmentProfileRequestBuilder) Request() *DepMacOSEnrollmentProfileRequest { + return &DepMacOSEnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DepMacOSEnrollmentProfileRequest is request for DepMacOSEnrollmentProfile +type DepMacOSEnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for DepMacOSEnrollmentProfile +func (r *DepMacOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepMacOSEnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DepMacOSEnrollmentProfile +func (r *DepMacOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepMacOSEnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DepMacOSEnrollmentProfile +func (r *DepMacOSEnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DepOnboardingSettingRequestBuilder is request builder for DepOnboardingSetting +type DepOnboardingSettingRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DepOnboardingSettingRequest +func (b *DepOnboardingSettingRequestBuilder) Request() *DepOnboardingSettingRequest { + return &DepOnboardingSettingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DepOnboardingSettingRequest is request for DepOnboardingSetting +type DepOnboardingSettingRequest struct{ BaseRequest } + +// Get performs GET request for DepOnboardingSetting +func (r *DepOnboardingSettingRequest) Get(ctx context.Context) (resObj *DepOnboardingSetting, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DepOnboardingSetting +func (r *DepOnboardingSettingRequest) Update(ctx context.Context, reqObj *DepOnboardingSetting) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DepOnboardingSetting +func (r *DepOnboardingSettingRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DepOnboardingSettingUploadDepTokenRequestBuilder struct{ BaseRequestBuilder } + +// UploadDepToken action undocumented +func (b *DepOnboardingSettingRequestBuilder) UploadDepToken(reqObj *DepOnboardingSettingUploadDepTokenRequestParameter) *DepOnboardingSettingUploadDepTokenRequestBuilder { + bb := &DepOnboardingSettingUploadDepTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/uploadDepToken" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DepOnboardingSettingUploadDepTokenRequest struct{ BaseRequest } + +// +func (b *DepOnboardingSettingUploadDepTokenRequestBuilder) Request() *DepOnboardingSettingUploadDepTokenRequest { + return &DepOnboardingSettingUploadDepTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DepOnboardingSettingUploadDepTokenRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder struct{ BaseRequestBuilder } + +// SyncWithAppleDeviceEnrollmentProgram action undocumented +func (b *DepOnboardingSettingRequestBuilder) SyncWithAppleDeviceEnrollmentProgram(reqObj *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter) *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder { + bb := &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncWithAppleDeviceEnrollmentProgram" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest struct{ BaseRequest } + +// +func (b *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder) Request() *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest { + return &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder } + +// ShareForSchoolDataSyncService action undocumented +func (b *DepOnboardingSettingRequestBuilder) ShareForSchoolDataSyncService(reqObj *DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder { + bb := &DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/shareForSchoolDataSyncService" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DepOnboardingSettingShareForSchoolDataSyncServiceRequest struct{ BaseRequest } + +// +func (b *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingShareForSchoolDataSyncServiceRequest { + return &DepOnboardingSettingShareForSchoolDataSyncServiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DepOnboardingSettingShareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder } + +// UnshareForSchoolDataSyncService action undocumented +func (b *DepOnboardingSettingRequestBuilder) UnshareForSchoolDataSyncService(reqObj *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder { + bb := &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unshareForSchoolDataSyncService" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest struct{ BaseRequest } + +// +func (b *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest { + return &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go new file mode 100644 index 00000000..9513c445 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DetectedAppRequestBuilder is request builder for DetectedApp +type DetectedAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DetectedAppRequest +func (b *DetectedAppRequestBuilder) Request() *DetectedAppRequest { + return &DetectedAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DetectedAppRequest is request for DetectedApp +type DetectedAppRequest struct{ BaseRequest } + +// Get performs GET request for DetectedApp +func (r *DetectedAppRequest) Get(ctx context.Context) (resObj *DetectedApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DetectedApp +func (r *DetectedAppRequest) Update(ctx context.Context, reqObj *DetectedApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DetectedApp +func (r *DetectedAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go new file mode 100644 index 00000000..6eef9117 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go @@ -0,0 +1,3519 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DeviceRequestBuilder is request builder for Device +type DeviceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceRequest +func (b *DeviceRequestBuilder) Request() *DeviceRequest { + return &DeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceRequest is request for Device +type DeviceRequest struct{ BaseRequest } + +// Get performs GET request for Device +func (r *DeviceRequest) Get(ctx context.Context) (resObj *Device, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Device +func (r *DeviceRequest) Update(ctx context.Context, reqObj *Device) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Device +func (r *DeviceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceAndAppManagementRoleAssignmentRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment +type DeviceAndAppManagementRoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceAndAppManagementRoleAssignmentRequest +func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRequest { + return &DeviceAndAppManagementRoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceAndAppManagementRoleAssignmentRequest is request for DeviceAndAppManagementRoleAssignment +type DeviceAndAppManagementRoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceAndAppManagementRoleAssignment +func (r *DeviceAndAppManagementRoleAssignmentRequest) Get(ctx context.Context) (resObj *DeviceAndAppManagementRoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceAndAppManagementRoleAssignment +func (r *DeviceAndAppManagementRoleAssignmentRequest) Update(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceAndAppManagementRoleAssignment +func (r *DeviceAndAppManagementRoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceAppManagementRequestBuilder is request builder for DeviceAppManagement +type DeviceAppManagementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceAppManagementRequest +func (b *DeviceAppManagementRequestBuilder) Request() *DeviceAppManagementRequest { + return &DeviceAppManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceAppManagementRequest is request for DeviceAppManagement +type DeviceAppManagementRequest struct{ BaseRequest } + +// Get performs GET request for DeviceAppManagement +func (r *DeviceAppManagementRequest) Get(ctx context.Context) (resObj *DeviceAppManagement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceAppManagement +func (r *DeviceAppManagementRequest) Update(ctx context.Context, reqObj *DeviceAppManagement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceAppManagement +func (r *DeviceAppManagementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceAppManagementTaskRequestBuilder is request builder for DeviceAppManagementTask +type DeviceAppManagementTaskRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceAppManagementTaskRequest +func (b *DeviceAppManagementTaskRequestBuilder) Request() *DeviceAppManagementTaskRequest { + return &DeviceAppManagementTaskRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceAppManagementTaskRequest is request for DeviceAppManagementTask +type DeviceAppManagementTaskRequest struct{ BaseRequest } + +// Get performs GET request for DeviceAppManagementTask +func (r *DeviceAppManagementTaskRequest) Get(ctx context.Context) (resObj *DeviceAppManagementTask, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceAppManagementTask +func (r *DeviceAppManagementTaskRequest) Update(ctx context.Context, reqObj *DeviceAppManagementTask) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceAppManagementTask +func (r *DeviceAppManagementTaskRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCategoryRequestBuilder is request builder for DeviceCategory +type DeviceCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCategoryRequest +func (b *DeviceCategoryRequestBuilder) Request() *DeviceCategoryRequest { + return &DeviceCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCategoryRequest is request for DeviceCategory +type DeviceCategoryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCategory +func (r *DeviceCategoryRequest) Get(ctx context.Context) (resObj *DeviceCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCategory +func (r *DeviceCategoryRequest) Update(ctx context.Context, reqObj *DeviceCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCategory +func (r *DeviceCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceActionItemRequestBuilder is request builder for DeviceComplianceActionItem +type DeviceComplianceActionItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceActionItemRequest +func (b *DeviceComplianceActionItemRequestBuilder) Request() *DeviceComplianceActionItemRequest { + return &DeviceComplianceActionItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceActionItemRequest is request for DeviceComplianceActionItem +type DeviceComplianceActionItemRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceActionItem +func (r *DeviceComplianceActionItemRequest) Get(ctx context.Context) (resObj *DeviceComplianceActionItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceActionItem +func (r *DeviceComplianceActionItemRequest) Update(ctx context.Context, reqObj *DeviceComplianceActionItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceActionItem +func (r *DeviceComplianceActionItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceDeviceOverviewRequestBuilder is request builder for DeviceComplianceDeviceOverview +type DeviceComplianceDeviceOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceDeviceOverviewRequest +func (b *DeviceComplianceDeviceOverviewRequestBuilder) Request() *DeviceComplianceDeviceOverviewRequest { + return &DeviceComplianceDeviceOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceDeviceOverviewRequest is request for DeviceComplianceDeviceOverview +type DeviceComplianceDeviceOverviewRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceDeviceOverview +func (r *DeviceComplianceDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceDeviceOverview +func (r *DeviceComplianceDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceDeviceOverview +func (r *DeviceComplianceDeviceOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceDeviceStatusRequestBuilder is request builder for DeviceComplianceDeviceStatus +type DeviceComplianceDeviceStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceDeviceStatusRequest +func (b *DeviceComplianceDeviceStatusRequestBuilder) Request() *DeviceComplianceDeviceStatusRequest { + return &DeviceComplianceDeviceStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceDeviceStatusRequest is request for DeviceComplianceDeviceStatus +type DeviceComplianceDeviceStatusRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceDeviceStatus +func (r *DeviceComplianceDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceDeviceStatus +func (r *DeviceComplianceDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceDeviceStatus +func (r *DeviceComplianceDeviceStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicyRequestBuilder is request builder for DeviceCompliancePolicy +type DeviceCompliancePolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicyRequest +func (b *DeviceCompliancePolicyRequestBuilder) Request() *DeviceCompliancePolicyRequest { + return &DeviceCompliancePolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicyRequest is request for DeviceCompliancePolicy +type DeviceCompliancePolicyRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicy +func (r *DeviceCompliancePolicyRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicy +func (r *DeviceCompliancePolicyRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicy +func (r *DeviceCompliancePolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicyAssignmentRequestBuilder is request builder for DeviceCompliancePolicyAssignment +type DeviceCompliancePolicyAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicyAssignmentRequest +func (b *DeviceCompliancePolicyAssignmentRequestBuilder) Request() *DeviceCompliancePolicyAssignmentRequest { + return &DeviceCompliancePolicyAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicyAssignmentRequest is request for DeviceCompliancePolicyAssignment +type DeviceCompliancePolicyAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicyAssignment +func (r *DeviceCompliancePolicyAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicyAssignment +func (r *DeviceCompliancePolicyAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicyAssignment +func (r *DeviceCompliancePolicyAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicyDeviceStateSummaryRequestBuilder is request builder for DeviceCompliancePolicyDeviceStateSummary +type DeviceCompliancePolicyDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicyDeviceStateSummaryRequest +func (b *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder) Request() *DeviceCompliancePolicyDeviceStateSummaryRequest { + return &DeviceCompliancePolicyDeviceStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicyDeviceStateSummaryRequest is request for DeviceCompliancePolicyDeviceStateSummary +type DeviceCompliancePolicyDeviceStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicyDeviceStateSummary +func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyDeviceStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicyDeviceStateSummary +func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyDeviceStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicyDeviceStateSummary +func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicyGroupAssignmentRequestBuilder is request builder for DeviceCompliancePolicyGroupAssignment +type DeviceCompliancePolicyGroupAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicyGroupAssignmentRequest +func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) Request() *DeviceCompliancePolicyGroupAssignmentRequest { + return &DeviceCompliancePolicyGroupAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicyGroupAssignmentRequest is request for DeviceCompliancePolicyGroupAssignment +type DeviceCompliancePolicyGroupAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicyGroupAssignment +func (r *DeviceCompliancePolicyGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyGroupAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicyGroupAssignment +func (r *DeviceCompliancePolicyGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyGroupAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicyGroupAssignment +func (r *DeviceCompliancePolicyGroupAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicySettingStateSummaryRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary +type DeviceCompliancePolicySettingStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicySettingStateSummaryRequest +func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryRequest { + return &DeviceCompliancePolicySettingStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicySettingStateSummaryRequest is request for DeviceCompliancePolicySettingStateSummary +type DeviceCompliancePolicySettingStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicySettingStateSummary +func (r *DeviceCompliancePolicySettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicySettingStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicySettingStateSummary +func (r *DeviceCompliancePolicySettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicySettingStateSummary +func (r *DeviceCompliancePolicySettingStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceCompliancePolicyStateRequestBuilder is request builder for DeviceCompliancePolicyState +type DeviceCompliancePolicyStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceCompliancePolicyStateRequest +func (b *DeviceCompliancePolicyStateRequestBuilder) Request() *DeviceCompliancePolicyStateRequest { + return &DeviceCompliancePolicyStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceCompliancePolicyStateRequest is request for DeviceCompliancePolicyState +type DeviceCompliancePolicyStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceCompliancePolicyState +func (r *DeviceCompliancePolicyStateRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceCompliancePolicyState +func (r *DeviceCompliancePolicyStateRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceCompliancePolicyState +func (r *DeviceCompliancePolicyStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceScheduledActionForRuleRequestBuilder is request builder for DeviceComplianceScheduledActionForRule +type DeviceComplianceScheduledActionForRuleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceScheduledActionForRuleRequest +func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleRequest { + return &DeviceComplianceScheduledActionForRuleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceScheduledActionForRuleRequest is request for DeviceComplianceScheduledActionForRule +type DeviceComplianceScheduledActionForRuleRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceScheduledActionForRule +func (r *DeviceComplianceScheduledActionForRuleRequest) Get(ctx context.Context) (resObj *DeviceComplianceScheduledActionForRule, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceScheduledActionForRule +func (r *DeviceComplianceScheduledActionForRuleRequest) Update(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceScheduledActionForRule +func (r *DeviceComplianceScheduledActionForRuleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceSettingStateRequestBuilder is request builder for DeviceComplianceSettingState +type DeviceComplianceSettingStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceSettingStateRequest +func (b *DeviceComplianceSettingStateRequestBuilder) Request() *DeviceComplianceSettingStateRequest { + return &DeviceComplianceSettingStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceSettingStateRequest is request for DeviceComplianceSettingState +type DeviceComplianceSettingStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceSettingState +func (r *DeviceComplianceSettingStateRequest) Get(ctx context.Context) (resObj *DeviceComplianceSettingState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceSettingState +func (r *DeviceComplianceSettingStateRequest) Update(ctx context.Context, reqObj *DeviceComplianceSettingState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceSettingState +func (r *DeviceComplianceSettingStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceUserOverviewRequestBuilder is request builder for DeviceComplianceUserOverview +type DeviceComplianceUserOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceUserOverviewRequest +func (b *DeviceComplianceUserOverviewRequestBuilder) Request() *DeviceComplianceUserOverviewRequest { + return &DeviceComplianceUserOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceUserOverviewRequest is request for DeviceComplianceUserOverview +type DeviceComplianceUserOverviewRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceUserOverview +func (r *DeviceComplianceUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceUserOverview +func (r *DeviceComplianceUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceUserOverview +func (r *DeviceComplianceUserOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceComplianceUserStatusRequestBuilder is request builder for DeviceComplianceUserStatus +type DeviceComplianceUserStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceComplianceUserStatusRequest +func (b *DeviceComplianceUserStatusRequestBuilder) Request() *DeviceComplianceUserStatusRequest { + return &DeviceComplianceUserStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceComplianceUserStatusRequest is request for DeviceComplianceUserStatus +type DeviceComplianceUserStatusRequest struct{ BaseRequest } + +// Get performs GET request for DeviceComplianceUserStatus +func (r *DeviceComplianceUserStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceComplianceUserStatus +func (r *DeviceComplianceUserStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceComplianceUserStatus +func (r *DeviceComplianceUserStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationRequestBuilder is request builder for DeviceConfiguration +type DeviceConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationRequest +func (b *DeviceConfigurationRequestBuilder) Request() *DeviceConfigurationRequest { + return &DeviceConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationRequest is request for DeviceConfiguration +type DeviceConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfiguration +func (r *DeviceConfigurationRequest) Get(ctx context.Context) (resObj *DeviceConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfiguration +func (r *DeviceConfigurationRequest) Update(ctx context.Context, reqObj *DeviceConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfiguration +func (r *DeviceConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationAssignmentRequestBuilder is request builder for DeviceConfigurationAssignment +type DeviceConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationAssignmentRequest +func (b *DeviceConfigurationAssignmentRequestBuilder) Request() *DeviceConfigurationAssignmentRequest { + return &DeviceConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationAssignmentRequest is request for DeviceConfigurationAssignment +type DeviceConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationAssignment +func (r *DeviceConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationAssignment +func (r *DeviceConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationAssignment +func (r *DeviceConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationConflictSummaryRequestBuilder is request builder for DeviceConfigurationConflictSummary +type DeviceConfigurationConflictSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationConflictSummaryRequest +func (b *DeviceConfigurationConflictSummaryRequestBuilder) Request() *DeviceConfigurationConflictSummaryRequest { + return &DeviceConfigurationConflictSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationConflictSummaryRequest is request for DeviceConfigurationConflictSummary +type DeviceConfigurationConflictSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationConflictSummary +func (r *DeviceConfigurationConflictSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationConflictSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationConflictSummary +func (r *DeviceConfigurationConflictSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationConflictSummary +func (r *DeviceConfigurationConflictSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationDeviceOverviewRequestBuilder is request builder for DeviceConfigurationDeviceOverview +type DeviceConfigurationDeviceOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationDeviceOverviewRequest +func (b *DeviceConfigurationDeviceOverviewRequestBuilder) Request() *DeviceConfigurationDeviceOverviewRequest { + return &DeviceConfigurationDeviceOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationDeviceOverviewRequest is request for DeviceConfigurationDeviceOverview +type DeviceConfigurationDeviceOverviewRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationDeviceOverview +func (r *DeviceConfigurationDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationDeviceOverview +func (r *DeviceConfigurationDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationDeviceOverview +func (r *DeviceConfigurationDeviceOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationDeviceStateSummaryRequestBuilder is request builder for DeviceConfigurationDeviceStateSummary +type DeviceConfigurationDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationDeviceStateSummaryRequest +func (b *DeviceConfigurationDeviceStateSummaryRequestBuilder) Request() *DeviceConfigurationDeviceStateSummaryRequest { + return &DeviceConfigurationDeviceStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationDeviceStateSummaryRequest is request for DeviceConfigurationDeviceStateSummary +type DeviceConfigurationDeviceStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationDeviceStateSummary +func (r *DeviceConfigurationDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationDeviceStateSummary +func (r *DeviceConfigurationDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationDeviceStateSummary +func (r *DeviceConfigurationDeviceStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationDeviceStatusRequestBuilder is request builder for DeviceConfigurationDeviceStatus +type DeviceConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationDeviceStatusRequest +func (b *DeviceConfigurationDeviceStatusRequestBuilder) Request() *DeviceConfigurationDeviceStatusRequest { + return &DeviceConfigurationDeviceStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationDeviceStatusRequest is request for DeviceConfigurationDeviceStatus +type DeviceConfigurationDeviceStatusRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationDeviceStatus +func (r *DeviceConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationDeviceStatus +func (r *DeviceConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationDeviceStatus +func (r *DeviceConfigurationDeviceStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationGroupAssignmentRequestBuilder is request builder for DeviceConfigurationGroupAssignment +type DeviceConfigurationGroupAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationGroupAssignmentRequest +func (b *DeviceConfigurationGroupAssignmentRequestBuilder) Request() *DeviceConfigurationGroupAssignmentRequest { + return &DeviceConfigurationGroupAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationGroupAssignmentRequest is request for DeviceConfigurationGroupAssignment +type DeviceConfigurationGroupAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationGroupAssignment +func (r *DeviceConfigurationGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationGroupAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationGroupAssignment +func (r *DeviceConfigurationGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationGroupAssignment +func (r *DeviceConfigurationGroupAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationStateRequestBuilder is request builder for DeviceConfigurationState +type DeviceConfigurationStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationStateRequest +func (b *DeviceConfigurationStateRequestBuilder) Request() *DeviceConfigurationStateRequest { + return &DeviceConfigurationStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationStateRequest is request for DeviceConfigurationState +type DeviceConfigurationStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationState +func (r *DeviceConfigurationStateRequest) Get(ctx context.Context) (resObj *DeviceConfigurationState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationState +func (r *DeviceConfigurationStateRequest) Update(ctx context.Context, reqObj *DeviceConfigurationState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationState +func (r *DeviceConfigurationStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationUserOverviewRequestBuilder is request builder for DeviceConfigurationUserOverview +type DeviceConfigurationUserOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationUserOverviewRequest +func (b *DeviceConfigurationUserOverviewRequestBuilder) Request() *DeviceConfigurationUserOverviewRequest { + return &DeviceConfigurationUserOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationUserOverviewRequest is request for DeviceConfigurationUserOverview +type DeviceConfigurationUserOverviewRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationUserOverview +func (r *DeviceConfigurationUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationUserOverview +func (r *DeviceConfigurationUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationUserOverview +func (r *DeviceConfigurationUserOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationUserStateSummaryRequestBuilder is request builder for DeviceConfigurationUserStateSummary +type DeviceConfigurationUserStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationUserStateSummaryRequest +func (b *DeviceConfigurationUserStateSummaryRequestBuilder) Request() *DeviceConfigurationUserStateSummaryRequest { + return &DeviceConfigurationUserStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationUserStateSummaryRequest is request for DeviceConfigurationUserStateSummary +type DeviceConfigurationUserStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationUserStateSummary +func (r *DeviceConfigurationUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationUserStateSummary +func (r *DeviceConfigurationUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationUserStateSummary +func (r *DeviceConfigurationUserStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceConfigurationUserStatusRequestBuilder is request builder for DeviceConfigurationUserStatus +type DeviceConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceConfigurationUserStatusRequest +func (b *DeviceConfigurationUserStatusRequestBuilder) Request() *DeviceConfigurationUserStatusRequest { + return &DeviceConfigurationUserStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceConfigurationUserStatusRequest is request for DeviceConfigurationUserStatus +type DeviceConfigurationUserStatusRequest struct{ BaseRequest } + +// Get performs GET request for DeviceConfigurationUserStatus +func (r *DeviceConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceConfigurationUserStatus +func (r *DeviceConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceConfigurationUserStatus +func (r *DeviceConfigurationUserStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceEnrollmentConfigurationRequestBuilder is request builder for DeviceEnrollmentConfiguration +type DeviceEnrollmentConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceEnrollmentConfigurationRequest +func (b *DeviceEnrollmentConfigurationRequestBuilder) Request() *DeviceEnrollmentConfigurationRequest { + return &DeviceEnrollmentConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceEnrollmentConfigurationRequest is request for DeviceEnrollmentConfiguration +type DeviceEnrollmentConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for DeviceEnrollmentConfiguration +func (r *DeviceEnrollmentConfigurationRequest) Get(ctx context.Context) (resObj *DeviceEnrollmentConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceEnrollmentConfiguration +func (r *DeviceEnrollmentConfigurationRequest) Update(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceEnrollmentConfiguration +func (r *DeviceEnrollmentConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceHealthScriptRequestBuilder is request builder for DeviceHealthScript +type DeviceHealthScriptRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceHealthScriptRequest +func (b *DeviceHealthScriptRequestBuilder) Request() *DeviceHealthScriptRequest { + return &DeviceHealthScriptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceHealthScriptRequest is request for DeviceHealthScript +type DeviceHealthScriptRequest struct{ BaseRequest } + +// Get performs GET request for DeviceHealthScript +func (r *DeviceHealthScriptRequest) Get(ctx context.Context) (resObj *DeviceHealthScript, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceHealthScript +func (r *DeviceHealthScriptRequest) Update(ctx context.Context, reqObj *DeviceHealthScript) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceHealthScript +func (r *DeviceHealthScriptRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceHealthScriptAssignmentRequestBuilder is request builder for DeviceHealthScriptAssignment +type DeviceHealthScriptAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceHealthScriptAssignmentRequest +func (b *DeviceHealthScriptAssignmentRequestBuilder) Request() *DeviceHealthScriptAssignmentRequest { + return &DeviceHealthScriptAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceHealthScriptAssignmentRequest is request for DeviceHealthScriptAssignment +type DeviceHealthScriptAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceHealthScriptAssignment +func (r *DeviceHealthScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceHealthScriptAssignment +func (r *DeviceHealthScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceHealthScriptAssignment +func (r *DeviceHealthScriptAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceHealthScriptDeviceStateRequestBuilder is request builder for DeviceHealthScriptDeviceState +type DeviceHealthScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceHealthScriptDeviceStateRequest +func (b *DeviceHealthScriptDeviceStateRequestBuilder) Request() *DeviceHealthScriptDeviceStateRequest { + return &DeviceHealthScriptDeviceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceHealthScriptDeviceStateRequest is request for DeviceHealthScriptDeviceState +type DeviceHealthScriptDeviceStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceHealthScriptDeviceState +func (r *DeviceHealthScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptDeviceState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceHealthScriptDeviceState +func (r *DeviceHealthScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceHealthScriptDeviceState +func (r *DeviceHealthScriptDeviceStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceHealthScriptRunSummaryRequestBuilder is request builder for DeviceHealthScriptRunSummary +type DeviceHealthScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceHealthScriptRunSummaryRequest +func (b *DeviceHealthScriptRunSummaryRequestBuilder) Request() *DeviceHealthScriptRunSummaryRequest { + return &DeviceHealthScriptRunSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceHealthScriptRunSummaryRequest is request for DeviceHealthScriptRunSummary +type DeviceHealthScriptRunSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceHealthScriptRunSummary +func (r *DeviceHealthScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptRunSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceHealthScriptRunSummary +func (r *DeviceHealthScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptRunSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceHealthScriptRunSummary +func (r *DeviceHealthScriptRunSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceInstallStateRequestBuilder is request builder for DeviceInstallState +type DeviceInstallStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceInstallStateRequest +func (b *DeviceInstallStateRequestBuilder) Request() *DeviceInstallStateRequest { + return &DeviceInstallStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceInstallStateRequest is request for DeviceInstallState +type DeviceInstallStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceInstallState +func (r *DeviceInstallStateRequest) Get(ctx context.Context) (resObj *DeviceInstallState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceInstallState +func (r *DeviceInstallStateRequest) Update(ctx context.Context, reqObj *DeviceInstallState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceInstallState +func (r *DeviceInstallStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementRequestBuilder is request builder for DeviceManagement +type DeviceManagementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementRequest +func (b *DeviceManagementRequestBuilder) Request() *DeviceManagementRequest { + return &DeviceManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementRequest is request for DeviceManagement +type DeviceManagementRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagement +func (r *DeviceManagementRequest) Get(ctx context.Context) (resObj *DeviceManagement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagement +func (r *DeviceManagementRequest) Update(ctx context.Context, reqObj *DeviceManagement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagement +func (r *DeviceManagementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementAbstractComplexSettingInstanceRequestBuilder is request builder for DeviceManagementAbstractComplexSettingInstance +type DeviceManagementAbstractComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementAbstractComplexSettingInstanceRequest +func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceRequest { + return &DeviceManagementAbstractComplexSettingInstanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementAbstractComplexSettingInstanceRequest is request for DeviceManagementAbstractComplexSettingInstance +type DeviceManagementAbstractComplexSettingInstanceRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementAbstractComplexSettingInstance +func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementAbstractComplexSettingInstance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementAbstractComplexSettingInstance +func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementAbstractComplexSettingInstance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementAbstractComplexSettingInstance +func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementAutopilotEventRequestBuilder is request builder for DeviceManagementAutopilotEvent +type DeviceManagementAutopilotEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementAutopilotEventRequest +func (b *DeviceManagementAutopilotEventRequestBuilder) Request() *DeviceManagementAutopilotEventRequest { + return &DeviceManagementAutopilotEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementAutopilotEventRequest is request for DeviceManagementAutopilotEvent +type DeviceManagementAutopilotEventRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementAutopilotEvent +func (r *DeviceManagementAutopilotEventRequest) Get(ctx context.Context) (resObj *DeviceManagementAutopilotEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementAutopilotEvent +func (r *DeviceManagementAutopilotEventRequest) Update(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementAutopilotEvent +func (r *DeviceManagementAutopilotEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementCachedReportConfigurationRequestBuilder is request builder for DeviceManagementCachedReportConfiguration +type DeviceManagementCachedReportConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementCachedReportConfigurationRequest +func (b *DeviceManagementCachedReportConfigurationRequestBuilder) Request() *DeviceManagementCachedReportConfigurationRequest { + return &DeviceManagementCachedReportConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementCachedReportConfigurationRequest is request for DeviceManagementCachedReportConfiguration +type DeviceManagementCachedReportConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementCachedReportConfiguration +func (r *DeviceManagementCachedReportConfigurationRequest) Get(ctx context.Context) (resObj *DeviceManagementCachedReportConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementCachedReportConfiguration +func (r *DeviceManagementCachedReportConfigurationRequest) Update(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementCachedReportConfiguration +func (r *DeviceManagementCachedReportConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementCollectionSettingInstanceRequestBuilder is request builder for DeviceManagementCollectionSettingInstance +type DeviceManagementCollectionSettingInstanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementCollectionSettingInstanceRequest +func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceRequest { + return &DeviceManagementCollectionSettingInstanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementCollectionSettingInstanceRequest is request for DeviceManagementCollectionSettingInstance +type DeviceManagementCollectionSettingInstanceRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementCollectionSettingInstance +func (r *DeviceManagementCollectionSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementCollectionSettingInstance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementCollectionSettingInstance +func (r *DeviceManagementCollectionSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementCollectionSettingInstance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementCollectionSettingInstance +func (r *DeviceManagementCollectionSettingInstanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementComplexSettingInstanceRequestBuilder is request builder for DeviceManagementComplexSettingInstance +type DeviceManagementComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementComplexSettingInstanceRequest +func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Request() *DeviceManagementComplexSettingInstanceRequest { + return &DeviceManagementComplexSettingInstanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementComplexSettingInstanceRequest is request for DeviceManagementComplexSettingInstance +type DeviceManagementComplexSettingInstanceRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementComplexSettingInstance +func (r *DeviceManagementComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementComplexSettingInstance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementComplexSettingInstance +func (r *DeviceManagementComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementComplexSettingInstance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementComplexSettingInstance +func (r *DeviceManagementComplexSettingInstanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementDerivedCredentialSettingsRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings +type DeviceManagementDerivedCredentialSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementDerivedCredentialSettingsRequest +func (b *DeviceManagementDerivedCredentialSettingsRequestBuilder) Request() *DeviceManagementDerivedCredentialSettingsRequest { + return &DeviceManagementDerivedCredentialSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementDerivedCredentialSettingsRequest is request for DeviceManagementDerivedCredentialSettings +type DeviceManagementDerivedCredentialSettingsRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementDerivedCredentialSettings +func (r *DeviceManagementDerivedCredentialSettingsRequest) Get(ctx context.Context) (resObj *DeviceManagementDerivedCredentialSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementDerivedCredentialSettings +func (r *DeviceManagementDerivedCredentialSettingsRequest) Update(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementDerivedCredentialSettings +func (r *DeviceManagementDerivedCredentialSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementDomainJoinConnectorRequestBuilder is request builder for DeviceManagementDomainJoinConnector +type DeviceManagementDomainJoinConnectorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementDomainJoinConnectorRequest +func (b *DeviceManagementDomainJoinConnectorRequestBuilder) Request() *DeviceManagementDomainJoinConnectorRequest { + return &DeviceManagementDomainJoinConnectorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementDomainJoinConnectorRequest is request for DeviceManagementDomainJoinConnector +type DeviceManagementDomainJoinConnectorRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementDomainJoinConnector +func (r *DeviceManagementDomainJoinConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementDomainJoinConnector, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementDomainJoinConnector +func (r *DeviceManagementDomainJoinConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementDomainJoinConnector +func (r *DeviceManagementDomainJoinConnectorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementExchangeConnectorRequestBuilder is request builder for DeviceManagementExchangeConnector +type DeviceManagementExchangeConnectorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementExchangeConnectorRequest +func (b *DeviceManagementExchangeConnectorRequestBuilder) Request() *DeviceManagementExchangeConnectorRequest { + return &DeviceManagementExchangeConnectorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementExchangeConnectorRequest is request for DeviceManagementExchangeConnector +type DeviceManagementExchangeConnectorRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementExchangeConnector +func (r *DeviceManagementExchangeConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeConnector, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementExchangeConnector +func (r *DeviceManagementExchangeConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeConnector) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementExchangeConnector +func (r *DeviceManagementExchangeConnectorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementExchangeOnPremisesPolicyRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy +type DeviceManagementExchangeOnPremisesPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementExchangeOnPremisesPolicyRequest +func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPolicyRequest { + return &DeviceManagementExchangeOnPremisesPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementExchangeOnPremisesPolicyRequest is request for DeviceManagementExchangeOnPremisesPolicy +type DeviceManagementExchangeOnPremisesPolicyRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy +func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementExchangeOnPremisesPolicy +func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementExchangeOnPremisesPolicy +func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementExportJobRequestBuilder is request builder for DeviceManagementExportJob +type DeviceManagementExportJobRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementExportJobRequest +func (b *DeviceManagementExportJobRequestBuilder) Request() *DeviceManagementExportJobRequest { + return &DeviceManagementExportJobRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementExportJobRequest is request for DeviceManagementExportJob +type DeviceManagementExportJobRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementExportJob +func (r *DeviceManagementExportJobRequest) Get(ctx context.Context) (resObj *DeviceManagementExportJob, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementExportJob +func (r *DeviceManagementExportJobRequest) Update(ctx context.Context, reqObj *DeviceManagementExportJob) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementExportJob +func (r *DeviceManagementExportJobRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentRequestBuilder is request builder for DeviceManagementIntent +type DeviceManagementIntentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentRequest +func (b *DeviceManagementIntentRequestBuilder) Request() *DeviceManagementIntentRequest { + return &DeviceManagementIntentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentRequest is request for DeviceManagementIntent +type DeviceManagementIntentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntent +func (r *DeviceManagementIntentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntent +func (r *DeviceManagementIntentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntent +func (r *DeviceManagementIntentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentAssignmentRequestBuilder is request builder for DeviceManagementIntentAssignment +type DeviceManagementIntentAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentAssignmentRequest +func (b *DeviceManagementIntentAssignmentRequestBuilder) Request() *DeviceManagementIntentAssignmentRequest { + return &DeviceManagementIntentAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentAssignmentRequest is request for DeviceManagementIntentAssignment +type DeviceManagementIntentAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentAssignment +func (r *DeviceManagementIntentAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentAssignment +func (r *DeviceManagementIntentAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentAssignment +func (r *DeviceManagementIntentAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary +type DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentDeviceSettingStateSummaryRequest +func (b *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummaryRequest { + return &DeviceManagementIntentDeviceSettingStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentDeviceSettingStateSummaryRequest is request for DeviceManagementIntentDeviceSettingStateSummary +type DeviceManagementIntentDeviceSettingStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary +func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentDeviceSettingStateSummary +func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentDeviceSettingStateSummary +func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentDeviceStateRequestBuilder is request builder for DeviceManagementIntentDeviceState +type DeviceManagementIntentDeviceStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentDeviceStateRequest +func (b *DeviceManagementIntentDeviceStateRequestBuilder) Request() *DeviceManagementIntentDeviceStateRequest { + return &DeviceManagementIntentDeviceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentDeviceStateRequest is request for DeviceManagementIntentDeviceState +type DeviceManagementIntentDeviceStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentDeviceState +func (r *DeviceManagementIntentDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentDeviceState +func (r *DeviceManagementIntentDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentDeviceState +func (r *DeviceManagementIntentDeviceStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentDeviceStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceStateSummary +type DeviceManagementIntentDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentDeviceStateSummaryRequest +func (b *DeviceManagementIntentDeviceStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceStateSummaryRequest { + return &DeviceManagementIntentDeviceStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentDeviceStateSummaryRequest is request for DeviceManagementIntentDeviceStateSummary +type DeviceManagementIntentDeviceStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentDeviceStateSummary +func (r *DeviceManagementIntentDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentDeviceStateSummary +func (r *DeviceManagementIntentDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentDeviceStateSummary +func (r *DeviceManagementIntentDeviceStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentSettingCategoryRequestBuilder is request builder for DeviceManagementIntentSettingCategory +type DeviceManagementIntentSettingCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentSettingCategoryRequest +func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Request() *DeviceManagementIntentSettingCategoryRequest { + return &DeviceManagementIntentSettingCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentSettingCategoryRequest is request for DeviceManagementIntentSettingCategory +type DeviceManagementIntentSettingCategoryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentSettingCategory +func (r *DeviceManagementIntentSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentSettingCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentSettingCategory +func (r *DeviceManagementIntentSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentSettingCategory +func (r *DeviceManagementIntentSettingCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentUserStateRequestBuilder is request builder for DeviceManagementIntentUserState +type DeviceManagementIntentUserStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentUserStateRequest +func (b *DeviceManagementIntentUserStateRequestBuilder) Request() *DeviceManagementIntentUserStateRequest { + return &DeviceManagementIntentUserStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentUserStateRequest is request for DeviceManagementIntentUserState +type DeviceManagementIntentUserStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentUserState +func (r *DeviceManagementIntentUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentUserState +func (r *DeviceManagementIntentUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentUserState +func (r *DeviceManagementIntentUserStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementIntentUserStateSummaryRequestBuilder is request builder for DeviceManagementIntentUserStateSummary +type DeviceManagementIntentUserStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementIntentUserStateSummaryRequest +func (b *DeviceManagementIntentUserStateSummaryRequestBuilder) Request() *DeviceManagementIntentUserStateSummaryRequest { + return &DeviceManagementIntentUserStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementIntentUserStateSummaryRequest is request for DeviceManagementIntentUserStateSummary +type DeviceManagementIntentUserStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementIntentUserStateSummary +func (r *DeviceManagementIntentUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementIntentUserStateSummary +func (r *DeviceManagementIntentUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementIntentUserStateSummary +func (r *DeviceManagementIntentUserStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementPartnerRequestBuilder is request builder for DeviceManagementPartner +type DeviceManagementPartnerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementPartnerRequest +func (b *DeviceManagementPartnerRequestBuilder) Request() *DeviceManagementPartnerRequest { + return &DeviceManagementPartnerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementPartnerRequest is request for DeviceManagementPartner +type DeviceManagementPartnerRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementPartner +func (r *DeviceManagementPartnerRequest) Get(ctx context.Context) (resObj *DeviceManagementPartner, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementPartner +func (r *DeviceManagementPartnerRequest) Update(ctx context.Context, reqObj *DeviceManagementPartner) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementPartner +func (r *DeviceManagementPartnerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementReportScheduleRequestBuilder is request builder for DeviceManagementReportSchedule +type DeviceManagementReportScheduleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementReportScheduleRequest +func (b *DeviceManagementReportScheduleRequestBuilder) Request() *DeviceManagementReportScheduleRequest { + return &DeviceManagementReportScheduleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementReportScheduleRequest is request for DeviceManagementReportSchedule +type DeviceManagementReportScheduleRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementReportSchedule +func (r *DeviceManagementReportScheduleRequest) Get(ctx context.Context) (resObj *DeviceManagementReportSchedule, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementReportSchedule +func (r *DeviceManagementReportScheduleRequest) Update(ctx context.Context, reqObj *DeviceManagementReportSchedule) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementReportSchedule +func (r *DeviceManagementReportScheduleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementReportsRequestBuilder is request builder for DeviceManagementReports +type DeviceManagementReportsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementReportsRequest +func (b *DeviceManagementReportsRequestBuilder) Request() *DeviceManagementReportsRequest { + return &DeviceManagementReportsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementReportsRequest is request for DeviceManagementReports +type DeviceManagementReportsRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementReports +func (r *DeviceManagementReportsRequest) Get(ctx context.Context) (resObj *DeviceManagementReports, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementReports +func (r *DeviceManagementReportsRequest) Update(ctx context.Context, reqObj *DeviceManagementReports) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementReports +func (r *DeviceManagementReportsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptRequestBuilder is request builder for DeviceManagementScript +type DeviceManagementScriptRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptRequest +func (b *DeviceManagementScriptRequestBuilder) Request() *DeviceManagementScriptRequest { + return &DeviceManagementScriptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptRequest is request for DeviceManagementScript +type DeviceManagementScriptRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScript +func (r *DeviceManagementScriptRequest) Get(ctx context.Context) (resObj *DeviceManagementScript, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScript +func (r *DeviceManagementScriptRequest) Update(ctx context.Context, reqObj *DeviceManagementScript) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScript +func (r *DeviceManagementScriptRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptAssignmentRequestBuilder is request builder for DeviceManagementScriptAssignment +type DeviceManagementScriptAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptAssignmentRequest +func (b *DeviceManagementScriptAssignmentRequestBuilder) Request() *DeviceManagementScriptAssignmentRequest { + return &DeviceManagementScriptAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptAssignmentRequest is request for DeviceManagementScriptAssignment +type DeviceManagementScriptAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScriptAssignment +func (r *DeviceManagementScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScriptAssignment +func (r *DeviceManagementScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScriptAssignment +func (r *DeviceManagementScriptAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptDeviceStateRequestBuilder is request builder for DeviceManagementScriptDeviceState +type DeviceManagementScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptDeviceStateRequest +func (b *DeviceManagementScriptDeviceStateRequestBuilder) Request() *DeviceManagementScriptDeviceStateRequest { + return &DeviceManagementScriptDeviceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptDeviceStateRequest is request for DeviceManagementScriptDeviceState +type DeviceManagementScriptDeviceStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScriptDeviceState +func (r *DeviceManagementScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptDeviceState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScriptDeviceState +func (r *DeviceManagementScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScriptDeviceState +func (r *DeviceManagementScriptDeviceStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptGroupAssignmentRequestBuilder is request builder for DeviceManagementScriptGroupAssignment +type DeviceManagementScriptGroupAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptGroupAssignmentRequest +func (b *DeviceManagementScriptGroupAssignmentRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentRequest { + return &DeviceManagementScriptGroupAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptGroupAssignmentRequest is request for DeviceManagementScriptGroupAssignment +type DeviceManagementScriptGroupAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScriptGroupAssignment +func (r *DeviceManagementScriptGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptGroupAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScriptGroupAssignment +func (r *DeviceManagementScriptGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScriptGroupAssignment +func (r *DeviceManagementScriptGroupAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptRunSummaryRequestBuilder is request builder for DeviceManagementScriptRunSummary +type DeviceManagementScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptRunSummaryRequest +func (b *DeviceManagementScriptRunSummaryRequestBuilder) Request() *DeviceManagementScriptRunSummaryRequest { + return &DeviceManagementScriptRunSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptRunSummaryRequest is request for DeviceManagementScriptRunSummary +type DeviceManagementScriptRunSummaryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScriptRunSummary +func (r *DeviceManagementScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptRunSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScriptRunSummary +func (r *DeviceManagementScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptRunSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScriptRunSummary +func (r *DeviceManagementScriptRunSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementScriptUserStateRequestBuilder is request builder for DeviceManagementScriptUserState +type DeviceManagementScriptUserStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementScriptUserStateRequest +func (b *DeviceManagementScriptUserStateRequestBuilder) Request() *DeviceManagementScriptUserStateRequest { + return &DeviceManagementScriptUserStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementScriptUserStateRequest is request for DeviceManagementScriptUserState +type DeviceManagementScriptUserStateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementScriptUserState +func (r *DeviceManagementScriptUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptUserState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementScriptUserState +func (r *DeviceManagementScriptUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptUserState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementScriptUserState +func (r *DeviceManagementScriptUserStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementSettingCategoryRequestBuilder is request builder for DeviceManagementSettingCategory +type DeviceManagementSettingCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementSettingCategoryRequest +func (b *DeviceManagementSettingCategoryRequestBuilder) Request() *DeviceManagementSettingCategoryRequest { + return &DeviceManagementSettingCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementSettingCategoryRequest is request for DeviceManagementSettingCategory +type DeviceManagementSettingCategoryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementSettingCategory +func (r *DeviceManagementSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementSettingCategory +func (r *DeviceManagementSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementSettingCategory +func (r *DeviceManagementSettingCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementSettingDefinitionRequestBuilder is request builder for DeviceManagementSettingDefinition +type DeviceManagementSettingDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementSettingDefinitionRequest +func (b *DeviceManagementSettingDefinitionRequestBuilder) Request() *DeviceManagementSettingDefinitionRequest { + return &DeviceManagementSettingDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementSettingDefinitionRequest is request for DeviceManagementSettingDefinition +type DeviceManagementSettingDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementSettingDefinition +func (r *DeviceManagementSettingDefinitionRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementSettingDefinition +func (r *DeviceManagementSettingDefinitionRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementSettingDefinition +func (r *DeviceManagementSettingDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementSettingInstanceRequestBuilder is request builder for DeviceManagementSettingInstance +type DeviceManagementSettingInstanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementSettingInstanceRequest +func (b *DeviceManagementSettingInstanceRequestBuilder) Request() *DeviceManagementSettingInstanceRequest { + return &DeviceManagementSettingInstanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementSettingInstanceRequest is request for DeviceManagementSettingInstance +type DeviceManagementSettingInstanceRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementSettingInstance +func (r *DeviceManagementSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingInstance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementSettingInstance +func (r *DeviceManagementSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingInstance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementSettingInstance +func (r *DeviceManagementSettingInstanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementTemplateRequestBuilder is request builder for DeviceManagementTemplate +type DeviceManagementTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementTemplateRequest +func (b *DeviceManagementTemplateRequestBuilder) Request() *DeviceManagementTemplateRequest { + return &DeviceManagementTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementTemplateRequest is request for DeviceManagementTemplate +type DeviceManagementTemplateRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementTemplate +func (r *DeviceManagementTemplateRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementTemplate +func (r *DeviceManagementTemplateRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementTemplate +func (r *DeviceManagementTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementTemplateSettingCategoryRequestBuilder is request builder for DeviceManagementTemplateSettingCategory +type DeviceManagementTemplateSettingCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementTemplateSettingCategoryRequest +func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRequest { + return &DeviceManagementTemplateSettingCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementTemplateSettingCategoryRequest is request for DeviceManagementTemplateSettingCategory +type DeviceManagementTemplateSettingCategoryRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementTemplateSettingCategory +func (r *DeviceManagementTemplateSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplateSettingCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementTemplateSettingCategory +func (r *DeviceManagementTemplateSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementTemplateSettingCategory +func (r *DeviceManagementTemplateSettingCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DeviceManagementTroubleshootingEventRequestBuilder is request builder for DeviceManagementTroubleshootingEvent +type DeviceManagementTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DeviceManagementTroubleshootingEventRequest +func (b *DeviceManagementTroubleshootingEventRequestBuilder) Request() *DeviceManagementTroubleshootingEventRequest { + return &DeviceManagementTroubleshootingEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DeviceManagementTroubleshootingEventRequest is request for DeviceManagementTroubleshootingEvent +type DeviceManagementTroubleshootingEventRequest struct{ BaseRequest } + +// Get performs GET request for DeviceManagementTroubleshootingEvent +func (r *DeviceManagementTroubleshootingEventRequest) Get(ctx context.Context) (resObj *DeviceManagementTroubleshootingEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DeviceManagementTroubleshootingEvent +func (r *DeviceManagementTroubleshootingEventRequest) Update(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DeviceManagementTroubleshootingEvent +func (r *DeviceManagementTroubleshootingEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter) *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceCompliancePolicyCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder) Request() *DeviceCompliancePolicyCollectionHasPayloadLinksRequest { + return &DeviceCompliancePolicyCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder struct{ BaseRequestBuilder } + +// RefreshDeviceComplianceReportSummarization action undocumented +func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) RefreshDeviceComplianceReportSummarization(reqObj *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter) *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder { + bb := &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/refreshDeviceComplianceReportSummarization" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest struct{ BaseRequest } + +// +func (b *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder) Request() *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest { + return &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// HasPayloadLinks action undocumented +func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceConfigurationCollectionHasPayloadLinksRequest { + return &DeviceConfigurationCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder struct{ BaseRequestBuilder } + +// GetTargetedUsersAndDevices action undocumented +func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder { + bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetTargetedUsersAndDevices action undocumented +func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder { + bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest struct{ BaseRequest } + +// +func (b *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder) Request() *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest { + return &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationTargetedUserAndDevice, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationTargetedUserAndDevice + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationTargetedUserAndDevice + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) PostN(ctx context.Context, n int) ([]DeviceConfigurationTargetedUserAndDevice, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Post(ctx context.Context) ([]DeviceConfigurationTargetedUserAndDevice, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// HasPayloadLinks action undocumented +func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest { + return &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceManagementScriptCollectionHasPayloadLinksRequestParameter) *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder { + bb := &DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementScriptCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder) Request() *DeviceManagementScriptCollectionHasPayloadLinksRequest { + return &DeviceManagementScriptCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder struct{ BaseRequestBuilder } + +// SyncMicrosoftStoreForBusinessApps action undocumented +func (b *DeviceAppManagementRequestBuilder) SyncMicrosoftStoreForBusinessApps(reqObj *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter) *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder { + bb := &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncMicrosoftStoreForBusinessApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest struct{ BaseRequest } + +// +func (b *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder) Request() *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest { + return &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceAppManagementTaskUpdateStatusRequestBuilder struct{ BaseRequestBuilder } + +// UpdateStatus action undocumented +func (b *DeviceAppManagementTaskRequestBuilder) UpdateStatus(reqObj *DeviceAppManagementTaskUpdateStatusRequestParameter) *DeviceAppManagementTaskUpdateStatusRequestBuilder { + bb := &DeviceAppManagementTaskUpdateStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateStatus" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceAppManagementTaskUpdateStatusRequest struct{ BaseRequest } + +// +func (b *DeviceAppManagementTaskUpdateStatusRequestBuilder) Request() *DeviceAppManagementTaskUpdateStatusRequest { + return &DeviceAppManagementTaskUpdateStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceAppManagementTaskUpdateStatusRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceCompliancePolicyAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceCompliancePolicyRequestBuilder) Assign(reqObj *DeviceCompliancePolicyAssignRequestParameter) *DeviceCompliancePolicyAssignRequestBuilder { + bb := &DeviceCompliancePolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceCompliancePolicyAssignRequest struct{ BaseRequest } + +// +func (b *DeviceCompliancePolicyAssignRequestBuilder) Request() *DeviceCompliancePolicyAssignRequest { + return &DeviceCompliancePolicyAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceCompliancePolicyAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceCompliancePolicyAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceCompliancePolicyAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceCompliancePolicyAssignRequest) PostN(ctx context.Context, n int) ([]DeviceCompliancePolicyAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceCompliancePolicyAssignRequest) Post(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder struct{ BaseRequestBuilder } + +// ScheduleActionsForRules action undocumented +func (b *DeviceCompliancePolicyRequestBuilder) ScheduleActionsForRules(reqObj *DeviceCompliancePolicyScheduleActionsForRulesRequestParameter) *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder { + bb := &DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/scheduleActionsForRules" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceCompliancePolicyScheduleActionsForRulesRequest struct{ BaseRequest } + +// +func (b *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder) Request() *DeviceCompliancePolicyScheduleActionsForRulesRequest { + return &DeviceCompliancePolicyScheduleActionsForRulesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceCompliancePolicyScheduleActionsForRulesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceConfigurationRequestBuilder) Assign(reqObj *DeviceConfigurationAssignRequestParameter) *DeviceConfigurationAssignRequestBuilder { + bb := &DeviceConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *DeviceConfigurationAssignRequestBuilder) Request() *DeviceConfigurationAssignRequest { + return &DeviceConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DeviceConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DeviceConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DeviceConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]DeviceConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DeviceConfigurationAssignRequest) Post(ctx context.Context) ([]DeviceConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder struct{ BaseRequestBuilder } + +// WindowsPrivacyAccessControls action undocumented +func (b *DeviceConfigurationRequestBuilder) WindowsPrivacyAccessControls(reqObj *DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter) *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder { + bb := &DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/windowsPrivacyAccessControls" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceConfigurationWindowsPrivacyAccessControlsRequest struct{ BaseRequest } + +// +func (b *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder) Request() *DeviceConfigurationWindowsPrivacyAccessControlsRequest { + return &DeviceConfigurationWindowsPrivacyAccessControlsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceConfigurationWindowsPrivacyAccessControlsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder struct{ BaseRequestBuilder } + +// AssignedAccessMultiModeProfiles action undocumented +func (b *DeviceConfigurationRequestBuilder) AssignedAccessMultiModeProfiles(reqObj *DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter) *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder { + bb := &DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assignedAccessMultiModeProfiles" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceConfigurationAssignedAccessMultiModeProfilesRequest struct{ BaseRequest } + +// +func (b *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder) Request() *DeviceConfigurationAssignedAccessMultiModeProfilesRequest { + return &DeviceConfigurationAssignedAccessMultiModeProfilesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceConfigurationAssignedAccessMultiModeProfilesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceEnrollmentConfigurationSetPriorityRequestBuilder struct{ BaseRequestBuilder } + +// SetPriority action undocumented +func (b *DeviceEnrollmentConfigurationRequestBuilder) SetPriority(reqObj *DeviceEnrollmentConfigurationSetPriorityRequestParameter) *DeviceEnrollmentConfigurationSetPriorityRequestBuilder { + bb := &DeviceEnrollmentConfigurationSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setPriority" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceEnrollmentConfigurationSetPriorityRequest struct{ BaseRequest } + +// +func (b *DeviceEnrollmentConfigurationSetPriorityRequestBuilder) Request() *DeviceEnrollmentConfigurationSetPriorityRequest { + return &DeviceEnrollmentConfigurationSetPriorityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceEnrollmentConfigurationSetPriorityRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceEnrollmentConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceEnrollmentConfigurationRequestBuilder) Assign(reqObj *DeviceEnrollmentConfigurationAssignRequestParameter) *DeviceEnrollmentConfigurationAssignRequestBuilder { + bb := &DeviceEnrollmentConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceEnrollmentConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *DeviceEnrollmentConfigurationAssignRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignRequest { + return &DeviceEnrollmentConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceEnrollmentConfigurationAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceHealthScriptAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceHealthScriptRequestBuilder) Assign(reqObj *DeviceHealthScriptAssignRequestParameter) *DeviceHealthScriptAssignRequestBuilder { + bb := &DeviceHealthScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceHealthScriptAssignRequest struct{ BaseRequest } + +// +func (b *DeviceHealthScriptAssignRequestBuilder) Request() *DeviceHealthScriptAssignRequest { + return &DeviceHealthScriptAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceHealthScriptAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementEnableLegacyPcManagementRequestBuilder struct{ BaseRequestBuilder } + +// EnableLegacyPcManagement action undocumented +func (b *DeviceManagementRequestBuilder) EnableLegacyPcManagement(reqObj *DeviceManagementEnableLegacyPcManagementRequestParameter) *DeviceManagementEnableLegacyPcManagementRequestBuilder { + bb := &DeviceManagementEnableLegacyPcManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/enableLegacyPcManagement" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementEnableLegacyPcManagementRequest struct{ BaseRequest } + +// +func (b *DeviceManagementEnableLegacyPcManagementRequestBuilder) Request() *DeviceManagementEnableLegacyPcManagementRequest { + return &DeviceManagementEnableLegacyPcManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementEnableLegacyPcManagementRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder struct{ BaseRequestBuilder } + +// EnableAndroidDeviceAdministratorEnrollment action undocumented +func (b *DeviceManagementRequestBuilder) EnableAndroidDeviceAdministratorEnrollment(reqObj *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter) *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder { + bb := &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/enableAndroidDeviceAdministratorEnrollment" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest struct{ BaseRequest } + +// +func (b *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder) Request() *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest { + return &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder } + +// SendCustomNotificationToCompanyPortal action undocumented +func (b *DeviceManagementRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter) *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder { + bb := &DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest } + +// +func (b *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder) Request() *DeviceManagementSendCustomNotificationToCompanyPortalRequest { + return &DeviceManagementSendCustomNotificationToCompanyPortalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementExchangeConnectorSyncRequestBuilder struct{ BaseRequestBuilder } + +// Sync action undocumented +func (b *DeviceManagementExchangeConnectorRequestBuilder) Sync(reqObj *DeviceManagementExchangeConnectorSyncRequestParameter) *DeviceManagementExchangeConnectorSyncRequestBuilder { + bb := &DeviceManagementExchangeConnectorSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sync" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementExchangeConnectorSyncRequest struct{ BaseRequest } + +// +func (b *DeviceManagementExchangeConnectorSyncRequestBuilder) Request() *DeviceManagementExchangeConnectorSyncRequest { + return &DeviceManagementExchangeConnectorSyncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementExchangeConnectorSyncRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementIntentUpdateSettingsRequestBuilder struct{ BaseRequestBuilder } + +// UpdateSettings action undocumented +func (b *DeviceManagementIntentRequestBuilder) UpdateSettings(reqObj *DeviceManagementIntentUpdateSettingsRequestParameter) *DeviceManagementIntentUpdateSettingsRequestBuilder { + bb := &DeviceManagementIntentUpdateSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateSettings" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementIntentUpdateSettingsRequest struct{ BaseRequest } + +// +func (b *DeviceManagementIntentUpdateSettingsRequestBuilder) Request() *DeviceManagementIntentUpdateSettingsRequest { + return &DeviceManagementIntentUpdateSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementIntentUpdateSettingsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementIntentMigrateToTemplateRequestBuilder struct{ BaseRequestBuilder } + +// MigrateToTemplate action undocumented +func (b *DeviceManagementIntentRequestBuilder) MigrateToTemplate(reqObj *DeviceManagementIntentMigrateToTemplateRequestParameter) *DeviceManagementIntentMigrateToTemplateRequestBuilder { + bb := &DeviceManagementIntentMigrateToTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/migrateToTemplate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementIntentMigrateToTemplateRequest struct{ BaseRequest } + +// +func (b *DeviceManagementIntentMigrateToTemplateRequestBuilder) Request() *DeviceManagementIntentMigrateToTemplateRequest { + return &DeviceManagementIntentMigrateToTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementIntentMigrateToTemplateRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementIntentAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceManagementIntentRequestBuilder) Assign(reqObj *DeviceManagementIntentAssignRequestParameter) *DeviceManagementIntentAssignRequestBuilder { + bb := &DeviceManagementIntentAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementIntentAssignRequest struct{ BaseRequest } + +// +func (b *DeviceManagementIntentAssignRequestBuilder) Request() *DeviceManagementIntentAssignRequest { + return &DeviceManagementIntentAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementIntentAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder struct{ BaseRequestBuilder } + +// GetDeviceNonComplianceReport action undocumented +func (b *DeviceManagementReportsRequestBuilder) GetDeviceNonComplianceReport(reqObj *DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter) *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder { + bb := &DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getDeviceNonComplianceReport" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementReportsGetDeviceNonComplianceReportRequest struct{ BaseRequest } + +// +func (b *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetDeviceNonComplianceReportRequest { + return &DeviceManagementReportsGetDeviceNonComplianceReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementReportsGetDeviceNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder struct{ BaseRequestBuilder } + +// GetPolicyNonComplianceReport action undocumented +func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceReport(reqObj *DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder { + bb := &DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceReport" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementReportsGetPolicyNonComplianceReportRequest struct{ BaseRequest } + +// +func (b *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceReportRequest { + return &DeviceManagementReportsGetPolicyNonComplianceReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementReportsGetPolicyNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder struct{ BaseRequestBuilder } + +// GetPolicyNonComplianceMetadata action undocumented +func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceMetadata(reqObj *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder { + bb := &DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceMetadata" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementReportsGetPolicyNonComplianceMetadataRequest struct{ BaseRequest } + +// +func (b *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest { + return &DeviceManagementReportsGetPolicyNonComplianceMetadataRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest) Post(ctx context.Context) (resObj *Stream, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DeviceManagementReportsGetHistoricalReportRequestBuilder struct{ BaseRequestBuilder } + +// GetHistoricalReport action undocumented +func (b *DeviceManagementReportsRequestBuilder) GetHistoricalReport(reqObj *DeviceManagementReportsGetHistoricalReportRequestParameter) *DeviceManagementReportsGetHistoricalReportRequestBuilder { + bb := &DeviceManagementReportsGetHistoricalReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getHistoricalReport" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementReportsGetHistoricalReportRequest struct{ BaseRequest } + +// +func (b *DeviceManagementReportsGetHistoricalReportRequestBuilder) Request() *DeviceManagementReportsGetHistoricalReportRequest { + return &DeviceManagementReportsGetHistoricalReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementReportsGetHistoricalReportRequest) Post(ctx context.Context) (resObj *Stream, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DeviceManagementReportsGetCachedReportRequestBuilder struct{ BaseRequestBuilder } + +// GetCachedReport action undocumented +func (b *DeviceManagementReportsRequestBuilder) GetCachedReport(reqObj *DeviceManagementReportsGetCachedReportRequestParameter) *DeviceManagementReportsGetCachedReportRequestBuilder { + bb := &DeviceManagementReportsGetCachedReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getCachedReport" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementReportsGetCachedReportRequest struct{ BaseRequest } + +// +func (b *DeviceManagementReportsGetCachedReportRequestBuilder) Request() *DeviceManagementReportsGetCachedReportRequest { + return &DeviceManagementReportsGetCachedReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementReportsGetCachedReportRequest) Post(ctx context.Context) (resObj *Stream, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DeviceManagementScriptAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *DeviceManagementScriptRequestBuilder) Assign(reqObj *DeviceManagementScriptAssignRequestParameter) *DeviceManagementScriptAssignRequestBuilder { + bb := &DeviceManagementScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementScriptAssignRequest struct{ BaseRequest } + +// +func (b *DeviceManagementScriptAssignRequestBuilder) Request() *DeviceManagementScriptAssignRequest { + return &DeviceManagementScriptAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementScriptAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DeviceManagementTemplateCreateInstanceRequestBuilder struct{ BaseRequestBuilder } + +// CreateInstance action undocumented +func (b *DeviceManagementTemplateRequestBuilder) CreateInstance(reqObj *DeviceManagementTemplateCreateInstanceRequestParameter) *DeviceManagementTemplateCreateInstanceRequestBuilder { + bb := &DeviceManagementTemplateCreateInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createInstance" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DeviceManagementTemplateCreateInstanceRequest struct{ BaseRequest } + +// +func (b *DeviceManagementTemplateCreateInstanceRequestBuilder) Request() *DeviceManagementTemplateCreateInstanceRequest { + return &DeviceManagementTemplateCreateInstanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DeviceManagementTemplateCreateInstanceRequest) Post(ctx context.Context) (resObj *DeviceManagementIntent, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go new file mode 100644 index 00000000..cd0afa8c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DimensionRequestBuilder is request builder for Dimension +type DimensionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DimensionRequest +func (b *DimensionRequestBuilder) Request() *DimensionRequest { + return &DimensionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DimensionRequest is request for Dimension +type DimensionRequest struct{ BaseRequest } + +// Get performs GET request for Dimension +func (r *DimensionRequest) Get(ctx context.Context) (resObj *Dimension, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Dimension +func (r *DimensionRequest) Update(ctx context.Context, reqObj *Dimension) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Dimension +func (r *DimensionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DimensionValueRequestBuilder is request builder for DimensionValue +type DimensionValueRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DimensionValueRequest +func (b *DimensionValueRequestBuilder) Request() *DimensionValueRequest { + return &DimensionValueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DimensionValueRequest is request for DimensionValue +type DimensionValueRequest struct{ BaseRequest } + +// Get performs GET request for DimensionValue +func (r *DimensionValueRequest) Get(ctx context.Context) (resObj *DimensionValue, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DimensionValue +func (r *DimensionValueRequest) Update(ctx context.Context, reqObj *DimensionValue) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DimensionValue +func (r *DimensionValueRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go new file mode 100644 index 00000000..3b17c5d5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go @@ -0,0 +1,1653 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DirectoryRequestBuilder is request builder for Directory +type DirectoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryRequest +func (b *DirectoryRequestBuilder) Request() *DirectoryRequest { + return &DirectoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryRequest is request for Directory +type DirectoryRequest struct{ BaseRequest } + +// Get performs GET request for Directory +func (r *DirectoryRequest) Get(ctx context.Context) (resObj *Directory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Directory +func (r *DirectoryRequest) Update(ctx context.Context, reqObj *Directory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Directory +func (r *DirectoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectoryAuditRequestBuilder is request builder for DirectoryAudit +type DirectoryAuditRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryAuditRequest +func (b *DirectoryAuditRequestBuilder) Request() *DirectoryAuditRequest { + return &DirectoryAuditRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryAuditRequest is request for DirectoryAudit +type DirectoryAuditRequest struct{ BaseRequest } + +// Get performs GET request for DirectoryAudit +func (r *DirectoryAuditRequest) Get(ctx context.Context) (resObj *DirectoryAudit, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectoryAudit +func (r *DirectoryAuditRequest) Update(ctx context.Context, reqObj *DirectoryAudit) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectoryAudit +func (r *DirectoryAuditRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectoryDefinitionRequestBuilder is request builder for DirectoryDefinition +type DirectoryDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryDefinitionRequest +func (b *DirectoryDefinitionRequestBuilder) Request() *DirectoryDefinitionRequest { + return &DirectoryDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryDefinitionRequest is request for DirectoryDefinition +type DirectoryDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for DirectoryDefinition +func (r *DirectoryDefinitionRequest) Get(ctx context.Context) (resObj *DirectoryDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectoryDefinition +func (r *DirectoryDefinitionRequest) Update(ctx context.Context, reqObj *DirectoryDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectoryDefinition +func (r *DirectoryDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectoryObjectRequestBuilder is request builder for DirectoryObject +type DirectoryObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryObjectRequest +func (b *DirectoryObjectRequestBuilder) Request() *DirectoryObjectRequest { + return &DirectoryObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryObjectRequest is request for DirectoryObject +type DirectoryObjectRequest struct{ BaseRequest } + +// Get performs GET request for DirectoryObject +func (r *DirectoryObjectRequest) Get(ctx context.Context) (resObj *DirectoryObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectoryObject +func (r *DirectoryObjectRequest) Update(ctx context.Context, reqObj *DirectoryObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectoryObject +func (r *DirectoryObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectoryRoleRequestBuilder is request builder for DirectoryRole +type DirectoryRoleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryRoleRequest +func (b *DirectoryRoleRequestBuilder) Request() *DirectoryRoleRequest { + return &DirectoryRoleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryRoleRequest is request for DirectoryRole +type DirectoryRoleRequest struct{ BaseRequest } + +// Get performs GET request for DirectoryRole +func (r *DirectoryRoleRequest) Get(ctx context.Context) (resObj *DirectoryRole, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectoryRole +func (r *DirectoryRoleRequest) Update(ctx context.Context, reqObj *DirectoryRole) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectoryRole +func (r *DirectoryRoleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectoryRoleTemplateRequestBuilder is request builder for DirectoryRoleTemplate +type DirectoryRoleTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectoryRoleTemplateRequest +func (b *DirectoryRoleTemplateRequestBuilder) Request() *DirectoryRoleTemplateRequest { + return &DirectoryRoleTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectoryRoleTemplateRequest is request for DirectoryRoleTemplate +type DirectoryRoleTemplateRequest struct{ BaseRequest } + +// Get performs GET request for DirectoryRoleTemplate +func (r *DirectoryRoleTemplateRequest) Get(ctx context.Context) (resObj *DirectoryRoleTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectoryRoleTemplate +func (r *DirectoryRoleTemplateRequest) Update(ctx context.Context, reqObj *DirectoryRoleTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectoryRoleTemplate +func (r *DirectoryRoleTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectorySettingRequestBuilder is request builder for DirectorySetting +type DirectorySettingRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectorySettingRequest +func (b *DirectorySettingRequestBuilder) Request() *DirectorySettingRequest { + return &DirectorySettingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectorySettingRequest is request for DirectorySetting +type DirectorySettingRequest struct{ BaseRequest } + +// Get performs GET request for DirectorySetting +func (r *DirectorySettingRequest) Get(ctx context.Context) (resObj *DirectorySetting, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectorySetting +func (r *DirectorySettingRequest) Update(ctx context.Context, reqObj *DirectorySetting) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectorySetting +func (r *DirectorySettingRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DirectorySettingTemplateRequestBuilder is request builder for DirectorySettingTemplate +type DirectorySettingTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DirectorySettingTemplateRequest +func (b *DirectorySettingTemplateRequestBuilder) Request() *DirectorySettingTemplateRequest { + return &DirectorySettingTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DirectorySettingTemplateRequest is request for DirectorySettingTemplate +type DirectorySettingTemplateRequest struct{ BaseRequest } + +// Get performs GET request for DirectorySettingTemplate +func (r *DirectorySettingTemplateRequest) Get(ctx context.Context) (resObj *DirectorySettingTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DirectorySettingTemplate +func (r *DirectorySettingTemplateRequest) Update(ctx context.Context, reqObj *DirectorySettingTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DirectorySettingTemplate +func (r *DirectorySettingTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DirectoryObjectCollectionGetByIDsRequestBuilder struct{ BaseRequestBuilder } + +// GetByIDs action undocumented +func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ApplicationOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ApplicationPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DeviceMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DirectoryRoleMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupAcceptedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupRejectedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *GroupTransitiveMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *OrgContactDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *OrgContactMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *PolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserOwnedDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserRegisteredDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetByIDs action undocumented +func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder { + bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getByIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectCollectionGetByIDsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectCollectionGetByIDsRequestBuilder) Request() *DirectoryObjectCollectionGetByIDsRequest { + return &DirectoryObjectCollectionGetByIDsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectCollectionGetByIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []DirectoryObject + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []DirectoryObject + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DirectoryObjectCollectionGetByIDsRequest) PostN(ctx context.Context, n int) ([]DirectoryObject, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DirectoryObjectCollectionGetByIDsRequest) Post(ctx context.Context) ([]DirectoryObject, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DirectoryObjectCollectionValidatePropertiesRequestBuilder struct{ BaseRequestBuilder } + +// ValidateProperties action undocumented +func (b *AdministrativeUnitMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ApplicationOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ApplicationPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DeviceMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DeviceRegisteredUsersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DirectoryDeletedItemsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DirectoryRoleMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *DomainDomainNameReferencesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupAcceptedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupRejectedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *GroupTransitiveMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *OrgContactDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *OrgContactMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *PolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserOwnedDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserRegisteredDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ValidateProperties action undocumented +func (b *UserTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder { + bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectCollectionValidatePropertiesRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectCollectionValidatePropertiesRequestBuilder) Request() *DirectoryObjectCollectionValidatePropertiesRequest { + return &DirectoryObjectCollectionValidatePropertiesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectCollectionValidatePropertiesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder struct{ BaseRequestBuilder } + +// GetUserOwnedObjects action undocumented +func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ApplicationOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ApplicationPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DeviceMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DirectoryRoleMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupAcceptedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupRejectedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *GroupTransitiveMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *OrgContactDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *OrgContactMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *PolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserOwnedDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserRegisteredDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetUserOwnedObjects action undocumented +func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder { + bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectCollectionGetUserOwnedObjectsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder) Request() *DirectoryObjectCollectionGetUserOwnedObjectsRequest { + return &DirectoryObjectCollectionGetUserOwnedObjectsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectCollectionGetUserOwnedObjectsRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DirectoryDefinitionDiscoverRequestBuilder struct{ BaseRequestBuilder } + +// Discover action undocumented +func (b *DirectoryDefinitionRequestBuilder) Discover(reqObj *DirectoryDefinitionDiscoverRequestParameter) *DirectoryDefinitionDiscoverRequestBuilder { + bb := &DirectoryDefinitionDiscoverRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/discover" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryDefinitionDiscoverRequest struct{ BaseRequest } + +// +func (b *DirectoryDefinitionDiscoverRequestBuilder) Request() *DirectoryDefinitionDiscoverRequest { + return &DirectoryDefinitionDiscoverRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryDefinitionDiscoverRequest) Post(ctx context.Context) (resObj *DirectoryDefinition, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DirectoryObjectCheckMemberGroupsRequestBuilder struct{ BaseRequestBuilder } + +// CheckMemberGroups action undocumented +func (b *DirectoryObjectRequestBuilder) CheckMemberGroups(reqObj *DirectoryObjectCheckMemberGroupsRequestParameter) *DirectoryObjectCheckMemberGroupsRequestBuilder { + bb := &DirectoryObjectCheckMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/checkMemberGroups" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectCheckMemberGroupsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectCheckMemberGroupsRequestBuilder) Request() *DirectoryObjectCheckMemberGroupsRequest { + return &DirectoryObjectCheckMemberGroupsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectCheckMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []string + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []string + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DirectoryObjectCheckMemberGroupsRequest) PostN(ctx context.Context, n int) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DirectoryObjectCheckMemberGroupsRequest) Post(ctx context.Context) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DirectoryObjectCheckMemberObjectsRequestBuilder struct{ BaseRequestBuilder } + +// CheckMemberObjects action undocumented +func (b *DirectoryObjectRequestBuilder) CheckMemberObjects(reqObj *DirectoryObjectCheckMemberObjectsRequestParameter) *DirectoryObjectCheckMemberObjectsRequestBuilder { + bb := &DirectoryObjectCheckMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/checkMemberObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectCheckMemberObjectsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectCheckMemberObjectsRequestBuilder) Request() *DirectoryObjectCheckMemberObjectsRequest { + return &DirectoryObjectCheckMemberObjectsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectCheckMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []string + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []string + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DirectoryObjectCheckMemberObjectsRequest) PostN(ctx context.Context, n int) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DirectoryObjectCheckMemberObjectsRequest) Post(ctx context.Context) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DirectoryObjectGetMemberGroupsRequestBuilder struct{ BaseRequestBuilder } + +// GetMemberGroups action undocumented +func (b *DirectoryObjectRequestBuilder) GetMemberGroups(reqObj *DirectoryObjectGetMemberGroupsRequestParameter) *DirectoryObjectGetMemberGroupsRequestBuilder { + bb := &DirectoryObjectGetMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getMemberGroups" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectGetMemberGroupsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectGetMemberGroupsRequestBuilder) Request() *DirectoryObjectGetMemberGroupsRequest { + return &DirectoryObjectGetMemberGroupsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectGetMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []string + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []string + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DirectoryObjectGetMemberGroupsRequest) PostN(ctx context.Context, n int) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DirectoryObjectGetMemberGroupsRequest) Post(ctx context.Context) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DirectoryObjectGetMemberObjectsRequestBuilder struct{ BaseRequestBuilder } + +// GetMemberObjects action undocumented +func (b *DirectoryObjectRequestBuilder) GetMemberObjects(reqObj *DirectoryObjectGetMemberObjectsRequestParameter) *DirectoryObjectGetMemberObjectsRequestBuilder { + bb := &DirectoryObjectGetMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getMemberObjects" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectGetMemberObjectsRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectGetMemberObjectsRequestBuilder) Request() *DirectoryObjectGetMemberObjectsRequest { + return &DirectoryObjectGetMemberObjectsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectGetMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []string + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []string + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DirectoryObjectGetMemberObjectsRequest) PostN(ctx context.Context, n int) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DirectoryObjectGetMemberObjectsRequest) Post(ctx context.Context) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DirectoryObjectRestoreRequestBuilder struct{ BaseRequestBuilder } + +// Restore action undocumented +func (b *DirectoryObjectRequestBuilder) Restore(reqObj *DirectoryObjectRestoreRequestParameter) *DirectoryObjectRestoreRequestBuilder { + bb := &DirectoryObjectRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/restore" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DirectoryObjectRestoreRequest struct{ BaseRequest } + +// +func (b *DirectoryObjectRestoreRequestBuilder) Request() *DirectoryObjectRestoreRequest { + return &DirectoryObjectRestoreRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DirectoryObjectRestoreRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go new file mode 100644 index 00000000..d236a730 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DocumentRequestBuilder is request builder for Document +type DocumentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DocumentRequest +func (b *DocumentRequestBuilder) Request() *DocumentRequest { + return &DocumentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DocumentRequest is request for Document +type DocumentRequest struct{ BaseRequest } + +// Get performs GET request for Document +func (r *DocumentRequest) Get(ctx context.Context) (resObj *Document, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Document +func (r *DocumentRequest) Update(ctx context.Context, reqObj *Document) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Document +func (r *DocumentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DocumentCommentRequestBuilder is request builder for DocumentComment +type DocumentCommentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DocumentCommentRequest +func (b *DocumentCommentRequestBuilder) Request() *DocumentCommentRequest { + return &DocumentCommentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DocumentCommentRequest is request for DocumentComment +type DocumentCommentRequest struct{ BaseRequest } + +// Get performs GET request for DocumentComment +func (r *DocumentCommentRequest) Get(ctx context.Context) (resObj *DocumentComment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DocumentComment +func (r *DocumentCommentRequest) Update(ctx context.Context, reqObj *DocumentComment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DocumentComment +func (r *DocumentCommentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DocumentCommentReplyRequestBuilder is request builder for DocumentCommentReply +type DocumentCommentReplyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DocumentCommentReplyRequest +func (b *DocumentCommentReplyRequestBuilder) Request() *DocumentCommentReplyRequest { + return &DocumentCommentReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DocumentCommentReplyRequest is request for DocumentCommentReply +type DocumentCommentReplyRequest struct{ BaseRequest } + +// Get performs GET request for DocumentCommentReply +func (r *DocumentCommentReplyRequest) Get(ctx context.Context) (resObj *DocumentCommentReply, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DocumentCommentReply +func (r *DocumentCommentReplyRequest) Update(ctx context.Context, reqObj *DocumentCommentReply) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DocumentCommentReply +func (r *DocumentCommentReplyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go new file mode 100644 index 00000000..37a926ac --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go @@ -0,0 +1,157 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// DomainRequestBuilder is request builder for Domain +type DomainRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DomainRequest +func (b *DomainRequestBuilder) Request() *DomainRequest { + return &DomainRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DomainRequest is request for Domain +type DomainRequest struct{ BaseRequest } + +// Get performs GET request for Domain +func (r *DomainRequest) Get(ctx context.Context) (resObj *Domain, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Domain +func (r *DomainRequest) Update(ctx context.Context, reqObj *Domain) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Domain +func (r *DomainRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DomainDNSRecordRequestBuilder is request builder for DomainDNSRecord +type DomainDNSRecordRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DomainDNSRecordRequest +func (b *DomainDNSRecordRequestBuilder) Request() *DomainDNSRecordRequest { + return &DomainDNSRecordRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DomainDNSRecordRequest is request for DomainDNSRecord +type DomainDNSRecordRequest struct{ BaseRequest } + +// Get performs GET request for DomainDNSRecord +func (r *DomainDNSRecordRequest) Get(ctx context.Context) (resObj *DomainDNSRecord, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DomainDNSRecord +func (r *DomainDNSRecordRequest) Update(ctx context.Context, reqObj *DomainDNSRecord) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DomainDNSRecord +func (r *DomainDNSRecordRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DomainSecurityProfileRequestBuilder is request builder for DomainSecurityProfile +type DomainSecurityProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DomainSecurityProfileRequest +func (b *DomainSecurityProfileRequestBuilder) Request() *DomainSecurityProfileRequest { + return &DomainSecurityProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DomainSecurityProfileRequest is request for DomainSecurityProfile +type DomainSecurityProfileRequest struct{ BaseRequest } + +// Get performs GET request for DomainSecurityProfile +func (r *DomainSecurityProfileRequest) Get(ctx context.Context) (resObj *DomainSecurityProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DomainSecurityProfile +func (r *DomainSecurityProfileRequest) Update(ctx context.Context, reqObj *DomainSecurityProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DomainSecurityProfile +func (r *DomainSecurityProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DomainForceDeleteRequestBuilder struct{ BaseRequestBuilder } + +// ForceDelete action undocumented +func (b *DomainRequestBuilder) ForceDelete(reqObj *DomainForceDeleteRequestParameter) *DomainForceDeleteRequestBuilder { + bb := &DomainForceDeleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/forceDelete" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DomainForceDeleteRequest struct{ BaseRequest } + +// +func (b *DomainForceDeleteRequestBuilder) Request() *DomainForceDeleteRequest { + return &DomainForceDeleteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DomainForceDeleteRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DomainVerifyRequestBuilder struct{ BaseRequestBuilder } + +// Verify action undocumented +func (b *DomainRequestBuilder) Verify(reqObj *DomainVerifyRequestParameter) *DomainVerifyRequestBuilder { + bb := &DomainVerifyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/verify" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DomainVerifyRequest struct{ BaseRequest } + +// +func (b *DomainVerifyRequestBuilder) Request() *DomainVerifyRequest { + return &DomainVerifyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DomainVerifyRequest) Post(ctx context.Context) (resObj *Domain, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go new file mode 100644 index 00000000..20a48500 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go @@ -0,0 +1,489 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// DriveRequestBuilder is request builder for Drive +type DriveRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DriveRequest +func (b *DriveRequestBuilder) Request() *DriveRequest { + return &DriveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DriveRequest is request for Drive +type DriveRequest struct{ BaseRequest } + +// Get performs GET request for Drive +func (r *DriveRequest) Get(ctx context.Context) (resObj *Drive, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Drive +func (r *DriveRequest) Update(ctx context.Context, reqObj *Drive) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Drive +func (r *DriveRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DriveItemRequestBuilder is request builder for DriveItem +type DriveItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DriveItemRequest +func (b *DriveItemRequestBuilder) Request() *DriveItemRequest { + return &DriveItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DriveItemRequest is request for DriveItem +type DriveItemRequest struct{ BaseRequest } + +// Get performs GET request for DriveItem +func (r *DriveItemRequest) Get(ctx context.Context) (resObj *DriveItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DriveItem +func (r *DriveItemRequest) Update(ctx context.Context, reqObj *DriveItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DriveItem +func (r *DriveItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// DriveItemVersionRequestBuilder is request builder for DriveItemVersion +type DriveItemVersionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns DriveItemVersionRequest +func (b *DriveItemVersionRequestBuilder) Request() *DriveItemVersionRequest { + return &DriveItemVersionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// DriveItemVersionRequest is request for DriveItemVersion +type DriveItemVersionRequest struct{ BaseRequest } + +// Get performs GET request for DriveItemVersion +func (r *DriveItemVersionRequest) Get(ctx context.Context) (resObj *DriveItemVersion, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for DriveItemVersion +func (r *DriveItemVersionRequest) Update(ctx context.Context, reqObj *DriveItemVersion) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for DriveItemVersion +func (r *DriveItemVersionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type DriveItemCheckinRequestBuilder struct{ BaseRequestBuilder } + +// Checkin action undocumented +func (b *DriveItemRequestBuilder) Checkin(reqObj *DriveItemCheckinRequestParameter) *DriveItemCheckinRequestBuilder { + bb := &DriveItemCheckinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/checkin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemCheckinRequest struct{ BaseRequest } + +// +func (b *DriveItemCheckinRequestBuilder) Request() *DriveItemCheckinRequest { + return &DriveItemCheckinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemCheckinRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DriveItemCheckoutRequestBuilder struct{ BaseRequestBuilder } + +// Checkout action undocumented +func (b *DriveItemRequestBuilder) Checkout(reqObj *DriveItemCheckoutRequestParameter) *DriveItemCheckoutRequestBuilder { + bb := &DriveItemCheckoutRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/checkout" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemCheckoutRequest struct{ BaseRequest } + +// +func (b *DriveItemCheckoutRequestBuilder) Request() *DriveItemCheckoutRequest { + return &DriveItemCheckoutRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemCheckoutRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DriveItemCopyRequestBuilder struct{ BaseRequestBuilder } + +// Copy action undocumented +func (b *DriveItemRequestBuilder) Copy(reqObj *DriveItemCopyRequestParameter) *DriveItemCopyRequestBuilder { + bb := &DriveItemCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copy" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemCopyRequest struct{ BaseRequest } + +// +func (b *DriveItemCopyRequestBuilder) Request() *DriveItemCopyRequest { + return &DriveItemCopyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemCopyRequest) Post(ctx context.Context) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemCreateLinkRequestBuilder struct{ BaseRequestBuilder } + +// CreateLink action undocumented +func (b *DriveItemRequestBuilder) CreateLink(reqObj *DriveItemCreateLinkRequestParameter) *DriveItemCreateLinkRequestBuilder { + bb := &DriveItemCreateLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createLink" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemCreateLinkRequest struct{ BaseRequest } + +// +func (b *DriveItemCreateLinkRequestBuilder) Request() *DriveItemCreateLinkRequest { + return &DriveItemCreateLinkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemCreateLinkRequest) Post(ctx context.Context) (resObj *Permission, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder } + +// CreateUploadSession action undocumented +func (b *DriveItemRequestBuilder) CreateUploadSession(reqObj *DriveItemCreateUploadSessionRequestParameter) *DriveItemCreateUploadSessionRequestBuilder { + bb := &DriveItemCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createUploadSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemCreateUploadSessionRequest struct{ BaseRequest } + +// +func (b *DriveItemCreateUploadSessionRequestBuilder) Request() *DriveItemCreateUploadSessionRequest { + return &DriveItemCreateUploadSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemFollowRequestBuilder struct{ BaseRequestBuilder } + +// Follow action undocumented +func (b *DriveItemRequestBuilder) Follow(reqObj *DriveItemFollowRequestParameter) *DriveItemFollowRequestBuilder { + bb := &DriveItemFollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/follow" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemFollowRequest struct{ BaseRequest } + +// +func (b *DriveItemFollowRequestBuilder) Request() *DriveItemFollowRequest { + return &DriveItemFollowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemFollowRequest) Post(ctx context.Context) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemUnfollowRequestBuilder struct{ BaseRequestBuilder } + +// Unfollow action undocumented +func (b *DriveItemRequestBuilder) Unfollow(reqObj *DriveItemUnfollowRequestParameter) *DriveItemUnfollowRequestBuilder { + bb := &DriveItemUnfollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unfollow" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemUnfollowRequest struct{ BaseRequest } + +// +func (b *DriveItemUnfollowRequestBuilder) Request() *DriveItemUnfollowRequest { + return &DriveItemUnfollowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemUnfollowRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DriveItemInviteRequestBuilder struct{ BaseRequestBuilder } + +// Invite action undocumented +func (b *DriveItemRequestBuilder) Invite(reqObj *DriveItemInviteRequestParameter) *DriveItemInviteRequestBuilder { + bb := &DriveItemInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/invite" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemInviteRequest struct{ BaseRequest } + +// +func (b *DriveItemInviteRequestBuilder) Request() *DriveItemInviteRequest { + return &DriveItemInviteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemInviteRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Permission + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Permission + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *DriveItemInviteRequest) PostN(ctx context.Context, n int) ([]Permission, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *DriveItemInviteRequest) Post(ctx context.Context) ([]Permission, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type DriveItemPreviewRequestBuilder struct{ BaseRequestBuilder } + +// Preview action undocumented +func (b *DriveItemRequestBuilder) Preview(reqObj *DriveItemPreviewRequestParameter) *DriveItemPreviewRequestBuilder { + bb := &DriveItemPreviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/preview" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemPreviewRequest struct{ BaseRequest } + +// +func (b *DriveItemPreviewRequestBuilder) Request() *DriveItemPreviewRequest { + return &DriveItemPreviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemPreviewRequest) Post(ctx context.Context) (resObj *ItemPreviewInfo, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemRestoreRequestBuilder struct{ BaseRequestBuilder } + +// Restore action undocumented +func (b *DriveItemRequestBuilder) Restore(reqObj *DriveItemRestoreRequestParameter) *DriveItemRestoreRequestBuilder { + bb := &DriveItemRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/restore" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemRestoreRequest struct{ BaseRequest } + +// +func (b *DriveItemRestoreRequestBuilder) Request() *DriveItemRestoreRequest { + return &DriveItemRestoreRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemRestoreRequest) Post(ctx context.Context) (resObj *DriveItem, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type DriveItemValidatePermissionRequestBuilder struct{ BaseRequestBuilder } + +// ValidatePermission action undocumented +func (b *DriveItemRequestBuilder) ValidatePermission(reqObj *DriveItemValidatePermissionRequestParameter) *DriveItemValidatePermissionRequestBuilder { + bb := &DriveItemValidatePermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validatePermission" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemValidatePermissionRequest struct{ BaseRequest } + +// +func (b *DriveItemValidatePermissionRequestBuilder) Request() *DriveItemValidatePermissionRequest { + return &DriveItemValidatePermissionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemValidatePermissionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type DriveItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder } + +// RestoreVersion action undocumented +func (b *DriveItemVersionRequestBuilder) RestoreVersion(reqObj *DriveItemVersionRestoreVersionRequestParameter) *DriveItemVersionRestoreVersionRequestBuilder { + bb := &DriveItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/restoreVersion" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type DriveItemVersionRestoreVersionRequest struct{ BaseRequest } + +// +func (b *DriveItemVersionRestoreVersionRequestBuilder) Request() *DriveItemVersionRestoreVersionRequest { + return &DriveItemVersionRestoreVersionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *DriveItemVersionRestoreVersionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EBookInstallSummaryRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go new file mode 100644 index 00000000..4d546e57 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go @@ -0,0 +1,746 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// EducationAssignmentRequestBuilder is request builder for EducationAssignment +type EducationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationAssignmentRequest +func (b *EducationAssignmentRequestBuilder) Request() *EducationAssignmentRequest { + return &EducationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationAssignmentRequest is request for EducationAssignment +type EducationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for EducationAssignment +func (r *EducationAssignmentRequest) Get(ctx context.Context) (resObj *EducationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationAssignment +func (r *EducationAssignmentRequest) Update(ctx context.Context, reqObj *EducationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationAssignment +func (r *EducationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationAssignmentResourceRequestBuilder is request builder for EducationAssignmentResource +type EducationAssignmentResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationAssignmentResourceRequest +func (b *EducationAssignmentResourceRequestBuilder) Request() *EducationAssignmentResourceRequest { + return &EducationAssignmentResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationAssignmentResourceRequest is request for EducationAssignmentResource +type EducationAssignmentResourceRequest struct{ BaseRequest } + +// Get performs GET request for EducationAssignmentResource +func (r *EducationAssignmentResourceRequest) Get(ctx context.Context) (resObj *EducationAssignmentResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationAssignmentResource +func (r *EducationAssignmentResourceRequest) Update(ctx context.Context, reqObj *EducationAssignmentResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationAssignmentResource +func (r *EducationAssignmentResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationCategoryRequestBuilder is request builder for EducationCategory +type EducationCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationCategoryRequest +func (b *EducationCategoryRequestBuilder) Request() *EducationCategoryRequest { + return &EducationCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationCategoryRequest is request for EducationCategory +type EducationCategoryRequest struct{ BaseRequest } + +// Get performs GET request for EducationCategory +func (r *EducationCategoryRequest) Get(ctx context.Context) (resObj *EducationCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationCategory +func (r *EducationCategoryRequest) Update(ctx context.Context, reqObj *EducationCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationCategory +func (r *EducationCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationClassRequestBuilder is request builder for EducationClass +type EducationClassRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationClassRequest +func (b *EducationClassRequestBuilder) Request() *EducationClassRequest { + return &EducationClassRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationClassRequest is request for EducationClass +type EducationClassRequest struct{ BaseRequest } + +// Get performs GET request for EducationClass +func (r *EducationClassRequest) Get(ctx context.Context) (resObj *EducationClass, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationClass +func (r *EducationClassRequest) Update(ctx context.Context, reqObj *EducationClass) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationClass +func (r *EducationClassRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationOutcomeRequestBuilder is request builder for EducationOutcome +type EducationOutcomeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationOutcomeRequest +func (b *EducationOutcomeRequestBuilder) Request() *EducationOutcomeRequest { + return &EducationOutcomeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationOutcomeRequest is request for EducationOutcome +type EducationOutcomeRequest struct{ BaseRequest } + +// Get performs GET request for EducationOutcome +func (r *EducationOutcomeRequest) Get(ctx context.Context) (resObj *EducationOutcome, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationOutcome +func (r *EducationOutcomeRequest) Update(ctx context.Context, reqObj *EducationOutcome) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationOutcome +func (r *EducationOutcomeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationRootRequestBuilder is request builder for EducationRoot +type EducationRootRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationRootRequest +func (b *EducationRootRequestBuilder) Request() *EducationRootRequest { + return &EducationRootRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationRootRequest is request for EducationRoot +type EducationRootRequest struct{ BaseRequest } + +// Get performs GET request for EducationRoot +func (r *EducationRootRequest) Get(ctx context.Context) (resObj *EducationRoot, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationRoot +func (r *EducationRootRequest) Update(ctx context.Context, reqObj *EducationRoot) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationRoot +func (r *EducationRootRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationRubricRequestBuilder is request builder for EducationRubric +type EducationRubricRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationRubricRequest +func (b *EducationRubricRequestBuilder) Request() *EducationRubricRequest { + return &EducationRubricRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationRubricRequest is request for EducationRubric +type EducationRubricRequest struct{ BaseRequest } + +// Get performs GET request for EducationRubric +func (r *EducationRubricRequest) Get(ctx context.Context) (resObj *EducationRubric, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationRubric +func (r *EducationRubricRequest) Update(ctx context.Context, reqObj *EducationRubric) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationRubric +func (r *EducationRubricRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSchoolRequestBuilder is request builder for EducationSchool +type EducationSchoolRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSchoolRequest +func (b *EducationSchoolRequestBuilder) Request() *EducationSchoolRequest { + return &EducationSchoolRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSchoolRequest is request for EducationSchool +type EducationSchoolRequest struct{ BaseRequest } + +// Get performs GET request for EducationSchool +func (r *EducationSchoolRequest) Get(ctx context.Context) (resObj *EducationSchool, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSchool +func (r *EducationSchoolRequest) Update(ctx context.Context, reqObj *EducationSchool) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSchool +func (r *EducationSchoolRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSubmissionRequestBuilder is request builder for EducationSubmission +type EducationSubmissionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSubmissionRequest +func (b *EducationSubmissionRequestBuilder) Request() *EducationSubmissionRequest { + return &EducationSubmissionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSubmissionRequest is request for EducationSubmission +type EducationSubmissionRequest struct{ BaseRequest } + +// Get performs GET request for EducationSubmission +func (r *EducationSubmissionRequest) Get(ctx context.Context) (resObj *EducationSubmission, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSubmission +func (r *EducationSubmissionRequest) Update(ctx context.Context, reqObj *EducationSubmission) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSubmission +func (r *EducationSubmissionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSubmissionResourceRequestBuilder is request builder for EducationSubmissionResource +type EducationSubmissionResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSubmissionResourceRequest +func (b *EducationSubmissionResourceRequestBuilder) Request() *EducationSubmissionResourceRequest { + return &EducationSubmissionResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSubmissionResourceRequest is request for EducationSubmissionResource +type EducationSubmissionResourceRequest struct{ BaseRequest } + +// Get performs GET request for EducationSubmissionResource +func (r *EducationSubmissionResourceRequest) Get(ctx context.Context) (resObj *EducationSubmissionResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSubmissionResource +func (r *EducationSubmissionResourceRequest) Update(ctx context.Context, reqObj *EducationSubmissionResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSubmissionResource +func (r *EducationSubmissionResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSynchronizationErrorRequestBuilder is request builder for EducationSynchronizationError +type EducationSynchronizationErrorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSynchronizationErrorRequest +func (b *EducationSynchronizationErrorRequestBuilder) Request() *EducationSynchronizationErrorRequest { + return &EducationSynchronizationErrorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSynchronizationErrorRequest is request for EducationSynchronizationError +type EducationSynchronizationErrorRequest struct{ BaseRequest } + +// Get performs GET request for EducationSynchronizationError +func (r *EducationSynchronizationErrorRequest) Get(ctx context.Context) (resObj *EducationSynchronizationError, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSynchronizationError +func (r *EducationSynchronizationErrorRequest) Update(ctx context.Context, reqObj *EducationSynchronizationError) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSynchronizationError +func (r *EducationSynchronizationErrorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSynchronizationProfileRequestBuilder is request builder for EducationSynchronizationProfile +type EducationSynchronizationProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSynchronizationProfileRequest +func (b *EducationSynchronizationProfileRequestBuilder) Request() *EducationSynchronizationProfileRequest { + return &EducationSynchronizationProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSynchronizationProfileRequest is request for EducationSynchronizationProfile +type EducationSynchronizationProfileRequest struct{ BaseRequest } + +// Get performs GET request for EducationSynchronizationProfile +func (r *EducationSynchronizationProfileRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSynchronizationProfile +func (r *EducationSynchronizationProfileRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSynchronizationProfile +func (r *EducationSynchronizationProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationSynchronizationProfileStatusRequestBuilder is request builder for EducationSynchronizationProfileStatus +type EducationSynchronizationProfileStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationSynchronizationProfileStatusRequest +func (b *EducationSynchronizationProfileStatusRequestBuilder) Request() *EducationSynchronizationProfileStatusRequest { + return &EducationSynchronizationProfileStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationSynchronizationProfileStatusRequest is request for EducationSynchronizationProfileStatus +type EducationSynchronizationProfileStatusRequest struct{ BaseRequest } + +// Get performs GET request for EducationSynchronizationProfileStatus +func (r *EducationSynchronizationProfileStatusRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfileStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationSynchronizationProfileStatus +func (r *EducationSynchronizationProfileStatusRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfileStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationSynchronizationProfileStatus +func (r *EducationSynchronizationProfileStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EducationUserRequestBuilder is request builder for EducationUser +type EducationUserRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EducationUserRequest +func (b *EducationUserRequestBuilder) Request() *EducationUserRequest { + return &EducationUserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EducationUserRequest is request for EducationUser +type EducationUserRequest struct{ BaseRequest } + +// Get performs GET request for EducationUser +func (r *EducationUserRequest) Get(ctx context.Context) (resObj *EducationUser, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EducationUser +func (r *EducationUserRequest) Update(ctx context.Context, reqObj *EducationUser) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EducationUser +func (r *EducationUserRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type EducationAssignmentPublishRequestBuilder struct{ BaseRequestBuilder } + +// Publish action undocumented +func (b *EducationAssignmentRequestBuilder) Publish(reqObj *EducationAssignmentPublishRequestParameter) *EducationAssignmentPublishRequestBuilder { + bb := &EducationAssignmentPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/publish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationAssignmentPublishRequest struct{ BaseRequest } + +// +func (b *EducationAssignmentPublishRequestBuilder) Request() *EducationAssignmentPublishRequest { + return &EducationAssignmentPublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationAssignmentPublishRequest) Post(ctx context.Context) (resObj *EducationAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type EducationSubmissionReturnRequestBuilder struct{ BaseRequestBuilder } + +// Return action undocumented +func (b *EducationSubmissionRequestBuilder) Return(reqObj *EducationSubmissionReturnRequestParameter) *EducationSubmissionReturnRequestBuilder { + bb := &EducationSubmissionReturnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/return" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSubmissionReturnRequest struct{ BaseRequest } + +// +func (b *EducationSubmissionReturnRequestBuilder) Request() *EducationSubmissionReturnRequest { + return &EducationSubmissionReturnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSubmissionReturnRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type EducationSubmissionSubmitRequestBuilder struct{ BaseRequestBuilder } + +// Submit action undocumented +func (b *EducationSubmissionRequestBuilder) Submit(reqObj *EducationSubmissionSubmitRequestParameter) *EducationSubmissionSubmitRequestBuilder { + bb := &EducationSubmissionSubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/submit" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSubmissionSubmitRequest struct{ BaseRequest } + +// +func (b *EducationSubmissionSubmitRequestBuilder) Request() *EducationSubmissionSubmitRequest { + return &EducationSubmissionSubmitRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSubmissionSubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type EducationSubmissionUnsubmitRequestBuilder struct{ BaseRequestBuilder } + +// Unsubmit action undocumented +func (b *EducationSubmissionRequestBuilder) Unsubmit(reqObj *EducationSubmissionUnsubmitRequestParameter) *EducationSubmissionUnsubmitRequestBuilder { + bb := &EducationSubmissionUnsubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unsubmit" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSubmissionUnsubmitRequest struct{ BaseRequest } + +// +func (b *EducationSubmissionUnsubmitRequestBuilder) Request() *EducationSubmissionUnsubmitRequest { + return &EducationSubmissionUnsubmitRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSubmissionUnsubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type EducationSynchronizationProfileResumeRequestBuilder struct{ BaseRequestBuilder } + +// Resume action undocumented +func (b *EducationSynchronizationProfileRequestBuilder) Resume(reqObj *EducationSynchronizationProfileResumeRequestParameter) *EducationSynchronizationProfileResumeRequestBuilder { + bb := &EducationSynchronizationProfileResumeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/resume" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSynchronizationProfileResumeRequest struct{ BaseRequest } + +// +func (b *EducationSynchronizationProfileResumeRequestBuilder) Request() *EducationSynchronizationProfileResumeRequest { + return &EducationSynchronizationProfileResumeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSynchronizationProfileResumeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EducationSynchronizationProfilePauseRequestBuilder struct{ BaseRequestBuilder } + +// Pause action undocumented +func (b *EducationSynchronizationProfileRequestBuilder) Pause(reqObj *EducationSynchronizationProfilePauseRequestParameter) *EducationSynchronizationProfilePauseRequestBuilder { + bb := &EducationSynchronizationProfilePauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pause" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSynchronizationProfilePauseRequest struct{ BaseRequest } + +// +func (b *EducationSynchronizationProfilePauseRequestBuilder) Request() *EducationSynchronizationProfilePauseRequest { + return &EducationSynchronizationProfilePauseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSynchronizationProfilePauseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EducationSynchronizationProfileResetRequestBuilder struct{ BaseRequestBuilder } + +// Reset action undocumented +func (b *EducationSynchronizationProfileRequestBuilder) Reset(reqObj *EducationSynchronizationProfileResetRequestParameter) *EducationSynchronizationProfileResetRequestBuilder { + bb := &EducationSynchronizationProfileResetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reset" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSynchronizationProfileResetRequest struct{ BaseRequest } + +// +func (b *EducationSynchronizationProfileResetRequestBuilder) Request() *EducationSynchronizationProfileResetRequest { + return &EducationSynchronizationProfileResetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSynchronizationProfileResetRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EducationSynchronizationProfileStartRequestBuilder struct{ BaseRequestBuilder } + +// Start action undocumented +func (b *EducationSynchronizationProfileRequestBuilder) Start(reqObj *EducationSynchronizationProfileStartRequestParameter) *EducationSynchronizationProfileStartRequestBuilder { + bb := &EducationSynchronizationProfileStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/start" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EducationSynchronizationProfileStartRequest struct{ BaseRequest } + +// +func (b *EducationSynchronizationProfileStartRequestBuilder) Request() *EducationSynchronizationProfileStartRequest { + return &EducationSynchronizationProfileStartRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EducationSynchronizationProfileStartRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationFileSynchronizationVerificationMessage, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EducationFileSynchronizationVerificationMessage + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EducationFileSynchronizationVerificationMessage + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *EducationSynchronizationProfileStartRequest) PostN(ctx context.Context, n int) ([]EducationFileSynchronizationVerificationMessage, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *EducationSynchronizationProfileStartRequest) Post(ctx context.Context) ([]EducationFileSynchronizationVerificationMessage, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EducationalActivityRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go new file mode 100644 index 00000000..625aa25f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go @@ -0,0 +1,197 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// EmbeddedSIMActivationCodePoolRequestBuilder is request builder for EmbeddedSIMActivationCodePool +type EmbeddedSIMActivationCodePoolRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EmbeddedSIMActivationCodePoolRequest +func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Request() *EmbeddedSIMActivationCodePoolRequest { + return &EmbeddedSIMActivationCodePoolRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EmbeddedSIMActivationCodePoolRequest is request for EmbeddedSIMActivationCodePool +type EmbeddedSIMActivationCodePoolRequest struct{ BaseRequest } + +// Get performs GET request for EmbeddedSIMActivationCodePool +func (r *EmbeddedSIMActivationCodePoolRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePool, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EmbeddedSIMActivationCodePool +func (r *EmbeddedSIMActivationCodePoolRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EmbeddedSIMActivationCodePool +func (r *EmbeddedSIMActivationCodePoolRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EmbeddedSIMActivationCodePoolAssignmentRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment +type EmbeddedSIMActivationCodePoolAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EmbeddedSIMActivationCodePoolAssignmentRequest +func (b *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentRequest { + return &EmbeddedSIMActivationCodePoolAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EmbeddedSIMActivationCodePoolAssignmentRequest is request for EmbeddedSIMActivationCodePoolAssignment +type EmbeddedSIMActivationCodePoolAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment +func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EmbeddedSIMActivationCodePoolAssignment +func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EmbeddedSIMActivationCodePoolAssignment +func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EmbeddedSIMDeviceStateRequestBuilder is request builder for EmbeddedSIMDeviceState +type EmbeddedSIMDeviceStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EmbeddedSIMDeviceStateRequest +func (b *EmbeddedSIMDeviceStateRequestBuilder) Request() *EmbeddedSIMDeviceStateRequest { + return &EmbeddedSIMDeviceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EmbeddedSIMDeviceStateRequest is request for EmbeddedSIMDeviceState +type EmbeddedSIMDeviceStateRequest struct{ BaseRequest } + +// Get performs GET request for EmbeddedSIMDeviceState +func (r *EmbeddedSIMDeviceStateRequest) Get(ctx context.Context) (resObj *EmbeddedSIMDeviceState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EmbeddedSIMDeviceState +func (r *EmbeddedSIMDeviceStateRequest) Update(ctx context.Context, reqObj *EmbeddedSIMDeviceState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EmbeddedSIMDeviceState +func (r *EmbeddedSIMDeviceStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type EmbeddedSIMActivationCodePoolAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assign(reqObj *EmbeddedSIMActivationCodePoolAssignRequestParameter) *EmbeddedSIMActivationCodePoolAssignRequestBuilder { + bb := &EmbeddedSIMActivationCodePoolAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EmbeddedSIMActivationCodePoolAssignRequest struct{ BaseRequest } + +// +func (b *EmbeddedSIMActivationCodePoolAssignRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignRequest { + return &EmbeddedSIMActivationCodePoolAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EmbeddedSIMActivationCodePoolAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []EmbeddedSIMActivationCodePoolAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []EmbeddedSIMActivationCodePoolAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *EmbeddedSIMActivationCodePoolAssignRequest) PostN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *EmbeddedSIMActivationCodePoolAssignRequest) Post(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go new file mode 100644 index 00000000..fbad90f4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// EmployeeRequestBuilder is request builder for Employee +type EmployeeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EmployeeRequest +func (b *EmployeeRequestBuilder) Request() *EmployeeRequest { + return &EmployeeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EmployeeRequest is request for Employee +type EmployeeRequest struct{ BaseRequest } + +// Get performs GET request for Employee +func (r *EmployeeRequest) Get(ctx context.Context) (resObj *Employee, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Employee +func (r *EmployeeRequest) Update(ctx context.Context, reqObj *Employee) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Employee +func (r *EmployeeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EndpointRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EndpointRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go new file mode 100644 index 00000000..631378d7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go @@ -0,0 +1,123 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// EnrollmentConfigurationAssignmentRequestBuilder is request builder for EnrollmentConfigurationAssignment +type EnrollmentConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EnrollmentConfigurationAssignmentRequest +func (b *EnrollmentConfigurationAssignmentRequestBuilder) Request() *EnrollmentConfigurationAssignmentRequest { + return &EnrollmentConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EnrollmentConfigurationAssignmentRequest is request for EnrollmentConfigurationAssignment +type EnrollmentConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for EnrollmentConfigurationAssignment +func (r *EnrollmentConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *EnrollmentConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EnrollmentConfigurationAssignment +func (r *EnrollmentConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EnrollmentConfigurationAssignment +func (r *EnrollmentConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EnrollmentProfileRequestBuilder is request builder for EnrollmentProfile +type EnrollmentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EnrollmentProfileRequest +func (b *EnrollmentProfileRequestBuilder) Request() *EnrollmentProfileRequest { + return &EnrollmentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EnrollmentProfileRequest is request for EnrollmentProfile +type EnrollmentProfileRequest struct{ BaseRequest } + +// Get performs GET request for EnrollmentProfile +func (r *EnrollmentProfileRequest) Get(ctx context.Context) (resObj *EnrollmentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EnrollmentProfile +func (r *EnrollmentProfileRequest) Update(ctx context.Context, reqObj *EnrollmentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EnrollmentProfile +func (r *EnrollmentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type EnrollmentProfileSetDefaultProfileRequestBuilder struct{ BaseRequestBuilder } + +// SetDefaultProfile action undocumented +func (b *EnrollmentProfileRequestBuilder) SetDefaultProfile(reqObj *EnrollmentProfileSetDefaultProfileRequestParameter) *EnrollmentProfileSetDefaultProfileRequestBuilder { + bb := &EnrollmentProfileSetDefaultProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setDefaultProfile" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EnrollmentProfileSetDefaultProfileRequest struct{ BaseRequest } + +// +func (b *EnrollmentProfileSetDefaultProfileRequestBuilder) Request() *EnrollmentProfileSetDefaultProfileRequest { + return &EnrollmentProfileSetDefaultProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EnrollmentProfileSetDefaultProfileRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// UpdateDeviceProfileAssignment action undocumented +func (b *EnrollmentProfileRequestBuilder) UpdateDeviceProfileAssignment(reqObj *EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter) *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder { + bb := &EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateDeviceProfileAssignment" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EnrollmentProfileUpdateDeviceProfileAssignmentRequest struct{ BaseRequest } + +// +func (b *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder) Request() *EnrollmentProfileUpdateDeviceProfileAssignmentRequest { + return &EnrollmentProfileUpdateDeviceProfileAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EnrollmentProfileUpdateDeviceProfileAssignmentRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go new file mode 100644 index 00000000..01378829 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// EntitlementManagementRequestBuilder is request builder for EntitlementManagement +type EntitlementManagementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EntitlementManagementRequest +func (b *EntitlementManagementRequestBuilder) Request() *EntitlementManagementRequest { + return &EntitlementManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EntitlementManagementRequest is request for EntitlementManagement +type EntitlementManagementRequest struct{ BaseRequest } + +// Get performs GET request for EntitlementManagement +func (r *EntitlementManagementRequest) Get(ctx context.Context) (resObj *EntitlementManagement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EntitlementManagement +func (r *EntitlementManagementRequest) Update(ctx context.Context, reqObj *EntitlementManagement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EntitlementManagement +func (r *EntitlementManagementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/EntityRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go new file mode 100644 index 00000000..5c149336 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go @@ -0,0 +1,364 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// EventRequestBuilder is request builder for Event +type EventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EventRequest +func (b *EventRequestBuilder) Request() *EventRequest { + return &EventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EventRequest is request for Event +type EventRequest struct{ BaseRequest } + +// Get performs GET request for Event +func (r *EventRequest) Get(ctx context.Context) (resObj *Event, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Event +func (r *EventRequest) Update(ctx context.Context, reqObj *Event) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Event +func (r *EventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EventMessageRequestBuilder is request builder for EventMessage +type EventMessageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EventMessageRequest +func (b *EventMessageRequestBuilder) Request() *EventMessageRequest { + return &EventMessageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EventMessageRequest is request for EventMessage +type EventMessageRequest struct{ BaseRequest } + +// Get performs GET request for EventMessage +func (r *EventMessageRequest) Get(ctx context.Context) (resObj *EventMessage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EventMessage +func (r *EventMessageRequest) Update(ctx context.Context, reqObj *EventMessage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EventMessage +func (r *EventMessageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// EventMessageRequestObjectRequestBuilder is request builder for EventMessageRequestObject +type EventMessageRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns EventMessageRequestObjectRequest +func (b *EventMessageRequestObjectRequestBuilder) Request() *EventMessageRequestObjectRequest { + return &EventMessageRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// EventMessageRequestObjectRequest is request for EventMessageRequestObject +type EventMessageRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for EventMessageRequestObject +func (r *EventMessageRequestObjectRequest) Get(ctx context.Context) (resObj *EventMessageRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for EventMessageRequestObject +func (r *EventMessageRequestObjectRequest) Update(ctx context.Context, reqObj *EventMessageRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for EventMessageRequestObject +func (r *EventMessageRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type EventDismissReminderRequestBuilder struct{ BaseRequestBuilder } + +// DismissReminder action undocumented +func (b *EventRequestBuilder) DismissReminder(reqObj *EventDismissReminderRequestParameter) *EventDismissReminderRequestBuilder { + bb := &EventDismissReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dismissReminder" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventDismissReminderRequest struct{ BaseRequest } + +// +func (b *EventDismissReminderRequestBuilder) Request() *EventDismissReminderRequest { + return &EventDismissReminderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventDismissReminderRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventSnoozeReminderRequestBuilder struct{ BaseRequestBuilder } + +// SnoozeReminder action undocumented +func (b *EventRequestBuilder) SnoozeReminder(reqObj *EventSnoozeReminderRequestParameter) *EventSnoozeReminderRequestBuilder { + bb := &EventSnoozeReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/snoozeReminder" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventSnoozeReminderRequest struct{ BaseRequest } + +// +func (b *EventSnoozeReminderRequestBuilder) Request() *EventSnoozeReminderRequest { + return &EventSnoozeReminderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventSnoozeReminderRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventForwardRequestBuilder struct{ BaseRequestBuilder } + +// Forward action undocumented +func (b *EventRequestBuilder) Forward(reqObj *EventForwardRequestParameter) *EventForwardRequestBuilder { + bb := &EventForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/forward" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventForwardRequest struct{ BaseRequest } + +// +func (b *EventForwardRequestBuilder) Request() *EventForwardRequest { + return &EventForwardRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventForwardRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventAcceptRequestBuilder struct{ BaseRequestBuilder } + +// Accept action undocumented +func (b *EventRequestBuilder) Accept(reqObj *EventAcceptRequestParameter) *EventAcceptRequestBuilder { + bb := &EventAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/accept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventAcceptRequest struct{ BaseRequest } + +// +func (b *EventAcceptRequestBuilder) Request() *EventAcceptRequest { + return &EventAcceptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventAcceptRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventDeclineRequestBuilder struct{ BaseRequestBuilder } + +// Decline action undocumented +func (b *EventRequestBuilder) Decline(reqObj *EventDeclineRequestParameter) *EventDeclineRequestBuilder { + bb := &EventDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/decline" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventDeclineRequest struct{ BaseRequest } + +// +func (b *EventDeclineRequestBuilder) Request() *EventDeclineRequest { + return &EventDeclineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventDeclineRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder } + +// TentativelyAccept action undocumented +func (b *EventRequestBuilder) TentativelyAccept(reqObj *EventTentativelyAcceptRequestParameter) *EventTentativelyAcceptRequestBuilder { + bb := &EventTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tentativelyAccept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventTentativelyAcceptRequest struct{ BaseRequest } + +// +func (b *EventTentativelyAcceptRequestBuilder) Request() *EventTentativelyAcceptRequest { + return &EventTentativelyAcceptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventTentativelyAcceptRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *EventRequestBuilder) Cancel(reqObj *EventCancelRequestParameter) *EventCancelRequestBuilder { + bb := &EventCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventCancelRequest struct{ BaseRequest } + +// +func (b *EventCancelRequestBuilder) Request() *EventCancelRequest { + return &EventCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventMessageRequestObjectAcceptRequestBuilder struct{ BaseRequestBuilder } + +// Accept action undocumented +func (b *EventMessageRequestObjectRequestBuilder) Accept(reqObj *EventMessageRequestObjectAcceptRequestParameter) *EventMessageRequestObjectAcceptRequestBuilder { + bb := &EventMessageRequestObjectAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/accept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventMessageRequestObjectAcceptRequest struct{ BaseRequest } + +// +func (b *EventMessageRequestObjectAcceptRequestBuilder) Request() *EventMessageRequestObjectAcceptRequest { + return &EventMessageRequestObjectAcceptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventMessageRequestObjectAcceptRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventMessageRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder } + +// Decline action undocumented +func (b *EventMessageRequestObjectRequestBuilder) Decline(reqObj *EventMessageRequestObjectDeclineRequestParameter) *EventMessageRequestObjectDeclineRequestBuilder { + bb := &EventMessageRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/decline" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventMessageRequestObjectDeclineRequest struct{ BaseRequest } + +// +func (b *EventMessageRequestObjectDeclineRequestBuilder) Request() *EventMessageRequestObjectDeclineRequest { + return &EventMessageRequestObjectDeclineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventMessageRequestObjectDeclineRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type EventMessageRequestObjectTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder } + +// TentativelyAccept action undocumented +func (b *EventMessageRequestObjectRequestBuilder) TentativelyAccept(reqObj *EventMessageRequestObjectTentativelyAcceptRequestParameter) *EventMessageRequestObjectTentativelyAcceptRequestBuilder { + bb := &EventMessageRequestObjectTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tentativelyAccept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type EventMessageRequestObjectTentativelyAcceptRequest struct{ BaseRequest } + +// +func (b *EventMessageRequestObjectTentativelyAcceptRequestBuilder) Request() *EventMessageRequestObjectTentativelyAcceptRequest { + return &EventMessageRequestObjectTentativelyAcceptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *EventMessageRequestObjectTentativelyAcceptRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go new file mode 100644 index 00000000..bec6bbc1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go @@ -0,0 +1,309 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ExactMatchDataStoreRequestBuilder is request builder for ExactMatchDataStore +type ExactMatchDataStoreRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExactMatchDataStoreRequest +func (b *ExactMatchDataStoreRequestBuilder) Request() *ExactMatchDataStoreRequest { + return &ExactMatchDataStoreRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExactMatchDataStoreRequest is request for ExactMatchDataStore +type ExactMatchDataStoreRequest struct{ BaseRequest } + +// Get performs GET request for ExactMatchDataStore +func (r *ExactMatchDataStoreRequest) Get(ctx context.Context) (resObj *ExactMatchDataStore, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExactMatchDataStore +func (r *ExactMatchDataStoreRequest) Update(ctx context.Context, reqObj *ExactMatchDataStore) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExactMatchDataStore +func (r *ExactMatchDataStoreRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExactMatchLookupJobRequestBuilder is request builder for ExactMatchLookupJob +type ExactMatchLookupJobRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExactMatchLookupJobRequest +func (b *ExactMatchLookupJobRequestBuilder) Request() *ExactMatchLookupJobRequest { + return &ExactMatchLookupJobRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExactMatchLookupJobRequest is request for ExactMatchLookupJob +type ExactMatchLookupJobRequest struct{ BaseRequest } + +// Get performs GET request for ExactMatchLookupJob +func (r *ExactMatchLookupJobRequest) Get(ctx context.Context) (resObj *ExactMatchLookupJob, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExactMatchLookupJob +func (r *ExactMatchLookupJobRequest) Update(ctx context.Context, reqObj *ExactMatchLookupJob) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExactMatchLookupJob +func (r *ExactMatchLookupJobRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExactMatchSessionRequestBuilder is request builder for ExactMatchSession +type ExactMatchSessionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExactMatchSessionRequest +func (b *ExactMatchSessionRequestBuilder) Request() *ExactMatchSessionRequest { + return &ExactMatchSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExactMatchSessionRequest is request for ExactMatchSession +type ExactMatchSessionRequest struct{ BaseRequest } + +// Get performs GET request for ExactMatchSession +func (r *ExactMatchSessionRequest) Get(ctx context.Context) (resObj *ExactMatchSession, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExactMatchSession +func (r *ExactMatchSessionRequest) Update(ctx context.Context, reqObj *ExactMatchSession) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExactMatchSession +func (r *ExactMatchSessionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExactMatchUploadAgentRequestBuilder is request builder for ExactMatchUploadAgent +type ExactMatchUploadAgentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExactMatchUploadAgentRequest +func (b *ExactMatchUploadAgentRequestBuilder) Request() *ExactMatchUploadAgentRequest { + return &ExactMatchUploadAgentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExactMatchUploadAgentRequest is request for ExactMatchUploadAgent +type ExactMatchUploadAgentRequest struct{ BaseRequest } + +// Get performs GET request for ExactMatchUploadAgent +func (r *ExactMatchUploadAgentRequest) Get(ctx context.Context) (resObj *ExactMatchUploadAgent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExactMatchUploadAgent +func (r *ExactMatchUploadAgentRequest) Update(ctx context.Context, reqObj *ExactMatchUploadAgent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExactMatchUploadAgent +func (r *ExactMatchUploadAgentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ExactMatchDataStoreLookupRequestBuilder struct{ BaseRequestBuilder } + +// Lookup action undocumented +func (b *ExactMatchDataStoreRequestBuilder) Lookup(reqObj *ExactMatchDataStoreLookupRequestParameter) *ExactMatchDataStoreLookupRequestBuilder { + bb := &ExactMatchDataStoreLookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/lookup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ExactMatchDataStoreLookupRequest struct{ BaseRequest } + +// +func (b *ExactMatchDataStoreLookupRequestBuilder) Request() *ExactMatchDataStoreLookupRequest { + return &ExactMatchDataStoreLookupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ExactMatchDataStoreLookupRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []string + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []string + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *ExactMatchDataStoreLookupRequest) PostN(ctx context.Context, n int) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *ExactMatchDataStoreLookupRequest) Post(ctx context.Context) ([]string, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type ExactMatchSessionCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *ExactMatchSessionRequestBuilder) Cancel(reqObj *ExactMatchSessionCancelRequestParameter) *ExactMatchSessionCancelRequestBuilder { + bb := &ExactMatchSessionCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ExactMatchSessionCancelRequest struct{ BaseRequest } + +// +func (b *ExactMatchSessionCancelRequestBuilder) Request() *ExactMatchSessionCancelRequest { + return &ExactMatchSessionCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ExactMatchSessionCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ExactMatchSessionCommitRequestBuilder struct{ BaseRequestBuilder } + +// Commit action undocumented +func (b *ExactMatchSessionRequestBuilder) Commit(reqObj *ExactMatchSessionCommitRequestParameter) *ExactMatchSessionCommitRequestBuilder { + bb := &ExactMatchSessionCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/commit" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ExactMatchSessionCommitRequest struct{ BaseRequest } + +// +func (b *ExactMatchSessionCommitRequestBuilder) Request() *ExactMatchSessionCommitRequest { + return &ExactMatchSessionCommitRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ExactMatchSessionCommitRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ExactMatchSessionRenewRequestBuilder struct{ BaseRequestBuilder } + +// Renew action undocumented +func (b *ExactMatchSessionRequestBuilder) Renew(reqObj *ExactMatchSessionRenewRequestParameter) *ExactMatchSessionRenewRequestBuilder { + bb := &ExactMatchSessionRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/renew" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ExactMatchSessionRenewRequest struct{ BaseRequest } + +// +func (b *ExactMatchSessionRenewRequestBuilder) Request() *ExactMatchSessionRenewRequest { + return &ExactMatchSessionRenewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ExactMatchSessionRenewRequest) Post(ctx context.Context) (resObj *ExactMatchSession, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go new file mode 100644 index 00000000..1eb20dba --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ExtensionRequestBuilder is request builder for Extension +type ExtensionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExtensionRequest +func (b *ExtensionRequestBuilder) Request() *ExtensionRequest { + return &ExtensionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExtensionRequest is request for Extension +type ExtensionRequest struct{ BaseRequest } + +// Get performs GET request for Extension +func (r *ExtensionRequest) Get(ctx context.Context) (resObj *Extension, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Extension +func (r *ExtensionRequest) Update(ctx context.Context, reqObj *Extension) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Extension +func (r *ExtensionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExtensionPropertyRequestBuilder is request builder for ExtensionProperty +type ExtensionPropertyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExtensionPropertyRequest +func (b *ExtensionPropertyRequestBuilder) Request() *ExtensionPropertyRequest { + return &ExtensionPropertyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExtensionPropertyRequest is request for ExtensionProperty +type ExtensionPropertyRequest struct{ BaseRequest } + +// Get performs GET request for ExtensionProperty +func (r *ExtensionPropertyRequest) Get(ctx context.Context) (resObj *ExtensionProperty, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExtensionProperty +func (r *ExtensionPropertyRequest) Update(ctx context.Context, reqObj *ExtensionProperty) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExtensionProperty +func (r *ExtensionPropertyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go new file mode 100644 index 00000000..75ebe1dd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ExternalRequestBuilder is request builder for External +type ExternalRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExternalRequest +func (b *ExternalRequestBuilder) Request() *ExternalRequest { + return &ExternalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExternalRequest is request for External +type ExternalRequest struct{ BaseRequest } + +// Get performs GET request for External +func (r *ExternalRequest) Get(ctx context.Context) (resObj *External, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for External +func (r *ExternalRequest) Update(ctx context.Context, reqObj *External) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for External +func (r *ExternalRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExternalConnectionRequestBuilder is request builder for ExternalConnection +type ExternalConnectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExternalConnectionRequest +func (b *ExternalConnectionRequestBuilder) Request() *ExternalConnectionRequest { + return &ExternalConnectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExternalConnectionRequest is request for ExternalConnection +type ExternalConnectionRequest struct{ BaseRequest } + +// Get performs GET request for ExternalConnection +func (r *ExternalConnectionRequest) Get(ctx context.Context) (resObj *ExternalConnection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExternalConnection +func (r *ExternalConnectionRequest) Update(ctx context.Context, reqObj *ExternalConnection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExternalConnection +func (r *ExternalConnectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ExternalItemRequestBuilder is request builder for ExternalItem +type ExternalItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ExternalItemRequest +func (b *ExternalItemRequestBuilder) Request() *ExternalItemRequest { + return &ExternalItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ExternalItemRequest is request for ExternalItem +type ExternalItemRequest struct{ BaseRequest } + +// Get performs GET request for ExternalItem +func (r *ExternalItemRequest) Get(ctx context.Context) (resObj *ExternalItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ExternalItem +func (r *ExternalItemRequest) Update(ctx context.Context, reqObj *ExternalItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ExternalItem +func (r *ExternalItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go new file mode 100644 index 00000000..53d0e533 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// FeatureRolloutPolicyRequestBuilder is request builder for FeatureRolloutPolicy +type FeatureRolloutPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns FeatureRolloutPolicyRequest +func (b *FeatureRolloutPolicyRequestBuilder) Request() *FeatureRolloutPolicyRequest { + return &FeatureRolloutPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// FeatureRolloutPolicyRequest is request for FeatureRolloutPolicy +type FeatureRolloutPolicyRequest struct{ BaseRequest } + +// Get performs GET request for FeatureRolloutPolicy +func (r *FeatureRolloutPolicyRequest) Get(ctx context.Context) (resObj *FeatureRolloutPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for FeatureRolloutPolicy +func (r *FeatureRolloutPolicyRequest) Update(ctx context.Context, reqObj *FeatureRolloutPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for FeatureRolloutPolicy +func (r *FeatureRolloutPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FieldValueSetRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go new file mode 100644 index 00000000..f9820c89 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// FileClassificationRequestObjectRequestBuilder is request builder for FileClassificationRequestObject +type FileClassificationRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns FileClassificationRequestObjectRequest +func (b *FileClassificationRequestObjectRequestBuilder) Request() *FileClassificationRequestObjectRequest { + return &FileClassificationRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// FileClassificationRequestObjectRequest is request for FileClassificationRequestObject +type FileClassificationRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for FileClassificationRequestObject +func (r *FileClassificationRequestObjectRequest) Get(ctx context.Context) (resObj *FileClassificationRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for FileClassificationRequestObject +func (r *FileClassificationRequestObjectRequest) Update(ctx context.Context, reqObj *FileClassificationRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for FileClassificationRequestObject +func (r *FileClassificationRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// FileSecurityProfileRequestBuilder is request builder for FileSecurityProfile +type FileSecurityProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns FileSecurityProfileRequest +func (b *FileSecurityProfileRequestBuilder) Request() *FileSecurityProfileRequest { + return &FileSecurityProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// FileSecurityProfileRequest is request for FileSecurityProfile +type FileSecurityProfileRequest struct{ BaseRequest } + +// Get performs GET request for FileSecurityProfile +func (r *FileSecurityProfileRequest) Get(ctx context.Context) (resObj *FileSecurityProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for FileSecurityProfile +func (r *FileSecurityProfileRequest) Update(ctx context.Context, reqObj *FileSecurityProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for FileSecurityProfile +func (r *FileSecurityProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/FilterOperatorSchemaRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go new file mode 100644 index 00000000..bd252376 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// FinancialsRequestBuilder is request builder for Financials +type FinancialsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns FinancialsRequest +func (b *FinancialsRequestBuilder) Request() *FinancialsRequest { + return &FinancialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// FinancialsRequest is request for Financials +type FinancialsRequest struct{ BaseRequest } + +// Get performs GET request for Financials +func (r *FinancialsRequest) Get(ctx context.Context) (resObj *Financials, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Financials +func (r *FinancialsRequest) Update(ctx context.Context, reqObj *Financials) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Financials +func (r *FinancialsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go new file mode 100644 index 00000000..ef24a378 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// GeneralLedgerEntryRequestBuilder is request builder for GeneralLedgerEntry +type GeneralLedgerEntryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GeneralLedgerEntryRequest +func (b *GeneralLedgerEntryRequestBuilder) Request() *GeneralLedgerEntryRequest { + return &GeneralLedgerEntryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GeneralLedgerEntryRequest is request for GeneralLedgerEntry +type GeneralLedgerEntryRequest struct{ BaseRequest } + +// Get performs GET request for GeneralLedgerEntry +func (r *GeneralLedgerEntryRequest) Get(ctx context.Context) (resObj *GeneralLedgerEntry, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GeneralLedgerEntry +func (r *GeneralLedgerEntryRequest) Update(ctx context.Context, reqObj *GeneralLedgerEntry) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GeneralLedgerEntry +func (r *GeneralLedgerEntryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go new file mode 100644 index 00000000..d4a886e2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go @@ -0,0 +1,315 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// GovernancePolicyTemplateRequestBuilder is request builder for GovernancePolicyTemplate +type GovernancePolicyTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernancePolicyTemplateRequest +func (b *GovernancePolicyTemplateRequestBuilder) Request() *GovernancePolicyTemplateRequest { + return &GovernancePolicyTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernancePolicyTemplateRequest is request for GovernancePolicyTemplate +type GovernancePolicyTemplateRequest struct{ BaseRequest } + +// Get performs GET request for GovernancePolicyTemplate +func (r *GovernancePolicyTemplateRequest) Get(ctx context.Context) (resObj *GovernancePolicyTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernancePolicyTemplate +func (r *GovernancePolicyTemplateRequest) Update(ctx context.Context, reqObj *GovernancePolicyTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernancePolicyTemplate +func (r *GovernancePolicyTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceResourceRequestBuilder is request builder for GovernanceResource +type GovernanceResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceResourceRequest +func (b *GovernanceResourceRequestBuilder) Request() *GovernanceResourceRequest { + return &GovernanceResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceResourceRequest is request for GovernanceResource +type GovernanceResourceRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceResource +func (r *GovernanceResourceRequest) Get(ctx context.Context) (resObj *GovernanceResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceResource +func (r *GovernanceResourceRequest) Update(ctx context.Context, reqObj *GovernanceResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceResource +func (r *GovernanceResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceRoleAssignmentRequestBuilder is request builder for GovernanceRoleAssignment +type GovernanceRoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceRoleAssignmentRequest +func (b *GovernanceRoleAssignmentRequestBuilder) Request() *GovernanceRoleAssignmentRequest { + return &GovernanceRoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceRoleAssignmentRequest is request for GovernanceRoleAssignment +type GovernanceRoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceRoleAssignment +func (r *GovernanceRoleAssignmentRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceRoleAssignment +func (r *GovernanceRoleAssignmentRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceRoleAssignment +func (r *GovernanceRoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceRoleAssignmentRequestObjectRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject +type GovernanceRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceRoleAssignmentRequestObjectRequest +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectRequest { + return &GovernanceRoleAssignmentRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceRoleAssignmentRequestObjectRequest is request for GovernanceRoleAssignmentRequestObject +type GovernanceRoleAssignmentRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceRoleAssignmentRequestObject +func (r *GovernanceRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceRoleAssignmentRequestObject +func (r *GovernanceRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceRoleAssignmentRequestObject +func (r *GovernanceRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceRoleDefinitionRequestBuilder is request builder for GovernanceRoleDefinition +type GovernanceRoleDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceRoleDefinitionRequest +func (b *GovernanceRoleDefinitionRequestBuilder) Request() *GovernanceRoleDefinitionRequest { + return &GovernanceRoleDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceRoleDefinitionRequest is request for GovernanceRoleDefinition +type GovernanceRoleDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceRoleDefinition +func (r *GovernanceRoleDefinitionRequest) Get(ctx context.Context) (resObj *GovernanceRoleDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceRoleDefinition +func (r *GovernanceRoleDefinitionRequest) Update(ctx context.Context, reqObj *GovernanceRoleDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceRoleDefinition +func (r *GovernanceRoleDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceRoleSettingRequestBuilder is request builder for GovernanceRoleSetting +type GovernanceRoleSettingRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceRoleSettingRequest +func (b *GovernanceRoleSettingRequestBuilder) Request() *GovernanceRoleSettingRequest { + return &GovernanceRoleSettingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceRoleSettingRequest is request for GovernanceRoleSetting +type GovernanceRoleSettingRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceRoleSetting +func (r *GovernanceRoleSettingRequest) Get(ctx context.Context) (resObj *GovernanceRoleSetting, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceRoleSetting +func (r *GovernanceRoleSettingRequest) Update(ctx context.Context, reqObj *GovernanceRoleSetting) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceRoleSetting +func (r *GovernanceRoleSettingRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GovernanceSubjectRequestBuilder is request builder for GovernanceSubject +type GovernanceSubjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GovernanceSubjectRequest +func (b *GovernanceSubjectRequestBuilder) Request() *GovernanceSubjectRequest { + return &GovernanceSubjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GovernanceSubjectRequest is request for GovernanceSubject +type GovernanceSubjectRequest struct{ BaseRequest } + +// Get performs GET request for GovernanceSubject +func (r *GovernanceSubjectRequest) Get(ctx context.Context) (resObj *GovernanceSubject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GovernanceSubject +func (r *GovernanceSubjectRequest) Update(ctx context.Context, reqObj *GovernanceSubject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GovernanceSubject +func (r *GovernanceSubjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type GovernanceResourceCollectionRegisterRequestBuilder struct{ BaseRequestBuilder } + +// Register action undocumented +func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Register(reqObj *GovernanceResourceCollectionRegisterRequestParameter) *GovernanceResourceCollectionRegisterRequestBuilder { + bb := &GovernanceResourceCollectionRegisterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/register" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GovernanceResourceCollectionRegisterRequest struct{ BaseRequest } + +// +func (b *GovernanceResourceCollectionRegisterRequestBuilder) Request() *GovernanceResourceCollectionRegisterRequest { + return &GovernanceResourceCollectionRegisterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GovernanceResourceCollectionRegisterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GovernanceRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *GovernanceRoleAssignmentRequestObjectCancelRequestParameter) *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder { + bb := &GovernanceRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GovernanceRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest } + +// +func (b *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectCancelRequest { + return &GovernanceRoleAssignmentRequestObjectCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GovernanceRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder struct{ BaseRequestBuilder } + +// UpdateRequestAction action undocumented +func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) UpdateRequestAction(reqObj *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter) *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder { + bb := &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateRequest" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest struct{ BaseRequest } + +// +func (b *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest { + return &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest) Post(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go new file mode 100644 index 00000000..cb875491 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go @@ -0,0 +1,944 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// GroupRequestBuilder is request builder for Group +type GroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupRequest +func (b *GroupRequestBuilder) Request() *GroupRequest { + return &GroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupRequest is request for Group +type GroupRequest struct{ BaseRequest } + +// Get performs GET request for Group +func (r *GroupRequest) Get(ctx context.Context) (resObj *Group, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Group +func (r *GroupRequest) Update(ctx context.Context, reqObj *Group) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Group +func (r *GroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupLifecyclePolicyRequestBuilder is request builder for GroupLifecyclePolicy +type GroupLifecyclePolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupLifecyclePolicyRequest +func (b *GroupLifecyclePolicyRequestBuilder) Request() *GroupLifecyclePolicyRequest { + return &GroupLifecyclePolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupLifecyclePolicyRequest is request for GroupLifecyclePolicy +type GroupLifecyclePolicyRequest struct{ BaseRequest } + +// Get performs GET request for GroupLifecyclePolicy +func (r *GroupLifecyclePolicyRequest) Get(ctx context.Context) (resObj *GroupLifecyclePolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupLifecyclePolicy +func (r *GroupLifecyclePolicyRequest) Update(ctx context.Context, reqObj *GroupLifecyclePolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupLifecyclePolicy +func (r *GroupLifecyclePolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyConfigurationRequestBuilder is request builder for GroupPolicyConfiguration +type GroupPolicyConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyConfigurationRequest +func (b *GroupPolicyConfigurationRequestBuilder) Request() *GroupPolicyConfigurationRequest { + return &GroupPolicyConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyConfigurationRequest is request for GroupPolicyConfiguration +type GroupPolicyConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyConfiguration +func (r *GroupPolicyConfigurationRequest) Get(ctx context.Context) (resObj *GroupPolicyConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyConfiguration +func (r *GroupPolicyConfigurationRequest) Update(ctx context.Context, reqObj *GroupPolicyConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyConfiguration +func (r *GroupPolicyConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyConfigurationAssignmentRequestBuilder is request builder for GroupPolicyConfigurationAssignment +type GroupPolicyConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyConfigurationAssignmentRequest +func (b *GroupPolicyConfigurationAssignmentRequestBuilder) Request() *GroupPolicyConfigurationAssignmentRequest { + return &GroupPolicyConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyConfigurationAssignmentRequest is request for GroupPolicyConfigurationAssignment +type GroupPolicyConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyConfigurationAssignment +func (r *GroupPolicyConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *GroupPolicyConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyConfigurationAssignment +func (r *GroupPolicyConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyConfigurationAssignment +func (r *GroupPolicyConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyDefinitionRequestBuilder is request builder for GroupPolicyDefinition +type GroupPolicyDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyDefinitionRequest +func (b *GroupPolicyDefinitionRequestBuilder) Request() *GroupPolicyDefinitionRequest { + return &GroupPolicyDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyDefinitionRequest is request for GroupPolicyDefinition +type GroupPolicyDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyDefinition +func (r *GroupPolicyDefinitionRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyDefinition +func (r *GroupPolicyDefinitionRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyDefinition +func (r *GroupPolicyDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyDefinitionFileRequestBuilder is request builder for GroupPolicyDefinitionFile +type GroupPolicyDefinitionFileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyDefinitionFileRequest +func (b *GroupPolicyDefinitionFileRequestBuilder) Request() *GroupPolicyDefinitionFileRequest { + return &GroupPolicyDefinitionFileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyDefinitionFileRequest is request for GroupPolicyDefinitionFile +type GroupPolicyDefinitionFileRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyDefinitionFile +func (r *GroupPolicyDefinitionFileRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionFile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyDefinitionFile +func (r *GroupPolicyDefinitionFileRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionFile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyDefinitionFile +func (r *GroupPolicyDefinitionFileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyDefinitionValueRequestBuilder is request builder for GroupPolicyDefinitionValue +type GroupPolicyDefinitionValueRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyDefinitionValueRequest +func (b *GroupPolicyDefinitionValueRequestBuilder) Request() *GroupPolicyDefinitionValueRequest { + return &GroupPolicyDefinitionValueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyDefinitionValueRequest is request for GroupPolicyDefinitionValue +type GroupPolicyDefinitionValueRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyDefinitionValue +func (r *GroupPolicyDefinitionValueRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionValue, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyDefinitionValue +func (r *GroupPolicyDefinitionValueRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionValue) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyDefinitionValue +func (r *GroupPolicyDefinitionValueRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyMigrationReportRequestBuilder is request builder for GroupPolicyMigrationReport +type GroupPolicyMigrationReportRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyMigrationReportRequest +func (b *GroupPolicyMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportRequest { + return &GroupPolicyMigrationReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyMigrationReportRequest is request for GroupPolicyMigrationReport +type GroupPolicyMigrationReportRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyMigrationReport +func (r *GroupPolicyMigrationReportRequest) Get(ctx context.Context) (resObj *GroupPolicyMigrationReport, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyMigrationReport +func (r *GroupPolicyMigrationReportRequest) Update(ctx context.Context, reqObj *GroupPolicyMigrationReport) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyMigrationReport +func (r *GroupPolicyMigrationReportRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyPresentationRequestBuilder is request builder for GroupPolicyPresentation +type GroupPolicyPresentationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyPresentationRequest +func (b *GroupPolicyPresentationRequestBuilder) Request() *GroupPolicyPresentationRequest { + return &GroupPolicyPresentationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyPresentationRequest is request for GroupPolicyPresentation +type GroupPolicyPresentationRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyPresentation +func (r *GroupPolicyPresentationRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyPresentation +func (r *GroupPolicyPresentationRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyPresentation +func (r *GroupPolicyPresentationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicyPresentationValueRequestBuilder is request builder for GroupPolicyPresentationValue +type GroupPolicyPresentationValueRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicyPresentationValueRequest +func (b *GroupPolicyPresentationValueRequestBuilder) Request() *GroupPolicyPresentationValueRequest { + return &GroupPolicyPresentationValueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicyPresentationValueRequest is request for GroupPolicyPresentationValue +type GroupPolicyPresentationValueRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicyPresentationValue +func (r *GroupPolicyPresentationValueRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentationValue, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicyPresentationValue +func (r *GroupPolicyPresentationValueRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentationValue) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicyPresentationValue +func (r *GroupPolicyPresentationValueRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// GroupPolicySettingMappingRequestBuilder is request builder for GroupPolicySettingMapping +type GroupPolicySettingMappingRequestBuilder struct{ BaseRequestBuilder } + +// Request returns GroupPolicySettingMappingRequest +func (b *GroupPolicySettingMappingRequestBuilder) Request() *GroupPolicySettingMappingRequest { + return &GroupPolicySettingMappingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// GroupPolicySettingMappingRequest is request for GroupPolicySettingMapping +type GroupPolicySettingMappingRequest struct{ BaseRequest } + +// Get performs GET request for GroupPolicySettingMapping +func (r *GroupPolicySettingMappingRequest) Get(ctx context.Context) (resObj *GroupPolicySettingMapping, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for GroupPolicySettingMapping +func (r *GroupPolicySettingMappingRequest) Update(ctx context.Context, reqObj *GroupPolicySettingMapping) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for GroupPolicySettingMapping +func (r *GroupPolicySettingMappingRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type GroupCollectionEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateDynamicMembership action undocumented +func (b *UserJoinedGroupsCollectionRequestBuilder) EvaluateDynamicMembership(reqObj *GroupCollectionEvaluateDynamicMembershipRequestParameter) *GroupCollectionEvaluateDynamicMembershipRequestBuilder { + bb := &GroupCollectionEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupCollectionEvaluateDynamicMembershipRequest struct{ BaseRequest } + +// +func (b *GroupCollectionEvaluateDynamicMembershipRequestBuilder) Request() *GroupCollectionEvaluateDynamicMembershipRequest { + return &GroupCollectionEvaluateDynamicMembershipRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupCollectionEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupLifecyclePolicyCollectionRenewGroupRequestBuilder struct{ BaseRequestBuilder } + +// RenewGroup action undocumented +func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) RenewGroup(reqObj *GroupLifecyclePolicyCollectionRenewGroupRequestParameter) *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder { + bb := &GroupLifecyclePolicyCollectionRenewGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/renewGroup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupLifecyclePolicyCollectionRenewGroupRequest struct{ BaseRequest } + +// +func (b *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder) Request() *GroupLifecyclePolicyCollectionRenewGroupRequest { + return &GroupLifecyclePolicyCollectionRenewGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupLifecyclePolicyCollectionRenewGroupRequest) Post(ctx context.Context) (resObj *bool, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder struct{ BaseRequestBuilder } + +// CreateMigrationReport action undocumented +func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) CreateMigrationReport(reqObj *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter) *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder { + bb := &GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createMigrationReport" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupPolicyMigrationReportCollectionCreateMigrationReportRequest struct{ BaseRequest } + +// +func (b *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest { + return &GroupPolicyMigrationReportCollectionCreateMigrationReportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest) Post(ctx context.Context) (resObj *string, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupValidatePropertiesRequestBuilder struct{ BaseRequestBuilder } + +// ValidateProperties action undocumented +func (b *GroupRequestBuilder) ValidateProperties(reqObj *GroupValidatePropertiesRequestParameter) *GroupValidatePropertiesRequestBuilder { + bb := &GroupValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupValidatePropertiesRequest struct{ BaseRequest } + +// +func (b *GroupValidatePropertiesRequestBuilder) Request() *GroupValidatePropertiesRequest { + return &GroupValidatePropertiesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupValidatePropertiesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupCheckGrantedPermissionsForAppRequestBuilder struct{ BaseRequestBuilder } + +// CheckGrantedPermissionsForApp action undocumented +func (b *GroupRequestBuilder) CheckGrantedPermissionsForApp(reqObj *GroupCheckGrantedPermissionsForAppRequestParameter) *GroupCheckGrantedPermissionsForAppRequestBuilder { + bb := &GroupCheckGrantedPermissionsForAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/checkGrantedPermissionsForApp" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupCheckGrantedPermissionsForAppRequest struct{ BaseRequest } + +// +func (b *GroupCheckGrantedPermissionsForAppRequestBuilder) Request() *GroupCheckGrantedPermissionsForAppRequest { + return &GroupCheckGrantedPermissionsForAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupCheckGrantedPermissionsForAppRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResourceSpecificPermissionGrant + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResourceSpecificPermissionGrant + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *GroupCheckGrantedPermissionsForAppRequest) PostN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *GroupCheckGrantedPermissionsForAppRequest) Post(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type GroupAssignLicenseRequestBuilder struct{ BaseRequestBuilder } + +// AssignLicense action undocumented +func (b *GroupRequestBuilder) AssignLicense(reqObj *GroupAssignLicenseRequestParameter) *GroupAssignLicenseRequestBuilder { + bb := &GroupAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assignLicense" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupAssignLicenseRequest struct{ BaseRequest } + +// +func (b *GroupAssignLicenseRequestBuilder) Request() *GroupAssignLicenseRequest { + return &GroupAssignLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupAssignLicenseRequest) Post(ctx context.Context) (resObj *Group, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupSubscribeByMailRequestBuilder struct{ BaseRequestBuilder } + +// SubscribeByMail action undocumented +func (b *GroupRequestBuilder) SubscribeByMail(reqObj *GroupSubscribeByMailRequestParameter) *GroupSubscribeByMailRequestBuilder { + bb := &GroupSubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/subscribeByMail" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupSubscribeByMailRequest struct{ BaseRequest } + +// +func (b *GroupSubscribeByMailRequestBuilder) Request() *GroupSubscribeByMailRequest { + return &GroupSubscribeByMailRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupSubscribeByMailRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupUnsubscribeByMailRequestBuilder struct{ BaseRequestBuilder } + +// UnsubscribeByMail action undocumented +func (b *GroupRequestBuilder) UnsubscribeByMail(reqObj *GroupUnsubscribeByMailRequestParameter) *GroupUnsubscribeByMailRequestBuilder { + bb := &GroupUnsubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unsubscribeByMail" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupUnsubscribeByMailRequest struct{ BaseRequest } + +// +func (b *GroupUnsubscribeByMailRequestBuilder) Request() *GroupUnsubscribeByMailRequest { + return &GroupUnsubscribeByMailRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupUnsubscribeByMailRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupAddFavoriteRequestBuilder struct{ BaseRequestBuilder } + +// AddFavorite action undocumented +func (b *GroupRequestBuilder) AddFavorite(reqObj *GroupAddFavoriteRequestParameter) *GroupAddFavoriteRequestBuilder { + bb := &GroupAddFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addFavorite" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupAddFavoriteRequest struct{ BaseRequest } + +// +func (b *GroupAddFavoriteRequestBuilder) Request() *GroupAddFavoriteRequest { + return &GroupAddFavoriteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupAddFavoriteRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupRemoveFavoriteRequestBuilder struct{ BaseRequestBuilder } + +// RemoveFavorite action undocumented +func (b *GroupRequestBuilder) RemoveFavorite(reqObj *GroupRemoveFavoriteRequestParameter) *GroupRemoveFavoriteRequestBuilder { + bb := &GroupRemoveFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/removeFavorite" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupRemoveFavoriteRequest struct{ BaseRequest } + +// +func (b *GroupRemoveFavoriteRequestBuilder) Request() *GroupRemoveFavoriteRequest { + return &GroupRemoveFavoriteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupRemoveFavoriteRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupResetUnseenCountRequestBuilder struct{ BaseRequestBuilder } + +// ResetUnseenCount action undocumented +func (b *GroupRequestBuilder) ResetUnseenCount(reqObj *GroupResetUnseenCountRequestParameter) *GroupResetUnseenCountRequestBuilder { + bb := &GroupResetUnseenCountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/resetUnseenCount" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupResetUnseenCountRequest struct{ BaseRequest } + +// +func (b *GroupResetUnseenCountRequestBuilder) Request() *GroupResetUnseenCountRequest { + return &GroupResetUnseenCountRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupResetUnseenCountRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupRenewRequestBuilder struct{ BaseRequestBuilder } + +// Renew action undocumented +func (b *GroupRequestBuilder) Renew(reqObj *GroupRenewRequestParameter) *GroupRenewRequestBuilder { + bb := &GroupRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/renew" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupRenewRequest struct{ BaseRequest } + +// +func (b *GroupRenewRequestBuilder) Request() *GroupRenewRequest { + return &GroupRenewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupRenewRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type GroupEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateDynamicMembership action undocumented +func (b *GroupRequestBuilder) EvaluateDynamicMembership(reqObj *GroupEvaluateDynamicMembershipRequestParameter) *GroupEvaluateDynamicMembershipRequestBuilder { + bb := &GroupEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupEvaluateDynamicMembershipRequest struct{ BaseRequest } + +// +func (b *GroupEvaluateDynamicMembershipRequestBuilder) Request() *GroupEvaluateDynamicMembershipRequest { + return &GroupEvaluateDynamicMembershipRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupLifecyclePolicyAddGroupRequestBuilder struct{ BaseRequestBuilder } + +// AddGroup action undocumented +func (b *GroupLifecyclePolicyRequestBuilder) AddGroup(reqObj *GroupLifecyclePolicyAddGroupRequestParameter) *GroupLifecyclePolicyAddGroupRequestBuilder { + bb := &GroupLifecyclePolicyAddGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addGroup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupLifecyclePolicyAddGroupRequest struct{ BaseRequest } + +// +func (b *GroupLifecyclePolicyAddGroupRequestBuilder) Request() *GroupLifecyclePolicyAddGroupRequest { + return &GroupLifecyclePolicyAddGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupLifecyclePolicyAddGroupRequest) Post(ctx context.Context) (resObj *bool, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupLifecyclePolicyRemoveGroupRequestBuilder struct{ BaseRequestBuilder } + +// RemoveGroup action undocumented +func (b *GroupLifecyclePolicyRequestBuilder) RemoveGroup(reqObj *GroupLifecyclePolicyRemoveGroupRequestParameter) *GroupLifecyclePolicyRemoveGroupRequestBuilder { + bb := &GroupLifecyclePolicyRemoveGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/removeGroup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupLifecyclePolicyRemoveGroupRequest struct{ BaseRequest } + +// +func (b *GroupLifecyclePolicyRemoveGroupRequestBuilder) Request() *GroupLifecyclePolicyRemoveGroupRequest { + return &GroupLifecyclePolicyRemoveGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupLifecyclePolicyRemoveGroupRequest) Post(ctx context.Context) (resObj *bool, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type GroupPolicyConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *GroupPolicyConfigurationRequestBuilder) Assign(reqObj *GroupPolicyConfigurationAssignRequestParameter) *GroupPolicyConfigurationAssignRequestBuilder { + bb := &GroupPolicyConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupPolicyConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *GroupPolicyConfigurationAssignRequestBuilder) Request() *GroupPolicyConfigurationAssignRequest { + return &GroupPolicyConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupPolicyConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []GroupPolicyConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []GroupPolicyConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *GroupPolicyConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]GroupPolicyConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *GroupPolicyConfigurationAssignRequest) Post(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder struct{ BaseRequestBuilder } + +// UpdateDefinitionValues action undocumented +func (b *GroupPolicyConfigurationRequestBuilder) UpdateDefinitionValues(reqObj *GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter) *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder { + bb := &GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateDefinitionValues" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type GroupPolicyConfigurationUpdateDefinitionValuesRequest struct{ BaseRequest } + +// +func (b *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder) Request() *GroupPolicyConfigurationUpdateDefinitionValuesRequest { + return &GroupPolicyConfigurationUpdateDefinitionValuesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *GroupPolicyConfigurationUpdateDefinitionValuesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/HostSecurityProfileRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go new file mode 100644 index 00000000..8e4d7ca2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go @@ -0,0 +1,849 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// IOSCertificateProfileRequestBuilder is request builder for IOSCertificateProfile +type IOSCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSCertificateProfileRequest +func (b *IOSCertificateProfileRequestBuilder) Request() *IOSCertificateProfileRequest { + return &IOSCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSCertificateProfileRequest is request for IOSCertificateProfile +type IOSCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for IOSCertificateProfile +func (r *IOSCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSCertificateProfile +func (r *IOSCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSCertificateProfile +func (r *IOSCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSCertificateProfileBaseRequestBuilder is request builder for IOSCertificateProfileBase +type IOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSCertificateProfileBaseRequest +func (b *IOSCertificateProfileBaseRequestBuilder) Request() *IOSCertificateProfileBaseRequest { + return &IOSCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSCertificateProfileBaseRequest is request for IOSCertificateProfileBase +type IOSCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for IOSCertificateProfileBase +func (r *IOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *IOSCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSCertificateProfileBase +func (r *IOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *IOSCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSCertificateProfileBase +func (r *IOSCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSDerivedCredentialAuthenticationConfigurationRequestBuilder is request builder for IOSDerivedCredentialAuthenticationConfiguration +type IOSDerivedCredentialAuthenticationConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSDerivedCredentialAuthenticationConfigurationRequest +func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) Request() *IOSDerivedCredentialAuthenticationConfigurationRequest { + return &IOSDerivedCredentialAuthenticationConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSDerivedCredentialAuthenticationConfigurationRequest is request for IOSDerivedCredentialAuthenticationConfiguration +type IOSDerivedCredentialAuthenticationConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSDerivedCredentialAuthenticationConfiguration +func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Get(ctx context.Context) (resObj *IOSDerivedCredentialAuthenticationConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSDerivedCredentialAuthenticationConfiguration +func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Update(ctx context.Context, reqObj *IOSDerivedCredentialAuthenticationConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSDerivedCredentialAuthenticationConfiguration +func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSDeviceFeaturesConfigurationRequestBuilder is request builder for IOSDeviceFeaturesConfiguration +type IOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSDeviceFeaturesConfigurationRequest +func (b *IOSDeviceFeaturesConfigurationRequestBuilder) Request() *IOSDeviceFeaturesConfigurationRequest { + return &IOSDeviceFeaturesConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSDeviceFeaturesConfigurationRequest is request for IOSDeviceFeaturesConfiguration +type IOSDeviceFeaturesConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSDeviceFeaturesConfiguration +func (r *IOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *IOSDeviceFeaturesConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSDeviceFeaturesConfiguration +func (r *IOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *IOSDeviceFeaturesConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSDeviceFeaturesConfiguration +func (r *IOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSEasEmailProfileConfigurationRequestBuilder is request builder for IOSEasEmailProfileConfiguration +type IOSEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSEasEmailProfileConfigurationRequest +func (b *IOSEasEmailProfileConfigurationRequestBuilder) Request() *IOSEasEmailProfileConfigurationRequest { + return &IOSEasEmailProfileConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSEasEmailProfileConfigurationRequest is request for IOSEasEmailProfileConfiguration +type IOSEasEmailProfileConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSEasEmailProfileConfiguration +func (r *IOSEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *IOSEasEmailProfileConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSEasEmailProfileConfiguration +func (r *IOSEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *IOSEasEmailProfileConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSEasEmailProfileConfiguration +func (r *IOSEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSEnterpriseWiFiConfigurationRequestBuilder is request builder for IOSEnterpriseWiFiConfiguration +type IOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSEnterpriseWiFiConfigurationRequest +func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRequest { + return &IOSEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSEnterpriseWiFiConfigurationRequest is request for IOSEnterpriseWiFiConfiguration +type IOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSEnterpriseWiFiConfiguration +func (r *IOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *IOSEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSEnterpriseWiFiConfiguration +func (r *IOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *IOSEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSEnterpriseWiFiConfiguration +func (r *IOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSImportedPFXCertificateProfileRequestBuilder is request builder for IOSImportedPFXCertificateProfile +type IOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSImportedPFXCertificateProfileRequest +func (b *IOSImportedPFXCertificateProfileRequestBuilder) Request() *IOSImportedPFXCertificateProfileRequest { + return &IOSImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSImportedPFXCertificateProfileRequest is request for IOSImportedPFXCertificateProfile +type IOSImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for IOSImportedPFXCertificateProfile +func (r *IOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSImportedPFXCertificateProfile +func (r *IOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSImportedPFXCertificateProfile +func (r *IOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSLobAppProvisioningConfigurationRequestBuilder is request builder for IOSLobAppProvisioningConfiguration +type IOSLobAppProvisioningConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSLobAppProvisioningConfigurationRequest +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Request() *IOSLobAppProvisioningConfigurationRequest { + return &IOSLobAppProvisioningConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSLobAppProvisioningConfigurationRequest is request for IOSLobAppProvisioningConfiguration +type IOSLobAppProvisioningConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSLobAppProvisioningConfiguration +func (r *IOSLobAppProvisioningConfigurationRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSLobAppProvisioningConfiguration +func (r *IOSLobAppProvisioningConfigurationRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSLobAppProvisioningConfiguration +func (r *IOSLobAppProvisioningConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSLobAppProvisioningConfigurationAssignmentRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment +type IOSLobAppProvisioningConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSLobAppProvisioningConfigurationAssignmentRequest +func (b *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentRequest { + return &IOSLobAppProvisioningConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSLobAppProvisioningConfigurationAssignmentRequest is request for IOSLobAppProvisioningConfigurationAssignment +type IOSLobAppProvisioningConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment +func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSLobAppProvisioningConfigurationAssignment +func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSLobAppProvisioningConfigurationAssignment +func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSManagedAppProtectionRequestBuilder is request builder for IOSManagedAppProtection +type IOSManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSManagedAppProtectionRequest +func (b *IOSManagedAppProtectionRequestBuilder) Request() *IOSManagedAppProtectionRequest { + return &IOSManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSManagedAppProtectionRequest is request for IOSManagedAppProtection +type IOSManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for IOSManagedAppProtection +func (r *IOSManagedAppProtectionRequest) Get(ctx context.Context) (resObj *IOSManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSManagedAppProtection +func (r *IOSManagedAppProtectionRequest) Update(ctx context.Context, reqObj *IOSManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSManagedAppProtection +func (r *IOSManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSPkcsCertificateProfileRequestBuilder is request builder for IOSPkcsCertificateProfile +type IOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSPkcsCertificateProfileRequest +func (b *IOSPkcsCertificateProfileRequestBuilder) Request() *IOSPkcsCertificateProfileRequest { + return &IOSPkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSPkcsCertificateProfileRequest is request for IOSPkcsCertificateProfile +type IOSPkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for IOSPkcsCertificateProfile +func (r *IOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSPkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSPkcsCertificateProfile +func (r *IOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSPkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSPkcsCertificateProfile +func (r *IOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSScepCertificateProfileRequestBuilder is request builder for IOSScepCertificateProfile +type IOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSScepCertificateProfileRequest +func (b *IOSScepCertificateProfileRequestBuilder) Request() *IOSScepCertificateProfileRequest { + return &IOSScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSScepCertificateProfileRequest is request for IOSScepCertificateProfile +type IOSScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for IOSScepCertificateProfile +func (r *IOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSScepCertificateProfile +func (r *IOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSScepCertificateProfile +func (r *IOSScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSTrustedRootCertificateRequestBuilder is request builder for IOSTrustedRootCertificate +type IOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSTrustedRootCertificateRequest +func (b *IOSTrustedRootCertificateRequestBuilder) Request() *IOSTrustedRootCertificateRequest { + return &IOSTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSTrustedRootCertificateRequest is request for IOSTrustedRootCertificate +type IOSTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for IOSTrustedRootCertificate +func (r *IOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *IOSTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSTrustedRootCertificate +func (r *IOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *IOSTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSTrustedRootCertificate +func (r *IOSTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSUpdateDeviceStatusRequestBuilder is request builder for IOSUpdateDeviceStatus +type IOSUpdateDeviceStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSUpdateDeviceStatusRequest +func (b *IOSUpdateDeviceStatusRequestBuilder) Request() *IOSUpdateDeviceStatusRequest { + return &IOSUpdateDeviceStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSUpdateDeviceStatusRequest is request for IOSUpdateDeviceStatus +type IOSUpdateDeviceStatusRequest struct{ BaseRequest } + +// Get performs GET request for IOSUpdateDeviceStatus +func (r *IOSUpdateDeviceStatusRequest) Get(ctx context.Context) (resObj *IOSUpdateDeviceStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSUpdateDeviceStatus +func (r *IOSUpdateDeviceStatusRequest) Update(ctx context.Context, reqObj *IOSUpdateDeviceStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSUpdateDeviceStatus +func (r *IOSUpdateDeviceStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSVPNConfigurationRequestBuilder is request builder for IOSVPNConfiguration +type IOSVPNConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSVPNConfigurationRequest +func (b *IOSVPNConfigurationRequestBuilder) Request() *IOSVPNConfigurationRequest { + return &IOSVPNConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSVPNConfigurationRequest is request for IOSVPNConfiguration +type IOSVPNConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for IOSVPNConfiguration +func (r *IOSVPNConfigurationRequest) Get(ctx context.Context) (resObj *IOSVPNConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSVPNConfiguration +func (r *IOSVPNConfigurationRequest) Update(ctx context.Context, reqObj *IOSVPNConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSVPNConfiguration +func (r *IOSVPNConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSVPPAppRequestBuilder is request builder for IOSVPPApp +type IOSVPPAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSVPPAppRequest +func (b *IOSVPPAppRequestBuilder) Request() *IOSVPPAppRequest { + return &IOSVPPAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSVPPAppRequest is request for IOSVPPApp +type IOSVPPAppRequest struct{ BaseRequest } + +// Get performs GET request for IOSVPPApp +func (r *IOSVPPAppRequest) Get(ctx context.Context) (resObj *IOSVPPApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSVPPApp +func (r *IOSVPPAppRequest) Update(ctx context.Context, reqObj *IOSVPPApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSVPPApp +func (r *IOSVPPAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IOSVPPAppAssignedLicenseRequestBuilder is request builder for IOSVPPAppAssignedLicense +type IOSVPPAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IOSVPPAppAssignedLicenseRequest +func (b *IOSVPPAppAssignedLicenseRequestBuilder) Request() *IOSVPPAppAssignedLicenseRequest { + return &IOSVPPAppAssignedLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IOSVPPAppAssignedLicenseRequest is request for IOSVPPAppAssignedLicense +type IOSVPPAppAssignedLicenseRequest struct{ BaseRequest } + +// Get performs GET request for IOSVPPAppAssignedLicense +func (r *IOSVPPAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *IOSVPPAppAssignedLicense, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IOSVPPAppAssignedLicense +func (r *IOSVPPAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *IOSVPPAppAssignedLicense) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IOSVPPAppAssignedLicense +func (r *IOSVPPAppAssignedLicenseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter) *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest { + return &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder { + bb := &IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *IOSManagedAppProtectionCollectionHasPayloadLinksRequest { + return &IOSManagedAppProtectionCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type IOSLobAppProvisioningConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assign(reqObj *IOSLobAppProvisioningConfigurationAssignRequestParameter) *IOSLobAppProvisioningConfigurationAssignRequestBuilder { + bb := &IOSLobAppProvisioningConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSLobAppProvisioningConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *IOSLobAppProvisioningConfigurationAssignRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignRequest { + return &IOSLobAppProvisioningConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSLobAppProvisioningConfigurationAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type IOSVPPAppRevokeAllLicensesRequestBuilder struct{ BaseRequestBuilder } + +// RevokeAllLicenses action undocumented +func (b *IOSVPPAppRequestBuilder) RevokeAllLicenses(reqObj *IOSVPPAppRevokeAllLicensesRequestParameter) *IOSVPPAppRevokeAllLicensesRequestBuilder { + bb := &IOSVPPAppRevokeAllLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeAllLicenses" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSVPPAppRevokeAllLicensesRequest struct{ BaseRequest } + +// +func (b *IOSVPPAppRevokeAllLicensesRequestBuilder) Request() *IOSVPPAppRevokeAllLicensesRequest { + return &IOSVPPAppRevokeAllLicensesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSVPPAppRevokeAllLicensesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type IOSVPPAppRevokeUserLicenseRequestBuilder struct{ BaseRequestBuilder } + +// RevokeUserLicense action undocumented +func (b *IOSVPPAppRequestBuilder) RevokeUserLicense(reqObj *IOSVPPAppRevokeUserLicenseRequestParameter) *IOSVPPAppRevokeUserLicenseRequestBuilder { + bb := &IOSVPPAppRevokeUserLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeUserLicense" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSVPPAppRevokeUserLicenseRequest struct{ BaseRequest } + +// +func (b *IOSVPPAppRevokeUserLicenseRequestBuilder) Request() *IOSVPPAppRevokeUserLicenseRequest { + return &IOSVPPAppRevokeUserLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSVPPAppRevokeUserLicenseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type IOSVPPAppRevokeDeviceLicenseRequestBuilder struct{ BaseRequestBuilder } + +// RevokeDeviceLicense action undocumented +func (b *IOSVPPAppRequestBuilder) RevokeDeviceLicense(reqObj *IOSVPPAppRevokeDeviceLicenseRequestParameter) *IOSVPPAppRevokeDeviceLicenseRequestBuilder { + bb := &IOSVPPAppRevokeDeviceLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeDeviceLicense" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IOSVPPAppRevokeDeviceLicenseRequest struct{ BaseRequest } + +// +func (b *IOSVPPAppRevokeDeviceLicenseRequestBuilder) Request() *IOSVPPAppRevokeDeviceLicenseRequest { + return &IOSVPPAppRevokeDeviceLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IOSVPPAppRevokeDeviceLicenseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/IPSecurityProfileRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go new file mode 100644 index 00000000..8cd8c14a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go @@ -0,0 +1,170 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// IdentityContainerRequestBuilder is request builder for IdentityContainer +type IdentityContainerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IdentityContainerRequest +func (b *IdentityContainerRequestBuilder) Request() *IdentityContainerRequest { + return &IdentityContainerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IdentityContainerRequest is request for IdentityContainer +type IdentityContainerRequest struct{ BaseRequest } + +// Get performs GET request for IdentityContainer +func (r *IdentityContainerRequest) Get(ctx context.Context) (resObj *IdentityContainer, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IdentityContainer +func (r *IdentityContainerRequest) Update(ctx context.Context, reqObj *IdentityContainer) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IdentityContainer +func (r *IdentityContainerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IdentityGovernanceRequestBuilder is request builder for IdentityGovernance +type IdentityGovernanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IdentityGovernanceRequest +func (b *IdentityGovernanceRequestBuilder) Request() *IdentityGovernanceRequest { + return &IdentityGovernanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IdentityGovernanceRequest is request for IdentityGovernance +type IdentityGovernanceRequest struct{ BaseRequest } + +// Get performs GET request for IdentityGovernance +func (r *IdentityGovernanceRequest) Get(ctx context.Context) (resObj *IdentityGovernance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IdentityGovernance +func (r *IdentityGovernanceRequest) Update(ctx context.Context, reqObj *IdentityGovernance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IdentityGovernance +func (r *IdentityGovernanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IdentityProviderRequestBuilder is request builder for IdentityProvider +type IdentityProviderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IdentityProviderRequest +func (b *IdentityProviderRequestBuilder) Request() *IdentityProviderRequest { + return &IdentityProviderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IdentityProviderRequest is request for IdentityProvider +type IdentityProviderRequest struct{ BaseRequest } + +// Get performs GET request for IdentityProvider +func (r *IdentityProviderRequest) Get(ctx context.Context) (resObj *IdentityProvider, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IdentityProvider +func (r *IdentityProviderRequest) Update(ctx context.Context, reqObj *IdentityProvider) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IdentityProvider +func (r *IdentityProviderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IdentityRiskEventRequestBuilder is request builder for IdentityRiskEvent +type IdentityRiskEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IdentityRiskEventRequest +func (b *IdentityRiskEventRequestBuilder) Request() *IdentityRiskEventRequest { + return &IdentityRiskEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IdentityRiskEventRequest is request for IdentityRiskEvent +type IdentityRiskEventRequest struct{ BaseRequest } + +// Get performs GET request for IdentityRiskEvent +func (r *IdentityRiskEventRequest) Get(ctx context.Context) (resObj *IdentityRiskEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IdentityRiskEvent +func (r *IdentityRiskEventRequest) Update(ctx context.Context, reqObj *IdentityRiskEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IdentityRiskEvent +func (r *IdentityRiskEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IdentityUserFlowRequestBuilder is request builder for IdentityUserFlow +type IdentityUserFlowRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IdentityUserFlowRequest +func (b *IdentityUserFlowRequestBuilder) Request() *IdentityUserFlowRequest { + return &IdentityUserFlowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IdentityUserFlowRequest is request for IdentityUserFlow +type IdentityUserFlowRequest struct{ BaseRequest } + +// Get performs GET request for IdentityUserFlow +func (r *IdentityUserFlowRequest) Get(ctx context.Context) (resObj *IdentityUserFlow, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IdentityUserFlow +func (r *IdentityUserFlowRequest) Update(ctx context.Context, reqObj *IdentityUserFlow) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IdentityUserFlow +func (r *IdentityUserFlowRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go new file mode 100644 index 00000000..35ba4339 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go @@ -0,0 +1,496 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// ImportedAppleDeviceIdentityRequestBuilder is request builder for ImportedAppleDeviceIdentity +type ImportedAppleDeviceIdentityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ImportedAppleDeviceIdentityRequest +func (b *ImportedAppleDeviceIdentityRequestBuilder) Request() *ImportedAppleDeviceIdentityRequest { + return &ImportedAppleDeviceIdentityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ImportedAppleDeviceIdentityRequest is request for ImportedAppleDeviceIdentity +type ImportedAppleDeviceIdentityRequest struct{ BaseRequest } + +// Get performs GET request for ImportedAppleDeviceIdentity +func (r *ImportedAppleDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedAppleDeviceIdentity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ImportedAppleDeviceIdentity +func (r *ImportedAppleDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ImportedAppleDeviceIdentity +func (r *ImportedAppleDeviceIdentityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ImportedDeviceIdentityRequestBuilder is request builder for ImportedDeviceIdentity +type ImportedDeviceIdentityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ImportedDeviceIdentityRequest +func (b *ImportedDeviceIdentityRequestBuilder) Request() *ImportedDeviceIdentityRequest { + return &ImportedDeviceIdentityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ImportedDeviceIdentityRequest is request for ImportedDeviceIdentity +type ImportedDeviceIdentityRequest struct{ BaseRequest } + +// Get performs GET request for ImportedDeviceIdentity +func (r *ImportedDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedDeviceIdentity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ImportedDeviceIdentity +func (r *ImportedDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedDeviceIdentity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ImportedDeviceIdentity +func (r *ImportedDeviceIdentityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ImportedWindowsAutopilotDeviceIdentityRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity +type ImportedWindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ImportedWindowsAutopilotDeviceIdentityRequest +func (b *ImportedWindowsAutopilotDeviceIdentityRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityRequest { + return &ImportedWindowsAutopilotDeviceIdentityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ImportedWindowsAutopilotDeviceIdentityRequest is request for ImportedWindowsAutopilotDeviceIdentity +type ImportedWindowsAutopilotDeviceIdentityRequest struct{ BaseRequest } + +// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity +func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentity +func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentity +func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentityUpload +type ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ImportedWindowsAutopilotDeviceIdentityUploadRequest +func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadRequest { + return &ImportedWindowsAutopilotDeviceIdentityUploadRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ImportedWindowsAutopilotDeviceIdentityUploadRequest is request for ImportedWindowsAutopilotDeviceIdentityUpload +type ImportedWindowsAutopilotDeviceIdentityUploadRequest struct{ BaseRequest } + +// Get performs GET request for ImportedWindowsAutopilotDeviceIdentityUpload +func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentityUpload, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentityUpload +func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentityUpload) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentityUpload +func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder } + +// ImportAppleDeviceIdentityList action undocumented +func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ImportAppleDeviceIdentityList(reqObj *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter) *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder { + bb := &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/importAppleDeviceIdentityList" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest struct{ BaseRequest } + +// +func (b *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder) Request() *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest { + return &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedAppleDeviceIdentityResult, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedAppleDeviceIdentityResult + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedAppleDeviceIdentityResult + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) PostN(ctx context.Context, n int) ([]ImportedAppleDeviceIdentityResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Post(ctx context.Context) ([]ImportedAppleDeviceIdentityResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder } + +// ImportDeviceIdentityList action undocumented +func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ImportDeviceIdentityList(reqObj *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter) *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder { + bb := &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/importDeviceIdentityList" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest struct{ BaseRequest } + +// +func (b *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder) Request() *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest { + return &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentityResult, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedDeviceIdentityResult + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedDeviceIdentityResult + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) PostN(ctx context.Context, n int) ([]ImportedDeviceIdentityResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Post(ctx context.Context) ([]ImportedDeviceIdentityResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder struct{ BaseRequestBuilder } + +// SearchExistingIdentities action undocumented +func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) SearchExistingIdentities(reqObj *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter) *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder { + bb := &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/searchExistingIdentities" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest struct{ BaseRequest } + +// +func (b *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder) Request() *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest { + return &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) PostN(ctx context.Context, n int) ([]ImportedDeviceIdentity, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Post(ctx context.Context) ([]ImportedDeviceIdentity, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder struct{ BaseRequestBuilder } + +// Import action undocumented +func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder { + bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/import" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Import action undocumented +func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder { + bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/import" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest struct{ BaseRequest } + +// +func (b *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest { + return &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ImportedWindowsAutopilotDeviceIdentity + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ImportedWindowsAutopilotDeviceIdentity + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) PostN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Post(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go new file mode 100644 index 00000000..31c365c3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// InferenceClassificationRequestBuilder is request builder for InferenceClassification +type InferenceClassificationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InferenceClassificationRequest +func (b *InferenceClassificationRequestBuilder) Request() *InferenceClassificationRequest { + return &InferenceClassificationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InferenceClassificationRequest is request for InferenceClassification +type InferenceClassificationRequest struct{ BaseRequest } + +// Get performs GET request for InferenceClassification +func (r *InferenceClassificationRequest) Get(ctx context.Context) (resObj *InferenceClassification, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for InferenceClassification +func (r *InferenceClassificationRequest) Update(ctx context.Context, reqObj *InferenceClassification) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for InferenceClassification +func (r *InferenceClassificationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// InferenceClassificationOverrideRequestBuilder is request builder for InferenceClassificationOverride +type InferenceClassificationOverrideRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InferenceClassificationOverrideRequest +func (b *InferenceClassificationOverrideRequestBuilder) Request() *InferenceClassificationOverrideRequest { + return &InferenceClassificationOverrideRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InferenceClassificationOverrideRequest is request for InferenceClassificationOverride +type InferenceClassificationOverrideRequest struct{ BaseRequest } + +// Get performs GET request for InferenceClassificationOverride +func (r *InferenceClassificationOverrideRequest) Get(ctx context.Context) (resObj *InferenceClassificationOverride, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for InferenceClassificationOverride +func (r *InferenceClassificationOverrideRequest) Update(ctx context.Context, reqObj *InferenceClassificationOverride) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for InferenceClassificationOverride +func (r *InferenceClassificationOverrideRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go new file mode 100644 index 00000000..0aae5f7d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go @@ -0,0 +1,423 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// InformationProtectionRequestBuilder is request builder for InformationProtection +type InformationProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InformationProtectionRequest +func (b *InformationProtectionRequestBuilder) Request() *InformationProtectionRequest { + return &InformationProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InformationProtectionRequest is request for InformationProtection +type InformationProtectionRequest struct{ BaseRequest } + +// Get performs GET request for InformationProtection +func (r *InformationProtectionRequest) Get(ctx context.Context) (resObj *InformationProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for InformationProtection +func (r *InformationProtectionRequest) Update(ctx context.Context, reqObj *InformationProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for InformationProtection +func (r *InformationProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// InformationProtectionLabelRequestBuilder is request builder for InformationProtectionLabel +type InformationProtectionLabelRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InformationProtectionLabelRequest +func (b *InformationProtectionLabelRequestBuilder) Request() *InformationProtectionLabelRequest { + return &InformationProtectionLabelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InformationProtectionLabelRequest is request for InformationProtectionLabel +type InformationProtectionLabelRequest struct{ BaseRequest } + +// Get performs GET request for InformationProtectionLabel +func (r *InformationProtectionLabelRequest) Get(ctx context.Context) (resObj *InformationProtectionLabel, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for InformationProtectionLabel +func (r *InformationProtectionLabelRequest) Update(ctx context.Context, reqObj *InformationProtectionLabel) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for InformationProtectionLabel +func (r *InformationProtectionLabelRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// InformationProtectionPolicyRequestBuilder is request builder for InformationProtectionPolicy +type InformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InformationProtectionPolicyRequest +func (b *InformationProtectionPolicyRequestBuilder) Request() *InformationProtectionPolicyRequest { + return &InformationProtectionPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InformationProtectionPolicyRequest is request for InformationProtectionPolicy +type InformationProtectionPolicyRequest struct{ BaseRequest } + +// Get performs GET request for InformationProtectionPolicy +func (r *InformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *InformationProtectionPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for InformationProtectionPolicy +func (r *InformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *InformationProtectionPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for InformationProtectionPolicy +func (r *InformationProtectionPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type InformationProtectionLabelCollectionExtractLabelRequestBuilder struct{ BaseRequestBuilder } + +// ExtractLabel action undocumented +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ExtractLabel(reqObj *InformationProtectionLabelCollectionExtractLabelRequestParameter) *InformationProtectionLabelCollectionExtractLabelRequestBuilder { + bb := &InformationProtectionLabelCollectionExtractLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/extractLabel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type InformationProtectionLabelCollectionExtractLabelRequest struct{ BaseRequest } + +// +func (b *InformationProtectionLabelCollectionExtractLabelRequestBuilder) Request() *InformationProtectionLabelCollectionExtractLabelRequest { + return &InformationProtectionLabelCollectionExtractLabelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *InformationProtectionLabelCollectionExtractLabelRequest) Post(ctx context.Context) (resObj *InformationProtectionContentLabel, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateApplication action undocumented +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateApplication(reqObj *InformationProtectionLabelCollectionEvaluateApplicationRequestParameter) *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder { + bb := &InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateApplication" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type InformationProtectionLabelCollectionEvaluateApplicationRequest struct{ BaseRequest } + +// +func (b *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateApplicationRequest { + return &InformationProtectionLabelCollectionEvaluateApplicationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []InformationProtectionAction + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []InformationProtectionAction + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateRemoval action undocumented +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateRemoval(reqObj *InformationProtectionLabelCollectionEvaluateRemovalRequestParameter) *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder { + bb := &InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateRemoval" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type InformationProtectionLabelCollectionEvaluateRemovalRequest struct{ BaseRequest } + +// +func (b *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateRemovalRequest { + return &InformationProtectionLabelCollectionEvaluateRemovalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []InformationProtectionAction + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []InformationProtectionAction + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateClassificationResults action undocumented +func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateClassificationResults(reqObj *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter) *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder { + bb := &InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateClassificationResults" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type InformationProtectionLabelCollectionEvaluateClassificationResultsRequest struct{ BaseRequest } + +// +func (b *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest { + return &InformationProtectionLabelCollectionEvaluateClassificationResultsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []InformationProtectionAction + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []InformationProtectionAction + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder struct{ BaseRequestBuilder } + +// EvaluateLabelsAndPolicies action undocumented +func (b *InformationProtectionRequestBuilder) EvaluateLabelsAndPolicies(reqObj *InformationProtectionEvaluateLabelsAndPoliciesRequestParameter) *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder { + bb := &InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluateLabelsAndPolicies" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type InformationProtectionEvaluateLabelsAndPoliciesRequest struct{ BaseRequest } + +// +func (b *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder) Request() *InformationProtectionEvaluateLabelsAndPoliciesRequest { + return &InformationProtectionEvaluateLabelsAndPoliciesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *InformationProtectionEvaluateLabelsAndPoliciesRequest) Post(ctx context.Context) (resObj *EvaluateLabelsAndPoliciesJobResponse, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go new file mode 100644 index 00000000..f62b0841 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// IntuneBrandingProfileRequestBuilder is request builder for IntuneBrandingProfile +type IntuneBrandingProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IntuneBrandingProfileRequest +func (b *IntuneBrandingProfileRequestBuilder) Request() *IntuneBrandingProfileRequest { + return &IntuneBrandingProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IntuneBrandingProfileRequest is request for IntuneBrandingProfile +type IntuneBrandingProfileRequest struct{ BaseRequest } + +// Get performs GET request for IntuneBrandingProfile +func (r *IntuneBrandingProfileRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IntuneBrandingProfile +func (r *IntuneBrandingProfileRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IntuneBrandingProfile +func (r *IntuneBrandingProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// IntuneBrandingProfileAssignmentRequestBuilder is request builder for IntuneBrandingProfileAssignment +type IntuneBrandingProfileAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns IntuneBrandingProfileAssignmentRequest +func (b *IntuneBrandingProfileAssignmentRequestBuilder) Request() *IntuneBrandingProfileAssignmentRequest { + return &IntuneBrandingProfileAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// IntuneBrandingProfileAssignmentRequest is request for IntuneBrandingProfileAssignment +type IntuneBrandingProfileAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for IntuneBrandingProfileAssignment +func (r *IntuneBrandingProfileAssignmentRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfileAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for IntuneBrandingProfileAssignment +func (r *IntuneBrandingProfileAssignmentRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for IntuneBrandingProfileAssignment +func (r *IntuneBrandingProfileAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type IntuneBrandingProfileAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *IntuneBrandingProfileRequestBuilder) Assign(reqObj *IntuneBrandingProfileAssignRequestParameter) *IntuneBrandingProfileAssignRequestBuilder { + bb := &IntuneBrandingProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type IntuneBrandingProfileAssignRequest struct{ BaseRequest } + +// +func (b *IntuneBrandingProfileAssignRequestBuilder) Request() *IntuneBrandingProfileAssignRequest { + return &IntuneBrandingProfileAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *IntuneBrandingProfileAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go new file mode 100644 index 00000000..bc48af95 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// InvitationRequestBuilder is request builder for Invitation +type InvitationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns InvitationRequest +func (b *InvitationRequestBuilder) Request() *InvitationRequest { + return &InvitationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// InvitationRequest is request for Invitation +type InvitationRequest struct{ BaseRequest } + +// Get performs GET request for Invitation +func (r *InvitationRequest) Get(ctx context.Context) (resObj *Invitation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Invitation +func (r *InvitationRequest) Update(ctx context.Context, reqObj *Invitation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Invitation +func (r *InvitationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go new file mode 100644 index 00000000..a5fc97de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go @@ -0,0 +1,302 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ItemRequestBuilder is request builder for Item +type ItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemRequest +func (b *ItemRequestBuilder) Request() *ItemRequest { + return &ItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemRequest is request for Item +type ItemRequest struct{ BaseRequest } + +// Get performs GET request for Item +func (r *ItemRequest) Get(ctx context.Context) (resObj *Item, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Item +func (r *ItemRequest) Update(ctx context.Context, reqObj *Item) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Item +func (r *ItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemActivityRequestBuilder is request builder for ItemActivity +type ItemActivityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemActivityRequest +func (b *ItemActivityRequestBuilder) Request() *ItemActivityRequest { + return &ItemActivityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemActivityRequest is request for ItemActivity +type ItemActivityRequest struct{ BaseRequest } + +// Get performs GET request for ItemActivity +func (r *ItemActivityRequest) Get(ctx context.Context) (resObj *ItemActivity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemActivity +func (r *ItemActivityRequest) Update(ctx context.Context, reqObj *ItemActivity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemActivity +func (r *ItemActivityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemActivityOLDRequestBuilder is request builder for ItemActivityOLD +type ItemActivityOLDRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemActivityOLDRequest +func (b *ItemActivityOLDRequestBuilder) Request() *ItemActivityOLDRequest { + return &ItemActivityOLDRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemActivityOLDRequest is request for ItemActivityOLD +type ItemActivityOLDRequest struct{ BaseRequest } + +// Get performs GET request for ItemActivityOLD +func (r *ItemActivityOLDRequest) Get(ctx context.Context) (resObj *ItemActivityOLD, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemActivityOLD +func (r *ItemActivityOLDRequest) Update(ctx context.Context, reqObj *ItemActivityOLD) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemActivityOLD +func (r *ItemActivityOLDRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemActivityStatRequestBuilder is request builder for ItemActivityStat +type ItemActivityStatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemActivityStatRequest +func (b *ItemActivityStatRequestBuilder) Request() *ItemActivityStatRequest { + return &ItemActivityStatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemActivityStatRequest is request for ItemActivityStat +type ItemActivityStatRequest struct{ BaseRequest } + +// Get performs GET request for ItemActivityStat +func (r *ItemActivityStatRequest) Get(ctx context.Context) (resObj *ItemActivityStat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemActivityStat +func (r *ItemActivityStatRequest) Update(ctx context.Context, reqObj *ItemActivityStat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemActivityStat +func (r *ItemActivityStatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemAnalyticsRequestBuilder is request builder for ItemAnalytics +type ItemAnalyticsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemAnalyticsRequest +func (b *ItemAnalyticsRequestBuilder) Request() *ItemAnalyticsRequest { + return &ItemAnalyticsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemAnalyticsRequest is request for ItemAnalytics +type ItemAnalyticsRequest struct{ BaseRequest } + +// Get performs GET request for ItemAnalytics +func (r *ItemAnalyticsRequest) Get(ctx context.Context) (resObj *ItemAnalytics, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemAnalytics +func (r *ItemAnalyticsRequest) Update(ctx context.Context, reqObj *ItemAnalytics) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemAnalytics +func (r *ItemAnalyticsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemAttachmentRequestBuilder is request builder for ItemAttachment +type ItemAttachmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemAttachmentRequest +func (b *ItemAttachmentRequestBuilder) Request() *ItemAttachmentRequest { + return &ItemAttachmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemAttachmentRequest is request for ItemAttachment +type ItemAttachmentRequest struct{ BaseRequest } + +// Get performs GET request for ItemAttachment +func (r *ItemAttachmentRequest) Get(ctx context.Context) (resObj *ItemAttachment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemAttachment +func (r *ItemAttachmentRequest) Update(ctx context.Context, reqObj *ItemAttachment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemAttachment +func (r *ItemAttachmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemCategoryRequestBuilder is request builder for ItemCategory +type ItemCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemCategoryRequest +func (b *ItemCategoryRequestBuilder) Request() *ItemCategoryRequest { + return &ItemCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemCategoryRequest is request for ItemCategory +type ItemCategoryRequest struct{ BaseRequest } + +// Get performs GET request for ItemCategory +func (r *ItemCategoryRequest) Get(ctx context.Context) (resObj *ItemCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemCategory +func (r *ItemCategoryRequest) Update(ctx context.Context, reqObj *ItemCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemCategory +func (r *ItemCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemEmailRequestBuilder is request builder for ItemEmail +type ItemEmailRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemEmailRequest +func (b *ItemEmailRequestBuilder) Request() *ItemEmailRequest { + return &ItemEmailRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemEmailRequest is request for ItemEmail +type ItemEmailRequest struct{ BaseRequest } + +// Get performs GET request for ItemEmail +func (r *ItemEmailRequest) Get(ctx context.Context) (resObj *ItemEmail, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemEmail +func (r *ItemEmailRequest) Update(ctx context.Context, reqObj *ItemEmail) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemEmail +func (r *ItemEmailRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ItemPhoneRequestBuilder is request builder for ItemPhone +type ItemPhoneRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ItemPhoneRequest +func (b *ItemPhoneRequestBuilder) Request() *ItemPhoneRequest { + return &ItemPhoneRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ItemPhoneRequest is request for ItemPhone +type ItemPhoneRequest struct{ BaseRequest } + +// Get performs GET request for ItemPhone +func (r *ItemPhoneRequest) Get(ctx context.Context) (resObj *ItemPhone, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ItemPhone +func (r *ItemPhoneRequest) Update(ctx context.Context, reqObj *ItemPhone) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ItemPhone +func (r *ItemPhoneRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/JobResponseBaseRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go new file mode 100644 index 00000000..63eb391b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// JournalRequestBuilder is request builder for Journal +type JournalRequestBuilder struct{ BaseRequestBuilder } + +// Request returns JournalRequest +func (b *JournalRequestBuilder) Request() *JournalRequest { + return &JournalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// JournalRequest is request for Journal +type JournalRequest struct{ BaseRequest } + +// Get performs GET request for Journal +func (r *JournalRequest) Get(ctx context.Context) (resObj *Journal, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Journal +func (r *JournalRequest) Update(ctx context.Context, reqObj *Journal) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Journal +func (r *JournalRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// JournalLineRequestBuilder is request builder for JournalLine +type JournalLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns JournalLineRequest +func (b *JournalLineRequestBuilder) Request() *JournalLineRequest { + return &JournalLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// JournalLineRequest is request for JournalLine +type JournalLineRequest struct{ BaseRequest } + +// Get performs GET request for JournalLine +func (r *JournalLineRequest) Get(ctx context.Context) (resObj *JournalLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for JournalLine +func (r *JournalLineRequest) Update(ctx context.Context, reqObj *JournalLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for JournalLine +func (r *JournalLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type JournalPostRequestBuilder struct{ BaseRequestBuilder } + +// Post action undocumented +func (b *JournalRequestBuilder) Post(reqObj *JournalPostRequestParameter) *JournalPostRequestBuilder { + bb := &JournalPostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/post" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type JournalPostRequest struct{ BaseRequest } + +// +func (b *JournalPostRequestBuilder) Request() *JournalPostRequest { + return &JournalPostRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *JournalPostRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LanguageProficiencyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LicenseDetailsRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go new file mode 100644 index 00000000..921ce37d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go @@ -0,0 +1,130 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ListRequestBuilder is request builder for List +type ListRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ListRequest +func (b *ListRequestBuilder) Request() *ListRequest { + return &ListRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ListRequest is request for List +type ListRequest struct{ BaseRequest } + +// Get performs GET request for List +func (r *ListRequest) Get(ctx context.Context) (resObj *List, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for List +func (r *ListRequest) Update(ctx context.Context, reqObj *List) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for List +func (r *ListRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ListItemRequestBuilder is request builder for ListItem +type ListItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ListItemRequest +func (b *ListItemRequestBuilder) Request() *ListItemRequest { + return &ListItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ListItemRequest is request for ListItem +type ListItemRequest struct{ BaseRequest } + +// Get performs GET request for ListItem +func (r *ListItemRequest) Get(ctx context.Context) (resObj *ListItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ListItem +func (r *ListItemRequest) Update(ctx context.Context, reqObj *ListItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ListItem +func (r *ListItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ListItemVersionRequestBuilder is request builder for ListItemVersion +type ListItemVersionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ListItemVersionRequest +func (b *ListItemVersionRequestBuilder) Request() *ListItemVersionRequest { + return &ListItemVersionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ListItemVersionRequest is request for ListItemVersion +type ListItemVersionRequest struct{ BaseRequest } + +// Get performs GET request for ListItemVersion +func (r *ListItemVersionRequest) Get(ctx context.Context) (resObj *ListItemVersion, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ListItemVersion +func (r *ListItemVersionRequest) Update(ctx context.Context, reqObj *ListItemVersion) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ListItemVersion +func (r *ListItemVersionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ListItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder } + +// RestoreVersion action undocumented +func (b *ListItemVersionRequestBuilder) RestoreVersion(reqObj *ListItemVersionRestoreVersionRequestParameter) *ListItemVersionRestoreVersionRequestBuilder { + bb := &ListItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/restoreVersion" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ListItemVersionRestoreVersionRequest struct{ BaseRequest } + +// +func (b *ListItemVersionRestoreVersionRequestBuilder) Request() *ListItemVersionRestoreVersionRequest { + return &ListItemVersionRestoreVersionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ListItemVersionRestoreVersionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LocalizedNotificationMessageRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/LookupResultRowRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go new file mode 100644 index 00000000..3769bff8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go @@ -0,0 +1,131 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MDMWindowsInformationProtectionPolicyRequestBuilder is request builder for MDMWindowsInformationProtectionPolicy +type MDMWindowsInformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MDMWindowsInformationProtectionPolicyRequest +func (b *MDMWindowsInformationProtectionPolicyRequestBuilder) Request() *MDMWindowsInformationProtectionPolicyRequest { + return &MDMWindowsInformationProtectionPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MDMWindowsInformationProtectionPolicyRequest is request for MDMWindowsInformationProtectionPolicy +type MDMWindowsInformationProtectionPolicyRequest struct{ BaseRequest } + +// Get performs GET request for MDMWindowsInformationProtectionPolicy +func (r *MDMWindowsInformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *MDMWindowsInformationProtectionPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MDMWindowsInformationProtectionPolicy +func (r *MDMWindowsInformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *MDMWindowsInformationProtectionPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MDMWindowsInformationProtectionPolicy +func (r *MDMWindowsInformationProtectionPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter) *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder { + bb := &MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder) Request() *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest { + return &MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go new file mode 100644 index 00000000..733a457b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go @@ -0,0 +1,401 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// MacManagedAppProtectionRequestBuilder is request builder for MacManagedAppProtection +type MacManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacManagedAppProtectionRequest +func (b *MacManagedAppProtectionRequestBuilder) Request() *MacManagedAppProtectionRequest { + return &MacManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacManagedAppProtectionRequest is request for MacManagedAppProtection +type MacManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for MacManagedAppProtection +func (r *MacManagedAppProtectionRequest) Get(ctx context.Context) (resObj *MacManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacManagedAppProtection +func (r *MacManagedAppProtectionRequest) Update(ctx context.Context, reqObj *MacManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacManagedAppProtection +func (r *MacManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSCertificateProfileBaseRequestBuilder is request builder for MacOSCertificateProfileBase +type MacOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSCertificateProfileBaseRequest +func (b *MacOSCertificateProfileBaseRequestBuilder) Request() *MacOSCertificateProfileBaseRequest { + return &MacOSCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSCertificateProfileBaseRequest is request for MacOSCertificateProfileBase +type MacOSCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for MacOSCertificateProfileBase +func (r *MacOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *MacOSCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSCertificateProfileBase +func (r *MacOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *MacOSCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSCertificateProfileBase +func (r *MacOSCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSDeviceFeaturesConfigurationRequestBuilder is request builder for MacOSDeviceFeaturesConfiguration +type MacOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSDeviceFeaturesConfigurationRequest +func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) Request() *MacOSDeviceFeaturesConfigurationRequest { + return &MacOSDeviceFeaturesConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSDeviceFeaturesConfigurationRequest is request for MacOSDeviceFeaturesConfiguration +type MacOSDeviceFeaturesConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for MacOSDeviceFeaturesConfiguration +func (r *MacOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *MacOSDeviceFeaturesConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSDeviceFeaturesConfiguration +func (r *MacOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *MacOSDeviceFeaturesConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSDeviceFeaturesConfiguration +func (r *MacOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSEnterpriseWiFiConfigurationRequestBuilder is request builder for MacOSEnterpriseWiFiConfiguration +type MacOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSEnterpriseWiFiConfigurationRequest +func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) Request() *MacOSEnterpriseWiFiConfigurationRequest { + return &MacOSEnterpriseWiFiConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSEnterpriseWiFiConfigurationRequest is request for MacOSEnterpriseWiFiConfiguration +type MacOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for MacOSEnterpriseWiFiConfiguration +func (r *MacOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *MacOSEnterpriseWiFiConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSEnterpriseWiFiConfiguration +func (r *MacOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *MacOSEnterpriseWiFiConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSEnterpriseWiFiConfiguration +func (r *MacOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSImportedPFXCertificateProfileRequestBuilder is request builder for MacOSImportedPFXCertificateProfile +type MacOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSImportedPFXCertificateProfileRequest +func (b *MacOSImportedPFXCertificateProfileRequestBuilder) Request() *MacOSImportedPFXCertificateProfileRequest { + return &MacOSImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSImportedPFXCertificateProfileRequest is request for MacOSImportedPFXCertificateProfile +type MacOSImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for MacOSImportedPFXCertificateProfile +func (r *MacOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSImportedPFXCertificateProfile +func (r *MacOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSImportedPFXCertificateProfile +func (r *MacOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSPkcsCertificateProfileRequestBuilder is request builder for MacOSPkcsCertificateProfile +type MacOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSPkcsCertificateProfileRequest +func (b *MacOSPkcsCertificateProfileRequestBuilder) Request() *MacOSPkcsCertificateProfileRequest { + return &MacOSPkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSPkcsCertificateProfileRequest is request for MacOSPkcsCertificateProfile +type MacOSPkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for MacOSPkcsCertificateProfile +func (r *MacOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSPkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSPkcsCertificateProfile +func (r *MacOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSPkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSPkcsCertificateProfile +func (r *MacOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSScepCertificateProfileRequestBuilder is request builder for MacOSScepCertificateProfile +type MacOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSScepCertificateProfileRequest +func (b *MacOSScepCertificateProfileRequestBuilder) Request() *MacOSScepCertificateProfileRequest { + return &MacOSScepCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSScepCertificateProfileRequest is request for MacOSScepCertificateProfile +type MacOSScepCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for MacOSScepCertificateProfile +func (r *MacOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSScepCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSScepCertificateProfile +func (r *MacOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSScepCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSScepCertificateProfile +func (r *MacOSScepCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSTrustedRootCertificateRequestBuilder is request builder for MacOSTrustedRootCertificate +type MacOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSTrustedRootCertificateRequest +func (b *MacOSTrustedRootCertificateRequestBuilder) Request() *MacOSTrustedRootCertificateRequest { + return &MacOSTrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSTrustedRootCertificateRequest is request for MacOSTrustedRootCertificate +type MacOSTrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for MacOSTrustedRootCertificate +func (r *MacOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *MacOSTrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSTrustedRootCertificate +func (r *MacOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *MacOSTrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSTrustedRootCertificate +func (r *MacOSTrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSVpnConfigurationRequestBuilder is request builder for MacOSVpnConfiguration +type MacOSVpnConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSVpnConfigurationRequest +func (b *MacOSVpnConfigurationRequestBuilder) Request() *MacOSVpnConfigurationRequest { + return &MacOSVpnConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSVpnConfigurationRequest is request for MacOSVpnConfiguration +type MacOSVpnConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for MacOSVpnConfiguration +func (r *MacOSVpnConfigurationRequest) Get(ctx context.Context) (resObj *MacOSVpnConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSVpnConfiguration +func (r *MacOSVpnConfigurationRequest) Update(ctx context.Context, reqObj *MacOSVpnConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSVpnConfiguration +func (r *MacOSVpnConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOSWiredNetworkConfigurationRequestBuilder is request builder for MacOSWiredNetworkConfiguration +type MacOSWiredNetworkConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOSWiredNetworkConfigurationRequest +func (b *MacOSWiredNetworkConfigurationRequestBuilder) Request() *MacOSWiredNetworkConfigurationRequest { + return &MacOSWiredNetworkConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOSWiredNetworkConfigurationRequest is request for MacOSWiredNetworkConfiguration +type MacOSWiredNetworkConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for MacOSWiredNetworkConfiguration +func (r *MacOSWiredNetworkConfigurationRequest) Get(ctx context.Context) (resObj *MacOSWiredNetworkConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOSWiredNetworkConfiguration +func (r *MacOSWiredNetworkConfigurationRequest) Update(ctx context.Context, reqObj *MacOSWiredNetworkConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOSWiredNetworkConfiguration +func (r *MacOSWiredNetworkConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOsVPPAppRequestBuilder is request builder for MacOsVPPApp +type MacOsVPPAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOsVPPAppRequest +func (b *MacOsVPPAppRequestBuilder) Request() *MacOsVPPAppRequest { + return &MacOsVPPAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOsVPPAppRequest is request for MacOsVPPApp +type MacOsVPPAppRequest struct{ BaseRequest } + +// Get performs GET request for MacOsVPPApp +func (r *MacOsVPPAppRequest) Get(ctx context.Context) (resObj *MacOsVPPApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOsVPPApp +func (r *MacOsVPPAppRequest) Update(ctx context.Context, reqObj *MacOsVPPApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOsVPPApp +func (r *MacOsVPPAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MacOsVPPAppAssignedLicenseRequestBuilder is request builder for MacOsVPPAppAssignedLicense +type MacOsVPPAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MacOsVPPAppAssignedLicenseRequest +func (b *MacOsVPPAppAssignedLicenseRequestBuilder) Request() *MacOsVPPAppAssignedLicenseRequest { + return &MacOsVPPAppAssignedLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MacOsVPPAppAssignedLicenseRequest is request for MacOsVPPAppAssignedLicense +type MacOsVPPAppAssignedLicenseRequest struct{ BaseRequest } + +// Get performs GET request for MacOsVPPAppAssignedLicense +func (r *MacOsVPPAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *MacOsVPPAppAssignedLicense, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MacOsVPPAppAssignedLicense +func (r *MacOsVPPAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *MacOsVPPAppAssignedLicense) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MacOsVPPAppAssignedLicense +func (r *MacOsVPPAppAssignedLicenseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go new file mode 100644 index 00000000..aa743184 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go @@ -0,0 +1,92 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// MailFolderRequestBuilder is request builder for MailFolder +type MailFolderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MailFolderRequest +func (b *MailFolderRequestBuilder) Request() *MailFolderRequest { + return &MailFolderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MailFolderRequest is request for MailFolder +type MailFolderRequest struct{ BaseRequest } + +// Get performs GET request for MailFolder +func (r *MailFolderRequest) Get(ctx context.Context) (resObj *MailFolder, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MailFolder +func (r *MailFolderRequest) Update(ctx context.Context, reqObj *MailFolder) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MailFolder +func (r *MailFolderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type MailFolderCopyRequestBuilder struct{ BaseRequestBuilder } + +// Copy action undocumented +func (b *MailFolderRequestBuilder) Copy(reqObj *MailFolderCopyRequestParameter) *MailFolderCopyRequestBuilder { + bb := &MailFolderCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copy" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MailFolderCopyRequest struct{ BaseRequest } + +// +func (b *MailFolderCopyRequestBuilder) Request() *MailFolderCopyRequest { + return &MailFolderCopyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MailFolderCopyRequest) Post(ctx context.Context) (resObj *MailFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MailFolderMoveRequestBuilder struct{ BaseRequestBuilder } + +// Move action undocumented +func (b *MailFolderRequestBuilder) Move(reqObj *MailFolderMoveRequestParameter) *MailFolderMoveRequestBuilder { + bb := &MailFolderMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/move" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MailFolderMoveRequest struct{ BaseRequest } + +// +func (b *MailFolderMoveRequestBuilder) Request() *MailFolderMoveRequest { + return &MailFolderMoveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MailFolderMoveRequest) Post(ctx context.Context) (resObj *MailFolder, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MalwareRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go new file mode 100644 index 00000000..57a7bf8c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go @@ -0,0 +1,1613 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ManagedAllDeviceCertificateStateRequestBuilder is request builder for ManagedAllDeviceCertificateState +type ManagedAllDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAllDeviceCertificateStateRequest +func (b *ManagedAllDeviceCertificateStateRequestBuilder) Request() *ManagedAllDeviceCertificateStateRequest { + return &ManagedAllDeviceCertificateStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAllDeviceCertificateStateRequest is request for ManagedAllDeviceCertificateState +type ManagedAllDeviceCertificateStateRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAllDeviceCertificateState +func (r *ManagedAllDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedAllDeviceCertificateState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAllDeviceCertificateState +func (r *ManagedAllDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAllDeviceCertificateState +func (r *ManagedAllDeviceCertificateStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppOperationRequestBuilder is request builder for ManagedAppOperation +type ManagedAppOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppOperationRequest +func (b *ManagedAppOperationRequestBuilder) Request() *ManagedAppOperationRequest { + return &ManagedAppOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppOperationRequest is request for ManagedAppOperation +type ManagedAppOperationRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppOperation +func (r *ManagedAppOperationRequest) Get(ctx context.Context) (resObj *ManagedAppOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppOperation +func (r *ManagedAppOperationRequest) Update(ctx context.Context, reqObj *ManagedAppOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppOperation +func (r *ManagedAppOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppPolicyRequestBuilder is request builder for ManagedAppPolicy +type ManagedAppPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppPolicyRequest +func (b *ManagedAppPolicyRequestBuilder) Request() *ManagedAppPolicyRequest { + return &ManagedAppPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppPolicyRequest is request for ManagedAppPolicy +type ManagedAppPolicyRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppPolicy +func (r *ManagedAppPolicyRequest) Get(ctx context.Context) (resObj *ManagedAppPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppPolicy +func (r *ManagedAppPolicyRequest) Update(ctx context.Context, reqObj *ManagedAppPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppPolicy +func (r *ManagedAppPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppPolicyDeploymentSummaryRequestBuilder is request builder for ManagedAppPolicyDeploymentSummary +type ManagedAppPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppPolicyDeploymentSummaryRequest +func (b *ManagedAppPolicyDeploymentSummaryRequestBuilder) Request() *ManagedAppPolicyDeploymentSummaryRequest { + return &ManagedAppPolicyDeploymentSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppPolicyDeploymentSummaryRequest is request for ManagedAppPolicyDeploymentSummary +type ManagedAppPolicyDeploymentSummaryRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppPolicyDeploymentSummary +func (r *ManagedAppPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *ManagedAppPolicyDeploymentSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppPolicyDeploymentSummary +func (r *ManagedAppPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *ManagedAppPolicyDeploymentSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppPolicyDeploymentSummary +func (r *ManagedAppPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppProtectionRequestBuilder is request builder for ManagedAppProtection +type ManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppProtectionRequest +func (b *ManagedAppProtectionRequestBuilder) Request() *ManagedAppProtectionRequest { + return &ManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppProtectionRequest is request for ManagedAppProtection +type ManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppProtection +func (r *ManagedAppProtectionRequest) Get(ctx context.Context) (resObj *ManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppProtection +func (r *ManagedAppProtectionRequest) Update(ctx context.Context, reqObj *ManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppProtection +func (r *ManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppRegistrationRequestBuilder is request builder for ManagedAppRegistration +type ManagedAppRegistrationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppRegistrationRequest +func (b *ManagedAppRegistrationRequestBuilder) Request() *ManagedAppRegistrationRequest { + return &ManagedAppRegistrationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppRegistrationRequest is request for ManagedAppRegistration +type ManagedAppRegistrationRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppRegistration +func (r *ManagedAppRegistrationRequest) Get(ctx context.Context) (resObj *ManagedAppRegistration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppRegistration +func (r *ManagedAppRegistrationRequest) Update(ctx context.Context, reqObj *ManagedAppRegistration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppRegistration +func (r *ManagedAppRegistrationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedAppStatusRequestBuilder is request builder for ManagedAppStatus +type ManagedAppStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedAppStatusRequest +func (b *ManagedAppStatusRequestBuilder) Request() *ManagedAppStatusRequest { + return &ManagedAppStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedAppStatusRequest is request for ManagedAppStatus +type ManagedAppStatusRequest struct{ BaseRequest } + +// Get performs GET request for ManagedAppStatus +func (r *ManagedAppStatusRequest) Get(ctx context.Context) (resObj *ManagedAppStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedAppStatus +func (r *ManagedAppStatusRequest) Update(ctx context.Context, reqObj *ManagedAppStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedAppStatus +func (r *ManagedAppStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceRequestBuilder is request builder for ManagedDevice +type ManagedDeviceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceRequest +func (b *ManagedDeviceRequestBuilder) Request() *ManagedDeviceRequest { + return &ManagedDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceRequest is request for ManagedDevice +type ManagedDeviceRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDevice +func (r *ManagedDeviceRequest) Get(ctx context.Context) (resObj *ManagedDevice, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDevice +func (r *ManagedDeviceRequest) Update(ctx context.Context, reqObj *ManagedDevice) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDevice +func (r *ManagedDeviceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceCertificateStateRequestBuilder is request builder for ManagedDeviceCertificateState +type ManagedDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceCertificateStateRequest +func (b *ManagedDeviceCertificateStateRequestBuilder) Request() *ManagedDeviceCertificateStateRequest { + return &ManagedDeviceCertificateStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceCertificateStateRequest is request for ManagedDeviceCertificateState +type ManagedDeviceCertificateStateRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceCertificateState +func (r *ManagedDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceCertificateState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceCertificateState +func (r *ManagedDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceCertificateState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceCertificateState +func (r *ManagedDeviceCertificateStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceEncryptionStateRequestBuilder is request builder for ManagedDeviceEncryptionState +type ManagedDeviceEncryptionStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceEncryptionStateRequest +func (b *ManagedDeviceEncryptionStateRequestBuilder) Request() *ManagedDeviceEncryptionStateRequest { + return &ManagedDeviceEncryptionStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceEncryptionStateRequest is request for ManagedDeviceEncryptionState +type ManagedDeviceEncryptionStateRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceEncryptionState +func (r *ManagedDeviceEncryptionStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceEncryptionState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceEncryptionState +func (r *ManagedDeviceEncryptionStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceEncryptionState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceEncryptionState +func (r *ManagedDeviceEncryptionStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration +type ManagedDeviceMobileAppConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationRequest +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationRequest { + return &ManagedDeviceMobileAppConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationRequest is request for ManagedDeviceMobileAppConfiguration +type ManagedDeviceMobileAppConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfiguration +func (r *ManagedDeviceMobileAppConfigurationRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfiguration +func (r *ManagedDeviceMobileAppConfigurationRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfiguration +func (r *ManagedDeviceMobileAppConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment +type ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationAssignmentRequest +func (b *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentRequest { + return &ManagedDeviceMobileAppConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationAssignmentRequest is request for ManagedDeviceMobileAppConfigurationAssignment +type ManagedDeviceMobileAppConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment +func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationAssignment +func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationAssignment +func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus +type ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationDeviceStatusRequest +func (b *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusRequest { + return &ManagedDeviceMobileAppConfigurationDeviceStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationDeviceStatusRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus +type ManagedDeviceMobileAppConfigurationDeviceStatusRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceStatus +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceStatus +func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceSummary +type ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationDeviceSummaryRequest +func (b *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest { + return &ManagedDeviceMobileAppConfigurationDeviceSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationDeviceSummaryRequest is request for ManagedDeviceMobileAppConfigurationDeviceSummary +type ManagedDeviceMobileAppConfigurationDeviceSummaryRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceSummary +func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceSummary +func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceSummary +func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationStateRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState +type ManagedDeviceMobileAppConfigurationStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationStateRequest +func (b *ManagedDeviceMobileAppConfigurationStateRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationStateRequest { + return &ManagedDeviceMobileAppConfigurationStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationStateRequest is request for ManagedDeviceMobileAppConfigurationState +type ManagedDeviceMobileAppConfigurationStateRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationState +func (r *ManagedDeviceMobileAppConfigurationStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationState +func (r *ManagedDeviceMobileAppConfigurationStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationState +func (r *ManagedDeviceMobileAppConfigurationStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus +type ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationUserStatusRequest +func (b *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusRequest { + return &ManagedDeviceMobileAppConfigurationUserStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationUserStatusRequest is request for ManagedDeviceMobileAppConfigurationUserStatus +type ManagedDeviceMobileAppConfigurationUserStatusRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus +func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserStatus +func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserStatus +func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserSummary +type ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceMobileAppConfigurationUserSummaryRequest +func (b *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserSummaryRequest { + return &ManagedDeviceMobileAppConfigurationUserSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceMobileAppConfigurationUserSummaryRequest is request for ManagedDeviceMobileAppConfigurationUserSummary +type ManagedDeviceMobileAppConfigurationUserSummaryRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceMobileAppConfigurationUserSummary +func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserSummary +func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserSummary +func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedDeviceOverviewRequestBuilder is request builder for ManagedDeviceOverview +type ManagedDeviceOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedDeviceOverviewRequest +func (b *ManagedDeviceOverviewRequestBuilder) Request() *ManagedDeviceOverviewRequest { + return &ManagedDeviceOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedDeviceOverviewRequest is request for ManagedDeviceOverview +type ManagedDeviceOverviewRequest struct{ BaseRequest } + +// Get performs GET request for ManagedDeviceOverview +func (r *ManagedDeviceOverviewRequest) Get(ctx context.Context) (resObj *ManagedDeviceOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedDeviceOverview +func (r *ManagedDeviceOverviewRequest) Update(ctx context.Context, reqObj *ManagedDeviceOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedDeviceOverview +func (r *ManagedDeviceOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedEBookRequestBuilder is request builder for ManagedEBook +type ManagedEBookRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedEBookRequest +func (b *ManagedEBookRequestBuilder) Request() *ManagedEBookRequest { + return &ManagedEBookRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedEBookRequest is request for ManagedEBook +type ManagedEBookRequest struct{ BaseRequest } + +// Get performs GET request for ManagedEBook +func (r *ManagedEBookRequest) Get(ctx context.Context) (resObj *ManagedEBook, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedEBook +func (r *ManagedEBookRequest) Update(ctx context.Context, reqObj *ManagedEBook) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedEBook +func (r *ManagedEBookRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedEBookAssignmentRequestBuilder is request builder for ManagedEBookAssignment +type ManagedEBookAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedEBookAssignmentRequest +func (b *ManagedEBookAssignmentRequestBuilder) Request() *ManagedEBookAssignmentRequest { + return &ManagedEBookAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedEBookAssignmentRequest is request for ManagedEBookAssignment +type ManagedEBookAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for ManagedEBookAssignment +func (r *ManagedEBookAssignmentRequest) Get(ctx context.Context) (resObj *ManagedEBookAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedEBookAssignment +func (r *ManagedEBookAssignmentRequest) Update(ctx context.Context, reqObj *ManagedEBookAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedEBookAssignment +func (r *ManagedEBookAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedEBookCategoryRequestBuilder is request builder for ManagedEBookCategory +type ManagedEBookCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedEBookCategoryRequest +func (b *ManagedEBookCategoryRequestBuilder) Request() *ManagedEBookCategoryRequest { + return &ManagedEBookCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedEBookCategoryRequest is request for ManagedEBookCategory +type ManagedEBookCategoryRequest struct{ BaseRequest } + +// Get performs GET request for ManagedEBookCategory +func (r *ManagedEBookCategoryRequest) Get(ctx context.Context) (resObj *ManagedEBookCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedEBookCategory +func (r *ManagedEBookCategoryRequest) Update(ctx context.Context, reqObj *ManagedEBookCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedEBookCategory +func (r *ManagedEBookCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedMobileAppRequestBuilder is request builder for ManagedMobileApp +type ManagedMobileAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedMobileAppRequest +func (b *ManagedMobileAppRequestBuilder) Request() *ManagedMobileAppRequest { + return &ManagedMobileAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedMobileAppRequest is request for ManagedMobileApp +type ManagedMobileAppRequest struct{ BaseRequest } + +// Get performs GET request for ManagedMobileApp +func (r *ManagedMobileAppRequest) Get(ctx context.Context) (resObj *ManagedMobileApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedMobileApp +func (r *ManagedMobileAppRequest) Update(ctx context.Context, reqObj *ManagedMobileApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedMobileApp +func (r *ManagedMobileAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagedMobileLobAppRequestBuilder is request builder for ManagedMobileLobApp +type ManagedMobileLobAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagedMobileLobAppRequest +func (b *ManagedMobileLobAppRequestBuilder) Request() *ManagedMobileLobAppRequest { + return &ManagedMobileLobAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagedMobileLobAppRequest is request for ManagedMobileLobApp +type ManagedMobileLobAppRequest struct{ BaseRequest } + +// Get performs GET request for ManagedMobileLobApp +func (r *ManagedMobileLobAppRequest) Get(ctx context.Context) (resObj *ManagedMobileLobApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagedMobileLobApp +func (r *ManagedMobileLobAppRequest) Update(ctx context.Context, reqObj *ManagedMobileLobApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagedMobileLobApp +func (r *ManagedMobileLobAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ManagedDeviceCollectionExecuteActionRequestBuilder struct{ BaseRequestBuilder } + +// ExecuteAction action undocumented +func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder { + bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/executeAction" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ExecuteAction action undocumented +func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder { + bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/executeAction" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// ExecuteAction action undocumented +func (b *UserManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder { + bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/executeAction" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceCollectionExecuteActionRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceCollectionExecuteActionRequestBuilder) Request() *ManagedDeviceCollectionExecuteActionRequest { + return &ManagedDeviceCollectionExecuteActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceCollectionExecuteActionRequest) Post(ctx context.Context) (resObj *BulkManagedDeviceActionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ManagedAppPolicyTargetAppsRequestBuilder struct{ BaseRequestBuilder } + +// TargetApps action undocumented +func (b *ManagedAppPolicyRequestBuilder) TargetApps(reqObj *ManagedAppPolicyTargetAppsRequestParameter) *ManagedAppPolicyTargetAppsRequestBuilder { + bb := &ManagedAppPolicyTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/targetApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedAppPolicyTargetAppsRequest struct{ BaseRequest } + +// +func (b *ManagedAppPolicyTargetAppsRequestBuilder) Request() *ManagedAppPolicyTargetAppsRequest { + return &ManagedAppPolicyTargetAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedAppPolicyTargetAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedAppProtectionTargetAppsRequestBuilder struct{ BaseRequestBuilder } + +// TargetApps action undocumented +func (b *ManagedAppProtectionRequestBuilder) TargetApps(reqObj *ManagedAppProtectionTargetAppsRequestParameter) *ManagedAppProtectionTargetAppsRequestBuilder { + bb := &ManagedAppProtectionTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/targetApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedAppProtectionTargetAppsRequest struct{ BaseRequest } + +// +func (b *ManagedAppProtectionTargetAppsRequestBuilder) Request() *ManagedAppProtectionTargetAppsRequest { + return &ManagedAppProtectionTargetAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedAppProtectionTargetAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceOverrideComplianceStateRequestBuilder struct{ BaseRequestBuilder } + +// OverrideComplianceState action undocumented +func (b *ManagedDeviceRequestBuilder) OverrideComplianceState(reqObj *ManagedDeviceOverrideComplianceStateRequestParameter) *ManagedDeviceOverrideComplianceStateRequestBuilder { + bb := &ManagedDeviceOverrideComplianceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/overrideComplianceState" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceOverrideComplianceStateRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceOverrideComplianceStateRequestBuilder) Request() *ManagedDeviceOverrideComplianceStateRequest { + return &ManagedDeviceOverrideComplianceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceOverrideComplianceStateRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceEnableLostModeRequestBuilder struct{ BaseRequestBuilder } + +// EnableLostMode action undocumented +func (b *ManagedDeviceRequestBuilder) EnableLostMode(reqObj *ManagedDeviceEnableLostModeRequestParameter) *ManagedDeviceEnableLostModeRequestBuilder { + bb := &ManagedDeviceEnableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/enableLostMode" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceEnableLostModeRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceEnableLostModeRequestBuilder) Request() *ManagedDeviceEnableLostModeRequest { + return &ManagedDeviceEnableLostModeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceEnableLostModeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDevicePlayLostModeSoundRequestBuilder struct{ BaseRequestBuilder } + +// PlayLostModeSound action undocumented +func (b *ManagedDeviceRequestBuilder) PlayLostModeSound(reqObj *ManagedDevicePlayLostModeSoundRequestParameter) *ManagedDevicePlayLostModeSoundRequestBuilder { + bb := &ManagedDevicePlayLostModeSoundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/playLostModeSound" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDevicePlayLostModeSoundRequest struct{ BaseRequest } + +// +func (b *ManagedDevicePlayLostModeSoundRequestBuilder) Request() *ManagedDevicePlayLostModeSoundRequest { + return &ManagedDevicePlayLostModeSoundRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDevicePlayLostModeSoundRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceSetDeviceNameRequestBuilder struct{ BaseRequestBuilder } + +// SetDeviceName action undocumented +func (b *ManagedDeviceRequestBuilder) SetDeviceName(reqObj *ManagedDeviceSetDeviceNameRequestParameter) *ManagedDeviceSetDeviceNameRequestBuilder { + bb := &ManagedDeviceSetDeviceNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setDeviceName" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceSetDeviceNameRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceSetDeviceNameRequestBuilder) Request() *ManagedDeviceSetDeviceNameRequest { + return &ManagedDeviceSetDeviceNameRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceSetDeviceNameRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRotateFileVaultKeyRequestBuilder struct{ BaseRequestBuilder } + +// RotateFileVaultKey action undocumented +func (b *ManagedDeviceRequestBuilder) RotateFileVaultKey(reqObj *ManagedDeviceRotateFileVaultKeyRequestParameter) *ManagedDeviceRotateFileVaultKeyRequestBuilder { + bb := &ManagedDeviceRotateFileVaultKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rotateFileVaultKey" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRotateFileVaultKeyRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRotateFileVaultKeyRequestBuilder) Request() *ManagedDeviceRotateFileVaultKeyRequest { + return &ManagedDeviceRotateFileVaultKeyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRotateFileVaultKeyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRetireRequestBuilder struct{ BaseRequestBuilder } + +// Retire action undocumented +func (b *ManagedDeviceRequestBuilder) Retire(reqObj *ManagedDeviceRetireRequestParameter) *ManagedDeviceRetireRequestBuilder { + bb := &ManagedDeviceRetireRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/retire" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRetireRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRetireRequestBuilder) Request() *ManagedDeviceRetireRequest { + return &ManagedDeviceRetireRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRetireRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceWipeRequestBuilder struct{ BaseRequestBuilder } + +// Wipe action undocumented +func (b *ManagedDeviceRequestBuilder) Wipe(reqObj *ManagedDeviceWipeRequestParameter) *ManagedDeviceWipeRequestBuilder { + bb := &ManagedDeviceWipeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/wipe" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceWipeRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceWipeRequestBuilder) Request() *ManagedDeviceWipeRequest { + return &ManagedDeviceWipeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceWipeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceResetPasscodeRequestBuilder struct{ BaseRequestBuilder } + +// ResetPasscode action undocumented +func (b *ManagedDeviceRequestBuilder) ResetPasscode(reqObj *ManagedDeviceResetPasscodeRequestParameter) *ManagedDeviceResetPasscodeRequestBuilder { + bb := &ManagedDeviceResetPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/resetPasscode" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceResetPasscodeRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceResetPasscodeRequestBuilder) Request() *ManagedDeviceResetPasscodeRequest { + return &ManagedDeviceResetPasscodeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceResetPasscodeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRemoteLockRequestBuilder struct{ BaseRequestBuilder } + +// RemoteLock action undocumented +func (b *ManagedDeviceRequestBuilder) RemoteLock(reqObj *ManagedDeviceRemoteLockRequestParameter) *ManagedDeviceRemoteLockRequestBuilder { + bb := &ManagedDeviceRemoteLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/remoteLock" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRemoteLockRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRemoteLockRequestBuilder) Request() *ManagedDeviceRemoteLockRequest { + return &ManagedDeviceRemoteLockRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRemoteLockRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRequestRemoteAssistanceRequestBuilder struct{ BaseRequestBuilder } + +// RequestRemoteAssistance action undocumented +func (b *ManagedDeviceRequestBuilder) RequestRemoteAssistance(reqObj *ManagedDeviceRequestRemoteAssistanceRequestParameter) *ManagedDeviceRequestRemoteAssistanceRequestBuilder { + bb := &ManagedDeviceRequestRemoteAssistanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/requestRemoteAssistance" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRequestRemoteAssistanceRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRequestRemoteAssistanceRequestBuilder) Request() *ManagedDeviceRequestRemoteAssistanceRequest { + return &ManagedDeviceRequestRemoteAssistanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRequestRemoteAssistanceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceDisableLostModeRequestBuilder struct{ BaseRequestBuilder } + +// DisableLostMode action undocumented +func (b *ManagedDeviceRequestBuilder) DisableLostMode(reqObj *ManagedDeviceDisableLostModeRequestParameter) *ManagedDeviceDisableLostModeRequestBuilder { + bb := &ManagedDeviceDisableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/disableLostMode" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceDisableLostModeRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceDisableLostModeRequestBuilder) Request() *ManagedDeviceDisableLostModeRequest { + return &ManagedDeviceDisableLostModeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceDisableLostModeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceLocateDeviceRequestBuilder struct{ BaseRequestBuilder } + +// LocateDevice action undocumented +func (b *ManagedDeviceRequestBuilder) LocateDevice(reqObj *ManagedDeviceLocateDeviceRequestParameter) *ManagedDeviceLocateDeviceRequestBuilder { + bb := &ManagedDeviceLocateDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/locateDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceLocateDeviceRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceLocateDeviceRequestBuilder) Request() *ManagedDeviceLocateDeviceRequest { + return &ManagedDeviceLocateDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceLocateDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceBypassActivationLockRequestBuilder struct{ BaseRequestBuilder } + +// BypassActivationLock action undocumented +func (b *ManagedDeviceRequestBuilder) BypassActivationLock(reqObj *ManagedDeviceBypassActivationLockRequestParameter) *ManagedDeviceBypassActivationLockRequestBuilder { + bb := &ManagedDeviceBypassActivationLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bypassActivationLock" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceBypassActivationLockRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceBypassActivationLockRequestBuilder) Request() *ManagedDeviceBypassActivationLockRequest { + return &ManagedDeviceBypassActivationLockRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceBypassActivationLockRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRebootNowRequestBuilder struct{ BaseRequestBuilder } + +// RebootNow action undocumented +func (b *ManagedDeviceRequestBuilder) RebootNow(reqObj *ManagedDeviceRebootNowRequestParameter) *ManagedDeviceRebootNowRequestBuilder { + bb := &ManagedDeviceRebootNowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rebootNow" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRebootNowRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRebootNowRequestBuilder) Request() *ManagedDeviceRebootNowRequest { + return &ManagedDeviceRebootNowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRebootNowRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceShutDownRequestBuilder struct{ BaseRequestBuilder } + +// ShutDown action undocumented +func (b *ManagedDeviceRequestBuilder) ShutDown(reqObj *ManagedDeviceShutDownRequestParameter) *ManagedDeviceShutDownRequestBuilder { + bb := &ManagedDeviceShutDownRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/shutDown" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceShutDownRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceShutDownRequestBuilder) Request() *ManagedDeviceShutDownRequest { + return &ManagedDeviceShutDownRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceShutDownRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRecoverPasscodeRequestBuilder struct{ BaseRequestBuilder } + +// RecoverPasscode action undocumented +func (b *ManagedDeviceRequestBuilder) RecoverPasscode(reqObj *ManagedDeviceRecoverPasscodeRequestParameter) *ManagedDeviceRecoverPasscodeRequestBuilder { + bb := &ManagedDeviceRecoverPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/recoverPasscode" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRecoverPasscodeRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRecoverPasscodeRequestBuilder) Request() *ManagedDeviceRecoverPasscodeRequest { + return &ManagedDeviceRecoverPasscodeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRecoverPasscodeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceCleanWindowsDeviceRequestBuilder struct{ BaseRequestBuilder } + +// CleanWindowsDevice action undocumented +func (b *ManagedDeviceRequestBuilder) CleanWindowsDevice(reqObj *ManagedDeviceCleanWindowsDeviceRequestParameter) *ManagedDeviceCleanWindowsDeviceRequestBuilder { + bb := &ManagedDeviceCleanWindowsDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cleanWindowsDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceCleanWindowsDeviceRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceCleanWindowsDeviceRequestBuilder) Request() *ManagedDeviceCleanWindowsDeviceRequest { + return &ManagedDeviceCleanWindowsDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceCleanWindowsDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder struct{ BaseRequestBuilder } + +// LogoutSharedAppleDeviceActiveUser action undocumented +func (b *ManagedDeviceRequestBuilder) LogoutSharedAppleDeviceActiveUser(reqObj *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter) *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder { + bb := &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/logoutSharedAppleDeviceActiveUser" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder) Request() *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest { + return &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder struct{ BaseRequestBuilder } + +// DeleteUserFromSharedAppleDevice action undocumented +func (b *ManagedDeviceRequestBuilder) DeleteUserFromSharedAppleDevice(reqObj *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter) *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder { + bb := &ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/deleteUserFromSharedAppleDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceDeleteUserFromSharedAppleDeviceRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder) Request() *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest { + return &ManagedDeviceDeleteUserFromSharedAppleDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceSyncDeviceRequestBuilder struct{ BaseRequestBuilder } + +// SyncDevice action undocumented +func (b *ManagedDeviceRequestBuilder) SyncDevice(reqObj *ManagedDeviceSyncDeviceRequestParameter) *ManagedDeviceSyncDeviceRequestBuilder { + bb := &ManagedDeviceSyncDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceSyncDeviceRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceSyncDeviceRequestBuilder) Request() *ManagedDeviceSyncDeviceRequest { + return &ManagedDeviceSyncDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceSyncDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceWindowsDefenderScanRequestBuilder struct{ BaseRequestBuilder } + +// WindowsDefenderScan action undocumented +func (b *ManagedDeviceRequestBuilder) WindowsDefenderScan(reqObj *ManagedDeviceWindowsDefenderScanRequestParameter) *ManagedDeviceWindowsDefenderScanRequestBuilder { + bb := &ManagedDeviceWindowsDefenderScanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/windowsDefenderScan" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceWindowsDefenderScanRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceWindowsDefenderScanRequestBuilder) Request() *ManagedDeviceWindowsDefenderScanRequest { + return &ManagedDeviceWindowsDefenderScanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceWindowsDefenderScanRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder struct{ BaseRequestBuilder } + +// WindowsDefenderUpdateSignatures action undocumented +func (b *ManagedDeviceRequestBuilder) WindowsDefenderUpdateSignatures(reqObj *ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter) *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder { + bb := &ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/windowsDefenderUpdateSignatures" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceWindowsDefenderUpdateSignaturesRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder) Request() *ManagedDeviceWindowsDefenderUpdateSignaturesRequest { + return &ManagedDeviceWindowsDefenderUpdateSignaturesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceWindowsDefenderUpdateSignaturesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder struct{ BaseRequestBuilder } + +// UpdateWindowsDeviceAccount action undocumented +func (b *ManagedDeviceRequestBuilder) UpdateWindowsDeviceAccount(reqObj *ManagedDeviceUpdateWindowsDeviceAccountRequestParameter) *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder { + bb := &ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateWindowsDeviceAccount" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceUpdateWindowsDeviceAccountRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder) Request() *ManagedDeviceUpdateWindowsDeviceAccountRequest { + return &ManagedDeviceUpdateWindowsDeviceAccountRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceUpdateWindowsDeviceAccountRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRevokeAppleVPPLicensesRequestBuilder struct{ BaseRequestBuilder } + +// RevokeAppleVPPLicenses action undocumented +func (b *ManagedDeviceRequestBuilder) RevokeAppleVPPLicenses(reqObj *ManagedDeviceRevokeAppleVPPLicensesRequestParameter) *ManagedDeviceRevokeAppleVPPLicensesRequestBuilder { + bb := &ManagedDeviceRevokeAppleVPPLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeAppleVppLicenses" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRevokeAppleVPPLicensesRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRevokeAppleVPPLicensesRequestBuilder) Request() *ManagedDeviceRevokeAppleVPPLicensesRequest { + return &ManagedDeviceRevokeAppleVPPLicensesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRevokeAppleVPPLicensesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceRotateBitLockerKeysRequestBuilder struct{ BaseRequestBuilder } + +// RotateBitLockerKeys action undocumented +func (b *ManagedDeviceRequestBuilder) RotateBitLockerKeys(reqObj *ManagedDeviceRotateBitLockerKeysRequestParameter) *ManagedDeviceRotateBitLockerKeysRequestBuilder { + bb := &ManagedDeviceRotateBitLockerKeysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rotateBitLockerKeys" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceRotateBitLockerKeysRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceRotateBitLockerKeysRequestBuilder) Request() *ManagedDeviceRotateBitLockerKeysRequest { + return &ManagedDeviceRotateBitLockerKeysRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceRotateBitLockerKeysRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder } + +// SendCustomNotificationToCompanyPortal action undocumented +func (b *ManagedDeviceRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter) *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder { + bb := &ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder) Request() *ManagedDeviceSendCustomNotificationToCompanyPortalRequest { + return &ManagedDeviceSendCustomNotificationToCompanyPortalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceTriggerConfigurationManagerActionRequestBuilder struct{ BaseRequestBuilder } + +// TriggerConfigurationManagerAction action undocumented +func (b *ManagedDeviceRequestBuilder) TriggerConfigurationManagerAction(reqObj *ManagedDeviceTriggerConfigurationManagerActionRequestParameter) *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder { + bb := &ManagedDeviceTriggerConfigurationManagerActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/triggerConfigurationManagerAction" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceTriggerConfigurationManagerActionRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder) Request() *ManagedDeviceTriggerConfigurationManagerActionRequest { + return &ManagedDeviceTriggerConfigurationManagerActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceTriggerConfigurationManagerActionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedDeviceMobileAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assign(reqObj *ManagedDeviceMobileAppConfigurationAssignRequestParameter) *ManagedDeviceMobileAppConfigurationAssignRequestBuilder { + bb := &ManagedDeviceMobileAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedDeviceMobileAppConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *ManagedDeviceMobileAppConfigurationAssignRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignRequest { + return &ManagedDeviceMobileAppConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedDeviceMobileAppConfigurationAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ManagedEBookAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *ManagedEBookRequestBuilder) Assign(reqObj *ManagedEBookAssignRequestParameter) *ManagedEBookAssignRequestBuilder { + bb := &ManagedEBookAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ManagedEBookAssignRequest struct{ BaseRequest } + +// +func (b *ManagedEBookAssignRequestBuilder) Request() *ManagedEBookAssignRequest { + return &ManagedEBookAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ManagedEBookAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go new file mode 100644 index 00000000..90231821 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ManagementConditionRequestBuilder is request builder for ManagementCondition +type ManagementConditionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagementConditionRequest +func (b *ManagementConditionRequestBuilder) Request() *ManagementConditionRequest { + return &ManagementConditionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagementConditionRequest is request for ManagementCondition +type ManagementConditionRequest struct{ BaseRequest } + +// Get performs GET request for ManagementCondition +func (r *ManagementConditionRequest) Get(ctx context.Context) (resObj *ManagementCondition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagementCondition +func (r *ManagementConditionRequest) Update(ctx context.Context, reqObj *ManagementCondition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagementCondition +func (r *ManagementConditionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ManagementConditionStatementRequestBuilder is request builder for ManagementConditionStatement +type ManagementConditionStatementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ManagementConditionStatementRequest +func (b *ManagementConditionStatementRequestBuilder) Request() *ManagementConditionStatementRequest { + return &ManagementConditionStatementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ManagementConditionStatementRequest is request for ManagementConditionStatement +type ManagementConditionStatementRequest struct{ BaseRequest } + +// Get performs GET request for ManagementConditionStatement +func (r *ManagementConditionStatementRequest) Get(ctx context.Context) (resObj *ManagementConditionStatement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ManagementConditionStatement +func (r *ManagementConditionStatementRequest) Update(ctx context.Context, reqObj *ManagementConditionStatement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ManagementConditionStatement +func (r *ManagementConditionStatementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MentionRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go new file mode 100644 index 00000000..9b24b207 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go @@ -0,0 +1,336 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// MessageRequestBuilder is request builder for Message +type MessageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MessageRequest +func (b *MessageRequestBuilder) Request() *MessageRequest { + return &MessageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MessageRequest is request for Message +type MessageRequest struct{ BaseRequest } + +// Get performs GET request for Message +func (r *MessageRequest) Get(ctx context.Context) (resObj *Message, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Message +func (r *MessageRequest) Update(ctx context.Context, reqObj *Message) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Message +func (r *MessageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MessageRuleRequestBuilder is request builder for MessageRule +type MessageRuleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MessageRuleRequest +func (b *MessageRuleRequestBuilder) Request() *MessageRuleRequest { + return &MessageRuleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MessageRuleRequest is request for MessageRule +type MessageRuleRequest struct{ BaseRequest } + +// Get performs GET request for MessageRule +func (r *MessageRuleRequest) Get(ctx context.Context) (resObj *MessageRule, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MessageRule +func (r *MessageRuleRequest) Update(ctx context.Context, reqObj *MessageRule) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MessageRule +func (r *MessageRuleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type MessageCreateReplyRequestBuilder struct{ BaseRequestBuilder } + +// CreateReply action undocumented +func (b *MessageRequestBuilder) CreateReply(reqObj *MessageCreateReplyRequestParameter) *MessageCreateReplyRequestBuilder { + bb := &MessageCreateReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createReply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageCreateReplyRequest struct{ BaseRequest } + +// +func (b *MessageCreateReplyRequestBuilder) Request() *MessageCreateReplyRequest { + return &MessageCreateReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageCreateReplyRequest) Post(ctx context.Context) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MessageCreateReplyAllRequestBuilder struct{ BaseRequestBuilder } + +// CreateReplyAll action undocumented +func (b *MessageRequestBuilder) CreateReplyAll(reqObj *MessageCreateReplyAllRequestParameter) *MessageCreateReplyAllRequestBuilder { + bb := &MessageCreateReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createReplyAll" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageCreateReplyAllRequest struct{ BaseRequest } + +// +func (b *MessageCreateReplyAllRequestBuilder) Request() *MessageCreateReplyAllRequest { + return &MessageCreateReplyAllRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageCreateReplyAllRequest) Post(ctx context.Context) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MessageCreateForwardRequestBuilder struct{ BaseRequestBuilder } + +// CreateForward action undocumented +func (b *MessageRequestBuilder) CreateForward(reqObj *MessageCreateForwardRequestParameter) *MessageCreateForwardRequestBuilder { + bb := &MessageCreateForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createForward" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageCreateForwardRequest struct{ BaseRequest } + +// +func (b *MessageCreateForwardRequestBuilder) Request() *MessageCreateForwardRequest { + return &MessageCreateForwardRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageCreateForwardRequest) Post(ctx context.Context) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MessageSendRequestBuilder struct{ BaseRequestBuilder } + +// Send action undocumented +func (b *MessageRequestBuilder) Send(reqObj *MessageSendRequestParameter) *MessageSendRequestBuilder { + bb := &MessageSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/send" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageSendRequest struct{ BaseRequest } + +// +func (b *MessageSendRequestBuilder) Request() *MessageSendRequest { + return &MessageSendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageSendRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MessageCopyRequestBuilder struct{ BaseRequestBuilder } + +// Copy action undocumented +func (b *MessageRequestBuilder) Copy(reqObj *MessageCopyRequestParameter) *MessageCopyRequestBuilder { + bb := &MessageCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copy" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageCopyRequest struct{ BaseRequest } + +// +func (b *MessageCopyRequestBuilder) Request() *MessageCopyRequest { + return &MessageCopyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageCopyRequest) Post(ctx context.Context) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MessageMoveRequestBuilder struct{ BaseRequestBuilder } + +// Move action undocumented +func (b *MessageRequestBuilder) Move(reqObj *MessageMoveRequestParameter) *MessageMoveRequestBuilder { + bb := &MessageMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/move" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageMoveRequest struct{ BaseRequest } + +// +func (b *MessageMoveRequestBuilder) Request() *MessageMoveRequest { + return &MessageMoveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageMoveRequest) Post(ctx context.Context) (resObj *Message, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type MessageReplyRequestBuilder struct{ BaseRequestBuilder } + +// Reply action undocumented +func (b *MessageRequestBuilder) Reply(reqObj *MessageReplyRequestParameter) *MessageReplyRequestBuilder { + bb := &MessageReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageReplyRequest struct{ BaseRequest } + +// +func (b *MessageReplyRequestBuilder) Request() *MessageReplyRequest { + return &MessageReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageReplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MessageReplyAllRequestBuilder struct{ BaseRequestBuilder } + +// ReplyAll action undocumented +func (b *MessageRequestBuilder) ReplyAll(reqObj *MessageReplyAllRequestParameter) *MessageReplyAllRequestBuilder { + bb := &MessageReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/replyAll" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageReplyAllRequest struct{ BaseRequest } + +// +func (b *MessageReplyAllRequestBuilder) Request() *MessageReplyAllRequest { + return &MessageReplyAllRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageReplyAllRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MessageForwardRequestBuilder struct{ BaseRequestBuilder } + +// Forward action undocumented +func (b *MessageRequestBuilder) Forward(reqObj *MessageForwardRequestParameter) *MessageForwardRequestBuilder { + bb := &MessageForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/forward" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageForwardRequest struct{ BaseRequest } + +// +func (b *MessageForwardRequestBuilder) Request() *MessageForwardRequest { + return &MessageForwardRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageForwardRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MessageUnsubscribeRequestBuilder struct{ BaseRequestBuilder } + +// Unsubscribe action undocumented +func (b *MessageRequestBuilder) Unsubscribe(reqObj *MessageUnsubscribeRequestParameter) *MessageUnsubscribeRequestBuilder { + bb := &MessageUnsubscribeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unsubscribe" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MessageUnsubscribeRequest struct{ BaseRequest } + +// +func (b *MessageUnsubscribeRequestBuilder) Request() *MessageUnsubscribeRequest { + return &MessageUnsubscribeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MessageUnsubscribeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go new file mode 100644 index 00000000..54c9a9b2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// MicrosoftStoreForBusinessAppRequestBuilder is request builder for MicrosoftStoreForBusinessApp +type MicrosoftStoreForBusinessAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MicrosoftStoreForBusinessAppRequest +func (b *MicrosoftStoreForBusinessAppRequestBuilder) Request() *MicrosoftStoreForBusinessAppRequest { + return &MicrosoftStoreForBusinessAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MicrosoftStoreForBusinessAppRequest is request for MicrosoftStoreForBusinessApp +type MicrosoftStoreForBusinessAppRequest struct{ BaseRequest } + +// Get performs GET request for MicrosoftStoreForBusinessApp +func (r *MicrosoftStoreForBusinessAppRequest) Get(ctx context.Context) (resObj *MicrosoftStoreForBusinessApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MicrosoftStoreForBusinessApp +func (r *MicrosoftStoreForBusinessAppRequest) Update(ctx context.Context, reqObj *MicrosoftStoreForBusinessApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MicrosoftStoreForBusinessApp +func (r *MicrosoftStoreForBusinessAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go new file mode 100644 index 00000000..62d153f2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go @@ -0,0 +1,664 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// MobileAppRequestBuilder is request builder for MobileApp +type MobileAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppRequest +func (b *MobileAppRequestBuilder) Request() *MobileAppRequest { + return &MobileAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppRequest is request for MobileApp +type MobileAppRequest struct{ BaseRequest } + +// Get performs GET request for MobileApp +func (r *MobileAppRequest) Get(ctx context.Context) (resObj *MobileApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileApp +func (r *MobileAppRequest) Update(ctx context.Context, reqObj *MobileApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileApp +func (r *MobileAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppAssignmentRequestBuilder is request builder for MobileAppAssignment +type MobileAppAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppAssignmentRequest +func (b *MobileAppAssignmentRequestBuilder) Request() *MobileAppAssignmentRequest { + return &MobileAppAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppAssignmentRequest is request for MobileAppAssignment +type MobileAppAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppAssignment +func (r *MobileAppAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppAssignment +func (r *MobileAppAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppAssignment +func (r *MobileAppAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppCategoryRequestBuilder is request builder for MobileAppCategory +type MobileAppCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppCategoryRequest +func (b *MobileAppCategoryRequestBuilder) Request() *MobileAppCategoryRequest { + return &MobileAppCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppCategoryRequest is request for MobileAppCategory +type MobileAppCategoryRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppCategory +func (r *MobileAppCategoryRequest) Get(ctx context.Context) (resObj *MobileAppCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppCategory +func (r *MobileAppCategoryRequest) Update(ctx context.Context, reqObj *MobileAppCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppCategory +func (r *MobileAppCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppContentRequestBuilder is request builder for MobileAppContent +type MobileAppContentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppContentRequest +func (b *MobileAppContentRequestBuilder) Request() *MobileAppContentRequest { + return &MobileAppContentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppContentRequest is request for MobileAppContent +type MobileAppContentRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppContent +func (r *MobileAppContentRequest) Get(ctx context.Context) (resObj *MobileAppContent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppContent +func (r *MobileAppContentRequest) Update(ctx context.Context, reqObj *MobileAppContent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppContent +func (r *MobileAppContentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppContentFileRequestBuilder is request builder for MobileAppContentFile +type MobileAppContentFileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppContentFileRequest +func (b *MobileAppContentFileRequestBuilder) Request() *MobileAppContentFileRequest { + return &MobileAppContentFileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppContentFileRequest is request for MobileAppContentFile +type MobileAppContentFileRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppContentFile +func (r *MobileAppContentFileRequest) Get(ctx context.Context) (resObj *MobileAppContentFile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppContentFile +func (r *MobileAppContentFileRequest) Update(ctx context.Context, reqObj *MobileAppContentFile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppContentFile +func (r *MobileAppContentFileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppInstallStatusRequestBuilder is request builder for MobileAppInstallStatus +type MobileAppInstallStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppInstallStatusRequest +func (b *MobileAppInstallStatusRequestBuilder) Request() *MobileAppInstallStatusRequest { + return &MobileAppInstallStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppInstallStatusRequest is request for MobileAppInstallStatus +type MobileAppInstallStatusRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppInstallStatus +func (r *MobileAppInstallStatusRequest) Get(ctx context.Context) (resObj *MobileAppInstallStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppInstallStatus +func (r *MobileAppInstallStatusRequest) Update(ctx context.Context, reqObj *MobileAppInstallStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppInstallStatus +func (r *MobileAppInstallStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppInstallSummaryRequestBuilder is request builder for MobileAppInstallSummary +type MobileAppInstallSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppInstallSummaryRequest +func (b *MobileAppInstallSummaryRequestBuilder) Request() *MobileAppInstallSummaryRequest { + return &MobileAppInstallSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppInstallSummaryRequest is request for MobileAppInstallSummary +type MobileAppInstallSummaryRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppInstallSummary +func (r *MobileAppInstallSummaryRequest) Get(ctx context.Context) (resObj *MobileAppInstallSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppInstallSummary +func (r *MobileAppInstallSummaryRequest) Update(ctx context.Context, reqObj *MobileAppInstallSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppInstallSummary +func (r *MobileAppInstallSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppIntentAndStateRequestBuilder is request builder for MobileAppIntentAndState +type MobileAppIntentAndStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppIntentAndStateRequest +func (b *MobileAppIntentAndStateRequestBuilder) Request() *MobileAppIntentAndStateRequest { + return &MobileAppIntentAndStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppIntentAndStateRequest is request for MobileAppIntentAndState +type MobileAppIntentAndStateRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppIntentAndState +func (r *MobileAppIntentAndStateRequest) Get(ctx context.Context) (resObj *MobileAppIntentAndState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppIntentAndState +func (r *MobileAppIntentAndStateRequest) Update(ctx context.Context, reqObj *MobileAppIntentAndState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppIntentAndState +func (r *MobileAppIntentAndStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppProvisioningConfigGroupAssignmentRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment +type MobileAppProvisioningConfigGroupAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppProvisioningConfigGroupAssignmentRequest +func (b *MobileAppProvisioningConfigGroupAssignmentRequestBuilder) Request() *MobileAppProvisioningConfigGroupAssignmentRequest { + return &MobileAppProvisioningConfigGroupAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppProvisioningConfigGroupAssignmentRequest is request for MobileAppProvisioningConfigGroupAssignment +type MobileAppProvisioningConfigGroupAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppProvisioningConfigGroupAssignment +func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppProvisioningConfigGroupAssignment +func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppProvisioningConfigGroupAssignment +func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppRelationshipRequestBuilder is request builder for MobileAppRelationship +type MobileAppRelationshipRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppRelationshipRequest +func (b *MobileAppRelationshipRequestBuilder) Request() *MobileAppRelationshipRequest { + return &MobileAppRelationshipRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppRelationshipRequest is request for MobileAppRelationship +type MobileAppRelationshipRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppRelationship +func (r *MobileAppRelationshipRequest) Get(ctx context.Context) (resObj *MobileAppRelationship, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppRelationship +func (r *MobileAppRelationshipRequest) Update(ctx context.Context, reqObj *MobileAppRelationship) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppRelationship +func (r *MobileAppRelationshipRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileAppTroubleshootingEventRequestBuilder is request builder for MobileAppTroubleshootingEvent +type MobileAppTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileAppTroubleshootingEventRequest +func (b *MobileAppTroubleshootingEventRequestBuilder) Request() *MobileAppTroubleshootingEventRequest { + return &MobileAppTroubleshootingEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileAppTroubleshootingEventRequest is request for MobileAppTroubleshootingEvent +type MobileAppTroubleshootingEventRequest struct{ BaseRequest } + +// Get performs GET request for MobileAppTroubleshootingEvent +func (r *MobileAppTroubleshootingEventRequest) Get(ctx context.Context) (resObj *MobileAppTroubleshootingEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileAppTroubleshootingEvent +func (r *MobileAppTroubleshootingEventRequest) Update(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileAppTroubleshootingEvent +func (r *MobileAppTroubleshootingEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileContainedAppRequestBuilder is request builder for MobileContainedApp +type MobileContainedAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileContainedAppRequest +func (b *MobileContainedAppRequestBuilder) Request() *MobileContainedAppRequest { + return &MobileContainedAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileContainedAppRequest is request for MobileContainedApp +type MobileContainedAppRequest struct{ BaseRequest } + +// Get performs GET request for MobileContainedApp +func (r *MobileContainedAppRequest) Get(ctx context.Context) (resObj *MobileContainedApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileContainedApp +func (r *MobileContainedAppRequest) Update(ctx context.Context, reqObj *MobileContainedApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileContainedApp +func (r *MobileContainedAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileLobAppRequestBuilder is request builder for MobileLobApp +type MobileLobAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileLobAppRequest +func (b *MobileLobAppRequestBuilder) Request() *MobileLobAppRequest { + return &MobileLobAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileLobAppRequest is request for MobileLobApp +type MobileLobAppRequest struct{ BaseRequest } + +// Get performs GET request for MobileLobApp +func (r *MobileLobAppRequest) Get(ctx context.Context) (resObj *MobileLobApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileLobApp +func (r *MobileLobAppRequest) Update(ctx context.Context, reqObj *MobileLobApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileLobApp +func (r *MobileLobAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// MobileThreatDefenseConnectorRequestBuilder is request builder for MobileThreatDefenseConnector +type MobileThreatDefenseConnectorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns MobileThreatDefenseConnectorRequest +func (b *MobileThreatDefenseConnectorRequestBuilder) Request() *MobileThreatDefenseConnectorRequest { + return &MobileThreatDefenseConnectorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// MobileThreatDefenseConnectorRequest is request for MobileThreatDefenseConnector +type MobileThreatDefenseConnectorRequest struct{ BaseRequest } + +// Get performs GET request for MobileThreatDefenseConnector +func (r *MobileThreatDefenseConnectorRequest) Get(ctx context.Context) (resObj *MobileThreatDefenseConnector, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for MobileThreatDefenseConnector +func (r *MobileThreatDefenseConnectorRequest) Update(ctx context.Context, reqObj *MobileThreatDefenseConnector) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for MobileThreatDefenseConnector +func (r *MobileThreatDefenseConnectorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type MobileAppCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) HasPayloadLinks(reqObj *MobileAppCollectionHasPayloadLinksRequestParameter) *MobileAppCollectionHasPayloadLinksRequestBuilder { + bb := &MobileAppCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MobileAppCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *MobileAppCollectionHasPayloadLinksRequestBuilder) Request() *MobileAppCollectionHasPayloadLinksRequest { + return &MobileAppCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MobileAppCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *MobileAppCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *MobileAppCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type MobileAppAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *MobileAppRequestBuilder) Assign(reqObj *MobileAppAssignRequestParameter) *MobileAppAssignRequestBuilder { + bb := &MobileAppAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MobileAppAssignRequest struct{ BaseRequest } + +// +func (b *MobileAppAssignRequestBuilder) Request() *MobileAppAssignRequest { + return &MobileAppAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MobileAppAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MobileAppUpdateRelationshipsRequestBuilder struct{ BaseRequestBuilder } + +// UpdateRelationships action undocumented +func (b *MobileAppRequestBuilder) UpdateRelationships(reqObj *MobileAppUpdateRelationshipsRequestParameter) *MobileAppUpdateRelationshipsRequestBuilder { + bb := &MobileAppUpdateRelationshipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateRelationships" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MobileAppUpdateRelationshipsRequest struct{ BaseRequest } + +// +func (b *MobileAppUpdateRelationshipsRequestBuilder) Request() *MobileAppUpdateRelationshipsRequest { + return &MobileAppUpdateRelationshipsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MobileAppUpdateRelationshipsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MobileAppContentFileCommitRequestBuilder struct{ BaseRequestBuilder } + +// Commit action undocumented +func (b *MobileAppContentFileRequestBuilder) Commit(reqObj *MobileAppContentFileCommitRequestParameter) *MobileAppContentFileCommitRequestBuilder { + bb := &MobileAppContentFileCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/commit" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MobileAppContentFileCommitRequest struct{ BaseRequest } + +// +func (b *MobileAppContentFileCommitRequestBuilder) Request() *MobileAppContentFileCommitRequest { + return &MobileAppContentFileCommitRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MobileAppContentFileCommitRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type MobileAppContentFileRenewUploadRequestBuilder struct{ BaseRequestBuilder } + +// RenewUpload action undocumented +func (b *MobileAppContentFileRequestBuilder) RenewUpload(reqObj *MobileAppContentFileRenewUploadRequestParameter) *MobileAppContentFileRenewUploadRequestBuilder { + bb := &MobileAppContentFileRenewUploadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/renewUpload" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type MobileAppContentFileRenewUploadRequest struct{ BaseRequest } + +// +func (b *MobileAppContentFileRenewUploadRequestBuilder) Request() *MobileAppContentFileRenewUploadRequest { + return &MobileAppContentFileRenewUploadRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *MobileAppContentFileRenewUploadRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go new file mode 100644 index 00000000..41be05da --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// NDESConnectorRequestBuilder is request builder for NDESConnector +type NDESConnectorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns NDESConnectorRequest +func (b *NDESConnectorRequestBuilder) Request() *NDESConnectorRequest { + return &NDESConnectorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// NDESConnectorRequest is request for NDESConnector +type NDESConnectorRequest struct{ BaseRequest } + +// Get performs GET request for NDESConnector +func (r *NDESConnectorRequest) Get(ctx context.Context) (resObj *NDESConnector, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for NDESConnector +func (r *NDESConnectorRequest) Update(ctx context.Context, reqObj *NDESConnector) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for NDESConnector +func (r *NDESConnectorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/NamedLocationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go new file mode 100644 index 00000000..9059a609 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go @@ -0,0 +1,92 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// NotebookRequestBuilder is request builder for Notebook +type NotebookRequestBuilder struct{ BaseRequestBuilder } + +// Request returns NotebookRequest +func (b *NotebookRequestBuilder) Request() *NotebookRequest { + return &NotebookRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// NotebookRequest is request for Notebook +type NotebookRequest struct{ BaseRequest } + +// Get performs GET request for Notebook +func (r *NotebookRequest) Get(ctx context.Context) (resObj *Notebook, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Notebook +func (r *NotebookRequest) Update(ctx context.Context, reqObj *Notebook) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Notebook +func (r *NotebookRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type NotebookCollectionGetNotebookFromWebURLRequestBuilder struct{ BaseRequestBuilder } + +// GetNotebookFromWebURL action undocumented +func (b *OnenoteNotebooksCollectionRequestBuilder) GetNotebookFromWebURL(reqObj *NotebookCollectionGetNotebookFromWebURLRequestParameter) *NotebookCollectionGetNotebookFromWebURLRequestBuilder { + bb := &NotebookCollectionGetNotebookFromWebURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getNotebookFromWebUrl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type NotebookCollectionGetNotebookFromWebURLRequest struct{ BaseRequest } + +// +func (b *NotebookCollectionGetNotebookFromWebURLRequestBuilder) Request() *NotebookCollectionGetNotebookFromWebURLRequest { + return &NotebookCollectionGetNotebookFromWebURLRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *NotebookCollectionGetNotebookFromWebURLRequest) Post(ctx context.Context) (resObj *CopyNotebookModel, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type NotebookCopyNotebookRequestBuilder struct{ BaseRequestBuilder } + +// CopyNotebook action undocumented +func (b *NotebookRequestBuilder) CopyNotebook(reqObj *NotebookCopyNotebookRequestParameter) *NotebookCopyNotebookRequestBuilder { + bb := &NotebookCopyNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copyNotebook" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type NotebookCopyNotebookRequest struct{ BaseRequest } + +// +func (b *NotebookCopyNotebookRequestBuilder) Request() *NotebookCopyNotebookRequest { + return &NotebookCopyNotebookRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *NotebookCopyNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go new file mode 100644 index 00000000..0ddaeb8e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// NotificationRequestBuilder is request builder for Notification +type NotificationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns NotificationRequest +func (b *NotificationRequestBuilder) Request() *NotificationRequest { + return &NotificationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// NotificationRequest is request for Notification +type NotificationRequest struct{ BaseRequest } + +// Get performs GET request for Notification +func (r *NotificationRequest) Get(ctx context.Context) (resObj *Notification, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Notification +func (r *NotificationRequest) Update(ctx context.Context, reqObj *Notification) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Notification +func (r *NotificationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// NotificationMessageTemplateRequestBuilder is request builder for NotificationMessageTemplate +type NotificationMessageTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns NotificationMessageTemplateRequest +func (b *NotificationMessageTemplateRequestBuilder) Request() *NotificationMessageTemplateRequest { + return &NotificationMessageTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// NotificationMessageTemplateRequest is request for NotificationMessageTemplate +type NotificationMessageTemplateRequest struct{ BaseRequest } + +// Get performs GET request for NotificationMessageTemplate +func (r *NotificationMessageTemplateRequest) Get(ctx context.Context) (resObj *NotificationMessageTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for NotificationMessageTemplate +func (r *NotificationMessageTemplateRequest) Update(ctx context.Context, reqObj *NotificationMessageTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for NotificationMessageTemplate +func (r *NotificationMessageTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type NotificationMessageTemplateSendTestMessageRequestBuilder struct{ BaseRequestBuilder } + +// SendTestMessage action undocumented +func (b *NotificationMessageTemplateRequestBuilder) SendTestMessage(reqObj *NotificationMessageTemplateSendTestMessageRequestParameter) *NotificationMessageTemplateSendTestMessageRequestBuilder { + bb := &NotificationMessageTemplateSendTestMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sendTestMessage" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type NotificationMessageTemplateSendTestMessageRequest struct{ BaseRequest } + +// +func (b *NotificationMessageTemplateSendTestMessageRequestBuilder) Request() *NotificationMessageTemplateSendTestMessageRequest { + return &NotificationMessageTemplateSendTestMessageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *NotificationMessageTemplateSendTestMessageRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OAuth2PermissionGrantRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go new file mode 100644 index 00000000..d8947a58 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go @@ -0,0 +1,256 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OfficeClientConfigurationRequestBuilder is request builder for OfficeClientConfiguration +type OfficeClientConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OfficeClientConfigurationRequest +func (b *OfficeClientConfigurationRequestBuilder) Request() *OfficeClientConfigurationRequest { + return &OfficeClientConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OfficeClientConfigurationRequest is request for OfficeClientConfiguration +type OfficeClientConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for OfficeClientConfiguration +func (r *OfficeClientConfigurationRequest) Get(ctx context.Context) (resObj *OfficeClientConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OfficeClientConfiguration +func (r *OfficeClientConfigurationRequest) Update(ctx context.Context, reqObj *OfficeClientConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OfficeClientConfiguration +func (r *OfficeClientConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OfficeClientConfigurationAssignmentRequestBuilder is request builder for OfficeClientConfigurationAssignment +type OfficeClientConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OfficeClientConfigurationAssignmentRequest +func (b *OfficeClientConfigurationAssignmentRequestBuilder) Request() *OfficeClientConfigurationAssignmentRequest { + return &OfficeClientConfigurationAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OfficeClientConfigurationAssignmentRequest is request for OfficeClientConfigurationAssignment +type OfficeClientConfigurationAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for OfficeClientConfigurationAssignment +func (r *OfficeClientConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *OfficeClientConfigurationAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OfficeClientConfigurationAssignment +func (r *OfficeClientConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OfficeClientConfigurationAssignment +func (r *OfficeClientConfigurationAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OfficeConfigurationRequestBuilder is request builder for OfficeConfiguration +type OfficeConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OfficeConfigurationRequest +func (b *OfficeConfigurationRequestBuilder) Request() *OfficeConfigurationRequest { + return &OfficeConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OfficeConfigurationRequest is request for OfficeConfiguration +type OfficeConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for OfficeConfiguration +func (r *OfficeConfigurationRequest) Get(ctx context.Context) (resObj *OfficeConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OfficeConfiguration +func (r *OfficeConfigurationRequest) Update(ctx context.Context, reqObj *OfficeConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OfficeConfiguration +func (r *OfficeConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OfficeGraphInsightsRequestBuilder is request builder for OfficeGraphInsights +type OfficeGraphInsightsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OfficeGraphInsightsRequest +func (b *OfficeGraphInsightsRequestBuilder) Request() *OfficeGraphInsightsRequest { + return &OfficeGraphInsightsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OfficeGraphInsightsRequest is request for OfficeGraphInsights +type OfficeGraphInsightsRequest struct{ BaseRequest } + +// Get performs GET request for OfficeGraphInsights +func (r *OfficeGraphInsightsRequest) Get(ctx context.Context) (resObj *OfficeGraphInsights, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OfficeGraphInsights +func (r *OfficeGraphInsightsRequest) Update(ctx context.Context, reqObj *OfficeGraphInsights) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OfficeGraphInsights +func (r *OfficeGraphInsightsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder struct{ BaseRequestBuilder } + +// UpdatePriorities action undocumented +func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) UpdatePriorities(reqObj *OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter) *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder { + bb := &OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updatePriorities" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OfficeClientConfigurationCollectionUpdatePrioritiesRequest struct{ BaseRequest } + +// +func (b *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder) Request() *OfficeClientConfigurationCollectionUpdatePrioritiesRequest { + return &OfficeClientConfigurationCollectionUpdatePrioritiesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OfficeClientConfigurationCollectionUpdatePrioritiesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type OfficeClientConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *OfficeClientConfigurationRequestBuilder) Assign(reqObj *OfficeClientConfigurationAssignRequestParameter) *OfficeClientConfigurationAssignRequestBuilder { + bb := &OfficeClientConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OfficeClientConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *OfficeClientConfigurationAssignRequestBuilder) Request() *OfficeClientConfigurationAssignRequest { + return &OfficeClientConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OfficeClientConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfigurationAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OfficeClientConfigurationAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OfficeClientConfigurationAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *OfficeClientConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]OfficeClientConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *OfficeClientConfigurationAssignRequest) Post(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go new file mode 100644 index 00000000..3404da12 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// OnPremisesAgentRequestBuilder is request builder for OnPremisesAgent +type OnPremisesAgentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnPremisesAgentRequest +func (b *OnPremisesAgentRequestBuilder) Request() *OnPremisesAgentRequest { + return &OnPremisesAgentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnPremisesAgentRequest is request for OnPremisesAgent +type OnPremisesAgentRequest struct{ BaseRequest } + +// Get performs GET request for OnPremisesAgent +func (r *OnPremisesAgentRequest) Get(ctx context.Context) (resObj *OnPremisesAgent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnPremisesAgent +func (r *OnPremisesAgentRequest) Update(ctx context.Context, reqObj *OnPremisesAgent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnPremisesAgent +func (r *OnPremisesAgentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnPremisesAgentGroupRequestBuilder is request builder for OnPremisesAgentGroup +type OnPremisesAgentGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnPremisesAgentGroupRequest +func (b *OnPremisesAgentGroupRequestBuilder) Request() *OnPremisesAgentGroupRequest { + return &OnPremisesAgentGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnPremisesAgentGroupRequest is request for OnPremisesAgentGroup +type OnPremisesAgentGroupRequest struct{ BaseRequest } + +// Get performs GET request for OnPremisesAgentGroup +func (r *OnPremisesAgentGroupRequest) Get(ctx context.Context) (resObj *OnPremisesAgentGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnPremisesAgentGroup +func (r *OnPremisesAgentGroupRequest) Update(ctx context.Context, reqObj *OnPremisesAgentGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnPremisesAgentGroup +func (r *OnPremisesAgentGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnPremisesConditionalAccessSettingsRequestBuilder is request builder for OnPremisesConditionalAccessSettings +type OnPremisesConditionalAccessSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnPremisesConditionalAccessSettingsRequest +func (b *OnPremisesConditionalAccessSettingsRequestBuilder) Request() *OnPremisesConditionalAccessSettingsRequest { + return &OnPremisesConditionalAccessSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnPremisesConditionalAccessSettingsRequest is request for OnPremisesConditionalAccessSettings +type OnPremisesConditionalAccessSettingsRequest struct{ BaseRequest } + +// Get performs GET request for OnPremisesConditionalAccessSettings +func (r *OnPremisesConditionalAccessSettingsRequest) Get(ctx context.Context) (resObj *OnPremisesConditionalAccessSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnPremisesConditionalAccessSettings +func (r *OnPremisesConditionalAccessSettingsRequest) Update(ctx context.Context, reqObj *OnPremisesConditionalAccessSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnPremisesConditionalAccessSettings +func (r *OnPremisesConditionalAccessSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnPremisesPublishingProfileRequestBuilder is request builder for OnPremisesPublishingProfile +type OnPremisesPublishingProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnPremisesPublishingProfileRequest +func (b *OnPremisesPublishingProfileRequestBuilder) Request() *OnPremisesPublishingProfileRequest { + return &OnPremisesPublishingProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnPremisesPublishingProfileRequest is request for OnPremisesPublishingProfile +type OnPremisesPublishingProfileRequest struct{ BaseRequest } + +// Get performs GET request for OnPremisesPublishingProfile +func (r *OnPremisesPublishingProfileRequest) Get(ctx context.Context) (resObj *OnPremisesPublishingProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnPremisesPublishingProfile +func (r *OnPremisesPublishingProfileRequest) Update(ctx context.Context, reqObj *OnPremisesPublishingProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnPremisesPublishingProfile +func (r *OnPremisesPublishingProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go new file mode 100644 index 00000000..f9d52484 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go @@ -0,0 +1,277 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// OnenoteRequestBuilder is request builder for Onenote +type OnenoteRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnenoteRequest +func (b *OnenoteRequestBuilder) Request() *OnenoteRequest { + return &OnenoteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnenoteRequest is request for Onenote +type OnenoteRequest struct{ BaseRequest } + +// Get performs GET request for Onenote +func (r *OnenoteRequest) Get(ctx context.Context) (resObj *Onenote, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Onenote +func (r *OnenoteRequest) Update(ctx context.Context, reqObj *Onenote) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Onenote +func (r *OnenoteRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnenoteOperationRequestBuilder is request builder for OnenoteOperation +type OnenoteOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnenoteOperationRequest +func (b *OnenoteOperationRequestBuilder) Request() *OnenoteOperationRequest { + return &OnenoteOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnenoteOperationRequest is request for OnenoteOperation +type OnenoteOperationRequest struct{ BaseRequest } + +// Get performs GET request for OnenoteOperation +func (r *OnenoteOperationRequest) Get(ctx context.Context) (resObj *OnenoteOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnenoteOperation +func (r *OnenoteOperationRequest) Update(ctx context.Context, reqObj *OnenoteOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnenoteOperation +func (r *OnenoteOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnenotePageRequestBuilder is request builder for OnenotePage +type OnenotePageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnenotePageRequest +func (b *OnenotePageRequestBuilder) Request() *OnenotePageRequest { + return &OnenotePageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnenotePageRequest is request for OnenotePage +type OnenotePageRequest struct{ BaseRequest } + +// Get performs GET request for OnenotePage +func (r *OnenotePageRequest) Get(ctx context.Context) (resObj *OnenotePage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnenotePage +func (r *OnenotePageRequest) Update(ctx context.Context, reqObj *OnenotePage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnenotePage +func (r *OnenotePageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnenoteResourceRequestBuilder is request builder for OnenoteResource +type OnenoteResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnenoteResourceRequest +func (b *OnenoteResourceRequestBuilder) Request() *OnenoteResourceRequest { + return &OnenoteResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnenoteResourceRequest is request for OnenoteResource +type OnenoteResourceRequest struct{ BaseRequest } + +// Get performs GET request for OnenoteResource +func (r *OnenoteResourceRequest) Get(ctx context.Context) (resObj *OnenoteResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnenoteResource +func (r *OnenoteResourceRequest) Update(ctx context.Context, reqObj *OnenoteResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnenoteResource +func (r *OnenoteResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OnenoteSectionRequestBuilder is request builder for OnenoteSection +type OnenoteSectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OnenoteSectionRequest +func (b *OnenoteSectionRequestBuilder) Request() *OnenoteSectionRequest { + return &OnenoteSectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OnenoteSectionRequest is request for OnenoteSection +type OnenoteSectionRequest struct{ BaseRequest } + +// Get performs GET request for OnenoteSection +func (r *OnenoteSectionRequest) Get(ctx context.Context) (resObj *OnenoteSection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OnenoteSection +func (r *OnenoteSectionRequest) Update(ctx context.Context, reqObj *OnenoteSection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OnenoteSection +func (r *OnenoteSectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type OnenotePageOnenotePatchContentRequestBuilder struct{ BaseRequestBuilder } + +// OnenotePatchContent action undocumented +func (b *OnenotePageRequestBuilder) OnenotePatchContent(reqObj *OnenotePageOnenotePatchContentRequestParameter) *OnenotePageOnenotePatchContentRequestBuilder { + bb := &OnenotePageOnenotePatchContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/onenotePatchContent" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OnenotePageOnenotePatchContentRequest struct{ BaseRequest } + +// +func (b *OnenotePageOnenotePatchContentRequestBuilder) Request() *OnenotePageOnenotePatchContentRequest { + return &OnenotePageOnenotePatchContentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OnenotePageOnenotePatchContentRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type OnenotePageCopyToSectionRequestBuilder struct{ BaseRequestBuilder } + +// CopyToSection action undocumented +func (b *OnenotePageRequestBuilder) CopyToSection(reqObj *OnenotePageCopyToSectionRequestParameter) *OnenotePageCopyToSectionRequestBuilder { + bb := &OnenotePageCopyToSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copyToSection" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OnenotePageCopyToSectionRequest struct{ BaseRequest } + +// +func (b *OnenotePageCopyToSectionRequestBuilder) Request() *OnenotePageCopyToSectionRequest { + return &OnenotePageCopyToSectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OnenotePageCopyToSectionRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type OnenoteSectionCopyToNotebookRequestBuilder struct{ BaseRequestBuilder } + +// CopyToNotebook action undocumented +func (b *OnenoteSectionRequestBuilder) CopyToNotebook(reqObj *OnenoteSectionCopyToNotebookRequestParameter) *OnenoteSectionCopyToNotebookRequestBuilder { + bb := &OnenoteSectionCopyToNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copyToNotebook" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OnenoteSectionCopyToNotebookRequest struct{ BaseRequest } + +// +func (b *OnenoteSectionCopyToNotebookRequestBuilder) Request() *OnenoteSectionCopyToNotebookRequest { + return &OnenoteSectionCopyToNotebookRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OnenoteSectionCopyToNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type OnenoteSectionCopyToSectionGroupRequestBuilder struct{ BaseRequestBuilder } + +// CopyToSectionGroup action undocumented +func (b *OnenoteSectionRequestBuilder) CopyToSectionGroup(reqObj *OnenoteSectionCopyToSectionGroupRequestParameter) *OnenoteSectionCopyToSectionGroupRequestBuilder { + bb := &OnenoteSectionCopyToSectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/copyToSectionGroup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OnenoteSectionCopyToSectionGroupRequest struct{ BaseRequest } + +// +func (b *OnenoteSectionCopyToSectionGroupRequestBuilder) Request() *OnenoteSectionCopyToSectionGroupRequest { + return &OnenoteSectionCopyToSectionGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OnenoteSectionCopyToSectionGroupRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OnlineMeetingRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go new file mode 100644 index 00000000..35f7be1b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// OpenShiftRequestBuilder is request builder for OpenShift +type OpenShiftRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OpenShiftRequest +func (b *OpenShiftRequestBuilder) Request() *OpenShiftRequest { + return &OpenShiftRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OpenShiftRequest is request for OpenShift +type OpenShiftRequest struct{ BaseRequest } + +// Get performs GET request for OpenShift +func (r *OpenShiftRequest) Get(ctx context.Context) (resObj *OpenShift, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OpenShift +func (r *OpenShiftRequest) Update(ctx context.Context, reqObj *OpenShift) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OpenShift +func (r *OpenShiftRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OpenShiftChangeRequestObjectRequestBuilder is request builder for OpenShiftChangeRequestObject +type OpenShiftChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OpenShiftChangeRequestObjectRequest +func (b *OpenShiftChangeRequestObjectRequestBuilder) Request() *OpenShiftChangeRequestObjectRequest { + return &OpenShiftChangeRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OpenShiftChangeRequestObjectRequest is request for OpenShiftChangeRequestObject +type OpenShiftChangeRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for OpenShiftChangeRequestObject +func (r *OpenShiftChangeRequestObjectRequest) Get(ctx context.Context) (resObj *OpenShiftChangeRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OpenShiftChangeRequestObject +func (r *OpenShiftChangeRequestObjectRequest) Update(ctx context.Context, reqObj *OpenShiftChangeRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OpenShiftChangeRequestObject +func (r *OpenShiftChangeRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go new file mode 100644 index 00000000..958b619d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// OrgContactRequestBuilder is request builder for OrgContact +type OrgContactRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OrgContactRequest +func (b *OrgContactRequestBuilder) Request() *OrgContactRequest { + return &OrgContactRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OrgContactRequest is request for OrgContact +type OrgContactRequest struct{ BaseRequest } + +// Get performs GET request for OrgContact +func (r *OrgContactRequest) Get(ctx context.Context) (resObj *OrgContact, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OrgContact +func (r *OrgContactRequest) Update(ctx context.Context, reqObj *OrgContact) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OrgContact +func (r *OrgContactRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go new file mode 100644 index 00000000..2294428c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go @@ -0,0 +1,65 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// OrganizationRequestBuilder is request builder for Organization +type OrganizationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OrganizationRequest +func (b *OrganizationRequestBuilder) Request() *OrganizationRequest { + return &OrganizationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OrganizationRequest is request for Organization +type OrganizationRequest struct{ BaseRequest } + +// Get performs GET request for Organization +func (r *OrganizationRequest) Get(ctx context.Context) (resObj *Organization, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Organization +func (r *OrganizationRequest) Update(ctx context.Context, reqObj *Organization) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Organization +func (r *OrganizationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type OrganizationSetMobileDeviceManagementAuthorityRequestBuilder struct{ BaseRequestBuilder } + +// SetMobileDeviceManagementAuthority action undocumented +func (b *OrganizationRequestBuilder) SetMobileDeviceManagementAuthority(reqObj *OrganizationSetMobileDeviceManagementAuthorityRequestParameter) *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder { + bb := &OrganizationSetMobileDeviceManagementAuthorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setMobileDeviceManagementAuthority" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OrganizationSetMobileDeviceManagementAuthorityRequest struct{ BaseRequest } + +// +func (b *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder) Request() *OrganizationSetMobileDeviceManagementAuthorityRequest { + return &OrganizationSetMobileDeviceManagementAuthorityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OrganizationSetMobileDeviceManagementAuthorityRequest) Post(ctx context.Context) (resObj *int, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/OrganizationalBrandingRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go new file mode 100644 index 00000000..8d0985f3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go @@ -0,0 +1,296 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// OutlookCategoryRequestBuilder is request builder for OutlookCategory +type OutlookCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookCategoryRequest +func (b *OutlookCategoryRequestBuilder) Request() *OutlookCategoryRequest { + return &OutlookCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookCategoryRequest is request for OutlookCategory +type OutlookCategoryRequest struct{ BaseRequest } + +// Get performs GET request for OutlookCategory +func (r *OutlookCategoryRequest) Get(ctx context.Context) (resObj *OutlookCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookCategory +func (r *OutlookCategoryRequest) Update(ctx context.Context, reqObj *OutlookCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookCategory +func (r *OutlookCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OutlookItemRequestBuilder is request builder for OutlookItem +type OutlookItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookItemRequest +func (b *OutlookItemRequestBuilder) Request() *OutlookItemRequest { + return &OutlookItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookItemRequest is request for OutlookItem +type OutlookItemRequest struct{ BaseRequest } + +// Get performs GET request for OutlookItem +func (r *OutlookItemRequest) Get(ctx context.Context) (resObj *OutlookItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookItem +func (r *OutlookItemRequest) Update(ctx context.Context, reqObj *OutlookItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookItem +func (r *OutlookItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OutlookTaskRequestBuilder is request builder for OutlookTask +type OutlookTaskRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookTaskRequest +func (b *OutlookTaskRequestBuilder) Request() *OutlookTaskRequest { + return &OutlookTaskRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookTaskRequest is request for OutlookTask +type OutlookTaskRequest struct{ BaseRequest } + +// Get performs GET request for OutlookTask +func (r *OutlookTaskRequest) Get(ctx context.Context) (resObj *OutlookTask, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookTask +func (r *OutlookTaskRequest) Update(ctx context.Context, reqObj *OutlookTask) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookTask +func (r *OutlookTaskRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OutlookTaskFolderRequestBuilder is request builder for OutlookTaskFolder +type OutlookTaskFolderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookTaskFolderRequest +func (b *OutlookTaskFolderRequestBuilder) Request() *OutlookTaskFolderRequest { + return &OutlookTaskFolderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookTaskFolderRequest is request for OutlookTaskFolder +type OutlookTaskFolderRequest struct{ BaseRequest } + +// Get performs GET request for OutlookTaskFolder +func (r *OutlookTaskFolderRequest) Get(ctx context.Context) (resObj *OutlookTaskFolder, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookTaskFolder +func (r *OutlookTaskFolderRequest) Update(ctx context.Context, reqObj *OutlookTaskFolder) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookTaskFolder +func (r *OutlookTaskFolderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OutlookTaskGroupRequestBuilder is request builder for OutlookTaskGroup +type OutlookTaskGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookTaskGroupRequest +func (b *OutlookTaskGroupRequestBuilder) Request() *OutlookTaskGroupRequest { + return &OutlookTaskGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookTaskGroupRequest is request for OutlookTaskGroup +type OutlookTaskGroupRequest struct{ BaseRequest } + +// Get performs GET request for OutlookTaskGroup +func (r *OutlookTaskGroupRequest) Get(ctx context.Context) (resObj *OutlookTaskGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookTaskGroup +func (r *OutlookTaskGroupRequest) Update(ctx context.Context, reqObj *OutlookTaskGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookTaskGroup +func (r *OutlookTaskGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// OutlookUserRequestBuilder is request builder for OutlookUser +type OutlookUserRequestBuilder struct{ BaseRequestBuilder } + +// Request returns OutlookUserRequest +func (b *OutlookUserRequestBuilder) Request() *OutlookUserRequest { + return &OutlookUserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// OutlookUserRequest is request for OutlookUser +type OutlookUserRequest struct{ BaseRequest } + +// Get performs GET request for OutlookUser +func (r *OutlookUserRequest) Get(ctx context.Context) (resObj *OutlookUser, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for OutlookUser +func (r *OutlookUserRequest) Update(ctx context.Context, reqObj *OutlookUser) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for OutlookUser +func (r *OutlookUserRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type OutlookTaskCompleteRequestBuilder struct{ BaseRequestBuilder } + +// Complete action undocumented +func (b *OutlookTaskRequestBuilder) Complete(reqObj *OutlookTaskCompleteRequestParameter) *OutlookTaskCompleteRequestBuilder { + bb := &OutlookTaskCompleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/complete" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type OutlookTaskCompleteRequest struct{ BaseRequest } + +// +func (b *OutlookTaskCompleteRequestBuilder) Request() *OutlookTaskCompleteRequest { + return &OutlookTaskCompleteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *OutlookTaskCompleteRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []OutlookTask + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []OutlookTask + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *OutlookTaskCompleteRequest) PostN(ctx context.Context, n int) ([]OutlookTask, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *OutlookTaskCompleteRequest) Post(ctx context.Context) ([]OutlookTask, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go new file mode 100644 index 00000000..65a87c50 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go @@ -0,0 +1,119 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ParticipantRequestBuilder is request builder for Participant +type ParticipantRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ParticipantRequest +func (b *ParticipantRequestBuilder) Request() *ParticipantRequest { + return &ParticipantRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ParticipantRequest is request for Participant +type ParticipantRequest struct{ BaseRequest } + +// Get performs GET request for Participant +func (r *ParticipantRequest) Get(ctx context.Context) (resObj *Participant, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Participant +func (r *ParticipantRequest) Update(ctx context.Context, reqObj *Participant) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Participant +func (r *ParticipantRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ParticipantCollectionInviteRequestBuilder struct{ BaseRequestBuilder } + +// Invite action undocumented +func (b *CallParticipantsCollectionRequestBuilder) Invite(reqObj *ParticipantCollectionInviteRequestParameter) *ParticipantCollectionInviteRequestBuilder { + bb := &ParticipantCollectionInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/invite" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ParticipantCollectionInviteRequest struct{ BaseRequest } + +// +func (b *ParticipantCollectionInviteRequestBuilder) Request() *ParticipantCollectionInviteRequest { + return &ParticipantCollectionInviteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ParticipantCollectionInviteRequest) Post(ctx context.Context) (resObj *InviteParticipantsOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ParticipantCollectionMuteAllRequestBuilder struct{ BaseRequestBuilder } + +// MuteAll action undocumented +func (b *CallParticipantsCollectionRequestBuilder) MuteAll(reqObj *ParticipantCollectionMuteAllRequestParameter) *ParticipantCollectionMuteAllRequestBuilder { + bb := &ParticipantCollectionMuteAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/muteAll" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ParticipantCollectionMuteAllRequest struct{ BaseRequest } + +// +func (b *ParticipantCollectionMuteAllRequestBuilder) Request() *ParticipantCollectionMuteAllRequest { + return &ParticipantCollectionMuteAllRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ParticipantCollectionMuteAllRequest) Post(ctx context.Context) (resObj *MuteParticipantsOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ParticipantMuteRequestBuilder struct{ BaseRequestBuilder } + +// Mute action undocumented +func (b *ParticipantRequestBuilder) Mute(reqObj *ParticipantMuteRequestParameter) *ParticipantMuteRequestBuilder { + bb := &ParticipantMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mute" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ParticipantMuteRequest struct{ BaseRequest } + +// +func (b *ParticipantMuteRequestBuilder) Request() *ParticipantMuteRequest { + return &ParticipantMuteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ParticipantMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PayloadResponseRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go new file mode 100644 index 00000000..58bdbebc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PaymentMethodRequestBuilder is request builder for PaymentMethod +type PaymentMethodRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PaymentMethodRequest +func (b *PaymentMethodRequestBuilder) Request() *PaymentMethodRequest { + return &PaymentMethodRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PaymentMethodRequest is request for PaymentMethod +type PaymentMethodRequest struct{ BaseRequest } + +// Get performs GET request for PaymentMethod +func (r *PaymentMethodRequest) Get(ctx context.Context) (resObj *PaymentMethod, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PaymentMethod +func (r *PaymentMethodRequest) Update(ctx context.Context, reqObj *PaymentMethod) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PaymentMethod +func (r *PaymentMethodRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PaymentTermRequestBuilder is request builder for PaymentTerm +type PaymentTermRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PaymentTermRequest +func (b *PaymentTermRequestBuilder) Request() *PaymentTermRequest { + return &PaymentTermRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PaymentTermRequest is request for PaymentTerm +type PaymentTermRequest struct{ BaseRequest } + +// Get performs GET request for PaymentTerm +func (r *PaymentTermRequest) Get(ctx context.Context) (resObj *PaymentTerm, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PaymentTerm +func (r *PaymentTermRequest) Update(ctx context.Context, reqObj *PaymentTerm) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PaymentTerm +func (r *PaymentTermRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go new file mode 100644 index 00000000..4b745a95 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go @@ -0,0 +1,131 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PermissionRequestBuilder is request builder for Permission +type PermissionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PermissionRequest +func (b *PermissionRequestBuilder) Request() *PermissionRequest { + return &PermissionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PermissionRequest is request for Permission +type PermissionRequest struct{ BaseRequest } + +// Get performs GET request for Permission +func (r *PermissionRequest) Get(ctx context.Context) (resObj *Permission, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Permission +func (r *PermissionRequest) Update(ctx context.Context, reqObj *Permission) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Permission +func (r *PermissionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type PermissionGrantRequestBuilder struct{ BaseRequestBuilder } + +// Grant action undocumented +func (b *PermissionRequestBuilder) Grant(reqObj *PermissionGrantRequestParameter) *PermissionGrantRequestBuilder { + bb := &PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/grant" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PermissionGrantRequest struct{ BaseRequest } + +// +func (b *PermissionGrantRequestBuilder) Request() *PermissionGrantRequest { + return &PermissionGrantRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PermissionGrantRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Permission + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Permission + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *PermissionGrantRequest) PostN(ctx context.Context, n int) ([]Permission, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *PermissionGrantRequest) Post(ctx context.Context) ([]Permission, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go new file mode 100644 index 00000000..ed29abd3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go @@ -0,0 +1,170 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PersonRequestBuilder is request builder for Person +type PersonRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PersonRequest +func (b *PersonRequestBuilder) Request() *PersonRequest { + return &PersonRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PersonRequest is request for Person +type PersonRequest struct{ BaseRequest } + +// Get performs GET request for Person +func (r *PersonRequest) Get(ctx context.Context) (resObj *Person, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Person +func (r *PersonRequest) Update(ctx context.Context, reqObj *Person) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Person +func (r *PersonRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PersonAnniversaryRequestBuilder is request builder for PersonAnniversary +type PersonAnniversaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PersonAnniversaryRequest +func (b *PersonAnniversaryRequestBuilder) Request() *PersonAnniversaryRequest { + return &PersonAnniversaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PersonAnniversaryRequest is request for PersonAnniversary +type PersonAnniversaryRequest struct{ BaseRequest } + +// Get performs GET request for PersonAnniversary +func (r *PersonAnniversaryRequest) Get(ctx context.Context) (resObj *PersonAnniversary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PersonAnniversary +func (r *PersonAnniversaryRequest) Update(ctx context.Context, reqObj *PersonAnniversary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PersonAnniversary +func (r *PersonAnniversaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PersonInterestRequestBuilder is request builder for PersonInterest +type PersonInterestRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PersonInterestRequest +func (b *PersonInterestRequestBuilder) Request() *PersonInterestRequest { + return &PersonInterestRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PersonInterestRequest is request for PersonInterest +type PersonInterestRequest struct{ BaseRequest } + +// Get performs GET request for PersonInterest +func (r *PersonInterestRequest) Get(ctx context.Context) (resObj *PersonInterest, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PersonInterest +func (r *PersonInterestRequest) Update(ctx context.Context, reqObj *PersonInterest) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PersonInterest +func (r *PersonInterestRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PersonNameRequestBuilder is request builder for PersonName +type PersonNameRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PersonNameRequest +func (b *PersonNameRequestBuilder) Request() *PersonNameRequest { + return &PersonNameRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PersonNameRequest is request for PersonName +type PersonNameRequest struct{ BaseRequest } + +// Get performs GET request for PersonName +func (r *PersonNameRequest) Get(ctx context.Context) (resObj *PersonName, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PersonName +func (r *PersonNameRequest) Update(ctx context.Context, reqObj *PersonName) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PersonName +func (r *PersonNameRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PersonWebsiteRequestBuilder is request builder for PersonWebsite +type PersonWebsiteRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PersonWebsiteRequest +func (b *PersonWebsiteRequestBuilder) Request() *PersonWebsiteRequest { + return &PersonWebsiteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PersonWebsiteRequest is request for PersonWebsite +type PersonWebsiteRequest struct{ BaseRequest } + +// Get performs GET request for PersonWebsite +func (r *PersonWebsiteRequest) Get(ctx context.Context) (resObj *PersonWebsite, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PersonWebsite +func (r *PersonWebsiteRequest) Update(ctx context.Context, reqObj *PersonWebsite) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PersonWebsite +func (r *PersonWebsiteRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PictureRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PictureRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PlaceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PlaceRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go new file mode 100644 index 00000000..2b352565 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go @@ -0,0 +1,401 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PlannerRequestBuilder is request builder for Planner +type PlannerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerRequest +func (b *PlannerRequestBuilder) Request() *PlannerRequest { + return &PlannerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerRequest is request for Planner +type PlannerRequest struct{ BaseRequest } + +// Get performs GET request for Planner +func (r *PlannerRequest) Get(ctx context.Context) (resObj *Planner, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Planner +func (r *PlannerRequest) Update(ctx context.Context, reqObj *Planner) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Planner +func (r *PlannerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerAssignedToTaskBoardTaskFormatRequestBuilder is request builder for PlannerAssignedToTaskBoardTaskFormat +type PlannerAssignedToTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerAssignedToTaskBoardTaskFormatRequest +func (b *PlannerAssignedToTaskBoardTaskFormatRequestBuilder) Request() *PlannerAssignedToTaskBoardTaskFormatRequest { + return &PlannerAssignedToTaskBoardTaskFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerAssignedToTaskBoardTaskFormatRequest is request for PlannerAssignedToTaskBoardTaskFormat +type PlannerAssignedToTaskBoardTaskFormatRequest struct{ BaseRequest } + +// Get performs GET request for PlannerAssignedToTaskBoardTaskFormat +func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerAssignedToTaskBoardTaskFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerAssignedToTaskBoardTaskFormat +func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerAssignedToTaskBoardTaskFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerAssignedToTaskBoardTaskFormat +func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerBucketRequestBuilder is request builder for PlannerBucket +type PlannerBucketRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerBucketRequest +func (b *PlannerBucketRequestBuilder) Request() *PlannerBucketRequest { + return &PlannerBucketRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerBucketRequest is request for PlannerBucket +type PlannerBucketRequest struct{ BaseRequest } + +// Get performs GET request for PlannerBucket +func (r *PlannerBucketRequest) Get(ctx context.Context) (resObj *PlannerBucket, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerBucket +func (r *PlannerBucketRequest) Update(ctx context.Context, reqObj *PlannerBucket) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerBucket +func (r *PlannerBucketRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerBucketTaskBoardTaskFormatRequestBuilder is request builder for PlannerBucketTaskBoardTaskFormat +type PlannerBucketTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerBucketTaskBoardTaskFormatRequest +func (b *PlannerBucketTaskBoardTaskFormatRequestBuilder) Request() *PlannerBucketTaskBoardTaskFormatRequest { + return &PlannerBucketTaskBoardTaskFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerBucketTaskBoardTaskFormatRequest is request for PlannerBucketTaskBoardTaskFormat +type PlannerBucketTaskBoardTaskFormatRequest struct{ BaseRequest } + +// Get performs GET request for PlannerBucketTaskBoardTaskFormat +func (r *PlannerBucketTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerBucketTaskBoardTaskFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerBucketTaskBoardTaskFormat +func (r *PlannerBucketTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerBucketTaskBoardTaskFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerBucketTaskBoardTaskFormat +func (r *PlannerBucketTaskBoardTaskFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerDeltaRequestBuilder is request builder for PlannerDelta +type PlannerDeltaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerDeltaRequest +func (b *PlannerDeltaRequestBuilder) Request() *PlannerDeltaRequest { + return &PlannerDeltaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerDeltaRequest is request for PlannerDelta +type PlannerDeltaRequest struct{ BaseRequest } + +// Get performs GET request for PlannerDelta +func (r *PlannerDeltaRequest) Get(ctx context.Context) (resObj *PlannerDelta, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerDelta +func (r *PlannerDeltaRequest) Update(ctx context.Context, reqObj *PlannerDelta) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerDelta +func (r *PlannerDeltaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerGroupRequestBuilder is request builder for PlannerGroup +type PlannerGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerGroupRequest +func (b *PlannerGroupRequestBuilder) Request() *PlannerGroupRequest { + return &PlannerGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerGroupRequest is request for PlannerGroup +type PlannerGroupRequest struct{ BaseRequest } + +// Get performs GET request for PlannerGroup +func (r *PlannerGroupRequest) Get(ctx context.Context) (resObj *PlannerGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerGroup +func (r *PlannerGroupRequest) Update(ctx context.Context, reqObj *PlannerGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerGroup +func (r *PlannerGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerPlanRequestBuilder is request builder for PlannerPlan +type PlannerPlanRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerPlanRequest +func (b *PlannerPlanRequestBuilder) Request() *PlannerPlanRequest { + return &PlannerPlanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerPlanRequest is request for PlannerPlan +type PlannerPlanRequest struct{ BaseRequest } + +// Get performs GET request for PlannerPlan +func (r *PlannerPlanRequest) Get(ctx context.Context) (resObj *PlannerPlan, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerPlan +func (r *PlannerPlanRequest) Update(ctx context.Context, reqObj *PlannerPlan) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerPlan +func (r *PlannerPlanRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerPlanDetailsRequestBuilder is request builder for PlannerPlanDetails +type PlannerPlanDetailsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerPlanDetailsRequest +func (b *PlannerPlanDetailsRequestBuilder) Request() *PlannerPlanDetailsRequest { + return &PlannerPlanDetailsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerPlanDetailsRequest is request for PlannerPlanDetails +type PlannerPlanDetailsRequest struct{ BaseRequest } + +// Get performs GET request for PlannerPlanDetails +func (r *PlannerPlanDetailsRequest) Get(ctx context.Context) (resObj *PlannerPlanDetails, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerPlanDetails +func (r *PlannerPlanDetailsRequest) Update(ctx context.Context, reqObj *PlannerPlanDetails) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerPlanDetails +func (r *PlannerPlanDetailsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerProgressTaskBoardTaskFormatRequestBuilder is request builder for PlannerProgressTaskBoardTaskFormat +type PlannerProgressTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerProgressTaskBoardTaskFormatRequest +func (b *PlannerProgressTaskBoardTaskFormatRequestBuilder) Request() *PlannerProgressTaskBoardTaskFormatRequest { + return &PlannerProgressTaskBoardTaskFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerProgressTaskBoardTaskFormatRequest is request for PlannerProgressTaskBoardTaskFormat +type PlannerProgressTaskBoardTaskFormatRequest struct{ BaseRequest } + +// Get performs GET request for PlannerProgressTaskBoardTaskFormat +func (r *PlannerProgressTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerProgressTaskBoardTaskFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerProgressTaskBoardTaskFormat +func (r *PlannerProgressTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerProgressTaskBoardTaskFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerProgressTaskBoardTaskFormat +func (r *PlannerProgressTaskBoardTaskFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerTaskRequestBuilder is request builder for PlannerTask +type PlannerTaskRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerTaskRequest +func (b *PlannerTaskRequestBuilder) Request() *PlannerTaskRequest { + return &PlannerTaskRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerTaskRequest is request for PlannerTask +type PlannerTaskRequest struct{ BaseRequest } + +// Get performs GET request for PlannerTask +func (r *PlannerTaskRequest) Get(ctx context.Context) (resObj *PlannerTask, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerTask +func (r *PlannerTaskRequest) Update(ctx context.Context, reqObj *PlannerTask) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerTask +func (r *PlannerTaskRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerTaskDetailsRequestBuilder is request builder for PlannerTaskDetails +type PlannerTaskDetailsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerTaskDetailsRequest +func (b *PlannerTaskDetailsRequestBuilder) Request() *PlannerTaskDetailsRequest { + return &PlannerTaskDetailsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerTaskDetailsRequest is request for PlannerTaskDetails +type PlannerTaskDetailsRequest struct{ BaseRequest } + +// Get performs GET request for PlannerTaskDetails +func (r *PlannerTaskDetailsRequest) Get(ctx context.Context) (resObj *PlannerTaskDetails, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerTaskDetails +func (r *PlannerTaskDetailsRequest) Update(ctx context.Context, reqObj *PlannerTaskDetails) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerTaskDetails +func (r *PlannerTaskDetailsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PlannerUserRequestBuilder is request builder for PlannerUser +type PlannerUserRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PlannerUserRequest +func (b *PlannerUserRequestBuilder) Request() *PlannerUserRequest { + return &PlannerUserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PlannerUserRequest is request for PlannerUser +type PlannerUserRequest struct{ BaseRequest } + +// Get performs GET request for PlannerUser +func (r *PlannerUserRequest) Get(ctx context.Context) (resObj *PlannerUser, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PlannerUser +func (r *PlannerUserRequest) Update(ctx context.Context, reqObj *PlannerUser) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PlannerUser +func (r *PlannerUserRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go new file mode 100644 index 00000000..c18de810 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go @@ -0,0 +1,256 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// PolicyRequestBuilder is request builder for Policy +type PolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PolicyRequest +func (b *PolicyRequestBuilder) Request() *PolicyRequest { + return &PolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PolicyRequest is request for Policy +type PolicyRequest struct{ BaseRequest } + +// Get performs GET request for Policy +func (r *PolicyRequest) Get(ctx context.Context) (resObj *Policy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Policy +func (r *PolicyRequest) Update(ctx context.Context, reqObj *Policy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Policy +func (r *PolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PolicySetRequestBuilder is request builder for PolicySet +type PolicySetRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PolicySetRequest +func (b *PolicySetRequestBuilder) Request() *PolicySetRequest { + return &PolicySetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PolicySetRequest is request for PolicySet +type PolicySetRequest struct{ BaseRequest } + +// Get performs GET request for PolicySet +func (r *PolicySetRequest) Get(ctx context.Context) (resObj *PolicySet, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PolicySet +func (r *PolicySetRequest) Update(ctx context.Context, reqObj *PolicySet) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PolicySet +func (r *PolicySetRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PolicySetAssignmentRequestBuilder is request builder for PolicySetAssignment +type PolicySetAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PolicySetAssignmentRequest +func (b *PolicySetAssignmentRequestBuilder) Request() *PolicySetAssignmentRequest { + return &PolicySetAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PolicySetAssignmentRequest is request for PolicySetAssignment +type PolicySetAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for PolicySetAssignment +func (r *PolicySetAssignmentRequest) Get(ctx context.Context) (resObj *PolicySetAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PolicySetAssignment +func (r *PolicySetAssignmentRequest) Update(ctx context.Context, reqObj *PolicySetAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PolicySetAssignment +func (r *PolicySetAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PolicySetItemRequestBuilder is request builder for PolicySetItem +type PolicySetItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PolicySetItemRequest +func (b *PolicySetItemRequestBuilder) Request() *PolicySetItemRequest { + return &PolicySetItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PolicySetItemRequest is request for PolicySetItem +type PolicySetItemRequest struct{ BaseRequest } + +// Get performs GET request for PolicySetItem +func (r *PolicySetItemRequest) Get(ctx context.Context) (resObj *PolicySetItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PolicySetItem +func (r *PolicySetItemRequest) Update(ctx context.Context, reqObj *PolicySetItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PolicySetItem +func (r *PolicySetItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type PolicySetCollectionGetPolicySetsRequestBuilder struct{ BaseRequestBuilder } + +// GetPolicySets action undocumented +func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) GetPolicySets(reqObj *PolicySetCollectionGetPolicySetsRequestParameter) *PolicySetCollectionGetPolicySetsRequestBuilder { + bb := &PolicySetCollectionGetPolicySetsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getPolicySets" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PolicySetCollectionGetPolicySetsRequest struct{ BaseRequest } + +// +func (b *PolicySetCollectionGetPolicySetsRequestBuilder) Request() *PolicySetCollectionGetPolicySetsRequest { + return &PolicySetCollectionGetPolicySetsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PolicySetCollectionGetPolicySetsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySet, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []PolicySet + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []PolicySet + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *PolicySetCollectionGetPolicySetsRequest) PostN(ctx context.Context, n int) ([]PolicySet, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *PolicySetCollectionGetPolicySetsRequest) Post(ctx context.Context) ([]PolicySet, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type PolicySetUpdateRequestBuilder struct{ BaseRequestBuilder } + +// Update action undocumented +func (b *PolicySetRequestBuilder) Update(reqObj *PolicySetUpdateRequestParameter) *PolicySetUpdateRequestBuilder { + bb := &PolicySetUpdateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/update" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PolicySetUpdateRequest struct{ BaseRequest } + +// +func (b *PolicySetUpdateRequestBuilder) Request() *PolicySetUpdateRequest { + return &PolicySetUpdateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PolicySetUpdateRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go new file mode 100644 index 00000000..654ea0ff --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go @@ -0,0 +1,90 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PostRequestBuilder is request builder for Post +type PostRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PostRequest +func (b *PostRequestBuilder) Request() *PostRequest { + return &PostRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PostRequest is request for Post +type PostRequest struct{ BaseRequest } + +// Get performs GET request for Post +func (r *PostRequest) Get(ctx context.Context) (resObj *Post, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Post +func (r *PostRequest) Update(ctx context.Context, reqObj *Post) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Post +func (r *PostRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type PostReplyRequestBuilder struct{ BaseRequestBuilder } + +// Reply action undocumented +func (b *PostRequestBuilder) Reply(reqObj *PostReplyRequestParameter) *PostReplyRequestBuilder { + bb := &PostReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PostReplyRequest struct{ BaseRequest } + +// +func (b *PostReplyRequestBuilder) Request() *PostReplyRequest { + return &PostReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PostReplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type PostForwardRequestBuilder struct{ BaseRequestBuilder } + +// Forward action undocumented +func (b *PostRequestBuilder) Forward(reqObj *PostForwardRequestParameter) *PostForwardRequestBuilder { + bb := &PostForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/forward" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PostForwardRequest struct{ BaseRequest } + +// +func (b *PostForwardRequestBuilder) Request() *PostForwardRequest { + return &PostForwardRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PostForwardRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/PresenceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/PresenceRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go new file mode 100644 index 00000000..6964f237 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go @@ -0,0 +1,437 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PrivilegedAccessRequestBuilder is request builder for PrivilegedAccess +type PrivilegedAccessRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedAccessRequest +func (b *PrivilegedAccessRequestBuilder) Request() *PrivilegedAccessRequest { + return &PrivilegedAccessRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedAccessRequest is request for PrivilegedAccess +type PrivilegedAccessRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedAccess +func (r *PrivilegedAccessRequest) Get(ctx context.Context) (resObj *PrivilegedAccess, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedAccess +func (r *PrivilegedAccessRequest) Update(ctx context.Context, reqObj *PrivilegedAccess) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedAccess +func (r *PrivilegedAccessRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedApprovalRequestBuilder is request builder for PrivilegedApproval +type PrivilegedApprovalRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedApprovalRequest +func (b *PrivilegedApprovalRequestBuilder) Request() *PrivilegedApprovalRequest { + return &PrivilegedApprovalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedApprovalRequest is request for PrivilegedApproval +type PrivilegedApprovalRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedApproval +func (r *PrivilegedApprovalRequest) Get(ctx context.Context) (resObj *PrivilegedApproval, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedApproval +func (r *PrivilegedApprovalRequest) Update(ctx context.Context, reqObj *PrivilegedApproval) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedApproval +func (r *PrivilegedApprovalRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedOperationEventRequestBuilder is request builder for PrivilegedOperationEvent +type PrivilegedOperationEventRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedOperationEventRequest +func (b *PrivilegedOperationEventRequestBuilder) Request() *PrivilegedOperationEventRequest { + return &PrivilegedOperationEventRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedOperationEventRequest is request for PrivilegedOperationEvent +type PrivilegedOperationEventRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedOperationEvent +func (r *PrivilegedOperationEventRequest) Get(ctx context.Context) (resObj *PrivilegedOperationEvent, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedOperationEvent +func (r *PrivilegedOperationEventRequest) Update(ctx context.Context, reqObj *PrivilegedOperationEvent) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedOperationEvent +func (r *PrivilegedOperationEventRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedRoleRequestBuilder is request builder for PrivilegedRole +type PrivilegedRoleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedRoleRequest +func (b *PrivilegedRoleRequestBuilder) Request() *PrivilegedRoleRequest { + return &PrivilegedRoleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedRoleRequest is request for PrivilegedRole +type PrivilegedRoleRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedRole +func (r *PrivilegedRoleRequest) Get(ctx context.Context) (resObj *PrivilegedRole, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedRole +func (r *PrivilegedRoleRequest) Update(ctx context.Context, reqObj *PrivilegedRole) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedRole +func (r *PrivilegedRoleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedRoleAssignmentRequestBuilder is request builder for PrivilegedRoleAssignment +type PrivilegedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedRoleAssignmentRequest +func (b *PrivilegedRoleAssignmentRequestBuilder) Request() *PrivilegedRoleAssignmentRequest { + return &PrivilegedRoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedRoleAssignmentRequest is request for PrivilegedRoleAssignment +type PrivilegedRoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedRoleAssignment +func (r *PrivilegedRoleAssignmentRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedRoleAssignment +func (r *PrivilegedRoleAssignmentRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedRoleAssignment +func (r *PrivilegedRoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedRoleAssignmentRequestObjectRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject +type PrivilegedRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedRoleAssignmentRequestObjectRequest +func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectRequest { + return &PrivilegedRoleAssignmentRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedRoleAssignmentRequestObjectRequest is request for PrivilegedRoleAssignmentRequestObject +type PrivilegedRoleAssignmentRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedRoleAssignmentRequestObject +func (r *PrivilegedRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedRoleAssignmentRequestObject +func (r *PrivilegedRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedRoleAssignmentRequestObject +func (r *PrivilegedRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedRoleSettingsRequestBuilder is request builder for PrivilegedRoleSettings +type PrivilegedRoleSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedRoleSettingsRequest +func (b *PrivilegedRoleSettingsRequestBuilder) Request() *PrivilegedRoleSettingsRequest { + return &PrivilegedRoleSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedRoleSettingsRequest is request for PrivilegedRoleSettings +type PrivilegedRoleSettingsRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedRoleSettings +func (r *PrivilegedRoleSettingsRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedRoleSettings +func (r *PrivilegedRoleSettingsRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedRoleSettings +func (r *PrivilegedRoleSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedRoleSummaryRequestBuilder is request builder for PrivilegedRoleSummary +type PrivilegedRoleSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedRoleSummaryRequest +func (b *PrivilegedRoleSummaryRequestBuilder) Request() *PrivilegedRoleSummaryRequest { + return &PrivilegedRoleSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedRoleSummaryRequest is request for PrivilegedRoleSummary +type PrivilegedRoleSummaryRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedRoleSummary +func (r *PrivilegedRoleSummaryRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedRoleSummary +func (r *PrivilegedRoleSummaryRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedRoleSummary +func (r *PrivilegedRoleSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PrivilegedSignupStatusRequestBuilder is request builder for PrivilegedSignupStatus +type PrivilegedSignupStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PrivilegedSignupStatusRequest +func (b *PrivilegedSignupStatusRequestBuilder) Request() *PrivilegedSignupStatusRequest { + return &PrivilegedSignupStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PrivilegedSignupStatusRequest is request for PrivilegedSignupStatus +type PrivilegedSignupStatusRequest struct{ BaseRequest } + +// Get performs GET request for PrivilegedSignupStatus +func (r *PrivilegedSignupStatusRequest) Get(ctx context.Context) (resObj *PrivilegedSignupStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PrivilegedSignupStatus +func (r *PrivilegedSignupStatusRequest) Update(ctx context.Context, reqObj *PrivilegedSignupStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PrivilegedSignupStatus +func (r *PrivilegedSignupStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type PrivilegedRoleSelfActivateRequestBuilder struct{ BaseRequestBuilder } + +// SelfActivate action undocumented +func (b *PrivilegedRoleRequestBuilder) SelfActivate(reqObj *PrivilegedRoleSelfActivateRequestParameter) *PrivilegedRoleSelfActivateRequestBuilder { + bb := &PrivilegedRoleSelfActivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/selfActivate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PrivilegedRoleSelfActivateRequest struct{ BaseRequest } + +// +func (b *PrivilegedRoleSelfActivateRequestBuilder) Request() *PrivilegedRoleSelfActivateRequest { + return &PrivilegedRoleSelfActivateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PrivilegedRoleSelfActivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type PrivilegedRoleSelfDeactivateRequestBuilder struct{ BaseRequestBuilder } + +// SelfDeactivate action undocumented +func (b *PrivilegedRoleRequestBuilder) SelfDeactivate(reqObj *PrivilegedRoleSelfDeactivateRequestParameter) *PrivilegedRoleSelfDeactivateRequestBuilder { + bb := &PrivilegedRoleSelfDeactivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/selfDeactivate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PrivilegedRoleSelfDeactivateRequest struct{ BaseRequest } + +// +func (b *PrivilegedRoleSelfDeactivateRequestBuilder) Request() *PrivilegedRoleSelfDeactivateRequest { + return &PrivilegedRoleSelfDeactivateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PrivilegedRoleSelfDeactivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type PrivilegedRoleAssignmentMakePermanentRequestBuilder struct{ BaseRequestBuilder } + +// MakePermanent action undocumented +func (b *PrivilegedRoleAssignmentRequestBuilder) MakePermanent(reqObj *PrivilegedRoleAssignmentMakePermanentRequestParameter) *PrivilegedRoleAssignmentMakePermanentRequestBuilder { + bb := &PrivilegedRoleAssignmentMakePermanentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/makePermanent" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PrivilegedRoleAssignmentMakePermanentRequest struct{ BaseRequest } + +// +func (b *PrivilegedRoleAssignmentMakePermanentRequestBuilder) Request() *PrivilegedRoleAssignmentMakePermanentRequest { + return &PrivilegedRoleAssignmentMakePermanentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PrivilegedRoleAssignmentMakePermanentRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type PrivilegedRoleAssignmentMakeEligibleRequestBuilder struct{ BaseRequestBuilder } + +// MakeEligible action undocumented +func (b *PrivilegedRoleAssignmentRequestBuilder) MakeEligible(reqObj *PrivilegedRoleAssignmentMakeEligibleRequestParameter) *PrivilegedRoleAssignmentMakeEligibleRequestBuilder { + bb := &PrivilegedRoleAssignmentMakeEligibleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/makeEligible" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PrivilegedRoleAssignmentMakeEligibleRequest struct{ BaseRequest } + +// +func (b *PrivilegedRoleAssignmentMakeEligibleRequestBuilder) Request() *PrivilegedRoleAssignmentMakeEligibleRequest { + return &PrivilegedRoleAssignmentMakeEligibleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PrivilegedRoleAssignmentMakeEligibleRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *PrivilegedRoleAssignmentRequestObjectCancelRequestParameter) *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder { + bb := &PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PrivilegedRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest } + +// +func (b *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectCancelRequest { + return &PrivilegedRoleAssignmentRequestObjectCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PrivilegedRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go new file mode 100644 index 00000000..5648bc5c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ProfileRequestBuilder is request builder for Profile +type ProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProfileRequest +func (b *ProfileRequestBuilder) Request() *ProfileRequest { + return &ProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProfileRequest is request for Profile +type ProfileRequest struct{ BaseRequest } + +// Get performs GET request for Profile +func (r *ProfileRequest) Get(ctx context.Context) (resObj *Profile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Profile +func (r *ProfileRequest) Update(ctx context.Context, reqObj *Profile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Profile +func (r *ProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ProfilePhotoRequestBuilder is request builder for ProfilePhoto +type ProfilePhotoRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProfilePhotoRequest +func (b *ProfilePhotoRequestBuilder) Request() *ProfilePhotoRequest { + return &ProfilePhotoRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProfilePhotoRequest is request for ProfilePhoto +type ProfilePhotoRequest struct{ BaseRequest } + +// Get performs GET request for ProfilePhoto +func (r *ProfilePhotoRequest) Get(ctx context.Context) (resObj *ProfilePhoto, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ProfilePhoto +func (r *ProfilePhotoRequest) Update(ctx context.Context, reqObj *ProfilePhoto) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ProfilePhoto +func (r *ProfilePhotoRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go new file mode 100644 index 00000000..028e303c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ProgramRequestBuilder is request builder for Program +type ProgramRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProgramRequest +func (b *ProgramRequestBuilder) Request() *ProgramRequest { + return &ProgramRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProgramRequest is request for Program +type ProgramRequest struct{ BaseRequest } + +// Get performs GET request for Program +func (r *ProgramRequest) Get(ctx context.Context) (resObj *Program, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Program +func (r *ProgramRequest) Update(ctx context.Context, reqObj *Program) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Program +func (r *ProgramRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ProgramControlRequestBuilder is request builder for ProgramControl +type ProgramControlRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProgramControlRequest +func (b *ProgramControlRequestBuilder) Request() *ProgramControlRequest { + return &ProgramControlRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProgramControlRequest is request for ProgramControl +type ProgramControlRequest struct{ BaseRequest } + +// Get performs GET request for ProgramControl +func (r *ProgramControlRequest) Get(ctx context.Context) (resObj *ProgramControl, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ProgramControl +func (r *ProgramControlRequest) Update(ctx context.Context, reqObj *ProgramControl) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ProgramControl +func (r *ProgramControlRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ProgramControlTypeRequestBuilder is request builder for ProgramControlType +type ProgramControlTypeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ProgramControlTypeRequest +func (b *ProgramControlTypeRequestBuilder) Request() *ProgramControlTypeRequest { + return &ProgramControlTypeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ProgramControlTypeRequest is request for ProgramControlType +type ProgramControlTypeRequest struct{ BaseRequest } + +// Get performs GET request for ProgramControlType +func (r *ProgramControlTypeRequest) Get(ctx context.Context) (resObj *ProgramControlType, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ProgramControlType +func (r *ProgramControlTypeRequest) Update(ctx context.Context, reqObj *ProgramControlType) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ProgramControlType +func (r *ProgramControlTypeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProjectParticipationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProviderTenantSettingRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ProvisioningObjectSummaryRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go new file mode 100644 index 00000000..350c43ee --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PublishedResourceRequestBuilder is request builder for PublishedResource +type PublishedResourceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PublishedResourceRequest +func (b *PublishedResourceRequestBuilder) Request() *PublishedResourceRequest { + return &PublishedResourceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PublishedResourceRequest is request for PublishedResource +type PublishedResourceRequest struct{ BaseRequest } + +// Get performs GET request for PublishedResource +func (r *PublishedResourceRequest) Get(ctx context.Context) (resObj *PublishedResource, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PublishedResource +func (r *PublishedResourceRequest) Update(ctx context.Context, reqObj *PublishedResource) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PublishedResource +func (r *PublishedResourceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go new file mode 100644 index 00000000..196b3886 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go @@ -0,0 +1,97 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// PurchaseInvoiceRequestBuilder is request builder for PurchaseInvoice +type PurchaseInvoiceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PurchaseInvoiceRequest +func (b *PurchaseInvoiceRequestBuilder) Request() *PurchaseInvoiceRequest { + return &PurchaseInvoiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PurchaseInvoiceRequest is request for PurchaseInvoice +type PurchaseInvoiceRequest struct{ BaseRequest } + +// Get performs GET request for PurchaseInvoice +func (r *PurchaseInvoiceRequest) Get(ctx context.Context) (resObj *PurchaseInvoice, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PurchaseInvoice +func (r *PurchaseInvoiceRequest) Update(ctx context.Context, reqObj *PurchaseInvoice) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PurchaseInvoice +func (r *PurchaseInvoiceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// PurchaseInvoiceLineRequestBuilder is request builder for PurchaseInvoiceLine +type PurchaseInvoiceLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns PurchaseInvoiceLineRequest +func (b *PurchaseInvoiceLineRequestBuilder) Request() *PurchaseInvoiceLineRequest { + return &PurchaseInvoiceLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// PurchaseInvoiceLineRequest is request for PurchaseInvoiceLine +type PurchaseInvoiceLineRequest struct{ BaseRequest } + +// Get performs GET request for PurchaseInvoiceLine +func (r *PurchaseInvoiceLineRequest) Get(ctx context.Context) (resObj *PurchaseInvoiceLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for PurchaseInvoiceLine +func (r *PurchaseInvoiceLineRequest) Update(ctx context.Context, reqObj *PurchaseInvoiceLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for PurchaseInvoiceLine +func (r *PurchaseInvoiceLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type PurchaseInvoicePostRequestBuilder struct{ BaseRequestBuilder } + +// Post action undocumented +func (b *PurchaseInvoiceRequestBuilder) Post(reqObj *PurchaseInvoicePostRequestParameter) *PurchaseInvoicePostRequestBuilder { + bb := &PurchaseInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/post" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type PurchaseInvoicePostRequest struct{ BaseRequest } + +// +func (b *PurchaseInvoicePostRequestBuilder) Request() *PurchaseInvoicePostRequest { + return &PurchaseInvoicePostRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *PurchaseInvoicePostRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go new file mode 100644 index 00000000..4312d5a7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RbacApplicationRequestBuilder is request builder for RbacApplication +type RbacApplicationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RbacApplicationRequest +func (b *RbacApplicationRequestBuilder) Request() *RbacApplicationRequest { + return &RbacApplicationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RbacApplicationRequest is request for RbacApplication +type RbacApplicationRequest struct{ BaseRequest } + +// Get performs GET request for RbacApplication +func (r *RbacApplicationRequest) Get(ctx context.Context) (resObj *RbacApplication, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RbacApplication +func (r *RbacApplicationRequest) Update(ctx context.Context, reqObj *RbacApplication) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RbacApplication +func (r *RbacApplicationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go new file mode 100644 index 00000000..0b77c8e0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go @@ -0,0 +1,123 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RemoteActionAuditRequestBuilder is request builder for RemoteActionAudit +type RemoteActionAuditRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RemoteActionAuditRequest +func (b *RemoteActionAuditRequestBuilder) Request() *RemoteActionAuditRequest { + return &RemoteActionAuditRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RemoteActionAuditRequest is request for RemoteActionAudit +type RemoteActionAuditRequest struct{ BaseRequest } + +// Get performs GET request for RemoteActionAudit +func (r *RemoteActionAuditRequest) Get(ctx context.Context) (resObj *RemoteActionAudit, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RemoteActionAudit +func (r *RemoteActionAuditRequest) Update(ctx context.Context, reqObj *RemoteActionAudit) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RemoteActionAudit +func (r *RemoteActionAuditRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RemoteAssistancePartnerRequestBuilder is request builder for RemoteAssistancePartner +type RemoteAssistancePartnerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RemoteAssistancePartnerRequest +func (b *RemoteAssistancePartnerRequestBuilder) Request() *RemoteAssistancePartnerRequest { + return &RemoteAssistancePartnerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RemoteAssistancePartnerRequest is request for RemoteAssistancePartner +type RemoteAssistancePartnerRequest struct{ BaseRequest } + +// Get performs GET request for RemoteAssistancePartner +func (r *RemoteAssistancePartnerRequest) Get(ctx context.Context) (resObj *RemoteAssistancePartner, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RemoteAssistancePartner +func (r *RemoteAssistancePartnerRequest) Update(ctx context.Context, reqObj *RemoteAssistancePartner) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RemoteAssistancePartner +func (r *RemoteAssistancePartnerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type RemoteAssistancePartnerBeginOnboardingRequestBuilder struct{ BaseRequestBuilder } + +// BeginOnboarding action undocumented +func (b *RemoteAssistancePartnerRequestBuilder) BeginOnboarding(reqObj *RemoteAssistancePartnerBeginOnboardingRequestParameter) *RemoteAssistancePartnerBeginOnboardingRequestBuilder { + bb := &RemoteAssistancePartnerBeginOnboardingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/beginOnboarding" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RemoteAssistancePartnerBeginOnboardingRequest struct{ BaseRequest } + +// +func (b *RemoteAssistancePartnerBeginOnboardingRequestBuilder) Request() *RemoteAssistancePartnerBeginOnboardingRequest { + return &RemoteAssistancePartnerBeginOnboardingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RemoteAssistancePartnerBeginOnboardingRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type RemoteAssistancePartnerDisconnectRequestBuilder struct{ BaseRequestBuilder } + +// Disconnect action undocumented +func (b *RemoteAssistancePartnerRequestBuilder) Disconnect(reqObj *RemoteAssistancePartnerDisconnectRequestParameter) *RemoteAssistancePartnerDisconnectRequestBuilder { + bb := &RemoteAssistancePartnerDisconnectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/disconnect" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RemoteAssistancePartnerDisconnectRequest struct{ BaseRequest } + +// +func (b *RemoteAssistancePartnerDisconnectRequestBuilder) Request() *RemoteAssistancePartnerDisconnectRequest { + return &RemoteAssistancePartnerDisconnectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RemoteAssistancePartnerDisconnectRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go new file mode 100644 index 00000000..5cf07e9d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ReportRootRequestBuilder is request builder for ReportRoot +type ReportRootRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ReportRootRequest +func (b *ReportRootRequestBuilder) Request() *ReportRootRequest { + return &ReportRootRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ReportRootRequest is request for ReportRoot +type ReportRootRequest struct{ BaseRequest } + +// Get performs GET request for ReportRoot +func (r *ReportRootRequest) Get(ctx context.Context) (resObj *ReportRoot, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ReportRoot +func (r *ReportRootRequest) Update(ctx context.Context, reqObj *ReportRoot) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ReportRoot +func (r *ReportRootRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go new file mode 100644 index 00000000..7238961b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go @@ -0,0 +1,90 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RequestObjectRequestBuilder is request builder for RequestObject +type RequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RequestObjectRequest +func (b *RequestObjectRequestBuilder) Request() *RequestObjectRequest { + return &RequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RequestObjectRequest is request for RequestObject +type RequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for RequestObject +func (r *RequestObjectRequest) Get(ctx context.Context) (resObj *RequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RequestObject +func (r *RequestObjectRequest) Update(ctx context.Context, reqObj *RequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RequestObject +func (r *RequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type RequestObjectStopRequestBuilder struct{ BaseRequestBuilder } + +// Stop action undocumented +func (b *RequestObjectRequestBuilder) Stop(reqObj *RequestObjectStopRequestParameter) *RequestObjectStopRequestBuilder { + bb := &RequestObjectStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stop" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RequestObjectStopRequest struct{ BaseRequest } + +// +func (b *RequestObjectStopRequestBuilder) Request() *RequestObjectStopRequest { + return &RequestObjectStopRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RequestObjectStopRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type RequestObjectRecordDecisionsRequestBuilder struct{ BaseRequestBuilder } + +// RecordDecisions action undocumented +func (b *RequestObjectRequestBuilder) RecordDecisions(reqObj *RequestObjectRecordDecisionsRequestParameter) *RequestObjectRecordDecisionsRequestBuilder { + bb := &RequestObjectRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/recordDecisions" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RequestObjectRecordDecisionsRequest struct{ BaseRequest } + +// +func (b *RequestObjectRecordDecisionsRequestBuilder) Request() *RequestObjectRecordDecisionsRequest { + return &RequestObjectRecordDecisionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RequestObjectRecordDecisionsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go new file mode 100644 index 00000000..66984dc9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ResourceOperationRequestBuilder is request builder for ResourceOperation +type ResourceOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ResourceOperationRequest +func (b *ResourceOperationRequestBuilder) Request() *ResourceOperationRequest { + return &ResourceOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ResourceOperationRequest is request for ResourceOperation +type ResourceOperationRequest struct{ BaseRequest } + +// Get performs GET request for ResourceOperation +func (r *ResourceOperationRequest) Get(ctx context.Context) (resObj *ResourceOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ResourceOperation +func (r *ResourceOperationRequest) Update(ctx context.Context, reqObj *ResourceOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ResourceOperation +func (r *ResourceOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ResourceSpecificPermissionGrantRequestBuilder is request builder for ResourceSpecificPermissionGrant +type ResourceSpecificPermissionGrantRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ResourceSpecificPermissionGrantRequest +func (b *ResourceSpecificPermissionGrantRequestBuilder) Request() *ResourceSpecificPermissionGrantRequest { + return &ResourceSpecificPermissionGrantRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ResourceSpecificPermissionGrantRequest is request for ResourceSpecificPermissionGrant +type ResourceSpecificPermissionGrantRequest struct{ BaseRequest } + +// Get performs GET request for ResourceSpecificPermissionGrant +func (r *ResourceSpecificPermissionGrantRequest) Get(ctx context.Context) (resObj *ResourceSpecificPermissionGrant, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ResourceSpecificPermissionGrant +func (r *ResourceSpecificPermissionGrantRequest) Update(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ResourceSpecificPermissionGrant +func (r *ResourceSpecificPermissionGrantRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go new file mode 100644 index 00000000..9170ff2d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RestrictedAppsViolationRequestBuilder is request builder for RestrictedAppsViolation +type RestrictedAppsViolationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RestrictedAppsViolationRequest +func (b *RestrictedAppsViolationRequestBuilder) Request() *RestrictedAppsViolationRequest { + return &RestrictedAppsViolationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RestrictedAppsViolationRequest is request for RestrictedAppsViolation +type RestrictedAppsViolationRequest struct{ BaseRequest } + +// Get performs GET request for RestrictedAppsViolation +func (r *RestrictedAppsViolationRequest) Get(ctx context.Context) (resObj *RestrictedAppsViolation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RestrictedAppsViolation +func (r *RestrictedAppsViolationRequest) Update(ctx context.Context, reqObj *RestrictedAppsViolation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RestrictedAppsViolation +func (r *RestrictedAppsViolationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RestrictedSignInRequestBuilder is request builder for RestrictedSignIn +type RestrictedSignInRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RestrictedSignInRequest +func (b *RestrictedSignInRequestBuilder) Request() *RestrictedSignInRequest { + return &RestrictedSignInRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RestrictedSignInRequest is request for RestrictedSignIn +type RestrictedSignInRequest struct{ BaseRequest } + +// Get performs GET request for RestrictedSignIn +func (r *RestrictedSignInRequest) Get(ctx context.Context) (resObj *RestrictedSignIn, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RestrictedSignIn +func (r *RestrictedSignInRequest) Update(ctx context.Context, reqObj *RestrictedSignIn) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RestrictedSignIn +func (r *RestrictedSignInRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/RiskDetectionRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go new file mode 100644 index 00000000..9095f794 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RiskyUserRequestBuilder is request builder for RiskyUser +type RiskyUserRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RiskyUserRequest +func (b *RiskyUserRequestBuilder) Request() *RiskyUserRequest { + return &RiskyUserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RiskyUserRequest is request for RiskyUser +type RiskyUserRequest struct{ BaseRequest } + +// Get performs GET request for RiskyUser +func (r *RiskyUserRequest) Get(ctx context.Context) (resObj *RiskyUser, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RiskyUser +func (r *RiskyUserRequest) Update(ctx context.Context, reqObj *RiskyUser) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RiskyUser +func (r *RiskyUserRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RiskyUserHistoryItemRequestBuilder is request builder for RiskyUserHistoryItem +type RiskyUserHistoryItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RiskyUserHistoryItemRequest +func (b *RiskyUserHistoryItemRequestBuilder) Request() *RiskyUserHistoryItemRequest { + return &RiskyUserHistoryItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RiskyUserHistoryItemRequest is request for RiskyUserHistoryItem +type RiskyUserHistoryItemRequest struct{ BaseRequest } + +// Get performs GET request for RiskyUserHistoryItem +func (r *RiskyUserHistoryItemRequest) Get(ctx context.Context) (resObj *RiskyUserHistoryItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RiskyUserHistoryItem +func (r *RiskyUserHistoryItemRequest) Update(ctx context.Context, reqObj *RiskyUserHistoryItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RiskyUserHistoryItem +func (r *RiskyUserHistoryItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go new file mode 100644 index 00000000..b0f4b9a2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go @@ -0,0 +1,357 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// RoleAssignmentRequestBuilder is request builder for RoleAssignment +type RoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoleAssignmentRequest +func (b *RoleAssignmentRequestBuilder) Request() *RoleAssignmentRequest { + return &RoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoleAssignmentRequest is request for RoleAssignment +type RoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for RoleAssignment +func (r *RoleAssignmentRequest) Get(ctx context.Context) (resObj *RoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoleAssignment +func (r *RoleAssignmentRequest) Update(ctx context.Context, reqObj *RoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoleAssignment +func (r *RoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RoleDefinitionRequestBuilder is request builder for RoleDefinition +type RoleDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoleDefinitionRequest +func (b *RoleDefinitionRequestBuilder) Request() *RoleDefinitionRequest { + return &RoleDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoleDefinitionRequest is request for RoleDefinition +type RoleDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for RoleDefinition +func (r *RoleDefinitionRequest) Get(ctx context.Context) (resObj *RoleDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoleDefinition +func (r *RoleDefinitionRequest) Update(ctx context.Context, reqObj *RoleDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoleDefinition +func (r *RoleDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RoleManagementRequestBuilder is request builder for RoleManagement +type RoleManagementRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoleManagementRequest +func (b *RoleManagementRequestBuilder) Request() *RoleManagementRequest { + return &RoleManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoleManagementRequest is request for RoleManagement +type RoleManagementRequest struct{ BaseRequest } + +// Get performs GET request for RoleManagement +func (r *RoleManagementRequest) Get(ctx context.Context) (resObj *RoleManagement, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoleManagement +func (r *RoleManagementRequest) Update(ctx context.Context, reqObj *RoleManagement) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoleManagement +func (r *RoleManagementRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RoleScopeTagRequestBuilder is request builder for RoleScopeTag +type RoleScopeTagRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoleScopeTagRequest +func (b *RoleScopeTagRequestBuilder) Request() *RoleScopeTagRequest { + return &RoleScopeTagRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoleScopeTagRequest is request for RoleScopeTag +type RoleScopeTagRequest struct{ BaseRequest } + +// Get performs GET request for RoleScopeTag +func (r *RoleScopeTagRequest) Get(ctx context.Context) (resObj *RoleScopeTag, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoleScopeTag +func (r *RoleScopeTagRequest) Update(ctx context.Context, reqObj *RoleScopeTag) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoleScopeTag +func (r *RoleScopeTagRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RoleScopeTagAutoAssignmentRequestBuilder is request builder for RoleScopeTagAutoAssignment +type RoleScopeTagAutoAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoleScopeTagAutoAssignmentRequest +func (b *RoleScopeTagAutoAssignmentRequestBuilder) Request() *RoleScopeTagAutoAssignmentRequest { + return &RoleScopeTagAutoAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoleScopeTagAutoAssignmentRequest is request for RoleScopeTagAutoAssignment +type RoleScopeTagAutoAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for RoleScopeTagAutoAssignment +func (r *RoleScopeTagAutoAssignmentRequest) Get(ctx context.Context) (resObj *RoleScopeTagAutoAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoleScopeTagAutoAssignment +func (r *RoleScopeTagAutoAssignmentRequest) Update(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoleScopeTagAutoAssignment +func (r *RoleScopeTagAutoAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder struct{ BaseRequestBuilder } + +// GetRoleScopeTagsByID action undocumented +func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder { + bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// GetRoleScopeTagsByID action undocumented +func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder { + bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RoleScopeTagCollectionGetRoleScopeTagsByIDRequest struct{ BaseRequest } + +// +func (b *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder) Request() *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest { + return &RoleScopeTagCollectionGetRoleScopeTagsByIDRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleScopeTag + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleScopeTag + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) PostN(ctx context.Context, n int) ([]RoleScopeTag, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Post(ctx context.Context) ([]RoleScopeTag, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type RoleScopeTagAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *RoleScopeTagRequestBuilder) Assign(reqObj *RoleScopeTagAssignRequestParameter) *RoleScopeTagAssignRequestBuilder { + bb := &RoleScopeTagAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type RoleScopeTagAssignRequest struct{ BaseRequest } + +// +func (b *RoleScopeTagAssignRequestBuilder) Request() *RoleScopeTagAssignRequest { + return &RoleScopeTagAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *RoleScopeTagAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTagAutoAssignment, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []RoleScopeTagAutoAssignment + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []RoleScopeTagAutoAssignment + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *RoleScopeTagAssignRequest) PostN(ctx context.Context, n int) ([]RoleScopeTagAutoAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *RoleScopeTagAssignRequest) Post(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go new file mode 100644 index 00000000..f3d50146 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// RoomRequestBuilder is request builder for Room +type RoomRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoomRequest +func (b *RoomRequestBuilder) Request() *RoomRequest { + return &RoomRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoomRequest is request for Room +type RoomRequest struct{ BaseRequest } + +// Get performs GET request for Room +func (r *RoomRequest) Get(ctx context.Context) (resObj *Room, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Room +func (r *RoomRequest) Update(ctx context.Context, reqObj *Room) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Room +func (r *RoomRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// RoomListRequestBuilder is request builder for RoomList +type RoomListRequestBuilder struct{ BaseRequestBuilder } + +// Request returns RoomListRequest +func (b *RoomListRequestBuilder) Request() *RoomListRequest { + return &RoomListRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// RoomListRequest is request for RoomList +type RoomListRequest struct{ BaseRequest } + +// Get performs GET request for RoomList +func (r *RoomListRequest) Get(ctx context.Context) (resObj *RoomList, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for RoomList +func (r *RoomListRequest) Update(ctx context.Context, reqObj *RoomList) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for RoomList +func (r *RoomListRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go new file mode 100644 index 00000000..d559478c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go @@ -0,0 +1,451 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SalesCreditMemoRequestBuilder is request builder for SalesCreditMemo +type SalesCreditMemoRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesCreditMemoRequest +func (b *SalesCreditMemoRequestBuilder) Request() *SalesCreditMemoRequest { + return &SalesCreditMemoRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesCreditMemoRequest is request for SalesCreditMemo +type SalesCreditMemoRequest struct{ BaseRequest } + +// Get performs GET request for SalesCreditMemo +func (r *SalesCreditMemoRequest) Get(ctx context.Context) (resObj *SalesCreditMemo, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesCreditMemo +func (r *SalesCreditMemoRequest) Update(ctx context.Context, reqObj *SalesCreditMemo) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesCreditMemo +func (r *SalesCreditMemoRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesCreditMemoLineRequestBuilder is request builder for SalesCreditMemoLine +type SalesCreditMemoLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesCreditMemoLineRequest +func (b *SalesCreditMemoLineRequestBuilder) Request() *SalesCreditMemoLineRequest { + return &SalesCreditMemoLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesCreditMemoLineRequest is request for SalesCreditMemoLine +type SalesCreditMemoLineRequest struct{ BaseRequest } + +// Get performs GET request for SalesCreditMemoLine +func (r *SalesCreditMemoLineRequest) Get(ctx context.Context) (resObj *SalesCreditMemoLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesCreditMemoLine +func (r *SalesCreditMemoLineRequest) Update(ctx context.Context, reqObj *SalesCreditMemoLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesCreditMemoLine +func (r *SalesCreditMemoLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesInvoiceRequestBuilder is request builder for SalesInvoice +type SalesInvoiceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesInvoiceRequest +func (b *SalesInvoiceRequestBuilder) Request() *SalesInvoiceRequest { + return &SalesInvoiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesInvoiceRequest is request for SalesInvoice +type SalesInvoiceRequest struct{ BaseRequest } + +// Get performs GET request for SalesInvoice +func (r *SalesInvoiceRequest) Get(ctx context.Context) (resObj *SalesInvoice, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesInvoice +func (r *SalesInvoiceRequest) Update(ctx context.Context, reqObj *SalesInvoice) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesInvoice +func (r *SalesInvoiceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesInvoiceLineRequestBuilder is request builder for SalesInvoiceLine +type SalesInvoiceLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesInvoiceLineRequest +func (b *SalesInvoiceLineRequestBuilder) Request() *SalesInvoiceLineRequest { + return &SalesInvoiceLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesInvoiceLineRequest is request for SalesInvoiceLine +type SalesInvoiceLineRequest struct{ BaseRequest } + +// Get performs GET request for SalesInvoiceLine +func (r *SalesInvoiceLineRequest) Get(ctx context.Context) (resObj *SalesInvoiceLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesInvoiceLine +func (r *SalesInvoiceLineRequest) Update(ctx context.Context, reqObj *SalesInvoiceLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesInvoiceLine +func (r *SalesInvoiceLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesOrderRequestBuilder is request builder for SalesOrder +type SalesOrderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesOrderRequest +func (b *SalesOrderRequestBuilder) Request() *SalesOrderRequest { + return &SalesOrderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesOrderRequest is request for SalesOrder +type SalesOrderRequest struct{ BaseRequest } + +// Get performs GET request for SalesOrder +func (r *SalesOrderRequest) Get(ctx context.Context) (resObj *SalesOrder, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesOrder +func (r *SalesOrderRequest) Update(ctx context.Context, reqObj *SalesOrder) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesOrder +func (r *SalesOrderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesOrderLineRequestBuilder is request builder for SalesOrderLine +type SalesOrderLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesOrderLineRequest +func (b *SalesOrderLineRequestBuilder) Request() *SalesOrderLineRequest { + return &SalesOrderLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesOrderLineRequest is request for SalesOrderLine +type SalesOrderLineRequest struct{ BaseRequest } + +// Get performs GET request for SalesOrderLine +func (r *SalesOrderLineRequest) Get(ctx context.Context) (resObj *SalesOrderLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesOrderLine +func (r *SalesOrderLineRequest) Update(ctx context.Context, reqObj *SalesOrderLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesOrderLine +func (r *SalesOrderLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesQuoteRequestBuilder is request builder for SalesQuote +type SalesQuoteRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesQuoteRequest +func (b *SalesQuoteRequestBuilder) Request() *SalesQuoteRequest { + return &SalesQuoteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesQuoteRequest is request for SalesQuote +type SalesQuoteRequest struct{ BaseRequest } + +// Get performs GET request for SalesQuote +func (r *SalesQuoteRequest) Get(ctx context.Context) (resObj *SalesQuote, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesQuote +func (r *SalesQuoteRequest) Update(ctx context.Context, reqObj *SalesQuote) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesQuote +func (r *SalesQuoteRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SalesQuoteLineRequestBuilder is request builder for SalesQuoteLine +type SalesQuoteLineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SalesQuoteLineRequest +func (b *SalesQuoteLineRequestBuilder) Request() *SalesQuoteLineRequest { + return &SalesQuoteLineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SalesQuoteLineRequest is request for SalesQuoteLine +type SalesQuoteLineRequest struct{ BaseRequest } + +// Get performs GET request for SalesQuoteLine +func (r *SalesQuoteLineRequest) Get(ctx context.Context) (resObj *SalesQuoteLine, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SalesQuoteLine +func (r *SalesQuoteLineRequest) Update(ctx context.Context, reqObj *SalesQuoteLine) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SalesQuoteLine +func (r *SalesQuoteLineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SalesInvoiceCancelAndSendRequestBuilder struct{ BaseRequestBuilder } + +// CancelAndSend action undocumented +func (b *SalesInvoiceRequestBuilder) CancelAndSend(reqObj *SalesInvoiceCancelAndSendRequestParameter) *SalesInvoiceCancelAndSendRequestBuilder { + bb := &SalesInvoiceCancelAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancelAndSend" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesInvoiceCancelAndSendRequest struct{ BaseRequest } + +// +func (b *SalesInvoiceCancelAndSendRequestBuilder) Request() *SalesInvoiceCancelAndSendRequest { + return &SalesInvoiceCancelAndSendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesInvoiceCancelAndSendRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesInvoiceCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *SalesInvoiceRequestBuilder) Cancel(reqObj *SalesInvoiceCancelRequestParameter) *SalesInvoiceCancelRequestBuilder { + bb := &SalesInvoiceCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesInvoiceCancelRequest struct{ BaseRequest } + +// +func (b *SalesInvoiceCancelRequestBuilder) Request() *SalesInvoiceCancelRequest { + return &SalesInvoiceCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesInvoiceCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesInvoicePostAndSendRequestBuilder struct{ BaseRequestBuilder } + +// PostAndSend action undocumented +func (b *SalesInvoiceRequestBuilder) PostAndSend(reqObj *SalesInvoicePostAndSendRequestParameter) *SalesInvoicePostAndSendRequestBuilder { + bb := &SalesInvoicePostAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/postAndSend" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesInvoicePostAndSendRequest struct{ BaseRequest } + +// +func (b *SalesInvoicePostAndSendRequestBuilder) Request() *SalesInvoicePostAndSendRequest { + return &SalesInvoicePostAndSendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesInvoicePostAndSendRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesInvoicePostRequestBuilder struct{ BaseRequestBuilder } + +// Post action undocumented +func (b *SalesInvoiceRequestBuilder) Post(reqObj *SalesInvoicePostRequestParameter) *SalesInvoicePostRequestBuilder { + bb := &SalesInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/post" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesInvoicePostRequest struct{ BaseRequest } + +// +func (b *SalesInvoicePostRequestBuilder) Request() *SalesInvoicePostRequest { + return &SalesInvoicePostRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesInvoicePostRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesInvoiceSendRequestBuilder struct{ BaseRequestBuilder } + +// Send action undocumented +func (b *SalesInvoiceRequestBuilder) Send(reqObj *SalesInvoiceSendRequestParameter) *SalesInvoiceSendRequestBuilder { + bb := &SalesInvoiceSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/send" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesInvoiceSendRequest struct{ BaseRequest } + +// +func (b *SalesInvoiceSendRequestBuilder) Request() *SalesInvoiceSendRequest { + return &SalesInvoiceSendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesInvoiceSendRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesQuoteMakeInvoiceRequestBuilder struct{ BaseRequestBuilder } + +// MakeInvoice action undocumented +func (b *SalesQuoteRequestBuilder) MakeInvoice(reqObj *SalesQuoteMakeInvoiceRequestParameter) *SalesQuoteMakeInvoiceRequestBuilder { + bb := &SalesQuoteMakeInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/makeInvoice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesQuoteMakeInvoiceRequest struct{ BaseRequest } + +// +func (b *SalesQuoteMakeInvoiceRequestBuilder) Request() *SalesQuoteMakeInvoiceRequest { + return &SalesQuoteMakeInvoiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesQuoteMakeInvoiceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SalesQuoteSendRequestBuilder struct{ BaseRequestBuilder } + +// Send action undocumented +func (b *SalesQuoteRequestBuilder) Send(reqObj *SalesQuoteSendRequestParameter) *SalesQuoteSendRequestBuilder { + bb := &SalesQuoteSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/send" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SalesQuoteSendRequest struct{ BaseRequest } + +// +func (b *SalesQuoteSendRequestBuilder) Request() *SalesQuoteSendRequest { + return &SalesQuoteSendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SalesQuoteSendRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go new file mode 100644 index 00000000..6d708728 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go @@ -0,0 +1,149 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ScheduleRequestBuilder is request builder for Schedule +type ScheduleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ScheduleRequest +func (b *ScheduleRequestBuilder) Request() *ScheduleRequest { + return &ScheduleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ScheduleRequest is request for Schedule +type ScheduleRequest struct{ BaseRequest } + +// Get performs GET request for Schedule +func (r *ScheduleRequest) Get(ctx context.Context) (resObj *Schedule, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Schedule +func (r *ScheduleRequest) Update(ctx context.Context, reqObj *Schedule) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Schedule +func (r *ScheduleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ScheduleChangeRequestObjectRequestBuilder is request builder for ScheduleChangeRequestObject +type ScheduleChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ScheduleChangeRequestObjectRequest +func (b *ScheduleChangeRequestObjectRequestBuilder) Request() *ScheduleChangeRequestObjectRequest { + return &ScheduleChangeRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ScheduleChangeRequestObjectRequest is request for ScheduleChangeRequestObject +type ScheduleChangeRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for ScheduleChangeRequestObject +func (r *ScheduleChangeRequestObjectRequest) Get(ctx context.Context) (resObj *ScheduleChangeRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ScheduleChangeRequestObject +func (r *ScheduleChangeRequestObjectRequest) Update(ctx context.Context, reqObj *ScheduleChangeRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ScheduleChangeRequestObject +func (r *ScheduleChangeRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ScheduleShareRequestBuilder struct{ BaseRequestBuilder } + +// Share action undocumented +func (b *ScheduleRequestBuilder) Share(reqObj *ScheduleShareRequestParameter) *ScheduleShareRequestBuilder { + bb := &ScheduleShareRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/share" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ScheduleShareRequest struct{ BaseRequest } + +// +func (b *ScheduleShareRequestBuilder) Request() *ScheduleShareRequest { + return &ScheduleShareRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ScheduleShareRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ScheduleChangeRequestObjectApproveRequestBuilder struct{ BaseRequestBuilder } + +// Approve action undocumented +func (b *ScheduleChangeRequestObjectRequestBuilder) Approve(reqObj *ScheduleChangeRequestObjectApproveRequestParameter) *ScheduleChangeRequestObjectApproveRequestBuilder { + bb := &ScheduleChangeRequestObjectApproveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/approve" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ScheduleChangeRequestObjectApproveRequest struct{ BaseRequest } + +// +func (b *ScheduleChangeRequestObjectApproveRequestBuilder) Request() *ScheduleChangeRequestObjectApproveRequest { + return &ScheduleChangeRequestObjectApproveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ScheduleChangeRequestObjectApproveRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ScheduleChangeRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder } + +// Decline action undocumented +func (b *ScheduleChangeRequestObjectRequestBuilder) Decline(reqObj *ScheduleChangeRequestObjectDeclineRequestParameter) *ScheduleChangeRequestObjectDeclineRequestBuilder { + bb := &ScheduleChangeRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/decline" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ScheduleChangeRequestObjectDeclineRequest struct{ BaseRequest } + +// +func (b *ScheduleChangeRequestObjectDeclineRequestBuilder) Request() *ScheduleChangeRequestObjectDeclineRequest { + return &ScheduleChangeRequestObjectDeclineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ScheduleChangeRequestObjectDeclineRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SchedulingGroupRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go new file mode 100644 index 00000000..74099e42 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SchemaRequestBuilder is request builder for Schema +type SchemaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SchemaRequest +func (b *SchemaRequestBuilder) Request() *SchemaRequest { + return &SchemaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SchemaRequest is request for Schema +type SchemaRequest struct{ BaseRequest } + +// Get performs GET request for Schema +func (r *SchemaRequest) Get(ctx context.Context) (resObj *Schema, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Schema +func (r *SchemaRequest) Update(ctx context.Context, reqObj *Schema) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Schema +func (r *SchemaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SchemaExtensionRequestBuilder is request builder for SchemaExtension +type SchemaExtensionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SchemaExtensionRequest +func (b *SchemaExtensionRequestBuilder) Request() *SchemaExtensionRequest { + return &SchemaExtensionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SchemaExtensionRequest is request for SchemaExtension +type SchemaExtensionRequest struct{ BaseRequest } + +// Get performs GET request for SchemaExtension +func (r *SchemaExtensionRequest) Get(ctx context.Context) (resObj *SchemaExtension, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SchemaExtension +func (r *SchemaExtensionRequest) Update(ctx context.Context, reqObj *SchemaExtension) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SchemaExtension +func (r *SchemaExtensionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ScopedRoleMembershipRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go new file mode 100644 index 00000000..43787114 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go @@ -0,0 +1,131 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SearchRequestBuilder is request builder for Search +type SearchRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SearchRequest +func (b *SearchRequestBuilder) Request() *SearchRequest { + return &SearchRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SearchRequest is request for Search +type SearchRequest struct{ BaseRequest } + +// Get performs GET request for Search +func (r *SearchRequest) Get(ctx context.Context) (resObj *Search, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Search +func (r *SearchRequest) Update(ctx context.Context, reqObj *Search) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Search +func (r *SearchRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SearchQueryRequestBuilder struct{ BaseRequestBuilder } + +// Query action undocumented +func (b *SearchRequestBuilder) Query(reqObj *SearchQueryRequestParameter) *SearchQueryRequestBuilder { + bb := &SearchQueryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/query" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SearchQueryRequest struct{ BaseRequest } + +// +func (b *SearchQueryRequestBuilder) Request() *SearchQueryRequest { + return &SearchQueryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SearchQueryRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SearchResponse, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []SearchResponse + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []SearchResponse + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *SearchQueryRequest) PostN(ctx context.Context, n int) ([]SearchResponse, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *SearchQueryRequest) Post(ctx context.Context) ([]SearchResponse, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go new file mode 100644 index 00000000..838b11c4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SectionGroupRequestBuilder is request builder for SectionGroup +type SectionGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SectionGroupRequest +func (b *SectionGroupRequestBuilder) Request() *SectionGroupRequest { + return &SectionGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SectionGroupRequest is request for SectionGroup +type SectionGroupRequest struct{ BaseRequest } + +// Get performs GET request for SectionGroup +func (r *SectionGroupRequest) Get(ctx context.Context) (resObj *SectionGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SectionGroup +func (r *SectionGroupRequest) Update(ctx context.Context, reqObj *SectionGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SectionGroup +func (r *SectionGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go new file mode 100644 index 00000000..a56a96b9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SecureScoreRequestBuilder is request builder for SecureScore +type SecureScoreRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecureScoreRequest +func (b *SecureScoreRequestBuilder) Request() *SecureScoreRequest { + return &SecureScoreRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecureScoreRequest is request for SecureScore +type SecureScoreRequest struct{ BaseRequest } + +// Get performs GET request for SecureScore +func (r *SecureScoreRequest) Get(ctx context.Context) (resObj *SecureScore, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecureScore +func (r *SecureScoreRequest) Update(ctx context.Context, reqObj *SecureScore) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecureScore +func (r *SecureScoreRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecureScoreControlProfileRequestBuilder is request builder for SecureScoreControlProfile +type SecureScoreControlProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecureScoreControlProfileRequest +func (b *SecureScoreControlProfileRequestBuilder) Request() *SecureScoreControlProfileRequest { + return &SecureScoreControlProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecureScoreControlProfileRequest is request for SecureScoreControlProfile +type SecureScoreControlProfileRequest struct{ BaseRequest } + +// Get performs GET request for SecureScoreControlProfile +func (r *SecureScoreControlProfileRequest) Get(ctx context.Context) (resObj *SecureScoreControlProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecureScoreControlProfile +func (r *SecureScoreControlProfileRequest) Update(ctx context.Context, reqObj *SecureScoreControlProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecureScoreControlProfile +func (r *SecureScoreControlProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go new file mode 100644 index 00000000..a45d616d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go @@ -0,0 +1,295 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SecurityRequestBuilder is request builder for Security +type SecurityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityRequest +func (b *SecurityRequestBuilder) Request() *SecurityRequest { + return &SecurityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityRequest is request for Security +type SecurityRequest struct{ BaseRequest } + +// Get performs GET request for Security +func (r *SecurityRequest) Get(ctx context.Context) (resObj *Security, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Security +func (r *SecurityRequest) Update(ctx context.Context, reqObj *Security) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Security +func (r *SecurityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityActionRequestBuilder is request builder for SecurityAction +type SecurityActionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityActionRequest +func (b *SecurityActionRequestBuilder) Request() *SecurityActionRequest { + return &SecurityActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityActionRequest is request for SecurityAction +type SecurityActionRequest struct{ BaseRequest } + +// Get performs GET request for SecurityAction +func (r *SecurityActionRequest) Get(ctx context.Context) (resObj *SecurityAction, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityAction +func (r *SecurityActionRequest) Update(ctx context.Context, reqObj *SecurityAction) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityAction +func (r *SecurityActionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineCategoryStateSummaryRequestBuilder is request builder for SecurityBaselineCategoryStateSummary +type SecurityBaselineCategoryStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineCategoryStateSummaryRequest +func (b *SecurityBaselineCategoryStateSummaryRequestBuilder) Request() *SecurityBaselineCategoryStateSummaryRequest { + return &SecurityBaselineCategoryStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineCategoryStateSummaryRequest is request for SecurityBaselineCategoryStateSummary +type SecurityBaselineCategoryStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineCategoryStateSummary +func (r *SecurityBaselineCategoryStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineCategoryStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineCategoryStateSummary +func (r *SecurityBaselineCategoryStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineCategoryStateSummary +func (r *SecurityBaselineCategoryStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineDeviceStateRequestBuilder is request builder for SecurityBaselineDeviceState +type SecurityBaselineDeviceStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineDeviceStateRequest +func (b *SecurityBaselineDeviceStateRequestBuilder) Request() *SecurityBaselineDeviceStateRequest { + return &SecurityBaselineDeviceStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineDeviceStateRequest is request for SecurityBaselineDeviceState +type SecurityBaselineDeviceStateRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineDeviceState +func (r *SecurityBaselineDeviceStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineDeviceState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineDeviceState +func (r *SecurityBaselineDeviceStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineDeviceState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineDeviceState +func (r *SecurityBaselineDeviceStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineSettingStateRequestBuilder is request builder for SecurityBaselineSettingState +type SecurityBaselineSettingStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineSettingStateRequest +func (b *SecurityBaselineSettingStateRequestBuilder) Request() *SecurityBaselineSettingStateRequest { + return &SecurityBaselineSettingStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineSettingStateRequest is request for SecurityBaselineSettingState +type SecurityBaselineSettingStateRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineSettingState +func (r *SecurityBaselineSettingStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineSettingState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineSettingState +func (r *SecurityBaselineSettingStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineSettingState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineSettingState +func (r *SecurityBaselineSettingStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineStateRequestBuilder is request builder for SecurityBaselineState +type SecurityBaselineStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineStateRequest +func (b *SecurityBaselineStateRequestBuilder) Request() *SecurityBaselineStateRequest { + return &SecurityBaselineStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineStateRequest is request for SecurityBaselineState +type SecurityBaselineStateRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineState +func (r *SecurityBaselineStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineState +func (r *SecurityBaselineStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineState +func (r *SecurityBaselineStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineStateSummaryRequestBuilder is request builder for SecurityBaselineStateSummary +type SecurityBaselineStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineStateSummaryRequest +func (b *SecurityBaselineStateSummaryRequestBuilder) Request() *SecurityBaselineStateSummaryRequest { + return &SecurityBaselineStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineStateSummaryRequest is request for SecurityBaselineStateSummary +type SecurityBaselineStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineStateSummary +func (r *SecurityBaselineStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineStateSummary +func (r *SecurityBaselineStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineStateSummary +func (r *SecurityBaselineStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SecurityBaselineTemplateRequestBuilder is request builder for SecurityBaselineTemplate +type SecurityBaselineTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SecurityBaselineTemplateRequest +func (b *SecurityBaselineTemplateRequestBuilder) Request() *SecurityBaselineTemplateRequest { + return &SecurityBaselineTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SecurityBaselineTemplateRequest is request for SecurityBaselineTemplate +type SecurityBaselineTemplateRequest struct{ BaseRequest } + +// Get performs GET request for SecurityBaselineTemplate +func (r *SecurityBaselineTemplateRequest) Get(ctx context.Context) (resObj *SecurityBaselineTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SecurityBaselineTemplate +func (r *SecurityBaselineTemplateRequest) Update(ctx context.Context, reqObj *SecurityBaselineTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SecurityBaselineTemplate +func (r *SecurityBaselineTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SecurityActionCancelSecurityActionRequestBuilder struct{ BaseRequestBuilder } + +// CancelSecurityAction action undocumented +func (b *SecurityActionRequestBuilder) CancelSecurityAction(reqObj *SecurityActionCancelSecurityActionRequestParameter) *SecurityActionCancelSecurityActionRequestBuilder { + bb := &SecurityActionCancelSecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancelSecurityAction" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SecurityActionCancelSecurityActionRequest struct{ BaseRequest } + +// +func (b *SecurityActionCancelSecurityActionRequestBuilder) Request() *SecurityActionCancelSecurityActionRequest { + return &SecurityActionCancelSecurityActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SecurityActionCancelSecurityActionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SensitiveTypeRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go new file mode 100644 index 00000000..1c9fab29 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go @@ -0,0 +1,114 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SensitivityLabelRequestBuilder is request builder for SensitivityLabel +type SensitivityLabelRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SensitivityLabelRequest +func (b *SensitivityLabelRequestBuilder) Request() *SensitivityLabelRequest { + return &SensitivityLabelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SensitivityLabelRequest is request for SensitivityLabel +type SensitivityLabelRequest struct{ BaseRequest } + +// Get performs GET request for SensitivityLabel +func (r *SensitivityLabelRequest) Get(ctx context.Context) (resObj *SensitivityLabel, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SensitivityLabel +func (r *SensitivityLabelRequest) Update(ctx context.Context, reqObj *SensitivityLabel) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SensitivityLabel +func (r *SensitivityLabelRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SensitivityPolicySettingsRequestBuilder is request builder for SensitivityPolicySettings +type SensitivityPolicySettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SensitivityPolicySettingsRequest +func (b *SensitivityPolicySettingsRequestBuilder) Request() *SensitivityPolicySettingsRequest { + return &SensitivityPolicySettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SensitivityPolicySettingsRequest is request for SensitivityPolicySettings +type SensitivityPolicySettingsRequest struct{ BaseRequest } + +// Get performs GET request for SensitivityPolicySettings +func (r *SensitivityPolicySettingsRequest) Get(ctx context.Context) (resObj *SensitivityPolicySettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SensitivityPolicySettings +func (r *SensitivityPolicySettingsRequest) Update(ctx context.Context, reqObj *SensitivityPolicySettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SensitivityPolicySettings +func (r *SensitivityPolicySettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SensitivityLabelCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder } + +// Evaluate action undocumented +func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder { + bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Evaluate action undocumented +func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder { + bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Evaluate action undocumented +func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder { + bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/evaluate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SensitivityLabelCollectionEvaluateRequest struct{ BaseRequest } + +// +func (b *SensitivityLabelCollectionEvaluateRequestBuilder) Request() *SensitivityLabelCollectionEvaluateRequest { + return &SensitivityLabelCollectionEvaluateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SensitivityLabelCollectionEvaluateRequest) Post(ctx context.Context) (resObj *EvaluateLabelJobResponse, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go new file mode 100644 index 00000000..d014f7f2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go @@ -0,0 +1,144 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ServicePrincipalRequestBuilder is request builder for ServicePrincipal +type ServicePrincipalRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ServicePrincipalRequest +func (b *ServicePrincipalRequestBuilder) Request() *ServicePrincipalRequest { + return &ServicePrincipalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ServicePrincipalRequest is request for ServicePrincipal +type ServicePrincipalRequest struct{ BaseRequest } + +// Get performs GET request for ServicePrincipal +func (r *ServicePrincipalRequest) Get(ctx context.Context) (resObj *ServicePrincipal, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ServicePrincipal +func (r *ServicePrincipalRequest) Update(ctx context.Context, reqObj *ServicePrincipal) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ServicePrincipal +func (r *ServicePrincipalRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// CreatePasswordSingleSignOnCredentials action undocumented +func (b *ServicePrincipalRequestBuilder) CreatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder { + bb := &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createPasswordSingleSignOnCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest } + +// +func (b *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest { + return &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// GetPasswordSingleSignOnCredentials action undocumented +func (b *ServicePrincipalRequestBuilder) GetPasswordSingleSignOnCredentials(reqObj *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder { + bb := &ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getPasswordSingleSignOnCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ServicePrincipalGetPasswordSingleSignOnCredentialsRequest struct{ BaseRequest } + +// +func (b *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest { + return &ServicePrincipalGetPasswordSingleSignOnCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// DeletePasswordSingleSignOnCredentials action undocumented +func (b *ServicePrincipalRequestBuilder) DeletePasswordSingleSignOnCredentials(reqObj *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder { + bb := &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/deletePasswordSingleSignOnCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest struct{ BaseRequest } + +// +func (b *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest { + return &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// UpdatePasswordSingleSignOnCredentials action undocumented +func (b *ServicePrincipalRequestBuilder) UpdatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder { + bb := &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updatePasswordSingleSignOnCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest } + +// +func (b *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest { + return &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SettingStateDeviceSummaryRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go new file mode 100644 index 00000000..20848dee --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SharedDriveItemRequestBuilder is request builder for SharedDriveItem +type SharedDriveItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SharedDriveItemRequest +func (b *SharedDriveItemRequestBuilder) Request() *SharedDriveItemRequest { + return &SharedDriveItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SharedDriveItemRequest is request for SharedDriveItem +type SharedDriveItemRequest struct{ BaseRequest } + +// Get performs GET request for SharedDriveItem +func (r *SharedDriveItemRequest) Get(ctx context.Context) (resObj *SharedDriveItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SharedDriveItem +func (r *SharedDriveItemRequest) Update(ctx context.Context, reqObj *SharedDriveItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SharedDriveItem +func (r *SharedDriveItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SharedInsightRequestBuilder is request builder for SharedInsight +type SharedInsightRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SharedInsightRequest +func (b *SharedInsightRequestBuilder) Request() *SharedInsightRequest { + return &SharedInsightRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SharedInsightRequest is request for SharedInsight +type SharedInsightRequest struct{ BaseRequest } + +// Get performs GET request for SharedInsight +func (r *SharedInsightRequest) Get(ctx context.Context) (resObj *SharedInsight, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SharedInsight +func (r *SharedInsightRequest) Update(ctx context.Context, reqObj *SharedInsight) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SharedInsight +func (r *SharedInsightRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ShiftRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ShipmentMethodRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SideLoadingKeyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SignInRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go new file mode 100644 index 00000000..d8cb8ab0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go @@ -0,0 +1,308 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// SiteRequestBuilder is request builder for Site +type SiteRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SiteRequest +func (b *SiteRequestBuilder) Request() *SiteRequest { + return &SiteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SiteRequest is request for Site +type SiteRequest struct{ BaseRequest } + +// Get performs GET request for Site +func (r *SiteRequest) Get(ctx context.Context) (resObj *Site, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Site +func (r *SiteRequest) Update(ctx context.Context, reqObj *Site) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Site +func (r *SiteRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SitePageRequestBuilder is request builder for SitePage +type SitePageRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SitePageRequest +func (b *SitePageRequestBuilder) Request() *SitePageRequest { + return &SitePageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SitePageRequest is request for SitePage +type SitePageRequest struct{ BaseRequest } + +// Get performs GET request for SitePage +func (r *SitePageRequest) Get(ctx context.Context) (resObj *SitePage, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SitePage +func (r *SitePageRequest) Update(ctx context.Context, reqObj *SitePage) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SitePage +func (r *SitePageRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SiteCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *GroupSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder { + bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Add action undocumented +func (b *SiteSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder { + bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Add action undocumented +func (b *UserFollowedSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder { + bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SiteCollectionAddRequest struct{ BaseRequest } + +// +func (b *SiteCollectionAddRequestBuilder) Request() *SiteCollectionAddRequest { + return &SiteCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SiteCollectionAddRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *SiteCollectionAddRequest) PostN(ctx context.Context, n int) ([]Site, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *SiteCollectionAddRequest) Post(ctx context.Context) ([]Site, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type SiteCollectionRemoveRequestBuilder struct{ BaseRequestBuilder } + +// Remove action undocumented +func (b *GroupSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder { + bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/remove" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Remove action undocumented +func (b *SiteSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder { + bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/remove" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Remove action undocumented +func (b *UserFollowedSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder { + bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/remove" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SiteCollectionRemoveRequest struct{ BaseRequest } + +// +func (b *SiteCollectionRemoveRequestBuilder) Request() *SiteCollectionRemoveRequest { + return &SiteCollectionRemoveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SiteCollectionRemoveRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []Site + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []Site + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *SiteCollectionRemoveRequest) PostN(ctx context.Context, n int) ([]Site, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *SiteCollectionRemoveRequest) Post(ctx context.Context) ([]Site, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type SitePagePublishRequestBuilder struct{ BaseRequestBuilder } + +// Publish action undocumented +func (b *SitePageRequestBuilder) Publish(reqObj *SitePagePublishRequestParameter) *SitePagePublishRequestBuilder { + bb := &SitePagePublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/publish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SitePagePublishRequest struct{ BaseRequest } + +// +func (b *SitePagePublishRequestBuilder) Request() *SitePagePublishRequest { + return &SitePagePublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SitePagePublishRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SkillProficiencyRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKURequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SubscribedSKURequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SubscriptionRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SuspiciousIPRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go new file mode 100644 index 00000000..39f93af3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go @@ -0,0 +1,346 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// SynchronizationRequestBuilder is request builder for Synchronization +type SynchronizationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SynchronizationRequest +func (b *SynchronizationRequestBuilder) Request() *SynchronizationRequest { + return &SynchronizationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SynchronizationRequest is request for Synchronization +type SynchronizationRequest struct{ BaseRequest } + +// Get performs GET request for Synchronization +func (r *SynchronizationRequest) Get(ctx context.Context) (resObj *Synchronization, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Synchronization +func (r *SynchronizationRequest) Update(ctx context.Context, reqObj *Synchronization) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Synchronization +func (r *SynchronizationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SynchronizationJobRequestBuilder is request builder for SynchronizationJob +type SynchronizationJobRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SynchronizationJobRequest +func (b *SynchronizationJobRequestBuilder) Request() *SynchronizationJobRequest { + return &SynchronizationJobRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SynchronizationJobRequest is request for SynchronizationJob +type SynchronizationJobRequest struct{ BaseRequest } + +// Get performs GET request for SynchronizationJob +func (r *SynchronizationJobRequest) Get(ctx context.Context) (resObj *SynchronizationJob, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SynchronizationJob +func (r *SynchronizationJobRequest) Update(ctx context.Context, reqObj *SynchronizationJob) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SynchronizationJob +func (r *SynchronizationJobRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SynchronizationSchemaRequestBuilder is request builder for SynchronizationSchema +type SynchronizationSchemaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SynchronizationSchemaRequest +func (b *SynchronizationSchemaRequestBuilder) Request() *SynchronizationSchemaRequest { + return &SynchronizationSchemaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SynchronizationSchemaRequest is request for SynchronizationSchema +type SynchronizationSchemaRequest struct{ BaseRequest } + +// Get performs GET request for SynchronizationSchema +func (r *SynchronizationSchemaRequest) Get(ctx context.Context) (resObj *SynchronizationSchema, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SynchronizationSchema +func (r *SynchronizationSchemaRequest) Update(ctx context.Context, reqObj *SynchronizationSchema) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SynchronizationSchema +func (r *SynchronizationSchemaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// SynchronizationTemplateRequestBuilder is request builder for SynchronizationTemplate +type SynchronizationTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns SynchronizationTemplateRequest +func (b *SynchronizationTemplateRequestBuilder) Request() *SynchronizationTemplateRequest { + return &SynchronizationTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// SynchronizationTemplateRequest is request for SynchronizationTemplate +type SynchronizationTemplateRequest struct{ BaseRequest } + +// Get performs GET request for SynchronizationTemplate +func (r *SynchronizationTemplateRequest) Get(ctx context.Context) (resObj *SynchronizationTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for SynchronizationTemplate +func (r *SynchronizationTemplateRequest) Update(ctx context.Context, reqObj *SynchronizationTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for SynchronizationTemplate +func (r *SynchronizationTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type SynchronizationJobCollectionValidateCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// ValidateCredentials action undocumented +func (b *SynchronizationJobsCollectionRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobCollectionValidateCredentialsRequestParameter) *SynchronizationJobCollectionValidateCredentialsRequestBuilder { + bb := &SynchronizationJobCollectionValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobCollectionValidateCredentialsRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobCollectionValidateCredentialsRequestBuilder) Request() *SynchronizationJobCollectionValidateCredentialsRequest { + return &SynchronizationJobCollectionValidateCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobCollectionValidateCredentialsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobPauseRequestBuilder struct{ BaseRequestBuilder } + +// Pause action undocumented +func (b *SynchronizationJobRequestBuilder) Pause(reqObj *SynchronizationJobPauseRequestParameter) *SynchronizationJobPauseRequestBuilder { + bb := &SynchronizationJobPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pause" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobPauseRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobPauseRequestBuilder) Request() *SynchronizationJobPauseRequest { + return &SynchronizationJobPauseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobPauseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobStartRequestBuilder struct{ BaseRequestBuilder } + +// Start action undocumented +func (b *SynchronizationJobRequestBuilder) Start(reqObj *SynchronizationJobStartRequestParameter) *SynchronizationJobStartRequestBuilder { + bb := &SynchronizationJobStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/start" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobStartRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobStartRequestBuilder) Request() *SynchronizationJobStartRequest { + return &SynchronizationJobStartRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobStartRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobStopRequestBuilder struct{ BaseRequestBuilder } + +// Stop action undocumented +func (b *SynchronizationJobRequestBuilder) Stop(reqObj *SynchronizationJobStopRequestParameter) *SynchronizationJobStopRequestBuilder { + bb := &SynchronizationJobStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stop" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobStopRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobStopRequestBuilder) Request() *SynchronizationJobStopRequest { + return &SynchronizationJobStopRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobStopRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobApplyRequestBuilder struct{ BaseRequestBuilder } + +// Apply action undocumented +func (b *SynchronizationJobRequestBuilder) Apply(reqObj *SynchronizationJobApplyRequestParameter) *SynchronizationJobApplyRequestBuilder { + bb := &SynchronizationJobApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/apply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobApplyRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobApplyRequestBuilder) Request() *SynchronizationJobApplyRequest { + return &SynchronizationJobApplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobApplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobRestartRequestBuilder struct{ BaseRequestBuilder } + +// Restart action undocumented +func (b *SynchronizationJobRequestBuilder) Restart(reqObj *SynchronizationJobRestartRequestParameter) *SynchronizationJobRestartRequestBuilder { + bb := &SynchronizationJobRestartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/restart" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobRestartRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobRestartRequestBuilder) Request() *SynchronizationJobRestartRequest { + return &SynchronizationJobRestartRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobRestartRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationJobValidateCredentialsRequestBuilder struct{ BaseRequestBuilder } + +// ValidateCredentials action undocumented +func (b *SynchronizationJobRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobValidateCredentialsRequestParameter) *SynchronizationJobValidateCredentialsRequestBuilder { + bb := &SynchronizationJobValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/validateCredentials" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationJobValidateCredentialsRequest struct{ BaseRequest } + +// +func (b *SynchronizationJobValidateCredentialsRequestBuilder) Request() *SynchronizationJobValidateCredentialsRequest { + return &SynchronizationJobValidateCredentialsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationJobValidateCredentialsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type SynchronizationSchemaParseExpressionRequestBuilder struct{ BaseRequestBuilder } + +// ParseExpression action undocumented +func (b *SynchronizationSchemaRequestBuilder) ParseExpression(reqObj *SynchronizationSchemaParseExpressionRequestParameter) *SynchronizationSchemaParseExpressionRequestBuilder { + bb := &SynchronizationSchemaParseExpressionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/parseExpression" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type SynchronizationSchemaParseExpressionRequest struct{ BaseRequest } + +// +func (b *SynchronizationSchemaParseExpressionRequestBuilder) Request() *SynchronizationSchemaParseExpressionRequest { + return &SynchronizationSchemaParseExpressionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *SynchronizationSchemaParseExpressionRequest) Post(ctx context.Context) (resObj *ParseExpressionResponse, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go new file mode 100644 index 00000000..847bf1da --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go @@ -0,0 +1,275 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TargetedManagedAppConfigurationRequestBuilder is request builder for TargetedManagedAppConfiguration +type TargetedManagedAppConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TargetedManagedAppConfigurationRequest +func (b *TargetedManagedAppConfigurationRequestBuilder) Request() *TargetedManagedAppConfigurationRequest { + return &TargetedManagedAppConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TargetedManagedAppConfigurationRequest is request for TargetedManagedAppConfiguration +type TargetedManagedAppConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for TargetedManagedAppConfiguration +func (r *TargetedManagedAppConfigurationRequest) Get(ctx context.Context) (resObj *TargetedManagedAppConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TargetedManagedAppConfiguration +func (r *TargetedManagedAppConfigurationRequest) Update(ctx context.Context, reqObj *TargetedManagedAppConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TargetedManagedAppConfiguration +func (r *TargetedManagedAppConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TargetedManagedAppPolicyAssignmentRequestBuilder is request builder for TargetedManagedAppPolicyAssignment +type TargetedManagedAppPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TargetedManagedAppPolicyAssignmentRequest +func (b *TargetedManagedAppPolicyAssignmentRequestBuilder) Request() *TargetedManagedAppPolicyAssignmentRequest { + return &TargetedManagedAppPolicyAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TargetedManagedAppPolicyAssignmentRequest is request for TargetedManagedAppPolicyAssignment +type TargetedManagedAppPolicyAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for TargetedManagedAppPolicyAssignment +func (r *TargetedManagedAppPolicyAssignmentRequest) Get(ctx context.Context) (resObj *TargetedManagedAppPolicyAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TargetedManagedAppPolicyAssignment +func (r *TargetedManagedAppPolicyAssignmentRequest) Update(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TargetedManagedAppPolicyAssignment +func (r *TargetedManagedAppPolicyAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TargetedManagedAppProtectionRequestBuilder is request builder for TargetedManagedAppProtection +type TargetedManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TargetedManagedAppProtectionRequest +func (b *TargetedManagedAppProtectionRequestBuilder) Request() *TargetedManagedAppProtectionRequest { + return &TargetedManagedAppProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TargetedManagedAppProtectionRequest is request for TargetedManagedAppProtection +type TargetedManagedAppProtectionRequest struct{ BaseRequest } + +// Get performs GET request for TargetedManagedAppProtection +func (r *TargetedManagedAppProtectionRequest) Get(ctx context.Context) (resObj *TargetedManagedAppProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TargetedManagedAppProtection +func (r *TargetedManagedAppProtectionRequest) Update(ctx context.Context, reqObj *TargetedManagedAppProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TargetedManagedAppProtection +func (r *TargetedManagedAppProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter) *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder { + bb := &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest { + return &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type TargetedManagedAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *TargetedManagedAppConfigurationRequestBuilder) Assign(reqObj *TargetedManagedAppConfigurationAssignRequestParameter) *TargetedManagedAppConfigurationAssignRequestBuilder { + bb := &TargetedManagedAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TargetedManagedAppConfigurationAssignRequest struct{ BaseRequest } + +// +func (b *TargetedManagedAppConfigurationAssignRequestBuilder) Request() *TargetedManagedAppConfigurationAssignRequest { + return &TargetedManagedAppConfigurationAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TargetedManagedAppConfigurationAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type TargetedManagedAppConfigurationTargetAppsRequestBuilder struct{ BaseRequestBuilder } + +// TargetApps action undocumented +func (b *TargetedManagedAppConfigurationRequestBuilder) TargetApps(reqObj *TargetedManagedAppConfigurationTargetAppsRequestParameter) *TargetedManagedAppConfigurationTargetAppsRequestBuilder { + bb := &TargetedManagedAppConfigurationTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/targetApps" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TargetedManagedAppConfigurationTargetAppsRequest struct{ BaseRequest } + +// +func (b *TargetedManagedAppConfigurationTargetAppsRequestBuilder) Request() *TargetedManagedAppConfigurationTargetAppsRequest { + return &TargetedManagedAppConfigurationTargetAppsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TargetedManagedAppConfigurationTargetAppsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type TargetedManagedAppProtectionAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *TargetedManagedAppProtectionRequestBuilder) Assign(reqObj *TargetedManagedAppProtectionAssignRequestParameter) *TargetedManagedAppProtectionAssignRequestBuilder { + bb := &TargetedManagedAppProtectionAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TargetedManagedAppProtectionAssignRequest struct{ BaseRequest } + +// +func (b *TargetedManagedAppProtectionAssignRequestBuilder) Request() *TargetedManagedAppProtectionAssignRequest { + return &TargetedManagedAppProtectionAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TargetedManagedAppProtectionAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go new file mode 100644 index 00000000..7a965faf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TaxAreaRequestBuilder is request builder for TaxArea +type TaxAreaRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TaxAreaRequest +func (b *TaxAreaRequestBuilder) Request() *TaxAreaRequest { + return &TaxAreaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TaxAreaRequest is request for TaxArea +type TaxAreaRequest struct{ BaseRequest } + +// Get performs GET request for TaxArea +func (r *TaxAreaRequest) Get(ctx context.Context) (resObj *TaxArea, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TaxArea +func (r *TaxAreaRequest) Update(ctx context.Context, reqObj *TaxArea) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TaxArea +func (r *TaxAreaRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TaxGroupRequestBuilder is request builder for TaxGroup +type TaxGroupRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TaxGroupRequest +func (b *TaxGroupRequestBuilder) Request() *TaxGroupRequest { + return &TaxGroupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TaxGroupRequest is request for TaxGroup +type TaxGroupRequest struct{ BaseRequest } + +// Get performs GET request for TaxGroup +func (r *TaxGroupRequest) Get(ctx context.Context) (resObj *TaxGroup, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TaxGroup +func (r *TaxGroupRequest) Update(ctx context.Context, reqObj *TaxGroup) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TaxGroup +func (r *TaxGroupRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go new file mode 100644 index 00000000..d58b2404 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go @@ -0,0 +1,116 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TeamRequestBuilder is request builder for Team +type TeamRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamRequest +func (b *TeamRequestBuilder) Request() *TeamRequest { + return &TeamRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamRequest is request for Team +type TeamRequest struct{ BaseRequest } + +// Get performs GET request for Team +func (r *TeamRequest) Get(ctx context.Context) (resObj *Team, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Team +func (r *TeamRequest) Update(ctx context.Context, reqObj *Team) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Team +func (r *TeamRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type TeamCloneRequestBuilder struct{ BaseRequestBuilder } + +// Clone action undocumented +func (b *TeamRequestBuilder) Clone(reqObj *TeamCloneRequestParameter) *TeamCloneRequestBuilder { + bb := &TeamCloneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clone" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TeamCloneRequest struct{ BaseRequest } + +// +func (b *TeamCloneRequestBuilder) Request() *TeamCloneRequest { + return &TeamCloneRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TeamCloneRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type TeamArchiveRequestBuilder struct{ BaseRequestBuilder } + +// Archive action undocumented +func (b *TeamRequestBuilder) Archive(reqObj *TeamArchiveRequestParameter) *TeamArchiveRequestBuilder { + bb := &TeamArchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/archive" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TeamArchiveRequest struct{ BaseRequest } + +// +func (b *TeamArchiveRequestBuilder) Request() *TeamArchiveRequest { + return &TeamArchiveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TeamArchiveRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type TeamUnarchiveRequestBuilder struct{ BaseRequestBuilder } + +// Unarchive action undocumented +func (b *TeamRequestBuilder) Unarchive(reqObj *TeamUnarchiveRequestParameter) *TeamUnarchiveRequestBuilder { + bb := &TeamUnarchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unarchive" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TeamUnarchiveRequest struct{ BaseRequest } + +// +func (b *TeamUnarchiveRequestBuilder) Request() *TeamUnarchiveRequest { + return &TeamUnarchiveRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TeamUnarchiveRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go new file mode 100644 index 00000000..550f2bed --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go @@ -0,0 +1,262 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TeamsAppRequestBuilder is request builder for TeamsApp +type TeamsAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsAppRequest +func (b *TeamsAppRequestBuilder) Request() *TeamsAppRequest { + return &TeamsAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsAppRequest is request for TeamsApp +type TeamsAppRequest struct{ BaseRequest } + +// Get performs GET request for TeamsApp +func (r *TeamsAppRequest) Get(ctx context.Context) (resObj *TeamsApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsApp +func (r *TeamsAppRequest) Update(ctx context.Context, reqObj *TeamsApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsApp +func (r *TeamsAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsAppDefinitionRequestBuilder is request builder for TeamsAppDefinition +type TeamsAppDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsAppDefinitionRequest +func (b *TeamsAppDefinitionRequestBuilder) Request() *TeamsAppDefinitionRequest { + return &TeamsAppDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsAppDefinitionRequest is request for TeamsAppDefinition +type TeamsAppDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for TeamsAppDefinition +func (r *TeamsAppDefinitionRequest) Get(ctx context.Context) (resObj *TeamsAppDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsAppDefinition +func (r *TeamsAppDefinitionRequest) Update(ctx context.Context, reqObj *TeamsAppDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsAppDefinition +func (r *TeamsAppDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsAppInstallationRequestBuilder is request builder for TeamsAppInstallation +type TeamsAppInstallationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsAppInstallationRequest +func (b *TeamsAppInstallationRequestBuilder) Request() *TeamsAppInstallationRequest { + return &TeamsAppInstallationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsAppInstallationRequest is request for TeamsAppInstallation +type TeamsAppInstallationRequest struct{ BaseRequest } + +// Get performs GET request for TeamsAppInstallation +func (r *TeamsAppInstallationRequest) Get(ctx context.Context) (resObj *TeamsAppInstallation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsAppInstallation +func (r *TeamsAppInstallationRequest) Update(ctx context.Context, reqObj *TeamsAppInstallation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsAppInstallation +func (r *TeamsAppInstallationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsAsyncOperationRequestBuilder is request builder for TeamsAsyncOperation +type TeamsAsyncOperationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsAsyncOperationRequest +func (b *TeamsAsyncOperationRequestBuilder) Request() *TeamsAsyncOperationRequest { + return &TeamsAsyncOperationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsAsyncOperationRequest is request for TeamsAsyncOperation +type TeamsAsyncOperationRequest struct{ BaseRequest } + +// Get performs GET request for TeamsAsyncOperation +func (r *TeamsAsyncOperationRequest) Get(ctx context.Context) (resObj *TeamsAsyncOperation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsAsyncOperation +func (r *TeamsAsyncOperationRequest) Update(ctx context.Context, reqObj *TeamsAsyncOperation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsAsyncOperation +func (r *TeamsAsyncOperationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsCatalogAppRequestBuilder is request builder for TeamsCatalogApp +type TeamsCatalogAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsCatalogAppRequest +func (b *TeamsCatalogAppRequestBuilder) Request() *TeamsCatalogAppRequest { + return &TeamsCatalogAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsCatalogAppRequest is request for TeamsCatalogApp +type TeamsCatalogAppRequest struct{ BaseRequest } + +// Get performs GET request for TeamsCatalogApp +func (r *TeamsCatalogAppRequest) Get(ctx context.Context) (resObj *TeamsCatalogApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsCatalogApp +func (r *TeamsCatalogAppRequest) Update(ctx context.Context, reqObj *TeamsCatalogApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsCatalogApp +func (r *TeamsCatalogAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsTabRequestBuilder is request builder for TeamsTab +type TeamsTabRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsTabRequest +func (b *TeamsTabRequestBuilder) Request() *TeamsTabRequest { + return &TeamsTabRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsTabRequest is request for TeamsTab +type TeamsTabRequest struct{ BaseRequest } + +// Get performs GET request for TeamsTab +func (r *TeamsTabRequest) Get(ctx context.Context) (resObj *TeamsTab, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsTab +func (r *TeamsTabRequest) Update(ctx context.Context, reqObj *TeamsTab) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsTab +func (r *TeamsTabRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TeamsTemplateRequestBuilder is request builder for TeamsTemplate +type TeamsTemplateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamsTemplateRequest +func (b *TeamsTemplateRequestBuilder) Request() *TeamsTemplateRequest { + return &TeamsTemplateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamsTemplateRequest is request for TeamsTemplate +type TeamsTemplateRequest struct{ BaseRequest } + +// Get performs GET request for TeamsTemplate +func (r *TeamsTemplateRequest) Get(ctx context.Context) (resObj *TeamsTemplate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TeamsTemplate +func (r *TeamsTemplateRequest) Update(ctx context.Context, reqObj *TeamsTemplate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TeamsTemplate +func (r *TeamsTemplateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type TeamsAppInstallationUpgradeRequestBuilder struct{ BaseRequestBuilder } + +// Upgrade action undocumented +func (b *TeamsAppInstallationRequestBuilder) Upgrade(reqObj *TeamsAppInstallationUpgradeRequestParameter) *TeamsAppInstallationUpgradeRequestBuilder { + bb := &TeamsAppInstallationUpgradeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/upgrade" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TeamsAppInstallationUpgradeRequest struct{ BaseRequest } + +// +func (b *TeamsAppInstallationUpgradeRequestBuilder) Request() *TeamsAppInstallationUpgradeRequest { + return &TeamsAppInstallationUpgradeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TeamsAppInstallationUpgradeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go new file mode 100644 index 00000000..eed0fadc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TeamworkRequestBuilder is request builder for Teamwork +type TeamworkRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TeamworkRequest +func (b *TeamworkRequestBuilder) Request() *TeamworkRequest { + return &TeamworkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TeamworkRequest is request for Teamwork +type TeamworkRequest struct{ BaseRequest } + +// Get performs GET request for Teamwork +func (r *TeamworkRequest) Get(ctx context.Context) (resObj *Teamwork, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Teamwork +func (r *TeamworkRequest) Update(ctx context.Context, reqObj *Teamwork) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Teamwork +func (r *TeamworkRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go new file mode 100644 index 00000000..0b1e6a4f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TenantSetupInfoRequestBuilder is request builder for TenantSetupInfo +type TenantSetupInfoRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TenantSetupInfoRequest +func (b *TenantSetupInfoRequestBuilder) Request() *TenantSetupInfoRequest { + return &TenantSetupInfoRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TenantSetupInfoRequest is request for TenantSetupInfo +type TenantSetupInfoRequest struct{ BaseRequest } + +// Get performs GET request for TenantSetupInfo +func (r *TenantSetupInfoRequest) Get(ctx context.Context) (resObj *TenantSetupInfo, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TenantSetupInfo +func (r *TenantSetupInfoRequest) Update(ctx context.Context, reqObj *TenantSetupInfo) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TenantSetupInfo +func (r *TenantSetupInfoRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go new file mode 100644 index 00000000..ea6ab90e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TermsAndConditionsRequestBuilder is request builder for TermsAndConditions +type TermsAndConditionsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TermsAndConditionsRequest +func (b *TermsAndConditionsRequestBuilder) Request() *TermsAndConditionsRequest { + return &TermsAndConditionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TermsAndConditionsRequest is request for TermsAndConditions +type TermsAndConditionsRequest struct{ BaseRequest } + +// Get performs GET request for TermsAndConditions +func (r *TermsAndConditionsRequest) Get(ctx context.Context) (resObj *TermsAndConditions, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TermsAndConditions +func (r *TermsAndConditionsRequest) Update(ctx context.Context, reqObj *TermsAndConditions) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TermsAndConditions +func (r *TermsAndConditionsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TermsAndConditionsAcceptanceStatusRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus +type TermsAndConditionsAcceptanceStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TermsAndConditionsAcceptanceStatusRequest +func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusRequest { + return &TermsAndConditionsAcceptanceStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TermsAndConditionsAcceptanceStatusRequest is request for TermsAndConditionsAcceptanceStatus +type TermsAndConditionsAcceptanceStatusRequest struct{ BaseRequest } + +// Get performs GET request for TermsAndConditionsAcceptanceStatus +func (r *TermsAndConditionsAcceptanceStatusRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAcceptanceStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TermsAndConditionsAcceptanceStatus +func (r *TermsAndConditionsAcceptanceStatusRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TermsAndConditionsAcceptanceStatus +func (r *TermsAndConditionsAcceptanceStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TermsAndConditionsAssignmentRequestBuilder is request builder for TermsAndConditionsAssignment +type TermsAndConditionsAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TermsAndConditionsAssignmentRequest +func (b *TermsAndConditionsAssignmentRequestBuilder) Request() *TermsAndConditionsAssignmentRequest { + return &TermsAndConditionsAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TermsAndConditionsAssignmentRequest is request for TermsAndConditionsAssignment +type TermsAndConditionsAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for TermsAndConditionsAssignment +func (r *TermsAndConditionsAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TermsAndConditionsAssignment +func (r *TermsAndConditionsAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TermsAndConditionsAssignment +func (r *TermsAndConditionsAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TermsAndConditionsGroupAssignmentRequestBuilder is request builder for TermsAndConditionsGroupAssignment +type TermsAndConditionsGroupAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TermsAndConditionsGroupAssignmentRequest +func (b *TermsAndConditionsGroupAssignmentRequestBuilder) Request() *TermsAndConditionsGroupAssignmentRequest { + return &TermsAndConditionsGroupAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TermsAndConditionsGroupAssignmentRequest is request for TermsAndConditionsGroupAssignment +type TermsAndConditionsGroupAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for TermsAndConditionsGroupAssignment +func (r *TermsAndConditionsGroupAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsGroupAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TermsAndConditionsGroupAssignment +func (r *TermsAndConditionsGroupAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TermsAndConditionsGroupAssignment +func (r *TermsAndConditionsGroupAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/TextClassificationRequestObjectRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go new file mode 100644 index 00000000..2e8fa2da --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// ThreatAssessmentRequestObjectRequestBuilder is request builder for ThreatAssessmentRequestObject +type ThreatAssessmentRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ThreatAssessmentRequestObjectRequest +func (b *ThreatAssessmentRequestObjectRequestBuilder) Request() *ThreatAssessmentRequestObjectRequest { + return &ThreatAssessmentRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ThreatAssessmentRequestObjectRequest is request for ThreatAssessmentRequestObject +type ThreatAssessmentRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for ThreatAssessmentRequestObject +func (r *ThreatAssessmentRequestObjectRequest) Get(ctx context.Context) (resObj *ThreatAssessmentRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ThreatAssessmentRequestObject +func (r *ThreatAssessmentRequestObjectRequest) Update(ctx context.Context, reqObj *ThreatAssessmentRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ThreatAssessmentRequestObject +func (r *ThreatAssessmentRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// ThreatAssessmentResultRequestBuilder is request builder for ThreatAssessmentResult +type ThreatAssessmentResultRequestBuilder struct{ BaseRequestBuilder } + +// Request returns ThreatAssessmentResultRequest +func (b *ThreatAssessmentResultRequestBuilder) Request() *ThreatAssessmentResultRequest { + return &ThreatAssessmentResultRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// ThreatAssessmentResultRequest is request for ThreatAssessmentResult +type ThreatAssessmentResultRequest struct{ BaseRequest } + +// Get performs GET request for ThreatAssessmentResult +func (r *ThreatAssessmentResultRequest) Get(ctx context.Context) (resObj *ThreatAssessmentResult, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for ThreatAssessmentResult +func (r *ThreatAssessmentResultRequest) Update(ctx context.Context, reqObj *ThreatAssessmentResult) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for ThreatAssessmentResult +func (r *ThreatAssessmentResultRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/ThumbnailSetRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go new file mode 100644 index 00000000..cb821cfd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go @@ -0,0 +1,389 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// TiIndicatorRequestBuilder is request builder for TiIndicator +type TiIndicatorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TiIndicatorRequest +func (b *TiIndicatorRequestBuilder) Request() *TiIndicatorRequest { + return &TiIndicatorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TiIndicatorRequest is request for TiIndicator +type TiIndicatorRequest struct{ BaseRequest } + +// Get performs GET request for TiIndicator +func (r *TiIndicatorRequest) Get(ctx context.Context) (resObj *TiIndicator, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TiIndicator +func (r *TiIndicatorRequest) Update(ctx context.Context, reqObj *TiIndicator) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TiIndicator +func (r *TiIndicatorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder struct{ BaseRequestBuilder } + +// SubmitTiIndicators action undocumented +func (b *SecurityTiIndicatorsCollectionRequestBuilder) SubmitTiIndicators(reqObj *TiIndicatorCollectionSubmitTiIndicatorsRequestParameter) *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder { + bb := &TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/submitTiIndicators" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TiIndicatorCollectionSubmitTiIndicatorsRequest struct{ BaseRequest } + +// +func (b *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionSubmitTiIndicatorsRequest { + return &TiIndicatorCollectionSubmitTiIndicatorsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TiIndicator + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TiIndicator + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]TiIndicator, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Post(ctx context.Context) ([]TiIndicator, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder struct{ BaseRequestBuilder } + +// UpdateTiIndicators action undocumented +func (b *SecurityTiIndicatorsCollectionRequestBuilder) UpdateTiIndicators(reqObj *TiIndicatorCollectionUpdateTiIndicatorsRequestParameter) *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder { + bb := &TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateTiIndicators" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TiIndicatorCollectionUpdateTiIndicatorsRequest struct{ BaseRequest } + +// +func (b *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionUpdateTiIndicatorsRequest { + return &TiIndicatorCollectionUpdateTiIndicatorsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []TiIndicator + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []TiIndicator + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]TiIndicator, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Post(ctx context.Context) ([]TiIndicator, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder struct{ BaseRequestBuilder } + +// DeleteTiIndicators action undocumented +func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicators(reqObj *TiIndicatorCollectionDeleteTiIndicatorsRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder { + bb := &TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/deleteTiIndicators" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TiIndicatorCollectionDeleteTiIndicatorsRequest struct{ BaseRequest } + +// +func (b *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsRequest { + return &TiIndicatorCollectionDeleteTiIndicatorsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResultInfo, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResultInfo + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResultInfo + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]ResultInfo, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Post(ctx context.Context) ([]ResultInfo, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder struct{ BaseRequestBuilder } + +// DeleteTiIndicatorsByExternalID action undocumented +func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicatorsByExternalID(reqObj *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder { + bb := &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/deleteTiIndicatorsByExternalId" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest struct{ BaseRequest } + +// +func (b *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest { + return &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResultInfo, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ResultInfo + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ResultInfo + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) PostN(ctx context.Context, n int) ([]ResultInfo, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Post(ctx context.Context) ([]ResultInfo, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go new file mode 100644 index 00000000..ef3a04c9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go @@ -0,0 +1,104 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TimeOffRequestBuilder is request builder for TimeOff +type TimeOffRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TimeOffRequest +func (b *TimeOffRequestBuilder) Request() *TimeOffRequest { + return &TimeOffRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TimeOffRequest is request for TimeOff +type TimeOffRequest struct{ BaseRequest } + +// Get performs GET request for TimeOff +func (r *TimeOffRequest) Get(ctx context.Context) (resObj *TimeOff, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TimeOff +func (r *TimeOffRequest) Update(ctx context.Context, reqObj *TimeOff) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TimeOff +func (r *TimeOffRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TimeOffReasonRequestBuilder is request builder for TimeOffReason +type TimeOffReasonRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TimeOffReasonRequest +func (b *TimeOffReasonRequestBuilder) Request() *TimeOffReasonRequest { + return &TimeOffReasonRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TimeOffReasonRequest is request for TimeOffReason +type TimeOffReasonRequest struct{ BaseRequest } + +// Get performs GET request for TimeOffReason +func (r *TimeOffReasonRequest) Get(ctx context.Context) (resObj *TimeOffReason, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TimeOffReason +func (r *TimeOffReasonRequest) Update(ctx context.Context, reqObj *TimeOffReason) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TimeOffReason +func (r *TimeOffReasonRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TimeOffRequestObjectRequestBuilder is request builder for TimeOffRequestObject +type TimeOffRequestObjectRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TimeOffRequestObjectRequest +func (b *TimeOffRequestObjectRequestBuilder) Request() *TimeOffRequestObjectRequest { + return &TimeOffRequestObjectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TimeOffRequestObjectRequest is request for TimeOffRequestObject +type TimeOffRequestObjectRequest struct{ BaseRequest } + +// Get performs GET request for TimeOffRequestObject +func (r *TimeOffRequestObjectRequest) Get(ctx context.Context) (resObj *TimeOffRequestObject, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TimeOffRequestObject +func (r *TimeOffRequestObjectRequest) Update(ctx context.Context, reqObj *TimeOffRequestObject) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TimeOffRequestObject +func (r *TimeOffRequestObjectRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go new file mode 100644 index 00000000..ccea21bf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TrendingRequestBuilder is request builder for Trending +type TrendingRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TrendingRequest +func (b *TrendingRequestBuilder) Request() *TrendingRequest { + return &TrendingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TrendingRequest is request for Trending +type TrendingRequest struct{ BaseRequest } + +// Get performs GET request for Trending +func (r *TrendingRequest) Get(ctx context.Context) (resObj *Trending, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Trending +func (r *TrendingRequest) Update(ctx context.Context, reqObj *Trending) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Trending +func (r *TrendingRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go new file mode 100644 index 00000000..7d3e61e2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go @@ -0,0 +1,212 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// TrustFrameworkRequestBuilder is request builder for TrustFramework +type TrustFrameworkRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TrustFrameworkRequest +func (b *TrustFrameworkRequestBuilder) Request() *TrustFrameworkRequest { + return &TrustFrameworkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TrustFrameworkRequest is request for TrustFramework +type TrustFrameworkRequest struct{ BaseRequest } + +// Get performs GET request for TrustFramework +func (r *TrustFrameworkRequest) Get(ctx context.Context) (resObj *TrustFramework, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TrustFramework +func (r *TrustFrameworkRequest) Update(ctx context.Context, reqObj *TrustFramework) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TrustFramework +func (r *TrustFrameworkRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TrustFrameworkKeySetRequestBuilder is request builder for TrustFrameworkKeySet +type TrustFrameworkKeySetRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TrustFrameworkKeySetRequest +func (b *TrustFrameworkKeySetRequestBuilder) Request() *TrustFrameworkKeySetRequest { + return &TrustFrameworkKeySetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TrustFrameworkKeySetRequest is request for TrustFrameworkKeySet +type TrustFrameworkKeySetRequest struct{ BaseRequest } + +// Get performs GET request for TrustFrameworkKeySet +func (r *TrustFrameworkKeySetRequest) Get(ctx context.Context) (resObj *TrustFrameworkKeySet, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TrustFrameworkKeySet +func (r *TrustFrameworkKeySetRequest) Update(ctx context.Context, reqObj *TrustFrameworkKeySet) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TrustFrameworkKeySet +func (r *TrustFrameworkKeySetRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// TrustFrameworkPolicyRequestBuilder is request builder for TrustFrameworkPolicy +type TrustFrameworkPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns TrustFrameworkPolicyRequest +func (b *TrustFrameworkPolicyRequestBuilder) Request() *TrustFrameworkPolicyRequest { + return &TrustFrameworkPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// TrustFrameworkPolicyRequest is request for TrustFrameworkPolicy +type TrustFrameworkPolicyRequest struct{ BaseRequest } + +// Get performs GET request for TrustFrameworkPolicy +func (r *TrustFrameworkPolicyRequest) Get(ctx context.Context) (resObj *TrustFrameworkPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for TrustFrameworkPolicy +func (r *TrustFrameworkPolicyRequest) Update(ctx context.Context, reqObj *TrustFrameworkPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for TrustFrameworkPolicy +func (r *TrustFrameworkPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type TrustFrameworkKeySetGenerateKeyRequestBuilder struct{ BaseRequestBuilder } + +// GenerateKey action undocumented +func (b *TrustFrameworkKeySetRequestBuilder) GenerateKey(reqObj *TrustFrameworkKeySetGenerateKeyRequestParameter) *TrustFrameworkKeySetGenerateKeyRequestBuilder { + bb := &TrustFrameworkKeySetGenerateKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/generateKey" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TrustFrameworkKeySetGenerateKeyRequest struct{ BaseRequest } + +// +func (b *TrustFrameworkKeySetGenerateKeyRequestBuilder) Request() *TrustFrameworkKeySetGenerateKeyRequest { + return &TrustFrameworkKeySetGenerateKeyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TrustFrameworkKeySetGenerateKeyRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type TrustFrameworkKeySetUploadSecretRequestBuilder struct{ BaseRequestBuilder } + +// UploadSecret action undocumented +func (b *TrustFrameworkKeySetRequestBuilder) UploadSecret(reqObj *TrustFrameworkKeySetUploadSecretRequestParameter) *TrustFrameworkKeySetUploadSecretRequestBuilder { + bb := &TrustFrameworkKeySetUploadSecretRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/uploadSecret" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TrustFrameworkKeySetUploadSecretRequest struct{ BaseRequest } + +// +func (b *TrustFrameworkKeySetUploadSecretRequestBuilder) Request() *TrustFrameworkKeySetUploadSecretRequest { + return &TrustFrameworkKeySetUploadSecretRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TrustFrameworkKeySetUploadSecretRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type TrustFrameworkKeySetUploadCertificateRequestBuilder struct{ BaseRequestBuilder } + +// UploadCertificate action undocumented +func (b *TrustFrameworkKeySetRequestBuilder) UploadCertificate(reqObj *TrustFrameworkKeySetUploadCertificateRequestParameter) *TrustFrameworkKeySetUploadCertificateRequestBuilder { + bb := &TrustFrameworkKeySetUploadCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/uploadCertificate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TrustFrameworkKeySetUploadCertificateRequest struct{ BaseRequest } + +// +func (b *TrustFrameworkKeySetUploadCertificateRequestBuilder) Request() *TrustFrameworkKeySetUploadCertificateRequest { + return &TrustFrameworkKeySetUploadCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TrustFrameworkKeySetUploadCertificateRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type TrustFrameworkKeySetUploadPkcs12RequestBuilder struct{ BaseRequestBuilder } + +// UploadPkcs12 action undocumented +func (b *TrustFrameworkKeySetRequestBuilder) UploadPkcs12(reqObj *TrustFrameworkKeySetUploadPkcs12RequestParameter) *TrustFrameworkKeySetUploadPkcs12RequestBuilder { + bb := &TrustFrameworkKeySetUploadPkcs12RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/uploadPkcs12" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type TrustFrameworkKeySetUploadPkcs12Request struct{ BaseRequest } + +// +func (b *TrustFrameworkKeySetUploadPkcs12RequestBuilder) Request() *TrustFrameworkKeySetUploadPkcs12Request { + return &TrustFrameworkKeySetUploadPkcs12Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *TrustFrameworkKeySetUploadPkcs12Request) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go new file mode 100644 index 00000000..a7b67a05 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// UnifiedRoleAssignmentRequestBuilder is request builder for UnifiedRoleAssignment +type UnifiedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UnifiedRoleAssignmentRequest +func (b *UnifiedRoleAssignmentRequestBuilder) Request() *UnifiedRoleAssignmentRequest { + return &UnifiedRoleAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UnifiedRoleAssignmentRequest is request for UnifiedRoleAssignment +type UnifiedRoleAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for UnifiedRoleAssignment +func (r *UnifiedRoleAssignmentRequest) Get(ctx context.Context) (resObj *UnifiedRoleAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UnifiedRoleAssignment +func (r *UnifiedRoleAssignmentRequest) Update(ctx context.Context, reqObj *UnifiedRoleAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UnifiedRoleAssignment +func (r *UnifiedRoleAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UnifiedRoleDefinitionRequestBuilder is request builder for UnifiedRoleDefinition +type UnifiedRoleDefinitionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UnifiedRoleDefinitionRequest +func (b *UnifiedRoleDefinitionRequestBuilder) Request() *UnifiedRoleDefinitionRequest { + return &UnifiedRoleDefinitionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UnifiedRoleDefinitionRequest is request for UnifiedRoleDefinition +type UnifiedRoleDefinitionRequest struct{ BaseRequest } + +// Get performs GET request for UnifiedRoleDefinition +func (r *UnifiedRoleDefinitionRequest) Get(ctx context.Context) (resObj *UnifiedRoleDefinition, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UnifiedRoleDefinition +func (r *UnifiedRoleDefinitionRequest) Update(ctx context.Context, reqObj *UnifiedRoleDefinition) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UnifiedRoleDefinition +func (r *UnifiedRoleDefinitionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/UnitOfMeasureRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go new file mode 100644 index 00000000..236599c0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// UsedInsightRequestBuilder is request builder for UsedInsight +type UsedInsightRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UsedInsightRequest +func (b *UsedInsightRequestBuilder) Request() *UsedInsightRequest { + return &UsedInsightRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UsedInsightRequest is request for UsedInsight +type UsedInsightRequest struct{ BaseRequest } + +// Get performs GET request for UsedInsight +func (r *UsedInsightRequest) Get(ctx context.Context) (resObj *UsedInsight, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UsedInsight +func (r *UsedInsightRequest) Update(ctx context.Context, reqObj *UsedInsight) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UsedInsight +func (r *UsedInsightRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go new file mode 100644 index 00000000..d4639284 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go @@ -0,0 +1,1102 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// UserRequestBuilder is request builder for User +type UserRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserRequest +func (b *UserRequestBuilder) Request() *UserRequest { + return &UserRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserRequest is request for User +type UserRequest struct{ BaseRequest } + +// Get performs GET request for User +func (r *UserRequest) Get(ctx context.Context) (resObj *User, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for User +func (r *UserRequest) Update(ctx context.Context, reqObj *User) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for User +func (r *UserRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserAccountInformationRequestBuilder is request builder for UserAccountInformation +type UserAccountInformationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserAccountInformationRequest +func (b *UserAccountInformationRequestBuilder) Request() *UserAccountInformationRequest { + return &UserAccountInformationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserAccountInformationRequest is request for UserAccountInformation +type UserAccountInformationRequest struct{ BaseRequest } + +// Get performs GET request for UserAccountInformation +func (r *UserAccountInformationRequest) Get(ctx context.Context) (resObj *UserAccountInformation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserAccountInformation +func (r *UserAccountInformationRequest) Update(ctx context.Context, reqObj *UserAccountInformation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserAccountInformation +func (r *UserAccountInformationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserActivityRequestBuilder is request builder for UserActivity +type UserActivityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserActivityRequest +func (b *UserActivityRequestBuilder) Request() *UserActivityRequest { + return &UserActivityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserActivityRequest is request for UserActivity +type UserActivityRequest struct{ BaseRequest } + +// Get performs GET request for UserActivity +func (r *UserActivityRequest) Get(ctx context.Context) (resObj *UserActivity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserActivity +func (r *UserActivityRequest) Update(ctx context.Context, reqObj *UserActivity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserActivity +func (r *UserActivityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserAnalyticsRequestBuilder is request builder for UserAnalytics +type UserAnalyticsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserAnalyticsRequest +func (b *UserAnalyticsRequestBuilder) Request() *UserAnalyticsRequest { + return &UserAnalyticsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserAnalyticsRequest is request for UserAnalytics +type UserAnalyticsRequest struct{ BaseRequest } + +// Get performs GET request for UserAnalytics +func (r *UserAnalyticsRequest) Get(ctx context.Context) (resObj *UserAnalytics, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserAnalytics +func (r *UserAnalyticsRequest) Update(ctx context.Context, reqObj *UserAnalytics) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserAnalytics +func (r *UserAnalyticsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserAppInstallStatusRequestBuilder is request builder for UserAppInstallStatus +type UserAppInstallStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserAppInstallStatusRequest +func (b *UserAppInstallStatusRequestBuilder) Request() *UserAppInstallStatusRequest { + return &UserAppInstallStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserAppInstallStatusRequest is request for UserAppInstallStatus +type UserAppInstallStatusRequest struct{ BaseRequest } + +// Get performs GET request for UserAppInstallStatus +func (r *UserAppInstallStatusRequest) Get(ctx context.Context) (resObj *UserAppInstallStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserAppInstallStatus +func (r *UserAppInstallStatusRequest) Update(ctx context.Context, reqObj *UserAppInstallStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserAppInstallStatus +func (r *UserAppInstallStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserConfigurationRequestBuilder is request builder for UserConfiguration +type UserConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserConfigurationRequest +func (b *UserConfigurationRequestBuilder) Request() *UserConfigurationRequest { + return &UserConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserConfigurationRequest is request for UserConfiguration +type UserConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for UserConfiguration +func (r *UserConfigurationRequest) Get(ctx context.Context) (resObj *UserConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserConfiguration +func (r *UserConfigurationRequest) Update(ctx context.Context, reqObj *UserConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserConfiguration +func (r *UserConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserCredentialUsageDetailsRequestBuilder is request builder for UserCredentialUsageDetails +type UserCredentialUsageDetailsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserCredentialUsageDetailsRequest +func (b *UserCredentialUsageDetailsRequestBuilder) Request() *UserCredentialUsageDetailsRequest { + return &UserCredentialUsageDetailsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserCredentialUsageDetailsRequest is request for UserCredentialUsageDetails +type UserCredentialUsageDetailsRequest struct{ BaseRequest } + +// Get performs GET request for UserCredentialUsageDetails +func (r *UserCredentialUsageDetailsRequest) Get(ctx context.Context) (resObj *UserCredentialUsageDetails, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserCredentialUsageDetails +func (r *UserCredentialUsageDetailsRequest) Update(ctx context.Context, reqObj *UserCredentialUsageDetails) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserCredentialUsageDetails +func (r *UserCredentialUsageDetailsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsBaselineRequestBuilder is request builder for UserExperienceAnalyticsBaseline +type UserExperienceAnalyticsBaselineRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsBaselineRequest +func (b *UserExperienceAnalyticsBaselineRequestBuilder) Request() *UserExperienceAnalyticsBaselineRequest { + return &UserExperienceAnalyticsBaselineRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsBaselineRequest is request for UserExperienceAnalyticsBaseline +type UserExperienceAnalyticsBaselineRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsBaseline +func (r *UserExperienceAnalyticsBaselineRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsBaseline, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsBaseline +func (r *UserExperienceAnalyticsBaselineRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsBaseline +func (r *UserExperienceAnalyticsBaselineRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsCategoryRequestBuilder is request builder for UserExperienceAnalyticsCategory +type UserExperienceAnalyticsCategoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsCategoryRequest +func (b *UserExperienceAnalyticsCategoryRequestBuilder) Request() *UserExperienceAnalyticsCategoryRequest { + return &UserExperienceAnalyticsCategoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsCategoryRequest is request for UserExperienceAnalyticsCategory +type UserExperienceAnalyticsCategoryRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsCategory +func (r *UserExperienceAnalyticsCategoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsCategory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsCategory +func (r *UserExperienceAnalyticsCategoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsCategory +func (r *UserExperienceAnalyticsCategoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsDevicePerformanceRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance +type UserExperienceAnalyticsDevicePerformanceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsDevicePerformanceRequest +func (b *UserExperienceAnalyticsDevicePerformanceRequestBuilder) Request() *UserExperienceAnalyticsDevicePerformanceRequest { + return &UserExperienceAnalyticsDevicePerformanceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsDevicePerformanceRequest is request for UserExperienceAnalyticsDevicePerformance +type UserExperienceAnalyticsDevicePerformanceRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsDevicePerformance +func (r *UserExperienceAnalyticsDevicePerformanceRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDevicePerformance, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsDevicePerformance +func (r *UserExperienceAnalyticsDevicePerformanceRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsDevicePerformance +func (r *UserExperienceAnalyticsDevicePerformanceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory +type UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsDeviceStartupHistoryRequest +func (b *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder) Request() *UserExperienceAnalyticsDeviceStartupHistoryRequest { + return &UserExperienceAnalyticsDeviceStartupHistoryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsDeviceStartupHistoryRequest is request for UserExperienceAnalyticsDeviceStartupHistory +type UserExperienceAnalyticsDeviceStartupHistoryRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory +func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsDeviceStartupHistory +func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsDeviceStartupHistory +func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsMetricRequestBuilder is request builder for UserExperienceAnalyticsMetric +type UserExperienceAnalyticsMetricRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsMetricRequest +func (b *UserExperienceAnalyticsMetricRequestBuilder) Request() *UserExperienceAnalyticsMetricRequest { + return &UserExperienceAnalyticsMetricRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsMetricRequest is request for UserExperienceAnalyticsMetric +type UserExperienceAnalyticsMetricRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsMetric +func (r *UserExperienceAnalyticsMetricRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsMetric, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsMetric +func (r *UserExperienceAnalyticsMetricRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsMetric +func (r *UserExperienceAnalyticsMetricRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsOverviewRequestBuilder is request builder for UserExperienceAnalyticsOverview +type UserExperienceAnalyticsOverviewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsOverviewRequest +func (b *UserExperienceAnalyticsOverviewRequestBuilder) Request() *UserExperienceAnalyticsOverviewRequest { + return &UserExperienceAnalyticsOverviewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsOverviewRequest is request for UserExperienceAnalyticsOverview +type UserExperienceAnalyticsOverviewRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsOverview +func (r *UserExperienceAnalyticsOverviewRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsOverview, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsOverview +func (r *UserExperienceAnalyticsOverviewRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsOverview) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsOverview +func (r *UserExperienceAnalyticsOverviewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserExperienceAnalyticsRegressionSummaryRequestBuilder is request builder for UserExperienceAnalyticsRegressionSummary +type UserExperienceAnalyticsRegressionSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserExperienceAnalyticsRegressionSummaryRequest +func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryRequest { + return &UserExperienceAnalyticsRegressionSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserExperienceAnalyticsRegressionSummaryRequest is request for UserExperienceAnalyticsRegressionSummary +type UserExperienceAnalyticsRegressionSummaryRequest struct{ BaseRequest } + +// Get performs GET request for UserExperienceAnalyticsRegressionSummary +func (r *UserExperienceAnalyticsRegressionSummaryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsRegressionSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserExperienceAnalyticsRegressionSummary +func (r *UserExperienceAnalyticsRegressionSummaryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsRegressionSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserExperienceAnalyticsRegressionSummary +func (r *UserExperienceAnalyticsRegressionSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserInstallStateSummaryRequestBuilder is request builder for UserInstallStateSummary +type UserInstallStateSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserInstallStateSummaryRequest +func (b *UserInstallStateSummaryRequestBuilder) Request() *UserInstallStateSummaryRequest { + return &UserInstallStateSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserInstallStateSummaryRequest is request for UserInstallStateSummary +type UserInstallStateSummaryRequest struct{ BaseRequest } + +// Get performs GET request for UserInstallStateSummary +func (r *UserInstallStateSummaryRequest) Get(ctx context.Context) (resObj *UserInstallStateSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserInstallStateSummary +func (r *UserInstallStateSummaryRequest) Update(ctx context.Context, reqObj *UserInstallStateSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserInstallStateSummary +func (r *UserInstallStateSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserPFXCertificateRequestBuilder is request builder for UserPFXCertificate +type UserPFXCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserPFXCertificateRequest +func (b *UserPFXCertificateRequestBuilder) Request() *UserPFXCertificateRequest { + return &UserPFXCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserPFXCertificateRequest is request for UserPFXCertificate +type UserPFXCertificateRequest struct{ BaseRequest } + +// Get performs GET request for UserPFXCertificate +func (r *UserPFXCertificateRequest) Get(ctx context.Context) (resObj *UserPFXCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserPFXCertificate +func (r *UserPFXCertificateRequest) Update(ctx context.Context, reqObj *UserPFXCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserPFXCertificate +func (r *UserPFXCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserSecurityProfileRequestBuilder is request builder for UserSecurityProfile +type UserSecurityProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserSecurityProfileRequest +func (b *UserSecurityProfileRequestBuilder) Request() *UserSecurityProfileRequest { + return &UserSecurityProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserSecurityProfileRequest is request for UserSecurityProfile +type UserSecurityProfileRequest struct{ BaseRequest } + +// Get performs GET request for UserSecurityProfile +func (r *UserSecurityProfileRequest) Get(ctx context.Context) (resObj *UserSecurityProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserSecurityProfile +func (r *UserSecurityProfileRequest) Update(ctx context.Context, reqObj *UserSecurityProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserSecurityProfile +func (r *UserSecurityProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserSettingsRequestBuilder is request builder for UserSettings +type UserSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserSettingsRequest +func (b *UserSettingsRequestBuilder) Request() *UserSettingsRequest { + return &UserSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserSettingsRequest is request for UserSettings +type UserSettingsRequest struct{ BaseRequest } + +// Get performs GET request for UserSettings +func (r *UserSettingsRequest) Get(ctx context.Context) (resObj *UserSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserSettings +func (r *UserSettingsRequest) Update(ctx context.Context, reqObj *UserSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserSettings +func (r *UserSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// UserTeamworkRequestBuilder is request builder for UserTeamwork +type UserTeamworkRequestBuilder struct{ BaseRequestBuilder } + +// Request returns UserTeamworkRequest +func (b *UserTeamworkRequestBuilder) Request() *UserTeamworkRequest { + return &UserTeamworkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// UserTeamworkRequest is request for UserTeamwork +type UserTeamworkRequest struct{ BaseRequest } + +// Get performs GET request for UserTeamwork +func (r *UserTeamworkRequest) Get(ctx context.Context) (resObj *UserTeamwork, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for UserTeamwork +func (r *UserTeamworkRequest) Update(ctx context.Context, reqObj *UserTeamwork) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for UserTeamwork +func (r *UserTeamworkRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type UserAssignLicenseRequestBuilder struct{ BaseRequestBuilder } + +// AssignLicense action undocumented +func (b *UserRequestBuilder) AssignLicense(reqObj *UserAssignLicenseRequestParameter) *UserAssignLicenseRequestBuilder { + bb := &UserAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assignLicense" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserAssignLicenseRequest struct{ BaseRequest } + +// +func (b *UserAssignLicenseRequestBuilder) Request() *UserAssignLicenseRequest { + return &UserAssignLicenseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserAssignLicenseRequest) Post(ctx context.Context) (resObj *User, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type UserChangePasswordRequestBuilder struct{ BaseRequestBuilder } + +// ChangePassword action undocumented +func (b *UserRequestBuilder) ChangePassword(reqObj *UserChangePasswordRequestParameter) *UserChangePasswordRequestBuilder { + bb := &UserChangePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/changePassword" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserChangePasswordRequest struct{ BaseRequest } + +// +func (b *UserChangePasswordRequestBuilder) Request() *UserChangePasswordRequest { + return &UserChangePasswordRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserChangePasswordRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type UserInvalidateAllRefreshTokensRequestBuilder struct{ BaseRequestBuilder } + +// InvalidateAllRefreshTokens action undocumented +func (b *UserRequestBuilder) InvalidateAllRefreshTokens(reqObj *UserInvalidateAllRefreshTokensRequestParameter) *UserInvalidateAllRefreshTokensRequestBuilder { + bb := &UserInvalidateAllRefreshTokensRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/invalidateAllRefreshTokens" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserInvalidateAllRefreshTokensRequest struct{ BaseRequest } + +// +func (b *UserInvalidateAllRefreshTokensRequestBuilder) Request() *UserInvalidateAllRefreshTokensRequest { + return &UserInvalidateAllRefreshTokensRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserInvalidateAllRefreshTokensRequest) Post(ctx context.Context) (resObj *bool, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type UserRevokeSignInSessionsRequestBuilder struct{ BaseRequestBuilder } + +// RevokeSignInSessions action undocumented +func (b *UserRequestBuilder) RevokeSignInSessions(reqObj *UserRevokeSignInSessionsRequestParameter) *UserRevokeSignInSessionsRequestBuilder { + bb := &UserRevokeSignInSessionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeSignInSessions" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserRevokeSignInSessionsRequest struct{ BaseRequest } + +// +func (b *UserRevokeSignInSessionsRequestBuilder) Request() *UserRevokeSignInSessionsRequest { + return &UserRevokeSignInSessionsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserRevokeSignInSessionsRequest) Post(ctx context.Context) (resObj *bool, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type UserReprocessLicenseAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// ReprocessLicenseAssignment action undocumented +func (b *UserRequestBuilder) ReprocessLicenseAssignment(reqObj *UserReprocessLicenseAssignmentRequestParameter) *UserReprocessLicenseAssignmentRequestBuilder { + bb := &UserReprocessLicenseAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reprocessLicenseAssignment" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserReprocessLicenseAssignmentRequest struct{ BaseRequest } + +// +func (b *UserReprocessLicenseAssignmentRequestBuilder) Request() *UserReprocessLicenseAssignmentRequest { + return &UserReprocessLicenseAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserReprocessLicenseAssignmentRequest) Post(ctx context.Context) (resObj *User, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type UserFindMeetingTimesRequestBuilder struct{ BaseRequestBuilder } + +// FindMeetingTimes action undocumented +func (b *UserRequestBuilder) FindMeetingTimes(reqObj *UserFindMeetingTimesRequestParameter) *UserFindMeetingTimesRequestBuilder { + bb := &UserFindMeetingTimesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/findMeetingTimes" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserFindMeetingTimesRequest struct{ BaseRequest } + +// +func (b *UserFindMeetingTimesRequestBuilder) Request() *UserFindMeetingTimesRequest { + return &UserFindMeetingTimesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserFindMeetingTimesRequest) Post(ctx context.Context) (resObj *MeetingTimeSuggestionsResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type UserSendMailRequestBuilder struct{ BaseRequestBuilder } + +// SendMail action undocumented +func (b *UserRequestBuilder) SendMail(reqObj *UserSendMailRequestParameter) *UserSendMailRequestBuilder { + bb := &UserSendMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sendMail" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserSendMailRequest struct{ BaseRequest } + +// +func (b *UserSendMailRequestBuilder) Request() *UserSendMailRequest { + return &UserSendMailRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserSendMailRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type UserGetMailTipsRequestBuilder struct{ BaseRequestBuilder } + +// GetMailTips action undocumented +func (b *UserRequestBuilder) GetMailTips(reqObj *UserGetMailTipsRequestParameter) *UserGetMailTipsRequestBuilder { + bb := &UserGetMailTipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/getMailTips" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserGetMailTipsRequest struct{ BaseRequest } + +// +func (b *UserGetMailTipsRequestBuilder) Request() *UserGetMailTipsRequest { + return &UserGetMailTipsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserGetMailTipsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailTips, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []MailTips + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []MailTips + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *UserGetMailTipsRequest) PostN(ctx context.Context, n int) ([]MailTips, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *UserGetMailTipsRequest) Post(ctx context.Context) ([]MailTips, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type UserTranslateExchangeIDsRequestBuilder struct{ BaseRequestBuilder } + +// TranslateExchangeIDs action undocumented +func (b *UserRequestBuilder) TranslateExchangeIDs(reqObj *UserTranslateExchangeIDsRequestParameter) *UserTranslateExchangeIDsRequestBuilder { + bb := &UserTranslateExchangeIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/translateExchangeIds" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserTranslateExchangeIDsRequest struct{ BaseRequest } + +// +func (b *UserTranslateExchangeIDsRequestBuilder) Request() *UserTranslateExchangeIDsRequest { + return &UserTranslateExchangeIDsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserTranslateExchangeIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConvertIDResult, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []ConvertIDResult + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []ConvertIDResult + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *UserTranslateExchangeIDsRequest) PostN(ctx context.Context, n int) ([]ConvertIDResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *UserTranslateExchangeIDsRequest) Post(ctx context.Context) ([]ConvertIDResult, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type UserRemoveAllDevicesFromManagementRequestBuilder struct{ BaseRequestBuilder } + +// RemoveAllDevicesFromManagement action undocumented +func (b *UserRequestBuilder) RemoveAllDevicesFromManagement(reqObj *UserRemoveAllDevicesFromManagementRequestParameter) *UserRemoveAllDevicesFromManagementRequestBuilder { + bb := &UserRemoveAllDevicesFromManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/removeAllDevicesFromManagement" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserRemoveAllDevicesFromManagementRequest struct{ BaseRequest } + +// +func (b *UserRemoveAllDevicesFromManagementRequestBuilder) Request() *UserRemoveAllDevicesFromManagementRequest { + return &UserRemoveAllDevicesFromManagementRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserRemoveAllDevicesFromManagementRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type UserWipeManagedAppRegistrationByDeviceTagRequestBuilder struct{ BaseRequestBuilder } + +// WipeManagedAppRegistrationByDeviceTag action undocumented +func (b *UserRequestBuilder) WipeManagedAppRegistrationByDeviceTag(reqObj *UserWipeManagedAppRegistrationByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder { + bb := &UserWipeManagedAppRegistrationByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationByDeviceTag" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserWipeManagedAppRegistrationByDeviceTagRequest struct{ BaseRequest } + +// +func (b *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationByDeviceTagRequest { + return &UserWipeManagedAppRegistrationByDeviceTagRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserWipeManagedAppRegistrationByDeviceTagRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder struct{ BaseRequestBuilder } + +// WipeManagedAppRegistrationsByDeviceTag action undocumented +func (b *UserRequestBuilder) WipeManagedAppRegistrationsByDeviceTag(reqObj *UserWipeManagedAppRegistrationsByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder { + bb := &UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationsByDeviceTag" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserWipeManagedAppRegistrationsByDeviceTagRequest struct{ BaseRequest } + +// +func (b *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationsByDeviceTagRequest { + return &UserWipeManagedAppRegistrationsByDeviceTagRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserWipeManagedAppRegistrationsByDeviceTagRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type UserExportPersonalDataRequestBuilder struct{ BaseRequestBuilder } + +// ExportPersonalData action undocumented +func (b *UserRequestBuilder) ExportPersonalData(reqObj *UserExportPersonalDataRequestParameter) *UserExportPersonalDataRequestBuilder { + bb := &UserExportPersonalDataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/exportPersonalData" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type UserExportPersonalDataRequest struct{ BaseRequest } + +// +func (b *UserExportPersonalDataRequestBuilder) Request() *UserExportPersonalDataRequest { + return &UserExportPersonalDataRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *UserExportPersonalDataRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go new file mode 100644 index 00000000..6f1f2dca --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go @@ -0,0 +1,91 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// VPPTokenRequestBuilder is request builder for VPPToken +type VPPTokenRequestBuilder struct{ BaseRequestBuilder } + +// Request returns VPPTokenRequest +func (b *VPPTokenRequestBuilder) Request() *VPPTokenRequest { + return &VPPTokenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// VPPTokenRequest is request for VPPToken +type VPPTokenRequest struct{ BaseRequest } + +// Get performs GET request for VPPToken +func (r *VPPTokenRequest) Get(ctx context.Context) (resObj *VPPToken, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for VPPToken +func (r *VPPTokenRequest) Update(ctx context.Context, reqObj *VPPToken) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for VPPToken +func (r *VPPTokenRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type VPPTokenSyncLicensesRequestBuilder struct{ BaseRequestBuilder } + +// SyncLicenses action undocumented +func (b *VPPTokenRequestBuilder) SyncLicenses(reqObj *VPPTokenSyncLicensesRequestParameter) *VPPTokenSyncLicensesRequestBuilder { + bb := &VPPTokenSyncLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syncLicenses" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type VPPTokenSyncLicensesRequest struct{ BaseRequest } + +// +func (b *VPPTokenSyncLicensesRequestBuilder) Request() *VPPTokenSyncLicensesRequest { + return &VPPTokenSyncLicensesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *VPPTokenSyncLicensesRequest) Post(ctx context.Context) (resObj *VPPToken, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type VPPTokenRevokeLicensesRequestBuilder struct{ BaseRequestBuilder } + +// RevokeLicenses action undocumented +func (b *VPPTokenRequestBuilder) RevokeLicenses(reqObj *VPPTokenRevokeLicensesRequestParameter) *VPPTokenRevokeLicensesRequestBuilder { + bb := &VPPTokenRevokeLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/revokeLicenses" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type VPPTokenRevokeLicensesRequest struct{ BaseRequest } + +// +func (b *VPPTokenRevokeLicensesRequestBuilder) Request() *VPPTokenRevokeLicensesRequest { + return &VPPTokenRevokeLicensesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *VPPTokenRevokeLicensesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go new file mode 100644 index 00000000..99838274 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go @@ -0,0 +1,38 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// VendorRequestBuilder is request builder for Vendor +type VendorRequestBuilder struct{ BaseRequestBuilder } + +// Request returns VendorRequest +func (b *VendorRequestBuilder) Request() *VendorRequest { + return &VendorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// VendorRequest is request for Vendor +type VendorRequest struct{ BaseRequest } + +// Get performs GET request for Vendor +func (r *VendorRequest) Get(ctx context.Context) (resObj *Vendor, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Vendor +func (r *VendorRequest) Update(ctx context.Context, reqObj *Vendor) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Vendor +func (r *VendorRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WebAccountRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go new file mode 100644 index 00000000..796cd176 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go @@ -0,0 +1,1558 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import ( + "context" + "fmt" + "io/ioutil" + "net/http" + + "github.com/yaegashi/msgraph.go/jsonx" +) + +// WindowsAutopilotDeploymentProfileRequestBuilder is request builder for WindowsAutopilotDeploymentProfile +type WindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsAutopilotDeploymentProfileRequest +func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Request() *WindowsAutopilotDeploymentProfileRequest { + return &WindowsAutopilotDeploymentProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsAutopilotDeploymentProfileRequest is request for WindowsAutopilotDeploymentProfile +type WindowsAutopilotDeploymentProfileRequest struct{ BaseRequest } + +// Get performs GET request for WindowsAutopilotDeploymentProfile +func (r *WindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsAutopilotDeploymentProfile +func (r *WindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsAutopilotDeploymentProfile +func (r *WindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsAutopilotDeploymentProfileAssignmentRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment +type WindowsAutopilotDeploymentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsAutopilotDeploymentProfileAssignmentRequest +func (b *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentRequest { + return &WindowsAutopilotDeploymentProfileAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsAutopilotDeploymentProfileAssignmentRequest is request for WindowsAutopilotDeploymentProfileAssignment +type WindowsAutopilotDeploymentProfileAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment +func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsAutopilotDeploymentProfileAssignment +func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsAutopilotDeploymentProfileAssignment +func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsAutopilotDeviceIdentityRequestBuilder is request builder for WindowsAutopilotDeviceIdentity +type WindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsAutopilotDeviceIdentityRequest +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) Request() *WindowsAutopilotDeviceIdentityRequest { + return &WindowsAutopilotDeviceIdentityRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsAutopilotDeviceIdentityRequest is request for WindowsAutopilotDeviceIdentity +type WindowsAutopilotDeviceIdentityRequest struct{ BaseRequest } + +// Get performs GET request for WindowsAutopilotDeviceIdentity +func (r *WindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeviceIdentity, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsAutopilotDeviceIdentity +func (r *WindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsAutopilotDeviceIdentity +func (r *WindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsAutopilotSettingsRequestBuilder is request builder for WindowsAutopilotSettings +type WindowsAutopilotSettingsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsAutopilotSettingsRequest +func (b *WindowsAutopilotSettingsRequestBuilder) Request() *WindowsAutopilotSettingsRequest { + return &WindowsAutopilotSettingsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsAutopilotSettingsRequest is request for WindowsAutopilotSettings +type WindowsAutopilotSettingsRequest struct{ BaseRequest } + +// Get performs GET request for WindowsAutopilotSettings +func (r *WindowsAutopilotSettingsRequest) Get(ctx context.Context) (resObj *WindowsAutopilotSettings, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsAutopilotSettings +func (r *WindowsAutopilotSettingsRequest) Update(ctx context.Context, reqObj *WindowsAutopilotSettings) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsAutopilotSettings +func (r *WindowsAutopilotSettingsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsCertificateProfileBaseRequestBuilder is request builder for WindowsCertificateProfileBase +type WindowsCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsCertificateProfileBaseRequest +func (b *WindowsCertificateProfileBaseRequestBuilder) Request() *WindowsCertificateProfileBaseRequest { + return &WindowsCertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsCertificateProfileBaseRequest is request for WindowsCertificateProfileBase +type WindowsCertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for WindowsCertificateProfileBase +func (r *WindowsCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *WindowsCertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsCertificateProfileBase +func (r *WindowsCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *WindowsCertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsCertificateProfileBase +func (r *WindowsCertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy +type WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDefenderApplicationControlSupplementalPolicyRequest +func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDefenderApplicationControlSupplementalPolicyRequest is request for WindowsDefenderApplicationControlSupplementalPolicy +type WindowsDefenderApplicationControlSupplementalPolicyRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy +func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicy +func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicy +func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment +type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest +func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment +type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyAssignment +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyAssignment +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest +func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest +func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDeviceMalwareStateRequestBuilder is request builder for WindowsDeviceMalwareState +type WindowsDeviceMalwareStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDeviceMalwareStateRequest +func (b *WindowsDeviceMalwareStateRequestBuilder) Request() *WindowsDeviceMalwareStateRequest { + return &WindowsDeviceMalwareStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDeviceMalwareStateRequest is request for WindowsDeviceMalwareState +type WindowsDeviceMalwareStateRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDeviceMalwareState +func (r *WindowsDeviceMalwareStateRequest) Get(ctx context.Context) (resObj *WindowsDeviceMalwareState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDeviceMalwareState +func (r *WindowsDeviceMalwareStateRequest) Update(ctx context.Context, reqObj *WindowsDeviceMalwareState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDeviceMalwareState +func (r *WindowsDeviceMalwareStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsDomainJoinConfigurationRequestBuilder is request builder for WindowsDomainJoinConfiguration +type WindowsDomainJoinConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsDomainJoinConfigurationRequest +func (b *WindowsDomainJoinConfigurationRequestBuilder) Request() *WindowsDomainJoinConfigurationRequest { + return &WindowsDomainJoinConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsDomainJoinConfigurationRequest is request for WindowsDomainJoinConfiguration +type WindowsDomainJoinConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsDomainJoinConfiguration +func (r *WindowsDomainJoinConfigurationRequest) Get(ctx context.Context) (resObj *WindowsDomainJoinConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsDomainJoinConfiguration +func (r *WindowsDomainJoinConfigurationRequest) Update(ctx context.Context, reqObj *WindowsDomainJoinConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsDomainJoinConfiguration +func (r *WindowsDomainJoinConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsFeatureUpdateProfileRequestBuilder is request builder for WindowsFeatureUpdateProfile +type WindowsFeatureUpdateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsFeatureUpdateProfileRequest +func (b *WindowsFeatureUpdateProfileRequestBuilder) Request() *WindowsFeatureUpdateProfileRequest { + return &WindowsFeatureUpdateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsFeatureUpdateProfileRequest is request for WindowsFeatureUpdateProfile +type WindowsFeatureUpdateProfileRequest struct{ BaseRequest } + +// Get performs GET request for WindowsFeatureUpdateProfile +func (r *WindowsFeatureUpdateProfileRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsFeatureUpdateProfile +func (r *WindowsFeatureUpdateProfileRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsFeatureUpdateProfile +func (r *WindowsFeatureUpdateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsFeatureUpdateProfileAssignmentRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment +type WindowsFeatureUpdateProfileAssignmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsFeatureUpdateProfileAssignmentRequest +func (b *WindowsFeatureUpdateProfileAssignmentRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentRequest { + return &WindowsFeatureUpdateProfileAssignmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsFeatureUpdateProfileAssignmentRequest is request for WindowsFeatureUpdateProfileAssignment +type WindowsFeatureUpdateProfileAssignmentRequest struct{ BaseRequest } + +// Get performs GET request for WindowsFeatureUpdateProfileAssignment +func (r *WindowsFeatureUpdateProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfileAssignment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsFeatureUpdateProfileAssignment +func (r *WindowsFeatureUpdateProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsFeatureUpdateProfileAssignment +func (r *WindowsFeatureUpdateProfileAssignmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionRequestBuilder is request builder for WindowsInformationProtection +type WindowsInformationProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionRequest +func (b *WindowsInformationProtectionRequestBuilder) Request() *WindowsInformationProtectionRequest { + return &WindowsInformationProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionRequest is request for WindowsInformationProtection +type WindowsInformationProtectionRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtection +func (r *WindowsInformationProtectionRequest) Get(ctx context.Context) (resObj *WindowsInformationProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtection +func (r *WindowsInformationProtectionRequest) Update(ctx context.Context, reqObj *WindowsInformationProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtection +func (r *WindowsInformationProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionAppLearningSummaryRequestBuilder is request builder for WindowsInformationProtectionAppLearningSummary +type WindowsInformationProtectionAppLearningSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionAppLearningSummaryRequest +func (b *WindowsInformationProtectionAppLearningSummaryRequestBuilder) Request() *WindowsInformationProtectionAppLearningSummaryRequest { + return &WindowsInformationProtectionAppLearningSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionAppLearningSummaryRequest is request for WindowsInformationProtectionAppLearningSummary +type WindowsInformationProtectionAppLearningSummaryRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionAppLearningSummary +func (r *WindowsInformationProtectionAppLearningSummaryRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionAppLearningSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionAppLearningSummary +func (r *WindowsInformationProtectionAppLearningSummaryRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionAppLearningSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionAppLearningSummary +func (r *WindowsInformationProtectionAppLearningSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionAppLockerFileRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile +type WindowsInformationProtectionAppLockerFileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionAppLockerFileRequest +func (b *WindowsInformationProtectionAppLockerFileRequestBuilder) Request() *WindowsInformationProtectionAppLockerFileRequest { + return &WindowsInformationProtectionAppLockerFileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionAppLockerFileRequest is request for WindowsInformationProtectionAppLockerFile +type WindowsInformationProtectionAppLockerFileRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionAppLockerFile +func (r *WindowsInformationProtectionAppLockerFileRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionAppLockerFile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionAppLockerFile +func (r *WindowsInformationProtectionAppLockerFileRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionAppLockerFile +func (r *WindowsInformationProtectionAppLockerFileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionDeviceRegistrationRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration +type WindowsInformationProtectionDeviceRegistrationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionDeviceRegistrationRequest +func (b *WindowsInformationProtectionDeviceRegistrationRequestBuilder) Request() *WindowsInformationProtectionDeviceRegistrationRequest { + return &WindowsInformationProtectionDeviceRegistrationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionDeviceRegistrationRequest is request for WindowsInformationProtectionDeviceRegistration +type WindowsInformationProtectionDeviceRegistrationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionDeviceRegistration +func (r *WindowsInformationProtectionDeviceRegistrationRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionDeviceRegistration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionDeviceRegistration +func (r *WindowsInformationProtectionDeviceRegistrationRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionDeviceRegistration +func (r *WindowsInformationProtectionDeviceRegistrationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionNetworkLearningSummaryRequestBuilder is request builder for WindowsInformationProtectionNetworkLearningSummary +type WindowsInformationProtectionNetworkLearningSummaryRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionNetworkLearningSummaryRequest +func (b *WindowsInformationProtectionNetworkLearningSummaryRequestBuilder) Request() *WindowsInformationProtectionNetworkLearningSummaryRequest { + return &WindowsInformationProtectionNetworkLearningSummaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionNetworkLearningSummaryRequest is request for WindowsInformationProtectionNetworkLearningSummary +type WindowsInformationProtectionNetworkLearningSummaryRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary +func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionNetworkLearningSummary, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionNetworkLearningSummary +func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionNetworkLearningSummary) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionNetworkLearningSummary +func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionPolicyRequestBuilder is request builder for WindowsInformationProtectionPolicy +type WindowsInformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionPolicyRequest +func (b *WindowsInformationProtectionPolicyRequestBuilder) Request() *WindowsInformationProtectionPolicyRequest { + return &WindowsInformationProtectionPolicyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionPolicyRequest is request for WindowsInformationProtectionPolicy +type WindowsInformationProtectionPolicyRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionPolicy +func (r *WindowsInformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionPolicy, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionPolicy +func (r *WindowsInformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionPolicy) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionPolicy +func (r *WindowsInformationProtectionPolicyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsInformationProtectionWipeActionRequestBuilder is request builder for WindowsInformationProtectionWipeAction +type WindowsInformationProtectionWipeActionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsInformationProtectionWipeActionRequest +func (b *WindowsInformationProtectionWipeActionRequestBuilder) Request() *WindowsInformationProtectionWipeActionRequest { + return &WindowsInformationProtectionWipeActionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsInformationProtectionWipeActionRequest is request for WindowsInformationProtectionWipeAction +type WindowsInformationProtectionWipeActionRequest struct{ BaseRequest } + +// Get performs GET request for WindowsInformationProtectionWipeAction +func (r *WindowsInformationProtectionWipeActionRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionWipeAction, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsInformationProtectionWipeAction +func (r *WindowsInformationProtectionWipeActionRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionWipeAction) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsInformationProtectionWipeAction +func (r *WindowsInformationProtectionWipeActionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsMalwareInformationRequestBuilder is request builder for WindowsMalwareInformation +type WindowsMalwareInformationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsMalwareInformationRequest +func (b *WindowsMalwareInformationRequestBuilder) Request() *WindowsMalwareInformationRequest { + return &WindowsMalwareInformationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsMalwareInformationRequest is request for WindowsMalwareInformation +type WindowsMalwareInformationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsMalwareInformation +func (r *WindowsMalwareInformationRequest) Get(ctx context.Context) (resObj *WindowsMalwareInformation, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsMalwareInformation +func (r *WindowsMalwareInformationRequest) Update(ctx context.Context, reqObj *WindowsMalwareInformation) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsMalwareInformation +func (r *WindowsMalwareInformationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsManagementAppRequestBuilder is request builder for WindowsManagementApp +type WindowsManagementAppRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsManagementAppRequest +func (b *WindowsManagementAppRequestBuilder) Request() *WindowsManagementAppRequest { + return &WindowsManagementAppRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsManagementAppRequest is request for WindowsManagementApp +type WindowsManagementAppRequest struct{ BaseRequest } + +// Get performs GET request for WindowsManagementApp +func (r *WindowsManagementAppRequest) Get(ctx context.Context) (resObj *WindowsManagementApp, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsManagementApp +func (r *WindowsManagementAppRequest) Update(ctx context.Context, reqObj *WindowsManagementApp) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsManagementApp +func (r *WindowsManagementAppRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsManagementAppHealthStateRequestBuilder is request builder for WindowsManagementAppHealthState +type WindowsManagementAppHealthStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsManagementAppHealthStateRequest +func (b *WindowsManagementAppHealthStateRequestBuilder) Request() *WindowsManagementAppHealthStateRequest { + return &WindowsManagementAppHealthStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsManagementAppHealthStateRequest is request for WindowsManagementAppHealthState +type WindowsManagementAppHealthStateRequest struct{ BaseRequest } + +// Get performs GET request for WindowsManagementAppHealthState +func (r *WindowsManagementAppHealthStateRequest) Get(ctx context.Context) (resObj *WindowsManagementAppHealthState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsManagementAppHealthState +func (r *WindowsManagementAppHealthStateRequest) Update(ctx context.Context, reqObj *WindowsManagementAppHealthState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsManagementAppHealthState +func (r *WindowsManagementAppHealthStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPhone81CertificateProfileBaseRequestBuilder is request builder for WindowsPhone81CertificateProfileBase +type WindowsPhone81CertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPhone81CertificateProfileBaseRequest +func (b *WindowsPhone81CertificateProfileBaseRequestBuilder) Request() *WindowsPhone81CertificateProfileBaseRequest { + return &WindowsPhone81CertificateProfileBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPhone81CertificateProfileBaseRequest is request for WindowsPhone81CertificateProfileBase +type WindowsPhone81CertificateProfileBaseRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPhone81CertificateProfileBase +func (r *WindowsPhone81CertificateProfileBaseRequest) Get(ctx context.Context) (resObj *WindowsPhone81CertificateProfileBase, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPhone81CertificateProfileBase +func (r *WindowsPhone81CertificateProfileBaseRequest) Update(ctx context.Context, reqObj *WindowsPhone81CertificateProfileBase) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPhone81CertificateProfileBase +func (r *WindowsPhone81CertificateProfileBaseRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPhone81ImportedPFXCertificateProfileRequestBuilder is request builder for WindowsPhone81ImportedPFXCertificateProfile +type WindowsPhone81ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPhone81ImportedPFXCertificateProfileRequest +func (b *WindowsPhone81ImportedPFXCertificateProfileRequestBuilder) Request() *WindowsPhone81ImportedPFXCertificateProfileRequest { + return &WindowsPhone81ImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPhone81ImportedPFXCertificateProfileRequest is request for WindowsPhone81ImportedPFXCertificateProfile +type WindowsPhone81ImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPhone81ImportedPFXCertificateProfile +func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *WindowsPhone81ImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPhone81ImportedPFXCertificateProfile +func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *WindowsPhone81ImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPhone81ImportedPFXCertificateProfile +func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPhone81SCEPCertificateProfileRequestBuilder is request builder for WindowsPhone81SCEPCertificateProfile +type WindowsPhone81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPhone81SCEPCertificateProfileRequest +func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) Request() *WindowsPhone81SCEPCertificateProfileRequest { + return &WindowsPhone81SCEPCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPhone81SCEPCertificateProfileRequest is request for WindowsPhone81SCEPCertificateProfile +type WindowsPhone81SCEPCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPhone81SCEPCertificateProfile +func (r *WindowsPhone81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *WindowsPhone81SCEPCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPhone81SCEPCertificateProfile +func (r *WindowsPhone81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *WindowsPhone81SCEPCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPhone81SCEPCertificateProfile +func (r *WindowsPhone81SCEPCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPhone81TrustedRootCertificateRequestBuilder is request builder for WindowsPhone81TrustedRootCertificate +type WindowsPhone81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPhone81TrustedRootCertificateRequest +func (b *WindowsPhone81TrustedRootCertificateRequestBuilder) Request() *WindowsPhone81TrustedRootCertificateRequest { + return &WindowsPhone81TrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPhone81TrustedRootCertificateRequest is request for WindowsPhone81TrustedRootCertificate +type WindowsPhone81TrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPhone81TrustedRootCertificate +func (r *WindowsPhone81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *WindowsPhone81TrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPhone81TrustedRootCertificate +func (r *WindowsPhone81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *WindowsPhone81TrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPhone81TrustedRootCertificate +func (r *WindowsPhone81TrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPhone81VpnConfigurationRequestBuilder is request builder for WindowsPhone81VpnConfiguration +type WindowsPhone81VpnConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPhone81VpnConfigurationRequest +func (b *WindowsPhone81VpnConfigurationRequestBuilder) Request() *WindowsPhone81VpnConfigurationRequest { + return &WindowsPhone81VpnConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPhone81VpnConfigurationRequest is request for WindowsPhone81VpnConfiguration +type WindowsPhone81VpnConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPhone81VpnConfiguration +func (r *WindowsPhone81VpnConfigurationRequest) Get(ctx context.Context) (resObj *WindowsPhone81VpnConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPhone81VpnConfiguration +func (r *WindowsPhone81VpnConfigurationRequest) Update(ctx context.Context, reqObj *WindowsPhone81VpnConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPhone81VpnConfiguration +func (r *WindowsPhone81VpnConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsPrivacyDataAccessControlItemRequestBuilder is request builder for WindowsPrivacyDataAccessControlItem +type WindowsPrivacyDataAccessControlItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsPrivacyDataAccessControlItemRequest +func (b *WindowsPrivacyDataAccessControlItemRequestBuilder) Request() *WindowsPrivacyDataAccessControlItemRequest { + return &WindowsPrivacyDataAccessControlItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsPrivacyDataAccessControlItemRequest is request for WindowsPrivacyDataAccessControlItem +type WindowsPrivacyDataAccessControlItemRequest struct{ BaseRequest } + +// Get performs GET request for WindowsPrivacyDataAccessControlItem +func (r *WindowsPrivacyDataAccessControlItemRequest) Get(ctx context.Context) (resObj *WindowsPrivacyDataAccessControlItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsPrivacyDataAccessControlItem +func (r *WindowsPrivacyDataAccessControlItemRequest) Update(ctx context.Context, reqObj *WindowsPrivacyDataAccessControlItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsPrivacyDataAccessControlItem +func (r *WindowsPrivacyDataAccessControlItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsProtectionStateRequestBuilder is request builder for WindowsProtectionState +type WindowsProtectionStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsProtectionStateRequest +func (b *WindowsProtectionStateRequestBuilder) Request() *WindowsProtectionStateRequest { + return &WindowsProtectionStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsProtectionStateRequest is request for WindowsProtectionState +type WindowsProtectionStateRequest struct{ BaseRequest } + +// Get performs GET request for WindowsProtectionState +func (r *WindowsProtectionStateRequest) Get(ctx context.Context) (resObj *WindowsProtectionState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsProtectionState +func (r *WindowsProtectionStateRequest) Update(ctx context.Context, reqObj *WindowsProtectionState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsProtectionState +func (r *WindowsProtectionStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsUniversalAppXRequestBuilder is request builder for WindowsUniversalAppX +type WindowsUniversalAppXRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsUniversalAppXRequest +func (b *WindowsUniversalAppXRequestBuilder) Request() *WindowsUniversalAppXRequest { + return &WindowsUniversalAppXRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsUniversalAppXRequest is request for WindowsUniversalAppX +type WindowsUniversalAppXRequest struct{ BaseRequest } + +// Get performs GET request for WindowsUniversalAppX +func (r *WindowsUniversalAppXRequest) Get(ctx context.Context) (resObj *WindowsUniversalAppX, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsUniversalAppX +func (r *WindowsUniversalAppXRequest) Update(ctx context.Context, reqObj *WindowsUniversalAppX) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsUniversalAppX +func (r *WindowsUniversalAppXRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsUpdateForBusinessConfigurationRequestBuilder is request builder for WindowsUpdateForBusinessConfiguration +type WindowsUpdateForBusinessConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsUpdateForBusinessConfigurationRequest +func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationRequest { + return &WindowsUpdateForBusinessConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsUpdateForBusinessConfigurationRequest is request for WindowsUpdateForBusinessConfiguration +type WindowsUpdateForBusinessConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsUpdateForBusinessConfiguration +func (r *WindowsUpdateForBusinessConfigurationRequest) Get(ctx context.Context) (resObj *WindowsUpdateForBusinessConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsUpdateForBusinessConfiguration +func (r *WindowsUpdateForBusinessConfigurationRequest) Update(ctx context.Context, reqObj *WindowsUpdateForBusinessConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsUpdateForBusinessConfiguration +func (r *WindowsUpdateForBusinessConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsUpdateStateRequestBuilder is request builder for WindowsUpdateState +type WindowsUpdateStateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsUpdateStateRequest +func (b *WindowsUpdateStateRequestBuilder) Request() *WindowsUpdateStateRequest { + return &WindowsUpdateStateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsUpdateStateRequest is request for WindowsUpdateState +type WindowsUpdateStateRequest struct{ BaseRequest } + +// Get performs GET request for WindowsUpdateState +func (r *WindowsUpdateStateRequest) Get(ctx context.Context) (resObj *WindowsUpdateState, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsUpdateState +func (r *WindowsUpdateStateRequest) Update(ctx context.Context, reqObj *WindowsUpdateState) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsUpdateState +func (r *WindowsUpdateStateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WindowsWiFiEnterpriseEAPConfigurationRequestBuilder is request builder for WindowsWiFiEnterpriseEAPConfiguration +type WindowsWiFiEnterpriseEAPConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WindowsWiFiEnterpriseEAPConfigurationRequest +func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) Request() *WindowsWiFiEnterpriseEAPConfigurationRequest { + return &WindowsWiFiEnterpriseEAPConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WindowsWiFiEnterpriseEAPConfigurationRequest is request for WindowsWiFiEnterpriseEAPConfiguration +type WindowsWiFiEnterpriseEAPConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for WindowsWiFiEnterpriseEAPConfiguration +func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Get(ctx context.Context) (resObj *WindowsWiFiEnterpriseEAPConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WindowsWiFiEnterpriseEAPConfiguration +func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Update(ctx context.Context, reqObj *WindowsWiFiEnterpriseEAPConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WindowsWiFiEnterpriseEAPConfiguration +func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder } + +// HasPayloadLinks action undocumented +func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) HasPayloadLinks(reqObj *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter) *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder) Request() *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest { + return &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) { + req, err := r.NewJSONRequest(method, path, obj) + if err != nil { + return nil, err + } + if ctx != nil { + req = req.WithContext(ctx) + } + res, err := r.client.Do(req) + if err != nil { + return nil, err + } + var values []HasPayloadLinkResultItem + for { + defer res.Body.Close() + if res.StatusCode != http.StatusOK { + b, _ := ioutil.ReadAll(res.Body) + errRes := &ErrorResponse{Response: res} + err := jsonx.Unmarshal(b, errRes) + if err != nil { + return nil, fmt.Errorf("%s: %s", res.Status, string(b)) + } + return nil, errRes + } + var ( + paging Paging + value []HasPayloadLinkResultItem + ) + err := jsonx.NewDecoder(res.Body).Decode(&paging) + if err != nil { + return nil, err + } + err = jsonx.Unmarshal(paging.Value, &value) + if err != nil { + return nil, err + } + values = append(values, value...) + if n >= 0 { + n-- + } + if n == 0 || len(paging.NextLink) == 0 { + return values, nil + } + req, err = http.NewRequest("GET", paging.NextLink, nil) + if ctx != nil { + req = req.WithContext(ctx) + } + res, err = r.client.Do(req) + if err != nil { + return nil, err + } + } +} + +// +func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, n) +} + +// +func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) { + return r.Paging(ctx, "POST", "", r.requestObject, 0) +} + +// +type WindowsAutopilotDeploymentProfileAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assign(reqObj *WindowsAutopilotDeploymentProfileAssignRequestParameter) *WindowsAutopilotDeploymentProfileAssignRequestBuilder { + bb := &WindowsAutopilotDeploymentProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeploymentProfileAssignRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeploymentProfileAssignRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignRequest { + return &WindowsAutopilotDeploymentProfileAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeploymentProfileAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder struct{ BaseRequestBuilder } + +// AssignUserToDevice action undocumented +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignUserToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assignUserToDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest { + return &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder struct{ BaseRequestBuilder } + +// UnassignUserFromDevice action undocumented +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignUserFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unassignUserFromDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest { + return &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder struct{ BaseRequestBuilder } + +// UpdateDeviceProperties action undocumented +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UpdateDeviceProperties(reqObj *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter) *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/updateDeviceProperties" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest { + return &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder struct{ BaseRequestBuilder } + +// AssignResourceAccountToDevice action undocumented +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignResourceAccountToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assignResourceAccountToDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest { + return &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder struct{ BaseRequestBuilder } + +// UnassignResourceAccountFromDevice action undocumented +func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignResourceAccountFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder { + bb := &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unassignResourceAccountFromDevice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest { + return &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsAutopilotSettingsSyncRequestBuilder struct{ BaseRequestBuilder } + +// Sync action undocumented +func (b *WindowsAutopilotSettingsRequestBuilder) Sync(reqObj *WindowsAutopilotSettingsSyncRequestParameter) *WindowsAutopilotSettingsSyncRequestBuilder { + bb := &WindowsAutopilotSettingsSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sync" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsAutopilotSettingsSyncRequest struct{ BaseRequest } + +// +func (b *WindowsAutopilotSettingsSyncRequestBuilder) Request() *WindowsAutopilotSettingsSyncRequest { + return &WindowsAutopilotSettingsSyncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsAutopilotSettingsSyncRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assign(reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter) *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder { + bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsDefenderApplicationControlSupplementalPolicyAssignRequest struct{ BaseRequest } + +// +func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest { + return &WindowsDefenderApplicationControlSupplementalPolicyAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsFeatureUpdateProfileAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *WindowsFeatureUpdateProfileRequestBuilder) Assign(reqObj *WindowsFeatureUpdateProfileAssignRequestParameter) *WindowsFeatureUpdateProfileAssignRequestBuilder { + bb := &WindowsFeatureUpdateProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsFeatureUpdateProfileAssignRequest struct{ BaseRequest } + +// +func (b *WindowsFeatureUpdateProfileAssignRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignRequest { + return &WindowsFeatureUpdateProfileAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsFeatureUpdateProfileAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsInformationProtectionAssignRequestBuilder struct{ BaseRequestBuilder } + +// Assign action undocumented +func (b *WindowsInformationProtectionRequestBuilder) Assign(reqObj *WindowsInformationProtectionAssignRequestParameter) *WindowsInformationProtectionAssignRequestBuilder { + bb := &WindowsInformationProtectionAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/assign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsInformationProtectionAssignRequest struct{ BaseRequest } + +// +func (b *WindowsInformationProtectionAssignRequestBuilder) Request() *WindowsInformationProtectionAssignRequest { + return &WindowsInformationProtectionAssignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsInformationProtectionAssignRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder struct{ BaseRequestBuilder } + +// Wipe action undocumented +func (b *WindowsInformationProtectionDeviceRegistrationRequestBuilder) Wipe(reqObj *WindowsInformationProtectionDeviceRegistrationWipeRequestParameter) *WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder { + bb := &WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/wipe" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsInformationProtectionDeviceRegistrationWipeRequest struct{ BaseRequest } + +// +func (b *WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder) Request() *WindowsInformationProtectionDeviceRegistrationWipeRequest { + return &WindowsInformationProtectionDeviceRegistrationWipeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsInformationProtectionDeviceRegistrationWipeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder struct{ BaseRequestBuilder } + +// ExtendFeatureUpdatesPause action undocumented +func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) ExtendFeatureUpdatesPause(reqObj *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter) *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder { + bb := &WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/extendFeatureUpdatesPause" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest struct{ BaseRequest } + +// +func (b *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest { + return &WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder struct{ BaseRequestBuilder } + +// ExtendQualityUpdatesPause action undocumented +func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) ExtendQualityUpdatesPause(reqObj *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter) *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder { + bb := &WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/extendQualityUpdatesPause" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest struct{ BaseRequest } + +// +func (b *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest { + return &WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go new file mode 100644 index 00000000..1fcecf35 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go @@ -0,0 +1,137 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// Windows10GeneralConfigurationRequestBuilder is request builder for Windows10GeneralConfiguration +type Windows10GeneralConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows10GeneralConfigurationRequest +func (b *Windows10GeneralConfigurationRequestBuilder) Request() *Windows10GeneralConfigurationRequest { + return &Windows10GeneralConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows10GeneralConfigurationRequest is request for Windows10GeneralConfiguration +type Windows10GeneralConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for Windows10GeneralConfiguration +func (r *Windows10GeneralConfigurationRequest) Get(ctx context.Context) (resObj *Windows10GeneralConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows10GeneralConfiguration +func (r *Windows10GeneralConfigurationRequest) Update(ctx context.Context, reqObj *Windows10GeneralConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows10GeneralConfiguration +func (r *Windows10GeneralConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// Windows10ImportedPFXCertificateProfileRequestBuilder is request builder for Windows10ImportedPFXCertificateProfile +type Windows10ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows10ImportedPFXCertificateProfileRequest +func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileRequest { + return &Windows10ImportedPFXCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows10ImportedPFXCertificateProfileRequest is request for Windows10ImportedPFXCertificateProfile +type Windows10ImportedPFXCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for Windows10ImportedPFXCertificateProfile +func (r *Windows10ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10ImportedPFXCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows10ImportedPFXCertificateProfile +func (r *Windows10ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10ImportedPFXCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows10ImportedPFXCertificateProfile +func (r *Windows10ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// Windows10PkcsCertificateProfileRequestBuilder is request builder for Windows10PkcsCertificateProfile +type Windows10PkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows10PkcsCertificateProfileRequest +func (b *Windows10PkcsCertificateProfileRequestBuilder) Request() *Windows10PkcsCertificateProfileRequest { + return &Windows10PkcsCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows10PkcsCertificateProfileRequest is request for Windows10PkcsCertificateProfile +type Windows10PkcsCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for Windows10PkcsCertificateProfile +func (r *Windows10PkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10PkcsCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows10PkcsCertificateProfile +func (r *Windows10PkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10PkcsCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows10PkcsCertificateProfile +func (r *Windows10PkcsCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// Windows10VpnConfigurationRequestBuilder is request builder for Windows10VpnConfiguration +type Windows10VpnConfigurationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows10VpnConfigurationRequest +func (b *Windows10VpnConfigurationRequestBuilder) Request() *Windows10VpnConfigurationRequest { + return &Windows10VpnConfigurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows10VpnConfigurationRequest is request for Windows10VpnConfiguration +type Windows10VpnConfigurationRequest struct{ BaseRequest } + +// Get performs GET request for Windows10VpnConfiguration +func (r *Windows10VpnConfigurationRequest) Get(ctx context.Context) (resObj *Windows10VpnConfiguration, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows10VpnConfiguration +func (r *Windows10VpnConfigurationRequest) Update(ctx context.Context, reqObj *Windows10VpnConfiguration) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows10VpnConfiguration +func (r *Windows10VpnConfigurationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go new file mode 100644 index 00000000..ac24feb7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go @@ -0,0 +1,71 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// Windows81SCEPCertificateProfileRequestBuilder is request builder for Windows81SCEPCertificateProfile +type Windows81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows81SCEPCertificateProfileRequest +func (b *Windows81SCEPCertificateProfileRequestBuilder) Request() *Windows81SCEPCertificateProfileRequest { + return &Windows81SCEPCertificateProfileRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows81SCEPCertificateProfileRequest is request for Windows81SCEPCertificateProfile +type Windows81SCEPCertificateProfileRequest struct{ BaseRequest } + +// Get performs GET request for Windows81SCEPCertificateProfile +func (r *Windows81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows81SCEPCertificateProfile, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows81SCEPCertificateProfile +func (r *Windows81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows81SCEPCertificateProfile) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows81SCEPCertificateProfile +func (r *Windows81SCEPCertificateProfileRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// Windows81TrustedRootCertificateRequestBuilder is request builder for Windows81TrustedRootCertificate +type Windows81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder } + +// Request returns Windows81TrustedRootCertificateRequest +func (b *Windows81TrustedRootCertificateRequestBuilder) Request() *Windows81TrustedRootCertificateRequest { + return &Windows81TrustedRootCertificateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// Windows81TrustedRootCertificateRequest is request for Windows81TrustedRootCertificate +type Windows81TrustedRootCertificateRequest struct{ BaseRequest } + +// Get performs GET request for Windows81TrustedRootCertificate +func (r *Windows81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *Windows81TrustedRootCertificate, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Windows81TrustedRootCertificate +func (r *Windows81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *Windows81TrustedRootCertificate) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Windows81TrustedRootCertificate +func (r *Windows81TrustedRootCertificateRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WorkPositionRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go new file mode 100644 index 00000000..2bd14067 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go @@ -0,0 +1,2680 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// WorkbookRequestBuilder is request builder for Workbook +type WorkbookRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRequest +func (b *WorkbookRequestBuilder) Request() *WorkbookRequest { + return &WorkbookRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRequest is request for Workbook +type WorkbookRequest struct{ BaseRequest } + +// Get performs GET request for Workbook +func (r *WorkbookRequest) Get(ctx context.Context) (resObj *Workbook, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for Workbook +func (r *WorkbookRequest) Update(ctx context.Context, reqObj *Workbook) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for Workbook +func (r *WorkbookRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookApplicationRequestBuilder is request builder for WorkbookApplication +type WorkbookApplicationRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookApplicationRequest +func (b *WorkbookApplicationRequestBuilder) Request() *WorkbookApplicationRequest { + return &WorkbookApplicationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookApplicationRequest is request for WorkbookApplication +type WorkbookApplicationRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookApplication +func (r *WorkbookApplicationRequest) Get(ctx context.Context) (resObj *WorkbookApplication, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookApplication +func (r *WorkbookApplicationRequest) Update(ctx context.Context, reqObj *WorkbookApplication) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookApplication +func (r *WorkbookApplicationRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartRequestBuilder is request builder for WorkbookChart +type WorkbookChartRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartRequest +func (b *WorkbookChartRequestBuilder) Request() *WorkbookChartRequest { + return &WorkbookChartRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartRequest is request for WorkbookChart +type WorkbookChartRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChart +func (r *WorkbookChartRequest) Get(ctx context.Context) (resObj *WorkbookChart, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChart +func (r *WorkbookChartRequest) Update(ctx context.Context, reqObj *WorkbookChart) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChart +func (r *WorkbookChartRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAreaFormatRequestBuilder is request builder for WorkbookChartAreaFormat +type WorkbookChartAreaFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAreaFormatRequest +func (b *WorkbookChartAreaFormatRequestBuilder) Request() *WorkbookChartAreaFormatRequest { + return &WorkbookChartAreaFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAreaFormatRequest is request for WorkbookChartAreaFormat +type WorkbookChartAreaFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAreaFormat +func (r *WorkbookChartAreaFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAreaFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAreaFormat +func (r *WorkbookChartAreaFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAreaFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAreaFormat +func (r *WorkbookChartAreaFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAxesRequestBuilder is request builder for WorkbookChartAxes +type WorkbookChartAxesRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAxesRequest +func (b *WorkbookChartAxesRequestBuilder) Request() *WorkbookChartAxesRequest { + return &WorkbookChartAxesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAxesRequest is request for WorkbookChartAxes +type WorkbookChartAxesRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAxes +func (r *WorkbookChartAxesRequest) Get(ctx context.Context) (resObj *WorkbookChartAxes, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAxes +func (r *WorkbookChartAxesRequest) Update(ctx context.Context, reqObj *WorkbookChartAxes) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAxes +func (r *WorkbookChartAxesRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAxisRequestBuilder is request builder for WorkbookChartAxis +type WorkbookChartAxisRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAxisRequest +func (b *WorkbookChartAxisRequestBuilder) Request() *WorkbookChartAxisRequest { + return &WorkbookChartAxisRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAxisRequest is request for WorkbookChartAxis +type WorkbookChartAxisRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAxis +func (r *WorkbookChartAxisRequest) Get(ctx context.Context) (resObj *WorkbookChartAxis, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAxis +func (r *WorkbookChartAxisRequest) Update(ctx context.Context, reqObj *WorkbookChartAxis) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAxis +func (r *WorkbookChartAxisRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAxisFormatRequestBuilder is request builder for WorkbookChartAxisFormat +type WorkbookChartAxisFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAxisFormatRequest +func (b *WorkbookChartAxisFormatRequestBuilder) Request() *WorkbookChartAxisFormatRequest { + return &WorkbookChartAxisFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAxisFormatRequest is request for WorkbookChartAxisFormat +type WorkbookChartAxisFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAxisFormat +func (r *WorkbookChartAxisFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAxisFormat +func (r *WorkbookChartAxisFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAxisFormat +func (r *WorkbookChartAxisFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAxisTitleRequestBuilder is request builder for WorkbookChartAxisTitle +type WorkbookChartAxisTitleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAxisTitleRequest +func (b *WorkbookChartAxisTitleRequestBuilder) Request() *WorkbookChartAxisTitleRequest { + return &WorkbookChartAxisTitleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAxisTitleRequest is request for WorkbookChartAxisTitle +type WorkbookChartAxisTitleRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAxisTitle +func (r *WorkbookChartAxisTitleRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisTitle, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAxisTitle +func (r *WorkbookChartAxisTitleRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisTitle) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAxisTitle +func (r *WorkbookChartAxisTitleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartAxisTitleFormatRequestBuilder is request builder for WorkbookChartAxisTitleFormat +type WorkbookChartAxisTitleFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartAxisTitleFormatRequest +func (b *WorkbookChartAxisTitleFormatRequestBuilder) Request() *WorkbookChartAxisTitleFormatRequest { + return &WorkbookChartAxisTitleFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartAxisTitleFormatRequest is request for WorkbookChartAxisTitleFormat +type WorkbookChartAxisTitleFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartAxisTitleFormat +func (r *WorkbookChartAxisTitleFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisTitleFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartAxisTitleFormat +func (r *WorkbookChartAxisTitleFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisTitleFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartAxisTitleFormat +func (r *WorkbookChartAxisTitleFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartDataLabelFormatRequestBuilder is request builder for WorkbookChartDataLabelFormat +type WorkbookChartDataLabelFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartDataLabelFormatRequest +func (b *WorkbookChartDataLabelFormatRequestBuilder) Request() *WorkbookChartDataLabelFormatRequest { + return &WorkbookChartDataLabelFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartDataLabelFormatRequest is request for WorkbookChartDataLabelFormat +type WorkbookChartDataLabelFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartDataLabelFormat +func (r *WorkbookChartDataLabelFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartDataLabelFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartDataLabelFormat +func (r *WorkbookChartDataLabelFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartDataLabelFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartDataLabelFormat +func (r *WorkbookChartDataLabelFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartDataLabelsRequestBuilder is request builder for WorkbookChartDataLabels +type WorkbookChartDataLabelsRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartDataLabelsRequest +func (b *WorkbookChartDataLabelsRequestBuilder) Request() *WorkbookChartDataLabelsRequest { + return &WorkbookChartDataLabelsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartDataLabelsRequest is request for WorkbookChartDataLabels +type WorkbookChartDataLabelsRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartDataLabels +func (r *WorkbookChartDataLabelsRequest) Get(ctx context.Context) (resObj *WorkbookChartDataLabels, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartDataLabels +func (r *WorkbookChartDataLabelsRequest) Update(ctx context.Context, reqObj *WorkbookChartDataLabels) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartDataLabels +func (r *WorkbookChartDataLabelsRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartFillRequestBuilder is request builder for WorkbookChartFill +type WorkbookChartFillRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartFillRequest +func (b *WorkbookChartFillRequestBuilder) Request() *WorkbookChartFillRequest { + return &WorkbookChartFillRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartFillRequest is request for WorkbookChartFill +type WorkbookChartFillRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartFill +func (r *WorkbookChartFillRequest) Get(ctx context.Context) (resObj *WorkbookChartFill, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartFill +func (r *WorkbookChartFillRequest) Update(ctx context.Context, reqObj *WorkbookChartFill) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartFill +func (r *WorkbookChartFillRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartFontRequestBuilder is request builder for WorkbookChartFont +type WorkbookChartFontRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartFontRequest +func (b *WorkbookChartFontRequestBuilder) Request() *WorkbookChartFontRequest { + return &WorkbookChartFontRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartFontRequest is request for WorkbookChartFont +type WorkbookChartFontRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartFont +func (r *WorkbookChartFontRequest) Get(ctx context.Context) (resObj *WorkbookChartFont, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartFont +func (r *WorkbookChartFontRequest) Update(ctx context.Context, reqObj *WorkbookChartFont) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartFont +func (r *WorkbookChartFontRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartGridlinesRequestBuilder is request builder for WorkbookChartGridlines +type WorkbookChartGridlinesRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartGridlinesRequest +func (b *WorkbookChartGridlinesRequestBuilder) Request() *WorkbookChartGridlinesRequest { + return &WorkbookChartGridlinesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartGridlinesRequest is request for WorkbookChartGridlines +type WorkbookChartGridlinesRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartGridlines +func (r *WorkbookChartGridlinesRequest) Get(ctx context.Context) (resObj *WorkbookChartGridlines, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartGridlines +func (r *WorkbookChartGridlinesRequest) Update(ctx context.Context, reqObj *WorkbookChartGridlines) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartGridlines +func (r *WorkbookChartGridlinesRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartGridlinesFormatRequestBuilder is request builder for WorkbookChartGridlinesFormat +type WorkbookChartGridlinesFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartGridlinesFormatRequest +func (b *WorkbookChartGridlinesFormatRequestBuilder) Request() *WorkbookChartGridlinesFormatRequest { + return &WorkbookChartGridlinesFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartGridlinesFormatRequest is request for WorkbookChartGridlinesFormat +type WorkbookChartGridlinesFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartGridlinesFormat +func (r *WorkbookChartGridlinesFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartGridlinesFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartGridlinesFormat +func (r *WorkbookChartGridlinesFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartGridlinesFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartGridlinesFormat +func (r *WorkbookChartGridlinesFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartLegendRequestBuilder is request builder for WorkbookChartLegend +type WorkbookChartLegendRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartLegendRequest +func (b *WorkbookChartLegendRequestBuilder) Request() *WorkbookChartLegendRequest { + return &WorkbookChartLegendRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartLegendRequest is request for WorkbookChartLegend +type WorkbookChartLegendRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartLegend +func (r *WorkbookChartLegendRequest) Get(ctx context.Context) (resObj *WorkbookChartLegend, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartLegend +func (r *WorkbookChartLegendRequest) Update(ctx context.Context, reqObj *WorkbookChartLegend) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartLegend +func (r *WorkbookChartLegendRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartLegendFormatRequestBuilder is request builder for WorkbookChartLegendFormat +type WorkbookChartLegendFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartLegendFormatRequest +func (b *WorkbookChartLegendFormatRequestBuilder) Request() *WorkbookChartLegendFormatRequest { + return &WorkbookChartLegendFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartLegendFormatRequest is request for WorkbookChartLegendFormat +type WorkbookChartLegendFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartLegendFormat +func (r *WorkbookChartLegendFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartLegendFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartLegendFormat +func (r *WorkbookChartLegendFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartLegendFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartLegendFormat +func (r *WorkbookChartLegendFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartLineFormatRequestBuilder is request builder for WorkbookChartLineFormat +type WorkbookChartLineFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartLineFormatRequest +func (b *WorkbookChartLineFormatRequestBuilder) Request() *WorkbookChartLineFormatRequest { + return &WorkbookChartLineFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartLineFormatRequest is request for WorkbookChartLineFormat +type WorkbookChartLineFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartLineFormat +func (r *WorkbookChartLineFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartLineFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartLineFormat +func (r *WorkbookChartLineFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartLineFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartLineFormat +func (r *WorkbookChartLineFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartPointRequestBuilder is request builder for WorkbookChartPoint +type WorkbookChartPointRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartPointRequest +func (b *WorkbookChartPointRequestBuilder) Request() *WorkbookChartPointRequest { + return &WorkbookChartPointRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartPointRequest is request for WorkbookChartPoint +type WorkbookChartPointRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartPoint +func (r *WorkbookChartPointRequest) Get(ctx context.Context) (resObj *WorkbookChartPoint, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartPoint +func (r *WorkbookChartPointRequest) Update(ctx context.Context, reqObj *WorkbookChartPoint) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartPoint +func (r *WorkbookChartPointRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartPointFormatRequestBuilder is request builder for WorkbookChartPointFormat +type WorkbookChartPointFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartPointFormatRequest +func (b *WorkbookChartPointFormatRequestBuilder) Request() *WorkbookChartPointFormatRequest { + return &WorkbookChartPointFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartPointFormatRequest is request for WorkbookChartPointFormat +type WorkbookChartPointFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartPointFormat +func (r *WorkbookChartPointFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartPointFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartPointFormat +func (r *WorkbookChartPointFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartPointFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartPointFormat +func (r *WorkbookChartPointFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartSeriesRequestBuilder is request builder for WorkbookChartSeries +type WorkbookChartSeriesRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartSeriesRequest +func (b *WorkbookChartSeriesRequestBuilder) Request() *WorkbookChartSeriesRequest { + return &WorkbookChartSeriesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartSeriesRequest is request for WorkbookChartSeries +type WorkbookChartSeriesRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartSeries +func (r *WorkbookChartSeriesRequest) Get(ctx context.Context) (resObj *WorkbookChartSeries, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartSeries +func (r *WorkbookChartSeriesRequest) Update(ctx context.Context, reqObj *WorkbookChartSeries) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartSeries +func (r *WorkbookChartSeriesRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartSeriesFormatRequestBuilder is request builder for WorkbookChartSeriesFormat +type WorkbookChartSeriesFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartSeriesFormatRequest +func (b *WorkbookChartSeriesFormatRequestBuilder) Request() *WorkbookChartSeriesFormatRequest { + return &WorkbookChartSeriesFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartSeriesFormatRequest is request for WorkbookChartSeriesFormat +type WorkbookChartSeriesFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartSeriesFormat +func (r *WorkbookChartSeriesFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartSeriesFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartSeriesFormat +func (r *WorkbookChartSeriesFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartSeriesFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartSeriesFormat +func (r *WorkbookChartSeriesFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartTitleRequestBuilder is request builder for WorkbookChartTitle +type WorkbookChartTitleRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartTitleRequest +func (b *WorkbookChartTitleRequestBuilder) Request() *WorkbookChartTitleRequest { + return &WorkbookChartTitleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartTitleRequest is request for WorkbookChartTitle +type WorkbookChartTitleRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartTitle +func (r *WorkbookChartTitleRequest) Get(ctx context.Context) (resObj *WorkbookChartTitle, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartTitle +func (r *WorkbookChartTitleRequest) Update(ctx context.Context, reqObj *WorkbookChartTitle) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartTitle +func (r *WorkbookChartTitleRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookChartTitleFormatRequestBuilder is request builder for WorkbookChartTitleFormat +type WorkbookChartTitleFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookChartTitleFormatRequest +func (b *WorkbookChartTitleFormatRequestBuilder) Request() *WorkbookChartTitleFormatRequest { + return &WorkbookChartTitleFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookChartTitleFormatRequest is request for WorkbookChartTitleFormat +type WorkbookChartTitleFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookChartTitleFormat +func (r *WorkbookChartTitleFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartTitleFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookChartTitleFormat +func (r *WorkbookChartTitleFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartTitleFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookChartTitleFormat +func (r *WorkbookChartTitleFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookCommentRequestBuilder is request builder for WorkbookComment +type WorkbookCommentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookCommentRequest +func (b *WorkbookCommentRequestBuilder) Request() *WorkbookCommentRequest { + return &WorkbookCommentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookCommentRequest is request for WorkbookComment +type WorkbookCommentRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookComment +func (r *WorkbookCommentRequest) Get(ctx context.Context) (resObj *WorkbookComment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookComment +func (r *WorkbookCommentRequest) Update(ctx context.Context, reqObj *WorkbookComment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookComment +func (r *WorkbookCommentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookCommentReplyRequestBuilder is request builder for WorkbookCommentReply +type WorkbookCommentReplyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookCommentReplyRequest +func (b *WorkbookCommentReplyRequestBuilder) Request() *WorkbookCommentReplyRequest { + return &WorkbookCommentReplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookCommentReplyRequest is request for WorkbookCommentReply +type WorkbookCommentReplyRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookCommentReply +func (r *WorkbookCommentReplyRequest) Get(ctx context.Context) (resObj *WorkbookCommentReply, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookCommentReply +func (r *WorkbookCommentReplyRequest) Update(ctx context.Context, reqObj *WorkbookCommentReply) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookCommentReply +func (r *WorkbookCommentReplyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookFilterRequestBuilder is request builder for WorkbookFilter +type WorkbookFilterRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookFilterRequest +func (b *WorkbookFilterRequestBuilder) Request() *WorkbookFilterRequest { + return &WorkbookFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookFilterRequest is request for WorkbookFilter +type WorkbookFilterRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookFilter +func (r *WorkbookFilterRequest) Get(ctx context.Context) (resObj *WorkbookFilter, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookFilter +func (r *WorkbookFilterRequest) Update(ctx context.Context, reqObj *WorkbookFilter) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookFilter +func (r *WorkbookFilterRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookFormatProtectionRequestBuilder is request builder for WorkbookFormatProtection +type WorkbookFormatProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookFormatProtectionRequest +func (b *WorkbookFormatProtectionRequestBuilder) Request() *WorkbookFormatProtectionRequest { + return &WorkbookFormatProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookFormatProtectionRequest is request for WorkbookFormatProtection +type WorkbookFormatProtectionRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookFormatProtection +func (r *WorkbookFormatProtectionRequest) Get(ctx context.Context) (resObj *WorkbookFormatProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookFormatProtection +func (r *WorkbookFormatProtectionRequest) Update(ctx context.Context, reqObj *WorkbookFormatProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookFormatProtection +func (r *WorkbookFormatProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookNamedItemRequestBuilder is request builder for WorkbookNamedItem +type WorkbookNamedItemRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookNamedItemRequest +func (b *WorkbookNamedItemRequestBuilder) Request() *WorkbookNamedItemRequest { + return &WorkbookNamedItemRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookNamedItemRequest is request for WorkbookNamedItem +type WorkbookNamedItemRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookNamedItem +func (r *WorkbookNamedItemRequest) Get(ctx context.Context) (resObj *WorkbookNamedItem, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookNamedItem +func (r *WorkbookNamedItemRequest) Update(ctx context.Context, reqObj *WorkbookNamedItem) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookNamedItem +func (r *WorkbookNamedItemRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookPivotTableRequestBuilder is request builder for WorkbookPivotTable +type WorkbookPivotTableRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookPivotTableRequest +func (b *WorkbookPivotTableRequestBuilder) Request() *WorkbookPivotTableRequest { + return &WorkbookPivotTableRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookPivotTableRequest is request for WorkbookPivotTable +type WorkbookPivotTableRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookPivotTable +func (r *WorkbookPivotTableRequest) Get(ctx context.Context) (resObj *WorkbookPivotTable, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookPivotTable +func (r *WorkbookPivotTableRequest) Update(ctx context.Context, reqObj *WorkbookPivotTable) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookPivotTable +func (r *WorkbookPivotTableRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeRequestBuilder is request builder for WorkbookRange +type WorkbookRangeRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeRequest +func (b *WorkbookRangeRequestBuilder) Request() *WorkbookRangeRequest { + return &WorkbookRangeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeRequest is request for WorkbookRange +type WorkbookRangeRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRange +func (r *WorkbookRangeRequest) Get(ctx context.Context) (resObj *WorkbookRange, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRange +func (r *WorkbookRangeRequest) Update(ctx context.Context, reqObj *WorkbookRange) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRange +func (r *WorkbookRangeRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeBorderRequestBuilder is request builder for WorkbookRangeBorder +type WorkbookRangeBorderRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeBorderRequest +func (b *WorkbookRangeBorderRequestBuilder) Request() *WorkbookRangeBorderRequest { + return &WorkbookRangeBorderRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeBorderRequest is request for WorkbookRangeBorder +type WorkbookRangeBorderRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeBorder +func (r *WorkbookRangeBorderRequest) Get(ctx context.Context) (resObj *WorkbookRangeBorder, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeBorder +func (r *WorkbookRangeBorderRequest) Update(ctx context.Context, reqObj *WorkbookRangeBorder) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeBorder +func (r *WorkbookRangeBorderRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeFillRequestBuilder is request builder for WorkbookRangeFill +type WorkbookRangeFillRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeFillRequest +func (b *WorkbookRangeFillRequestBuilder) Request() *WorkbookRangeFillRequest { + return &WorkbookRangeFillRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeFillRequest is request for WorkbookRangeFill +type WorkbookRangeFillRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeFill +func (r *WorkbookRangeFillRequest) Get(ctx context.Context) (resObj *WorkbookRangeFill, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeFill +func (r *WorkbookRangeFillRequest) Update(ctx context.Context, reqObj *WorkbookRangeFill) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeFill +func (r *WorkbookRangeFillRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeFontRequestBuilder is request builder for WorkbookRangeFont +type WorkbookRangeFontRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeFontRequest +func (b *WorkbookRangeFontRequestBuilder) Request() *WorkbookRangeFontRequest { + return &WorkbookRangeFontRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeFontRequest is request for WorkbookRangeFont +type WorkbookRangeFontRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeFont +func (r *WorkbookRangeFontRequest) Get(ctx context.Context) (resObj *WorkbookRangeFont, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeFont +func (r *WorkbookRangeFontRequest) Update(ctx context.Context, reqObj *WorkbookRangeFont) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeFont +func (r *WorkbookRangeFontRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeFormatRequestBuilder is request builder for WorkbookRangeFormat +type WorkbookRangeFormatRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeFormatRequest +func (b *WorkbookRangeFormatRequestBuilder) Request() *WorkbookRangeFormatRequest { + return &WorkbookRangeFormatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeFormatRequest is request for WorkbookRangeFormat +type WorkbookRangeFormatRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeFormat +func (r *WorkbookRangeFormatRequest) Get(ctx context.Context) (resObj *WorkbookRangeFormat, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeFormat +func (r *WorkbookRangeFormatRequest) Update(ctx context.Context, reqObj *WorkbookRangeFormat) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeFormat +func (r *WorkbookRangeFormatRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeSortRequestBuilder is request builder for WorkbookRangeSort +type WorkbookRangeSortRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeSortRequest +func (b *WorkbookRangeSortRequestBuilder) Request() *WorkbookRangeSortRequest { + return &WorkbookRangeSortRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeSortRequest is request for WorkbookRangeSort +type WorkbookRangeSortRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeSort +func (r *WorkbookRangeSortRequest) Get(ctx context.Context) (resObj *WorkbookRangeSort, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeSort +func (r *WorkbookRangeSortRequest) Update(ctx context.Context, reqObj *WorkbookRangeSort) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeSort +func (r *WorkbookRangeSortRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookRangeViewRequestBuilder is request builder for WorkbookRangeView +type WorkbookRangeViewRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookRangeViewRequest +func (b *WorkbookRangeViewRequestBuilder) Request() *WorkbookRangeViewRequest { + return &WorkbookRangeViewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookRangeViewRequest is request for WorkbookRangeView +type WorkbookRangeViewRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookRangeView +func (r *WorkbookRangeViewRequest) Get(ctx context.Context) (resObj *WorkbookRangeView, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookRangeView +func (r *WorkbookRangeViewRequest) Update(ctx context.Context, reqObj *WorkbookRangeView) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookRangeView +func (r *WorkbookRangeViewRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookTableRequestBuilder is request builder for WorkbookTable +type WorkbookTableRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookTableRequest +func (b *WorkbookTableRequestBuilder) Request() *WorkbookTableRequest { + return &WorkbookTableRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookTableRequest is request for WorkbookTable +type WorkbookTableRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookTable +func (r *WorkbookTableRequest) Get(ctx context.Context) (resObj *WorkbookTable, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookTable +func (r *WorkbookTableRequest) Update(ctx context.Context, reqObj *WorkbookTable) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookTable +func (r *WorkbookTableRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookTableColumnRequestBuilder is request builder for WorkbookTableColumn +type WorkbookTableColumnRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookTableColumnRequest +func (b *WorkbookTableColumnRequestBuilder) Request() *WorkbookTableColumnRequest { + return &WorkbookTableColumnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookTableColumnRequest is request for WorkbookTableColumn +type WorkbookTableColumnRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookTableColumn +func (r *WorkbookTableColumnRequest) Get(ctx context.Context) (resObj *WorkbookTableColumn, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookTableColumn +func (r *WorkbookTableColumnRequest) Update(ctx context.Context, reqObj *WorkbookTableColumn) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookTableColumn +func (r *WorkbookTableColumnRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookTableRowRequestBuilder is request builder for WorkbookTableRow +type WorkbookTableRowRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookTableRowRequest +func (b *WorkbookTableRowRequestBuilder) Request() *WorkbookTableRowRequest { + return &WorkbookTableRowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookTableRowRequest is request for WorkbookTableRow +type WorkbookTableRowRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookTableRow +func (r *WorkbookTableRowRequest) Get(ctx context.Context) (resObj *WorkbookTableRow, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookTableRow +func (r *WorkbookTableRowRequest) Update(ctx context.Context, reqObj *WorkbookTableRow) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookTableRow +func (r *WorkbookTableRowRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookTableSortRequestBuilder is request builder for WorkbookTableSort +type WorkbookTableSortRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookTableSortRequest +func (b *WorkbookTableSortRequestBuilder) Request() *WorkbookTableSortRequest { + return &WorkbookTableSortRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookTableSortRequest is request for WorkbookTableSort +type WorkbookTableSortRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookTableSort +func (r *WorkbookTableSortRequest) Get(ctx context.Context) (resObj *WorkbookTableSort, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookTableSort +func (r *WorkbookTableSortRequest) Update(ctx context.Context, reqObj *WorkbookTableSort) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookTableSort +func (r *WorkbookTableSortRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookWorksheetRequestBuilder is request builder for WorkbookWorksheet +type WorkbookWorksheetRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookWorksheetRequest +func (b *WorkbookWorksheetRequestBuilder) Request() *WorkbookWorksheetRequest { + return &WorkbookWorksheetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookWorksheetRequest is request for WorkbookWorksheet +type WorkbookWorksheetRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookWorksheet +func (r *WorkbookWorksheetRequest) Get(ctx context.Context) (resObj *WorkbookWorksheet, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookWorksheet +func (r *WorkbookWorksheetRequest) Update(ctx context.Context, reqObj *WorkbookWorksheet) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookWorksheet +func (r *WorkbookWorksheetRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// WorkbookWorksheetProtectionRequestBuilder is request builder for WorkbookWorksheetProtection +type WorkbookWorksheetProtectionRequestBuilder struct{ BaseRequestBuilder } + +// Request returns WorkbookWorksheetProtectionRequest +func (b *WorkbookWorksheetProtectionRequestBuilder) Request() *WorkbookWorksheetProtectionRequest { + return &WorkbookWorksheetProtectionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// WorkbookWorksheetProtectionRequest is request for WorkbookWorksheetProtection +type WorkbookWorksheetProtectionRequest struct{ BaseRequest } + +// Get performs GET request for WorkbookWorksheetProtection +func (r *WorkbookWorksheetProtectionRequest) Get(ctx context.Context) (resObj *WorkbookWorksheetProtection, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for WorkbookWorksheetProtection +func (r *WorkbookWorksheetProtectionRequest) Update(ctx context.Context, reqObj *WorkbookWorksheetProtection) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for WorkbookWorksheetProtection +func (r *WorkbookWorksheetProtectionRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type WorkbookChartCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookWorksheetChartsCollectionRequestBuilder) Add(reqObj *WorkbookChartCollectionAddRequestParameter) *WorkbookChartCollectionAddRequestBuilder { + bb := &WorkbookChartCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookChartCollectionAddRequestBuilder) Request() *WorkbookChartCollectionAddRequest { + return &WorkbookChartCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookChart, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookNamedItemCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookNamesCollectionRequestBuilder) Add(reqObj *WorkbookNamedItemCollectionAddRequestParameter) *WorkbookNamedItemCollectionAddRequestBuilder { + bb := &WorkbookNamedItemCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Add action undocumented +func (b *WorkbookWorksheetNamesCollectionRequestBuilder) Add(reqObj *WorkbookNamedItemCollectionAddRequestParameter) *WorkbookNamedItemCollectionAddRequestBuilder { + bb := &WorkbookNamedItemCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookNamedItemCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookNamedItemCollectionAddRequestBuilder) Request() *WorkbookNamedItemCollectionAddRequest { + return &WorkbookNamedItemCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookNamedItemCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookNamedItem, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder struct{ BaseRequestBuilder } + +// AddFormulaLocal action undocumented +func (b *WorkbookNamesCollectionRequestBuilder) AddFormulaLocal(reqObj *WorkbookNamedItemCollectionAddFormulaLocalRequestParameter) *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder { + bb := &WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addFormulaLocal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// AddFormulaLocal action undocumented +func (b *WorkbookWorksheetNamesCollectionRequestBuilder) AddFormulaLocal(reqObj *WorkbookNamedItemCollectionAddFormulaLocalRequestParameter) *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder { + bb := &WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/addFormulaLocal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookNamedItemCollectionAddFormulaLocalRequest struct{ BaseRequest } + +// +func (b *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder) Request() *WorkbookNamedItemCollectionAddFormulaLocalRequest { + return &WorkbookNamedItemCollectionAddFormulaLocalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookNamedItemCollectionAddFormulaLocalRequest) Post(ctx context.Context) (resObj *WorkbookNamedItem, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookPivotTableCollectionRefreshAllRequestBuilder struct{ BaseRequestBuilder } + +// RefreshAll action undocumented +func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) RefreshAll(reqObj *WorkbookPivotTableCollectionRefreshAllRequestParameter) *WorkbookPivotTableCollectionRefreshAllRequestBuilder { + bb := &WorkbookPivotTableCollectionRefreshAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/refreshAll" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookPivotTableCollectionRefreshAllRequest struct{ BaseRequest } + +// +func (b *WorkbookPivotTableCollectionRefreshAllRequestBuilder) Request() *WorkbookPivotTableCollectionRefreshAllRequest { + return &WorkbookPivotTableCollectionRefreshAllRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookPivotTableCollectionRefreshAllRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookTablesCollectionRequestBuilder) Add(reqObj *WorkbookTableCollectionAddRequestParameter) *WorkbookTableCollectionAddRequestBuilder { + bb := &WorkbookTableCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// Add action undocumented +func (b *WorkbookWorksheetTablesCollectionRequestBuilder) Add(reqObj *WorkbookTableCollectionAddRequestParameter) *WorkbookTableCollectionAddRequestBuilder { + bb := &WorkbookTableCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookTableCollectionAddRequestBuilder) Request() *WorkbookTableCollectionAddRequest { + return &WorkbookTableCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTable, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookTableColumnCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookTableColumnsCollectionRequestBuilder) Add(reqObj *WorkbookTableColumnCollectionAddRequestParameter) *WorkbookTableColumnCollectionAddRequestBuilder { + bb := &WorkbookTableColumnCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableColumnCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookTableColumnCollectionAddRequestBuilder) Request() *WorkbookTableColumnCollectionAddRequest { + return &WorkbookTableColumnCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableColumnCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTableColumn, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookTableRowCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookTableRowsCollectionRequestBuilder) Add(reqObj *WorkbookTableRowCollectionAddRequestParameter) *WorkbookTableRowCollectionAddRequestBuilder { + bb := &WorkbookTableRowCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableRowCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookTableRowCollectionAddRequestBuilder) Request() *WorkbookTableRowCollectionAddRequest { + return &WorkbookTableRowCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableRowCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTableRow, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookWorksheetCollectionAddRequestBuilder struct{ BaseRequestBuilder } + +// Add action undocumented +func (b *WorkbookWorksheetsCollectionRequestBuilder) Add(reqObj *WorkbookWorksheetCollectionAddRequestParameter) *WorkbookWorksheetCollectionAddRequestBuilder { + bb := &WorkbookWorksheetCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/add" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookWorksheetCollectionAddRequest struct{ BaseRequest } + +// +func (b *WorkbookWorksheetCollectionAddRequestBuilder) Request() *WorkbookWorksheetCollectionAddRequest { + return &WorkbookWorksheetCollectionAddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookWorksheetCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookWorksheet, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookCreateSessionRequestBuilder struct{ BaseRequestBuilder } + +// CreateSession action undocumented +func (b *WorkbookRequestBuilder) CreateSession(reqObj *WorkbookCreateSessionRequestParameter) *WorkbookCreateSessionRequestBuilder { + bb := &WorkbookCreateSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/createSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookCreateSessionRequest struct{ BaseRequest } + +// +func (b *WorkbookCreateSessionRequestBuilder) Request() *WorkbookCreateSessionRequest { + return &WorkbookCreateSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookCreateSessionRequest) Post(ctx context.Context) (resObj *WorkbookSessionInfo, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookCloseSessionRequestBuilder struct{ BaseRequestBuilder } + +// CloseSession action undocumented +func (b *WorkbookRequestBuilder) CloseSession(reqObj *WorkbookCloseSessionRequestParameter) *WorkbookCloseSessionRequestBuilder { + bb := &WorkbookCloseSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/closeSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookCloseSessionRequest struct{ BaseRequest } + +// +func (b *WorkbookCloseSessionRequestBuilder) Request() *WorkbookCloseSessionRequest { + return &WorkbookCloseSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookCloseSessionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRefreshSessionRequestBuilder struct{ BaseRequestBuilder } + +// RefreshSession action undocumented +func (b *WorkbookRequestBuilder) RefreshSession(reqObj *WorkbookRefreshSessionRequestParameter) *WorkbookRefreshSessionRequestBuilder { + bb := &WorkbookRefreshSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/refreshSession" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRefreshSessionRequest struct{ BaseRequest } + +// +func (b *WorkbookRefreshSessionRequestBuilder) Request() *WorkbookRefreshSessionRequest { + return &WorkbookRefreshSessionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRefreshSessionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookApplicationCalculateRequestBuilder struct{ BaseRequestBuilder } + +// Calculate action undocumented +func (b *WorkbookApplicationRequestBuilder) Calculate(reqObj *WorkbookApplicationCalculateRequestParameter) *WorkbookApplicationCalculateRequestBuilder { + bb := &WorkbookApplicationCalculateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/calculate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookApplicationCalculateRequest struct{ BaseRequest } + +// +func (b *WorkbookApplicationCalculateRequestBuilder) Request() *WorkbookApplicationCalculateRequest { + return &WorkbookApplicationCalculateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookApplicationCalculateRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookChartSetDataRequestBuilder struct{ BaseRequestBuilder } + +// SetData action undocumented +func (b *WorkbookChartRequestBuilder) SetData(reqObj *WorkbookChartSetDataRequestParameter) *WorkbookChartSetDataRequestBuilder { + bb := &WorkbookChartSetDataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setData" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartSetDataRequest struct{ BaseRequest } + +// +func (b *WorkbookChartSetDataRequestBuilder) Request() *WorkbookChartSetDataRequest { + return &WorkbookChartSetDataRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartSetDataRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookChartSetPositionRequestBuilder struct{ BaseRequestBuilder } + +// SetPosition action undocumented +func (b *WorkbookChartRequestBuilder) SetPosition(reqObj *WorkbookChartSetPositionRequestParameter) *WorkbookChartSetPositionRequestBuilder { + bb := &WorkbookChartSetPositionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setPosition" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartSetPositionRequest struct{ BaseRequest } + +// +func (b *WorkbookChartSetPositionRequestBuilder) Request() *WorkbookChartSetPositionRequest { + return &WorkbookChartSetPositionRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartSetPositionRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookChartFillClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookChartFillRequestBuilder) Clear(reqObj *WorkbookChartFillClearRequestParameter) *WorkbookChartFillClearRequestBuilder { + bb := &WorkbookChartFillClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartFillClearRequest struct{ BaseRequest } + +// +func (b *WorkbookChartFillClearRequestBuilder) Request() *WorkbookChartFillClearRequest { + return &WorkbookChartFillClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartFillClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookChartFillSetSolidColorRequestBuilder struct{ BaseRequestBuilder } + +// SetSolidColor action undocumented +func (b *WorkbookChartFillRequestBuilder) SetSolidColor(reqObj *WorkbookChartFillSetSolidColorRequestParameter) *WorkbookChartFillSetSolidColorRequestBuilder { + bb := &WorkbookChartFillSetSolidColorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/setSolidColor" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartFillSetSolidColorRequest struct{ BaseRequest } + +// +func (b *WorkbookChartFillSetSolidColorRequestBuilder) Request() *WorkbookChartFillSetSolidColorRequest { + return &WorkbookChartFillSetSolidColorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartFillSetSolidColorRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookChartLineFormatClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookChartLineFormatRequestBuilder) Clear(reqObj *WorkbookChartLineFormatClearRequestParameter) *WorkbookChartLineFormatClearRequestBuilder { + bb := &WorkbookChartLineFormatClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookChartLineFormatClearRequest struct{ BaseRequest } + +// +func (b *WorkbookChartLineFormatClearRequestBuilder) Request() *WorkbookChartLineFormatClearRequest { + return &WorkbookChartLineFormatClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookChartLineFormatClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyRequestBuilder struct{ BaseRequestBuilder } + +// Apply action undocumented +func (b *WorkbookFilterRequestBuilder) Apply(reqObj *WorkbookFilterApplyRequestParameter) *WorkbookFilterApplyRequestBuilder { + bb := &WorkbookFilterApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/apply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyRequestBuilder) Request() *WorkbookFilterApplyRequest { + return &WorkbookFilterApplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyBottomItemsFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyBottomItemsFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyBottomItemsFilter(reqObj *WorkbookFilterApplyBottomItemsFilterRequestParameter) *WorkbookFilterApplyBottomItemsFilterRequestBuilder { + bb := &WorkbookFilterApplyBottomItemsFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyBottomItemsFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyBottomItemsFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyBottomItemsFilterRequestBuilder) Request() *WorkbookFilterApplyBottomItemsFilterRequest { + return &WorkbookFilterApplyBottomItemsFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyBottomItemsFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyBottomPercentFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyBottomPercentFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyBottomPercentFilter(reqObj *WorkbookFilterApplyBottomPercentFilterRequestParameter) *WorkbookFilterApplyBottomPercentFilterRequestBuilder { + bb := &WorkbookFilterApplyBottomPercentFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyBottomPercentFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyBottomPercentFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyBottomPercentFilterRequestBuilder) Request() *WorkbookFilterApplyBottomPercentFilterRequest { + return &WorkbookFilterApplyBottomPercentFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyBottomPercentFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyCellColorFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyCellColorFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyCellColorFilter(reqObj *WorkbookFilterApplyCellColorFilterRequestParameter) *WorkbookFilterApplyCellColorFilterRequestBuilder { + bb := &WorkbookFilterApplyCellColorFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyCellColorFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyCellColorFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyCellColorFilterRequestBuilder) Request() *WorkbookFilterApplyCellColorFilterRequest { + return &WorkbookFilterApplyCellColorFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyCellColorFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyCustomFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyCustomFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyCustomFilter(reqObj *WorkbookFilterApplyCustomFilterRequestParameter) *WorkbookFilterApplyCustomFilterRequestBuilder { + bb := &WorkbookFilterApplyCustomFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyCustomFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyCustomFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyCustomFilterRequestBuilder) Request() *WorkbookFilterApplyCustomFilterRequest { + return &WorkbookFilterApplyCustomFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyCustomFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyDynamicFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyDynamicFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyDynamicFilter(reqObj *WorkbookFilterApplyDynamicFilterRequestParameter) *WorkbookFilterApplyDynamicFilterRequestBuilder { + bb := &WorkbookFilterApplyDynamicFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyDynamicFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyDynamicFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyDynamicFilterRequestBuilder) Request() *WorkbookFilterApplyDynamicFilterRequest { + return &WorkbookFilterApplyDynamicFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyDynamicFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyFontColorFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyFontColorFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyFontColorFilter(reqObj *WorkbookFilterApplyFontColorFilterRequestParameter) *WorkbookFilterApplyFontColorFilterRequestBuilder { + bb := &WorkbookFilterApplyFontColorFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyFontColorFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyFontColorFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyFontColorFilterRequestBuilder) Request() *WorkbookFilterApplyFontColorFilterRequest { + return &WorkbookFilterApplyFontColorFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyFontColorFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyIconFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyIconFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyIconFilter(reqObj *WorkbookFilterApplyIconFilterRequestParameter) *WorkbookFilterApplyIconFilterRequestBuilder { + bb := &WorkbookFilterApplyIconFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyIconFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyIconFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyIconFilterRequestBuilder) Request() *WorkbookFilterApplyIconFilterRequest { + return &WorkbookFilterApplyIconFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyIconFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyTopItemsFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyTopItemsFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyTopItemsFilter(reqObj *WorkbookFilterApplyTopItemsFilterRequestParameter) *WorkbookFilterApplyTopItemsFilterRequestBuilder { + bb := &WorkbookFilterApplyTopItemsFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyTopItemsFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyTopItemsFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyTopItemsFilterRequestBuilder) Request() *WorkbookFilterApplyTopItemsFilterRequest { + return &WorkbookFilterApplyTopItemsFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyTopItemsFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyTopPercentFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyTopPercentFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyTopPercentFilter(reqObj *WorkbookFilterApplyTopPercentFilterRequestParameter) *WorkbookFilterApplyTopPercentFilterRequestBuilder { + bb := &WorkbookFilterApplyTopPercentFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyTopPercentFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyTopPercentFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyTopPercentFilterRequestBuilder) Request() *WorkbookFilterApplyTopPercentFilterRequest { + return &WorkbookFilterApplyTopPercentFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyTopPercentFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterApplyValuesFilterRequestBuilder struct{ BaseRequestBuilder } + +// ApplyValuesFilter action undocumented +func (b *WorkbookFilterRequestBuilder) ApplyValuesFilter(reqObj *WorkbookFilterApplyValuesFilterRequestParameter) *WorkbookFilterApplyValuesFilterRequestBuilder { + bb := &WorkbookFilterApplyValuesFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/applyValuesFilter" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterApplyValuesFilterRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterApplyValuesFilterRequestBuilder) Request() *WorkbookFilterApplyValuesFilterRequest { + return &WorkbookFilterApplyValuesFilterRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterApplyValuesFilterRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookFilterClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookFilterRequestBuilder) Clear(reqObj *WorkbookFilterClearRequestParameter) *WorkbookFilterClearRequestBuilder { + bb := &WorkbookFilterClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFilterClearRequest struct{ BaseRequest } + +// +func (b *WorkbookFilterClearRequestBuilder) Request() *WorkbookFilterClearRequest { + return &WorkbookFilterClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFilterClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookPivotTableRefreshRequestBuilder struct{ BaseRequestBuilder } + +// Refresh action undocumented +func (b *WorkbookPivotTableRequestBuilder) Refresh(reqObj *WorkbookPivotTableRefreshRequestParameter) *WorkbookPivotTableRefreshRequestBuilder { + bb := &WorkbookPivotTableRefreshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/refresh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookPivotTableRefreshRequest struct{ BaseRequest } + +// +func (b *WorkbookPivotTableRefreshRequestBuilder) Request() *WorkbookPivotTableRefreshRequest { + return &WorkbookPivotTableRefreshRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookPivotTableRefreshRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookRangeRequestBuilder) Clear(reqObj *WorkbookRangeClearRequestParameter) *WorkbookRangeClearRequestBuilder { + bb := &WorkbookRangeClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeClearRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeClearRequestBuilder) Request() *WorkbookRangeClearRequest { + return &WorkbookRangeClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeDeleteRequestBuilder struct{ BaseRequestBuilder } + +// Delete action undocumented +func (b *WorkbookRangeRequestBuilder) Delete(reqObj *WorkbookRangeDeleteRequestParameter) *WorkbookRangeDeleteRequestBuilder { + bb := &WorkbookRangeDeleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/delete" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeDeleteRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeDeleteRequestBuilder) Request() *WorkbookRangeDeleteRequest { + return &WorkbookRangeDeleteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeDeleteRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeInsertRequestBuilder struct{ BaseRequestBuilder } + +// Insert action undocumented +func (b *WorkbookRangeRequestBuilder) Insert(reqObj *WorkbookRangeInsertRequestParameter) *WorkbookRangeInsertRequestBuilder { + bb := &WorkbookRangeInsertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/insert" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeInsertRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeInsertRequestBuilder) Request() *WorkbookRangeInsertRequest { + return &WorkbookRangeInsertRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeInsertRequest) Post(ctx context.Context) (resObj *WorkbookRange, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookRangeMergeRequestBuilder struct{ BaseRequestBuilder } + +// Merge action undocumented +func (b *WorkbookRangeRequestBuilder) Merge(reqObj *WorkbookRangeMergeRequestParameter) *WorkbookRangeMergeRequestBuilder { + bb := &WorkbookRangeMergeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/merge" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeMergeRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeMergeRequestBuilder) Request() *WorkbookRangeMergeRequest { + return &WorkbookRangeMergeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeMergeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeUnmergeRequestBuilder struct{ BaseRequestBuilder } + +// Unmerge action undocumented +func (b *WorkbookRangeRequestBuilder) Unmerge(reqObj *WorkbookRangeUnmergeRequestParameter) *WorkbookRangeUnmergeRequestBuilder { + bb := &WorkbookRangeUnmergeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unmerge" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeUnmergeRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeUnmergeRequestBuilder) Request() *WorkbookRangeUnmergeRequest { + return &WorkbookRangeUnmergeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeUnmergeRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeFillClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookRangeFillRequestBuilder) Clear(reqObj *WorkbookRangeFillClearRequestParameter) *WorkbookRangeFillClearRequestBuilder { + bb := &WorkbookRangeFillClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeFillClearRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeFillClearRequestBuilder) Request() *WorkbookRangeFillClearRequest { + return &WorkbookRangeFillClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeFillClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeFormatAutofitColumnsRequestBuilder struct{ BaseRequestBuilder } + +// AutofitColumns action undocumented +func (b *WorkbookRangeFormatRequestBuilder) AutofitColumns(reqObj *WorkbookRangeFormatAutofitColumnsRequestParameter) *WorkbookRangeFormatAutofitColumnsRequestBuilder { + bb := &WorkbookRangeFormatAutofitColumnsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/autofitColumns" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeFormatAutofitColumnsRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeFormatAutofitColumnsRequestBuilder) Request() *WorkbookRangeFormatAutofitColumnsRequest { + return &WorkbookRangeFormatAutofitColumnsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeFormatAutofitColumnsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeFormatAutofitRowsRequestBuilder struct{ BaseRequestBuilder } + +// AutofitRows action undocumented +func (b *WorkbookRangeFormatRequestBuilder) AutofitRows(reqObj *WorkbookRangeFormatAutofitRowsRequestParameter) *WorkbookRangeFormatAutofitRowsRequestBuilder { + bb := &WorkbookRangeFormatAutofitRowsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/autofitRows" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeFormatAutofitRowsRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeFormatAutofitRowsRequestBuilder) Request() *WorkbookRangeFormatAutofitRowsRequest { + return &WorkbookRangeFormatAutofitRowsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeFormatAutofitRowsRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookRangeSortApplyRequestBuilder struct{ BaseRequestBuilder } + +// Apply action undocumented +func (b *WorkbookRangeSortRequestBuilder) Apply(reqObj *WorkbookRangeSortApplyRequestParameter) *WorkbookRangeSortApplyRequestBuilder { + bb := &WorkbookRangeSortApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/apply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookRangeSortApplyRequest struct{ BaseRequest } + +// +func (b *WorkbookRangeSortApplyRequestBuilder) Request() *WorkbookRangeSortApplyRequest { + return &WorkbookRangeSortApplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookRangeSortApplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableClearFiltersRequestBuilder struct{ BaseRequestBuilder } + +// ClearFilters action undocumented +func (b *WorkbookTableRequestBuilder) ClearFilters(reqObj *WorkbookTableClearFiltersRequestParameter) *WorkbookTableClearFiltersRequestBuilder { + bb := &WorkbookTableClearFiltersRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clearFilters" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableClearFiltersRequest struct{ BaseRequest } + +// +func (b *WorkbookTableClearFiltersRequestBuilder) Request() *WorkbookTableClearFiltersRequest { + return &WorkbookTableClearFiltersRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableClearFiltersRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableConvertToRangeRequestBuilder struct{ BaseRequestBuilder } + +// ConvertToRange action undocumented +func (b *WorkbookTableRequestBuilder) ConvertToRange(reqObj *WorkbookTableConvertToRangeRequestParameter) *WorkbookTableConvertToRangeRequestBuilder { + bb := &WorkbookTableConvertToRangeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/convertToRange" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableConvertToRangeRequest struct{ BaseRequest } + +// +func (b *WorkbookTableConvertToRangeRequestBuilder) Request() *WorkbookTableConvertToRangeRequest { + return &WorkbookTableConvertToRangeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableConvertToRangeRequest) Post(ctx context.Context) (resObj *WorkbookRange, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookTableReapplyFiltersRequestBuilder struct{ BaseRequestBuilder } + +// ReapplyFilters action undocumented +func (b *WorkbookTableRequestBuilder) ReapplyFilters(reqObj *WorkbookTableReapplyFiltersRequestParameter) *WorkbookTableReapplyFiltersRequestBuilder { + bb := &WorkbookTableReapplyFiltersRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reapplyFilters" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableReapplyFiltersRequest struct{ BaseRequest } + +// +func (b *WorkbookTableReapplyFiltersRequestBuilder) Request() *WorkbookTableReapplyFiltersRequest { + return &WorkbookTableReapplyFiltersRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableReapplyFiltersRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableSortApplyRequestBuilder struct{ BaseRequestBuilder } + +// Apply action undocumented +func (b *WorkbookTableSortRequestBuilder) Apply(reqObj *WorkbookTableSortApplyRequestParameter) *WorkbookTableSortApplyRequestBuilder { + bb := &WorkbookTableSortApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/apply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableSortApplyRequest struct{ BaseRequest } + +// +func (b *WorkbookTableSortApplyRequestBuilder) Request() *WorkbookTableSortApplyRequest { + return &WorkbookTableSortApplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableSortApplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableSortClearRequestBuilder struct{ BaseRequestBuilder } + +// Clear action undocumented +func (b *WorkbookTableSortRequestBuilder) Clear(reqObj *WorkbookTableSortClearRequestParameter) *WorkbookTableSortClearRequestBuilder { + bb := &WorkbookTableSortClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clear" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableSortClearRequest struct{ BaseRequest } + +// +func (b *WorkbookTableSortClearRequestBuilder) Request() *WorkbookTableSortClearRequest { + return &WorkbookTableSortClearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableSortClearRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookTableSortReapplyRequestBuilder struct{ BaseRequestBuilder } + +// Reapply action undocumented +func (b *WorkbookTableSortRequestBuilder) Reapply(reqObj *WorkbookTableSortReapplyRequestParameter) *WorkbookTableSortReapplyRequestBuilder { + bb := &WorkbookTableSortReapplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/reapply" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookTableSortReapplyRequest struct{ BaseRequest } + +// +func (b *WorkbookTableSortReapplyRequestBuilder) Request() *WorkbookTableSortReapplyRequest { + return &WorkbookTableSortReapplyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookTableSortReapplyRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookWorksheetProtectionProtectRequestBuilder struct{ BaseRequestBuilder } + +// Protect action undocumented +func (b *WorkbookWorksheetProtectionRequestBuilder) Protect(reqObj *WorkbookWorksheetProtectionProtectRequestParameter) *WorkbookWorksheetProtectionProtectRequestBuilder { + bb := &WorkbookWorksheetProtectionProtectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/protect" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookWorksheetProtectionProtectRequest struct{ BaseRequest } + +// +func (b *WorkbookWorksheetProtectionProtectRequestBuilder) Request() *WorkbookWorksheetProtectionProtectRequest { + return &WorkbookWorksheetProtectionProtectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookWorksheetProtectionProtectRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type WorkbookWorksheetProtectionUnprotectRequestBuilder struct{ BaseRequestBuilder } + +// Unprotect action undocumented +func (b *WorkbookWorksheetProtectionRequestBuilder) Unprotect(reqObj *WorkbookWorksheetProtectionUnprotectRequestParameter) *WorkbookWorksheetProtectionUnprotectRequestBuilder { + bb := &WorkbookWorksheetProtectionUnprotectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unprotect" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookWorksheetProtectionUnprotectRequest struct{ BaseRequest } + +// +func (b *WorkbookWorksheetProtectionUnprotectRequestBuilder) Request() *WorkbookWorksheetProtectionUnprotectRequest { + return &WorkbookWorksheetProtectionUnprotectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookWorksheetProtectionUnprotectRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WorkbookFunctionsRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go new file mode 100644 index 00000000..999c4dd9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAbsRequestBuilder struct{ BaseRequestBuilder } + +// Abs action undocumented +func (b *WorkbookFunctionsRequestBuilder) Abs(reqObj *WorkbookFunctionsAbsRequestParameter) *WorkbookFunctionsAbsRequestBuilder { + bb := &WorkbookFunctionsAbsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/abs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAbsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAbsRequestBuilder) Request() *WorkbookFunctionsAbsRequest { + return &WorkbookFunctionsAbsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAbsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go new file mode 100644 index 00000000..688bb23e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAccrIntRequestBuilder struct{ BaseRequestBuilder } + +// AccrInt action undocumented +func (b *WorkbookFunctionsRequestBuilder) AccrInt(reqObj *WorkbookFunctionsAccrIntRequestParameter) *WorkbookFunctionsAccrIntRequestBuilder { + bb := &WorkbookFunctionsAccrIntRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/accrInt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAccrIntRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAccrIntRequestBuilder) Request() *WorkbookFunctionsAccrIntRequest { + return &WorkbookFunctionsAccrIntRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAccrIntRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsAccrIntMRequestBuilder struct{ BaseRequestBuilder } + +// AccrIntM action undocumented +func (b *WorkbookFunctionsRequestBuilder) AccrIntM(reqObj *WorkbookFunctionsAccrIntMRequestParameter) *WorkbookFunctionsAccrIntMRequestBuilder { + bb := &WorkbookFunctionsAccrIntMRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/accrIntM" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAccrIntMRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAccrIntMRequestBuilder) Request() *WorkbookFunctionsAccrIntMRequest { + return &WorkbookFunctionsAccrIntMRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAccrIntMRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go new file mode 100644 index 00000000..dc0fc6dc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAcosRequestBuilder struct{ BaseRequestBuilder } + +// Acos action undocumented +func (b *WorkbookFunctionsRequestBuilder) Acos(reqObj *WorkbookFunctionsAcosRequestParameter) *WorkbookFunctionsAcosRequestBuilder { + bb := &WorkbookFunctionsAcosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/acos" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAcosRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAcosRequestBuilder) Request() *WorkbookFunctionsAcosRequest { + return &WorkbookFunctionsAcosRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAcosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go new file mode 100644 index 00000000..4d8b0799 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAcoshRequestBuilder struct{ BaseRequestBuilder } + +// Acosh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Acosh(reqObj *WorkbookFunctionsAcoshRequestParameter) *WorkbookFunctionsAcoshRequestBuilder { + bb := &WorkbookFunctionsAcoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/acosh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAcoshRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAcoshRequestBuilder) Request() *WorkbookFunctionsAcoshRequest { + return &WorkbookFunctionsAcoshRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAcoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go new file mode 100644 index 00000000..010d417f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAcotRequestBuilder struct{ BaseRequestBuilder } + +// Acot action undocumented +func (b *WorkbookFunctionsRequestBuilder) Acot(reqObj *WorkbookFunctionsAcotRequestParameter) *WorkbookFunctionsAcotRequestBuilder { + bb := &WorkbookFunctionsAcotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/acot" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAcotRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAcotRequestBuilder) Request() *WorkbookFunctionsAcotRequest { + return &WorkbookFunctionsAcotRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAcotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go new file mode 100644 index 00000000..b47e69bc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAcothRequestBuilder struct{ BaseRequestBuilder } + +// Acoth action undocumented +func (b *WorkbookFunctionsRequestBuilder) Acoth(reqObj *WorkbookFunctionsAcothRequestParameter) *WorkbookFunctionsAcothRequestBuilder { + bb := &WorkbookFunctionsAcothRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/acoth" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAcothRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAcothRequestBuilder) Request() *WorkbookFunctionsAcothRequest { + return &WorkbookFunctionsAcothRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAcothRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go new file mode 100644 index 00000000..256a6dcc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAmorDegrcRequestBuilder struct{ BaseRequestBuilder } + +// AmorDegrc action undocumented +func (b *WorkbookFunctionsRequestBuilder) AmorDegrc(reqObj *WorkbookFunctionsAmorDegrcRequestParameter) *WorkbookFunctionsAmorDegrcRequestBuilder { + bb := &WorkbookFunctionsAmorDegrcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/amorDegrc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAmorDegrcRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAmorDegrcRequestBuilder) Request() *WorkbookFunctionsAmorDegrcRequest { + return &WorkbookFunctionsAmorDegrcRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAmorDegrcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsAmorLincRequestBuilder struct{ BaseRequestBuilder } + +// AmorLinc action undocumented +func (b *WorkbookFunctionsRequestBuilder) AmorLinc(reqObj *WorkbookFunctionsAmorLincRequestParameter) *WorkbookFunctionsAmorLincRequestBuilder { + bb := &WorkbookFunctionsAmorLincRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/amorLinc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAmorLincRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAmorLincRequestBuilder) Request() *WorkbookFunctionsAmorLincRequest { + return &WorkbookFunctionsAmorLincRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAmorLincRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go new file mode 100644 index 00000000..928c1791 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAndRequestBuilder struct{ BaseRequestBuilder } + +// And action undocumented +func (b *WorkbookFunctionsRequestBuilder) And(reqObj *WorkbookFunctionsAndRequestParameter) *WorkbookFunctionsAndRequestBuilder { + bb := &WorkbookFunctionsAndRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/and" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAndRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAndRequestBuilder) Request() *WorkbookFunctionsAndRequest { + return &WorkbookFunctionsAndRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAndRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go new file mode 100644 index 00000000..2c520522 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsArabicRequestBuilder struct{ BaseRequestBuilder } + +// Arabic action undocumented +func (b *WorkbookFunctionsRequestBuilder) Arabic(reqObj *WorkbookFunctionsArabicRequestParameter) *WorkbookFunctionsArabicRequestBuilder { + bb := &WorkbookFunctionsArabicRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/arabic" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsArabicRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsArabicRequestBuilder) Request() *WorkbookFunctionsArabicRequest { + return &WorkbookFunctionsArabicRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsArabicRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go new file mode 100644 index 00000000..6d16c45c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAreasRequestBuilder struct{ BaseRequestBuilder } + +// Areas action undocumented +func (b *WorkbookFunctionsRequestBuilder) Areas(reqObj *WorkbookFunctionsAreasRequestParameter) *WorkbookFunctionsAreasRequestBuilder { + bb := &WorkbookFunctionsAreasRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/areas" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAreasRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAreasRequestBuilder) Request() *WorkbookFunctionsAreasRequest { + return &WorkbookFunctionsAreasRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAreasRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go new file mode 100644 index 00000000..79ad3437 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAscRequestBuilder struct{ BaseRequestBuilder } + +// Asc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Asc(reqObj *WorkbookFunctionsAscRequestParameter) *WorkbookFunctionsAscRequestBuilder { + bb := &WorkbookFunctionsAscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/asc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAscRequestBuilder) Request() *WorkbookFunctionsAscRequest { + return &WorkbookFunctionsAscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go new file mode 100644 index 00000000..a3c8bbcc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAsinRequestBuilder struct{ BaseRequestBuilder } + +// Asin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Asin(reqObj *WorkbookFunctionsAsinRequestParameter) *WorkbookFunctionsAsinRequestBuilder { + bb := &WorkbookFunctionsAsinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/asin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAsinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAsinRequestBuilder) Request() *WorkbookFunctionsAsinRequest { + return &WorkbookFunctionsAsinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAsinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go new file mode 100644 index 00000000..5ef3c4fe --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAsinhRequestBuilder struct{ BaseRequestBuilder } + +// Asinh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Asinh(reqObj *WorkbookFunctionsAsinhRequestParameter) *WorkbookFunctionsAsinhRequestBuilder { + bb := &WorkbookFunctionsAsinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/asinh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAsinhRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAsinhRequestBuilder) Request() *WorkbookFunctionsAsinhRequest { + return &WorkbookFunctionsAsinhRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAsinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go new file mode 100644 index 00000000..1d4b7e50 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAtanRequestBuilder struct{ BaseRequestBuilder } + +// Atan action undocumented +func (b *WorkbookFunctionsRequestBuilder) Atan(reqObj *WorkbookFunctionsAtanRequestParameter) *WorkbookFunctionsAtanRequestBuilder { + bb := &WorkbookFunctionsAtanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/atan" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAtanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAtanRequestBuilder) Request() *WorkbookFunctionsAtanRequest { + return &WorkbookFunctionsAtanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAtanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go new file mode 100644 index 00000000..bb0cf4b2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAtan2RequestBuilder struct{ BaseRequestBuilder } + +// Atan2 action undocumented +func (b *WorkbookFunctionsRequestBuilder) Atan2(reqObj *WorkbookFunctionsAtan2RequestParameter) *WorkbookFunctionsAtan2RequestBuilder { + bb := &WorkbookFunctionsAtan2RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/atan2" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAtan2Request struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAtan2RequestBuilder) Request() *WorkbookFunctionsAtan2Request { + return &WorkbookFunctionsAtan2Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAtan2Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go new file mode 100644 index 00000000..3a5176da --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAtanhRequestBuilder struct{ BaseRequestBuilder } + +// Atanh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Atanh(reqObj *WorkbookFunctionsAtanhRequestParameter) *WorkbookFunctionsAtanhRequestBuilder { + bb := &WorkbookFunctionsAtanhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/atanh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAtanhRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAtanhRequestBuilder) Request() *WorkbookFunctionsAtanhRequest { + return &WorkbookFunctionsAtanhRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAtanhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go new file mode 100644 index 00000000..4b7ce1e8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAveDevRequestBuilder struct{ BaseRequestBuilder } + +// AveDev action undocumented +func (b *WorkbookFunctionsRequestBuilder) AveDev(reqObj *WorkbookFunctionsAveDevRequestParameter) *WorkbookFunctionsAveDevRequestBuilder { + bb := &WorkbookFunctionsAveDevRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/aveDev" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAveDevRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAveDevRequestBuilder) Request() *WorkbookFunctionsAveDevRequest { + return &WorkbookFunctionsAveDevRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAveDevRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go new file mode 100644 index 00000000..442b7bd3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsAverageRequestBuilder struct{ BaseRequestBuilder } + +// Average action undocumented +func (b *WorkbookFunctionsRequestBuilder) Average(reqObj *WorkbookFunctionsAverageRequestParameter) *WorkbookFunctionsAverageRequestBuilder { + bb := &WorkbookFunctionsAverageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/average" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAverageRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAverageRequestBuilder) Request() *WorkbookFunctionsAverageRequest { + return &WorkbookFunctionsAverageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAverageRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsAverageARequestBuilder struct{ BaseRequestBuilder } + +// AverageA action undocumented +func (b *WorkbookFunctionsRequestBuilder) AverageA(reqObj *WorkbookFunctionsAverageARequestParameter) *WorkbookFunctionsAverageARequestBuilder { + bb := &WorkbookFunctionsAverageARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/averageA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAverageARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAverageARequestBuilder) Request() *WorkbookFunctionsAverageARequest { + return &WorkbookFunctionsAverageARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAverageARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsAverageIfRequestBuilder struct{ BaseRequestBuilder } + +// AverageIf action undocumented +func (b *WorkbookFunctionsRequestBuilder) AverageIf(reqObj *WorkbookFunctionsAverageIfRequestParameter) *WorkbookFunctionsAverageIfRequestBuilder { + bb := &WorkbookFunctionsAverageIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/averageIf" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAverageIfRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAverageIfRequestBuilder) Request() *WorkbookFunctionsAverageIfRequest { + return &WorkbookFunctionsAverageIfRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAverageIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsAverageIfsRequestBuilder struct{ BaseRequestBuilder } + +// AverageIfs action undocumented +func (b *WorkbookFunctionsRequestBuilder) AverageIfs(reqObj *WorkbookFunctionsAverageIfsRequestParameter) *WorkbookFunctionsAverageIfsRequestBuilder { + bb := &WorkbookFunctionsAverageIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/averageIfs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsAverageIfsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsAverageIfsRequestBuilder) Request() *WorkbookFunctionsAverageIfsRequest { + return &WorkbookFunctionsAverageIfsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsAverageIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go new file mode 100644 index 00000000..319c842c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBahtTextRequestBuilder struct{ BaseRequestBuilder } + +// BahtText action undocumented +func (b *WorkbookFunctionsRequestBuilder) BahtText(reqObj *WorkbookFunctionsBahtTextRequestParameter) *WorkbookFunctionsBahtTextRequestBuilder { + bb := &WorkbookFunctionsBahtTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bahtText" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBahtTextRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBahtTextRequestBuilder) Request() *WorkbookFunctionsBahtTextRequest { + return &WorkbookFunctionsBahtTextRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBahtTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go new file mode 100644 index 00000000..1c82ae33 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBaseRequestBuilder struct{ BaseRequestBuilder } + +// Base action undocumented +func (b *WorkbookFunctionsRequestBuilder) Base(reqObj *WorkbookFunctionsBaseRequestParameter) *WorkbookFunctionsBaseRequestBuilder { + bb := &WorkbookFunctionsBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/base" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBaseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBaseRequestBuilder) Request() *WorkbookFunctionsBaseRequest { + return &WorkbookFunctionsBaseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBaseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go new file mode 100644 index 00000000..dbe1a623 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBesselIRequestBuilder struct{ BaseRequestBuilder } + +// BesselI action undocumented +func (b *WorkbookFunctionsRequestBuilder) BesselI(reqObj *WorkbookFunctionsBesselIRequestParameter) *WorkbookFunctionsBesselIRequestBuilder { + bb := &WorkbookFunctionsBesselIRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/besselI" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBesselIRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBesselIRequestBuilder) Request() *WorkbookFunctionsBesselIRequest { + return &WorkbookFunctionsBesselIRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBesselIRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBesselJRequestBuilder struct{ BaseRequestBuilder } + +// BesselJ action undocumented +func (b *WorkbookFunctionsRequestBuilder) BesselJ(reqObj *WorkbookFunctionsBesselJRequestParameter) *WorkbookFunctionsBesselJRequestBuilder { + bb := &WorkbookFunctionsBesselJRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/besselJ" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBesselJRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBesselJRequestBuilder) Request() *WorkbookFunctionsBesselJRequest { + return &WorkbookFunctionsBesselJRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBesselJRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBesselKRequestBuilder struct{ BaseRequestBuilder } + +// BesselK action undocumented +func (b *WorkbookFunctionsRequestBuilder) BesselK(reqObj *WorkbookFunctionsBesselKRequestParameter) *WorkbookFunctionsBesselKRequestBuilder { + bb := &WorkbookFunctionsBesselKRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/besselK" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBesselKRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBesselKRequestBuilder) Request() *WorkbookFunctionsBesselKRequest { + return &WorkbookFunctionsBesselKRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBesselKRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBesselYRequestBuilder struct{ BaseRequestBuilder } + +// BesselY action undocumented +func (b *WorkbookFunctionsRequestBuilder) BesselY(reqObj *WorkbookFunctionsBesselYRequestParameter) *WorkbookFunctionsBesselYRequestBuilder { + bb := &WorkbookFunctionsBesselYRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/besselY" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBesselYRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBesselYRequestBuilder) Request() *WorkbookFunctionsBesselYRequest { + return &WorkbookFunctionsBesselYRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBesselYRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go new file mode 100644 index 00000000..8fb590ac --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBeta_DistRequestBuilder struct{ BaseRequestBuilder } + +// Beta_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Beta_Dist(reqObj *WorkbookFunctionsBeta_DistRequestParameter) *WorkbookFunctionsBeta_DistRequestBuilder { + bb := &WorkbookFunctionsBeta_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/beta_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBeta_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBeta_DistRequestBuilder) Request() *WorkbookFunctionsBeta_DistRequest { + return &WorkbookFunctionsBeta_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBeta_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBeta_InvRequestBuilder struct{ BaseRequestBuilder } + +// Beta_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Beta_Inv(reqObj *WorkbookFunctionsBeta_InvRequestParameter) *WorkbookFunctionsBeta_InvRequestBuilder { + bb := &WorkbookFunctionsBeta_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/beta_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBeta_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBeta_InvRequestBuilder) Request() *WorkbookFunctionsBeta_InvRequest { + return &WorkbookFunctionsBeta_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBeta_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go new file mode 100644 index 00000000..246221ac --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBin2DecRequestBuilder struct{ BaseRequestBuilder } + +// Bin2Dec action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bin2Dec(reqObj *WorkbookFunctionsBin2DecRequestParameter) *WorkbookFunctionsBin2DecRequestBuilder { + bb := &WorkbookFunctionsBin2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bin2Dec" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBin2DecRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBin2DecRequestBuilder) Request() *WorkbookFunctionsBin2DecRequest { + return &WorkbookFunctionsBin2DecRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBin2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBin2HexRequestBuilder struct{ BaseRequestBuilder } + +// Bin2Hex action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bin2Hex(reqObj *WorkbookFunctionsBin2HexRequestParameter) *WorkbookFunctionsBin2HexRequestBuilder { + bb := &WorkbookFunctionsBin2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bin2Hex" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBin2HexRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBin2HexRequestBuilder) Request() *WorkbookFunctionsBin2HexRequest { + return &WorkbookFunctionsBin2HexRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBin2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBin2OctRequestBuilder struct{ BaseRequestBuilder } + +// Bin2Oct action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bin2Oct(reqObj *WorkbookFunctionsBin2OctRequestParameter) *WorkbookFunctionsBin2OctRequestBuilder { + bb := &WorkbookFunctionsBin2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bin2Oct" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBin2OctRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBin2OctRequestBuilder) Request() *WorkbookFunctionsBin2OctRequest { + return &WorkbookFunctionsBin2OctRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBin2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go new file mode 100644 index 00000000..9a8618ee --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBinom_DistRequestBuilder struct{ BaseRequestBuilder } + +// Binom_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Binom_Dist(reqObj *WorkbookFunctionsBinom_DistRequestParameter) *WorkbookFunctionsBinom_DistRequestBuilder { + bb := &WorkbookFunctionsBinom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/binom_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBinom_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBinom_DistRequestBuilder) Request() *WorkbookFunctionsBinom_DistRequest { + return &WorkbookFunctionsBinom_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBinom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBinom_Dist_RangeRequestBuilder struct{ BaseRequestBuilder } + +// Binom_Dist_Range action undocumented +func (b *WorkbookFunctionsRequestBuilder) Binom_Dist_Range(reqObj *WorkbookFunctionsBinom_Dist_RangeRequestParameter) *WorkbookFunctionsBinom_Dist_RangeRequestBuilder { + bb := &WorkbookFunctionsBinom_Dist_RangeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/binom_Dist_Range" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBinom_Dist_RangeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBinom_Dist_RangeRequestBuilder) Request() *WorkbookFunctionsBinom_Dist_RangeRequest { + return &WorkbookFunctionsBinom_Dist_RangeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBinom_Dist_RangeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsBinom_InvRequestBuilder struct{ BaseRequestBuilder } + +// Binom_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Binom_Inv(reqObj *WorkbookFunctionsBinom_InvRequestParameter) *WorkbookFunctionsBinom_InvRequestBuilder { + bb := &WorkbookFunctionsBinom_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/binom_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBinom_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBinom_InvRequestBuilder) Request() *WorkbookFunctionsBinom_InvRequest { + return &WorkbookFunctionsBinom_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBinom_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go new file mode 100644 index 00000000..9f65036f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBitandRequestBuilder struct{ BaseRequestBuilder } + +// Bitand action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bitand(reqObj *WorkbookFunctionsBitandRequestParameter) *WorkbookFunctionsBitandRequestBuilder { + bb := &WorkbookFunctionsBitandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bitand" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBitandRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBitandRequestBuilder) Request() *WorkbookFunctionsBitandRequest { + return &WorkbookFunctionsBitandRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBitandRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go new file mode 100644 index 00000000..adee0b2e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBitlshiftRequestBuilder struct{ BaseRequestBuilder } + +// Bitlshift action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bitlshift(reqObj *WorkbookFunctionsBitlshiftRequestParameter) *WorkbookFunctionsBitlshiftRequestBuilder { + bb := &WorkbookFunctionsBitlshiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bitlshift" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBitlshiftRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBitlshiftRequestBuilder) Request() *WorkbookFunctionsBitlshiftRequest { + return &WorkbookFunctionsBitlshiftRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBitlshiftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go new file mode 100644 index 00000000..783d5711 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBitorRequestBuilder struct{ BaseRequestBuilder } + +// Bitor action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bitor(reqObj *WorkbookFunctionsBitorRequestParameter) *WorkbookFunctionsBitorRequestBuilder { + bb := &WorkbookFunctionsBitorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bitor" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBitorRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBitorRequestBuilder) Request() *WorkbookFunctionsBitorRequest { + return &WorkbookFunctionsBitorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBitorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go new file mode 100644 index 00000000..cccb26e4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBitrshiftRequestBuilder struct{ BaseRequestBuilder } + +// Bitrshift action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bitrshift(reqObj *WorkbookFunctionsBitrshiftRequestParameter) *WorkbookFunctionsBitrshiftRequestBuilder { + bb := &WorkbookFunctionsBitrshiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bitrshift" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBitrshiftRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBitrshiftRequestBuilder) Request() *WorkbookFunctionsBitrshiftRequest { + return &WorkbookFunctionsBitrshiftRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBitrshiftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go new file mode 100644 index 00000000..bf310030 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsBitxorRequestBuilder struct{ BaseRequestBuilder } + +// Bitxor action undocumented +func (b *WorkbookFunctionsRequestBuilder) Bitxor(reqObj *WorkbookFunctionsBitxorRequestParameter) *WorkbookFunctionsBitxorRequestBuilder { + bb := &WorkbookFunctionsBitxorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/bitxor" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsBitxorRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsBitxorRequestBuilder) Request() *WorkbookFunctionsBitxorRequest { + return &WorkbookFunctionsBitxorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsBitxorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go new file mode 100644 index 00000000..79222fde --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCeiling_MathRequestBuilder struct{ BaseRequestBuilder } + +// Ceiling_Math action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ceiling_Math(reqObj *WorkbookFunctionsCeiling_MathRequestParameter) *WorkbookFunctionsCeiling_MathRequestBuilder { + bb := &WorkbookFunctionsCeiling_MathRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ceiling_Math" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCeiling_MathRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCeiling_MathRequestBuilder) Request() *WorkbookFunctionsCeiling_MathRequest { + return &WorkbookFunctionsCeiling_MathRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCeiling_MathRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCeiling_PreciseRequestBuilder struct{ BaseRequestBuilder } + +// Ceiling_Precise action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ceiling_Precise(reqObj *WorkbookFunctionsCeiling_PreciseRequestParameter) *WorkbookFunctionsCeiling_PreciseRequestBuilder { + bb := &WorkbookFunctionsCeiling_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ceiling_Precise" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCeiling_PreciseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCeiling_PreciseRequestBuilder) Request() *WorkbookFunctionsCeiling_PreciseRequest { + return &WorkbookFunctionsCeiling_PreciseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCeiling_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go new file mode 100644 index 00000000..fd85809b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCharRequestBuilder struct{ BaseRequestBuilder } + +// Char action undocumented +func (b *WorkbookFunctionsRequestBuilder) Char(reqObj *WorkbookFunctionsCharRequestParameter) *WorkbookFunctionsCharRequestBuilder { + bb := &WorkbookFunctionsCharRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/char" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCharRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCharRequestBuilder) Request() *WorkbookFunctionsCharRequest { + return &WorkbookFunctionsCharRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCharRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go new file mode 100644 index 00000000..71f1e138 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsChiSq_DistRequestBuilder struct{ BaseRequestBuilder } + +// ChiSq_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) ChiSq_Dist(reqObj *WorkbookFunctionsChiSq_DistRequestParameter) *WorkbookFunctionsChiSq_DistRequestBuilder { + bb := &WorkbookFunctionsChiSq_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/chiSq_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsChiSq_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsChiSq_DistRequestBuilder) Request() *WorkbookFunctionsChiSq_DistRequest { + return &WorkbookFunctionsChiSq_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsChiSq_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsChiSq_Dist_RTRequestBuilder struct{ BaseRequestBuilder } + +// ChiSq_Dist_RT action undocumented +func (b *WorkbookFunctionsRequestBuilder) ChiSq_Dist_RT(reqObj *WorkbookFunctionsChiSq_Dist_RTRequestParameter) *WorkbookFunctionsChiSq_Dist_RTRequestBuilder { + bb := &WorkbookFunctionsChiSq_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/chiSq_Dist_RT" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsChiSq_Dist_RTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsChiSq_Dist_RTRequestBuilder) Request() *WorkbookFunctionsChiSq_Dist_RTRequest { + return &WorkbookFunctionsChiSq_Dist_RTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsChiSq_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsChiSq_InvRequestBuilder struct{ BaseRequestBuilder } + +// ChiSq_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) ChiSq_Inv(reqObj *WorkbookFunctionsChiSq_InvRequestParameter) *WorkbookFunctionsChiSq_InvRequestBuilder { + bb := &WorkbookFunctionsChiSq_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/chiSq_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsChiSq_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsChiSq_InvRequestBuilder) Request() *WorkbookFunctionsChiSq_InvRequest { + return &WorkbookFunctionsChiSq_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsChiSq_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsChiSq_Inv_RTRequestBuilder struct{ BaseRequestBuilder } + +// ChiSq_Inv_RT action undocumented +func (b *WorkbookFunctionsRequestBuilder) ChiSq_Inv_RT(reqObj *WorkbookFunctionsChiSq_Inv_RTRequestParameter) *WorkbookFunctionsChiSq_Inv_RTRequestBuilder { + bb := &WorkbookFunctionsChiSq_Inv_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/chiSq_Inv_RT" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsChiSq_Inv_RTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsChiSq_Inv_RTRequestBuilder) Request() *WorkbookFunctionsChiSq_Inv_RTRequest { + return &WorkbookFunctionsChiSq_Inv_RTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsChiSq_Inv_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go new file mode 100644 index 00000000..a5019aec --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsChooseRequestBuilder struct{ BaseRequestBuilder } + +// Choose action undocumented +func (b *WorkbookFunctionsRequestBuilder) Choose(reqObj *WorkbookFunctionsChooseRequestParameter) *WorkbookFunctionsChooseRequestBuilder { + bb := &WorkbookFunctionsChooseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/choose" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsChooseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsChooseRequestBuilder) Request() *WorkbookFunctionsChooseRequest { + return &WorkbookFunctionsChooseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsChooseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go new file mode 100644 index 00000000..cc058905 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCleanRequestBuilder struct{ BaseRequestBuilder } + +// Clean action undocumented +func (b *WorkbookFunctionsRequestBuilder) Clean(reqObj *WorkbookFunctionsCleanRequestParameter) *WorkbookFunctionsCleanRequestBuilder { + bb := &WorkbookFunctionsCleanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/clean" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCleanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCleanRequestBuilder) Request() *WorkbookFunctionsCleanRequest { + return &WorkbookFunctionsCleanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCleanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go new file mode 100644 index 00000000..943c0ee6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCodeRequestBuilder struct{ BaseRequestBuilder } + +// Code action undocumented +func (b *WorkbookFunctionsRequestBuilder) Code(reqObj *WorkbookFunctionsCodeRequestParameter) *WorkbookFunctionsCodeRequestBuilder { + bb := &WorkbookFunctionsCodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/code" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCodeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCodeRequestBuilder) Request() *WorkbookFunctionsCodeRequest { + return &WorkbookFunctionsCodeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCodeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go new file mode 100644 index 00000000..1feea1e5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsColumnsRequestBuilder struct{ BaseRequestBuilder } + +// Columns action undocumented +func (b *WorkbookFunctionsRequestBuilder) Columns(reqObj *WorkbookFunctionsColumnsRequestParameter) *WorkbookFunctionsColumnsRequestBuilder { + bb := &WorkbookFunctionsColumnsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/columns" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsColumnsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsColumnsRequestBuilder) Request() *WorkbookFunctionsColumnsRequest { + return &WorkbookFunctionsColumnsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsColumnsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go new file mode 100644 index 00000000..6ef3bfae --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCombinRequestBuilder struct{ BaseRequestBuilder } + +// Combin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Combin(reqObj *WorkbookFunctionsCombinRequestParameter) *WorkbookFunctionsCombinRequestBuilder { + bb := &WorkbookFunctionsCombinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/combin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCombinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCombinRequestBuilder) Request() *WorkbookFunctionsCombinRequest { + return &WorkbookFunctionsCombinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCombinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go new file mode 100644 index 00000000..d6f238e5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCombinaRequestBuilder struct{ BaseRequestBuilder } + +// Combina action undocumented +func (b *WorkbookFunctionsRequestBuilder) Combina(reqObj *WorkbookFunctionsCombinaRequestParameter) *WorkbookFunctionsCombinaRequestBuilder { + bb := &WorkbookFunctionsCombinaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/combina" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCombinaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCombinaRequestBuilder) Request() *WorkbookFunctionsCombinaRequest { + return &WorkbookFunctionsCombinaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCombinaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go new file mode 100644 index 00000000..c09c37db --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsComplexRequestBuilder struct{ BaseRequestBuilder } + +// Complex action undocumented +func (b *WorkbookFunctionsRequestBuilder) Complex(reqObj *WorkbookFunctionsComplexRequestParameter) *WorkbookFunctionsComplexRequestBuilder { + bb := &WorkbookFunctionsComplexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/complex" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsComplexRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsComplexRequestBuilder) Request() *WorkbookFunctionsComplexRequest { + return &WorkbookFunctionsComplexRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsComplexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go new file mode 100644 index 00000000..f50086a2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsConcatenateRequestBuilder struct{ BaseRequestBuilder } + +// Concatenate action undocumented +func (b *WorkbookFunctionsRequestBuilder) Concatenate(reqObj *WorkbookFunctionsConcatenateRequestParameter) *WorkbookFunctionsConcatenateRequestBuilder { + bb := &WorkbookFunctionsConcatenateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/concatenate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsConcatenateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsConcatenateRequestBuilder) Request() *WorkbookFunctionsConcatenateRequest { + return &WorkbookFunctionsConcatenateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsConcatenateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go new file mode 100644 index 00000000..fd62c985 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsConfidence_NormRequestBuilder struct{ BaseRequestBuilder } + +// Confidence_Norm action undocumented +func (b *WorkbookFunctionsRequestBuilder) Confidence_Norm(reqObj *WorkbookFunctionsConfidence_NormRequestParameter) *WorkbookFunctionsConfidence_NormRequestBuilder { + bb := &WorkbookFunctionsConfidence_NormRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/confidence_Norm" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsConfidence_NormRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsConfidence_NormRequestBuilder) Request() *WorkbookFunctionsConfidence_NormRequest { + return &WorkbookFunctionsConfidence_NormRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsConfidence_NormRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsConfidence_TRequestBuilder struct{ BaseRequestBuilder } + +// Confidence_T action undocumented +func (b *WorkbookFunctionsRequestBuilder) Confidence_T(reqObj *WorkbookFunctionsConfidence_TRequestParameter) *WorkbookFunctionsConfidence_TRequestBuilder { + bb := &WorkbookFunctionsConfidence_TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/confidence_T" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsConfidence_TRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsConfidence_TRequestBuilder) Request() *WorkbookFunctionsConfidence_TRequest { + return &WorkbookFunctionsConfidence_TRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsConfidence_TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go new file mode 100644 index 00000000..ecc8d197 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsConvertRequestBuilder struct{ BaseRequestBuilder } + +// Convert action undocumented +func (b *WorkbookFunctionsRequestBuilder) Convert(reqObj *WorkbookFunctionsConvertRequestParameter) *WorkbookFunctionsConvertRequestBuilder { + bb := &WorkbookFunctionsConvertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/convert" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsConvertRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsConvertRequestBuilder) Request() *WorkbookFunctionsConvertRequest { + return &WorkbookFunctionsConvertRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsConvertRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go new file mode 100644 index 00000000..9fb77382 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCosRequestBuilder struct{ BaseRequestBuilder } + +// Cos action undocumented +func (b *WorkbookFunctionsRequestBuilder) Cos(reqObj *WorkbookFunctionsCosRequestParameter) *WorkbookFunctionsCosRequestBuilder { + bb := &WorkbookFunctionsCosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cos" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCosRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCosRequestBuilder) Request() *WorkbookFunctionsCosRequest { + return &WorkbookFunctionsCosRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go new file mode 100644 index 00000000..034ed2f0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCoshRequestBuilder struct{ BaseRequestBuilder } + +// Cosh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Cosh(reqObj *WorkbookFunctionsCoshRequestParameter) *WorkbookFunctionsCoshRequestBuilder { + bb := &WorkbookFunctionsCoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cosh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoshRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoshRequestBuilder) Request() *WorkbookFunctionsCoshRequest { + return &WorkbookFunctionsCoshRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go new file mode 100644 index 00000000..c525ded5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCotRequestBuilder struct{ BaseRequestBuilder } + +// Cot action undocumented +func (b *WorkbookFunctionsRequestBuilder) Cot(reqObj *WorkbookFunctionsCotRequestParameter) *WorkbookFunctionsCotRequestBuilder { + bb := &WorkbookFunctionsCotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cot" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCotRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCotRequestBuilder) Request() *WorkbookFunctionsCotRequest { + return &WorkbookFunctionsCotRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go new file mode 100644 index 00000000..3e3cf4c3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCothRequestBuilder struct{ BaseRequestBuilder } + +// Coth action undocumented +func (b *WorkbookFunctionsRequestBuilder) Coth(reqObj *WorkbookFunctionsCothRequestParameter) *WorkbookFunctionsCothRequestBuilder { + bb := &WorkbookFunctionsCothRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coth" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCothRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCothRequestBuilder) Request() *WorkbookFunctionsCothRequest { + return &WorkbookFunctionsCothRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCothRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go new file mode 100644 index 00000000..268ca5fa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go @@ -0,0 +1,140 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCountRequestBuilder struct{ BaseRequestBuilder } + +// Count action undocumented +func (b *WorkbookFunctionsRequestBuilder) Count(reqObj *WorkbookFunctionsCountRequestParameter) *WorkbookFunctionsCountRequestBuilder { + bb := &WorkbookFunctionsCountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/count" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCountRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCountRequestBuilder) Request() *WorkbookFunctionsCountRequest { + return &WorkbookFunctionsCountRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCountRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCountARequestBuilder struct{ BaseRequestBuilder } + +// CountA action undocumented +func (b *WorkbookFunctionsRequestBuilder) CountA(reqObj *WorkbookFunctionsCountARequestParameter) *WorkbookFunctionsCountARequestBuilder { + bb := &WorkbookFunctionsCountARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/countA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCountARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCountARequestBuilder) Request() *WorkbookFunctionsCountARequest { + return &WorkbookFunctionsCountARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCountARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCountBlankRequestBuilder struct{ BaseRequestBuilder } + +// CountBlank action undocumented +func (b *WorkbookFunctionsRequestBuilder) CountBlank(reqObj *WorkbookFunctionsCountBlankRequestParameter) *WorkbookFunctionsCountBlankRequestBuilder { + bb := &WorkbookFunctionsCountBlankRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/countBlank" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCountBlankRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCountBlankRequestBuilder) Request() *WorkbookFunctionsCountBlankRequest { + return &WorkbookFunctionsCountBlankRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCountBlankRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCountIfRequestBuilder struct{ BaseRequestBuilder } + +// CountIf action undocumented +func (b *WorkbookFunctionsRequestBuilder) CountIf(reqObj *WorkbookFunctionsCountIfRequestParameter) *WorkbookFunctionsCountIfRequestBuilder { + bb := &WorkbookFunctionsCountIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/countIf" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCountIfRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCountIfRequestBuilder) Request() *WorkbookFunctionsCountIfRequest { + return &WorkbookFunctionsCountIfRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCountIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCountIfsRequestBuilder struct{ BaseRequestBuilder } + +// CountIfs action undocumented +func (b *WorkbookFunctionsRequestBuilder) CountIfs(reqObj *WorkbookFunctionsCountIfsRequestParameter) *WorkbookFunctionsCountIfsRequestBuilder { + bb := &WorkbookFunctionsCountIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/countIfs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCountIfsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCountIfsRequestBuilder) Request() *WorkbookFunctionsCountIfsRequest { + return &WorkbookFunctionsCountIfsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCountIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go new file mode 100644 index 00000000..f012e035 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go @@ -0,0 +1,167 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCoupDayBsRequestBuilder struct{ BaseRequestBuilder } + +// CoupDayBs action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupDayBs(reqObj *WorkbookFunctionsCoupDayBsRequestParameter) *WorkbookFunctionsCoupDayBsRequestBuilder { + bb := &WorkbookFunctionsCoupDayBsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupDayBs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupDayBsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupDayBsRequestBuilder) Request() *WorkbookFunctionsCoupDayBsRequest { + return &WorkbookFunctionsCoupDayBsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupDayBsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCoupDaysRequestBuilder struct{ BaseRequestBuilder } + +// CoupDays action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupDays(reqObj *WorkbookFunctionsCoupDaysRequestParameter) *WorkbookFunctionsCoupDaysRequestBuilder { + bb := &WorkbookFunctionsCoupDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupDays" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupDaysRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupDaysRequestBuilder) Request() *WorkbookFunctionsCoupDaysRequest { + return &WorkbookFunctionsCoupDaysRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCoupDaysNcRequestBuilder struct{ BaseRequestBuilder } + +// CoupDaysNc action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupDaysNc(reqObj *WorkbookFunctionsCoupDaysNcRequestParameter) *WorkbookFunctionsCoupDaysNcRequestBuilder { + bb := &WorkbookFunctionsCoupDaysNcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupDaysNc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupDaysNcRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupDaysNcRequestBuilder) Request() *WorkbookFunctionsCoupDaysNcRequest { + return &WorkbookFunctionsCoupDaysNcRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupDaysNcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCoupNcdRequestBuilder struct{ BaseRequestBuilder } + +// CoupNcd action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupNcd(reqObj *WorkbookFunctionsCoupNcdRequestParameter) *WorkbookFunctionsCoupNcdRequestBuilder { + bb := &WorkbookFunctionsCoupNcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupNcd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupNcdRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupNcdRequestBuilder) Request() *WorkbookFunctionsCoupNcdRequest { + return &WorkbookFunctionsCoupNcdRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupNcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCoupNumRequestBuilder struct{ BaseRequestBuilder } + +// CoupNum action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupNum(reqObj *WorkbookFunctionsCoupNumRequestParameter) *WorkbookFunctionsCoupNumRequestBuilder { + bb := &WorkbookFunctionsCoupNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupNum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupNumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupNumRequestBuilder) Request() *WorkbookFunctionsCoupNumRequest { + return &WorkbookFunctionsCoupNumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCoupPcdRequestBuilder struct{ BaseRequestBuilder } + +// CoupPcd action undocumented +func (b *WorkbookFunctionsRequestBuilder) CoupPcd(reqObj *WorkbookFunctionsCoupPcdRequestParameter) *WorkbookFunctionsCoupPcdRequestBuilder { + bb := &WorkbookFunctionsCoupPcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/coupPcd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCoupPcdRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCoupPcdRequestBuilder) Request() *WorkbookFunctionsCoupPcdRequest { + return &WorkbookFunctionsCoupPcdRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCoupPcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go new file mode 100644 index 00000000..e61aeddc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCscRequestBuilder struct{ BaseRequestBuilder } + +// Csc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Csc(reqObj *WorkbookFunctionsCscRequestParameter) *WorkbookFunctionsCscRequestBuilder { + bb := &WorkbookFunctionsCscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/csc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCscRequestBuilder) Request() *WorkbookFunctionsCscRequest { + return &WorkbookFunctionsCscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go new file mode 100644 index 00000000..84308a81 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCschRequestBuilder struct{ BaseRequestBuilder } + +// Csch action undocumented +func (b *WorkbookFunctionsRequestBuilder) Csch(reqObj *WorkbookFunctionsCschRequestParameter) *WorkbookFunctionsCschRequestBuilder { + bb := &WorkbookFunctionsCschRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/csch" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCschRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCschRequestBuilder) Request() *WorkbookFunctionsCschRequest { + return &WorkbookFunctionsCschRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCschRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go new file mode 100644 index 00000000..052f5d1c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsCumIPmtRequestBuilder struct{ BaseRequestBuilder } + +// CumIPmt action undocumented +func (b *WorkbookFunctionsRequestBuilder) CumIPmt(reqObj *WorkbookFunctionsCumIPmtRequestParameter) *WorkbookFunctionsCumIPmtRequestBuilder { + bb := &WorkbookFunctionsCumIPmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cumIPmt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCumIPmtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCumIPmtRequestBuilder) Request() *WorkbookFunctionsCumIPmtRequest { + return &WorkbookFunctionsCumIPmtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCumIPmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsCumPrincRequestBuilder struct{ BaseRequestBuilder } + +// CumPrinc action undocumented +func (b *WorkbookFunctionsRequestBuilder) CumPrinc(reqObj *WorkbookFunctionsCumPrincRequestParameter) *WorkbookFunctionsCumPrincRequestBuilder { + bb := &WorkbookFunctionsCumPrincRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cumPrinc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsCumPrincRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsCumPrincRequestBuilder) Request() *WorkbookFunctionsCumPrincRequest { + return &WorkbookFunctionsCumPrincRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsCumPrincRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go new file mode 100644 index 00000000..29c3d611 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDateRequestBuilder struct{ BaseRequestBuilder } + +// Date action undocumented +func (b *WorkbookFunctionsRequestBuilder) Date(reqObj *WorkbookFunctionsDateRequestParameter) *WorkbookFunctionsDateRequestBuilder { + bb := &WorkbookFunctionsDateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/date" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDateRequestBuilder) Request() *WorkbookFunctionsDateRequest { + return &WorkbookFunctionsDateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go new file mode 100644 index 00000000..1823f2d4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDatevalueRequestBuilder struct{ BaseRequestBuilder } + +// Datevalue action undocumented +func (b *WorkbookFunctionsRequestBuilder) Datevalue(reqObj *WorkbookFunctionsDatevalueRequestParameter) *WorkbookFunctionsDatevalueRequestBuilder { + bb := &WorkbookFunctionsDatevalueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/datevalue" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDatevalueRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDatevalueRequestBuilder) Request() *WorkbookFunctionsDatevalueRequest { + return &WorkbookFunctionsDatevalueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDatevalueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go new file mode 100644 index 00000000..597a62cf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDaverageRequestBuilder struct{ BaseRequestBuilder } + +// Daverage action undocumented +func (b *WorkbookFunctionsRequestBuilder) Daverage(reqObj *WorkbookFunctionsDaverageRequestParameter) *WorkbookFunctionsDaverageRequestBuilder { + bb := &WorkbookFunctionsDaverageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/daverage" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDaverageRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDaverageRequestBuilder) Request() *WorkbookFunctionsDaverageRequest { + return &WorkbookFunctionsDaverageRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDaverageRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go new file mode 100644 index 00000000..4ded07fd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDayRequestBuilder struct{ BaseRequestBuilder } + +// Day action undocumented +func (b *WorkbookFunctionsRequestBuilder) Day(reqObj *WorkbookFunctionsDayRequestParameter) *WorkbookFunctionsDayRequestBuilder { + bb := &WorkbookFunctionsDayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/day" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDayRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDayRequestBuilder) Request() *WorkbookFunctionsDayRequest { + return &WorkbookFunctionsDayRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go new file mode 100644 index 00000000..89b842ea --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDaysRequestBuilder struct{ BaseRequestBuilder } + +// Days action undocumented +func (b *WorkbookFunctionsRequestBuilder) Days(reqObj *WorkbookFunctionsDaysRequestParameter) *WorkbookFunctionsDaysRequestBuilder { + bb := &WorkbookFunctionsDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/days" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDaysRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDaysRequestBuilder) Request() *WorkbookFunctionsDaysRequest { + return &WorkbookFunctionsDaysRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go new file mode 100644 index 00000000..97a1c040 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDays360RequestBuilder struct{ BaseRequestBuilder } + +// Days360 action undocumented +func (b *WorkbookFunctionsRequestBuilder) Days360(reqObj *WorkbookFunctionsDays360RequestParameter) *WorkbookFunctionsDays360RequestBuilder { + bb := &WorkbookFunctionsDays360RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/days360" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDays360Request struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDays360RequestBuilder) Request() *WorkbookFunctionsDays360Request { + return &WorkbookFunctionsDays360Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDays360Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go new file mode 100644 index 00000000..223ba861 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDbRequestBuilder struct{ BaseRequestBuilder } + +// Db action undocumented +func (b *WorkbookFunctionsRequestBuilder) Db(reqObj *WorkbookFunctionsDbRequestParameter) *WorkbookFunctionsDbRequestBuilder { + bb := &WorkbookFunctionsDbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/db" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDbRequestBuilder) Request() *WorkbookFunctionsDbRequest { + return &WorkbookFunctionsDbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go new file mode 100644 index 00000000..5b9c4784 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDbcsRequestBuilder struct{ BaseRequestBuilder } + +// Dbcs action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dbcs(reqObj *WorkbookFunctionsDbcsRequestParameter) *WorkbookFunctionsDbcsRequestBuilder { + bb := &WorkbookFunctionsDbcsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dbcs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDbcsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDbcsRequestBuilder) Request() *WorkbookFunctionsDbcsRequest { + return &WorkbookFunctionsDbcsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDbcsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go new file mode 100644 index 00000000..74d81dec --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDcountRequestBuilder struct{ BaseRequestBuilder } + +// Dcount action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dcount(reqObj *WorkbookFunctionsDcountRequestParameter) *WorkbookFunctionsDcountRequestBuilder { + bb := &WorkbookFunctionsDcountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dcount" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDcountRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDcountRequestBuilder) Request() *WorkbookFunctionsDcountRequest { + return &WorkbookFunctionsDcountRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDcountRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDcountARequestBuilder struct{ BaseRequestBuilder } + +// DcountA action undocumented +func (b *WorkbookFunctionsRequestBuilder) DcountA(reqObj *WorkbookFunctionsDcountARequestParameter) *WorkbookFunctionsDcountARequestBuilder { + bb := &WorkbookFunctionsDcountARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dcountA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDcountARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDcountARequestBuilder) Request() *WorkbookFunctionsDcountARequest { + return &WorkbookFunctionsDcountARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDcountARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go new file mode 100644 index 00000000..e5d4566a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDdbRequestBuilder struct{ BaseRequestBuilder } + +// Ddb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ddb(reqObj *WorkbookFunctionsDdbRequestParameter) *WorkbookFunctionsDdbRequestBuilder { + bb := &WorkbookFunctionsDdbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ddb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDdbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDdbRequestBuilder) Request() *WorkbookFunctionsDdbRequest { + return &WorkbookFunctionsDdbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDdbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go new file mode 100644 index 00000000..6735a51e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDec2BinRequestBuilder struct{ BaseRequestBuilder } + +// Dec2Bin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dec2Bin(reqObj *WorkbookFunctionsDec2BinRequestParameter) *WorkbookFunctionsDec2BinRequestBuilder { + bb := &WorkbookFunctionsDec2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dec2Bin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDec2BinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDec2BinRequestBuilder) Request() *WorkbookFunctionsDec2BinRequest { + return &WorkbookFunctionsDec2BinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDec2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDec2HexRequestBuilder struct{ BaseRequestBuilder } + +// Dec2Hex action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dec2Hex(reqObj *WorkbookFunctionsDec2HexRequestParameter) *WorkbookFunctionsDec2HexRequestBuilder { + bb := &WorkbookFunctionsDec2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dec2Hex" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDec2HexRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDec2HexRequestBuilder) Request() *WorkbookFunctionsDec2HexRequest { + return &WorkbookFunctionsDec2HexRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDec2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDec2OctRequestBuilder struct{ BaseRequestBuilder } + +// Dec2Oct action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dec2Oct(reqObj *WorkbookFunctionsDec2OctRequestParameter) *WorkbookFunctionsDec2OctRequestBuilder { + bb := &WorkbookFunctionsDec2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dec2Oct" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDec2OctRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDec2OctRequestBuilder) Request() *WorkbookFunctionsDec2OctRequest { + return &WorkbookFunctionsDec2OctRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDec2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go new file mode 100644 index 00000000..d4711bf4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDecimalRequestBuilder struct{ BaseRequestBuilder } + +// Decimal action undocumented +func (b *WorkbookFunctionsRequestBuilder) Decimal(reqObj *WorkbookFunctionsDecimalRequestParameter) *WorkbookFunctionsDecimalRequestBuilder { + bb := &WorkbookFunctionsDecimalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/decimal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDecimalRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDecimalRequestBuilder) Request() *WorkbookFunctionsDecimalRequest { + return &WorkbookFunctionsDecimalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDecimalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go new file mode 100644 index 00000000..3d25a9ad --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDegreesRequestBuilder struct{ BaseRequestBuilder } + +// Degrees action undocumented +func (b *WorkbookFunctionsRequestBuilder) Degrees(reqObj *WorkbookFunctionsDegreesRequestParameter) *WorkbookFunctionsDegreesRequestBuilder { + bb := &WorkbookFunctionsDegreesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/degrees" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDegreesRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDegreesRequestBuilder) Request() *WorkbookFunctionsDegreesRequest { + return &WorkbookFunctionsDegreesRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDegreesRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go new file mode 100644 index 00000000..3eba64a7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDeltaRequestBuilder struct{ BaseRequestBuilder } + +// Delta action undocumented +func (b *WorkbookFunctionsRequestBuilder) Delta(reqObj *WorkbookFunctionsDeltaRequestParameter) *WorkbookFunctionsDeltaRequestBuilder { + bb := &WorkbookFunctionsDeltaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/delta" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDeltaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDeltaRequestBuilder) Request() *WorkbookFunctionsDeltaRequest { + return &WorkbookFunctionsDeltaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDeltaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go new file mode 100644 index 00000000..0a9e54ea --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDevSqRequestBuilder struct{ BaseRequestBuilder } + +// DevSq action undocumented +func (b *WorkbookFunctionsRequestBuilder) DevSq(reqObj *WorkbookFunctionsDevSqRequestParameter) *WorkbookFunctionsDevSqRequestBuilder { + bb := &WorkbookFunctionsDevSqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/devSq" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDevSqRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDevSqRequestBuilder) Request() *WorkbookFunctionsDevSqRequest { + return &WorkbookFunctionsDevSqRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDevSqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go new file mode 100644 index 00000000..fcbd1bcc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDgetRequestBuilder struct{ BaseRequestBuilder } + +// Dget action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dget(reqObj *WorkbookFunctionsDgetRequestParameter) *WorkbookFunctionsDgetRequestBuilder { + bb := &WorkbookFunctionsDgetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dget" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDgetRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDgetRequestBuilder) Request() *WorkbookFunctionsDgetRequest { + return &WorkbookFunctionsDgetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDgetRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go new file mode 100644 index 00000000..80ed0d9b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDiscRequestBuilder struct{ BaseRequestBuilder } + +// Disc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Disc(reqObj *WorkbookFunctionsDiscRequestParameter) *WorkbookFunctionsDiscRequestBuilder { + bb := &WorkbookFunctionsDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/disc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDiscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDiscRequestBuilder) Request() *WorkbookFunctionsDiscRequest { + return &WorkbookFunctionsDiscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go new file mode 100644 index 00000000..f28ac3e3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDmaxRequestBuilder struct{ BaseRequestBuilder } + +// Dmax action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dmax(reqObj *WorkbookFunctionsDmaxRequestParameter) *WorkbookFunctionsDmaxRequestBuilder { + bb := &WorkbookFunctionsDmaxRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dmax" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDmaxRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDmaxRequestBuilder) Request() *WorkbookFunctionsDmaxRequest { + return &WorkbookFunctionsDmaxRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDmaxRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go new file mode 100644 index 00000000..3fe32a26 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDminRequestBuilder struct{ BaseRequestBuilder } + +// Dmin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dmin(reqObj *WorkbookFunctionsDminRequestParameter) *WorkbookFunctionsDminRequestBuilder { + bb := &WorkbookFunctionsDminRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dmin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDminRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDminRequestBuilder) Request() *WorkbookFunctionsDminRequest { + return &WorkbookFunctionsDminRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDminRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go new file mode 100644 index 00000000..a6c4698a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDollarRequestBuilder struct{ BaseRequestBuilder } + +// Dollar action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dollar(reqObj *WorkbookFunctionsDollarRequestParameter) *WorkbookFunctionsDollarRequestBuilder { + bb := &WorkbookFunctionsDollarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dollar" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDollarRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDollarRequestBuilder) Request() *WorkbookFunctionsDollarRequest { + return &WorkbookFunctionsDollarRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDollarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDollarDeRequestBuilder struct{ BaseRequestBuilder } + +// DollarDe action undocumented +func (b *WorkbookFunctionsRequestBuilder) DollarDe(reqObj *WorkbookFunctionsDollarDeRequestParameter) *WorkbookFunctionsDollarDeRequestBuilder { + bb := &WorkbookFunctionsDollarDeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dollarDe" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDollarDeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDollarDeRequestBuilder) Request() *WorkbookFunctionsDollarDeRequest { + return &WorkbookFunctionsDollarDeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDollarDeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDollarFrRequestBuilder struct{ BaseRequestBuilder } + +// DollarFr action undocumented +func (b *WorkbookFunctionsRequestBuilder) DollarFr(reqObj *WorkbookFunctionsDollarFrRequestParameter) *WorkbookFunctionsDollarFrRequestBuilder { + bb := &WorkbookFunctionsDollarFrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dollarFr" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDollarFrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDollarFrRequestBuilder) Request() *WorkbookFunctionsDollarFrRequest { + return &WorkbookFunctionsDollarFrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDollarFrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go new file mode 100644 index 00000000..7bb8a235 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDproductRequestBuilder struct{ BaseRequestBuilder } + +// Dproduct action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dproduct(reqObj *WorkbookFunctionsDproductRequestParameter) *WorkbookFunctionsDproductRequestBuilder { + bb := &WorkbookFunctionsDproductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dproduct" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDproductRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDproductRequestBuilder) Request() *WorkbookFunctionsDproductRequest { + return &WorkbookFunctionsDproductRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDproductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go new file mode 100644 index 00000000..55121d23 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDstDevRequestBuilder struct{ BaseRequestBuilder } + +// DstDev action undocumented +func (b *WorkbookFunctionsRequestBuilder) DstDev(reqObj *WorkbookFunctionsDstDevRequestParameter) *WorkbookFunctionsDstDevRequestBuilder { + bb := &WorkbookFunctionsDstDevRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dstDev" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDstDevRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDstDevRequestBuilder) Request() *WorkbookFunctionsDstDevRequest { + return &WorkbookFunctionsDstDevRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDstDevRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDstDevPRequestBuilder struct{ BaseRequestBuilder } + +// DstDevP action undocumented +func (b *WorkbookFunctionsRequestBuilder) DstDevP(reqObj *WorkbookFunctionsDstDevPRequestParameter) *WorkbookFunctionsDstDevPRequestBuilder { + bb := &WorkbookFunctionsDstDevPRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dstDevP" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDstDevPRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDstDevPRequestBuilder) Request() *WorkbookFunctionsDstDevPRequest { + return &WorkbookFunctionsDstDevPRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDstDevPRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go new file mode 100644 index 00000000..d4dcbebb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDsumRequestBuilder struct{ BaseRequestBuilder } + +// Dsum action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dsum(reqObj *WorkbookFunctionsDsumRequestParameter) *WorkbookFunctionsDsumRequestBuilder { + bb := &WorkbookFunctionsDsumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dsum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDsumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDsumRequestBuilder) Request() *WorkbookFunctionsDsumRequest { + return &WorkbookFunctionsDsumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDsumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go new file mode 100644 index 00000000..b2a73833 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDurationRequestBuilder struct{ BaseRequestBuilder } + +// Duration action undocumented +func (b *WorkbookFunctionsRequestBuilder) Duration(reqObj *WorkbookFunctionsDurationRequestParameter) *WorkbookFunctionsDurationRequestBuilder { + bb := &WorkbookFunctionsDurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/duration" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDurationRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDurationRequestBuilder) Request() *WorkbookFunctionsDurationRequest { + return &WorkbookFunctionsDurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go new file mode 100644 index 00000000..cb552383 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsDvarRequestBuilder struct{ BaseRequestBuilder } + +// Dvar action undocumented +func (b *WorkbookFunctionsRequestBuilder) Dvar(reqObj *WorkbookFunctionsDvarRequestParameter) *WorkbookFunctionsDvarRequestBuilder { + bb := &WorkbookFunctionsDvarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dvar" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDvarRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDvarRequestBuilder) Request() *WorkbookFunctionsDvarRequest { + return &WorkbookFunctionsDvarRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDvarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsDvarPRequestBuilder struct{ BaseRequestBuilder } + +// DvarP action undocumented +func (b *WorkbookFunctionsRequestBuilder) DvarP(reqObj *WorkbookFunctionsDvarPRequestParameter) *WorkbookFunctionsDvarPRequestBuilder { + bb := &WorkbookFunctionsDvarPRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/dvarP" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsDvarPRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsDvarPRequestBuilder) Request() *WorkbookFunctionsDvarPRequest { + return &WorkbookFunctionsDvarPRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsDvarPRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go new file mode 100644 index 00000000..2c9d9291 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsEcma_CeilingRequestBuilder struct{ BaseRequestBuilder } + +// Ecma_Ceiling action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ecma_Ceiling(reqObj *WorkbookFunctionsEcma_CeilingRequestParameter) *WorkbookFunctionsEcma_CeilingRequestBuilder { + bb := &WorkbookFunctionsEcma_CeilingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ecma_Ceiling" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsEcma_CeilingRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsEcma_CeilingRequestBuilder) Request() *WorkbookFunctionsEcma_CeilingRequest { + return &WorkbookFunctionsEcma_CeilingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsEcma_CeilingRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go new file mode 100644 index 00000000..98ae17a5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsEdateRequestBuilder struct{ BaseRequestBuilder } + +// Edate action undocumented +func (b *WorkbookFunctionsRequestBuilder) Edate(reqObj *WorkbookFunctionsEdateRequestParameter) *WorkbookFunctionsEdateRequestBuilder { + bb := &WorkbookFunctionsEdateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/edate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsEdateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsEdateRequestBuilder) Request() *WorkbookFunctionsEdateRequest { + return &WorkbookFunctionsEdateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsEdateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go new file mode 100644 index 00000000..28b05b9e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsEffectRequestBuilder struct{ BaseRequestBuilder } + +// Effect action undocumented +func (b *WorkbookFunctionsRequestBuilder) Effect(reqObj *WorkbookFunctionsEffectRequestParameter) *WorkbookFunctionsEffectRequestBuilder { + bb := &WorkbookFunctionsEffectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/effect" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsEffectRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsEffectRequestBuilder) Request() *WorkbookFunctionsEffectRequest { + return &WorkbookFunctionsEffectRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsEffectRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go new file mode 100644 index 00000000..58588a1f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsEoMonthRequestBuilder struct{ BaseRequestBuilder } + +// EoMonth action undocumented +func (b *WorkbookFunctionsRequestBuilder) EoMonth(reqObj *WorkbookFunctionsEoMonthRequestParameter) *WorkbookFunctionsEoMonthRequestBuilder { + bb := &WorkbookFunctionsEoMonthRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/eoMonth" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsEoMonthRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsEoMonthRequestBuilder) Request() *WorkbookFunctionsEoMonthRequest { + return &WorkbookFunctionsEoMonthRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsEoMonthRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go new file mode 100644 index 00000000..715e1247 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsErfRequestBuilder struct{ BaseRequestBuilder } + +// Erf action undocumented +func (b *WorkbookFunctionsRequestBuilder) Erf(reqObj *WorkbookFunctionsErfRequestParameter) *WorkbookFunctionsErfRequestBuilder { + bb := &WorkbookFunctionsErfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/erf" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsErfRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsErfRequestBuilder) Request() *WorkbookFunctionsErfRequest { + return &WorkbookFunctionsErfRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsErfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsErfCRequestBuilder struct{ BaseRequestBuilder } + +// ErfC action undocumented +func (b *WorkbookFunctionsRequestBuilder) ErfC(reqObj *WorkbookFunctionsErfCRequestParameter) *WorkbookFunctionsErfCRequestBuilder { + bb := &WorkbookFunctionsErfCRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/erfC" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsErfCRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsErfCRequestBuilder) Request() *WorkbookFunctionsErfCRequest { + return &WorkbookFunctionsErfCRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsErfCRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsErfC_PreciseRequestBuilder struct{ BaseRequestBuilder } + +// ErfC_Precise action undocumented +func (b *WorkbookFunctionsRequestBuilder) ErfC_Precise(reqObj *WorkbookFunctionsErfC_PreciseRequestParameter) *WorkbookFunctionsErfC_PreciseRequestBuilder { + bb := &WorkbookFunctionsErfC_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/erfC_Precise" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsErfC_PreciseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsErfC_PreciseRequestBuilder) Request() *WorkbookFunctionsErfC_PreciseRequest { + return &WorkbookFunctionsErfC_PreciseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsErfC_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go new file mode 100644 index 00000000..d953d6a8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsErf_PreciseRequestBuilder struct{ BaseRequestBuilder } + +// Erf_Precise action undocumented +func (b *WorkbookFunctionsRequestBuilder) Erf_Precise(reqObj *WorkbookFunctionsErf_PreciseRequestParameter) *WorkbookFunctionsErf_PreciseRequestBuilder { + bb := &WorkbookFunctionsErf_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/erf_Precise" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsErf_PreciseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsErf_PreciseRequestBuilder) Request() *WorkbookFunctionsErf_PreciseRequest { + return &WorkbookFunctionsErf_PreciseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsErf_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go new file mode 100644 index 00000000..883f88f4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsError_TypeRequestBuilder struct{ BaseRequestBuilder } + +// Error_Type action undocumented +func (b *WorkbookFunctionsRequestBuilder) Error_Type(reqObj *WorkbookFunctionsError_TypeRequestParameter) *WorkbookFunctionsError_TypeRequestBuilder { + bb := &WorkbookFunctionsError_TypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/error_Type" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsError_TypeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsError_TypeRequestBuilder) Request() *WorkbookFunctionsError_TypeRequest { + return &WorkbookFunctionsError_TypeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsError_TypeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go new file mode 100644 index 00000000..2a1f55f1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsEvenRequestBuilder struct{ BaseRequestBuilder } + +// Even action undocumented +func (b *WorkbookFunctionsRequestBuilder) Even(reqObj *WorkbookFunctionsEvenRequestParameter) *WorkbookFunctionsEvenRequestBuilder { + bb := &WorkbookFunctionsEvenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/even" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsEvenRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsEvenRequestBuilder) Request() *WorkbookFunctionsEvenRequest { + return &WorkbookFunctionsEvenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsEvenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go new file mode 100644 index 00000000..bb7e4d83 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsExactRequestBuilder struct{ BaseRequestBuilder } + +// Exact action undocumented +func (b *WorkbookFunctionsRequestBuilder) Exact(reqObj *WorkbookFunctionsExactRequestParameter) *WorkbookFunctionsExactRequestBuilder { + bb := &WorkbookFunctionsExactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/exact" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsExactRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsExactRequestBuilder) Request() *WorkbookFunctionsExactRequest { + return &WorkbookFunctionsExactRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsExactRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go new file mode 100644 index 00000000..70e093b6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsExpRequestBuilder struct{ BaseRequestBuilder } + +// Exp action undocumented +func (b *WorkbookFunctionsRequestBuilder) Exp(reqObj *WorkbookFunctionsExpRequestParameter) *WorkbookFunctionsExpRequestBuilder { + bb := &WorkbookFunctionsExpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/exp" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsExpRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsExpRequestBuilder) Request() *WorkbookFunctionsExpRequest { + return &WorkbookFunctionsExpRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsExpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go new file mode 100644 index 00000000..75197055 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsExpon_DistRequestBuilder struct{ BaseRequestBuilder } + +// Expon_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Expon_Dist(reqObj *WorkbookFunctionsExpon_DistRequestParameter) *WorkbookFunctionsExpon_DistRequestBuilder { + bb := &WorkbookFunctionsExpon_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/expon_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsExpon_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsExpon_DistRequestBuilder) Request() *WorkbookFunctionsExpon_DistRequest { + return &WorkbookFunctionsExpon_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsExpon_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go new file mode 100644 index 00000000..9b4f8b06 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsF_DistRequestBuilder struct{ BaseRequestBuilder } + +// F_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) F_Dist(reqObj *WorkbookFunctionsF_DistRequestParameter) *WorkbookFunctionsF_DistRequestBuilder { + bb := &WorkbookFunctionsF_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/f_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsF_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsF_DistRequestBuilder) Request() *WorkbookFunctionsF_DistRequest { + return &WorkbookFunctionsF_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsF_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsF_Dist_RTRequestBuilder struct{ BaseRequestBuilder } + +// F_Dist_RT action undocumented +func (b *WorkbookFunctionsRequestBuilder) F_Dist_RT(reqObj *WorkbookFunctionsF_Dist_RTRequestParameter) *WorkbookFunctionsF_Dist_RTRequestBuilder { + bb := &WorkbookFunctionsF_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/f_Dist_RT" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsF_Dist_RTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsF_Dist_RTRequestBuilder) Request() *WorkbookFunctionsF_Dist_RTRequest { + return &WorkbookFunctionsF_Dist_RTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsF_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsF_InvRequestBuilder struct{ BaseRequestBuilder } + +// F_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) F_Inv(reqObj *WorkbookFunctionsF_InvRequestParameter) *WorkbookFunctionsF_InvRequestBuilder { + bb := &WorkbookFunctionsF_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/f_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsF_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsF_InvRequestBuilder) Request() *WorkbookFunctionsF_InvRequest { + return &WorkbookFunctionsF_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsF_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsF_Inv_RTRequestBuilder struct{ BaseRequestBuilder } + +// F_Inv_RT action undocumented +func (b *WorkbookFunctionsRequestBuilder) F_Inv_RT(reqObj *WorkbookFunctionsF_Inv_RTRequestParameter) *WorkbookFunctionsF_Inv_RTRequestBuilder { + bb := &WorkbookFunctionsF_Inv_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/f_Inv_RT" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsF_Inv_RTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsF_Inv_RTRequestBuilder) Request() *WorkbookFunctionsF_Inv_RTRequest { + return &WorkbookFunctionsF_Inv_RTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsF_Inv_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go new file mode 100644 index 00000000..f9b10b12 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFactRequestBuilder struct{ BaseRequestBuilder } + +// Fact action undocumented +func (b *WorkbookFunctionsRequestBuilder) Fact(reqObj *WorkbookFunctionsFactRequestParameter) *WorkbookFunctionsFactRequestBuilder { + bb := &WorkbookFunctionsFactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fact" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFactRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFactRequestBuilder) Request() *WorkbookFunctionsFactRequest { + return &WorkbookFunctionsFactRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFactRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsFactDoubleRequestBuilder struct{ BaseRequestBuilder } + +// FactDouble action undocumented +func (b *WorkbookFunctionsRequestBuilder) FactDouble(reqObj *WorkbookFunctionsFactDoubleRequestParameter) *WorkbookFunctionsFactDoubleRequestBuilder { + bb := &WorkbookFunctionsFactDoubleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/factDouble" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFactDoubleRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFactDoubleRequestBuilder) Request() *WorkbookFunctionsFactDoubleRequest { + return &WorkbookFunctionsFactDoubleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFactDoubleRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go new file mode 100644 index 00000000..3b060ee4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFalseRequestBuilder struct{ BaseRequestBuilder } + +// False action undocumented +func (b *WorkbookFunctionsRequestBuilder) False(reqObj *WorkbookFunctionsFalseRequestParameter) *WorkbookFunctionsFalseRequestBuilder { + bb := &WorkbookFunctionsFalseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/false" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFalseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFalseRequestBuilder) Request() *WorkbookFunctionsFalseRequest { + return &WorkbookFunctionsFalseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFalseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go new file mode 100644 index 00000000..67e60325 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFindRequestBuilder struct{ BaseRequestBuilder } + +// Find action undocumented +func (b *WorkbookFunctionsRequestBuilder) Find(reqObj *WorkbookFunctionsFindRequestParameter) *WorkbookFunctionsFindRequestBuilder { + bb := &WorkbookFunctionsFindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/find" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFindRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFindRequestBuilder) Request() *WorkbookFunctionsFindRequest { + return &WorkbookFunctionsFindRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFindRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsFindBRequestBuilder struct{ BaseRequestBuilder } + +// FindB action undocumented +func (b *WorkbookFunctionsRequestBuilder) FindB(reqObj *WorkbookFunctionsFindBRequestParameter) *WorkbookFunctionsFindBRequestBuilder { + bb := &WorkbookFunctionsFindBRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/findB" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFindBRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFindBRequestBuilder) Request() *WorkbookFunctionsFindBRequest { + return &WorkbookFunctionsFindBRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFindBRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go new file mode 100644 index 00000000..2ae8b49e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFisherRequestBuilder struct{ BaseRequestBuilder } + +// Fisher action undocumented +func (b *WorkbookFunctionsRequestBuilder) Fisher(reqObj *WorkbookFunctionsFisherRequestParameter) *WorkbookFunctionsFisherRequestBuilder { + bb := &WorkbookFunctionsFisherRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fisher" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFisherRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFisherRequestBuilder) Request() *WorkbookFunctionsFisherRequest { + return &WorkbookFunctionsFisherRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFisherRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsFisherInvRequestBuilder struct{ BaseRequestBuilder } + +// FisherInv action undocumented +func (b *WorkbookFunctionsRequestBuilder) FisherInv(reqObj *WorkbookFunctionsFisherInvRequestParameter) *WorkbookFunctionsFisherInvRequestBuilder { + bb := &WorkbookFunctionsFisherInvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fisherInv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFisherInvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFisherInvRequestBuilder) Request() *WorkbookFunctionsFisherInvRequest { + return &WorkbookFunctionsFisherInvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFisherInvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go new file mode 100644 index 00000000..43c58e93 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFixedRequestBuilder struct{ BaseRequestBuilder } + +// Fixed action undocumented +func (b *WorkbookFunctionsRequestBuilder) Fixed(reqObj *WorkbookFunctionsFixedRequestParameter) *WorkbookFunctionsFixedRequestBuilder { + bb := &WorkbookFunctionsFixedRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fixed" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFixedRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFixedRequestBuilder) Request() *WorkbookFunctionsFixedRequest { + return &WorkbookFunctionsFixedRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFixedRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go new file mode 100644 index 00000000..1699714a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFloor_MathRequestBuilder struct{ BaseRequestBuilder } + +// Floor_Math action undocumented +func (b *WorkbookFunctionsRequestBuilder) Floor_Math(reqObj *WorkbookFunctionsFloor_MathRequestParameter) *WorkbookFunctionsFloor_MathRequestBuilder { + bb := &WorkbookFunctionsFloor_MathRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/floor_Math" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFloor_MathRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFloor_MathRequestBuilder) Request() *WorkbookFunctionsFloor_MathRequest { + return &WorkbookFunctionsFloor_MathRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFloor_MathRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsFloor_PreciseRequestBuilder struct{ BaseRequestBuilder } + +// Floor_Precise action undocumented +func (b *WorkbookFunctionsRequestBuilder) Floor_Precise(reqObj *WorkbookFunctionsFloor_PreciseRequestParameter) *WorkbookFunctionsFloor_PreciseRequestBuilder { + bb := &WorkbookFunctionsFloor_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/floor_Precise" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFloor_PreciseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFloor_PreciseRequestBuilder) Request() *WorkbookFunctionsFloor_PreciseRequest { + return &WorkbookFunctionsFloor_PreciseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFloor_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go new file mode 100644 index 00000000..31d86bd2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFvRequestBuilder struct{ BaseRequestBuilder } + +// Fv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Fv(reqObj *WorkbookFunctionsFvRequestParameter) *WorkbookFunctionsFvRequestBuilder { + bb := &WorkbookFunctionsFvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFvRequestBuilder) Request() *WorkbookFunctionsFvRequest { + return &WorkbookFunctionsFvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go new file mode 100644 index 00000000..fe0e4bf8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsFvscheduleRequestBuilder struct{ BaseRequestBuilder } + +// Fvschedule action undocumented +func (b *WorkbookFunctionsRequestBuilder) Fvschedule(reqObj *WorkbookFunctionsFvscheduleRequestParameter) *WorkbookFunctionsFvscheduleRequestBuilder { + bb := &WorkbookFunctionsFvscheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/fvschedule" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsFvscheduleRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsFvscheduleRequestBuilder) Request() *WorkbookFunctionsFvscheduleRequest { + return &WorkbookFunctionsFvscheduleRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsFvscheduleRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go new file mode 100644 index 00000000..7e8a1b6b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGammaRequestBuilder struct{ BaseRequestBuilder } + +// Gamma action undocumented +func (b *WorkbookFunctionsRequestBuilder) Gamma(reqObj *WorkbookFunctionsGammaRequestParameter) *WorkbookFunctionsGammaRequestBuilder { + bb := &WorkbookFunctionsGammaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gamma" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGammaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGammaRequestBuilder) Request() *WorkbookFunctionsGammaRequest { + return &WorkbookFunctionsGammaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGammaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsGammaLnRequestBuilder struct{ BaseRequestBuilder } + +// GammaLn action undocumented +func (b *WorkbookFunctionsRequestBuilder) GammaLn(reqObj *WorkbookFunctionsGammaLnRequestParameter) *WorkbookFunctionsGammaLnRequestBuilder { + bb := &WorkbookFunctionsGammaLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gammaLn" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGammaLnRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGammaLnRequestBuilder) Request() *WorkbookFunctionsGammaLnRequest { + return &WorkbookFunctionsGammaLnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGammaLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsGammaLn_PreciseRequestBuilder struct{ BaseRequestBuilder } + +// GammaLn_Precise action undocumented +func (b *WorkbookFunctionsRequestBuilder) GammaLn_Precise(reqObj *WorkbookFunctionsGammaLn_PreciseRequestParameter) *WorkbookFunctionsGammaLn_PreciseRequestBuilder { + bb := &WorkbookFunctionsGammaLn_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gammaLn_Precise" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGammaLn_PreciseRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGammaLn_PreciseRequestBuilder) Request() *WorkbookFunctionsGammaLn_PreciseRequest { + return &WorkbookFunctionsGammaLn_PreciseRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGammaLn_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go new file mode 100644 index 00000000..c5c764fd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGamma_DistRequestBuilder struct{ BaseRequestBuilder } + +// Gamma_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Gamma_Dist(reqObj *WorkbookFunctionsGamma_DistRequestParameter) *WorkbookFunctionsGamma_DistRequestBuilder { + bb := &WorkbookFunctionsGamma_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gamma_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGamma_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGamma_DistRequestBuilder) Request() *WorkbookFunctionsGamma_DistRequest { + return &WorkbookFunctionsGamma_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGamma_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsGamma_InvRequestBuilder struct{ BaseRequestBuilder } + +// Gamma_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Gamma_Inv(reqObj *WorkbookFunctionsGamma_InvRequestParameter) *WorkbookFunctionsGamma_InvRequestBuilder { + bb := &WorkbookFunctionsGamma_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gamma_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGamma_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGamma_InvRequestBuilder) Request() *WorkbookFunctionsGamma_InvRequest { + return &WorkbookFunctionsGamma_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGamma_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go new file mode 100644 index 00000000..868a0bce --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGaussRequestBuilder struct{ BaseRequestBuilder } + +// Gauss action undocumented +func (b *WorkbookFunctionsRequestBuilder) Gauss(reqObj *WorkbookFunctionsGaussRequestParameter) *WorkbookFunctionsGaussRequestBuilder { + bb := &WorkbookFunctionsGaussRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gauss" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGaussRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGaussRequestBuilder) Request() *WorkbookFunctionsGaussRequest { + return &WorkbookFunctionsGaussRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGaussRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go new file mode 100644 index 00000000..01ee73b7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGcdRequestBuilder struct{ BaseRequestBuilder } + +// Gcd action undocumented +func (b *WorkbookFunctionsRequestBuilder) Gcd(reqObj *WorkbookFunctionsGcdRequestParameter) *WorkbookFunctionsGcdRequestBuilder { + bb := &WorkbookFunctionsGcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/gcd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGcdRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGcdRequestBuilder) Request() *WorkbookFunctionsGcdRequest { + return &WorkbookFunctionsGcdRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go new file mode 100644 index 00000000..e15339da --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGeStepRequestBuilder struct{ BaseRequestBuilder } + +// GeStep action undocumented +func (b *WorkbookFunctionsRequestBuilder) GeStep(reqObj *WorkbookFunctionsGeStepRequestParameter) *WorkbookFunctionsGeStepRequestBuilder { + bb := &WorkbookFunctionsGeStepRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/geStep" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGeStepRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGeStepRequestBuilder) Request() *WorkbookFunctionsGeStepRequest { + return &WorkbookFunctionsGeStepRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGeStepRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go new file mode 100644 index 00000000..fe62e6e2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsGeoMeanRequestBuilder struct{ BaseRequestBuilder } + +// GeoMean action undocumented +func (b *WorkbookFunctionsRequestBuilder) GeoMean(reqObj *WorkbookFunctionsGeoMeanRequestParameter) *WorkbookFunctionsGeoMeanRequestBuilder { + bb := &WorkbookFunctionsGeoMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/geoMean" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsGeoMeanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsGeoMeanRequestBuilder) Request() *WorkbookFunctionsGeoMeanRequest { + return &WorkbookFunctionsGeoMeanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsGeoMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go new file mode 100644 index 00000000..a31b150c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHarMeanRequestBuilder struct{ BaseRequestBuilder } + +// HarMean action undocumented +func (b *WorkbookFunctionsRequestBuilder) HarMean(reqObj *WorkbookFunctionsHarMeanRequestParameter) *WorkbookFunctionsHarMeanRequestBuilder { + bb := &WorkbookFunctionsHarMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/harMean" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHarMeanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHarMeanRequestBuilder) Request() *WorkbookFunctionsHarMeanRequest { + return &WorkbookFunctionsHarMeanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHarMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go new file mode 100644 index 00000000..a3e784c2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHex2BinRequestBuilder struct{ BaseRequestBuilder } + +// Hex2Bin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hex2Bin(reqObj *WorkbookFunctionsHex2BinRequestParameter) *WorkbookFunctionsHex2BinRequestBuilder { + bb := &WorkbookFunctionsHex2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hex2Bin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHex2BinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHex2BinRequestBuilder) Request() *WorkbookFunctionsHex2BinRequest { + return &WorkbookFunctionsHex2BinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHex2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsHex2DecRequestBuilder struct{ BaseRequestBuilder } + +// Hex2Dec action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hex2Dec(reqObj *WorkbookFunctionsHex2DecRequestParameter) *WorkbookFunctionsHex2DecRequestBuilder { + bb := &WorkbookFunctionsHex2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hex2Dec" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHex2DecRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHex2DecRequestBuilder) Request() *WorkbookFunctionsHex2DecRequest { + return &WorkbookFunctionsHex2DecRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHex2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsHex2OctRequestBuilder struct{ BaseRequestBuilder } + +// Hex2Oct action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hex2Oct(reqObj *WorkbookFunctionsHex2OctRequestParameter) *WorkbookFunctionsHex2OctRequestBuilder { + bb := &WorkbookFunctionsHex2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hex2Oct" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHex2OctRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHex2OctRequestBuilder) Request() *WorkbookFunctionsHex2OctRequest { + return &WorkbookFunctionsHex2OctRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHex2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go new file mode 100644 index 00000000..9487a05e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHlookupRequestBuilder struct{ BaseRequestBuilder } + +// Hlookup action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hlookup(reqObj *WorkbookFunctionsHlookupRequestParameter) *WorkbookFunctionsHlookupRequestBuilder { + bb := &WorkbookFunctionsHlookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hlookup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHlookupRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHlookupRequestBuilder) Request() *WorkbookFunctionsHlookupRequest { + return &WorkbookFunctionsHlookupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHlookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go new file mode 100644 index 00000000..93ae3fc0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHourRequestBuilder struct{ BaseRequestBuilder } + +// Hour action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hour(reqObj *WorkbookFunctionsHourRequestParameter) *WorkbookFunctionsHourRequestBuilder { + bb := &WorkbookFunctionsHourRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hour" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHourRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHourRequestBuilder) Request() *WorkbookFunctionsHourRequest { + return &WorkbookFunctionsHourRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHourRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go new file mode 100644 index 00000000..2593c34d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHypGeom_DistRequestBuilder struct{ BaseRequestBuilder } + +// HypGeom_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) HypGeom_Dist(reqObj *WorkbookFunctionsHypGeom_DistRequestParameter) *WorkbookFunctionsHypGeom_DistRequestBuilder { + bb := &WorkbookFunctionsHypGeom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hypGeom_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHypGeom_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHypGeom_DistRequestBuilder) Request() *WorkbookFunctionsHypGeom_DistRequest { + return &WorkbookFunctionsHypGeom_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHypGeom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go new file mode 100644 index 00000000..d961df1a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsHyperlinkRequestBuilder struct{ BaseRequestBuilder } + +// Hyperlink action undocumented +func (b *WorkbookFunctionsRequestBuilder) Hyperlink(reqObj *WorkbookFunctionsHyperlinkRequestParameter) *WorkbookFunctionsHyperlinkRequestBuilder { + bb := &WorkbookFunctionsHyperlinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/hyperlink" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsHyperlinkRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsHyperlinkRequestBuilder) Request() *WorkbookFunctionsHyperlinkRequest { + return &WorkbookFunctionsHyperlinkRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsHyperlinkRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go new file mode 100644 index 00000000..6a886d1b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIfRequestBuilder struct{ BaseRequestBuilder } + +// If action undocumented +func (b *WorkbookFunctionsRequestBuilder) If(reqObj *WorkbookFunctionsIfRequestParameter) *WorkbookFunctionsIfRequestBuilder { + bb := &WorkbookFunctionsIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/if" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIfRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIfRequestBuilder) Request() *WorkbookFunctionsIfRequest { + return &WorkbookFunctionsIfRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go new file mode 100644 index 00000000..0cdb7f3e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go @@ -0,0 +1,653 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsImAbsRequestBuilder struct{ BaseRequestBuilder } + +// ImAbs action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImAbs(reqObj *WorkbookFunctionsImAbsRequestParameter) *WorkbookFunctionsImAbsRequestBuilder { + bb := &WorkbookFunctionsImAbsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imAbs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImAbsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImAbsRequestBuilder) Request() *WorkbookFunctionsImAbsRequest { + return &WorkbookFunctionsImAbsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImAbsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImArgumentRequestBuilder struct{ BaseRequestBuilder } + +// ImArgument action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImArgument(reqObj *WorkbookFunctionsImArgumentRequestParameter) *WorkbookFunctionsImArgumentRequestBuilder { + bb := &WorkbookFunctionsImArgumentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imArgument" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImArgumentRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImArgumentRequestBuilder) Request() *WorkbookFunctionsImArgumentRequest { + return &WorkbookFunctionsImArgumentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImArgumentRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImConjugateRequestBuilder struct{ BaseRequestBuilder } + +// ImConjugate action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImConjugate(reqObj *WorkbookFunctionsImConjugateRequestParameter) *WorkbookFunctionsImConjugateRequestBuilder { + bb := &WorkbookFunctionsImConjugateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imConjugate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImConjugateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImConjugateRequestBuilder) Request() *WorkbookFunctionsImConjugateRequest { + return &WorkbookFunctionsImConjugateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImConjugateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImCosRequestBuilder struct{ BaseRequestBuilder } + +// ImCos action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImCos(reqObj *WorkbookFunctionsImCosRequestParameter) *WorkbookFunctionsImCosRequestBuilder { + bb := &WorkbookFunctionsImCosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imCos" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImCosRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImCosRequestBuilder) Request() *WorkbookFunctionsImCosRequest { + return &WorkbookFunctionsImCosRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImCosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImCoshRequestBuilder struct{ BaseRequestBuilder } + +// ImCosh action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImCosh(reqObj *WorkbookFunctionsImCoshRequestParameter) *WorkbookFunctionsImCoshRequestBuilder { + bb := &WorkbookFunctionsImCoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imCosh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImCoshRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImCoshRequestBuilder) Request() *WorkbookFunctionsImCoshRequest { + return &WorkbookFunctionsImCoshRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImCoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImCotRequestBuilder struct{ BaseRequestBuilder } + +// ImCot action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImCot(reqObj *WorkbookFunctionsImCotRequestParameter) *WorkbookFunctionsImCotRequestBuilder { + bb := &WorkbookFunctionsImCotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imCot" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImCotRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImCotRequestBuilder) Request() *WorkbookFunctionsImCotRequest { + return &WorkbookFunctionsImCotRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImCotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImCscRequestBuilder struct{ BaseRequestBuilder } + +// ImCsc action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImCsc(reqObj *WorkbookFunctionsImCscRequestParameter) *WorkbookFunctionsImCscRequestBuilder { + bb := &WorkbookFunctionsImCscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imCsc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImCscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImCscRequestBuilder) Request() *WorkbookFunctionsImCscRequest { + return &WorkbookFunctionsImCscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImCscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImCschRequestBuilder struct{ BaseRequestBuilder } + +// ImCsch action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImCsch(reqObj *WorkbookFunctionsImCschRequestParameter) *WorkbookFunctionsImCschRequestBuilder { + bb := &WorkbookFunctionsImCschRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imCsch" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImCschRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImCschRequestBuilder) Request() *WorkbookFunctionsImCschRequest { + return &WorkbookFunctionsImCschRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImCschRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImDivRequestBuilder struct{ BaseRequestBuilder } + +// ImDiv action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImDiv(reqObj *WorkbookFunctionsImDivRequestParameter) *WorkbookFunctionsImDivRequestBuilder { + bb := &WorkbookFunctionsImDivRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imDiv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImDivRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImDivRequestBuilder) Request() *WorkbookFunctionsImDivRequest { + return &WorkbookFunctionsImDivRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImDivRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImExpRequestBuilder struct{ BaseRequestBuilder } + +// ImExp action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImExp(reqObj *WorkbookFunctionsImExpRequestParameter) *WorkbookFunctionsImExpRequestBuilder { + bb := &WorkbookFunctionsImExpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imExp" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImExpRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImExpRequestBuilder) Request() *WorkbookFunctionsImExpRequest { + return &WorkbookFunctionsImExpRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImExpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImLnRequestBuilder struct{ BaseRequestBuilder } + +// ImLn action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImLn(reqObj *WorkbookFunctionsImLnRequestParameter) *WorkbookFunctionsImLnRequestBuilder { + bb := &WorkbookFunctionsImLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imLn" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImLnRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImLnRequestBuilder) Request() *WorkbookFunctionsImLnRequest { + return &WorkbookFunctionsImLnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImLog10RequestBuilder struct{ BaseRequestBuilder } + +// ImLog10 action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImLog10(reqObj *WorkbookFunctionsImLog10RequestParameter) *WorkbookFunctionsImLog10RequestBuilder { + bb := &WorkbookFunctionsImLog10RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imLog10" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImLog10Request struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImLog10RequestBuilder) Request() *WorkbookFunctionsImLog10Request { + return &WorkbookFunctionsImLog10Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImLog10Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImLog2RequestBuilder struct{ BaseRequestBuilder } + +// ImLog2 action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImLog2(reqObj *WorkbookFunctionsImLog2RequestParameter) *WorkbookFunctionsImLog2RequestBuilder { + bb := &WorkbookFunctionsImLog2RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imLog2" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImLog2Request struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImLog2RequestBuilder) Request() *WorkbookFunctionsImLog2Request { + return &WorkbookFunctionsImLog2Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImLog2Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImPowerRequestBuilder struct{ BaseRequestBuilder } + +// ImPower action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImPower(reqObj *WorkbookFunctionsImPowerRequestParameter) *WorkbookFunctionsImPowerRequestBuilder { + bb := &WorkbookFunctionsImPowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imPower" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImPowerRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImPowerRequestBuilder) Request() *WorkbookFunctionsImPowerRequest { + return &WorkbookFunctionsImPowerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImPowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImProductRequestBuilder struct{ BaseRequestBuilder } + +// ImProduct action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImProduct(reqObj *WorkbookFunctionsImProductRequestParameter) *WorkbookFunctionsImProductRequestBuilder { + bb := &WorkbookFunctionsImProductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imProduct" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImProductRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImProductRequestBuilder) Request() *WorkbookFunctionsImProductRequest { + return &WorkbookFunctionsImProductRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImProductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImRealRequestBuilder struct{ BaseRequestBuilder } + +// ImReal action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImReal(reqObj *WorkbookFunctionsImRealRequestParameter) *WorkbookFunctionsImRealRequestBuilder { + bb := &WorkbookFunctionsImRealRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imReal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImRealRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImRealRequestBuilder) Request() *WorkbookFunctionsImRealRequest { + return &WorkbookFunctionsImRealRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImRealRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSecRequestBuilder struct{ BaseRequestBuilder } + +// ImSec action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSec(reqObj *WorkbookFunctionsImSecRequestParameter) *WorkbookFunctionsImSecRequestBuilder { + bb := &WorkbookFunctionsImSecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSec" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSecRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSecRequestBuilder) Request() *WorkbookFunctionsImSecRequest { + return &WorkbookFunctionsImSecRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSechRequestBuilder struct{ BaseRequestBuilder } + +// ImSech action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSech(reqObj *WorkbookFunctionsImSechRequestParameter) *WorkbookFunctionsImSechRequestBuilder { + bb := &WorkbookFunctionsImSechRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSech" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSechRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSechRequestBuilder) Request() *WorkbookFunctionsImSechRequest { + return &WorkbookFunctionsImSechRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSechRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSinRequestBuilder struct{ BaseRequestBuilder } + +// ImSin action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSin(reqObj *WorkbookFunctionsImSinRequestParameter) *WorkbookFunctionsImSinRequestBuilder { + bb := &WorkbookFunctionsImSinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSinRequestBuilder) Request() *WorkbookFunctionsImSinRequest { + return &WorkbookFunctionsImSinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSinhRequestBuilder struct{ BaseRequestBuilder } + +// ImSinh action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSinh(reqObj *WorkbookFunctionsImSinhRequestParameter) *WorkbookFunctionsImSinhRequestBuilder { + bb := &WorkbookFunctionsImSinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSinh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSinhRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSinhRequestBuilder) Request() *WorkbookFunctionsImSinhRequest { + return &WorkbookFunctionsImSinhRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSqrtRequestBuilder struct{ BaseRequestBuilder } + +// ImSqrt action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSqrt(reqObj *WorkbookFunctionsImSqrtRequestParameter) *WorkbookFunctionsImSqrtRequestBuilder { + bb := &WorkbookFunctionsImSqrtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSqrt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSqrtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSqrtRequestBuilder) Request() *WorkbookFunctionsImSqrtRequest { + return &WorkbookFunctionsImSqrtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSqrtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSubRequestBuilder struct{ BaseRequestBuilder } + +// ImSub action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSub(reqObj *WorkbookFunctionsImSubRequestParameter) *WorkbookFunctionsImSubRequestBuilder { + bb := &WorkbookFunctionsImSubRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSub" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSubRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSubRequestBuilder) Request() *WorkbookFunctionsImSubRequest { + return &WorkbookFunctionsImSubRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSubRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImSumRequestBuilder struct{ BaseRequestBuilder } + +// ImSum action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImSum(reqObj *WorkbookFunctionsImSumRequestParameter) *WorkbookFunctionsImSumRequestBuilder { + bb := &WorkbookFunctionsImSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imSum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImSumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImSumRequestBuilder) Request() *WorkbookFunctionsImSumRequest { + return &WorkbookFunctionsImSumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsImTanRequestBuilder struct{ BaseRequestBuilder } + +// ImTan action undocumented +func (b *WorkbookFunctionsRequestBuilder) ImTan(reqObj *WorkbookFunctionsImTanRequestParameter) *WorkbookFunctionsImTanRequestBuilder { + bb := &WorkbookFunctionsImTanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imTan" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImTanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImTanRequestBuilder) Request() *WorkbookFunctionsImTanRequest { + return &WorkbookFunctionsImTanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImTanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go new file mode 100644 index 00000000..4c64af6d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsImaginaryRequestBuilder struct{ BaseRequestBuilder } + +// Imaginary action undocumented +func (b *WorkbookFunctionsRequestBuilder) Imaginary(reqObj *WorkbookFunctionsImaginaryRequestParameter) *WorkbookFunctionsImaginaryRequestBuilder { + bb := &WorkbookFunctionsImaginaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/imaginary" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsImaginaryRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsImaginaryRequestBuilder) Request() *WorkbookFunctionsImaginaryRequest { + return &WorkbookFunctionsImaginaryRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsImaginaryRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go new file mode 100644 index 00000000..7b9c82c4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIntRequestBuilder struct{ BaseRequestBuilder } + +// Int action undocumented +func (b *WorkbookFunctionsRequestBuilder) Int(reqObj *WorkbookFunctionsIntRequestParameter) *WorkbookFunctionsIntRequestBuilder { + bb := &WorkbookFunctionsIntRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/int" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIntRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIntRequestBuilder) Request() *WorkbookFunctionsIntRequest { + return &WorkbookFunctionsIntRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIntRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIntRateRequestBuilder struct{ BaseRequestBuilder } + +// IntRate action undocumented +func (b *WorkbookFunctionsRequestBuilder) IntRate(reqObj *WorkbookFunctionsIntRateRequestParameter) *WorkbookFunctionsIntRateRequestBuilder { + bb := &WorkbookFunctionsIntRateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/intRate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIntRateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIntRateRequestBuilder) Request() *WorkbookFunctionsIntRateRequest { + return &WorkbookFunctionsIntRateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIntRateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go new file mode 100644 index 00000000..38fadd93 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIpmtRequestBuilder struct{ BaseRequestBuilder } + +// Ipmt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ipmt(reqObj *WorkbookFunctionsIpmtRequestParameter) *WorkbookFunctionsIpmtRequestBuilder { + bb := &WorkbookFunctionsIpmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ipmt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIpmtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIpmtRequestBuilder) Request() *WorkbookFunctionsIpmtRequest { + return &WorkbookFunctionsIpmtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIpmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go new file mode 100644 index 00000000..6eab11db --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIrrRequestBuilder struct{ BaseRequestBuilder } + +// Irr action undocumented +func (b *WorkbookFunctionsRequestBuilder) Irr(reqObj *WorkbookFunctionsIrrRequestParameter) *WorkbookFunctionsIrrRequestBuilder { + bb := &WorkbookFunctionsIrrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/irr" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIrrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIrrRequestBuilder) Request() *WorkbookFunctionsIrrRequest { + return &WorkbookFunctionsIrrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIrrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go new file mode 100644 index 00000000..231d1ee0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go @@ -0,0 +1,275 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIsErrRequestBuilder struct{ BaseRequestBuilder } + +// IsErr action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsErr(reqObj *WorkbookFunctionsIsErrRequestParameter) *WorkbookFunctionsIsErrRequestBuilder { + bb := &WorkbookFunctionsIsErrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isErr" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsErrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsErrRequestBuilder) Request() *WorkbookFunctionsIsErrRequest { + return &WorkbookFunctionsIsErrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsErrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsErrorRequestBuilder struct{ BaseRequestBuilder } + +// IsError action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsError(reqObj *WorkbookFunctionsIsErrorRequestParameter) *WorkbookFunctionsIsErrorRequestBuilder { + bb := &WorkbookFunctionsIsErrorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isError" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsErrorRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsErrorRequestBuilder) Request() *WorkbookFunctionsIsErrorRequest { + return &WorkbookFunctionsIsErrorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsErrorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsEvenRequestBuilder struct{ BaseRequestBuilder } + +// IsEven action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsEven(reqObj *WorkbookFunctionsIsEvenRequestParameter) *WorkbookFunctionsIsEvenRequestBuilder { + bb := &WorkbookFunctionsIsEvenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isEven" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsEvenRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsEvenRequestBuilder) Request() *WorkbookFunctionsIsEvenRequest { + return &WorkbookFunctionsIsEvenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsEvenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsFormulaRequestBuilder struct{ BaseRequestBuilder } + +// IsFormula action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsFormula(reqObj *WorkbookFunctionsIsFormulaRequestParameter) *WorkbookFunctionsIsFormulaRequestBuilder { + bb := &WorkbookFunctionsIsFormulaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isFormula" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsFormulaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsFormulaRequestBuilder) Request() *WorkbookFunctionsIsFormulaRequest { + return &WorkbookFunctionsIsFormulaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsFormulaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsLogicalRequestBuilder struct{ BaseRequestBuilder } + +// IsLogical action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsLogical(reqObj *WorkbookFunctionsIsLogicalRequestParameter) *WorkbookFunctionsIsLogicalRequestBuilder { + bb := &WorkbookFunctionsIsLogicalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isLogical" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsLogicalRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsLogicalRequestBuilder) Request() *WorkbookFunctionsIsLogicalRequest { + return &WorkbookFunctionsIsLogicalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsLogicalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsNARequestBuilder struct{ BaseRequestBuilder } + +// IsNA action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsNA(reqObj *WorkbookFunctionsIsNARequestParameter) *WorkbookFunctionsIsNARequestBuilder { + bb := &WorkbookFunctionsIsNARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isNA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsNARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsNARequestBuilder) Request() *WorkbookFunctionsIsNARequest { + return &WorkbookFunctionsIsNARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsNARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsNonTextRequestBuilder struct{ BaseRequestBuilder } + +// IsNonText action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsNonText(reqObj *WorkbookFunctionsIsNonTextRequestParameter) *WorkbookFunctionsIsNonTextRequestBuilder { + bb := &WorkbookFunctionsIsNonTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isNonText" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsNonTextRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsNonTextRequestBuilder) Request() *WorkbookFunctionsIsNonTextRequest { + return &WorkbookFunctionsIsNonTextRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsNonTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsNumberRequestBuilder struct{ BaseRequestBuilder } + +// IsNumber action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsNumber(reqObj *WorkbookFunctionsIsNumberRequestParameter) *WorkbookFunctionsIsNumberRequestBuilder { + bb := &WorkbookFunctionsIsNumberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isNumber" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsNumberRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsNumberRequestBuilder) Request() *WorkbookFunctionsIsNumberRequest { + return &WorkbookFunctionsIsNumberRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsNumberRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsOddRequestBuilder struct{ BaseRequestBuilder } + +// IsOdd action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsOdd(reqObj *WorkbookFunctionsIsOddRequestParameter) *WorkbookFunctionsIsOddRequestBuilder { + bb := &WorkbookFunctionsIsOddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isOdd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsOddRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsOddRequestBuilder) Request() *WorkbookFunctionsIsOddRequest { + return &WorkbookFunctionsIsOddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsOddRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsIsTextRequestBuilder struct{ BaseRequestBuilder } + +// IsText action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsText(reqObj *WorkbookFunctionsIsTextRequestParameter) *WorkbookFunctionsIsTextRequestBuilder { + bb := &WorkbookFunctionsIsTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isText" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsTextRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsTextRequestBuilder) Request() *WorkbookFunctionsIsTextRequest { + return &WorkbookFunctionsIsTextRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go new file mode 100644 index 00000000..6cd39ed6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIsoWeekNumRequestBuilder struct{ BaseRequestBuilder } + +// IsoWeekNum action undocumented +func (b *WorkbookFunctionsRequestBuilder) IsoWeekNum(reqObj *WorkbookFunctionsIsoWeekNumRequestParameter) *WorkbookFunctionsIsoWeekNumRequestBuilder { + bb := &WorkbookFunctionsIsoWeekNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isoWeekNum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsoWeekNumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsoWeekNumRequestBuilder) Request() *WorkbookFunctionsIsoWeekNumRequest { + return &WorkbookFunctionsIsoWeekNumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsoWeekNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go new file mode 100644 index 00000000..752b9b33 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIso_CeilingRequestBuilder struct{ BaseRequestBuilder } + +// Iso_Ceiling action undocumented +func (b *WorkbookFunctionsRequestBuilder) Iso_Ceiling(reqObj *WorkbookFunctionsIso_CeilingRequestParameter) *WorkbookFunctionsIso_CeilingRequestBuilder { + bb := &WorkbookFunctionsIso_CeilingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/iso_Ceiling" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIso_CeilingRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIso_CeilingRequestBuilder) Request() *WorkbookFunctionsIso_CeilingRequest { + return &WorkbookFunctionsIso_CeilingRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIso_CeilingRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go new file mode 100644 index 00000000..10e5d69e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIspmtRequestBuilder struct{ BaseRequestBuilder } + +// Ispmt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ispmt(reqObj *WorkbookFunctionsIspmtRequestParameter) *WorkbookFunctionsIspmtRequestBuilder { + bb := &WorkbookFunctionsIspmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ispmt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIspmtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIspmtRequestBuilder) Request() *WorkbookFunctionsIspmtRequest { + return &WorkbookFunctionsIspmtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIspmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go new file mode 100644 index 00000000..ad791918 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsIsrefRequestBuilder struct{ BaseRequestBuilder } + +// Isref action undocumented +func (b *WorkbookFunctionsRequestBuilder) Isref(reqObj *WorkbookFunctionsIsrefRequestParameter) *WorkbookFunctionsIsrefRequestBuilder { + bb := &WorkbookFunctionsIsrefRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/isref" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsIsrefRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsIsrefRequestBuilder) Request() *WorkbookFunctionsIsrefRequest { + return &WorkbookFunctionsIsrefRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsIsrefRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go new file mode 100644 index 00000000..245d36bf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsKurtRequestBuilder struct{ BaseRequestBuilder } + +// Kurt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Kurt(reqObj *WorkbookFunctionsKurtRequestParameter) *WorkbookFunctionsKurtRequestBuilder { + bb := &WorkbookFunctionsKurtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/kurt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsKurtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsKurtRequestBuilder) Request() *WorkbookFunctionsKurtRequest { + return &WorkbookFunctionsKurtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsKurtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go new file mode 100644 index 00000000..ac5330ef --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLargeRequestBuilder struct{ BaseRequestBuilder } + +// Large action undocumented +func (b *WorkbookFunctionsRequestBuilder) Large(reqObj *WorkbookFunctionsLargeRequestParameter) *WorkbookFunctionsLargeRequestBuilder { + bb := &WorkbookFunctionsLargeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/large" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLargeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLargeRequestBuilder) Request() *WorkbookFunctionsLargeRequest { + return &WorkbookFunctionsLargeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLargeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go new file mode 100644 index 00000000..c0928d06 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLcmRequestBuilder struct{ BaseRequestBuilder } + +// Lcm action undocumented +func (b *WorkbookFunctionsRequestBuilder) Lcm(reqObj *WorkbookFunctionsLcmRequestParameter) *WorkbookFunctionsLcmRequestBuilder { + bb := &WorkbookFunctionsLcmRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/lcm" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLcmRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLcmRequestBuilder) Request() *WorkbookFunctionsLcmRequest { + return &WorkbookFunctionsLcmRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLcmRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go new file mode 100644 index 00000000..16c25d74 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLeftRequestBuilder struct{ BaseRequestBuilder } + +// Left action undocumented +func (b *WorkbookFunctionsRequestBuilder) Left(reqObj *WorkbookFunctionsLeftRequestParameter) *WorkbookFunctionsLeftRequestBuilder { + bb := &WorkbookFunctionsLeftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/left" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLeftRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLeftRequestBuilder) Request() *WorkbookFunctionsLeftRequest { + return &WorkbookFunctionsLeftRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLeftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go new file mode 100644 index 00000000..61b4f74e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLeftbRequestBuilder struct{ BaseRequestBuilder } + +// Leftb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Leftb(reqObj *WorkbookFunctionsLeftbRequestParameter) *WorkbookFunctionsLeftbRequestBuilder { + bb := &WorkbookFunctionsLeftbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/leftb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLeftbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLeftbRequestBuilder) Request() *WorkbookFunctionsLeftbRequest { + return &WorkbookFunctionsLeftbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLeftbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go new file mode 100644 index 00000000..34411b5f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLenRequestBuilder struct{ BaseRequestBuilder } + +// Len action undocumented +func (b *WorkbookFunctionsRequestBuilder) Len(reqObj *WorkbookFunctionsLenRequestParameter) *WorkbookFunctionsLenRequestBuilder { + bb := &WorkbookFunctionsLenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/len" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLenRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLenRequestBuilder) Request() *WorkbookFunctionsLenRequest { + return &WorkbookFunctionsLenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go new file mode 100644 index 00000000..e7fe8401 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLenbRequestBuilder struct{ BaseRequestBuilder } + +// Lenb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Lenb(reqObj *WorkbookFunctionsLenbRequestParameter) *WorkbookFunctionsLenbRequestBuilder { + bb := &WorkbookFunctionsLenbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/lenb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLenbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLenbRequestBuilder) Request() *WorkbookFunctionsLenbRequest { + return &WorkbookFunctionsLenbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLenbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go new file mode 100644 index 00000000..db775808 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLnRequestBuilder struct{ BaseRequestBuilder } + +// Ln action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ln(reqObj *WorkbookFunctionsLnRequestParameter) *WorkbookFunctionsLnRequestBuilder { + bb := &WorkbookFunctionsLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ln" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLnRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLnRequestBuilder) Request() *WorkbookFunctionsLnRequest { + return &WorkbookFunctionsLnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go new file mode 100644 index 00000000..f536108a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLogRequestBuilder struct{ BaseRequestBuilder } + +// Log action undocumented +func (b *WorkbookFunctionsRequestBuilder) Log(reqObj *WorkbookFunctionsLogRequestParameter) *WorkbookFunctionsLogRequestBuilder { + bb := &WorkbookFunctionsLogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/log" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLogRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLogRequestBuilder) Request() *WorkbookFunctionsLogRequest { + return &WorkbookFunctionsLogRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLogRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsLogNorm_DistRequestBuilder struct{ BaseRequestBuilder } + +// LogNorm_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) LogNorm_Dist(reqObj *WorkbookFunctionsLogNorm_DistRequestParameter) *WorkbookFunctionsLogNorm_DistRequestBuilder { + bb := &WorkbookFunctionsLogNorm_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/logNorm_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLogNorm_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLogNorm_DistRequestBuilder) Request() *WorkbookFunctionsLogNorm_DistRequest { + return &WorkbookFunctionsLogNorm_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLogNorm_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsLogNorm_InvRequestBuilder struct{ BaseRequestBuilder } + +// LogNorm_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) LogNorm_Inv(reqObj *WorkbookFunctionsLogNorm_InvRequestParameter) *WorkbookFunctionsLogNorm_InvRequestBuilder { + bb := &WorkbookFunctionsLogNorm_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/logNorm_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLogNorm_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLogNorm_InvRequestBuilder) Request() *WorkbookFunctionsLogNorm_InvRequest { + return &WorkbookFunctionsLogNorm_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLogNorm_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go new file mode 100644 index 00000000..7ca02dc5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLog10RequestBuilder struct{ BaseRequestBuilder } + +// Log10 action undocumented +func (b *WorkbookFunctionsRequestBuilder) Log10(reqObj *WorkbookFunctionsLog10RequestParameter) *WorkbookFunctionsLog10RequestBuilder { + bb := &WorkbookFunctionsLog10RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/log10" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLog10Request struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLog10RequestBuilder) Request() *WorkbookFunctionsLog10Request { + return &WorkbookFunctionsLog10Request{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLog10Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go new file mode 100644 index 00000000..a3746245 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLookupRequestBuilder struct{ BaseRequestBuilder } + +// Lookup action undocumented +func (b *WorkbookFunctionsRequestBuilder) Lookup(reqObj *WorkbookFunctionsLookupRequestParameter) *WorkbookFunctionsLookupRequestBuilder { + bb := &WorkbookFunctionsLookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/lookup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLookupRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLookupRequestBuilder) Request() *WorkbookFunctionsLookupRequest { + return &WorkbookFunctionsLookupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go new file mode 100644 index 00000000..954adabf --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsLowerRequestBuilder struct{ BaseRequestBuilder } + +// Lower action undocumented +func (b *WorkbookFunctionsRequestBuilder) Lower(reqObj *WorkbookFunctionsLowerRequestParameter) *WorkbookFunctionsLowerRequestBuilder { + bb := &WorkbookFunctionsLowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/lower" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsLowerRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsLowerRequestBuilder) Request() *WorkbookFunctionsLowerRequest { + return &WorkbookFunctionsLowerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsLowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go new file mode 100644 index 00000000..7013bdbd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMatchRequestBuilder struct{ BaseRequestBuilder } + +// Match action undocumented +func (b *WorkbookFunctionsRequestBuilder) Match(reqObj *WorkbookFunctionsMatchRequestParameter) *WorkbookFunctionsMatchRequestBuilder { + bb := &WorkbookFunctionsMatchRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/match" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMatchRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMatchRequestBuilder) Request() *WorkbookFunctionsMatchRequest { + return &WorkbookFunctionsMatchRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMatchRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go new file mode 100644 index 00000000..a77a1f89 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMaxRequestBuilder struct{ BaseRequestBuilder } + +// Max action undocumented +func (b *WorkbookFunctionsRequestBuilder) Max(reqObj *WorkbookFunctionsMaxRequestParameter) *WorkbookFunctionsMaxRequestBuilder { + bb := &WorkbookFunctionsMaxRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/max" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMaxRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMaxRequestBuilder) Request() *WorkbookFunctionsMaxRequest { + return &WorkbookFunctionsMaxRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMaxRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsMaxARequestBuilder struct{ BaseRequestBuilder } + +// MaxA action undocumented +func (b *WorkbookFunctionsRequestBuilder) MaxA(reqObj *WorkbookFunctionsMaxARequestParameter) *WorkbookFunctionsMaxARequestBuilder { + bb := &WorkbookFunctionsMaxARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/maxA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMaxARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMaxARequestBuilder) Request() *WorkbookFunctionsMaxARequest { + return &WorkbookFunctionsMaxARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMaxARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go new file mode 100644 index 00000000..e3029e78 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMdurationRequestBuilder struct{ BaseRequestBuilder } + +// Mduration action undocumented +func (b *WorkbookFunctionsRequestBuilder) Mduration(reqObj *WorkbookFunctionsMdurationRequestParameter) *WorkbookFunctionsMdurationRequestBuilder { + bb := &WorkbookFunctionsMdurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mduration" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMdurationRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMdurationRequestBuilder) Request() *WorkbookFunctionsMdurationRequest { + return &WorkbookFunctionsMdurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMdurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go new file mode 100644 index 00000000..2c911f56 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMedianRequestBuilder struct{ BaseRequestBuilder } + +// Median action undocumented +func (b *WorkbookFunctionsRequestBuilder) Median(reqObj *WorkbookFunctionsMedianRequestParameter) *WorkbookFunctionsMedianRequestBuilder { + bb := &WorkbookFunctionsMedianRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/median" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMedianRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMedianRequestBuilder) Request() *WorkbookFunctionsMedianRequest { + return &WorkbookFunctionsMedianRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMedianRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go new file mode 100644 index 00000000..330f54a3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMidRequestBuilder struct{ BaseRequestBuilder } + +// Mid action undocumented +func (b *WorkbookFunctionsRequestBuilder) Mid(reqObj *WorkbookFunctionsMidRequestParameter) *WorkbookFunctionsMidRequestBuilder { + bb := &WorkbookFunctionsMidRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mid" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMidRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMidRequestBuilder) Request() *WorkbookFunctionsMidRequest { + return &WorkbookFunctionsMidRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMidRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go new file mode 100644 index 00000000..3da0e64d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMidbRequestBuilder struct{ BaseRequestBuilder } + +// Midb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Midb(reqObj *WorkbookFunctionsMidbRequestParameter) *WorkbookFunctionsMidbRequestBuilder { + bb := &WorkbookFunctionsMidbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/midb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMidbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMidbRequestBuilder) Request() *WorkbookFunctionsMidbRequest { + return &WorkbookFunctionsMidbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMidbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go new file mode 100644 index 00000000..f2fc805a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMinRequestBuilder struct{ BaseRequestBuilder } + +// Min action undocumented +func (b *WorkbookFunctionsRequestBuilder) Min(reqObj *WorkbookFunctionsMinRequestParameter) *WorkbookFunctionsMinRequestBuilder { + bb := &WorkbookFunctionsMinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/min" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMinRequestBuilder) Request() *WorkbookFunctionsMinRequest { + return &WorkbookFunctionsMinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsMinARequestBuilder struct{ BaseRequestBuilder } + +// MinA action undocumented +func (b *WorkbookFunctionsRequestBuilder) MinA(reqObj *WorkbookFunctionsMinARequestParameter) *WorkbookFunctionsMinARequestBuilder { + bb := &WorkbookFunctionsMinARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/minA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMinARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMinARequestBuilder) Request() *WorkbookFunctionsMinARequest { + return &WorkbookFunctionsMinARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMinARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go new file mode 100644 index 00000000..39200c97 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMinuteRequestBuilder struct{ BaseRequestBuilder } + +// Minute action undocumented +func (b *WorkbookFunctionsRequestBuilder) Minute(reqObj *WorkbookFunctionsMinuteRequestParameter) *WorkbookFunctionsMinuteRequestBuilder { + bb := &WorkbookFunctionsMinuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/minute" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMinuteRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMinuteRequestBuilder) Request() *WorkbookFunctionsMinuteRequest { + return &WorkbookFunctionsMinuteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMinuteRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go new file mode 100644 index 00000000..e6857606 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMirrRequestBuilder struct{ BaseRequestBuilder } + +// Mirr action undocumented +func (b *WorkbookFunctionsRequestBuilder) Mirr(reqObj *WorkbookFunctionsMirrRequestParameter) *WorkbookFunctionsMirrRequestBuilder { + bb := &WorkbookFunctionsMirrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mirr" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMirrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMirrRequestBuilder) Request() *WorkbookFunctionsMirrRequest { + return &WorkbookFunctionsMirrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMirrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go new file mode 100644 index 00000000..9c528fd1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsModRequestBuilder struct{ BaseRequestBuilder } + +// Mod action undocumented +func (b *WorkbookFunctionsRequestBuilder) Mod(reqObj *WorkbookFunctionsModRequestParameter) *WorkbookFunctionsModRequestBuilder { + bb := &WorkbookFunctionsModRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mod" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsModRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsModRequestBuilder) Request() *WorkbookFunctionsModRequest { + return &WorkbookFunctionsModRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsModRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go new file mode 100644 index 00000000..1657c1a2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMonthRequestBuilder struct{ BaseRequestBuilder } + +// Month action undocumented +func (b *WorkbookFunctionsRequestBuilder) Month(reqObj *WorkbookFunctionsMonthRequestParameter) *WorkbookFunctionsMonthRequestBuilder { + bb := &WorkbookFunctionsMonthRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/month" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMonthRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMonthRequestBuilder) Request() *WorkbookFunctionsMonthRequest { + return &WorkbookFunctionsMonthRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMonthRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go new file mode 100644 index 00000000..ee7a443a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMroundRequestBuilder struct{ BaseRequestBuilder } + +// Mround action undocumented +func (b *WorkbookFunctionsRequestBuilder) Mround(reqObj *WorkbookFunctionsMroundRequestParameter) *WorkbookFunctionsMroundRequestBuilder { + bb := &WorkbookFunctionsMroundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/mround" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMroundRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMroundRequestBuilder) Request() *WorkbookFunctionsMroundRequest { + return &WorkbookFunctionsMroundRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMroundRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go new file mode 100644 index 00000000..9fa57eeb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsMultiNomialRequestBuilder struct{ BaseRequestBuilder } + +// MultiNomial action undocumented +func (b *WorkbookFunctionsRequestBuilder) MultiNomial(reqObj *WorkbookFunctionsMultiNomialRequestParameter) *WorkbookFunctionsMultiNomialRequestBuilder { + bb := &WorkbookFunctionsMultiNomialRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/multiNomial" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsMultiNomialRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsMultiNomialRequestBuilder) Request() *WorkbookFunctionsMultiNomialRequest { + return &WorkbookFunctionsMultiNomialRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsMultiNomialRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go new file mode 100644 index 00000000..dd3095b8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNRequestBuilder struct{ BaseRequestBuilder } + +// N action undocumented +func (b *WorkbookFunctionsRequestBuilder) N(reqObj *WorkbookFunctionsNRequestParameter) *WorkbookFunctionsNRequestBuilder { + bb := &WorkbookFunctionsNRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/n" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNRequestBuilder) Request() *WorkbookFunctionsNRequest { + return &WorkbookFunctionsNRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go new file mode 100644 index 00000000..8065e8a3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNaRequestBuilder struct{ BaseRequestBuilder } + +// Na action undocumented +func (b *WorkbookFunctionsRequestBuilder) Na(reqObj *WorkbookFunctionsNaRequestParameter) *WorkbookFunctionsNaRequestBuilder { + bb := &WorkbookFunctionsNaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/na" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNaRequestBuilder) Request() *WorkbookFunctionsNaRequest { + return &WorkbookFunctionsNaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go new file mode 100644 index 00000000..b7950a53 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNegBinom_DistRequestBuilder struct{ BaseRequestBuilder } + +// NegBinom_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) NegBinom_Dist(reqObj *WorkbookFunctionsNegBinom_DistRequestParameter) *WorkbookFunctionsNegBinom_DistRequestBuilder { + bb := &WorkbookFunctionsNegBinom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/negBinom_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNegBinom_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNegBinom_DistRequestBuilder) Request() *WorkbookFunctionsNegBinom_DistRequest { + return &WorkbookFunctionsNegBinom_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNegBinom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go new file mode 100644 index 00000000..5003df98 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNetworkDaysRequestBuilder struct{ BaseRequestBuilder } + +// NetworkDays action undocumented +func (b *WorkbookFunctionsRequestBuilder) NetworkDays(reqObj *WorkbookFunctionsNetworkDaysRequestParameter) *WorkbookFunctionsNetworkDaysRequestBuilder { + bb := &WorkbookFunctionsNetworkDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/networkDays" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNetworkDaysRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNetworkDaysRequestBuilder) Request() *WorkbookFunctionsNetworkDaysRequest { + return &WorkbookFunctionsNetworkDaysRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNetworkDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsNetworkDays_IntlRequestBuilder struct{ BaseRequestBuilder } + +// NetworkDays_Intl action undocumented +func (b *WorkbookFunctionsRequestBuilder) NetworkDays_Intl(reqObj *WorkbookFunctionsNetworkDays_IntlRequestParameter) *WorkbookFunctionsNetworkDays_IntlRequestBuilder { + bb := &WorkbookFunctionsNetworkDays_IntlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/networkDays_Intl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNetworkDays_IntlRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNetworkDays_IntlRequestBuilder) Request() *WorkbookFunctionsNetworkDays_IntlRequest { + return &WorkbookFunctionsNetworkDays_IntlRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNetworkDays_IntlRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go new file mode 100644 index 00000000..b17b3fa6 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNominalRequestBuilder struct{ BaseRequestBuilder } + +// Nominal action undocumented +func (b *WorkbookFunctionsRequestBuilder) Nominal(reqObj *WorkbookFunctionsNominalRequestParameter) *WorkbookFunctionsNominalRequestBuilder { + bb := &WorkbookFunctionsNominalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/nominal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNominalRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNominalRequestBuilder) Request() *WorkbookFunctionsNominalRequest { + return &WorkbookFunctionsNominalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNominalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go new file mode 100644 index 00000000..83ca0012 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNorm_DistRequestBuilder struct{ BaseRequestBuilder } + +// Norm_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Norm_Dist(reqObj *WorkbookFunctionsNorm_DistRequestParameter) *WorkbookFunctionsNorm_DistRequestBuilder { + bb := &WorkbookFunctionsNorm_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/norm_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNorm_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNorm_DistRequestBuilder) Request() *WorkbookFunctionsNorm_DistRequest { + return &WorkbookFunctionsNorm_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNorm_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsNorm_InvRequestBuilder struct{ BaseRequestBuilder } + +// Norm_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Norm_Inv(reqObj *WorkbookFunctionsNorm_InvRequestParameter) *WorkbookFunctionsNorm_InvRequestBuilder { + bb := &WorkbookFunctionsNorm_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/norm_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNorm_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNorm_InvRequestBuilder) Request() *WorkbookFunctionsNorm_InvRequest { + return &WorkbookFunctionsNorm_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNorm_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsNorm_S_DistRequestBuilder struct{ BaseRequestBuilder } + +// Norm_S_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Norm_S_Dist(reqObj *WorkbookFunctionsNorm_S_DistRequestParameter) *WorkbookFunctionsNorm_S_DistRequestBuilder { + bb := &WorkbookFunctionsNorm_S_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/norm_S_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNorm_S_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNorm_S_DistRequestBuilder) Request() *WorkbookFunctionsNorm_S_DistRequest { + return &WorkbookFunctionsNorm_S_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNorm_S_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsNorm_S_InvRequestBuilder struct{ BaseRequestBuilder } + +// Norm_S_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Norm_S_Inv(reqObj *WorkbookFunctionsNorm_S_InvRequestParameter) *WorkbookFunctionsNorm_S_InvRequestBuilder { + bb := &WorkbookFunctionsNorm_S_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/norm_S_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNorm_S_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNorm_S_InvRequestBuilder) Request() *WorkbookFunctionsNorm_S_InvRequest { + return &WorkbookFunctionsNorm_S_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNorm_S_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go new file mode 100644 index 00000000..9e568d82 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNotRequestBuilder struct{ BaseRequestBuilder } + +// Not action undocumented +func (b *WorkbookFunctionsRequestBuilder) Not(reqObj *WorkbookFunctionsNotRequestParameter) *WorkbookFunctionsNotRequestBuilder { + bb := &WorkbookFunctionsNotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/not" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNotRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNotRequestBuilder) Request() *WorkbookFunctionsNotRequest { + return &WorkbookFunctionsNotRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go new file mode 100644 index 00000000..3fa1181f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNowRequestBuilder struct{ BaseRequestBuilder } + +// Now action undocumented +func (b *WorkbookFunctionsRequestBuilder) Now(reqObj *WorkbookFunctionsNowRequestParameter) *WorkbookFunctionsNowRequestBuilder { + bb := &WorkbookFunctionsNowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/now" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNowRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNowRequestBuilder) Request() *WorkbookFunctionsNowRequest { + return &WorkbookFunctionsNowRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNowRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go new file mode 100644 index 00000000..2abf6221 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNperRequestBuilder struct{ BaseRequestBuilder } + +// Nper action undocumented +func (b *WorkbookFunctionsRequestBuilder) Nper(reqObj *WorkbookFunctionsNperRequestParameter) *WorkbookFunctionsNperRequestBuilder { + bb := &WorkbookFunctionsNperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/nper" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNperRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNperRequestBuilder) Request() *WorkbookFunctionsNperRequest { + return &WorkbookFunctionsNperRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go new file mode 100644 index 00000000..3fe990de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNpvRequestBuilder struct{ BaseRequestBuilder } + +// Npv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Npv(reqObj *WorkbookFunctionsNpvRequestParameter) *WorkbookFunctionsNpvRequestBuilder { + bb := &WorkbookFunctionsNpvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/npv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNpvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNpvRequestBuilder) Request() *WorkbookFunctionsNpvRequest { + return &WorkbookFunctionsNpvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNpvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go new file mode 100644 index 00000000..c783e95d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsNumberValueRequestBuilder struct{ BaseRequestBuilder } + +// NumberValue action undocumented +func (b *WorkbookFunctionsRequestBuilder) NumberValue(reqObj *WorkbookFunctionsNumberValueRequestParameter) *WorkbookFunctionsNumberValueRequestBuilder { + bb := &WorkbookFunctionsNumberValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/numberValue" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsNumberValueRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsNumberValueRequestBuilder) Request() *WorkbookFunctionsNumberValueRequest { + return &WorkbookFunctionsNumberValueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsNumberValueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go new file mode 100644 index 00000000..625b478c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsOct2BinRequestBuilder struct{ BaseRequestBuilder } + +// Oct2Bin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Oct2Bin(reqObj *WorkbookFunctionsOct2BinRequestParameter) *WorkbookFunctionsOct2BinRequestBuilder { + bb := &WorkbookFunctionsOct2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oct2Bin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOct2BinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOct2BinRequestBuilder) Request() *WorkbookFunctionsOct2BinRequest { + return &WorkbookFunctionsOct2BinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOct2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOct2DecRequestBuilder struct{ BaseRequestBuilder } + +// Oct2Dec action undocumented +func (b *WorkbookFunctionsRequestBuilder) Oct2Dec(reqObj *WorkbookFunctionsOct2DecRequestParameter) *WorkbookFunctionsOct2DecRequestBuilder { + bb := &WorkbookFunctionsOct2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oct2Dec" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOct2DecRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOct2DecRequestBuilder) Request() *WorkbookFunctionsOct2DecRequest { + return &WorkbookFunctionsOct2DecRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOct2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOct2HexRequestBuilder struct{ BaseRequestBuilder } + +// Oct2Hex action undocumented +func (b *WorkbookFunctionsRequestBuilder) Oct2Hex(reqObj *WorkbookFunctionsOct2HexRequestParameter) *WorkbookFunctionsOct2HexRequestBuilder { + bb := &WorkbookFunctionsOct2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oct2Hex" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOct2HexRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOct2HexRequestBuilder) Request() *WorkbookFunctionsOct2HexRequest { + return &WorkbookFunctionsOct2HexRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOct2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go new file mode 100644 index 00000000..0600ab4b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go @@ -0,0 +1,140 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsOddRequestBuilder struct{ BaseRequestBuilder } + +// Odd action undocumented +func (b *WorkbookFunctionsRequestBuilder) Odd(reqObj *WorkbookFunctionsOddRequestParameter) *WorkbookFunctionsOddRequestBuilder { + bb := &WorkbookFunctionsOddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/odd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOddRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOddRequestBuilder) Request() *WorkbookFunctionsOddRequest { + return &WorkbookFunctionsOddRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOddRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOddFPriceRequestBuilder struct{ BaseRequestBuilder } + +// OddFPrice action undocumented +func (b *WorkbookFunctionsRequestBuilder) OddFPrice(reqObj *WorkbookFunctionsOddFPriceRequestParameter) *WorkbookFunctionsOddFPriceRequestBuilder { + bb := &WorkbookFunctionsOddFPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oddFPrice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOddFPriceRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOddFPriceRequestBuilder) Request() *WorkbookFunctionsOddFPriceRequest { + return &WorkbookFunctionsOddFPriceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOddFPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOddFYieldRequestBuilder struct{ BaseRequestBuilder } + +// OddFYield action undocumented +func (b *WorkbookFunctionsRequestBuilder) OddFYield(reqObj *WorkbookFunctionsOddFYieldRequestParameter) *WorkbookFunctionsOddFYieldRequestBuilder { + bb := &WorkbookFunctionsOddFYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oddFYield" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOddFYieldRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOddFYieldRequestBuilder) Request() *WorkbookFunctionsOddFYieldRequest { + return &WorkbookFunctionsOddFYieldRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOddFYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOddLPriceRequestBuilder struct{ BaseRequestBuilder } + +// OddLPrice action undocumented +func (b *WorkbookFunctionsRequestBuilder) OddLPrice(reqObj *WorkbookFunctionsOddLPriceRequestParameter) *WorkbookFunctionsOddLPriceRequestBuilder { + bb := &WorkbookFunctionsOddLPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oddLPrice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOddLPriceRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOddLPriceRequestBuilder) Request() *WorkbookFunctionsOddLPriceRequest { + return &WorkbookFunctionsOddLPriceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOddLPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsOddLYieldRequestBuilder struct{ BaseRequestBuilder } + +// OddLYield action undocumented +func (b *WorkbookFunctionsRequestBuilder) OddLYield(reqObj *WorkbookFunctionsOddLYieldRequestParameter) *WorkbookFunctionsOddLYieldRequestBuilder { + bb := &WorkbookFunctionsOddLYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/oddLYield" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOddLYieldRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOddLYieldRequestBuilder) Request() *WorkbookFunctionsOddLYieldRequest { + return &WorkbookFunctionsOddLYieldRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOddLYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go new file mode 100644 index 00000000..6ac56589 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsOrRequestBuilder struct{ BaseRequestBuilder } + +// Or action undocumented +func (b *WorkbookFunctionsRequestBuilder) Or(reqObj *WorkbookFunctionsOrRequestParameter) *WorkbookFunctionsOrRequestBuilder { + bb := &WorkbookFunctionsOrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/or" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsOrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsOrRequestBuilder) Request() *WorkbookFunctionsOrRequest { + return &WorkbookFunctionsOrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsOrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go new file mode 100644 index 00000000..65bbddd8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPdurationRequestBuilder struct{ BaseRequestBuilder } + +// Pduration action undocumented +func (b *WorkbookFunctionsRequestBuilder) Pduration(reqObj *WorkbookFunctionsPdurationRequestParameter) *WorkbookFunctionsPdurationRequestBuilder { + bb := &WorkbookFunctionsPdurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pduration" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPdurationRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPdurationRequestBuilder) Request() *WorkbookFunctionsPdurationRequest { + return &WorkbookFunctionsPdurationRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPdurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go new file mode 100644 index 00000000..a866813d --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPercentRank_ExcRequestBuilder struct{ BaseRequestBuilder } + +// PercentRank_Exc action undocumented +func (b *WorkbookFunctionsRequestBuilder) PercentRank_Exc(reqObj *WorkbookFunctionsPercentRank_ExcRequestParameter) *WorkbookFunctionsPercentRank_ExcRequestBuilder { + bb := &WorkbookFunctionsPercentRank_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/percentRank_Exc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPercentRank_ExcRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPercentRank_ExcRequestBuilder) Request() *WorkbookFunctionsPercentRank_ExcRequest { + return &WorkbookFunctionsPercentRank_ExcRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPercentRank_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsPercentRank_IncRequestBuilder struct{ BaseRequestBuilder } + +// PercentRank_Inc action undocumented +func (b *WorkbookFunctionsRequestBuilder) PercentRank_Inc(reqObj *WorkbookFunctionsPercentRank_IncRequestParameter) *WorkbookFunctionsPercentRank_IncRequestBuilder { + bb := &WorkbookFunctionsPercentRank_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/percentRank_Inc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPercentRank_IncRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPercentRank_IncRequestBuilder) Request() *WorkbookFunctionsPercentRank_IncRequest { + return &WorkbookFunctionsPercentRank_IncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPercentRank_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go new file mode 100644 index 00000000..74e6da92 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPercentile_ExcRequestBuilder struct{ BaseRequestBuilder } + +// Percentile_Exc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Percentile_Exc(reqObj *WorkbookFunctionsPercentile_ExcRequestParameter) *WorkbookFunctionsPercentile_ExcRequestBuilder { + bb := &WorkbookFunctionsPercentile_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/percentile_Exc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPercentile_ExcRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPercentile_ExcRequestBuilder) Request() *WorkbookFunctionsPercentile_ExcRequest { + return &WorkbookFunctionsPercentile_ExcRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPercentile_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsPercentile_IncRequestBuilder struct{ BaseRequestBuilder } + +// Percentile_Inc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Percentile_Inc(reqObj *WorkbookFunctionsPercentile_IncRequestParameter) *WorkbookFunctionsPercentile_IncRequestBuilder { + bb := &WorkbookFunctionsPercentile_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/percentile_Inc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPercentile_IncRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPercentile_IncRequestBuilder) Request() *WorkbookFunctionsPercentile_IncRequest { + return &WorkbookFunctionsPercentile_IncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPercentile_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go new file mode 100644 index 00000000..28600d2c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPermutRequestBuilder struct{ BaseRequestBuilder } + +// Permut action undocumented +func (b *WorkbookFunctionsRequestBuilder) Permut(reqObj *WorkbookFunctionsPermutRequestParameter) *WorkbookFunctionsPermutRequestBuilder { + bb := &WorkbookFunctionsPermutRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/permut" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPermutRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPermutRequestBuilder) Request() *WorkbookFunctionsPermutRequest { + return &WorkbookFunctionsPermutRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPermutRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go new file mode 100644 index 00000000..39777101 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPermutationaRequestBuilder struct{ BaseRequestBuilder } + +// Permutationa action undocumented +func (b *WorkbookFunctionsRequestBuilder) Permutationa(reqObj *WorkbookFunctionsPermutationaRequestParameter) *WorkbookFunctionsPermutationaRequestBuilder { + bb := &WorkbookFunctionsPermutationaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/permutationa" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPermutationaRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPermutationaRequestBuilder) Request() *WorkbookFunctionsPermutationaRequest { + return &WorkbookFunctionsPermutationaRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPermutationaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go new file mode 100644 index 00000000..bc3b1acd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPhiRequestBuilder struct{ BaseRequestBuilder } + +// Phi action undocumented +func (b *WorkbookFunctionsRequestBuilder) Phi(reqObj *WorkbookFunctionsPhiRequestParameter) *WorkbookFunctionsPhiRequestBuilder { + bb := &WorkbookFunctionsPhiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/phi" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPhiRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPhiRequestBuilder) Request() *WorkbookFunctionsPhiRequest { + return &WorkbookFunctionsPhiRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPhiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go new file mode 100644 index 00000000..0fe31000 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPiRequestBuilder struct{ BaseRequestBuilder } + +// Pi action undocumented +func (b *WorkbookFunctionsRequestBuilder) Pi(reqObj *WorkbookFunctionsPiRequestParameter) *WorkbookFunctionsPiRequestBuilder { + bb := &WorkbookFunctionsPiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pi" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPiRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPiRequestBuilder) Request() *WorkbookFunctionsPiRequest { + return &WorkbookFunctionsPiRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go new file mode 100644 index 00000000..b7ad651b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPmtRequestBuilder struct{ BaseRequestBuilder } + +// Pmt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Pmt(reqObj *WorkbookFunctionsPmtRequestParameter) *WorkbookFunctionsPmtRequestBuilder { + bb := &WorkbookFunctionsPmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pmt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPmtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPmtRequestBuilder) Request() *WorkbookFunctionsPmtRequest { + return &WorkbookFunctionsPmtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go new file mode 100644 index 00000000..398a2d35 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPoisson_DistRequestBuilder struct{ BaseRequestBuilder } + +// Poisson_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Poisson_Dist(reqObj *WorkbookFunctionsPoisson_DistRequestParameter) *WorkbookFunctionsPoisson_DistRequestBuilder { + bb := &WorkbookFunctionsPoisson_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/poisson_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPoisson_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPoisson_DistRequestBuilder) Request() *WorkbookFunctionsPoisson_DistRequest { + return &WorkbookFunctionsPoisson_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPoisson_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go new file mode 100644 index 00000000..12f0b4be --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPowerRequestBuilder struct{ BaseRequestBuilder } + +// Power action undocumented +func (b *WorkbookFunctionsRequestBuilder) Power(reqObj *WorkbookFunctionsPowerRequestParameter) *WorkbookFunctionsPowerRequestBuilder { + bb := &WorkbookFunctionsPowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/power" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPowerRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPowerRequestBuilder) Request() *WorkbookFunctionsPowerRequest { + return &WorkbookFunctionsPowerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go new file mode 100644 index 00000000..c82a5cdb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPpmtRequestBuilder struct{ BaseRequestBuilder } + +// Ppmt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Ppmt(reqObj *WorkbookFunctionsPpmtRequestParameter) *WorkbookFunctionsPpmtRequestBuilder { + bb := &WorkbookFunctionsPpmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/ppmt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPpmtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPpmtRequestBuilder) Request() *WorkbookFunctionsPpmtRequest { + return &WorkbookFunctionsPpmtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPpmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go new file mode 100644 index 00000000..05eb4618 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPriceRequestBuilder struct{ BaseRequestBuilder } + +// Price action undocumented +func (b *WorkbookFunctionsRequestBuilder) Price(reqObj *WorkbookFunctionsPriceRequestParameter) *WorkbookFunctionsPriceRequestBuilder { + bb := &WorkbookFunctionsPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/price" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPriceRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPriceRequestBuilder) Request() *WorkbookFunctionsPriceRequest { + return &WorkbookFunctionsPriceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsPriceDiscRequestBuilder struct{ BaseRequestBuilder } + +// PriceDisc action undocumented +func (b *WorkbookFunctionsRequestBuilder) PriceDisc(reqObj *WorkbookFunctionsPriceDiscRequestParameter) *WorkbookFunctionsPriceDiscRequestBuilder { + bb := &WorkbookFunctionsPriceDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/priceDisc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPriceDiscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPriceDiscRequestBuilder) Request() *WorkbookFunctionsPriceDiscRequest { + return &WorkbookFunctionsPriceDiscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPriceDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsPriceMatRequestBuilder struct{ BaseRequestBuilder } + +// PriceMat action undocumented +func (b *WorkbookFunctionsRequestBuilder) PriceMat(reqObj *WorkbookFunctionsPriceMatRequestParameter) *WorkbookFunctionsPriceMatRequestBuilder { + bb := &WorkbookFunctionsPriceMatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/priceMat" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPriceMatRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPriceMatRequestBuilder) Request() *WorkbookFunctionsPriceMatRequest { + return &WorkbookFunctionsPriceMatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPriceMatRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go new file mode 100644 index 00000000..c0455d05 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsProductRequestBuilder struct{ BaseRequestBuilder } + +// Product action undocumented +func (b *WorkbookFunctionsRequestBuilder) Product(reqObj *WorkbookFunctionsProductRequestParameter) *WorkbookFunctionsProductRequestBuilder { + bb := &WorkbookFunctionsProductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/product" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsProductRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsProductRequestBuilder) Request() *WorkbookFunctionsProductRequest { + return &WorkbookFunctionsProductRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsProductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go new file mode 100644 index 00000000..92813ddb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsProperRequestBuilder struct{ BaseRequestBuilder } + +// Proper action undocumented +func (b *WorkbookFunctionsRequestBuilder) Proper(reqObj *WorkbookFunctionsProperRequestParameter) *WorkbookFunctionsProperRequestBuilder { + bb := &WorkbookFunctionsProperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/proper" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsProperRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsProperRequestBuilder) Request() *WorkbookFunctionsProperRequest { + return &WorkbookFunctionsProperRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsProperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go new file mode 100644 index 00000000..364e2c11 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsPvRequestBuilder struct{ BaseRequestBuilder } + +// Pv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Pv(reqObj *WorkbookFunctionsPvRequestParameter) *WorkbookFunctionsPvRequestBuilder { + bb := &WorkbookFunctionsPvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/pv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsPvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsPvRequestBuilder) Request() *WorkbookFunctionsPvRequest { + return &WorkbookFunctionsPvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsPvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go new file mode 100644 index 00000000..a02ef532 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsQuartile_ExcRequestBuilder struct{ BaseRequestBuilder } + +// Quartile_Exc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Quartile_Exc(reqObj *WorkbookFunctionsQuartile_ExcRequestParameter) *WorkbookFunctionsQuartile_ExcRequestBuilder { + bb := &WorkbookFunctionsQuartile_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/quartile_Exc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsQuartile_ExcRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsQuartile_ExcRequestBuilder) Request() *WorkbookFunctionsQuartile_ExcRequest { + return &WorkbookFunctionsQuartile_ExcRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsQuartile_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsQuartile_IncRequestBuilder struct{ BaseRequestBuilder } + +// Quartile_Inc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Quartile_Inc(reqObj *WorkbookFunctionsQuartile_IncRequestParameter) *WorkbookFunctionsQuartile_IncRequestBuilder { + bb := &WorkbookFunctionsQuartile_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/quartile_Inc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsQuartile_IncRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsQuartile_IncRequestBuilder) Request() *WorkbookFunctionsQuartile_IncRequest { + return &WorkbookFunctionsQuartile_IncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsQuartile_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go new file mode 100644 index 00000000..7599aad5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsQuotientRequestBuilder struct{ BaseRequestBuilder } + +// Quotient action undocumented +func (b *WorkbookFunctionsRequestBuilder) Quotient(reqObj *WorkbookFunctionsQuotientRequestParameter) *WorkbookFunctionsQuotientRequestBuilder { + bb := &WorkbookFunctionsQuotientRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/quotient" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsQuotientRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsQuotientRequestBuilder) Request() *WorkbookFunctionsQuotientRequest { + return &WorkbookFunctionsQuotientRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsQuotientRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go new file mode 100644 index 00000000..b77a6eef --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRadiansRequestBuilder struct{ BaseRequestBuilder } + +// Radians action undocumented +func (b *WorkbookFunctionsRequestBuilder) Radians(reqObj *WorkbookFunctionsRadiansRequestParameter) *WorkbookFunctionsRadiansRequestBuilder { + bb := &WorkbookFunctionsRadiansRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/radians" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRadiansRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRadiansRequestBuilder) Request() *WorkbookFunctionsRadiansRequest { + return &WorkbookFunctionsRadiansRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRadiansRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go new file mode 100644 index 00000000..51aa766e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRandRequestBuilder struct{ BaseRequestBuilder } + +// Rand action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rand(reqObj *WorkbookFunctionsRandRequestParameter) *WorkbookFunctionsRandRequestBuilder { + bb := &WorkbookFunctionsRandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rand" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRandRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRandRequestBuilder) Request() *WorkbookFunctionsRandRequest { + return &WorkbookFunctionsRandRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRandRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsRandBetweenRequestBuilder struct{ BaseRequestBuilder } + +// RandBetween action undocumented +func (b *WorkbookFunctionsRequestBuilder) RandBetween(reqObj *WorkbookFunctionsRandBetweenRequestParameter) *WorkbookFunctionsRandBetweenRequestBuilder { + bb := &WorkbookFunctionsRandBetweenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/randBetween" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRandBetweenRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRandBetweenRequestBuilder) Request() *WorkbookFunctionsRandBetweenRequest { + return &WorkbookFunctionsRandBetweenRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRandBetweenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go new file mode 100644 index 00000000..2f427adb --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRank_AvgRequestBuilder struct{ BaseRequestBuilder } + +// Rank_Avg action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rank_Avg(reqObj *WorkbookFunctionsRank_AvgRequestParameter) *WorkbookFunctionsRank_AvgRequestBuilder { + bb := &WorkbookFunctionsRank_AvgRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rank_Avg" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRank_AvgRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRank_AvgRequestBuilder) Request() *WorkbookFunctionsRank_AvgRequest { + return &WorkbookFunctionsRank_AvgRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRank_AvgRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsRank_EqRequestBuilder struct{ BaseRequestBuilder } + +// Rank_Eq action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rank_Eq(reqObj *WorkbookFunctionsRank_EqRequestParameter) *WorkbookFunctionsRank_EqRequestBuilder { + bb := &WorkbookFunctionsRank_EqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rank_Eq" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRank_EqRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRank_EqRequestBuilder) Request() *WorkbookFunctionsRank_EqRequest { + return &WorkbookFunctionsRank_EqRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRank_EqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go new file mode 100644 index 00000000..226d7543 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRateRequestBuilder struct{ BaseRequestBuilder } + +// Rate action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rate(reqObj *WorkbookFunctionsRateRequestParameter) *WorkbookFunctionsRateRequestBuilder { + bb := &WorkbookFunctionsRateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rate" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRateRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRateRequestBuilder) Request() *WorkbookFunctionsRateRequest { + return &WorkbookFunctionsRateRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go new file mode 100644 index 00000000..18b6723a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsReceivedRequestBuilder struct{ BaseRequestBuilder } + +// Received action undocumented +func (b *WorkbookFunctionsRequestBuilder) Received(reqObj *WorkbookFunctionsReceivedRequestParameter) *WorkbookFunctionsReceivedRequestBuilder { + bb := &WorkbookFunctionsReceivedRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/received" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsReceivedRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsReceivedRequestBuilder) Request() *WorkbookFunctionsReceivedRequest { + return &WorkbookFunctionsReceivedRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsReceivedRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go new file mode 100644 index 00000000..48a08e59 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsReplaceRequestBuilder struct{ BaseRequestBuilder } + +// Replace action undocumented +func (b *WorkbookFunctionsRequestBuilder) Replace(reqObj *WorkbookFunctionsReplaceRequestParameter) *WorkbookFunctionsReplaceRequestBuilder { + bb := &WorkbookFunctionsReplaceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/replace" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsReplaceRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsReplaceRequestBuilder) Request() *WorkbookFunctionsReplaceRequest { + return &WorkbookFunctionsReplaceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsReplaceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsReplaceBRequestBuilder struct{ BaseRequestBuilder } + +// ReplaceB action undocumented +func (b *WorkbookFunctionsRequestBuilder) ReplaceB(reqObj *WorkbookFunctionsReplaceBRequestParameter) *WorkbookFunctionsReplaceBRequestBuilder { + bb := &WorkbookFunctionsReplaceBRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/replaceB" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsReplaceBRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsReplaceBRequestBuilder) Request() *WorkbookFunctionsReplaceBRequest { + return &WorkbookFunctionsReplaceBRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsReplaceBRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go new file mode 100644 index 00000000..72f10a91 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsReptRequestBuilder struct{ BaseRequestBuilder } + +// Rept action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rept(reqObj *WorkbookFunctionsReptRequestParameter) *WorkbookFunctionsReptRequestBuilder { + bb := &WorkbookFunctionsReptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rept" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsReptRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsReptRequestBuilder) Request() *WorkbookFunctionsReptRequest { + return &WorkbookFunctionsReptRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsReptRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go new file mode 100644 index 00000000..a705dc38 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRightRequestBuilder struct{ BaseRequestBuilder } + +// Right action undocumented +func (b *WorkbookFunctionsRequestBuilder) Right(reqObj *WorkbookFunctionsRightRequestParameter) *WorkbookFunctionsRightRequestBuilder { + bb := &WorkbookFunctionsRightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/right" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRightRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRightRequestBuilder) Request() *WorkbookFunctionsRightRequest { + return &WorkbookFunctionsRightRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRightRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go new file mode 100644 index 00000000..da4b46d9 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRightbRequestBuilder struct{ BaseRequestBuilder } + +// Rightb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rightb(reqObj *WorkbookFunctionsRightbRequestParameter) *WorkbookFunctionsRightbRequestBuilder { + bb := &WorkbookFunctionsRightbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rightb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRightbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRightbRequestBuilder) Request() *WorkbookFunctionsRightbRequest { + return &WorkbookFunctionsRightbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRightbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go new file mode 100644 index 00000000..5c262917 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRomanRequestBuilder struct{ BaseRequestBuilder } + +// Roman action undocumented +func (b *WorkbookFunctionsRequestBuilder) Roman(reqObj *WorkbookFunctionsRomanRequestParameter) *WorkbookFunctionsRomanRequestBuilder { + bb := &WorkbookFunctionsRomanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/roman" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRomanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRomanRequestBuilder) Request() *WorkbookFunctionsRomanRequest { + return &WorkbookFunctionsRomanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRomanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go new file mode 100644 index 00000000..98b7d91e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRoundRequestBuilder struct{ BaseRequestBuilder } + +// Round action undocumented +func (b *WorkbookFunctionsRequestBuilder) Round(reqObj *WorkbookFunctionsRoundRequestParameter) *WorkbookFunctionsRoundRequestBuilder { + bb := &WorkbookFunctionsRoundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/round" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRoundRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRoundRequestBuilder) Request() *WorkbookFunctionsRoundRequest { + return &WorkbookFunctionsRoundRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRoundRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsRoundDownRequestBuilder struct{ BaseRequestBuilder } + +// RoundDown action undocumented +func (b *WorkbookFunctionsRequestBuilder) RoundDown(reqObj *WorkbookFunctionsRoundDownRequestParameter) *WorkbookFunctionsRoundDownRequestBuilder { + bb := &WorkbookFunctionsRoundDownRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/roundDown" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRoundDownRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRoundDownRequestBuilder) Request() *WorkbookFunctionsRoundDownRequest { + return &WorkbookFunctionsRoundDownRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRoundDownRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsRoundUpRequestBuilder struct{ BaseRequestBuilder } + +// RoundUp action undocumented +func (b *WorkbookFunctionsRequestBuilder) RoundUp(reqObj *WorkbookFunctionsRoundUpRequestParameter) *WorkbookFunctionsRoundUpRequestBuilder { + bb := &WorkbookFunctionsRoundUpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/roundUp" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRoundUpRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRoundUpRequestBuilder) Request() *WorkbookFunctionsRoundUpRequest { + return &WorkbookFunctionsRoundUpRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRoundUpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go new file mode 100644 index 00000000..4ddcd439 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRowsRequestBuilder struct{ BaseRequestBuilder } + +// Rows action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rows(reqObj *WorkbookFunctionsRowsRequestParameter) *WorkbookFunctionsRowsRequestBuilder { + bb := &WorkbookFunctionsRowsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rows" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRowsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRowsRequestBuilder) Request() *WorkbookFunctionsRowsRequest { + return &WorkbookFunctionsRowsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRowsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go new file mode 100644 index 00000000..9a791b5f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsRriRequestBuilder struct{ BaseRequestBuilder } + +// Rri action undocumented +func (b *WorkbookFunctionsRequestBuilder) Rri(reqObj *WorkbookFunctionsRriRequestParameter) *WorkbookFunctionsRriRequestBuilder { + bb := &WorkbookFunctionsRriRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/rri" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsRriRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsRriRequestBuilder) Request() *WorkbookFunctionsRriRequest { + return &WorkbookFunctionsRriRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsRriRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go new file mode 100644 index 00000000..3980aed4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSecRequestBuilder struct{ BaseRequestBuilder } + +// Sec action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sec(reqObj *WorkbookFunctionsSecRequestParameter) *WorkbookFunctionsSecRequestBuilder { + bb := &WorkbookFunctionsSecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sec" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSecRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSecRequestBuilder) Request() *WorkbookFunctionsSecRequest { + return &WorkbookFunctionsSecRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go new file mode 100644 index 00000000..67ba1f1a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSechRequestBuilder struct{ BaseRequestBuilder } + +// Sech action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sech(reqObj *WorkbookFunctionsSechRequestParameter) *WorkbookFunctionsSechRequestBuilder { + bb := &WorkbookFunctionsSechRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sech" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSechRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSechRequestBuilder) Request() *WorkbookFunctionsSechRequest { + return &WorkbookFunctionsSechRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSechRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go new file mode 100644 index 00000000..aeb62248 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSecondRequestBuilder struct{ BaseRequestBuilder } + +// Second action undocumented +func (b *WorkbookFunctionsRequestBuilder) Second(reqObj *WorkbookFunctionsSecondRequestParameter) *WorkbookFunctionsSecondRequestBuilder { + bb := &WorkbookFunctionsSecondRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/second" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSecondRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSecondRequestBuilder) Request() *WorkbookFunctionsSecondRequest { + return &WorkbookFunctionsSecondRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSecondRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go new file mode 100644 index 00000000..3172ebec --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSeriesSumRequestBuilder struct{ BaseRequestBuilder } + +// SeriesSum action undocumented +func (b *WorkbookFunctionsRequestBuilder) SeriesSum(reqObj *WorkbookFunctionsSeriesSumRequestParameter) *WorkbookFunctionsSeriesSumRequestBuilder { + bb := &WorkbookFunctionsSeriesSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/seriesSum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSeriesSumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSeriesSumRequestBuilder) Request() *WorkbookFunctionsSeriesSumRequest { + return &WorkbookFunctionsSeriesSumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSeriesSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go new file mode 100644 index 00000000..ebc3f3f1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSheetRequestBuilder struct{ BaseRequestBuilder } + +// Sheet action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sheet(reqObj *WorkbookFunctionsSheetRequestParameter) *WorkbookFunctionsSheetRequestBuilder { + bb := &WorkbookFunctionsSheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sheet" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSheetRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSheetRequestBuilder) Request() *WorkbookFunctionsSheetRequest { + return &WorkbookFunctionsSheetRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSheetRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go new file mode 100644 index 00000000..a6de3c52 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSheetsRequestBuilder struct{ BaseRequestBuilder } + +// Sheets action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sheets(reqObj *WorkbookFunctionsSheetsRequestParameter) *WorkbookFunctionsSheetsRequestBuilder { + bb := &WorkbookFunctionsSheetsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sheets" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSheetsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSheetsRequestBuilder) Request() *WorkbookFunctionsSheetsRequest { + return &WorkbookFunctionsSheetsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSheetsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go new file mode 100644 index 00000000..8351ef61 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSignRequestBuilder struct{ BaseRequestBuilder } + +// Sign action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sign(reqObj *WorkbookFunctionsSignRequestParameter) *WorkbookFunctionsSignRequestBuilder { + bb := &WorkbookFunctionsSignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sign" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSignRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSignRequestBuilder) Request() *WorkbookFunctionsSignRequest { + return &WorkbookFunctionsSignRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSignRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go new file mode 100644 index 00000000..459b2862 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSinRequestBuilder struct{ BaseRequestBuilder } + +// Sin action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sin(reqObj *WorkbookFunctionsSinRequestParameter) *WorkbookFunctionsSinRequestBuilder { + bb := &WorkbookFunctionsSinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sin" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSinRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSinRequestBuilder) Request() *WorkbookFunctionsSinRequest { + return &WorkbookFunctionsSinRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go new file mode 100644 index 00000000..a9d198c2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSinhRequestBuilder struct{ BaseRequestBuilder } + +// Sinh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sinh(reqObj *WorkbookFunctionsSinhRequestParameter) *WorkbookFunctionsSinhRequestBuilder { + bb := &WorkbookFunctionsSinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sinh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSinhRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSinhRequestBuilder) Request() *WorkbookFunctionsSinhRequest { + return &WorkbookFunctionsSinhRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go new file mode 100644 index 00000000..141c4690 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSkewRequestBuilder struct{ BaseRequestBuilder } + +// Skew action undocumented +func (b *WorkbookFunctionsRequestBuilder) Skew(reqObj *WorkbookFunctionsSkewRequestParameter) *WorkbookFunctionsSkewRequestBuilder { + bb := &WorkbookFunctionsSkewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/skew" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSkewRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSkewRequestBuilder) Request() *WorkbookFunctionsSkewRequest { + return &WorkbookFunctionsSkewRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSkewRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go new file mode 100644 index 00000000..2b52da68 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSkew_pRequestBuilder struct{ BaseRequestBuilder } + +// Skew_p action undocumented +func (b *WorkbookFunctionsRequestBuilder) Skew_p(reqObj *WorkbookFunctionsSkew_pRequestParameter) *WorkbookFunctionsSkew_pRequestBuilder { + bb := &WorkbookFunctionsSkew_pRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/skew_p" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSkew_pRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSkew_pRequestBuilder) Request() *WorkbookFunctionsSkew_pRequest { + return &WorkbookFunctionsSkew_pRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSkew_pRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go new file mode 100644 index 00000000..a67e6de1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSlnRequestBuilder struct{ BaseRequestBuilder } + +// Sln action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sln(reqObj *WorkbookFunctionsSlnRequestParameter) *WorkbookFunctionsSlnRequestBuilder { + bb := &WorkbookFunctionsSlnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sln" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSlnRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSlnRequestBuilder) Request() *WorkbookFunctionsSlnRequest { + return &WorkbookFunctionsSlnRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSlnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go new file mode 100644 index 00000000..c18f86df --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSmallRequestBuilder struct{ BaseRequestBuilder } + +// Small action undocumented +func (b *WorkbookFunctionsRequestBuilder) Small(reqObj *WorkbookFunctionsSmallRequestParameter) *WorkbookFunctionsSmallRequestBuilder { + bb := &WorkbookFunctionsSmallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/small" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSmallRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSmallRequestBuilder) Request() *WorkbookFunctionsSmallRequest { + return &WorkbookFunctionsSmallRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSmallRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go new file mode 100644 index 00000000..bc30d0b3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSqrtRequestBuilder struct{ BaseRequestBuilder } + +// Sqrt action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sqrt(reqObj *WorkbookFunctionsSqrtRequestParameter) *WorkbookFunctionsSqrtRequestBuilder { + bb := &WorkbookFunctionsSqrtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sqrt" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSqrtRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSqrtRequestBuilder) Request() *WorkbookFunctionsSqrtRequest { + return &WorkbookFunctionsSqrtRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSqrtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsSqrtPiRequestBuilder struct{ BaseRequestBuilder } + +// SqrtPi action undocumented +func (b *WorkbookFunctionsRequestBuilder) SqrtPi(reqObj *WorkbookFunctionsSqrtPiRequestParameter) *WorkbookFunctionsSqrtPiRequestBuilder { + bb := &WorkbookFunctionsSqrtPiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sqrtPi" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSqrtPiRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSqrtPiRequestBuilder) Request() *WorkbookFunctionsSqrtPiRequest { + return &WorkbookFunctionsSqrtPiRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSqrtPiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go new file mode 100644 index 00000000..a1bebc65 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsStDevARequestBuilder struct{ BaseRequestBuilder } + +// StDevA action undocumented +func (b *WorkbookFunctionsRequestBuilder) StDevA(reqObj *WorkbookFunctionsStDevARequestParameter) *WorkbookFunctionsStDevARequestBuilder { + bb := &WorkbookFunctionsStDevARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stDevA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsStDevARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsStDevARequestBuilder) Request() *WorkbookFunctionsStDevARequest { + return &WorkbookFunctionsStDevARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsStDevARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsStDevPARequestBuilder struct{ BaseRequestBuilder } + +// StDevPA action undocumented +func (b *WorkbookFunctionsRequestBuilder) StDevPA(reqObj *WorkbookFunctionsStDevPARequestParameter) *WorkbookFunctionsStDevPARequestBuilder { + bb := &WorkbookFunctionsStDevPARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stDevPA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsStDevPARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsStDevPARequestBuilder) Request() *WorkbookFunctionsStDevPARequest { + return &WorkbookFunctionsStDevPARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsStDevPARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsStDev_PRequestBuilder struct{ BaseRequestBuilder } + +// StDev_P action undocumented +func (b *WorkbookFunctionsRequestBuilder) StDev_P(reqObj *WorkbookFunctionsStDev_PRequestParameter) *WorkbookFunctionsStDev_PRequestBuilder { + bb := &WorkbookFunctionsStDev_PRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stDev_P" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsStDev_PRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsStDev_PRequestBuilder) Request() *WorkbookFunctionsStDev_PRequest { + return &WorkbookFunctionsStDev_PRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsStDev_PRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsStDev_SRequestBuilder struct{ BaseRequestBuilder } + +// StDev_S action undocumented +func (b *WorkbookFunctionsRequestBuilder) StDev_S(reqObj *WorkbookFunctionsStDev_SRequestParameter) *WorkbookFunctionsStDev_SRequestBuilder { + bb := &WorkbookFunctionsStDev_SRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/stDev_S" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsStDev_SRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsStDev_SRequestBuilder) Request() *WorkbookFunctionsStDev_SRequest { + return &WorkbookFunctionsStDev_SRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsStDev_SRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go new file mode 100644 index 00000000..894506cd --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsStandardizeRequestBuilder struct{ BaseRequestBuilder } + +// Standardize action undocumented +func (b *WorkbookFunctionsRequestBuilder) Standardize(reqObj *WorkbookFunctionsStandardizeRequestParameter) *WorkbookFunctionsStandardizeRequestBuilder { + bb := &WorkbookFunctionsStandardizeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/standardize" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsStandardizeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsStandardizeRequestBuilder) Request() *WorkbookFunctionsStandardizeRequest { + return &WorkbookFunctionsStandardizeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsStandardizeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go new file mode 100644 index 00000000..46069aad --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSubstituteRequestBuilder struct{ BaseRequestBuilder } + +// Substitute action undocumented +func (b *WorkbookFunctionsRequestBuilder) Substitute(reqObj *WorkbookFunctionsSubstituteRequestParameter) *WorkbookFunctionsSubstituteRequestBuilder { + bb := &WorkbookFunctionsSubstituteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/substitute" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSubstituteRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSubstituteRequestBuilder) Request() *WorkbookFunctionsSubstituteRequest { + return &WorkbookFunctionsSubstituteRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSubstituteRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go new file mode 100644 index 00000000..0b0cc269 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSubtotalRequestBuilder struct{ BaseRequestBuilder } + +// Subtotal action undocumented +func (b *WorkbookFunctionsRequestBuilder) Subtotal(reqObj *WorkbookFunctionsSubtotalRequestParameter) *WorkbookFunctionsSubtotalRequestBuilder { + bb := &WorkbookFunctionsSubtotalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/subtotal" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSubtotalRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSubtotalRequestBuilder) Request() *WorkbookFunctionsSubtotalRequest { + return &WorkbookFunctionsSubtotalRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSubtotalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go new file mode 100644 index 00000000..6c8e0307 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go @@ -0,0 +1,113 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSumRequestBuilder struct{ BaseRequestBuilder } + +// Sum action undocumented +func (b *WorkbookFunctionsRequestBuilder) Sum(reqObj *WorkbookFunctionsSumRequestParameter) *WorkbookFunctionsSumRequestBuilder { + bb := &WorkbookFunctionsSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSumRequestBuilder) Request() *WorkbookFunctionsSumRequest { + return &WorkbookFunctionsSumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsSumIfRequestBuilder struct{ BaseRequestBuilder } + +// SumIf action undocumented +func (b *WorkbookFunctionsRequestBuilder) SumIf(reqObj *WorkbookFunctionsSumIfRequestParameter) *WorkbookFunctionsSumIfRequestBuilder { + bb := &WorkbookFunctionsSumIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sumIf" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSumIfRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSumIfRequestBuilder) Request() *WorkbookFunctionsSumIfRequest { + return &WorkbookFunctionsSumIfRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSumIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsSumIfsRequestBuilder struct{ BaseRequestBuilder } + +// SumIfs action undocumented +func (b *WorkbookFunctionsRequestBuilder) SumIfs(reqObj *WorkbookFunctionsSumIfsRequestParameter) *WorkbookFunctionsSumIfsRequestBuilder { + bb := &WorkbookFunctionsSumIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sumIfs" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSumIfsRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSumIfsRequestBuilder) Request() *WorkbookFunctionsSumIfsRequest { + return &WorkbookFunctionsSumIfsRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSumIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsSumSqRequestBuilder struct{ BaseRequestBuilder } + +// SumSq action undocumented +func (b *WorkbookFunctionsRequestBuilder) SumSq(reqObj *WorkbookFunctionsSumSqRequestParameter) *WorkbookFunctionsSumSqRequestBuilder { + bb := &WorkbookFunctionsSumSqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/sumSq" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSumSqRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSumSqRequestBuilder) Request() *WorkbookFunctionsSumSqRequest { + return &WorkbookFunctionsSumSqRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSumSqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go new file mode 100644 index 00000000..386a96f1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsSydRequestBuilder struct{ BaseRequestBuilder } + +// Syd action undocumented +func (b *WorkbookFunctionsRequestBuilder) Syd(reqObj *WorkbookFunctionsSydRequestParameter) *WorkbookFunctionsSydRequestBuilder { + bb := &WorkbookFunctionsSydRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/syd" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsSydRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsSydRequestBuilder) Request() *WorkbookFunctionsSydRequest { + return &WorkbookFunctionsSydRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsSydRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go new file mode 100644 index 00000000..953679f5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTRequestBuilder struct{ BaseRequestBuilder } + +// T action undocumented +func (b *WorkbookFunctionsRequestBuilder) T(reqObj *WorkbookFunctionsTRequestParameter) *WorkbookFunctionsTRequestBuilder { + bb := &WorkbookFunctionsTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTRequestBuilder) Request() *WorkbookFunctionsTRequest { + return &WorkbookFunctionsTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go new file mode 100644 index 00000000..80a2644f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go @@ -0,0 +1,140 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsT_DistRequestBuilder struct{ BaseRequestBuilder } + +// T_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) T_Dist(reqObj *WorkbookFunctionsT_DistRequestParameter) *WorkbookFunctionsT_DistRequestBuilder { + bb := &WorkbookFunctionsT_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsT_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsT_DistRequestBuilder) Request() *WorkbookFunctionsT_DistRequest { + return &WorkbookFunctionsT_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsT_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsT_Dist_2TRequestBuilder struct{ BaseRequestBuilder } + +// T_Dist_2T action undocumented +func (b *WorkbookFunctionsRequestBuilder) T_Dist_2T(reqObj *WorkbookFunctionsT_Dist_2TRequestParameter) *WorkbookFunctionsT_Dist_2TRequestBuilder { + bb := &WorkbookFunctionsT_Dist_2TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t_Dist_2T" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsT_Dist_2TRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsT_Dist_2TRequestBuilder) Request() *WorkbookFunctionsT_Dist_2TRequest { + return &WorkbookFunctionsT_Dist_2TRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsT_Dist_2TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsT_Dist_RTRequestBuilder struct{ BaseRequestBuilder } + +// T_Dist_RT action undocumented +func (b *WorkbookFunctionsRequestBuilder) T_Dist_RT(reqObj *WorkbookFunctionsT_Dist_RTRequestParameter) *WorkbookFunctionsT_Dist_RTRequestBuilder { + bb := &WorkbookFunctionsT_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t_Dist_RT" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsT_Dist_RTRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsT_Dist_RTRequestBuilder) Request() *WorkbookFunctionsT_Dist_RTRequest { + return &WorkbookFunctionsT_Dist_RTRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsT_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsT_InvRequestBuilder struct{ BaseRequestBuilder } + +// T_Inv action undocumented +func (b *WorkbookFunctionsRequestBuilder) T_Inv(reqObj *WorkbookFunctionsT_InvRequestParameter) *WorkbookFunctionsT_InvRequestBuilder { + bb := &WorkbookFunctionsT_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t_Inv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsT_InvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsT_InvRequestBuilder) Request() *WorkbookFunctionsT_InvRequest { + return &WorkbookFunctionsT_InvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsT_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsT_Inv_2TRequestBuilder struct{ BaseRequestBuilder } + +// T_Inv_2T action undocumented +func (b *WorkbookFunctionsRequestBuilder) T_Inv_2T(reqObj *WorkbookFunctionsT_Inv_2TRequestParameter) *WorkbookFunctionsT_Inv_2TRequestBuilder { + bb := &WorkbookFunctionsT_Inv_2TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/t_Inv_2T" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsT_Inv_2TRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsT_Inv_2TRequestBuilder) Request() *WorkbookFunctionsT_Inv_2TRequest { + return &WorkbookFunctionsT_Inv_2TRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsT_Inv_2TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go new file mode 100644 index 00000000..a64002a1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTanRequestBuilder struct{ BaseRequestBuilder } + +// Tan action undocumented +func (b *WorkbookFunctionsRequestBuilder) Tan(reqObj *WorkbookFunctionsTanRequestParameter) *WorkbookFunctionsTanRequestBuilder { + bb := &WorkbookFunctionsTanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tan" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTanRequestBuilder) Request() *WorkbookFunctionsTanRequest { + return &WorkbookFunctionsTanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go new file mode 100644 index 00000000..9be09161 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTanhRequestBuilder struct{ BaseRequestBuilder } + +// Tanh action undocumented +func (b *WorkbookFunctionsRequestBuilder) Tanh(reqObj *WorkbookFunctionsTanhRequestParameter) *WorkbookFunctionsTanhRequestBuilder { + bb := &WorkbookFunctionsTanhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tanh" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTanhRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTanhRequestBuilder) Request() *WorkbookFunctionsTanhRequest { + return &WorkbookFunctionsTanhRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTanhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go new file mode 100644 index 00000000..93ae1da8 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTbillEqRequestBuilder struct{ BaseRequestBuilder } + +// TbillEq action undocumented +func (b *WorkbookFunctionsRequestBuilder) TbillEq(reqObj *WorkbookFunctionsTbillEqRequestParameter) *WorkbookFunctionsTbillEqRequestBuilder { + bb := &WorkbookFunctionsTbillEqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tbillEq" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTbillEqRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTbillEqRequestBuilder) Request() *WorkbookFunctionsTbillEqRequest { + return &WorkbookFunctionsTbillEqRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTbillEqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsTbillPriceRequestBuilder struct{ BaseRequestBuilder } + +// TbillPrice action undocumented +func (b *WorkbookFunctionsRequestBuilder) TbillPrice(reqObj *WorkbookFunctionsTbillPriceRequestParameter) *WorkbookFunctionsTbillPriceRequestBuilder { + bb := &WorkbookFunctionsTbillPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tbillPrice" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTbillPriceRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTbillPriceRequestBuilder) Request() *WorkbookFunctionsTbillPriceRequest { + return &WorkbookFunctionsTbillPriceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTbillPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsTbillYieldRequestBuilder struct{ BaseRequestBuilder } + +// TbillYield action undocumented +func (b *WorkbookFunctionsRequestBuilder) TbillYield(reqObj *WorkbookFunctionsTbillYieldRequestParameter) *WorkbookFunctionsTbillYieldRequestBuilder { + bb := &WorkbookFunctionsTbillYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/tbillYield" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTbillYieldRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTbillYieldRequestBuilder) Request() *WorkbookFunctionsTbillYieldRequest { + return &WorkbookFunctionsTbillYieldRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTbillYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go new file mode 100644 index 00000000..4a5be392 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTextRequestBuilder struct{ BaseRequestBuilder } + +// Text action undocumented +func (b *WorkbookFunctionsRequestBuilder) Text(reqObj *WorkbookFunctionsTextRequestParameter) *WorkbookFunctionsTextRequestBuilder { + bb := &WorkbookFunctionsTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/text" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTextRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTextRequestBuilder) Request() *WorkbookFunctionsTextRequest { + return &WorkbookFunctionsTextRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go new file mode 100644 index 00000000..2d9256ad --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTimeRequestBuilder struct{ BaseRequestBuilder } + +// Time action undocumented +func (b *WorkbookFunctionsRequestBuilder) Time(reqObj *WorkbookFunctionsTimeRequestParameter) *WorkbookFunctionsTimeRequestBuilder { + bb := &WorkbookFunctionsTimeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/time" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTimeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTimeRequestBuilder) Request() *WorkbookFunctionsTimeRequest { + return &WorkbookFunctionsTimeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTimeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go new file mode 100644 index 00000000..be96da8b --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTimevalueRequestBuilder struct{ BaseRequestBuilder } + +// Timevalue action undocumented +func (b *WorkbookFunctionsRequestBuilder) Timevalue(reqObj *WorkbookFunctionsTimevalueRequestParameter) *WorkbookFunctionsTimevalueRequestBuilder { + bb := &WorkbookFunctionsTimevalueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/timevalue" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTimevalueRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTimevalueRequestBuilder) Request() *WorkbookFunctionsTimevalueRequest { + return &WorkbookFunctionsTimevalueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTimevalueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go new file mode 100644 index 00000000..9169d6a1 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTodayRequestBuilder struct{ BaseRequestBuilder } + +// Today action undocumented +func (b *WorkbookFunctionsRequestBuilder) Today(reqObj *WorkbookFunctionsTodayRequestParameter) *WorkbookFunctionsTodayRequestBuilder { + bb := &WorkbookFunctionsTodayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/today" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTodayRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTodayRequestBuilder) Request() *WorkbookFunctionsTodayRequest { + return &WorkbookFunctionsTodayRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTodayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go new file mode 100644 index 00000000..8c195d68 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTrimRequestBuilder struct{ BaseRequestBuilder } + +// Trim action undocumented +func (b *WorkbookFunctionsRequestBuilder) Trim(reqObj *WorkbookFunctionsTrimRequestParameter) *WorkbookFunctionsTrimRequestBuilder { + bb := &WorkbookFunctionsTrimRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/trim" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTrimRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTrimRequestBuilder) Request() *WorkbookFunctionsTrimRequest { + return &WorkbookFunctionsTrimRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTrimRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsTrimMeanRequestBuilder struct{ BaseRequestBuilder } + +// TrimMean action undocumented +func (b *WorkbookFunctionsRequestBuilder) TrimMean(reqObj *WorkbookFunctionsTrimMeanRequestParameter) *WorkbookFunctionsTrimMeanRequestBuilder { + bb := &WorkbookFunctionsTrimMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/trimMean" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTrimMeanRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTrimMeanRequestBuilder) Request() *WorkbookFunctionsTrimMeanRequest { + return &WorkbookFunctionsTrimMeanRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTrimMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go new file mode 100644 index 00000000..df1f7b2a --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTrueRequestBuilder struct{ BaseRequestBuilder } + +// True action undocumented +func (b *WorkbookFunctionsRequestBuilder) True(reqObj *WorkbookFunctionsTrueRequestParameter) *WorkbookFunctionsTrueRequestBuilder { + bb := &WorkbookFunctionsTrueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/true" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTrueRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTrueRequestBuilder) Request() *WorkbookFunctionsTrueRequest { + return &WorkbookFunctionsTrueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTrueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go new file mode 100644 index 00000000..98e4aec5 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTruncRequestBuilder struct{ BaseRequestBuilder } + +// Trunc action undocumented +func (b *WorkbookFunctionsRequestBuilder) Trunc(reqObj *WorkbookFunctionsTruncRequestParameter) *WorkbookFunctionsTruncRequestBuilder { + bb := &WorkbookFunctionsTruncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/trunc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTruncRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTruncRequestBuilder) Request() *WorkbookFunctionsTruncRequest { + return &WorkbookFunctionsTruncRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTruncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go new file mode 100644 index 00000000..8f2b24de --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsTypeRequestBuilder struct{ BaseRequestBuilder } + +// Type action undocumented +func (b *WorkbookFunctionsRequestBuilder) Type(reqObj *WorkbookFunctionsTypeRequestParameter) *WorkbookFunctionsTypeRequestBuilder { + bb := &WorkbookFunctionsTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/type" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsTypeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsTypeRequestBuilder) Request() *WorkbookFunctionsTypeRequest { + return &WorkbookFunctionsTypeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsTypeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go new file mode 100644 index 00000000..11df67e7 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsUnicharRequestBuilder struct{ BaseRequestBuilder } + +// Unichar action undocumented +func (b *WorkbookFunctionsRequestBuilder) Unichar(reqObj *WorkbookFunctionsUnicharRequestParameter) *WorkbookFunctionsUnicharRequestBuilder { + bb := &WorkbookFunctionsUnicharRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unichar" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsUnicharRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsUnicharRequestBuilder) Request() *WorkbookFunctionsUnicharRequest { + return &WorkbookFunctionsUnicharRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsUnicharRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go new file mode 100644 index 00000000..b92f3570 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsUnicodeRequestBuilder struct{ BaseRequestBuilder } + +// Unicode action undocumented +func (b *WorkbookFunctionsRequestBuilder) Unicode(reqObj *WorkbookFunctionsUnicodeRequestParameter) *WorkbookFunctionsUnicodeRequestBuilder { + bb := &WorkbookFunctionsUnicodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unicode" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsUnicodeRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsUnicodeRequestBuilder) Request() *WorkbookFunctionsUnicodeRequest { + return &WorkbookFunctionsUnicodeRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsUnicodeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go new file mode 100644 index 00000000..6ae98c66 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsUpperRequestBuilder struct{ BaseRequestBuilder } + +// Upper action undocumented +func (b *WorkbookFunctionsRequestBuilder) Upper(reqObj *WorkbookFunctionsUpperRequestParameter) *WorkbookFunctionsUpperRequestBuilder { + bb := &WorkbookFunctionsUpperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/upper" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsUpperRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsUpperRequestBuilder) Request() *WorkbookFunctionsUpperRequest { + return &WorkbookFunctionsUpperRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsUpperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go new file mode 100644 index 00000000..7c7b5b7f --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsUsdollarRequestBuilder struct{ BaseRequestBuilder } + +// Usdollar action undocumented +func (b *WorkbookFunctionsRequestBuilder) Usdollar(reqObj *WorkbookFunctionsUsdollarRequestParameter) *WorkbookFunctionsUsdollarRequestBuilder { + bb := &WorkbookFunctionsUsdollarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/usdollar" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsUsdollarRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsUsdollarRequestBuilder) Request() *WorkbookFunctionsUsdollarRequest { + return &WorkbookFunctionsUsdollarRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsUsdollarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go new file mode 100644 index 00000000..bc0bdcaa --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsValueRequestBuilder struct{ BaseRequestBuilder } + +// Value action undocumented +func (b *WorkbookFunctionsRequestBuilder) Value(reqObj *WorkbookFunctionsValueRequestParameter) *WorkbookFunctionsValueRequestBuilder { + bb := &WorkbookFunctionsValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/value" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsValueRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsValueRequestBuilder) Request() *WorkbookFunctionsValueRequest { + return &WorkbookFunctionsValueRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsValueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go new file mode 100644 index 00000000..25dbef1c --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsVarARequestBuilder struct{ BaseRequestBuilder } + +// VarA action undocumented +func (b *WorkbookFunctionsRequestBuilder) VarA(reqObj *WorkbookFunctionsVarARequestParameter) *WorkbookFunctionsVarARequestBuilder { + bb := &WorkbookFunctionsVarARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/varA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVarARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVarARequestBuilder) Request() *WorkbookFunctionsVarARequest { + return &WorkbookFunctionsVarARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVarARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsVarPARequestBuilder struct{ BaseRequestBuilder } + +// VarPA action undocumented +func (b *WorkbookFunctionsRequestBuilder) VarPA(reqObj *WorkbookFunctionsVarPARequestParameter) *WorkbookFunctionsVarPARequestBuilder { + bb := &WorkbookFunctionsVarPARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/varPA" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVarPARequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVarPARequestBuilder) Request() *WorkbookFunctionsVarPARequest { + return &WorkbookFunctionsVarPARequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVarPARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go new file mode 100644 index 00000000..3f088766 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsVar_PRequestBuilder struct{ BaseRequestBuilder } + +// Var_P action undocumented +func (b *WorkbookFunctionsRequestBuilder) Var_P(reqObj *WorkbookFunctionsVar_PRequestParameter) *WorkbookFunctionsVar_PRequestBuilder { + bb := &WorkbookFunctionsVar_PRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/var_P" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVar_PRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVar_PRequestBuilder) Request() *WorkbookFunctionsVar_PRequest { + return &WorkbookFunctionsVar_PRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVar_PRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsVar_SRequestBuilder struct{ BaseRequestBuilder } + +// Var_S action undocumented +func (b *WorkbookFunctionsRequestBuilder) Var_S(reqObj *WorkbookFunctionsVar_SRequestParameter) *WorkbookFunctionsVar_SRequestBuilder { + bb := &WorkbookFunctionsVar_SRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/var_S" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVar_SRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVar_SRequestBuilder) Request() *WorkbookFunctionsVar_SRequest { + return &WorkbookFunctionsVar_SRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVar_SRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go new file mode 100644 index 00000000..abb90fa3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsVdbRequestBuilder struct{ BaseRequestBuilder } + +// Vdb action undocumented +func (b *WorkbookFunctionsRequestBuilder) Vdb(reqObj *WorkbookFunctionsVdbRequestParameter) *WorkbookFunctionsVdbRequestBuilder { + bb := &WorkbookFunctionsVdbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/vdb" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVdbRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVdbRequestBuilder) Request() *WorkbookFunctionsVdbRequest { + return &WorkbookFunctionsVdbRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVdbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go new file mode 100644 index 00000000..ad7debc2 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsVlookupRequestBuilder struct{ BaseRequestBuilder } + +// Vlookup action undocumented +func (b *WorkbookFunctionsRequestBuilder) Vlookup(reqObj *WorkbookFunctionsVlookupRequestParameter) *WorkbookFunctionsVlookupRequestBuilder { + bb := &WorkbookFunctionsVlookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/vlookup" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsVlookupRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsVlookupRequestBuilder) Request() *WorkbookFunctionsVlookupRequest { + return &WorkbookFunctionsVlookupRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsVlookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go new file mode 100644 index 00000000..4cfbea3e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsWeekNumRequestBuilder struct{ BaseRequestBuilder } + +// WeekNum action undocumented +func (b *WorkbookFunctionsRequestBuilder) WeekNum(reqObj *WorkbookFunctionsWeekNumRequestParameter) *WorkbookFunctionsWeekNumRequestBuilder { + bb := &WorkbookFunctionsWeekNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/weekNum" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsWeekNumRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsWeekNumRequestBuilder) Request() *WorkbookFunctionsWeekNumRequest { + return &WorkbookFunctionsWeekNumRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsWeekNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go new file mode 100644 index 00000000..5862a2e3 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsWeekdayRequestBuilder struct{ BaseRequestBuilder } + +// Weekday action undocumented +func (b *WorkbookFunctionsRequestBuilder) Weekday(reqObj *WorkbookFunctionsWeekdayRequestParameter) *WorkbookFunctionsWeekdayRequestBuilder { + bb := &WorkbookFunctionsWeekdayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/weekday" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsWeekdayRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsWeekdayRequestBuilder) Request() *WorkbookFunctionsWeekdayRequest { + return &WorkbookFunctionsWeekdayRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsWeekdayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go new file mode 100644 index 00000000..7d5588dc --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsWeibull_DistRequestBuilder struct{ BaseRequestBuilder } + +// Weibull_Dist action undocumented +func (b *WorkbookFunctionsRequestBuilder) Weibull_Dist(reqObj *WorkbookFunctionsWeibull_DistRequestParameter) *WorkbookFunctionsWeibull_DistRequestBuilder { + bb := &WorkbookFunctionsWeibull_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/weibull_Dist" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsWeibull_DistRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsWeibull_DistRequestBuilder) Request() *WorkbookFunctionsWeibull_DistRequest { + return &WorkbookFunctionsWeibull_DistRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsWeibull_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go new file mode 100644 index 00000000..2f07d28e --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsWorkDayRequestBuilder struct{ BaseRequestBuilder } + +// WorkDay action undocumented +func (b *WorkbookFunctionsRequestBuilder) WorkDay(reqObj *WorkbookFunctionsWorkDayRequestParameter) *WorkbookFunctionsWorkDayRequestBuilder { + bb := &WorkbookFunctionsWorkDayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/workDay" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsWorkDayRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsWorkDayRequestBuilder) Request() *WorkbookFunctionsWorkDayRequest { + return &WorkbookFunctionsWorkDayRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsWorkDayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsWorkDay_IntlRequestBuilder struct{ BaseRequestBuilder } + +// WorkDay_Intl action undocumented +func (b *WorkbookFunctionsRequestBuilder) WorkDay_Intl(reqObj *WorkbookFunctionsWorkDay_IntlRequestParameter) *WorkbookFunctionsWorkDay_IntlRequestBuilder { + bb := &WorkbookFunctionsWorkDay_IntlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/workDay_Intl" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsWorkDay_IntlRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsWorkDay_IntlRequestBuilder) Request() *WorkbookFunctionsWorkDay_IntlRequest { + return &WorkbookFunctionsWorkDay_IntlRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsWorkDay_IntlRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go new file mode 100644 index 00000000..56143a27 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsXirrRequestBuilder struct{ BaseRequestBuilder } + +// Xirr action undocumented +func (b *WorkbookFunctionsRequestBuilder) Xirr(reqObj *WorkbookFunctionsXirrRequestParameter) *WorkbookFunctionsXirrRequestBuilder { + bb := &WorkbookFunctionsXirrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/xirr" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsXirrRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsXirrRequestBuilder) Request() *WorkbookFunctionsXirrRequest { + return &WorkbookFunctionsXirrRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsXirrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go new file mode 100644 index 00000000..962bd0d0 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsXnpvRequestBuilder struct{ BaseRequestBuilder } + +// Xnpv action undocumented +func (b *WorkbookFunctionsRequestBuilder) Xnpv(reqObj *WorkbookFunctionsXnpvRequestParameter) *WorkbookFunctionsXnpvRequestBuilder { + bb := &WorkbookFunctionsXnpvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/xnpv" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsXnpvRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsXnpvRequestBuilder) Request() *WorkbookFunctionsXnpvRequest { + return &WorkbookFunctionsXnpvRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsXnpvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go new file mode 100644 index 00000000..b541a3f4 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsXorRequestBuilder struct{ BaseRequestBuilder } + +// Xor action undocumented +func (b *WorkbookFunctionsRequestBuilder) Xor(reqObj *WorkbookFunctionsXorRequestParameter) *WorkbookFunctionsXorRequestBuilder { + bb := &WorkbookFunctionsXorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/xor" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsXorRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsXorRequestBuilder) Request() *WorkbookFunctionsXorRequest { + return &WorkbookFunctionsXorRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsXorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go new file mode 100644 index 00000000..4a5e1e73 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go @@ -0,0 +1,59 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsYearRequestBuilder struct{ BaseRequestBuilder } + +// Year action undocumented +func (b *WorkbookFunctionsRequestBuilder) Year(reqObj *WorkbookFunctionsYearRequestParameter) *WorkbookFunctionsYearRequestBuilder { + bb := &WorkbookFunctionsYearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/year" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsYearRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsYearRequestBuilder) Request() *WorkbookFunctionsYearRequest { + return &WorkbookFunctionsYearRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsYearRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsYearFracRequestBuilder struct{ BaseRequestBuilder } + +// YearFrac action undocumented +func (b *WorkbookFunctionsRequestBuilder) YearFrac(reqObj *WorkbookFunctionsYearFracRequestParameter) *WorkbookFunctionsYearFracRequestBuilder { + bb := &WorkbookFunctionsYearFracRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/yearFrac" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsYearFracRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsYearFracRequestBuilder) Request() *WorkbookFunctionsYearFracRequest { + return &WorkbookFunctionsYearFracRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsYearFracRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go new file mode 100644 index 00000000..d69dc736 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go @@ -0,0 +1,86 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsYieldRequestBuilder struct{ BaseRequestBuilder } + +// Yield action undocumented +func (b *WorkbookFunctionsRequestBuilder) Yield(reqObj *WorkbookFunctionsYieldRequestParameter) *WorkbookFunctionsYieldRequestBuilder { + bb := &WorkbookFunctionsYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/yield" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsYieldRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsYieldRequestBuilder) Request() *WorkbookFunctionsYieldRequest { + return &WorkbookFunctionsYieldRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsYieldDiscRequestBuilder struct{ BaseRequestBuilder } + +// YieldDisc action undocumented +func (b *WorkbookFunctionsRequestBuilder) YieldDisc(reqObj *WorkbookFunctionsYieldDiscRequestParameter) *WorkbookFunctionsYieldDiscRequestBuilder { + bb := &WorkbookFunctionsYieldDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/yieldDisc" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsYieldDiscRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsYieldDiscRequestBuilder) Request() *WorkbookFunctionsYieldDiscRequest { + return &WorkbookFunctionsYieldDiscRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsYieldDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} + +// +type WorkbookFunctionsYieldMatRequestBuilder struct{ BaseRequestBuilder } + +// YieldMat action undocumented +func (b *WorkbookFunctionsRequestBuilder) YieldMat(reqObj *WorkbookFunctionsYieldMatRequestParameter) *WorkbookFunctionsYieldMatRequestBuilder { + bb := &WorkbookFunctionsYieldMatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/yieldMat" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsYieldMatRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsYieldMatRequestBuilder) Request() *WorkbookFunctionsYieldMatRequest { + return &WorkbookFunctionsYieldMatRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsYieldMatRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go new file mode 100644 index 00000000..1117ce36 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go @@ -0,0 +1,32 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// +type WorkbookFunctionsZ_TestRequestBuilder struct{ BaseRequestBuilder } + +// Z_Test action undocumented +func (b *WorkbookFunctionsRequestBuilder) Z_Test(reqObj *WorkbookFunctionsZ_TestRequestParameter) *WorkbookFunctionsZ_TestRequestBuilder { + bb := &WorkbookFunctionsZ_TestRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/z_Test" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type WorkbookFunctionsZ_TestRequest struct{ BaseRequest } + +// +func (b *WorkbookFunctionsZ_TestRequestBuilder) Request() *WorkbookFunctionsZ_TestRequest { + return &WorkbookFunctionsZ_TestRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *WorkbookFunctionsZ_TestRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { + err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) + return +} diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/WorkforceIntegrationRequest.go rename to vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/extensions.go b/vendor/github.com/yaegashi/msgraph.go/beta/extensions.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/beta/extensions.go rename to vendor/github.com/yaegashi/msgraph.go/beta/extensions.go diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go b/vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go similarity index 75% rename from vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go rename to vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go index a215f456..df1f4384 100644 --- a/vendor/github.com/matterbridge/msgraph.go/beta/msgraph.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go @@ -12,8 +12,10 @@ import ( "net/http" "net/url" "strconv" + "time" - "github.com/matterbridge/msgraph.go/jsonx" + "github.com/rickb777/date/period" + "github.com/yaegashi/msgraph.go/jsonx" ) const ( @@ -29,6 +31,53 @@ type Stream []byte // UUID is type alias for Edm.Guid type UUID string +// Date is type alias for Edm.Date +type Date string + +// NewDate creates Date from time.Time +func NewDate(t time.Time) *Date { + s := t.Format("2006-01-02") + return (*Date)(&s) +} + +// Time converts Date to time.Time +func (d *Date) Time() (time.Time, error) { + return time.Parse("2006-01-02", string(*d)) +} + +// TimeOfDay is type alis for Edm.TimeOfDay +type TimeOfDay string + +// NewTimeOfDay creates NewTimeOfDay from time.Time +func NewTimeOfDay(t time.Time) *TimeOfDay { + s := t.Format("15:04:05") + return (*TimeOfDay)(&s) +} + +// Time converts TimeOfDay to time.Time +func (t *TimeOfDay) Time() (time.Time, error) { + return time.Parse("15:04:05", string(*t)) +} + +// Duration is type alias for Edm.Duration +type Duration string + +// NewDuration creates Duration from time.Duration +func NewDuration(d time.Duration) *Duration { + p, _ := period.NewOf(d) + s := p.String() + return (*Duration)(&s) +} + +// Time converts Duration to time.Duration +func (d *Duration) Time() (time.Duration, error) { + p, err := period.Parse(string(*d)) + if err != nil { + return 0, err + } + return p.DurationApprox(), nil +} + // Object is the common ancestor of all models type Object struct { // AdditionalData contains all other fields not defined above @@ -108,11 +157,17 @@ func (r *BaseRequestBuilder) URL() string { return r.baseURL } +// SetURL sets the baseURL +func (r *BaseRequestBuilder) SetURL(baseURL string) { + r.baseURL = baseURL +} + // BaseRequest is base request type BaseRequest struct { baseURL string client *http.Client requestObject interface{} + header http.Header query url.Values } @@ -130,8 +185,19 @@ func (r *BaseRequest) Client() *http.Client { return r.client } -// Query returns queries for URL +// Header returns headers of the request +func (r *BaseRequest) Header() http.Header { + if r.header == nil { + r.header = http.Header{} + } + return r.header +} + +// Query returns queries of the request func (r *BaseRequest) Query() url.Values { + if r.query == nil { + r.query = url.Values{} + } return r.query } @@ -185,7 +251,18 @@ func (r *BaseRequest) OrderBy(value string) { // 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) + req, err := http.NewRequest(method, r.baseURL+path, body) + if err != nil { + return nil, err + } + if r.header != nil { + for key, values := range r.header { + for _, value := range values { + req.Header.Add(key, value) + } + } + } + return req, nil } // NewJSONRequest returns new HTTP request with JSON payload @@ -197,7 +274,7 @@ func (r *BaseRequest) NewJSONRequest(method, path string, obj interface{}) (*htt return nil, err } } - req, err := http.NewRequest(method, r.baseURL+path, buf) + req, err := r.NewRequest(method, path, buf) if err != nil { return nil, err } diff --git a/vendor/github.com/yaegashi/msgraph.go/jsonx/README.md b/vendor/github.com/yaegashi/msgraph.go/jsonx/README.md new file mode 100644 index 00000000..575ce781 --- /dev/null +++ b/vendor/github.com/yaegashi/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/yaegashi/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/yaegashi/msgraph.go/jsonx/decode.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/decode.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/decode.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/encode.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/encode.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/encode.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/fold.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/fold.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/fold.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/indent.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/indent.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/indent.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/scanner.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/scanner.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/scanner.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/stream.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/stream.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/stream.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/tables.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/tables.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/tables.go diff --git a/vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go b/vendor/github.com/yaegashi/msgraph.go/jsonx/tags.go similarity index 100% rename from vendor/github.com/matterbridge/msgraph.go/jsonx/tags.go rename to vendor/github.com/yaegashi/msgraph.go/jsonx/tags.go diff --git a/vendor/golang.org/x/oauth2/README.md b/vendor/golang.org/x/oauth2/README.md index 0f443e69..8cfd6063 100644 --- a/vendor/golang.org/x/oauth2/README.md +++ b/vendor/golang.org/x/oauth2/README.md @@ -16,15 +16,16 @@ Or you can manually git clone the repository to See godoc for further documentation and examples. -* [godoc.org/golang.org/x/oauth2](http://godoc.org/golang.org/x/oauth2) -* [godoc.org/golang.org/x/oauth2/google](http://godoc.org/golang.org/x/oauth2/google) +* [godoc.org/golang.org/x/oauth2](https://godoc.org/golang.org/x/oauth2) +* [godoc.org/golang.org/x/oauth2/google](https://godoc.org/golang.org/x/oauth2/google) ## Policy for new packages -We no longer accept new provider-specific packages in this repo. For -defining provider endpoints and provider-specific OAuth2 behavior, we -encourage you to create packages elsewhere. We'll keep the existing -packages for compatibility. +We no longer accept new provider-specific packages in this repo if all +they do is add a single endpoint variable. If you just want to add a +single endpoint, add it to the +[godoc.org/golang.org/x/oauth2/endpoints](https://godoc.org/golang.org/x/oauth2/endpoints) +package. ## Report Issues / Send Patches diff --git a/vendor/golang.org/x/oauth2/transport.go b/vendor/golang.org/x/oauth2/transport.go index aa0d34f1..90657915 100644 --- a/vendor/golang.org/x/oauth2/transport.go +++ b/vendor/golang.org/x/oauth2/transport.go @@ -6,7 +6,7 @@ package oauth2 import ( "errors" - "io" + "log" "net/http" "sync" ) @@ -25,9 +25,6 @@ type Transport struct { // Base is the base RoundTripper used to make HTTP requests. // If nil, http.DefaultTransport is used. Base http.RoundTripper - - mu sync.Mutex // guards modReq - modReq map[*http.Request]*http.Request // original -> modified } // RoundTrip authorizes and authenticates the request with an @@ -52,35 +49,22 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { req2 := cloneRequest(req) // per RoundTripper contract token.SetAuthHeader(req2) - t.setModReq(req, req2) - res, err := t.base().RoundTrip(req2) - // req.Body is assumed to have been closed by the base RoundTripper. + // req.Body is assumed to be closed by the base RoundTripper. reqBodyClosed = true - - if err != nil { - t.setModReq(req, nil) - return nil, err - } - res.Body = &onEOFReader{ - rc: res.Body, - fn: func() { t.setModReq(req, nil) }, - } - return res, nil + return t.base().RoundTrip(req2) } -// CancelRequest cancels an in-flight request by closing its connection. +var cancelOnce sync.Once + +// CancelRequest does nothing. It used to be a legacy cancellation mechanism +// but now only it only logs on first use to warn that it's deprecated. +// +// Deprecated: use contexts for cancellation instead. func (t *Transport) CancelRequest(req *http.Request) { - type canceler interface { - CancelRequest(*http.Request) - } - if cr, ok := t.base().(canceler); ok { - t.mu.Lock() - modReq := t.modReq[req] - delete(t.modReq, req) - t.mu.Unlock() - cr.CancelRequest(modReq) - } + cancelOnce.Do(func() { + log.Printf("deprecated: golang.org/x/oauth2: Transport.CancelRequest no longer does anything; use contexts") + }) } func (t *Transport) base() http.RoundTripper { @@ -90,19 +74,6 @@ func (t *Transport) base() http.RoundTripper { return http.DefaultTransport } -func (t *Transport) setModReq(orig, mod *http.Request) { - t.mu.Lock() - defer t.mu.Unlock() - if t.modReq == nil { - t.modReq = make(map[*http.Request]*http.Request) - } - if mod == nil { - delete(t.modReq, orig) - } else { - t.modReq[orig] = mod - } -} - // cloneRequest returns a clone of the provided *http.Request. // The clone is a shallow copy of the struct and its Header map. func cloneRequest(r *http.Request) *http.Request { @@ -116,29 +87,3 @@ func cloneRequest(r *http.Request) *http.Request { } return r2 } - -type onEOFReader struct { - rc io.ReadCloser - fn func() -} - -func (r *onEOFReader) Read(p []byte) (n int, err error) { - n, err = r.rc.Read(p) - if err == io.EOF { - r.runFunc() - } - return -} - -func (r *onEOFReader) Close() error { - err := r.rc.Close() - r.runFunc() - return err -} - -func (r *onEOFReader) runFunc() { - if fn := r.fn; fn != nil { - fn() - r.fn = nil - } -}